/** * Client **/ import * as runtime from './runtime/library.js'; import $Types = runtime.Types // general types import $Public = runtime.Types.Public import $Utils = runtime.Types.Utils import $Extensions = runtime.Types.Extensions import $Result = runtime.Types.Result export type PrismaPromise = $Public.PrismaPromise /** * Model ServiceStatus * */ export type ServiceStatus = $Result.DefaultSelection /** * Model Announcement * */ export type Announcement = $Result.DefaultSelection /** * Model EmailDelivery * */ export type EmailDelivery = $Result.DefaultSelection /** * Model User * */ export type User = $Result.DefaultSelection /** * Model UserAcquisition * */ export type UserAcquisition = $Result.DefaultSelection /** * Model Affiliate * Creator program application. `slug` is the lowercase ref/code; it is * cleared on decline so the name becomes available again. */ export type Affiliate = $Result.DefaultSelection /** * Model FeatureFlag * */ export type FeatureFlag = $Result.DefaultSelection /** * Model AppSetting * */ export type AppSetting = $Result.DefaultSelection /** * Model MinuteUsageEvent * */ export type MinuteUsageEvent = $Result.DefaultSelection /** * Model AIEditUsageEvent * */ export type AIEditUsageEvent = $Result.DefaultSelection /** * Model Task * */ export type Task = $Result.DefaultSelection /** * Model SocialAccount * */ export type SocialAccount = $Result.DefaultSelection /** * Model SocialOauthState * */ export type SocialOauthState = $Result.DefaultSelection /** * Model SocialPost * */ export type SocialPost = $Result.DefaultSelection /** * Model SocialPostMetric * */ export type SocialPostMetric = $Result.DefaultSelection /** * Model Source * */ export type Source = $Result.DefaultSelection /** * Model Session * */ export type Session = $Result.DefaultSelection /** * Model Account * */ export type Account = $Result.DefaultSelection /** * Model Verification * */ export type Verification = $Result.DefaultSelection /** * Model StripeWebhookEvent * */ export type StripeWebhookEvent = $Result.DefaultSelection /** * Model RevenueCatWebhookEvent * */ export type RevenueCatWebhookEvent = $Result.DefaultSelection /** * Model UserFeatureTour * One row per account and feature tour (lib/feature-tours.ts): shown, then completed or dismissed. */ export type UserFeatureTour = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more ServiceStatuses * const serviceStatuses = await prisma.serviceStatus.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export class PrismaClient< ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs > { [K: symbol]: { types: Prisma.TypeMap['other'] } /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more ServiceStatuses * const serviceStatuses = await prisma.serviceStatus.findMany() * ``` * * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ constructor(optionsArg ?: Prisma.Subset); $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): $Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): $Utils.JsPromise; /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. * @example * ``` * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') * ``` * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * const [george, bob, alice] = await prisma.$transaction([ * prisma.user.create({ data: { name: 'George' } }), * prisma.user.create({ data: { name: 'Bob' } }), * prisma.user.create({ data: { name: 'Alice' } }), * ]) * ``` * * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise> $transaction(fn: (prisma: Omit) => $Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, $Utils.Call, { extArgs: ExtArgs }>> /** * `prisma.serviceStatus`: Exposes CRUD operations for the **ServiceStatus** model. * Example usage: * ```ts * // Fetch zero or more ServiceStatuses * const serviceStatuses = await prisma.serviceStatus.findMany() * ``` */ get serviceStatus(): Prisma.ServiceStatusDelegate; /** * `prisma.announcement`: Exposes CRUD operations for the **Announcement** model. * Example usage: * ```ts * // Fetch zero or more Announcements * const announcements = await prisma.announcement.findMany() * ``` */ get announcement(): Prisma.AnnouncementDelegate; /** * `prisma.emailDelivery`: Exposes CRUD operations for the **EmailDelivery** model. * Example usage: * ```ts * // Fetch zero or more EmailDeliveries * const emailDeliveries = await prisma.emailDelivery.findMany() * ``` */ get emailDelivery(): Prisma.EmailDeliveryDelegate; /** * `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.userAcquisition`: Exposes CRUD operations for the **UserAcquisition** model. * Example usage: * ```ts * // Fetch zero or more UserAcquisitions * const userAcquisitions = await prisma.userAcquisition.findMany() * ``` */ get userAcquisition(): Prisma.UserAcquisitionDelegate; /** * `prisma.affiliate`: Exposes CRUD operations for the **Affiliate** model. * Example usage: * ```ts * // Fetch zero or more Affiliates * const affiliates = await prisma.affiliate.findMany() * ``` */ get affiliate(): Prisma.AffiliateDelegate; /** * `prisma.featureFlag`: Exposes CRUD operations for the **FeatureFlag** model. * Example usage: * ```ts * // Fetch zero or more FeatureFlags * const featureFlags = await prisma.featureFlag.findMany() * ``` */ get featureFlag(): Prisma.FeatureFlagDelegate; /** * `prisma.appSetting`: Exposes CRUD operations for the **AppSetting** model. * Example usage: * ```ts * // Fetch zero or more AppSettings * const appSettings = await prisma.appSetting.findMany() * ``` */ get appSetting(): Prisma.AppSettingDelegate; /** * `prisma.minuteUsageEvent`: Exposes CRUD operations for the **MinuteUsageEvent** model. * Example usage: * ```ts * // Fetch zero or more MinuteUsageEvents * const minuteUsageEvents = await prisma.minuteUsageEvent.findMany() * ``` */ get minuteUsageEvent(): Prisma.MinuteUsageEventDelegate; /** * `prisma.aIEditUsageEvent`: Exposes CRUD operations for the **AIEditUsageEvent** model. * Example usage: * ```ts * // Fetch zero or more AIEditUsageEvents * const aIEditUsageEvents = await prisma.aIEditUsageEvent.findMany() * ``` */ get aIEditUsageEvent(): Prisma.AIEditUsageEventDelegate; /** * `prisma.task`: Exposes CRUD operations for the **Task** model. * Example usage: * ```ts * // Fetch zero or more Tasks * const tasks = await prisma.task.findMany() * ``` */ get task(): Prisma.TaskDelegate; /** * `prisma.socialAccount`: Exposes CRUD operations for the **SocialAccount** model. * Example usage: * ```ts * // Fetch zero or more SocialAccounts * const socialAccounts = await prisma.socialAccount.findMany() * ``` */ get socialAccount(): Prisma.SocialAccountDelegate; /** * `prisma.socialOauthState`: Exposes CRUD operations for the **SocialOauthState** model. * Example usage: * ```ts * // Fetch zero or more SocialOauthStates * const socialOauthStates = await prisma.socialOauthState.findMany() * ``` */ get socialOauthState(): Prisma.SocialOauthStateDelegate; /** * `prisma.socialPost`: Exposes CRUD operations for the **SocialPost** model. * Example usage: * ```ts * // Fetch zero or more SocialPosts * const socialPosts = await prisma.socialPost.findMany() * ``` */ get socialPost(): Prisma.SocialPostDelegate; /** * `prisma.socialPostMetric`: Exposes CRUD operations for the **SocialPostMetric** model. * Example usage: * ```ts * // Fetch zero or more SocialPostMetrics * const socialPostMetrics = await prisma.socialPostMetric.findMany() * ``` */ get socialPostMetric(): Prisma.SocialPostMetricDelegate; /** * `prisma.source`: Exposes CRUD operations for the **Source** model. * Example usage: * ```ts * // Fetch zero or more Sources * const sources = await prisma.source.findMany() * ``` */ get source(): Prisma.SourceDelegate; /** * `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.account`: Exposes CRUD operations for the **Account** model. * Example usage: * ```ts * // Fetch zero or more Accounts * const accounts = await prisma.account.findMany() * ``` */ get account(): Prisma.AccountDelegate; /** * `prisma.verification`: Exposes CRUD operations for the **Verification** model. * Example usage: * ```ts * // Fetch zero or more Verifications * const verifications = await prisma.verification.findMany() * ``` */ get verification(): Prisma.VerificationDelegate; /** * `prisma.stripeWebhookEvent`: Exposes CRUD operations for the **StripeWebhookEvent** model. * Example usage: * ```ts * // Fetch zero or more StripeWebhookEvents * const stripeWebhookEvents = await prisma.stripeWebhookEvent.findMany() * ``` */ get stripeWebhookEvent(): Prisma.StripeWebhookEventDelegate; /** * `prisma.revenueCatWebhookEvent`: Exposes CRUD operations for the **RevenueCatWebhookEvent** model. * Example usage: * ```ts * // Fetch zero or more RevenueCatWebhookEvents * const revenueCatWebhookEvents = await prisma.revenueCatWebhookEvent.findMany() * ``` */ get revenueCatWebhookEvent(): Prisma.RevenueCatWebhookEventDelegate; /** * `prisma.userFeatureTour`: Exposes CRUD operations for the **UserFeatureTour** model. * Example usage: * ```ts * // Fetch zero or more UserFeatureTours * const userFeatureTours = await prisma.userFeatureTour.findMany() * ``` */ get userFeatureTour(): Prisma.UserFeatureTourDelegate; } export namespace Prisma { export import DMMF = runtime.DMMF export type PrismaPromise = $Public.PrismaPromise /** * Validator */ export import validator = runtime.Public.validator /** * Prisma Errors */ export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError export import PrismaClientInitializationError = runtime.PrismaClientInitializationError export import PrismaClientValidationError = runtime.PrismaClientValidationError /** * Re-export of sql-template-tag */ export import sql = runtime.sqltag export import empty = runtime.empty export import join = runtime.join export import raw = runtime.raw export import Sql = runtime.Sql /** * Decimal.js */ export import Decimal = runtime.Decimal export type DecimalJsLike = runtime.DecimalJsLike /** * Metrics */ export type Metrics = runtime.Metrics export type Metric = runtime.Metric export type MetricHistogram = runtime.MetricHistogram export type MetricHistogramBucket = runtime.MetricHistogramBucket /** * Extensions */ export import Extension = $Extensions.UserArgs export import getExtensionContext = runtime.Extensions.getExtensionContext export import Args = $Public.Args export import Payload = $Public.Payload export import Result = $Public.Result export import Exact = $Public.Exact /** * Prisma Client JS version: 6.19.3 * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7 */ export type PrismaVersion = { client: string } export const prismaVersion: PrismaVersion /** * Utility Types */ export import Bytes = runtime.Bytes export import JsonObject = runtime.JsonObject export import JsonArray = runtime.JsonArray export import JsonValue = runtime.JsonValue export import InputJsonObject = runtime.InputJsonObject export import InputJsonArray = runtime.InputJsonArray export import InputJsonValue = runtime.InputJsonValue /** * Types of the values used to represent different kinds of `null` values when working with JSON fields. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ namespace NullTypes { /** * Type of `Prisma.DbNull`. * * You cannot use other instances of this class. Please use the `Prisma.DbNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class DbNull { private DbNull: never private constructor() } /** * Type of `Prisma.JsonNull`. * * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class JsonNull { private JsonNull: never private constructor() } /** * Type of `Prisma.AnyNull`. * * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value. * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ class AnyNull { private AnyNull: never private constructor() } } /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const DbNull: NullTypes.DbNull /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const JsonNull: NullTypes.JsonNull /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ export const AnyNull: NullTypes.AnyNull type SelectAndInclude = { select: any include: any } type SelectAndOmit = { select: any omit: any } /** * Get the type of the value, that the Promise holds. */ export type PromiseType> = T extends PromiseLike ? U : T; /** * Get the return type of a function which returns a Promise. */ export type PromiseReturnType $Utils.JsPromise> = PromiseType> /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { [P in K]: T[P]; }; export type Enumerable = T | Array; export type RequiredKeys = { [K in keyof T]-?: {} extends Prisma__Pick ? never : K }[keyof T] export type TruthyKeys = keyof { [K in keyof T as T[K] extends false | undefined | null ? never : K]: K } export type TrueKeys = TruthyKeys>> /** * Subset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection */ export type Subset = { [key in keyof T]: key extends keyof U ? T[key] : never; }; /** * SelectSubset * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { [key in keyof T]: key extends keyof U ? T[key] : never } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {}) /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { [key in keyof T]: key extends keyof U ? T[key] : never } & K type Without = { [P in Exclude]?: never }; /** * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ type XOR = T extends object ? U extends object ? (Without & U) | (Without & T) : U : T /** * Is T a Record? */ type IsObject = T extends Array ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False /** * If it's T[], return T */ export type UnEnumerate = T extends Array ? U : T /** * From ts-toolbelt */ type __Either = Omit & { // Merge all but K [P in K]: Prisma__Pick // With K possibilities }[K] type EitherStrict = Strict<__Either> type EitherLoose = ComputeRaw<__Either> type _Either< O extends object, K extends Key, strict extends Boolean > = { 1: EitherStrict 0: EitherLoose }[strict] type Either< O extends object, K extends Key, strict extends Boolean = 1 > = O extends unknown ? _Either : never export type Union = any type PatchUndefined = { [K in keyof O]: O[K] extends undefined ? At : O[K] } & {} /** Helper Types for "Merge" **/ export type IntersectOf = ( U extends unknown ? (k: U) => void : never ) extends (k: infer I) => void ? I : never export type Overwrite = { [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; type _Merge = IntersectOf; }>>; type Key = string | number | symbol; type AtBasic = K extends keyof O ? O[K] : never; type AtStrict = O[K & keyof O]; type AtLoose = O extends unknown ? AtStrict : never; export type At = { 1: AtStrict; 0: AtLoose; }[strict]; export type ComputeRaw = A extends Function ? A : { [K in keyof A]: A[K]; } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; } & {}; type _Record = { [P in K]: T; }; // cause typescript not to expand types and preserve names type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional type AtLeast = NoExpand< O extends unknown ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O : never>; type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; /** A [[Boolean]] */ export type Boolean = True | False // /** // 1 // */ export type True = 1 /** 0 */ export type False = 0 export type Not = { 0: 1 1: 0 }[B] export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 ? 1 : 0 export type Has = Not< Extends, U1> > export type Or = { 0: { 0: 0 1: 1 } 1: { 0: 1 1: 1 } }[B1][B2] export type Keys = U extends unknown ? keyof U : never type Cast = A extends B ? A : B; export const type: unique symbol; /** * Used by group by */ export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never } : never type FieldPaths< T, U = Omit > = IsObject extends True ? U : T type GetHavingFields = { [K in keyof T]: Or< Or, Extends<'AND', K>>, Extends<'NOT', K> > extends True ? // infer is only needed to not hit TS limit // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 T[K] extends infer TK ? GetHavingFields extends object ? Merge> : never> : never : {} extends FieldPaths ? never : K }[keyof T] /** * Convert tuple to union */ type _TupleToUnion = T extends (infer E)[] ? E : never type TupleToUnion = _TupleToUnion type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T /** * Like `Pick`, but additionally can also accept an array of keys */ type PickEnumerable | keyof T> = Prisma__Pick> /** * Exclude all keys with underscores */ type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T export type FieldRef = runtime.FieldRef type FieldRefInputType = Model extends never ? never : FieldRef export const ModelName: { ServiceStatus: 'ServiceStatus', Announcement: 'Announcement', EmailDelivery: 'EmailDelivery', User: 'User', UserAcquisition: 'UserAcquisition', Affiliate: 'Affiliate', FeatureFlag: 'FeatureFlag', AppSetting: 'AppSetting', MinuteUsageEvent: 'MinuteUsageEvent', AIEditUsageEvent: 'AIEditUsageEvent', Task: 'Task', SocialAccount: 'SocialAccount', SocialOauthState: 'SocialOauthState', SocialPost: 'SocialPost', SocialPostMetric: 'SocialPostMetric', Source: 'Source', Session: 'Session', Account: 'Account', Verification: 'Verification', StripeWebhookEvent: 'StripeWebhookEvent', RevenueCatWebhookEvent: 'RevenueCatWebhookEvent', UserFeatureTour: 'UserFeatureTour' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { db?: Datasource } interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record> { returns: Prisma.TypeMap } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions } meta: { modelProps: "serviceStatus" | "announcement" | "emailDelivery" | "user" | "userAcquisition" | "affiliate" | "featureFlag" | "appSetting" | "minuteUsageEvent" | "aIEditUsageEvent" | "task" | "socialAccount" | "socialOauthState" | "socialPost" | "socialPostMetric" | "source" | "session" | "account" | "verification" | "stripeWebhookEvent" | "revenueCatWebhookEvent" | "userFeatureTour" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { ServiceStatus: { payload: Prisma.$ServiceStatusPayload fields: Prisma.ServiceStatusFieldRefs operations: { findUnique: { args: Prisma.ServiceStatusFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ServiceStatusFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ServiceStatusFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ServiceStatusFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ServiceStatusFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ServiceStatusCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ServiceStatusCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ServiceStatusCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ServiceStatusDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ServiceStatusUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ServiceStatusDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ServiceStatusUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ServiceStatusUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ServiceStatusUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ServiceStatusAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ServiceStatusGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ServiceStatusCountArgs result: $Utils.Optional | number } } } Announcement: { payload: Prisma.$AnnouncementPayload fields: Prisma.AnnouncementFieldRefs operations: { findUnique: { args: Prisma.AnnouncementFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AnnouncementFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AnnouncementFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AnnouncementFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AnnouncementFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AnnouncementCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AnnouncementCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AnnouncementCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AnnouncementDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AnnouncementUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AnnouncementDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AnnouncementUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AnnouncementUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AnnouncementUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AnnouncementAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AnnouncementGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AnnouncementCountArgs result: $Utils.Optional | number } } } EmailDelivery: { payload: Prisma.$EmailDeliveryPayload fields: Prisma.EmailDeliveryFieldRefs operations: { findUnique: { args: Prisma.EmailDeliveryFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.EmailDeliveryFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.EmailDeliveryFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.EmailDeliveryFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.EmailDeliveryFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.EmailDeliveryCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.EmailDeliveryCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.EmailDeliveryCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.EmailDeliveryDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.EmailDeliveryUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.EmailDeliveryDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.EmailDeliveryUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.EmailDeliveryUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.EmailDeliveryUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.EmailDeliveryAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.EmailDeliveryGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.EmailDeliveryCountArgs 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 } updateManyAndReturn: { args: Prisma.UserUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserCountArgs result: $Utils.Optional | number } } } UserAcquisition: { payload: Prisma.$UserAcquisitionPayload fields: Prisma.UserAcquisitionFieldRefs operations: { findUnique: { args: Prisma.UserAcquisitionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserAcquisitionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserAcquisitionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserAcquisitionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserAcquisitionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserAcquisitionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserAcquisitionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserAcquisitionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserAcquisitionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserAcquisitionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserAcquisitionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserAcquisitionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserAcquisitionUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserAcquisitionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserAcquisitionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserAcquisitionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserAcquisitionCountArgs result: $Utils.Optional | number } } } Affiliate: { payload: Prisma.$AffiliatePayload fields: Prisma.AffiliateFieldRefs operations: { findUnique: { args: Prisma.AffiliateFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AffiliateFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AffiliateFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AffiliateFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AffiliateFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AffiliateCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AffiliateCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AffiliateCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AffiliateDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AffiliateUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AffiliateDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AffiliateUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AffiliateUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AffiliateUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AffiliateAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AffiliateGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AffiliateCountArgs result: $Utils.Optional | number } } } FeatureFlag: { payload: Prisma.$FeatureFlagPayload fields: Prisma.FeatureFlagFieldRefs operations: { findUnique: { args: Prisma.FeatureFlagFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.FeatureFlagFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.FeatureFlagFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.FeatureFlagFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.FeatureFlagFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.FeatureFlagCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.FeatureFlagCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.FeatureFlagCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.FeatureFlagDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.FeatureFlagUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.FeatureFlagDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.FeatureFlagUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.FeatureFlagUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.FeatureFlagUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.FeatureFlagAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.FeatureFlagGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.FeatureFlagCountArgs result: $Utils.Optional | number } } } AppSetting: { payload: Prisma.$AppSettingPayload fields: Prisma.AppSettingFieldRefs operations: { findUnique: { args: Prisma.AppSettingFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AppSettingFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AppSettingFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AppSettingFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AppSettingFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AppSettingCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AppSettingCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AppSettingCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AppSettingDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AppSettingUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AppSettingDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AppSettingUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AppSettingUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AppSettingUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AppSettingAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AppSettingGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AppSettingCountArgs result: $Utils.Optional | number } } } MinuteUsageEvent: { payload: Prisma.$MinuteUsageEventPayload fields: Prisma.MinuteUsageEventFieldRefs operations: { findUnique: { args: Prisma.MinuteUsageEventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.MinuteUsageEventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.MinuteUsageEventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.MinuteUsageEventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.MinuteUsageEventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.MinuteUsageEventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.MinuteUsageEventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.MinuteUsageEventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.MinuteUsageEventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.MinuteUsageEventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.MinuteUsageEventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.MinuteUsageEventUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.MinuteUsageEventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.MinuteUsageEventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.MinuteUsageEventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.MinuteUsageEventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.MinuteUsageEventCountArgs result: $Utils.Optional | number } } } AIEditUsageEvent: { payload: Prisma.$AIEditUsageEventPayload fields: Prisma.AIEditUsageEventFieldRefs operations: { findUnique: { args: Prisma.AIEditUsageEventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AIEditUsageEventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AIEditUsageEventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AIEditUsageEventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AIEditUsageEventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AIEditUsageEventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AIEditUsageEventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AIEditUsageEventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AIEditUsageEventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AIEditUsageEventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AIEditUsageEventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AIEditUsageEventUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AIEditUsageEventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AIEditUsageEventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AIEditUsageEventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AIEditUsageEventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AIEditUsageEventCountArgs result: $Utils.Optional | number } } } Task: { payload: Prisma.$TaskPayload fields: Prisma.TaskFieldRefs operations: { findUnique: { args: Prisma.TaskFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.TaskFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.TaskFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.TaskFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.TaskFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.TaskCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.TaskCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.TaskCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.TaskDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.TaskUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.TaskDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.TaskUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.TaskUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.TaskUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.TaskAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.TaskGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.TaskCountArgs result: $Utils.Optional | number } } } SocialAccount: { payload: Prisma.$SocialAccountPayload fields: Prisma.SocialAccountFieldRefs operations: { findUnique: { args: Prisma.SocialAccountFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SocialAccountFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SocialAccountFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SocialAccountFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SocialAccountFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SocialAccountCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SocialAccountCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SocialAccountCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SocialAccountDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SocialAccountUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SocialAccountDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SocialAccountUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SocialAccountUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SocialAccountUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SocialAccountAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SocialAccountGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SocialAccountCountArgs result: $Utils.Optional | number } } } SocialOauthState: { payload: Prisma.$SocialOauthStatePayload fields: Prisma.SocialOauthStateFieldRefs operations: { findUnique: { args: Prisma.SocialOauthStateFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SocialOauthStateFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SocialOauthStateFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SocialOauthStateFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SocialOauthStateFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SocialOauthStateCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SocialOauthStateCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SocialOauthStateCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SocialOauthStateDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SocialOauthStateUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SocialOauthStateDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SocialOauthStateUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SocialOauthStateUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SocialOauthStateUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SocialOauthStateAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SocialOauthStateGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SocialOauthStateCountArgs result: $Utils.Optional | number } } } SocialPost: { payload: Prisma.$SocialPostPayload fields: Prisma.SocialPostFieldRefs operations: { findUnique: { args: Prisma.SocialPostFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SocialPostFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SocialPostFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SocialPostFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SocialPostFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SocialPostCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SocialPostCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SocialPostCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SocialPostDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SocialPostUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SocialPostDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SocialPostUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SocialPostUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SocialPostUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SocialPostAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SocialPostGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SocialPostCountArgs result: $Utils.Optional | number } } } SocialPostMetric: { payload: Prisma.$SocialPostMetricPayload fields: Prisma.SocialPostMetricFieldRefs operations: { findUnique: { args: Prisma.SocialPostMetricFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SocialPostMetricFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SocialPostMetricFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SocialPostMetricFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SocialPostMetricFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SocialPostMetricCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SocialPostMetricCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SocialPostMetricCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SocialPostMetricDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SocialPostMetricUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SocialPostMetricDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SocialPostMetricUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SocialPostMetricUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SocialPostMetricUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SocialPostMetricAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SocialPostMetricGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SocialPostMetricCountArgs result: $Utils.Optional | number } } } Source: { payload: Prisma.$SourcePayload fields: Prisma.SourceFieldRefs operations: { findUnique: { args: Prisma.SourceFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SourceFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SourceFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SourceFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SourceFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SourceCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SourceCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SourceCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SourceDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SourceUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SourceDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SourceUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SourceUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SourceUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SourceAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SourceGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SourceCountArgs result: $Utils.Optional | number } } } Session: { payload: Prisma.$SessionPayload fields: Prisma.SessionFieldRefs operations: { findUnique: { args: Prisma.SessionFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.SessionFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.SessionFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.SessionFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.SessionFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.SessionCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.SessionCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.SessionCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.SessionDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.SessionUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.SessionDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.SessionUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.SessionUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.SessionUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.SessionAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.SessionGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.SessionCountArgs result: $Utils.Optional | number } } } Account: { payload: Prisma.$AccountPayload fields: Prisma.AccountFieldRefs operations: { findUnique: { args: Prisma.AccountFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.AccountFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.AccountFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.AccountFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.AccountFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.AccountCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.AccountCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.AccountCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.AccountDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.AccountUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.AccountDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.AccountUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.AccountUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.AccountUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.AccountAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.AccountGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.AccountCountArgs result: $Utils.Optional | number } } } Verification: { payload: Prisma.$VerificationPayload fields: Prisma.VerificationFieldRefs operations: { findUnique: { args: Prisma.VerificationFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.VerificationFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.VerificationFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.VerificationFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.VerificationFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.VerificationCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.VerificationCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.VerificationCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.VerificationDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.VerificationUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.VerificationDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.VerificationUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.VerificationUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.VerificationUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.VerificationAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.VerificationGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.VerificationCountArgs result: $Utils.Optional | number } } } StripeWebhookEvent: { payload: Prisma.$StripeWebhookEventPayload fields: Prisma.StripeWebhookEventFieldRefs operations: { findUnique: { args: Prisma.StripeWebhookEventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.StripeWebhookEventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.StripeWebhookEventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.StripeWebhookEventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.StripeWebhookEventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.StripeWebhookEventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.StripeWebhookEventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.StripeWebhookEventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.StripeWebhookEventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.StripeWebhookEventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.StripeWebhookEventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.StripeWebhookEventUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.StripeWebhookEventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.StripeWebhookEventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.StripeWebhookEventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.StripeWebhookEventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.StripeWebhookEventCountArgs result: $Utils.Optional | number } } } RevenueCatWebhookEvent: { payload: Prisma.$RevenueCatWebhookEventPayload fields: Prisma.RevenueCatWebhookEventFieldRefs operations: { findUnique: { args: Prisma.RevenueCatWebhookEventFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.RevenueCatWebhookEventFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.RevenueCatWebhookEventFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.RevenueCatWebhookEventFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.RevenueCatWebhookEventFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.RevenueCatWebhookEventCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.RevenueCatWebhookEventCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.RevenueCatWebhookEventCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.RevenueCatWebhookEventDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.RevenueCatWebhookEventUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.RevenueCatWebhookEventDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.RevenueCatWebhookEventUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.RevenueCatWebhookEventUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.RevenueCatWebhookEventUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.RevenueCatWebhookEventAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.RevenueCatWebhookEventGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.RevenueCatWebhookEventCountArgs result: $Utils.Optional | number } } } UserFeatureTour: { payload: Prisma.$UserFeatureTourPayload fields: Prisma.UserFeatureTourFieldRefs operations: { findUnique: { args: Prisma.UserFeatureTourFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.UserFeatureTourFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.UserFeatureTourFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.UserFeatureTourFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.UserFeatureTourFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.UserFeatureTourCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.UserFeatureTourCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.UserFeatureTourCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.UserFeatureTourDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.UserFeatureTourUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.UserFeatureTourDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.UserFeatureTourUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.UserFeatureTourUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.UserFeatureTourUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.UserFeatureTourAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.UserFeatureTourGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.UserFeatureTourCountArgs result: $Utils.Optional | number } } } } } & { other: { payload: any operations: { $executeRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $executeRawUnsafe: { args: [query: string, ...values: any[]], result: any } $queryRaw: { args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]], result: any } $queryRawUnsafe: { args: [query: string, ...values: any[]], result: any } } } } export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs> export type DefaultPrismaClient = PrismaClient export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' export interface PrismaClientOptions { /** * Overwrites the datasource url from your schema.prisma file */ datasources?: Datasources /** * Overwrites the datasource url from your schema.prisma file */ datasourceUrl?: string /** * @default "colorless" */ errorFormat?: ErrorFormat /** * @example * ``` * // Shorthand for `emit: 'stdout'` * log: ['query', 'info', 'warn', 'error'] * * // Emit as events only * log: [ * { emit: 'event', level: 'query' }, * { emit: 'event', level: 'info' }, * { emit: 'event', level: 'warn' } * { emit: 'event', level: 'error' } * ] * * / Emit as events and log to stdout * og: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } * * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ log?: (LogLevel | LogDefinition)[] /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { maxWait?: number timeout?: number isolationLevel?: Prisma.TransactionIsolationLevel } /** * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` */ adapter?: runtime.SqlDriverAdapterFactory | null /** * Global configuration for omitting model fields by default. * * @example * ``` * const prisma = new PrismaClient({ * omit: { * user: { * password: true * } * } * }) * ``` */ omit?: Prisma.GlobalOmitConfig } export type GlobalOmitConfig = { serviceStatus?: ServiceStatusOmit announcement?: AnnouncementOmit emailDelivery?: EmailDeliveryOmit user?: UserOmit userAcquisition?: UserAcquisitionOmit affiliate?: AffiliateOmit featureFlag?: FeatureFlagOmit appSetting?: AppSettingOmit minuteUsageEvent?: MinuteUsageEventOmit aIEditUsageEvent?: AIEditUsageEventOmit task?: TaskOmit socialAccount?: SocialAccountOmit socialOauthState?: SocialOauthStateOmit socialPost?: SocialPostOmit socialPostMetric?: SocialPostMetricOmit source?: SourceOmit session?: SessionOmit account?: AccountOmit verification?: VerificationOmit stripeWebhookEvent?: StripeWebhookEventOmit revenueCatWebhookEvent?: RevenueCatWebhookEventOmit userFeatureTour?: UserFeatureTourOmit } /* Types for Logging */ export type LogLevel = 'info' | 'query' | 'warn' | 'error' export type LogDefinition = { level: LogLevel emit: 'stdout' | 'event' } export type CheckIsLogLevel = T extends LogLevel ? T : never; export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; export type GetEvents = T extends Array ? GetLogType : never; export type QueryEvent = { timestamp: Date query: string params: string duration: number target: string } export type LogEvent = { timestamp: Date message: string target: string } /* End Types for Logging */ export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy' // tested in getLogLevel.test.ts export function getLogLevel(log: Array): LogLevel | undefined; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit export type Datasource = { url?: string } /** * Count Types */ /** * Count Type UserCountOutputType */ export type UserCountOutputType = { tasks: number sessions: number accounts: number app_settings: number feature_flags_updated: number reviewed_affiliates: number social_accounts: number social_oauth_states: number social_posts: number feature_tours: number } export type UserCountOutputTypeSelect = { tasks?: boolean | UserCountOutputTypeCountTasksArgs sessions?: boolean | UserCountOutputTypeCountSessionsArgs accounts?: boolean | UserCountOutputTypeCountAccountsArgs app_settings?: boolean | UserCountOutputTypeCountApp_settingsArgs feature_flags_updated?: boolean | UserCountOutputTypeCountFeature_flags_updatedArgs reviewed_affiliates?: boolean | UserCountOutputTypeCountReviewed_affiliatesArgs social_accounts?: boolean | UserCountOutputTypeCountSocial_accountsArgs social_oauth_states?: boolean | UserCountOutputTypeCountSocial_oauth_statesArgs social_posts?: boolean | UserCountOutputTypeCountSocial_postsArgs feature_tours?: boolean | UserCountOutputTypeCountFeature_toursArgs } // Custom InputTypes /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: UserCountOutputTypeSelect | null } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountTasksArgs = { where?: TaskWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSessionsArgs = { where?: SessionWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountAccountsArgs = { where?: AccountWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountApp_settingsArgs = { where?: AppSettingWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountFeature_flags_updatedArgs = { where?: FeatureFlagWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountReviewed_affiliatesArgs = { where?: AffiliateWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSocial_accountsArgs = { where?: SocialAccountWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSocial_oauth_statesArgs = { where?: SocialOauthStateWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountSocial_postsArgs = { where?: SocialPostWhereInput } /** * UserCountOutputType without action */ export type UserCountOutputTypeCountFeature_toursArgs = { where?: UserFeatureTourWhereInput } /** * Count Type TaskCountOutputType */ export type TaskCountOutputType = { social_posts: number } export type TaskCountOutputTypeSelect = { social_posts?: boolean | TaskCountOutputTypeCountSocial_postsArgs } // Custom InputTypes /** * TaskCountOutputType without action */ export type TaskCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TaskCountOutputType */ select?: TaskCountOutputTypeSelect | null } /** * TaskCountOutputType without action */ export type TaskCountOutputTypeCountSocial_postsArgs = { where?: SocialPostWhereInput } /** * Count Type SocialAccountCountOutputType */ export type SocialAccountCountOutputType = { posts: number } export type SocialAccountCountOutputTypeSelect = { posts?: boolean | SocialAccountCountOutputTypeCountPostsArgs } // Custom InputTypes /** * SocialAccountCountOutputType without action */ export type SocialAccountCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SocialAccountCountOutputType */ select?: SocialAccountCountOutputTypeSelect | null } /** * SocialAccountCountOutputType without action */ export type SocialAccountCountOutputTypeCountPostsArgs = { where?: SocialPostWhereInput } /** * Count Type SocialPostCountOutputType */ export type SocialPostCountOutputType = { metric_history: number } export type SocialPostCountOutputTypeSelect = { metric_history?: boolean | SocialPostCountOutputTypeCountMetric_historyArgs } // Custom InputTypes /** * SocialPostCountOutputType without action */ export type SocialPostCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SocialPostCountOutputType */ select?: SocialPostCountOutputTypeSelect | null } /** * SocialPostCountOutputType without action */ export type SocialPostCountOutputTypeCountMetric_historyArgs = { where?: SocialPostMetricWhereInput } /** * Count Type SourceCountOutputType */ export type SourceCountOutputType = { tasks: number } export type SourceCountOutputTypeSelect = { tasks?: boolean | SourceCountOutputTypeCountTasksArgs } // Custom InputTypes /** * SourceCountOutputType without action */ export type SourceCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SourceCountOutputType */ select?: SourceCountOutputTypeSelect | null } /** * SourceCountOutputType without action */ export type SourceCountOutputTypeCountTasksArgs = { where?: TaskWhereInput } /** * Models */ /** * Model ServiceStatus */ export type AggregateServiceStatus = { _count: ServiceStatusCountAggregateOutputType | null _min: ServiceStatusMinAggregateOutputType | null _max: ServiceStatusMaxAggregateOutputType | null } export type ServiceStatusMinAggregateOutputType = { id: string | null name: string | null status: string | null headline: string | null description: string | null updatedAt: Date | null } export type ServiceStatusMaxAggregateOutputType = { id: string | null name: string | null status: string | null headline: string | null description: string | null updatedAt: Date | null } export type ServiceStatusCountAggregateOutputType = { id: number name: number status: number headline: number description: number updatedAt: number _all: number } export type ServiceStatusMinAggregateInputType = { id?: true name?: true status?: true headline?: true description?: true updatedAt?: true } export type ServiceStatusMaxAggregateInputType = { id?: true name?: true status?: true headline?: true description?: true updatedAt?: true } export type ServiceStatusCountAggregateInputType = { id?: true name?: true status?: true headline?: true description?: true updatedAt?: true _all?: true } export type ServiceStatusAggregateArgs = { /** * Filter which ServiceStatus to aggregate. */ where?: ServiceStatusWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceStatuses to fetch. */ orderBy?: ServiceStatusOrderByWithRelationInput | ServiceStatusOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ServiceStatusWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceStatuses 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` ServiceStatuses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ServiceStatuses **/ _count?: true | ServiceStatusCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ServiceStatusMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ServiceStatusMaxAggregateInputType } export type GetServiceStatusAggregateType = { [P in keyof T & keyof AggregateServiceStatus]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ServiceStatusGroupByArgs = { where?: ServiceStatusWhereInput orderBy?: ServiceStatusOrderByWithAggregationInput | ServiceStatusOrderByWithAggregationInput[] by: ServiceStatusScalarFieldEnum[] | ServiceStatusScalarFieldEnum having?: ServiceStatusScalarWhereWithAggregatesInput take?: number skip?: number _count?: ServiceStatusCountAggregateInputType | true _min?: ServiceStatusMinAggregateInputType _max?: ServiceStatusMaxAggregateInputType } export type ServiceStatusGroupByOutputType = { id: string name: string status: string headline: string description: string updatedAt: Date _count: ServiceStatusCountAggregateOutputType | null _min: ServiceStatusMinAggregateOutputType | null _max: ServiceStatusMaxAggregateOutputType | null } type GetServiceStatusGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ServiceStatusGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ServiceStatusSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean status?: boolean headline?: boolean description?: boolean updatedAt?: boolean }, ExtArgs["result"]["serviceStatus"]> export type ServiceStatusSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean status?: boolean headline?: boolean description?: boolean updatedAt?: boolean }, ExtArgs["result"]["serviceStatus"]> export type ServiceStatusSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean status?: boolean headline?: boolean description?: boolean updatedAt?: boolean }, ExtArgs["result"]["serviceStatus"]> export type ServiceStatusSelectScalar = { id?: boolean name?: boolean status?: boolean headline?: boolean description?: boolean updatedAt?: boolean } export type ServiceStatusOmit = $Extensions.GetOmit<"id" | "name" | "status" | "headline" | "description" | "updatedAt", ExtArgs["result"]["serviceStatus"]> export type $ServiceStatusPayload = { name: "ServiceStatus" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string name: string status: string headline: string description: string updatedAt: Date }, ExtArgs["result"]["serviceStatus"]> composites: {} } type ServiceStatusGetPayload = $Result.GetResult type ServiceStatusCountArgs = Omit & { select?: ServiceStatusCountAggregateInputType | true } export interface ServiceStatusDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ServiceStatus'], meta: { name: 'ServiceStatus' } } /** * Find zero or one ServiceStatus that matches the filter. * @param {ServiceStatusFindUniqueArgs} args - Arguments to find a ServiceStatus * @example * // Get one ServiceStatus * const serviceStatus = await prisma.serviceStatus.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ServiceStatus that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ServiceStatusFindUniqueOrThrowArgs} args - Arguments to find a ServiceStatus * @example * // Get one ServiceStatus * const serviceStatus = await prisma.serviceStatus.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceStatus 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 {ServiceStatusFindFirstArgs} args - Arguments to find a ServiceStatus * @example * // Get one ServiceStatus * const serviceStatus = await prisma.serviceStatus.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ServiceStatus 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 {ServiceStatusFindFirstOrThrowArgs} args - Arguments to find a ServiceStatus * @example * // Get one ServiceStatus * const serviceStatus = await prisma.serviceStatus.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ServiceStatuses 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 {ServiceStatusFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ServiceStatuses * const serviceStatuses = await prisma.serviceStatus.findMany() * * // Get first 10 ServiceStatuses * const serviceStatuses = await prisma.serviceStatus.findMany({ take: 10 }) * * // Only select the `id` * const serviceStatusWithIdOnly = await prisma.serviceStatus.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ServiceStatus. * @param {ServiceStatusCreateArgs} args - Arguments to create a ServiceStatus. * @example * // Create one ServiceStatus * const ServiceStatus = await prisma.serviceStatus.create({ * data: { * // ... data to create a ServiceStatus * } * }) * */ create(args: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ServiceStatuses. * @param {ServiceStatusCreateManyArgs} args - Arguments to create many ServiceStatuses. * @example * // Create many ServiceStatuses * const serviceStatus = await prisma.serviceStatus.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ServiceStatuses and returns the data saved in the database. * @param {ServiceStatusCreateManyAndReturnArgs} args - Arguments to create many ServiceStatuses. * @example * // Create many ServiceStatuses * const serviceStatus = await prisma.serviceStatus.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ServiceStatuses and only return the `id` * const serviceStatusWithIdOnly = await prisma.serviceStatus.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a ServiceStatus. * @param {ServiceStatusDeleteArgs} args - Arguments to delete one ServiceStatus. * @example * // Delete one ServiceStatus * const ServiceStatus = await prisma.serviceStatus.delete({ * where: { * // ... filter to delete one ServiceStatus * } * }) * */ delete(args: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ServiceStatus. * @param {ServiceStatusUpdateArgs} args - Arguments to update one ServiceStatus. * @example * // Update one ServiceStatus * const serviceStatus = await prisma.serviceStatus.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ServiceStatuses. * @param {ServiceStatusDeleteManyArgs} args - Arguments to filter ServiceStatuses to delete. * @example * // Delete a few ServiceStatuses * const { count } = await prisma.serviceStatus.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceStatuses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceStatusUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ServiceStatuses * const serviceStatus = await prisma.serviceStatus.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ServiceStatuses and returns the data updated in the database. * @param {ServiceStatusUpdateManyAndReturnArgs} args - Arguments to update many ServiceStatuses. * @example * // Update many ServiceStatuses * const serviceStatus = await prisma.serviceStatus.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ServiceStatuses and only return the `id` * const serviceStatusWithIdOnly = await prisma.serviceStatus.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one ServiceStatus. * @param {ServiceStatusUpsertArgs} args - Arguments to update or create a ServiceStatus. * @example * // Update or create a ServiceStatus * const serviceStatus = await prisma.serviceStatus.upsert({ * create: { * // ... data to create a ServiceStatus * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ServiceStatus we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ServiceStatusClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ServiceStatuses. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceStatusCountArgs} args - Arguments to filter ServiceStatuses to count. * @example * // Count the number of ServiceStatuses * const count = await prisma.serviceStatus.count({ * where: { * // ... the filter for the ServiceStatuses 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 ServiceStatus. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceStatusAggregateArgs} 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 ServiceStatus. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ServiceStatusGroupByArgs} 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 ServiceStatusGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ServiceStatusGroupByArgs['orderBy'] } : { orderBy?: ServiceStatusGroupByArgs['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 ? GetServiceStatusGroupByPayload : Prisma.PrismaPromise /** * Fields of the ServiceStatus model */ readonly fields: ServiceStatusFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ServiceStatus. * 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__ServiceStatusClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the ServiceStatus model */ interface ServiceStatusFieldRefs { readonly id: FieldRef<"ServiceStatus", 'String'> readonly name: FieldRef<"ServiceStatus", 'String'> readonly status: FieldRef<"ServiceStatus", 'String'> readonly headline: FieldRef<"ServiceStatus", 'String'> readonly description: FieldRef<"ServiceStatus", 'String'> readonly updatedAt: FieldRef<"ServiceStatus", 'DateTime'> } // Custom InputTypes /** * ServiceStatus findUnique */ export type ServiceStatusFindUniqueArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * Filter, which ServiceStatus to fetch. */ where: ServiceStatusWhereUniqueInput } /** * ServiceStatus findUniqueOrThrow */ export type ServiceStatusFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * Filter, which ServiceStatus to fetch. */ where: ServiceStatusWhereUniqueInput } /** * ServiceStatus findFirst */ export type ServiceStatusFindFirstArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * Filter, which ServiceStatus to fetch. */ where?: ServiceStatusWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceStatuses to fetch. */ orderBy?: ServiceStatusOrderByWithRelationInput | ServiceStatusOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceStatuses. */ cursor?: ServiceStatusWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceStatuses 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` ServiceStatuses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceStatuses. */ distinct?: ServiceStatusScalarFieldEnum | ServiceStatusScalarFieldEnum[] } /** * ServiceStatus findFirstOrThrow */ export type ServiceStatusFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * Filter, which ServiceStatus to fetch. */ where?: ServiceStatusWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceStatuses to fetch. */ orderBy?: ServiceStatusOrderByWithRelationInput | ServiceStatusOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ServiceStatuses. */ cursor?: ServiceStatusWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceStatuses 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` ServiceStatuses. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ServiceStatuses. */ distinct?: ServiceStatusScalarFieldEnum | ServiceStatusScalarFieldEnum[] } /** * ServiceStatus findMany */ export type ServiceStatusFindManyArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * Filter, which ServiceStatuses to fetch. */ where?: ServiceStatusWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ServiceStatuses to fetch. */ orderBy?: ServiceStatusOrderByWithRelationInput | ServiceStatusOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ServiceStatuses. */ cursor?: ServiceStatusWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ServiceStatuses 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` ServiceStatuses. */ skip?: number distinct?: ServiceStatusScalarFieldEnum | ServiceStatusScalarFieldEnum[] } /** * ServiceStatus create */ export type ServiceStatusCreateArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * The data needed to create a ServiceStatus. */ data: XOR } /** * ServiceStatus createMany */ export type ServiceStatusCreateManyArgs = { /** * The data used to create many ServiceStatuses. */ data: ServiceStatusCreateManyInput | ServiceStatusCreateManyInput[] skipDuplicates?: boolean } /** * ServiceStatus createManyAndReturn */ export type ServiceStatusCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelectCreateManyAndReturn | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * The data used to create many ServiceStatuses. */ data: ServiceStatusCreateManyInput | ServiceStatusCreateManyInput[] skipDuplicates?: boolean } /** * ServiceStatus update */ export type ServiceStatusUpdateArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * The data needed to update a ServiceStatus. */ data: XOR /** * Choose, which ServiceStatus to update. */ where: ServiceStatusWhereUniqueInput } /** * ServiceStatus updateMany */ export type ServiceStatusUpdateManyArgs = { /** * The data used to update ServiceStatuses. */ data: XOR /** * Filter which ServiceStatuses to update */ where?: ServiceStatusWhereInput /** * Limit how many ServiceStatuses to update. */ limit?: number } /** * ServiceStatus updateManyAndReturn */ export type ServiceStatusUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelectUpdateManyAndReturn | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * The data used to update ServiceStatuses. */ data: XOR /** * Filter which ServiceStatuses to update */ where?: ServiceStatusWhereInput /** * Limit how many ServiceStatuses to update. */ limit?: number } /** * ServiceStatus upsert */ export type ServiceStatusUpsertArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * The filter to search for the ServiceStatus to update in case it exists. */ where: ServiceStatusWhereUniqueInput /** * In case the ServiceStatus found by the `where` argument doesn't exist, create a new ServiceStatus with this data. */ create: XOR /** * In case the ServiceStatus was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ServiceStatus delete */ export type ServiceStatusDeleteArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null /** * Filter which ServiceStatus to delete. */ where: ServiceStatusWhereUniqueInput } /** * ServiceStatus deleteMany */ export type ServiceStatusDeleteManyArgs = { /** * Filter which ServiceStatuses to delete */ where?: ServiceStatusWhereInput /** * Limit how many ServiceStatuses to delete. */ limit?: number } /** * ServiceStatus without action */ export type ServiceStatusDefaultArgs = { /** * Select specific fields to fetch from the ServiceStatus */ select?: ServiceStatusSelect | null /** * Omit specific fields from the ServiceStatus */ omit?: ServiceStatusOmit | null } /** * Model Announcement */ export type AggregateAnnouncement = { _count: AnnouncementCountAggregateOutputType | null _min: AnnouncementMinAggregateOutputType | null _max: AnnouncementMaxAggregateOutputType | null } export type AnnouncementMinAggregateOutputType = { id: string | null title: string | null description: string | null href: string | null action: string | null isPublished: boolean | null publishedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type AnnouncementMaxAggregateOutputType = { id: string | null title: string | null description: string | null href: string | null action: string | null isPublished: boolean | null publishedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type AnnouncementCountAggregateOutputType = { id: number title: number description: number href: number action: number isPublished: number publishedAt: number createdAt: number updatedAt: number _all: number } export type AnnouncementMinAggregateInputType = { id?: true title?: true description?: true href?: true action?: true isPublished?: true publishedAt?: true createdAt?: true updatedAt?: true } export type AnnouncementMaxAggregateInputType = { id?: true title?: true description?: true href?: true action?: true isPublished?: true publishedAt?: true createdAt?: true updatedAt?: true } export type AnnouncementCountAggregateInputType = { id?: true title?: true description?: true href?: true action?: true isPublished?: true publishedAt?: true createdAt?: true updatedAt?: true _all?: true } export type AnnouncementAggregateArgs = { /** * Filter which Announcement to aggregate. */ where?: AnnouncementWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Announcements to fetch. */ orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AnnouncementWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Announcements 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` Announcements. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Announcements **/ _count?: true | AnnouncementCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AnnouncementMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AnnouncementMaxAggregateInputType } export type GetAnnouncementAggregateType = { [P in keyof T & keyof AggregateAnnouncement]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AnnouncementGroupByArgs = { where?: AnnouncementWhereInput orderBy?: AnnouncementOrderByWithAggregationInput | AnnouncementOrderByWithAggregationInput[] by: AnnouncementScalarFieldEnum[] | AnnouncementScalarFieldEnum having?: AnnouncementScalarWhereWithAggregatesInput take?: number skip?: number _count?: AnnouncementCountAggregateInputType | true _min?: AnnouncementMinAggregateInputType _max?: AnnouncementMaxAggregateInputType } export type AnnouncementGroupByOutputType = { id: string title: string description: string href: string action: string isPublished: boolean publishedAt: Date createdAt: Date updatedAt: Date _count: AnnouncementCountAggregateOutputType | null _min: AnnouncementMinAggregateOutputType | null _max: AnnouncementMaxAggregateOutputType | null } type GetAnnouncementGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AnnouncementGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AnnouncementSelect = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean href?: boolean action?: boolean isPublished?: boolean publishedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["announcement"]> export type AnnouncementSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean href?: boolean action?: boolean isPublished?: boolean publishedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["announcement"]> export type AnnouncementSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean href?: boolean action?: boolean isPublished?: boolean publishedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["announcement"]> export type AnnouncementSelectScalar = { id?: boolean title?: boolean description?: boolean href?: boolean action?: boolean isPublished?: boolean publishedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type AnnouncementOmit = $Extensions.GetOmit<"id" | "title" | "description" | "href" | "action" | "isPublished" | "publishedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["announcement"]> export type $AnnouncementPayload = { name: "Announcement" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string title: string description: string href: string action: string isPublished: boolean publishedAt: Date createdAt: Date updatedAt: Date }, ExtArgs["result"]["announcement"]> composites: {} } type AnnouncementGetPayload = $Result.GetResult type AnnouncementCountArgs = Omit & { select?: AnnouncementCountAggregateInputType | true } export interface AnnouncementDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Announcement'], meta: { name: 'Announcement' } } /** * Find zero or one Announcement that matches the filter. * @param {AnnouncementFindUniqueArgs} args - Arguments to find a Announcement * @example * // Get one Announcement * const announcement = await prisma.announcement.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Announcement that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AnnouncementFindUniqueOrThrowArgs} args - Arguments to find a Announcement * @example * // Get one Announcement * const announcement = await prisma.announcement.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Announcement 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 {AnnouncementFindFirstArgs} args - Arguments to find a Announcement * @example * // Get one Announcement * const announcement = await prisma.announcement.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Announcement 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 {AnnouncementFindFirstOrThrowArgs} args - Arguments to find a Announcement * @example * // Get one Announcement * const announcement = await prisma.announcement.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Announcements 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 {AnnouncementFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Announcements * const announcements = await prisma.announcement.findMany() * * // Get first 10 Announcements * const announcements = await prisma.announcement.findMany({ take: 10 }) * * // Only select the `id` * const announcementWithIdOnly = await prisma.announcement.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Announcement. * @param {AnnouncementCreateArgs} args - Arguments to create a Announcement. * @example * // Create one Announcement * const Announcement = await prisma.announcement.create({ * data: { * // ... data to create a Announcement * } * }) * */ create(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Announcements. * @param {AnnouncementCreateManyArgs} args - Arguments to create many Announcements. * @example * // Create many Announcements * const announcement = await prisma.announcement.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Announcements and returns the data saved in the database. * @param {AnnouncementCreateManyAndReturnArgs} args - Arguments to create many Announcements. * @example * // Create many Announcements * const announcement = await prisma.announcement.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Announcements and only return the `id` * const announcementWithIdOnly = await prisma.announcement.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Announcement. * @param {AnnouncementDeleteArgs} args - Arguments to delete one Announcement. * @example * // Delete one Announcement * const Announcement = await prisma.announcement.delete({ * where: { * // ... filter to delete one Announcement * } * }) * */ delete(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Announcement. * @param {AnnouncementUpdateArgs} args - Arguments to update one Announcement. * @example * // Update one Announcement * const announcement = await prisma.announcement.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Announcements. * @param {AnnouncementDeleteManyArgs} args - Arguments to filter Announcements to delete. * @example * // Delete a few Announcements * const { count } = await prisma.announcement.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Announcements. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AnnouncementUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Announcements * const announcement = await prisma.announcement.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Announcements and returns the data updated in the database. * @param {AnnouncementUpdateManyAndReturnArgs} args - Arguments to update many Announcements. * @example * // Update many Announcements * const announcement = await prisma.announcement.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Announcements and only return the `id` * const announcementWithIdOnly = await prisma.announcement.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Announcement. * @param {AnnouncementUpsertArgs} args - Arguments to update or create a Announcement. * @example * // Update or create a Announcement * const announcement = await prisma.announcement.upsert({ * create: { * // ... data to create a Announcement * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Announcement we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Announcements. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AnnouncementCountArgs} args - Arguments to filter Announcements to count. * @example * // Count the number of Announcements * const count = await prisma.announcement.count({ * where: { * // ... the filter for the Announcements 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 Announcement. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AnnouncementAggregateArgs} 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 Announcement. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AnnouncementGroupByArgs} 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 AnnouncementGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AnnouncementGroupByArgs['orderBy'] } : { orderBy?: AnnouncementGroupByArgs['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 ? GetAnnouncementGroupByPayload : Prisma.PrismaPromise /** * Fields of the Announcement model */ readonly fields: AnnouncementFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Announcement. * 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__AnnouncementClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Announcement model */ interface AnnouncementFieldRefs { readonly id: FieldRef<"Announcement", 'String'> readonly title: FieldRef<"Announcement", 'String'> readonly description: FieldRef<"Announcement", 'String'> readonly href: FieldRef<"Announcement", 'String'> readonly action: FieldRef<"Announcement", 'String'> readonly isPublished: FieldRef<"Announcement", 'Boolean'> readonly publishedAt: FieldRef<"Announcement", 'DateTime'> readonly createdAt: FieldRef<"Announcement", 'DateTime'> readonly updatedAt: FieldRef<"Announcement", 'DateTime'> } // Custom InputTypes /** * Announcement findUnique */ export type AnnouncementFindUniqueArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * Filter, which Announcement to fetch. */ where: AnnouncementWhereUniqueInput } /** * Announcement findUniqueOrThrow */ export type AnnouncementFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * Filter, which Announcement to fetch. */ where: AnnouncementWhereUniqueInput } /** * Announcement findFirst */ export type AnnouncementFindFirstArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * Filter, which Announcement to fetch. */ where?: AnnouncementWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Announcements to fetch. */ orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Announcements. */ cursor?: AnnouncementWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Announcements 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` Announcements. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Announcements. */ distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[] } /** * Announcement findFirstOrThrow */ export type AnnouncementFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * Filter, which Announcement to fetch. */ where?: AnnouncementWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Announcements to fetch. */ orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Announcements. */ cursor?: AnnouncementWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Announcements 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` Announcements. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Announcements. */ distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[] } /** * Announcement findMany */ export type AnnouncementFindManyArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * Filter, which Announcements to fetch. */ where?: AnnouncementWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Announcements to fetch. */ orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Announcements. */ cursor?: AnnouncementWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Announcements 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` Announcements. */ skip?: number distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[] } /** * Announcement create */ export type AnnouncementCreateArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * The data needed to create a Announcement. */ data: XOR } /** * Announcement createMany */ export type AnnouncementCreateManyArgs = { /** * The data used to create many Announcements. */ data: AnnouncementCreateManyInput | AnnouncementCreateManyInput[] skipDuplicates?: boolean } /** * Announcement createManyAndReturn */ export type AnnouncementCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelectCreateManyAndReturn | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * The data used to create many Announcements. */ data: AnnouncementCreateManyInput | AnnouncementCreateManyInput[] skipDuplicates?: boolean } /** * Announcement update */ export type AnnouncementUpdateArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * The data needed to update a Announcement. */ data: XOR /** * Choose, which Announcement to update. */ where: AnnouncementWhereUniqueInput } /** * Announcement updateMany */ export type AnnouncementUpdateManyArgs = { /** * The data used to update Announcements. */ data: XOR /** * Filter which Announcements to update */ where?: AnnouncementWhereInput /** * Limit how many Announcements to update. */ limit?: number } /** * Announcement updateManyAndReturn */ export type AnnouncementUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelectUpdateManyAndReturn | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * The data used to update Announcements. */ data: XOR /** * Filter which Announcements to update */ where?: AnnouncementWhereInput /** * Limit how many Announcements to update. */ limit?: number } /** * Announcement upsert */ export type AnnouncementUpsertArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * The filter to search for the Announcement to update in case it exists. */ where: AnnouncementWhereUniqueInput /** * In case the Announcement found by the `where` argument doesn't exist, create a new Announcement with this data. */ create: XOR /** * In case the Announcement was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Announcement delete */ export type AnnouncementDeleteArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null /** * Filter which Announcement to delete. */ where: AnnouncementWhereUniqueInput } /** * Announcement deleteMany */ export type AnnouncementDeleteManyArgs = { /** * Filter which Announcements to delete */ where?: AnnouncementWhereInput /** * Limit how many Announcements to delete. */ limit?: number } /** * Announcement without action */ export type AnnouncementDefaultArgs = { /** * Select specific fields to fetch from the Announcement */ select?: AnnouncementSelect | null /** * Omit specific fields from the Announcement */ omit?: AnnouncementOmit | null } /** * Model EmailDelivery */ export type AggregateEmailDelivery = { _count: EmailDeliveryCountAggregateOutputType | null _min: EmailDeliveryMinAggregateOutputType | null _max: EmailDeliveryMaxAggregateOutputType | null } export type EmailDeliveryMinAggregateOutputType = { message_id: string | null recipient: string | null subject: string | null region: string | null sent_at: Date | null } export type EmailDeliveryMaxAggregateOutputType = { message_id: string | null recipient: string | null subject: string | null region: string | null sent_at: Date | null } export type EmailDeliveryCountAggregateOutputType = { message_id: number recipient: number subject: number region: number sent_at: number _all: number } export type EmailDeliveryMinAggregateInputType = { message_id?: true recipient?: true subject?: true region?: true sent_at?: true } export type EmailDeliveryMaxAggregateInputType = { message_id?: true recipient?: true subject?: true region?: true sent_at?: true } export type EmailDeliveryCountAggregateInputType = { message_id?: true recipient?: true subject?: true region?: true sent_at?: true _all?: true } export type EmailDeliveryAggregateArgs = { /** * Filter which EmailDelivery to aggregate. */ where?: EmailDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailDeliveries to fetch. */ orderBy?: EmailDeliveryOrderByWithRelationInput | EmailDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: EmailDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailDeliveries 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` EmailDeliveries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmailDeliveries **/ _count?: true | EmailDeliveryCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailDeliveryMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailDeliveryMaxAggregateInputType } export type GetEmailDeliveryAggregateType = { [P in keyof T & keyof AggregateEmailDelivery]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type EmailDeliveryGroupByArgs = { where?: EmailDeliveryWhereInput orderBy?: EmailDeliveryOrderByWithAggregationInput | EmailDeliveryOrderByWithAggregationInput[] by: EmailDeliveryScalarFieldEnum[] | EmailDeliveryScalarFieldEnum having?: EmailDeliveryScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailDeliveryCountAggregateInputType | true _min?: EmailDeliveryMinAggregateInputType _max?: EmailDeliveryMaxAggregateInputType } export type EmailDeliveryGroupByOutputType = { message_id: string recipient: string subject: string region: string sent_at: Date _count: EmailDeliveryCountAggregateOutputType | null _min: EmailDeliveryMinAggregateOutputType | null _max: EmailDeliveryMaxAggregateOutputType | null } type GetEmailDeliveryGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof EmailDeliveryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type EmailDeliverySelect = $Extensions.GetSelect<{ message_id?: boolean recipient?: boolean subject?: boolean region?: boolean sent_at?: boolean }, ExtArgs["result"]["emailDelivery"]> export type EmailDeliverySelectCreateManyAndReturn = $Extensions.GetSelect<{ message_id?: boolean recipient?: boolean subject?: boolean region?: boolean sent_at?: boolean }, ExtArgs["result"]["emailDelivery"]> export type EmailDeliverySelectUpdateManyAndReturn = $Extensions.GetSelect<{ message_id?: boolean recipient?: boolean subject?: boolean region?: boolean sent_at?: boolean }, ExtArgs["result"]["emailDelivery"]> export type EmailDeliverySelectScalar = { message_id?: boolean recipient?: boolean subject?: boolean region?: boolean sent_at?: boolean } export type EmailDeliveryOmit = $Extensions.GetOmit<"message_id" | "recipient" | "subject" | "region" | "sent_at", ExtArgs["result"]["emailDelivery"]> export type $EmailDeliveryPayload = { name: "EmailDelivery" objects: {} scalars: $Extensions.GetPayloadResult<{ message_id: string recipient: string subject: string region: string sent_at: Date }, ExtArgs["result"]["emailDelivery"]> composites: {} } type EmailDeliveryGetPayload = $Result.GetResult type EmailDeliveryCountArgs = Omit & { select?: EmailDeliveryCountAggregateInputType | true } export interface EmailDeliveryDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmailDelivery'], meta: { name: 'EmailDelivery' } } /** * Find zero or one EmailDelivery that matches the filter. * @param {EmailDeliveryFindUniqueArgs} args - Arguments to find a EmailDelivery * @example * // Get one EmailDelivery * const emailDelivery = await prisma.emailDelivery.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one EmailDelivery that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailDeliveryFindUniqueOrThrowArgs} args - Arguments to find a EmailDelivery * @example * // Get one EmailDelivery * const emailDelivery = await prisma.emailDelivery.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first EmailDelivery 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 {EmailDeliveryFindFirstArgs} args - Arguments to find a EmailDelivery * @example * // Get one EmailDelivery * const emailDelivery = await prisma.emailDelivery.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first EmailDelivery 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 {EmailDeliveryFindFirstOrThrowArgs} args - Arguments to find a EmailDelivery * @example * // Get one EmailDelivery * const emailDelivery = await prisma.emailDelivery.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more EmailDeliveries 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 {EmailDeliveryFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmailDeliveries * const emailDeliveries = await prisma.emailDelivery.findMany() * * // Get first 10 EmailDeliveries * const emailDeliveries = await prisma.emailDelivery.findMany({ take: 10 }) * * // Only select the `message_id` * const emailDeliveryWithMessage_idOnly = await prisma.emailDelivery.findMany({ select: { message_id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a EmailDelivery. * @param {EmailDeliveryCreateArgs} args - Arguments to create a EmailDelivery. * @example * // Create one EmailDelivery * const EmailDelivery = await prisma.emailDelivery.create({ * data: { * // ... data to create a EmailDelivery * } * }) * */ create(args: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many EmailDeliveries. * @param {EmailDeliveryCreateManyArgs} args - Arguments to create many EmailDeliveries. * @example * // Create many EmailDeliveries * const emailDelivery = await prisma.emailDelivery.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many EmailDeliveries and returns the data saved in the database. * @param {EmailDeliveryCreateManyAndReturnArgs} args - Arguments to create many EmailDeliveries. * @example * // Create many EmailDeliveries * const emailDelivery = await prisma.emailDelivery.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EmailDeliveries and only return the `message_id` * const emailDeliveryWithMessage_idOnly = await prisma.emailDelivery.createManyAndReturn({ * select: { message_id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a EmailDelivery. * @param {EmailDeliveryDeleteArgs} args - Arguments to delete one EmailDelivery. * @example * // Delete one EmailDelivery * const EmailDelivery = await prisma.emailDelivery.delete({ * where: { * // ... filter to delete one EmailDelivery * } * }) * */ delete(args: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one EmailDelivery. * @param {EmailDeliveryUpdateArgs} args - Arguments to update one EmailDelivery. * @example * // Update one EmailDelivery * const emailDelivery = await prisma.emailDelivery.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more EmailDeliveries. * @param {EmailDeliveryDeleteManyArgs} args - Arguments to filter EmailDeliveries to delete. * @example * // Delete a few EmailDeliveries * const { count } = await prisma.emailDelivery.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailDeliveries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailDeliveryUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmailDeliveries * const emailDelivery = await prisma.emailDelivery.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailDeliveries and returns the data updated in the database. * @param {EmailDeliveryUpdateManyAndReturnArgs} args - Arguments to update many EmailDeliveries. * @example * // Update many EmailDeliveries * const emailDelivery = await prisma.emailDelivery.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EmailDeliveries and only return the `message_id` * const emailDeliveryWithMessage_idOnly = await prisma.emailDelivery.updateManyAndReturn({ * select: { message_id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one EmailDelivery. * @param {EmailDeliveryUpsertArgs} args - Arguments to update or create a EmailDelivery. * @example * // Update or create a EmailDelivery * const emailDelivery = await prisma.emailDelivery.upsert({ * create: { * // ... data to create a EmailDelivery * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmailDelivery we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__EmailDeliveryClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of EmailDeliveries. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailDeliveryCountArgs} args - Arguments to filter EmailDeliveries to count. * @example * // Count the number of EmailDeliveries * const count = await prisma.emailDelivery.count({ * where: { * // ... the filter for the EmailDeliveries 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 EmailDelivery. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailDeliveryAggregateArgs} 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 EmailDelivery. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailDeliveryGroupByArgs} 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 EmailDeliveryGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: EmailDeliveryGroupByArgs['orderBy'] } : { orderBy?: EmailDeliveryGroupByArgs['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 ? GetEmailDeliveryGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmailDelivery model */ readonly fields: EmailDeliveryFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmailDelivery. * 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__EmailDeliveryClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the EmailDelivery model */ interface EmailDeliveryFieldRefs { readonly message_id: FieldRef<"EmailDelivery", 'String'> readonly recipient: FieldRef<"EmailDelivery", 'String'> readonly subject: FieldRef<"EmailDelivery", 'String'> readonly region: FieldRef<"EmailDelivery", 'String'> readonly sent_at: FieldRef<"EmailDelivery", 'DateTime'> } // Custom InputTypes /** * EmailDelivery findUnique */ export type EmailDeliveryFindUniqueArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * Filter, which EmailDelivery to fetch. */ where: EmailDeliveryWhereUniqueInput } /** * EmailDelivery findUniqueOrThrow */ export type EmailDeliveryFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * Filter, which EmailDelivery to fetch. */ where: EmailDeliveryWhereUniqueInput } /** * EmailDelivery findFirst */ export type EmailDeliveryFindFirstArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * Filter, which EmailDelivery to fetch. */ where?: EmailDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailDeliveries to fetch. */ orderBy?: EmailDeliveryOrderByWithRelationInput | EmailDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailDeliveries. */ cursor?: EmailDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailDeliveries 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` EmailDeliveries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailDeliveries. */ distinct?: EmailDeliveryScalarFieldEnum | EmailDeliveryScalarFieldEnum[] } /** * EmailDelivery findFirstOrThrow */ export type EmailDeliveryFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * Filter, which EmailDelivery to fetch. */ where?: EmailDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailDeliveries to fetch. */ orderBy?: EmailDeliveryOrderByWithRelationInput | EmailDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailDeliveries. */ cursor?: EmailDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailDeliveries 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` EmailDeliveries. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailDeliveries. */ distinct?: EmailDeliveryScalarFieldEnum | EmailDeliveryScalarFieldEnum[] } /** * EmailDelivery findMany */ export type EmailDeliveryFindManyArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * Filter, which EmailDeliveries to fetch. */ where?: EmailDeliveryWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailDeliveries to fetch. */ orderBy?: EmailDeliveryOrderByWithRelationInput | EmailDeliveryOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmailDeliveries. */ cursor?: EmailDeliveryWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailDeliveries 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` EmailDeliveries. */ skip?: number distinct?: EmailDeliveryScalarFieldEnum | EmailDeliveryScalarFieldEnum[] } /** * EmailDelivery create */ export type EmailDeliveryCreateArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * The data needed to create a EmailDelivery. */ data: XOR } /** * EmailDelivery createMany */ export type EmailDeliveryCreateManyArgs = { /** * The data used to create many EmailDeliveries. */ data: EmailDeliveryCreateManyInput | EmailDeliveryCreateManyInput[] skipDuplicates?: boolean } /** * EmailDelivery createManyAndReturn */ export type EmailDeliveryCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelectCreateManyAndReturn | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * The data used to create many EmailDeliveries. */ data: EmailDeliveryCreateManyInput | EmailDeliveryCreateManyInput[] skipDuplicates?: boolean } /** * EmailDelivery update */ export type EmailDeliveryUpdateArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * The data needed to update a EmailDelivery. */ data: XOR /** * Choose, which EmailDelivery to update. */ where: EmailDeliveryWhereUniqueInput } /** * EmailDelivery updateMany */ export type EmailDeliveryUpdateManyArgs = { /** * The data used to update EmailDeliveries. */ data: XOR /** * Filter which EmailDeliveries to update */ where?: EmailDeliveryWhereInput /** * Limit how many EmailDeliveries to update. */ limit?: number } /** * EmailDelivery updateManyAndReturn */ export type EmailDeliveryUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelectUpdateManyAndReturn | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * The data used to update EmailDeliveries. */ data: XOR /** * Filter which EmailDeliveries to update */ where?: EmailDeliveryWhereInput /** * Limit how many EmailDeliveries to update. */ limit?: number } /** * EmailDelivery upsert */ export type EmailDeliveryUpsertArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * The filter to search for the EmailDelivery to update in case it exists. */ where: EmailDeliveryWhereUniqueInput /** * In case the EmailDelivery found by the `where` argument doesn't exist, create a new EmailDelivery with this data. */ create: XOR /** * In case the EmailDelivery was found with the provided `where` argument, update it with this data. */ update: XOR } /** * EmailDelivery delete */ export type EmailDeliveryDeleteArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null /** * Filter which EmailDelivery to delete. */ where: EmailDeliveryWhereUniqueInput } /** * EmailDelivery deleteMany */ export type EmailDeliveryDeleteManyArgs = { /** * Filter which EmailDeliveries to delete */ where?: EmailDeliveryWhereInput /** * Limit how many EmailDeliveries to delete. */ limit?: number } /** * EmailDelivery without action */ export type EmailDeliveryDefaultArgs = { /** * Select specific fields to fetch from the EmailDelivery */ select?: EmailDeliverySelect | null /** * Omit specific fields from the EmailDelivery */ omit?: EmailDeliveryOmit | null } /** * Model User */ export type AggregateUser = { _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } export type UserAvgAggregateOutputType = { default_font_size: number | null } export type UserSumAggregateOutputType = { default_font_size: number | null } export type UserMinAggregateOutputType = { id: string | null name: string | null email: string | null emailVerified: boolean | null image: string | null createdAt: Date | null updatedAt: Date | null first_name: string | null last_name: string | null password_hash: string | null default_font_family: string | null default_font_size: number | null default_font_color: string | null notify_on_completion: boolean | null default_clip_length: string | null product_updates_unsubscribed_at: Date | null plan: string | null subscription_status: string | null subscription_provider: string | null is_admin: boolean | null stripe_customer_id: string | null stripe_subscription_id: string | null billing_period_start: Date | null billing_period_end: Date | null trial_ends_at: Date | null subscription_cancel_at: Date | null legacy_hd: boolean | null pending_plan: string | null pending_plan_invoice_id: string | null } export type UserMaxAggregateOutputType = { id: string | null name: string | null email: string | null emailVerified: boolean | null image: string | null createdAt: Date | null updatedAt: Date | null first_name: string | null last_name: string | null password_hash: string | null default_font_family: string | null default_font_size: number | null default_font_color: string | null notify_on_completion: boolean | null default_clip_length: string | null product_updates_unsubscribed_at: Date | null plan: string | null subscription_status: string | null subscription_provider: string | null is_admin: boolean | null stripe_customer_id: string | null stripe_subscription_id: string | null billing_period_start: Date | null billing_period_end: Date | null trial_ends_at: Date | null subscription_cancel_at: Date | null legacy_hd: boolean | null pending_plan: string | null pending_plan_invoice_id: string | null } export type UserCountAggregateOutputType = { id: number name: number email: number emailVerified: number image: number createdAt: number updatedAt: number first_name: number last_name: number password_hash: number default_font_family: number default_font_size: number default_font_color: number notify_on_completion: number default_clip_length: number create_settings: number product_updates_unsubscribed_at: number plan: number subscription_status: number subscription_provider: number is_admin: number stripe_customer_id: number stripe_subscription_id: number billing_period_start: number billing_period_end: number trial_ends_at: number subscription_cancel_at: number legacy_hd: number pending_plan: number pending_plan_invoice_id: number _all: number } export type UserAvgAggregateInputType = { default_font_size?: true } export type UserSumAggregateInputType = { default_font_size?: true } export type UserMinAggregateInputType = { id?: true name?: true email?: true emailVerified?: true image?: true createdAt?: true updatedAt?: true first_name?: true last_name?: true password_hash?: true default_font_family?: true default_font_size?: true default_font_color?: true notify_on_completion?: true default_clip_length?: true product_updates_unsubscribed_at?: true plan?: true subscription_status?: true subscription_provider?: true is_admin?: true stripe_customer_id?: true stripe_subscription_id?: true billing_period_start?: true billing_period_end?: true trial_ends_at?: true subscription_cancel_at?: true legacy_hd?: true pending_plan?: true pending_plan_invoice_id?: true } export type UserMaxAggregateInputType = { id?: true name?: true email?: true emailVerified?: true image?: true createdAt?: true updatedAt?: true first_name?: true last_name?: true password_hash?: true default_font_family?: true default_font_size?: true default_font_color?: true notify_on_completion?: true default_clip_length?: true product_updates_unsubscribed_at?: true plan?: true subscription_status?: true subscription_provider?: true is_admin?: true stripe_customer_id?: true stripe_subscription_id?: true billing_period_start?: true billing_period_end?: true trial_ends_at?: true subscription_cancel_at?: true legacy_hd?: true pending_plan?: true pending_plan_invoice_id?: true } export type UserCountAggregateInputType = { id?: true name?: true email?: true emailVerified?: true image?: true createdAt?: true updatedAt?: true first_name?: true last_name?: true password_hash?: true default_font_family?: true default_font_size?: true default_font_color?: true notify_on_completion?: true default_clip_length?: true create_settings?: true product_updates_unsubscribed_at?: true plan?: true subscription_status?: true subscription_provider?: true is_admin?: true stripe_customer_id?: true stripe_subscription_id?: true billing_period_start?: true billing_period_end?: true trial_ends_at?: true subscription_cancel_at?: true legacy_hd?: true pending_plan?: true pending_plan_invoice_id?: true _all?: true } export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UserAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType } export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserGroupByArgs = { where?: UserWhereInput orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[] by: UserScalarFieldEnum[] | UserScalarFieldEnum having?: UserScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserCountAggregateInputType | true _avg?: UserAvgAggregateInputType _sum?: UserSumAggregateInputType _min?: UserMinAggregateInputType _max?: UserMaxAggregateInputType } export type UserGroupByOutputType = { id: string name: string email: string emailVerified: boolean image: string | null createdAt: Date updatedAt: Date first_name: string | null last_name: string | null password_hash: string | null default_font_family: string | null default_font_size: number | null default_font_color: string | null notify_on_completion: boolean default_clip_length: string create_settings: JsonValue product_updates_unsubscribed_at: Date | null plan: string subscription_status: string subscription_provider: string | null is_admin: boolean stripe_customer_id: string | null stripe_subscription_id: string | null billing_period_start: Date | null billing_period_end: Date | null trial_ends_at: Date | null subscription_cancel_at: Date | null legacy_hd: boolean pending_plan: string | null pending_plan_invoice_id: string | null _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null _sum: UserSumAggregateOutputType | null _min: UserMinAggregateOutputType | null _max: UserMaxAggregateOutputType | null } type GetUserGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserSelect = $Extensions.GetSelect<{ id?: boolean name?: boolean email?: boolean emailVerified?: boolean image?: boolean createdAt?: boolean updatedAt?: boolean first_name?: boolean last_name?: boolean password_hash?: boolean default_font_family?: boolean default_font_size?: boolean default_font_color?: boolean notify_on_completion?: boolean default_clip_length?: boolean create_settings?: boolean product_updates_unsubscribed_at?: boolean plan?: boolean subscription_status?: boolean subscription_provider?: boolean is_admin?: boolean stripe_customer_id?: boolean stripe_subscription_id?: boolean billing_period_start?: boolean billing_period_end?: boolean trial_ends_at?: boolean subscription_cancel_at?: boolean legacy_hd?: boolean pending_plan?: boolean pending_plan_invoice_id?: boolean tasks?: boolean | User$tasksArgs sessions?: boolean | User$sessionsArgs accounts?: boolean | User$accountsArgs app_settings?: boolean | User$app_settingsArgs feature_flags_updated?: boolean | User$feature_flags_updatedArgs acquisition?: boolean | User$acquisitionArgs affiliate?: boolean | User$affiliateArgs reviewed_affiliates?: boolean | User$reviewed_affiliatesArgs social_accounts?: boolean | User$social_accountsArgs social_oauth_states?: boolean | User$social_oauth_statesArgs social_posts?: boolean | User$social_postsArgs feature_tours?: boolean | User$feature_toursArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> export type UserSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean email?: boolean emailVerified?: boolean image?: boolean createdAt?: boolean updatedAt?: boolean first_name?: boolean last_name?: boolean password_hash?: boolean default_font_family?: boolean default_font_size?: boolean default_font_color?: boolean notify_on_completion?: boolean default_clip_length?: boolean create_settings?: boolean product_updates_unsubscribed_at?: boolean plan?: boolean subscription_status?: boolean subscription_provider?: boolean is_admin?: boolean stripe_customer_id?: boolean stripe_subscription_id?: boolean billing_period_start?: boolean billing_period_end?: boolean trial_ends_at?: boolean subscription_cancel_at?: boolean legacy_hd?: boolean pending_plan?: boolean pending_plan_invoice_id?: boolean }, ExtArgs["result"]["user"]> export type UserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean name?: boolean email?: boolean emailVerified?: boolean image?: boolean createdAt?: boolean updatedAt?: boolean first_name?: boolean last_name?: boolean password_hash?: boolean default_font_family?: boolean default_font_size?: boolean default_font_color?: boolean notify_on_completion?: boolean default_clip_length?: boolean create_settings?: boolean product_updates_unsubscribed_at?: boolean plan?: boolean subscription_status?: boolean subscription_provider?: boolean is_admin?: boolean stripe_customer_id?: boolean stripe_subscription_id?: boolean billing_period_start?: boolean billing_period_end?: boolean trial_ends_at?: boolean subscription_cancel_at?: boolean legacy_hd?: boolean pending_plan?: boolean pending_plan_invoice_id?: boolean }, ExtArgs["result"]["user"]> export type UserSelectScalar = { id?: boolean name?: boolean email?: boolean emailVerified?: boolean image?: boolean createdAt?: boolean updatedAt?: boolean first_name?: boolean last_name?: boolean password_hash?: boolean default_font_family?: boolean default_font_size?: boolean default_font_color?: boolean notify_on_completion?: boolean default_clip_length?: boolean create_settings?: boolean product_updates_unsubscribed_at?: boolean plan?: boolean subscription_status?: boolean subscription_provider?: boolean is_admin?: boolean stripe_customer_id?: boolean stripe_subscription_id?: boolean billing_period_start?: boolean billing_period_end?: boolean trial_ends_at?: boolean subscription_cancel_at?: boolean legacy_hd?: boolean pending_plan?: boolean pending_plan_invoice_id?: boolean } export type UserOmit = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "first_name" | "last_name" | "password_hash" | "default_font_family" | "default_font_size" | "default_font_color" | "notify_on_completion" | "default_clip_length" | "create_settings" | "product_updates_unsubscribed_at" | "plan" | "subscription_status" | "subscription_provider" | "is_admin" | "stripe_customer_id" | "stripe_subscription_id" | "billing_period_start" | "billing_period_end" | "trial_ends_at" | "subscription_cancel_at" | "legacy_hd" | "pending_plan" | "pending_plan_invoice_id", ExtArgs["result"]["user"]> export type UserInclude = { tasks?: boolean | User$tasksArgs sessions?: boolean | User$sessionsArgs accounts?: boolean | User$accountsArgs app_settings?: boolean | User$app_settingsArgs feature_flags_updated?: boolean | User$feature_flags_updatedArgs acquisition?: boolean | User$acquisitionArgs affiliate?: boolean | User$affiliateArgs reviewed_affiliates?: boolean | User$reviewed_affiliatesArgs social_accounts?: boolean | User$social_accountsArgs social_oauth_states?: boolean | User$social_oauth_statesArgs social_posts?: boolean | User$social_postsArgs feature_tours?: boolean | User$feature_toursArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} export type UserIncludeUpdateManyAndReturn = {} export type $UserPayload = { name: "User" objects: { tasks: Prisma.$TaskPayload[] sessions: Prisma.$SessionPayload[] accounts: Prisma.$AccountPayload[] app_settings: Prisma.$AppSettingPayload[] feature_flags_updated: Prisma.$FeatureFlagPayload[] acquisition: Prisma.$UserAcquisitionPayload | null affiliate: Prisma.$AffiliatePayload | null reviewed_affiliates: Prisma.$AffiliatePayload[] social_accounts: Prisma.$SocialAccountPayload[] social_oauth_states: Prisma.$SocialOauthStatePayload[] social_posts: Prisma.$SocialPostPayload[] feature_tours: Prisma.$UserFeatureTourPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string name: string email: string emailVerified: boolean image: string | null createdAt: Date updatedAt: Date first_name: string | null last_name: string | null password_hash: string | null default_font_family: string | null default_font_size: number | null default_font_color: string | null notify_on_completion: boolean default_clip_length: string create_settings: Prisma.JsonValue product_updates_unsubscribed_at: Date | null plan: string subscription_status: string subscription_provider: string | null is_admin: boolean stripe_customer_id: string | null stripe_subscription_id: string | null billing_period_start: Date | null billing_period_end: Date | null trial_ends_at: Date | null subscription_cancel_at: Date | null legacy_hd: boolean pending_plan: string | null pending_plan_invoice_id: string | null }, ExtArgs["result"]["user"]> composites: {} } type UserGetPayload = $Result.GetResult type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true } export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first User that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first User that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Users that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends UserGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserGroupByArgs['orderBy'] } : { orderBy?: UserGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tasks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> sessions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> accounts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> app_settings = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> feature_flags_updated = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> acquisition = {}>(args?: Subset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> affiliate = {}>(args?: Subset>): Prisma__AffiliateClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> reviewed_affiliates = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> social_accounts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> social_oauth_states = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> social_posts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> feature_tours = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the User model */ interface UserFieldRefs { readonly id: FieldRef<"User", 'String'> readonly name: FieldRef<"User", 'String'> readonly email: FieldRef<"User", 'String'> readonly emailVerified: FieldRef<"User", 'Boolean'> readonly image: FieldRef<"User", 'String'> readonly createdAt: FieldRef<"User", 'DateTime'> readonly updatedAt: FieldRef<"User", 'DateTime'> readonly first_name: FieldRef<"User", 'String'> readonly last_name: FieldRef<"User", 'String'> readonly password_hash: FieldRef<"User", 'String'> readonly default_font_family: FieldRef<"User", 'String'> readonly default_font_size: FieldRef<"User", 'Int'> readonly default_font_color: FieldRef<"User", 'String'> readonly notify_on_completion: FieldRef<"User", 'Boolean'> readonly default_clip_length: FieldRef<"User", 'String'> readonly create_settings: FieldRef<"User", 'Json'> readonly product_updates_unsubscribed_at: FieldRef<"User", 'DateTime'> readonly plan: FieldRef<"User", 'String'> readonly subscription_status: FieldRef<"User", 'String'> readonly subscription_provider: FieldRef<"User", 'String'> readonly is_admin: FieldRef<"User", 'Boolean'> readonly stripe_customer_id: FieldRef<"User", 'String'> readonly stripe_subscription_id: FieldRef<"User", 'String'> readonly billing_period_start: FieldRef<"User", 'DateTime'> readonly billing_period_end: FieldRef<"User", 'DateTime'> readonly trial_ends_at: FieldRef<"User", 'DateTime'> readonly subscription_cancel_at: FieldRef<"User", 'DateTime'> readonly legacy_hd: FieldRef<"User", 'Boolean'> readonly pending_plan: FieldRef<"User", 'String'> readonly pending_plan_invoice_id: FieldRef<"User", 'String'> } // Custom InputTypes /** * User findUnique */ export type UserFindUniqueArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where: UserWhereUniqueInput } /** * User findFirst */ export type UserFindFirstArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which User to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User findMany */ export type UserFindManyArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter, which Users to fetch. */ where?: UserWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: UserWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Users. */ skip?: number distinct?: UserScalarFieldEnum | UserScalarFieldEnum[] } /** * User create */ export type UserCreateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to create a User. */ data: XOR } /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectCreateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to create many Users. */ data: UserCreateManyInput | UserCreateManyInput[] skipDuplicates?: boolean } /** * User update */ export type UserUpdateArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The data needed to update a User. */ data: XOR /** * Choose, which User to update. */ where: UserWhereUniqueInput } /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelectUpdateManyAndReturn | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * The data used to update Users. */ data: XOR /** * Filter which Users to update */ where?: UserWhereInput /** * Limit how many Users to update. */ limit?: number } /** * User upsert */ export type UserUpsertArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * The filter to search for the User to update in case it exists. */ where: UserWhereUniqueInput /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: XOR /** * In case the User was found with the provided `where` argument, update it with this data. */ update: XOR } /** * User delete */ export type UserDeleteArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null /** * Filter which User to delete. */ where: UserWhereUniqueInput } /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: UserWhereInput /** * Limit how many Users to delete. */ limit?: number } /** * User.tasks */ export type User$tasksArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null where?: TaskWhereInput orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] cursor?: TaskWhereUniqueInput take?: number skip?: number distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * User.sessions */ export type User$sessionsArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null where?: SessionWhereInput orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] cursor?: SessionWhereUniqueInput take?: number skip?: number distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * User.accounts */ export type User$accountsArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null where?: AccountWhereInput orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] cursor?: AccountWhereUniqueInput take?: number skip?: number distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] } /** * User.app_settings */ export type User$app_settingsArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null where?: AppSettingWhereInput orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] cursor?: AppSettingWhereUniqueInput take?: number skip?: number distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[] } /** * User.feature_flags_updated */ export type User$feature_flags_updatedArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null where?: FeatureFlagWhereInput orderBy?: FeatureFlagOrderByWithRelationInput | FeatureFlagOrderByWithRelationInput[] cursor?: FeatureFlagWhereUniqueInput take?: number skip?: number distinct?: FeatureFlagScalarFieldEnum | FeatureFlagScalarFieldEnum[] } /** * User.acquisition */ export type User$acquisitionArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null where?: UserAcquisitionWhereInput } /** * User.affiliate */ export type User$affiliateArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null where?: AffiliateWhereInput } /** * User.reviewed_affiliates */ export type User$reviewed_affiliatesArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null where?: AffiliateWhereInput orderBy?: AffiliateOrderByWithRelationInput | AffiliateOrderByWithRelationInput[] cursor?: AffiliateWhereUniqueInput take?: number skip?: number distinct?: AffiliateScalarFieldEnum | AffiliateScalarFieldEnum[] } /** * User.social_accounts */ export type User$social_accountsArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null where?: SocialAccountWhereInput orderBy?: SocialAccountOrderByWithRelationInput | SocialAccountOrderByWithRelationInput[] cursor?: SocialAccountWhereUniqueInput take?: number skip?: number distinct?: SocialAccountScalarFieldEnum | SocialAccountScalarFieldEnum[] } /** * User.social_oauth_states */ export type User$social_oauth_statesArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null where?: SocialOauthStateWhereInput orderBy?: SocialOauthStateOrderByWithRelationInput | SocialOauthStateOrderByWithRelationInput[] cursor?: SocialOauthStateWhereUniqueInput take?: number skip?: number distinct?: SocialOauthStateScalarFieldEnum | SocialOauthStateScalarFieldEnum[] } /** * User.social_posts */ export type User$social_postsArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null where?: SocialPostWhereInput orderBy?: SocialPostOrderByWithRelationInput | SocialPostOrderByWithRelationInput[] cursor?: SocialPostWhereUniqueInput take?: number skip?: number distinct?: SocialPostScalarFieldEnum | SocialPostScalarFieldEnum[] } /** * User.feature_tours */ export type User$feature_toursArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null where?: UserFeatureTourWhereInput orderBy?: UserFeatureTourOrderByWithRelationInput | UserFeatureTourOrderByWithRelationInput[] cursor?: UserFeatureTourWhereUniqueInput take?: number skip?: number distinct?: UserFeatureTourScalarFieldEnum | UserFeatureTourScalarFieldEnum[] } /** * User without action */ export type UserDefaultArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null } /** * Model UserAcquisition */ export type AggregateUserAcquisition = { _count: UserAcquisitionCountAggregateOutputType | null _min: UserAcquisitionMinAggregateOutputType | null _max: UserAcquisitionMaxAggregateOutputType | null } export type UserAcquisitionMinAggregateOutputType = { user_id: string | null utm_source: string | null utm_medium: string | null utm_campaign: string | null utm_content: string | null utm_term: string | null ref: string | null referrer_host: string | null landing_path: string | null first_seen_at: Date | null first_clip_exported_at: Date | null created_at: Date | null } export type UserAcquisitionMaxAggregateOutputType = { user_id: string | null utm_source: string | null utm_medium: string | null utm_campaign: string | null utm_content: string | null utm_term: string | null ref: string | null referrer_host: string | null landing_path: string | null first_seen_at: Date | null first_clip_exported_at: Date | null created_at: Date | null } export type UserAcquisitionCountAggregateOutputType = { user_id: number utm_source: number utm_medium: number utm_campaign: number utm_content: number utm_term: number ref: number referrer_host: number landing_path: number first_seen_at: number first_clip_exported_at: number created_at: number _all: number } export type UserAcquisitionMinAggregateInputType = { user_id?: true utm_source?: true utm_medium?: true utm_campaign?: true utm_content?: true utm_term?: true ref?: true referrer_host?: true landing_path?: true first_seen_at?: true first_clip_exported_at?: true created_at?: true } export type UserAcquisitionMaxAggregateInputType = { user_id?: true utm_source?: true utm_medium?: true utm_campaign?: true utm_content?: true utm_term?: true ref?: true referrer_host?: true landing_path?: true first_seen_at?: true first_clip_exported_at?: true created_at?: true } export type UserAcquisitionCountAggregateInputType = { user_id?: true utm_source?: true utm_medium?: true utm_campaign?: true utm_content?: true utm_term?: true ref?: true referrer_host?: true landing_path?: true first_seen_at?: true first_clip_exported_at?: true created_at?: true _all?: true } export type UserAcquisitionAggregateArgs = { /** * Filter which UserAcquisition to aggregate. */ where?: UserAcquisitionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserAcquisitions to fetch. */ orderBy?: UserAcquisitionOrderByWithRelationInput | UserAcquisitionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserAcquisitionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserAcquisitions 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` UserAcquisitions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserAcquisitions **/ _count?: true | UserAcquisitionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserAcquisitionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserAcquisitionMaxAggregateInputType } export type GetUserAcquisitionAggregateType = { [P in keyof T & keyof AggregateUserAcquisition]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserAcquisitionGroupByArgs = { where?: UserAcquisitionWhereInput orderBy?: UserAcquisitionOrderByWithAggregationInput | UserAcquisitionOrderByWithAggregationInput[] by: UserAcquisitionScalarFieldEnum[] | UserAcquisitionScalarFieldEnum having?: UserAcquisitionScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserAcquisitionCountAggregateInputType | true _min?: UserAcquisitionMinAggregateInputType _max?: UserAcquisitionMaxAggregateInputType } export type UserAcquisitionGroupByOutputType = { user_id: string utm_source: string | null utm_medium: string | null utm_campaign: string | null utm_content: string | null utm_term: string | null ref: string | null referrer_host: string | null landing_path: string | null first_seen_at: Date | null first_clip_exported_at: Date | null created_at: Date _count: UserAcquisitionCountAggregateOutputType | null _min: UserAcquisitionMinAggregateOutputType | null _max: UserAcquisitionMaxAggregateOutputType | null } type GetUserAcquisitionGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserAcquisitionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserAcquisitionSelect = $Extensions.GetSelect<{ user_id?: boolean utm_source?: boolean utm_medium?: boolean utm_campaign?: boolean utm_content?: boolean utm_term?: boolean ref?: boolean referrer_host?: boolean landing_path?: boolean first_seen_at?: boolean first_clip_exported_at?: boolean created_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["userAcquisition"]> export type UserAcquisitionSelectCreateManyAndReturn = $Extensions.GetSelect<{ user_id?: boolean utm_source?: boolean utm_medium?: boolean utm_campaign?: boolean utm_content?: boolean utm_term?: boolean ref?: boolean referrer_host?: boolean landing_path?: boolean first_seen_at?: boolean first_clip_exported_at?: boolean created_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["userAcquisition"]> export type UserAcquisitionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ user_id?: boolean utm_source?: boolean utm_medium?: boolean utm_campaign?: boolean utm_content?: boolean utm_term?: boolean ref?: boolean referrer_host?: boolean landing_path?: boolean first_seen_at?: boolean first_clip_exported_at?: boolean created_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["userAcquisition"]> export type UserAcquisitionSelectScalar = { user_id?: boolean utm_source?: boolean utm_medium?: boolean utm_campaign?: boolean utm_content?: boolean utm_term?: boolean ref?: boolean referrer_host?: boolean landing_path?: boolean first_seen_at?: boolean first_clip_exported_at?: boolean created_at?: boolean } export type UserAcquisitionOmit = $Extensions.GetOmit<"user_id" | "utm_source" | "utm_medium" | "utm_campaign" | "utm_content" | "utm_term" | "ref" | "referrer_host" | "landing_path" | "first_seen_at" | "first_clip_exported_at" | "created_at", ExtArgs["result"]["userAcquisition"]> export type UserAcquisitionInclude = { user?: boolean | UserDefaultArgs } export type UserAcquisitionIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type UserAcquisitionIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $UserAcquisitionPayload = { name: "UserAcquisition" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ user_id: string utm_source: string | null utm_medium: string | null utm_campaign: string | null utm_content: string | null utm_term: string | null ref: string | null referrer_host: string | null landing_path: string | null first_seen_at: Date | null first_clip_exported_at: Date | null created_at: Date }, ExtArgs["result"]["userAcquisition"]> composites: {} } type UserAcquisitionGetPayload = $Result.GetResult type UserAcquisitionCountArgs = Omit & { select?: UserAcquisitionCountAggregateInputType | true } export interface UserAcquisitionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserAcquisition'], meta: { name: 'UserAcquisition' } } /** * Find zero or one UserAcquisition that matches the filter. * @param {UserAcquisitionFindUniqueArgs} args - Arguments to find a UserAcquisition * @example * // Get one UserAcquisition * const userAcquisition = await prisma.userAcquisition.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserAcquisition that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserAcquisitionFindUniqueOrThrowArgs} args - Arguments to find a UserAcquisition * @example * // Get one UserAcquisition * const userAcquisition = await prisma.userAcquisition.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserAcquisition 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 {UserAcquisitionFindFirstArgs} args - Arguments to find a UserAcquisition * @example * // Get one UserAcquisition * const userAcquisition = await prisma.userAcquisition.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserAcquisition 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 {UserAcquisitionFindFirstOrThrowArgs} args - Arguments to find a UserAcquisition * @example * // Get one UserAcquisition * const userAcquisition = await prisma.userAcquisition.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserAcquisitions 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 {UserAcquisitionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserAcquisitions * const userAcquisitions = await prisma.userAcquisition.findMany() * * // Get first 10 UserAcquisitions * const userAcquisitions = await prisma.userAcquisition.findMany({ take: 10 }) * * // Only select the `user_id` * const userAcquisitionWithUser_idOnly = await prisma.userAcquisition.findMany({ select: { user_id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a UserAcquisition. * @param {UserAcquisitionCreateArgs} args - Arguments to create a UserAcquisition. * @example * // Create one UserAcquisition * const UserAcquisition = await prisma.userAcquisition.create({ * data: { * // ... data to create a UserAcquisition * } * }) * */ create(args: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserAcquisitions. * @param {UserAcquisitionCreateManyArgs} args - Arguments to create many UserAcquisitions. * @example * // Create many UserAcquisitions * const userAcquisition = await prisma.userAcquisition.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many UserAcquisitions and returns the data saved in the database. * @param {UserAcquisitionCreateManyAndReturnArgs} args - Arguments to create many UserAcquisitions. * @example * // Create many UserAcquisitions * const userAcquisition = await prisma.userAcquisition.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserAcquisitions and only return the `user_id` * const userAcquisitionWithUser_idOnly = await prisma.userAcquisition.createManyAndReturn({ * select: { user_id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a UserAcquisition. * @param {UserAcquisitionDeleteArgs} args - Arguments to delete one UserAcquisition. * @example * // Delete one UserAcquisition * const UserAcquisition = await prisma.userAcquisition.delete({ * where: { * // ... filter to delete one UserAcquisition * } * }) * */ delete(args: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserAcquisition. * @param {UserAcquisitionUpdateArgs} args - Arguments to update one UserAcquisition. * @example * // Update one UserAcquisition * const userAcquisition = await prisma.userAcquisition.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserAcquisitions. * @param {UserAcquisitionDeleteManyArgs} args - Arguments to filter UserAcquisitions to delete. * @example * // Delete a few UserAcquisitions * const { count } = await prisma.userAcquisition.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserAcquisitions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAcquisitionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserAcquisitions * const userAcquisition = await prisma.userAcquisition.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserAcquisitions and returns the data updated in the database. * @param {UserAcquisitionUpdateManyAndReturnArgs} args - Arguments to update many UserAcquisitions. * @example * // Update many UserAcquisitions * const userAcquisition = await prisma.userAcquisition.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserAcquisitions and only return the `user_id` * const userAcquisitionWithUser_idOnly = await prisma.userAcquisition.updateManyAndReturn({ * select: { user_id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one UserAcquisition. * @param {UserAcquisitionUpsertArgs} args - Arguments to update or create a UserAcquisition. * @example * // Update or create a UserAcquisition * const userAcquisition = await prisma.userAcquisition.upsert({ * create: { * // ... data to create a UserAcquisition * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserAcquisition we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserAcquisitionClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserAcquisitions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAcquisitionCountArgs} args - Arguments to filter UserAcquisitions to count. * @example * // Count the number of UserAcquisitions * const count = await prisma.userAcquisition.count({ * where: { * // ... the filter for the UserAcquisitions 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 UserAcquisition. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAcquisitionAggregateArgs} 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 UserAcquisition. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAcquisitionGroupByArgs} 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 UserAcquisitionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserAcquisitionGroupByArgs['orderBy'] } : { orderBy?: UserAcquisitionGroupByArgs['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 ? GetUserAcquisitionGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserAcquisition model */ readonly fields: UserAcquisitionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserAcquisition. * 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__UserAcquisitionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the UserAcquisition model */ interface UserAcquisitionFieldRefs { readonly user_id: FieldRef<"UserAcquisition", 'String'> readonly utm_source: FieldRef<"UserAcquisition", 'String'> readonly utm_medium: FieldRef<"UserAcquisition", 'String'> readonly utm_campaign: FieldRef<"UserAcquisition", 'String'> readonly utm_content: FieldRef<"UserAcquisition", 'String'> readonly utm_term: FieldRef<"UserAcquisition", 'String'> readonly ref: FieldRef<"UserAcquisition", 'String'> readonly referrer_host: FieldRef<"UserAcquisition", 'String'> readonly landing_path: FieldRef<"UserAcquisition", 'String'> readonly first_seen_at: FieldRef<"UserAcquisition", 'DateTime'> readonly first_clip_exported_at: FieldRef<"UserAcquisition", 'DateTime'> readonly created_at: FieldRef<"UserAcquisition", 'DateTime'> } // Custom InputTypes /** * UserAcquisition findUnique */ export type UserAcquisitionFindUniqueArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * Filter, which UserAcquisition to fetch. */ where: UserAcquisitionWhereUniqueInput } /** * UserAcquisition findUniqueOrThrow */ export type UserAcquisitionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * Filter, which UserAcquisition to fetch. */ where: UserAcquisitionWhereUniqueInput } /** * UserAcquisition findFirst */ export type UserAcquisitionFindFirstArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * Filter, which UserAcquisition to fetch. */ where?: UserAcquisitionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserAcquisitions to fetch. */ orderBy?: UserAcquisitionOrderByWithRelationInput | UserAcquisitionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserAcquisitions. */ cursor?: UserAcquisitionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserAcquisitions 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` UserAcquisitions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserAcquisitions. */ distinct?: UserAcquisitionScalarFieldEnum | UserAcquisitionScalarFieldEnum[] } /** * UserAcquisition findFirstOrThrow */ export type UserAcquisitionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * Filter, which UserAcquisition to fetch. */ where?: UserAcquisitionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserAcquisitions to fetch. */ orderBy?: UserAcquisitionOrderByWithRelationInput | UserAcquisitionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserAcquisitions. */ cursor?: UserAcquisitionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserAcquisitions 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` UserAcquisitions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserAcquisitions. */ distinct?: UserAcquisitionScalarFieldEnum | UserAcquisitionScalarFieldEnum[] } /** * UserAcquisition findMany */ export type UserAcquisitionFindManyArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * Filter, which UserAcquisitions to fetch. */ where?: UserAcquisitionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserAcquisitions to fetch. */ orderBy?: UserAcquisitionOrderByWithRelationInput | UserAcquisitionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserAcquisitions. */ cursor?: UserAcquisitionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserAcquisitions 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` UserAcquisitions. */ skip?: number distinct?: UserAcquisitionScalarFieldEnum | UserAcquisitionScalarFieldEnum[] } /** * UserAcquisition create */ export type UserAcquisitionCreateArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * The data needed to create a UserAcquisition. */ data: XOR } /** * UserAcquisition createMany */ export type UserAcquisitionCreateManyArgs = { /** * The data used to create many UserAcquisitions. */ data: UserAcquisitionCreateManyInput | UserAcquisitionCreateManyInput[] skipDuplicates?: boolean } /** * UserAcquisition createManyAndReturn */ export type UserAcquisitionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelectCreateManyAndReturn | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * The data used to create many UserAcquisitions. */ data: UserAcquisitionCreateManyInput | UserAcquisitionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionIncludeCreateManyAndReturn | null } /** * UserAcquisition update */ export type UserAcquisitionUpdateArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * The data needed to update a UserAcquisition. */ data: XOR /** * Choose, which UserAcquisition to update. */ where: UserAcquisitionWhereUniqueInput } /** * UserAcquisition updateMany */ export type UserAcquisitionUpdateManyArgs = { /** * The data used to update UserAcquisitions. */ data: XOR /** * Filter which UserAcquisitions to update */ where?: UserAcquisitionWhereInput /** * Limit how many UserAcquisitions to update. */ limit?: number } /** * UserAcquisition updateManyAndReturn */ export type UserAcquisitionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelectUpdateManyAndReturn | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * The data used to update UserAcquisitions. */ data: XOR /** * Filter which UserAcquisitions to update */ where?: UserAcquisitionWhereInput /** * Limit how many UserAcquisitions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionIncludeUpdateManyAndReturn | null } /** * UserAcquisition upsert */ export type UserAcquisitionUpsertArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * The filter to search for the UserAcquisition to update in case it exists. */ where: UserAcquisitionWhereUniqueInput /** * In case the UserAcquisition found by the `where` argument doesn't exist, create a new UserAcquisition with this data. */ create: XOR /** * In case the UserAcquisition was found with the provided `where` argument, update it with this data. */ update: XOR } /** * UserAcquisition delete */ export type UserAcquisitionDeleteArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null /** * Filter which UserAcquisition to delete. */ where: UserAcquisitionWhereUniqueInput } /** * UserAcquisition deleteMany */ export type UserAcquisitionDeleteManyArgs = { /** * Filter which UserAcquisitions to delete */ where?: UserAcquisitionWhereInput /** * Limit how many UserAcquisitions to delete. */ limit?: number } /** * UserAcquisition without action */ export type UserAcquisitionDefaultArgs = { /** * Select specific fields to fetch from the UserAcquisition */ select?: UserAcquisitionSelect | null /** * Omit specific fields from the UserAcquisition */ omit?: UserAcquisitionOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserAcquisitionInclude | null } /** * Model Affiliate */ export type AggregateAffiliate = { _count: AffiliateCountAggregateOutputType | null _min: AffiliateMinAggregateOutputType | null _max: AffiliateMaxAggregateOutputType | null } export type AffiliateMinAggregateOutputType = { id: string | null user_id: string | null slug: string | null status: string | null platform: string | null profile_url: string | null audience_size: string | null video_url: string | null promotion_plan: string | null decline_reason: string | null stripe_promotion_code_id: string | null app_store_code_added_at: Date | null terms_accepted_at: Date | null reviewed_at: Date | null reviewed_by: string | null created_at: Date | null updated_at: Date | null } export type AffiliateMaxAggregateOutputType = { id: string | null user_id: string | null slug: string | null status: string | null platform: string | null profile_url: string | null audience_size: string | null video_url: string | null promotion_plan: string | null decline_reason: string | null stripe_promotion_code_id: string | null app_store_code_added_at: Date | null terms_accepted_at: Date | null reviewed_at: Date | null reviewed_by: string | null created_at: Date | null updated_at: Date | null } export type AffiliateCountAggregateOutputType = { id: number user_id: number slug: number status: number platform: number profile_url: number audience_size: number video_url: number promotion_plan: number decline_reason: number stripe_promotion_code_id: number app_store_code_added_at: number terms_accepted_at: number reviewed_at: number reviewed_by: number created_at: number updated_at: number _all: number } export type AffiliateMinAggregateInputType = { id?: true user_id?: true slug?: true status?: true platform?: true profile_url?: true audience_size?: true video_url?: true promotion_plan?: true decline_reason?: true stripe_promotion_code_id?: true app_store_code_added_at?: true terms_accepted_at?: true reviewed_at?: true reviewed_by?: true created_at?: true updated_at?: true } export type AffiliateMaxAggregateInputType = { id?: true user_id?: true slug?: true status?: true platform?: true profile_url?: true audience_size?: true video_url?: true promotion_plan?: true decline_reason?: true stripe_promotion_code_id?: true app_store_code_added_at?: true terms_accepted_at?: true reviewed_at?: true reviewed_by?: true created_at?: true updated_at?: true } export type AffiliateCountAggregateInputType = { id?: true user_id?: true slug?: true status?: true platform?: true profile_url?: true audience_size?: true video_url?: true promotion_plan?: true decline_reason?: true stripe_promotion_code_id?: true app_store_code_added_at?: true terms_accepted_at?: true reviewed_at?: true reviewed_by?: true created_at?: true updated_at?: true _all?: true } export type AffiliateAggregateArgs = { /** * Filter which Affiliate to aggregate. */ where?: AffiliateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Affiliates to fetch. */ orderBy?: AffiliateOrderByWithRelationInput | AffiliateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AffiliateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Affiliates 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` Affiliates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Affiliates **/ _count?: true | AffiliateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AffiliateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AffiliateMaxAggregateInputType } export type GetAffiliateAggregateType = { [P in keyof T & keyof AggregateAffiliate]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AffiliateGroupByArgs = { where?: AffiliateWhereInput orderBy?: AffiliateOrderByWithAggregationInput | AffiliateOrderByWithAggregationInput[] by: AffiliateScalarFieldEnum[] | AffiliateScalarFieldEnum having?: AffiliateScalarWhereWithAggregatesInput take?: number skip?: number _count?: AffiliateCountAggregateInputType | true _min?: AffiliateMinAggregateInputType _max?: AffiliateMaxAggregateInputType } export type AffiliateGroupByOutputType = { id: string user_id: string slug: string | null status: string platform: string profile_url: string audience_size: string video_url: string | null promotion_plan: string | null decline_reason: string | null stripe_promotion_code_id: string | null app_store_code_added_at: Date | null terms_accepted_at: Date reviewed_at: Date | null reviewed_by: string | null created_at: Date updated_at: Date _count: AffiliateCountAggregateOutputType | null _min: AffiliateMinAggregateOutputType | null _max: AffiliateMaxAggregateOutputType | null } type GetAffiliateGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AffiliateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AffiliateSelect = $Extensions.GetSelect<{ id?: boolean user_id?: boolean slug?: boolean status?: boolean platform?: boolean profile_url?: boolean audience_size?: boolean video_url?: boolean promotion_plan?: boolean decline_reason?: boolean stripe_promotion_code_id?: boolean app_store_code_added_at?: boolean terms_accepted_at?: boolean reviewed_at?: boolean reviewed_by?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs reviewer?: boolean | Affiliate$reviewerArgs }, ExtArgs["result"]["affiliate"]> export type AffiliateSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean slug?: boolean status?: boolean platform?: boolean profile_url?: boolean audience_size?: boolean video_url?: boolean promotion_plan?: boolean decline_reason?: boolean stripe_promotion_code_id?: boolean app_store_code_added_at?: boolean terms_accepted_at?: boolean reviewed_at?: boolean reviewed_by?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs reviewer?: boolean | Affiliate$reviewerArgs }, ExtArgs["result"]["affiliate"]> export type AffiliateSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean slug?: boolean status?: boolean platform?: boolean profile_url?: boolean audience_size?: boolean video_url?: boolean promotion_plan?: boolean decline_reason?: boolean stripe_promotion_code_id?: boolean app_store_code_added_at?: boolean terms_accepted_at?: boolean reviewed_at?: boolean reviewed_by?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs reviewer?: boolean | Affiliate$reviewerArgs }, ExtArgs["result"]["affiliate"]> export type AffiliateSelectScalar = { id?: boolean user_id?: boolean slug?: boolean status?: boolean platform?: boolean profile_url?: boolean audience_size?: boolean video_url?: boolean promotion_plan?: boolean decline_reason?: boolean stripe_promotion_code_id?: boolean app_store_code_added_at?: boolean terms_accepted_at?: boolean reviewed_at?: boolean reviewed_by?: boolean created_at?: boolean updated_at?: boolean } export type AffiliateOmit = $Extensions.GetOmit<"id" | "user_id" | "slug" | "status" | "platform" | "profile_url" | "audience_size" | "video_url" | "promotion_plan" | "decline_reason" | "stripe_promotion_code_id" | "app_store_code_added_at" | "terms_accepted_at" | "reviewed_at" | "reviewed_by" | "created_at" | "updated_at", ExtArgs["result"]["affiliate"]> export type AffiliateInclude = { user?: boolean | UserDefaultArgs reviewer?: boolean | Affiliate$reviewerArgs } export type AffiliateIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs reviewer?: boolean | Affiliate$reviewerArgs } export type AffiliateIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs reviewer?: boolean | Affiliate$reviewerArgs } export type $AffiliatePayload = { name: "Affiliate" objects: { user: Prisma.$UserPayload reviewer: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ id: string user_id: string slug: string | null status: string platform: string profile_url: string audience_size: string video_url: string | null promotion_plan: string | null decline_reason: string | null stripe_promotion_code_id: string | null /** * When an admin added the creator's custom code to the App Store "Creator offer". */ app_store_code_added_at: Date | null terms_accepted_at: Date reviewed_at: Date | null reviewed_by: string | null created_at: Date updated_at: Date }, ExtArgs["result"]["affiliate"]> composites: {} } type AffiliateGetPayload = $Result.GetResult type AffiliateCountArgs = Omit & { select?: AffiliateCountAggregateInputType | true } export interface AffiliateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Affiliate'], meta: { name: 'Affiliate' } } /** * Find zero or one Affiliate that matches the filter. * @param {AffiliateFindUniqueArgs} args - Arguments to find a Affiliate * @example * // Get one Affiliate * const affiliate = await prisma.affiliate.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Affiliate that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AffiliateFindUniqueOrThrowArgs} args - Arguments to find a Affiliate * @example * // Get one Affiliate * const affiliate = await prisma.affiliate.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Affiliate 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 {AffiliateFindFirstArgs} args - Arguments to find a Affiliate * @example * // Get one Affiliate * const affiliate = await prisma.affiliate.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Affiliate 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 {AffiliateFindFirstOrThrowArgs} args - Arguments to find a Affiliate * @example * // Get one Affiliate * const affiliate = await prisma.affiliate.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Affiliates 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 {AffiliateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Affiliates * const affiliates = await prisma.affiliate.findMany() * * // Get first 10 Affiliates * const affiliates = await prisma.affiliate.findMany({ take: 10 }) * * // Only select the `id` * const affiliateWithIdOnly = await prisma.affiliate.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Affiliate. * @param {AffiliateCreateArgs} args - Arguments to create a Affiliate. * @example * // Create one Affiliate * const Affiliate = await prisma.affiliate.create({ * data: { * // ... data to create a Affiliate * } * }) * */ create(args: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Affiliates. * @param {AffiliateCreateManyArgs} args - Arguments to create many Affiliates. * @example * // Create many Affiliates * const affiliate = await prisma.affiliate.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Affiliates and returns the data saved in the database. * @param {AffiliateCreateManyAndReturnArgs} args - Arguments to create many Affiliates. * @example * // Create many Affiliates * const affiliate = await prisma.affiliate.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Affiliates and only return the `id` * const affiliateWithIdOnly = await prisma.affiliate.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Affiliate. * @param {AffiliateDeleteArgs} args - Arguments to delete one Affiliate. * @example * // Delete one Affiliate * const Affiliate = await prisma.affiliate.delete({ * where: { * // ... filter to delete one Affiliate * } * }) * */ delete(args: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Affiliate. * @param {AffiliateUpdateArgs} args - Arguments to update one Affiliate. * @example * // Update one Affiliate * const affiliate = await prisma.affiliate.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Affiliates. * @param {AffiliateDeleteManyArgs} args - Arguments to filter Affiliates to delete. * @example * // Delete a few Affiliates * const { count } = await prisma.affiliate.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Affiliates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Affiliates * const affiliate = await prisma.affiliate.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Affiliates and returns the data updated in the database. * @param {AffiliateUpdateManyAndReturnArgs} args - Arguments to update many Affiliates. * @example * // Update many Affiliates * const affiliate = await prisma.affiliate.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Affiliates and only return the `id` * const affiliateWithIdOnly = await prisma.affiliate.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Affiliate. * @param {AffiliateUpsertArgs} args - Arguments to update or create a Affiliate. * @example * // Update or create a Affiliate * const affiliate = await prisma.affiliate.upsert({ * create: { * // ... data to create a Affiliate * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Affiliate we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AffiliateClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Affiliates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateCountArgs} args - Arguments to filter Affiliates to count. * @example * // Count the number of Affiliates * const count = await prisma.affiliate.count({ * where: { * // ... the filter for the Affiliates 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 Affiliate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateAggregateArgs} 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 Affiliate. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AffiliateGroupByArgs} 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 AffiliateGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AffiliateGroupByArgs['orderBy'] } : { orderBy?: AffiliateGroupByArgs['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 ? GetAffiliateGroupByPayload : Prisma.PrismaPromise /** * Fields of the Affiliate model */ readonly fields: AffiliateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Affiliate. * 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__AffiliateClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> reviewer = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Affiliate model */ interface AffiliateFieldRefs { readonly id: FieldRef<"Affiliate", 'String'> readonly user_id: FieldRef<"Affiliate", 'String'> readonly slug: FieldRef<"Affiliate", 'String'> readonly status: FieldRef<"Affiliate", 'String'> readonly platform: FieldRef<"Affiliate", 'String'> readonly profile_url: FieldRef<"Affiliate", 'String'> readonly audience_size: FieldRef<"Affiliate", 'String'> readonly video_url: FieldRef<"Affiliate", 'String'> readonly promotion_plan: FieldRef<"Affiliate", 'String'> readonly decline_reason: FieldRef<"Affiliate", 'String'> readonly stripe_promotion_code_id: FieldRef<"Affiliate", 'String'> readonly app_store_code_added_at: FieldRef<"Affiliate", 'DateTime'> readonly terms_accepted_at: FieldRef<"Affiliate", 'DateTime'> readonly reviewed_at: FieldRef<"Affiliate", 'DateTime'> readonly reviewed_by: FieldRef<"Affiliate", 'String'> readonly created_at: FieldRef<"Affiliate", 'DateTime'> readonly updated_at: FieldRef<"Affiliate", 'DateTime'> } // Custom InputTypes /** * Affiliate findUnique */ export type AffiliateFindUniqueArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * Filter, which Affiliate to fetch. */ where: AffiliateWhereUniqueInput } /** * Affiliate findUniqueOrThrow */ export type AffiliateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * Filter, which Affiliate to fetch. */ where: AffiliateWhereUniqueInput } /** * Affiliate findFirst */ export type AffiliateFindFirstArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * Filter, which Affiliate to fetch. */ where?: AffiliateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Affiliates to fetch. */ orderBy?: AffiliateOrderByWithRelationInput | AffiliateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Affiliates. */ cursor?: AffiliateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Affiliates 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` Affiliates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Affiliates. */ distinct?: AffiliateScalarFieldEnum | AffiliateScalarFieldEnum[] } /** * Affiliate findFirstOrThrow */ export type AffiliateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * Filter, which Affiliate to fetch. */ where?: AffiliateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Affiliates to fetch. */ orderBy?: AffiliateOrderByWithRelationInput | AffiliateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Affiliates. */ cursor?: AffiliateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Affiliates 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` Affiliates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Affiliates. */ distinct?: AffiliateScalarFieldEnum | AffiliateScalarFieldEnum[] } /** * Affiliate findMany */ export type AffiliateFindManyArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * Filter, which Affiliates to fetch. */ where?: AffiliateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Affiliates to fetch. */ orderBy?: AffiliateOrderByWithRelationInput | AffiliateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Affiliates. */ cursor?: AffiliateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Affiliates 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` Affiliates. */ skip?: number distinct?: AffiliateScalarFieldEnum | AffiliateScalarFieldEnum[] } /** * Affiliate create */ export type AffiliateCreateArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * The data needed to create a Affiliate. */ data: XOR } /** * Affiliate createMany */ export type AffiliateCreateManyArgs = { /** * The data used to create many Affiliates. */ data: AffiliateCreateManyInput | AffiliateCreateManyInput[] skipDuplicates?: boolean } /** * Affiliate createManyAndReturn */ export type AffiliateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelectCreateManyAndReturn | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * The data used to create many Affiliates. */ data: AffiliateCreateManyInput | AffiliateCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AffiliateIncludeCreateManyAndReturn | null } /** * Affiliate update */ export type AffiliateUpdateArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * The data needed to update a Affiliate. */ data: XOR /** * Choose, which Affiliate to update. */ where: AffiliateWhereUniqueInput } /** * Affiliate updateMany */ export type AffiliateUpdateManyArgs = { /** * The data used to update Affiliates. */ data: XOR /** * Filter which Affiliates to update */ where?: AffiliateWhereInput /** * Limit how many Affiliates to update. */ limit?: number } /** * Affiliate updateManyAndReturn */ export type AffiliateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelectUpdateManyAndReturn | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * The data used to update Affiliates. */ data: XOR /** * Filter which Affiliates to update */ where?: AffiliateWhereInput /** * Limit how many Affiliates to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AffiliateIncludeUpdateManyAndReturn | null } /** * Affiliate upsert */ export type AffiliateUpsertArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * The filter to search for the Affiliate to update in case it exists. */ where: AffiliateWhereUniqueInput /** * In case the Affiliate found by the `where` argument doesn't exist, create a new Affiliate with this data. */ create: XOR /** * In case the Affiliate was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Affiliate delete */ export type AffiliateDeleteArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null /** * Filter which Affiliate to delete. */ where: AffiliateWhereUniqueInput } /** * Affiliate deleteMany */ export type AffiliateDeleteManyArgs = { /** * Filter which Affiliates to delete */ where?: AffiliateWhereInput /** * Limit how many Affiliates to delete. */ limit?: number } /** * Affiliate.reviewer */ export type Affiliate$reviewerArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * Affiliate without action */ export type AffiliateDefaultArgs = { /** * Select specific fields to fetch from the Affiliate */ select?: AffiliateSelect | null /** * Omit specific fields from the Affiliate */ omit?: AffiliateOmit | null /** * Choose, which related nodes to fetch as well */ include?: AffiliateInclude | null } /** * Model FeatureFlag */ export type AggregateFeatureFlag = { _count: FeatureFlagCountAggregateOutputType | null _min: FeatureFlagMinAggregateOutputType | null _max: FeatureFlagMaxAggregateOutputType | null } export type FeatureFlagMinAggregateOutputType = { key: string | null description: string | null web_enabled: boolean | null ios_enabled: boolean | null admins_bypass: boolean | null updated_by: string | null created_at: Date | null updated_at: Date | null } export type FeatureFlagMaxAggregateOutputType = { key: string | null description: string | null web_enabled: boolean | null ios_enabled: boolean | null admins_bypass: boolean | null updated_by: string | null created_at: Date | null updated_at: Date | null } export type FeatureFlagCountAggregateOutputType = { key: number description: number web_enabled: number ios_enabled: number admins_bypass: number updated_by: number created_at: number updated_at: number _all: number } export type FeatureFlagMinAggregateInputType = { key?: true description?: true web_enabled?: true ios_enabled?: true admins_bypass?: true updated_by?: true created_at?: true updated_at?: true } export type FeatureFlagMaxAggregateInputType = { key?: true description?: true web_enabled?: true ios_enabled?: true admins_bypass?: true updated_by?: true created_at?: true updated_at?: true } export type FeatureFlagCountAggregateInputType = { key?: true description?: true web_enabled?: true ios_enabled?: true admins_bypass?: true updated_by?: true created_at?: true updated_at?: true _all?: true } export type FeatureFlagAggregateArgs = { /** * Filter which FeatureFlag to aggregate. */ where?: FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: FeatureFlagOrderByWithRelationInput | FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned FeatureFlags **/ _count?: true | FeatureFlagCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: FeatureFlagMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: FeatureFlagMaxAggregateInputType } export type GetFeatureFlagAggregateType = { [P in keyof T & keyof AggregateFeatureFlag]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type FeatureFlagGroupByArgs = { where?: FeatureFlagWhereInput orderBy?: FeatureFlagOrderByWithAggregationInput | FeatureFlagOrderByWithAggregationInput[] by: FeatureFlagScalarFieldEnum[] | FeatureFlagScalarFieldEnum having?: FeatureFlagScalarWhereWithAggregatesInput take?: number skip?: number _count?: FeatureFlagCountAggregateInputType | true _min?: FeatureFlagMinAggregateInputType _max?: FeatureFlagMaxAggregateInputType } export type FeatureFlagGroupByOutputType = { key: string description: string web_enabled: boolean ios_enabled: boolean admins_bypass: boolean updated_by: string | null created_at: Date updated_at: Date _count: FeatureFlagCountAggregateOutputType | null _min: FeatureFlagMinAggregateOutputType | null _max: FeatureFlagMaxAggregateOutputType | null } type GetFeatureFlagGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof FeatureFlagGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type FeatureFlagSelect = $Extensions.GetSelect<{ key?: boolean description?: boolean web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean updated_by_user?: boolean | FeatureFlag$updated_by_userArgs }, ExtArgs["result"]["featureFlag"]> export type FeatureFlagSelectCreateManyAndReturn = $Extensions.GetSelect<{ key?: boolean description?: boolean web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean updated_by_user?: boolean | FeatureFlag$updated_by_userArgs }, ExtArgs["result"]["featureFlag"]> export type FeatureFlagSelectUpdateManyAndReturn = $Extensions.GetSelect<{ key?: boolean description?: boolean web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean updated_by_user?: boolean | FeatureFlag$updated_by_userArgs }, ExtArgs["result"]["featureFlag"]> export type FeatureFlagSelectScalar = { key?: boolean description?: boolean web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean } export type FeatureFlagOmit = $Extensions.GetOmit<"key" | "description" | "web_enabled" | "ios_enabled" | "admins_bypass" | "updated_by" | "created_at" | "updated_at", ExtArgs["result"]["featureFlag"]> export type FeatureFlagInclude = { updated_by_user?: boolean | FeatureFlag$updated_by_userArgs } export type FeatureFlagIncludeCreateManyAndReturn = { updated_by_user?: boolean | FeatureFlag$updated_by_userArgs } export type FeatureFlagIncludeUpdateManyAndReturn = { updated_by_user?: boolean | FeatureFlag$updated_by_userArgs } export type $FeatureFlagPayload = { name: "FeatureFlag" objects: { updated_by_user: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ key: string description: string web_enabled: boolean ios_enabled: boolean admins_bypass: boolean updated_by: string | null created_at: Date updated_at: Date }, ExtArgs["result"]["featureFlag"]> composites: {} } type FeatureFlagGetPayload = $Result.GetResult type FeatureFlagCountArgs = Omit & { select?: FeatureFlagCountAggregateInputType | true } export interface FeatureFlagDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['FeatureFlag'], meta: { name: 'FeatureFlag' } } /** * Find zero or one FeatureFlag that matches the filter. * @param {FeatureFlagFindUniqueArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one FeatureFlag that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {FeatureFlagFindUniqueOrThrowArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first FeatureFlag 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 {FeatureFlagFindFirstArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first FeatureFlag 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 {FeatureFlagFindFirstOrThrowArgs} args - Arguments to find a FeatureFlag * @example * // Get one FeatureFlag * const featureFlag = await prisma.featureFlag.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more FeatureFlags 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 {FeatureFlagFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all FeatureFlags * const featureFlags = await prisma.featureFlag.findMany() * * // Get first 10 FeatureFlags * const featureFlags = await prisma.featureFlag.findMany({ take: 10 }) * * // Only select the `key` * const featureFlagWithKeyOnly = await prisma.featureFlag.findMany({ select: { key: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a FeatureFlag. * @param {FeatureFlagCreateArgs} args - Arguments to create a FeatureFlag. * @example * // Create one FeatureFlag * const FeatureFlag = await prisma.featureFlag.create({ * data: { * // ... data to create a FeatureFlag * } * }) * */ create(args: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many FeatureFlags. * @param {FeatureFlagCreateManyArgs} args - Arguments to create many FeatureFlags. * @example * // Create many FeatureFlags * const featureFlag = await prisma.featureFlag.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many FeatureFlags and returns the data saved in the database. * @param {FeatureFlagCreateManyAndReturnArgs} args - Arguments to create many FeatureFlags. * @example * // Create many FeatureFlags * const featureFlag = await prisma.featureFlag.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many FeatureFlags and only return the `key` * const featureFlagWithKeyOnly = await prisma.featureFlag.createManyAndReturn({ * select: { key: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a FeatureFlag. * @param {FeatureFlagDeleteArgs} args - Arguments to delete one FeatureFlag. * @example * // Delete one FeatureFlag * const FeatureFlag = await prisma.featureFlag.delete({ * where: { * // ... filter to delete one FeatureFlag * } * }) * */ delete(args: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one FeatureFlag. * @param {FeatureFlagUpdateArgs} args - Arguments to update one FeatureFlag. * @example * // Update one FeatureFlag * const featureFlag = await prisma.featureFlag.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more FeatureFlags. * @param {FeatureFlagDeleteManyArgs} args - Arguments to filter FeatureFlags to delete. * @example * // Delete a few FeatureFlags * const { count } = await prisma.featureFlag.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FeatureFlags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many FeatureFlags * const featureFlag = await prisma.featureFlag.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more FeatureFlags and returns the data updated in the database. * @param {FeatureFlagUpdateManyAndReturnArgs} args - Arguments to update many FeatureFlags. * @example * // Update many FeatureFlags * const featureFlag = await prisma.featureFlag.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more FeatureFlags and only return the `key` * const featureFlagWithKeyOnly = await prisma.featureFlag.updateManyAndReturn({ * select: { key: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one FeatureFlag. * @param {FeatureFlagUpsertArgs} args - Arguments to update or create a FeatureFlag. * @example * // Update or create a FeatureFlag * const featureFlag = await prisma.featureFlag.upsert({ * create: { * // ... data to create a FeatureFlag * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the FeatureFlag we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__FeatureFlagClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of FeatureFlags. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagCountArgs} args - Arguments to filter FeatureFlags to count. * @example * // Count the number of FeatureFlags * const count = await prisma.featureFlag.count({ * where: { * // ... the filter for the FeatureFlags 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 FeatureFlag. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagAggregateArgs} 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 FeatureFlag. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {FeatureFlagGroupByArgs} 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 FeatureFlagGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: FeatureFlagGroupByArgs['orderBy'] } : { orderBy?: FeatureFlagGroupByArgs['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 ? GetFeatureFlagGroupByPayload : Prisma.PrismaPromise /** * Fields of the FeatureFlag model */ readonly fields: FeatureFlagFieldRefs; } /** * The delegate class that acts as a "Promise-like" for FeatureFlag. * 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__FeatureFlagClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" updated_by_user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the FeatureFlag model */ interface FeatureFlagFieldRefs { readonly key: FieldRef<"FeatureFlag", 'String'> readonly description: FieldRef<"FeatureFlag", 'String'> readonly web_enabled: FieldRef<"FeatureFlag", 'Boolean'> readonly ios_enabled: FieldRef<"FeatureFlag", 'Boolean'> readonly admins_bypass: FieldRef<"FeatureFlag", 'Boolean'> readonly updated_by: FieldRef<"FeatureFlag", 'String'> readonly created_at: FieldRef<"FeatureFlag", 'DateTime'> readonly updated_at: FieldRef<"FeatureFlag", 'DateTime'> } // Custom InputTypes /** * FeatureFlag findUnique */ export type FeatureFlagFindUniqueArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where: FeatureFlagWhereUniqueInput } /** * FeatureFlag findUniqueOrThrow */ export type FeatureFlagFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where: FeatureFlagWhereUniqueInput } /** * FeatureFlag findFirst */ export type FeatureFlagFindFirstArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where?: FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: FeatureFlagOrderByWithRelationInput | FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FeatureFlags. */ cursor?: FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FeatureFlags. */ distinct?: FeatureFlagScalarFieldEnum | FeatureFlagScalarFieldEnum[] } /** * FeatureFlag findFirstOrThrow */ export type FeatureFlagFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * Filter, which FeatureFlag to fetch. */ where?: FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: FeatureFlagOrderByWithRelationInput | FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for FeatureFlags. */ cursor?: FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of FeatureFlags. */ distinct?: FeatureFlagScalarFieldEnum | FeatureFlagScalarFieldEnum[] } /** * FeatureFlag findMany */ export type FeatureFlagFindManyArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * Filter, which FeatureFlags to fetch. */ where?: FeatureFlagWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of FeatureFlags to fetch. */ orderBy?: FeatureFlagOrderByWithRelationInput | FeatureFlagOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing FeatureFlags. */ cursor?: FeatureFlagWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` FeatureFlags 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` FeatureFlags. */ skip?: number distinct?: FeatureFlagScalarFieldEnum | FeatureFlagScalarFieldEnum[] } /** * FeatureFlag create */ export type FeatureFlagCreateArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * The data needed to create a FeatureFlag. */ data: XOR } /** * FeatureFlag createMany */ export type FeatureFlagCreateManyArgs = { /** * The data used to create many FeatureFlags. */ data: FeatureFlagCreateManyInput | FeatureFlagCreateManyInput[] skipDuplicates?: boolean } /** * FeatureFlag createManyAndReturn */ export type FeatureFlagCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelectCreateManyAndReturn | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * The data used to create many FeatureFlags. */ data: FeatureFlagCreateManyInput | FeatureFlagCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagIncludeCreateManyAndReturn | null } /** * FeatureFlag update */ export type FeatureFlagUpdateArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * The data needed to update a FeatureFlag. */ data: XOR /** * Choose, which FeatureFlag to update. */ where: FeatureFlagWhereUniqueInput } /** * FeatureFlag updateMany */ export type FeatureFlagUpdateManyArgs = { /** * The data used to update FeatureFlags. */ data: XOR /** * Filter which FeatureFlags to update */ where?: FeatureFlagWhereInput /** * Limit how many FeatureFlags to update. */ limit?: number } /** * FeatureFlag updateManyAndReturn */ export type FeatureFlagUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelectUpdateManyAndReturn | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * The data used to update FeatureFlags. */ data: XOR /** * Filter which FeatureFlags to update */ where?: FeatureFlagWhereInput /** * Limit how many FeatureFlags to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagIncludeUpdateManyAndReturn | null } /** * FeatureFlag upsert */ export type FeatureFlagUpsertArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * The filter to search for the FeatureFlag to update in case it exists. */ where: FeatureFlagWhereUniqueInput /** * In case the FeatureFlag found by the `where` argument doesn't exist, create a new FeatureFlag with this data. */ create: XOR /** * In case the FeatureFlag was found with the provided `where` argument, update it with this data. */ update: XOR } /** * FeatureFlag delete */ export type FeatureFlagDeleteArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null /** * Filter which FeatureFlag to delete. */ where: FeatureFlagWhereUniqueInput } /** * FeatureFlag deleteMany */ export type FeatureFlagDeleteManyArgs = { /** * Filter which FeatureFlags to delete */ where?: FeatureFlagWhereInput /** * Limit how many FeatureFlags to delete. */ limit?: number } /** * FeatureFlag.updated_by_user */ export type FeatureFlag$updated_by_userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * FeatureFlag without action */ export type FeatureFlagDefaultArgs = { /** * Select specific fields to fetch from the FeatureFlag */ select?: FeatureFlagSelect | null /** * Omit specific fields from the FeatureFlag */ omit?: FeatureFlagOmit | null /** * Choose, which related nodes to fetch as well */ include?: FeatureFlagInclude | null } /** * Model AppSetting */ export type AggregateAppSetting = { _count: AppSettingCountAggregateOutputType | null _min: AppSettingMinAggregateOutputType | null _max: AppSettingMaxAggregateOutputType | null } export type AppSettingMinAggregateOutputType = { setting_key: string | null encrypted_value: string | null prefer_admin_value: boolean | null updated_by: string | null created_at: Date | null updated_at: Date | null } export type AppSettingMaxAggregateOutputType = { setting_key: string | null encrypted_value: string | null prefer_admin_value: boolean | null updated_by: string | null created_at: Date | null updated_at: Date | null } export type AppSettingCountAggregateOutputType = { setting_key: number encrypted_value: number prefer_admin_value: number updated_by: number created_at: number updated_at: number _all: number } export type AppSettingMinAggregateInputType = { setting_key?: true encrypted_value?: true prefer_admin_value?: true updated_by?: true created_at?: true updated_at?: true } export type AppSettingMaxAggregateInputType = { setting_key?: true encrypted_value?: true prefer_admin_value?: true updated_by?: true created_at?: true updated_at?: true } export type AppSettingCountAggregateInputType = { setting_key?: true encrypted_value?: true prefer_admin_value?: true updated_by?: true created_at?: true updated_at?: true _all?: true } export type AppSettingAggregateArgs = { /** * Filter which AppSetting to aggregate. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AppSettings **/ _count?: true | AppSettingCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AppSettingMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AppSettingMaxAggregateInputType } export type GetAppSettingAggregateType = { [P in keyof T & keyof AggregateAppSetting]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AppSettingGroupByArgs = { where?: AppSettingWhereInput orderBy?: AppSettingOrderByWithAggregationInput | AppSettingOrderByWithAggregationInput[] by: AppSettingScalarFieldEnum[] | AppSettingScalarFieldEnum having?: AppSettingScalarWhereWithAggregatesInput take?: number skip?: number _count?: AppSettingCountAggregateInputType | true _min?: AppSettingMinAggregateInputType _max?: AppSettingMaxAggregateInputType } export type AppSettingGroupByOutputType = { setting_key: string encrypted_value: string prefer_admin_value: boolean updated_by: string | null created_at: Date updated_at: Date _count: AppSettingCountAggregateOutputType | null _min: AppSettingMinAggregateOutputType | null _max: AppSettingMaxAggregateOutputType | null } type GetAppSettingGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AppSettingGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AppSettingSelect = $Extensions.GetSelect<{ setting_key?: boolean encrypted_value?: boolean prefer_admin_value?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean user?: boolean | AppSetting$userArgs }, ExtArgs["result"]["appSetting"]> export type AppSettingSelectCreateManyAndReturn = $Extensions.GetSelect<{ setting_key?: boolean encrypted_value?: boolean prefer_admin_value?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean user?: boolean | AppSetting$userArgs }, ExtArgs["result"]["appSetting"]> export type AppSettingSelectUpdateManyAndReturn = $Extensions.GetSelect<{ setting_key?: boolean encrypted_value?: boolean prefer_admin_value?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean user?: boolean | AppSetting$userArgs }, ExtArgs["result"]["appSetting"]> export type AppSettingSelectScalar = { setting_key?: boolean encrypted_value?: boolean prefer_admin_value?: boolean updated_by?: boolean created_at?: boolean updated_at?: boolean } export type AppSettingOmit = $Extensions.GetOmit<"setting_key" | "encrypted_value" | "prefer_admin_value" | "updated_by" | "created_at" | "updated_at", ExtArgs["result"]["appSetting"]> export type AppSettingInclude = { user?: boolean | AppSetting$userArgs } export type AppSettingIncludeCreateManyAndReturn = { user?: boolean | AppSetting$userArgs } export type AppSettingIncludeUpdateManyAndReturn = { user?: boolean | AppSetting$userArgs } export type $AppSettingPayload = { name: "AppSetting" objects: { user: Prisma.$UserPayload | null } scalars: $Extensions.GetPayloadResult<{ setting_key: string encrypted_value: string prefer_admin_value: boolean updated_by: string | null created_at: Date updated_at: Date }, ExtArgs["result"]["appSetting"]> composites: {} } type AppSettingGetPayload = $Result.GetResult type AppSettingCountArgs = Omit & { select?: AppSettingCountAggregateInputType | true } export interface AppSettingDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AppSetting'], meta: { name: 'AppSetting' } } /** * Find zero or one AppSetting that matches the filter. * @param {AppSettingFindUniqueArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AppSetting that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AppSettingFindUniqueOrThrowArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AppSetting 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 {AppSettingFindFirstArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AppSetting 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 {AppSettingFindFirstOrThrowArgs} args - Arguments to find a AppSetting * @example * // Get one AppSetting * const appSetting = await prisma.appSetting.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AppSettings 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 {AppSettingFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AppSettings * const appSettings = await prisma.appSetting.findMany() * * // Get first 10 AppSettings * const appSettings = await prisma.appSetting.findMany({ take: 10 }) * * // Only select the `setting_key` * const appSettingWithSetting_keyOnly = await prisma.appSetting.findMany({ select: { setting_key: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AppSetting. * @param {AppSettingCreateArgs} args - Arguments to create a AppSetting. * @example * // Create one AppSetting * const AppSetting = await prisma.appSetting.create({ * data: { * // ... data to create a AppSetting * } * }) * */ create(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AppSettings. * @param {AppSettingCreateManyArgs} args - Arguments to create many AppSettings. * @example * // Create many AppSettings * const appSetting = await prisma.appSetting.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AppSettings and returns the data saved in the database. * @param {AppSettingCreateManyAndReturnArgs} args - Arguments to create many AppSettings. * @example * // Create many AppSettings * const appSetting = await prisma.appSetting.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AppSettings and only return the `setting_key` * const appSettingWithSetting_keyOnly = await prisma.appSetting.createManyAndReturn({ * select: { setting_key: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AppSetting. * @param {AppSettingDeleteArgs} args - Arguments to delete one AppSetting. * @example * // Delete one AppSetting * const AppSetting = await prisma.appSetting.delete({ * where: { * // ... filter to delete one AppSetting * } * }) * */ delete(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AppSetting. * @param {AppSettingUpdateArgs} args - Arguments to update one AppSetting. * @example * // Update one AppSetting * const appSetting = await prisma.appSetting.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AppSettings. * @param {AppSettingDeleteManyArgs} args - Arguments to filter AppSettings to delete. * @example * // Delete a few AppSettings * const { count } = await prisma.appSetting.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AppSettings * const appSetting = await prisma.appSetting.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AppSettings and returns the data updated in the database. * @param {AppSettingUpdateManyAndReturnArgs} args - Arguments to update many AppSettings. * @example * // Update many AppSettings * const appSetting = await prisma.appSetting.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AppSettings and only return the `setting_key` * const appSettingWithSetting_keyOnly = await prisma.appSetting.updateManyAndReturn({ * select: { setting_key: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AppSetting. * @param {AppSettingUpsertArgs} args - Arguments to update or create a AppSetting. * @example * // Update or create a AppSetting * const appSetting = await prisma.appSetting.upsert({ * create: { * // ... data to create a AppSetting * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AppSetting we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AppSettingClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AppSettings. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingCountArgs} args - Arguments to filter AppSettings to count. * @example * // Count the number of AppSettings * const count = await prisma.appSetting.count({ * where: { * // ... the filter for the AppSettings 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 AppSetting. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingAggregateArgs} 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 AppSetting. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AppSettingGroupByArgs} 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 AppSettingGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AppSettingGroupByArgs['orderBy'] } : { orderBy?: AppSettingGroupByArgs['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 ? GetAppSettingGroupByPayload : Prisma.PrismaPromise /** * Fields of the AppSetting model */ readonly fields: AppSettingFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AppSetting. * 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__AppSettingClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the AppSetting model */ interface AppSettingFieldRefs { readonly setting_key: FieldRef<"AppSetting", 'String'> readonly encrypted_value: FieldRef<"AppSetting", 'String'> readonly prefer_admin_value: FieldRef<"AppSetting", 'Boolean'> readonly updated_by: FieldRef<"AppSetting", 'String'> readonly created_at: FieldRef<"AppSetting", 'DateTime'> readonly updated_at: FieldRef<"AppSetting", 'DateTime'> } // Custom InputTypes /** * AppSetting findUnique */ export type AppSettingFindUniqueArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * Filter, which AppSetting to fetch. */ where: AppSettingWhereUniqueInput } /** * AppSetting findUniqueOrThrow */ export type AppSettingFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * Filter, which AppSetting to fetch. */ where: AppSettingWhereUniqueInput } /** * AppSetting findFirst */ export type AppSettingFindFirstArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * Filter, which AppSetting to fetch. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppSettings. */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppSettings. */ distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[] } /** * AppSetting findFirstOrThrow */ export type AppSettingFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * Filter, which AppSetting to fetch. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AppSettings. */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AppSettings. */ distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[] } /** * AppSetting findMany */ export type AppSettingFindManyArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * Filter, which AppSettings to fetch. */ where?: AppSettingWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AppSettings to fetch. */ orderBy?: AppSettingOrderByWithRelationInput | AppSettingOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AppSettings. */ cursor?: AppSettingWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AppSettings 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` AppSettings. */ skip?: number distinct?: AppSettingScalarFieldEnum | AppSettingScalarFieldEnum[] } /** * AppSetting create */ export type AppSettingCreateArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * The data needed to create a AppSetting. */ data: XOR } /** * AppSetting createMany */ export type AppSettingCreateManyArgs = { /** * The data used to create many AppSettings. */ data: AppSettingCreateManyInput | AppSettingCreateManyInput[] skipDuplicates?: boolean } /** * AppSetting createManyAndReturn */ export type AppSettingCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelectCreateManyAndReturn | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * The data used to create many AppSettings. */ data: AppSettingCreateManyInput | AppSettingCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AppSettingIncludeCreateManyAndReturn | null } /** * AppSetting update */ export type AppSettingUpdateArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * The data needed to update a AppSetting. */ data: XOR /** * Choose, which AppSetting to update. */ where: AppSettingWhereUniqueInput } /** * AppSetting updateMany */ export type AppSettingUpdateManyArgs = { /** * The data used to update AppSettings. */ data: XOR /** * Filter which AppSettings to update */ where?: AppSettingWhereInput /** * Limit how many AppSettings to update. */ limit?: number } /** * AppSetting updateManyAndReturn */ export type AppSettingUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelectUpdateManyAndReturn | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * The data used to update AppSettings. */ data: XOR /** * Filter which AppSettings to update */ where?: AppSettingWhereInput /** * Limit how many AppSettings to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AppSettingIncludeUpdateManyAndReturn | null } /** * AppSetting upsert */ export type AppSettingUpsertArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * The filter to search for the AppSetting to update in case it exists. */ where: AppSettingWhereUniqueInput /** * In case the AppSetting found by the `where` argument doesn't exist, create a new AppSetting with this data. */ create: XOR /** * In case the AppSetting was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AppSetting delete */ export type AppSettingDeleteArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null /** * Filter which AppSetting to delete. */ where: AppSettingWhereUniqueInput } /** * AppSetting deleteMany */ export type AppSettingDeleteManyArgs = { /** * Filter which AppSettings to delete */ where?: AppSettingWhereInput /** * Limit how many AppSettings to delete. */ limit?: number } /** * AppSetting.user */ export type AppSetting$userArgs = { /** * Select specific fields to fetch from the User */ select?: UserSelect | null /** * Omit specific fields from the User */ omit?: UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserInclude | null where?: UserWhereInput } /** * AppSetting without action */ export type AppSettingDefaultArgs = { /** * Select specific fields to fetch from the AppSetting */ select?: AppSettingSelect | null /** * Omit specific fields from the AppSetting */ omit?: AppSettingOmit | null /** * Choose, which related nodes to fetch as well */ include?: AppSettingInclude | null } /** * Model MinuteUsageEvent */ export type AggregateMinuteUsageEvent = { _count: MinuteUsageEventCountAggregateOutputType | null _avg: MinuteUsageEventAvgAggregateOutputType | null _sum: MinuteUsageEventSumAggregateOutputType | null _min: MinuteUsageEventMinAggregateOutputType | null _max: MinuteUsageEventMaxAggregateOutputType | null } export type MinuteUsageEventAvgAggregateOutputType = { minutes: number | null source_duration_seconds: number | null } export type MinuteUsageEventSumAggregateOutputType = { minutes: number | null source_duration_seconds: number | null } export type MinuteUsageEventMinAggregateOutputType = { id: string | null user_id: string | null task_id: string | null minutes: number | null source_duration_seconds: number | null created_at: Date | null refunded_at: Date | null } export type MinuteUsageEventMaxAggregateOutputType = { id: string | null user_id: string | null task_id: string | null minutes: number | null source_duration_seconds: number | null created_at: Date | null refunded_at: Date | null } export type MinuteUsageEventCountAggregateOutputType = { id: number user_id: number task_id: number minutes: number source_duration_seconds: number created_at: number refunded_at: number _all: number } export type MinuteUsageEventAvgAggregateInputType = { minutes?: true source_duration_seconds?: true } export type MinuteUsageEventSumAggregateInputType = { minutes?: true source_duration_seconds?: true } export type MinuteUsageEventMinAggregateInputType = { id?: true user_id?: true task_id?: true minutes?: true source_duration_seconds?: true created_at?: true refunded_at?: true } export type MinuteUsageEventMaxAggregateInputType = { id?: true user_id?: true task_id?: true minutes?: true source_duration_seconds?: true created_at?: true refunded_at?: true } export type MinuteUsageEventCountAggregateInputType = { id?: true user_id?: true task_id?: true minutes?: true source_duration_seconds?: true created_at?: true refunded_at?: true _all?: true } export type MinuteUsageEventAggregateArgs = { /** * Filter which MinuteUsageEvent to aggregate. */ where?: MinuteUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MinuteUsageEvents to fetch. */ orderBy?: MinuteUsageEventOrderByWithRelationInput | MinuteUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: MinuteUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MinuteUsageEvents 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` MinuteUsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned MinuteUsageEvents **/ _count?: true | MinuteUsageEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: MinuteUsageEventAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: MinuteUsageEventSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: MinuteUsageEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: MinuteUsageEventMaxAggregateInputType } export type GetMinuteUsageEventAggregateType = { [P in keyof T & keyof AggregateMinuteUsageEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type MinuteUsageEventGroupByArgs = { where?: MinuteUsageEventWhereInput orderBy?: MinuteUsageEventOrderByWithAggregationInput | MinuteUsageEventOrderByWithAggregationInput[] by: MinuteUsageEventScalarFieldEnum[] | MinuteUsageEventScalarFieldEnum having?: MinuteUsageEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: MinuteUsageEventCountAggregateInputType | true _avg?: MinuteUsageEventAvgAggregateInputType _sum?: MinuteUsageEventSumAggregateInputType _min?: MinuteUsageEventMinAggregateInputType _max?: MinuteUsageEventMaxAggregateInputType } export type MinuteUsageEventGroupByOutputType = { id: string user_id: string task_id: string | null minutes: number source_duration_seconds: number created_at: Date refunded_at: Date | null _count: MinuteUsageEventCountAggregateOutputType | null _avg: MinuteUsageEventAvgAggregateOutputType | null _sum: MinuteUsageEventSumAggregateOutputType | null _min: MinuteUsageEventMinAggregateOutputType | null _max: MinuteUsageEventMaxAggregateOutputType | null } type GetMinuteUsageEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof MinuteUsageEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type MinuteUsageEventSelect = $Extensions.GetSelect<{ id?: boolean user_id?: boolean task_id?: boolean minutes?: boolean source_duration_seconds?: boolean created_at?: boolean refunded_at?: boolean }, ExtArgs["result"]["minuteUsageEvent"]> export type MinuteUsageEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean task_id?: boolean minutes?: boolean source_duration_seconds?: boolean created_at?: boolean refunded_at?: boolean }, ExtArgs["result"]["minuteUsageEvent"]> export type MinuteUsageEventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean task_id?: boolean minutes?: boolean source_duration_seconds?: boolean created_at?: boolean refunded_at?: boolean }, ExtArgs["result"]["minuteUsageEvent"]> export type MinuteUsageEventSelectScalar = { id?: boolean user_id?: boolean task_id?: boolean minutes?: boolean source_duration_seconds?: boolean created_at?: boolean refunded_at?: boolean } export type MinuteUsageEventOmit = $Extensions.GetOmit<"id" | "user_id" | "task_id" | "minutes" | "source_duration_seconds" | "created_at" | "refunded_at", ExtArgs["result"]["minuteUsageEvent"]> export type $MinuteUsageEventPayload = { name: "MinuteUsageEvent" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string user_id: string task_id: string | null minutes: number source_duration_seconds: number created_at: Date refunded_at: Date | null }, ExtArgs["result"]["minuteUsageEvent"]> composites: {} } type MinuteUsageEventGetPayload = $Result.GetResult type MinuteUsageEventCountArgs = Omit & { select?: MinuteUsageEventCountAggregateInputType | true } export interface MinuteUsageEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['MinuteUsageEvent'], meta: { name: 'MinuteUsageEvent' } } /** * Find zero or one MinuteUsageEvent that matches the filter. * @param {MinuteUsageEventFindUniqueArgs} args - Arguments to find a MinuteUsageEvent * @example * // Get one MinuteUsageEvent * const minuteUsageEvent = await prisma.minuteUsageEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one MinuteUsageEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MinuteUsageEventFindUniqueOrThrowArgs} args - Arguments to find a MinuteUsageEvent * @example * // Get one MinuteUsageEvent * const minuteUsageEvent = await prisma.minuteUsageEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first MinuteUsageEvent 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 {MinuteUsageEventFindFirstArgs} args - Arguments to find a MinuteUsageEvent * @example * // Get one MinuteUsageEvent * const minuteUsageEvent = await prisma.minuteUsageEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first MinuteUsageEvent 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 {MinuteUsageEventFindFirstOrThrowArgs} args - Arguments to find a MinuteUsageEvent * @example * // Get one MinuteUsageEvent * const minuteUsageEvent = await prisma.minuteUsageEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more MinuteUsageEvents 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 {MinuteUsageEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all MinuteUsageEvents * const minuteUsageEvents = await prisma.minuteUsageEvent.findMany() * * // Get first 10 MinuteUsageEvents * const minuteUsageEvents = await prisma.minuteUsageEvent.findMany({ take: 10 }) * * // Only select the `id` * const minuteUsageEventWithIdOnly = await prisma.minuteUsageEvent.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a MinuteUsageEvent. * @param {MinuteUsageEventCreateArgs} args - Arguments to create a MinuteUsageEvent. * @example * // Create one MinuteUsageEvent * const MinuteUsageEvent = await prisma.minuteUsageEvent.create({ * data: { * // ... data to create a MinuteUsageEvent * } * }) * */ create(args: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many MinuteUsageEvents. * @param {MinuteUsageEventCreateManyArgs} args - Arguments to create many MinuteUsageEvents. * @example * // Create many MinuteUsageEvents * const minuteUsageEvent = await prisma.minuteUsageEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many MinuteUsageEvents and returns the data saved in the database. * @param {MinuteUsageEventCreateManyAndReturnArgs} args - Arguments to create many MinuteUsageEvents. * @example * // Create many MinuteUsageEvents * const minuteUsageEvent = await prisma.minuteUsageEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many MinuteUsageEvents and only return the `id` * const minuteUsageEventWithIdOnly = await prisma.minuteUsageEvent.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a MinuteUsageEvent. * @param {MinuteUsageEventDeleteArgs} args - Arguments to delete one MinuteUsageEvent. * @example * // Delete one MinuteUsageEvent * const MinuteUsageEvent = await prisma.minuteUsageEvent.delete({ * where: { * // ... filter to delete one MinuteUsageEvent * } * }) * */ delete(args: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one MinuteUsageEvent. * @param {MinuteUsageEventUpdateArgs} args - Arguments to update one MinuteUsageEvent. * @example * // Update one MinuteUsageEvent * const minuteUsageEvent = await prisma.minuteUsageEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more MinuteUsageEvents. * @param {MinuteUsageEventDeleteManyArgs} args - Arguments to filter MinuteUsageEvents to delete. * @example * // Delete a few MinuteUsageEvents * const { count } = await prisma.minuteUsageEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MinuteUsageEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MinuteUsageEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many MinuteUsageEvents * const minuteUsageEvent = await prisma.minuteUsageEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more MinuteUsageEvents and returns the data updated in the database. * @param {MinuteUsageEventUpdateManyAndReturnArgs} args - Arguments to update many MinuteUsageEvents. * @example * // Update many MinuteUsageEvents * const minuteUsageEvent = await prisma.minuteUsageEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more MinuteUsageEvents and only return the `id` * const minuteUsageEventWithIdOnly = await prisma.minuteUsageEvent.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one MinuteUsageEvent. * @param {MinuteUsageEventUpsertArgs} args - Arguments to update or create a MinuteUsageEvent. * @example * // Update or create a MinuteUsageEvent * const minuteUsageEvent = await prisma.minuteUsageEvent.upsert({ * create: { * // ... data to create a MinuteUsageEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the MinuteUsageEvent we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__MinuteUsageEventClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of MinuteUsageEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MinuteUsageEventCountArgs} args - Arguments to filter MinuteUsageEvents to count. * @example * // Count the number of MinuteUsageEvents * const count = await prisma.minuteUsageEvent.count({ * where: { * // ... the filter for the MinuteUsageEvents 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 MinuteUsageEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MinuteUsageEventAggregateArgs} 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 MinuteUsageEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {MinuteUsageEventGroupByArgs} 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 MinuteUsageEventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: MinuteUsageEventGroupByArgs['orderBy'] } : { orderBy?: MinuteUsageEventGroupByArgs['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 ? GetMinuteUsageEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the MinuteUsageEvent model */ readonly fields: MinuteUsageEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for MinuteUsageEvent. * 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__MinuteUsageEventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the MinuteUsageEvent model */ interface MinuteUsageEventFieldRefs { readonly id: FieldRef<"MinuteUsageEvent", 'String'> readonly user_id: FieldRef<"MinuteUsageEvent", 'String'> readonly task_id: FieldRef<"MinuteUsageEvent", 'String'> readonly minutes: FieldRef<"MinuteUsageEvent", 'Int'> readonly source_duration_seconds: FieldRef<"MinuteUsageEvent", 'Int'> readonly created_at: FieldRef<"MinuteUsageEvent", 'DateTime'> readonly refunded_at: FieldRef<"MinuteUsageEvent", 'DateTime'> } // Custom InputTypes /** * MinuteUsageEvent findUnique */ export type MinuteUsageEventFindUniqueArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * Filter, which MinuteUsageEvent to fetch. */ where: MinuteUsageEventWhereUniqueInput } /** * MinuteUsageEvent findUniqueOrThrow */ export type MinuteUsageEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * Filter, which MinuteUsageEvent to fetch. */ where: MinuteUsageEventWhereUniqueInput } /** * MinuteUsageEvent findFirst */ export type MinuteUsageEventFindFirstArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * Filter, which MinuteUsageEvent to fetch. */ where?: MinuteUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MinuteUsageEvents to fetch. */ orderBy?: MinuteUsageEventOrderByWithRelationInput | MinuteUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MinuteUsageEvents. */ cursor?: MinuteUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MinuteUsageEvents 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` MinuteUsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MinuteUsageEvents. */ distinct?: MinuteUsageEventScalarFieldEnum | MinuteUsageEventScalarFieldEnum[] } /** * MinuteUsageEvent findFirstOrThrow */ export type MinuteUsageEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * Filter, which MinuteUsageEvent to fetch. */ where?: MinuteUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MinuteUsageEvents to fetch. */ orderBy?: MinuteUsageEventOrderByWithRelationInput | MinuteUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for MinuteUsageEvents. */ cursor?: MinuteUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MinuteUsageEvents 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` MinuteUsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of MinuteUsageEvents. */ distinct?: MinuteUsageEventScalarFieldEnum | MinuteUsageEventScalarFieldEnum[] } /** * MinuteUsageEvent findMany */ export type MinuteUsageEventFindManyArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * Filter, which MinuteUsageEvents to fetch. */ where?: MinuteUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of MinuteUsageEvents to fetch. */ orderBy?: MinuteUsageEventOrderByWithRelationInput | MinuteUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing MinuteUsageEvents. */ cursor?: MinuteUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` MinuteUsageEvents 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` MinuteUsageEvents. */ skip?: number distinct?: MinuteUsageEventScalarFieldEnum | MinuteUsageEventScalarFieldEnum[] } /** * MinuteUsageEvent create */ export type MinuteUsageEventCreateArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * The data needed to create a MinuteUsageEvent. */ data: XOR } /** * MinuteUsageEvent createMany */ export type MinuteUsageEventCreateManyArgs = { /** * The data used to create many MinuteUsageEvents. */ data: MinuteUsageEventCreateManyInput | MinuteUsageEventCreateManyInput[] skipDuplicates?: boolean } /** * MinuteUsageEvent createManyAndReturn */ export type MinuteUsageEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelectCreateManyAndReturn | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * The data used to create many MinuteUsageEvents. */ data: MinuteUsageEventCreateManyInput | MinuteUsageEventCreateManyInput[] skipDuplicates?: boolean } /** * MinuteUsageEvent update */ export type MinuteUsageEventUpdateArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * The data needed to update a MinuteUsageEvent. */ data: XOR /** * Choose, which MinuteUsageEvent to update. */ where: MinuteUsageEventWhereUniqueInput } /** * MinuteUsageEvent updateMany */ export type MinuteUsageEventUpdateManyArgs = { /** * The data used to update MinuteUsageEvents. */ data: XOR /** * Filter which MinuteUsageEvents to update */ where?: MinuteUsageEventWhereInput /** * Limit how many MinuteUsageEvents to update. */ limit?: number } /** * MinuteUsageEvent updateManyAndReturn */ export type MinuteUsageEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * The data used to update MinuteUsageEvents. */ data: XOR /** * Filter which MinuteUsageEvents to update */ where?: MinuteUsageEventWhereInput /** * Limit how many MinuteUsageEvents to update. */ limit?: number } /** * MinuteUsageEvent upsert */ export type MinuteUsageEventUpsertArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * The filter to search for the MinuteUsageEvent to update in case it exists. */ where: MinuteUsageEventWhereUniqueInput /** * In case the MinuteUsageEvent found by the `where` argument doesn't exist, create a new MinuteUsageEvent with this data. */ create: XOR /** * In case the MinuteUsageEvent was found with the provided `where` argument, update it with this data. */ update: XOR } /** * MinuteUsageEvent delete */ export type MinuteUsageEventDeleteArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null /** * Filter which MinuteUsageEvent to delete. */ where: MinuteUsageEventWhereUniqueInput } /** * MinuteUsageEvent deleteMany */ export type MinuteUsageEventDeleteManyArgs = { /** * Filter which MinuteUsageEvents to delete */ where?: MinuteUsageEventWhereInput /** * Limit how many MinuteUsageEvents to delete. */ limit?: number } /** * MinuteUsageEvent without action */ export type MinuteUsageEventDefaultArgs = { /** * Select specific fields to fetch from the MinuteUsageEvent */ select?: MinuteUsageEventSelect | null /** * Omit specific fields from the MinuteUsageEvent */ omit?: MinuteUsageEventOmit | null } /** * Model AIEditUsageEvent */ export type AggregateAIEditUsageEvent = { _count: AIEditUsageEventCountAggregateOutputType | null _min: AIEditUsageEventMinAggregateOutputType | null _max: AIEditUsageEventMaxAggregateOutputType | null } export type AIEditUsageEventMinAggregateOutputType = { job_id: string | null user_id: string | null created_at: Date | null refunded_at: Date | null } export type AIEditUsageEventMaxAggregateOutputType = { job_id: string | null user_id: string | null created_at: Date | null refunded_at: Date | null } export type AIEditUsageEventCountAggregateOutputType = { job_id: number user_id: number created_at: number refunded_at: number _all: number } export type AIEditUsageEventMinAggregateInputType = { job_id?: true user_id?: true created_at?: true refunded_at?: true } export type AIEditUsageEventMaxAggregateInputType = { job_id?: true user_id?: true created_at?: true refunded_at?: true } export type AIEditUsageEventCountAggregateInputType = { job_id?: true user_id?: true created_at?: true refunded_at?: true _all?: true } export type AIEditUsageEventAggregateArgs = { /** * Filter which AIEditUsageEvent to aggregate. */ where?: AIEditUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AIEditUsageEvents to fetch. */ orderBy?: AIEditUsageEventOrderByWithRelationInput | AIEditUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AIEditUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AIEditUsageEvents 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` AIEditUsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AIEditUsageEvents **/ _count?: true | AIEditUsageEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AIEditUsageEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AIEditUsageEventMaxAggregateInputType } export type GetAIEditUsageEventAggregateType = { [P in keyof T & keyof AggregateAIEditUsageEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AIEditUsageEventGroupByArgs = { where?: AIEditUsageEventWhereInput orderBy?: AIEditUsageEventOrderByWithAggregationInput | AIEditUsageEventOrderByWithAggregationInput[] by: AIEditUsageEventScalarFieldEnum[] | AIEditUsageEventScalarFieldEnum having?: AIEditUsageEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: AIEditUsageEventCountAggregateInputType | true _min?: AIEditUsageEventMinAggregateInputType _max?: AIEditUsageEventMaxAggregateInputType } export type AIEditUsageEventGroupByOutputType = { job_id: string user_id: string created_at: Date refunded_at: Date | null _count: AIEditUsageEventCountAggregateOutputType | null _min: AIEditUsageEventMinAggregateOutputType | null _max: AIEditUsageEventMaxAggregateOutputType | null } type GetAIEditUsageEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AIEditUsageEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AIEditUsageEventSelect = $Extensions.GetSelect<{ job_id?: boolean user_id?: boolean created_at?: boolean refunded_at?: boolean }, ExtArgs["result"]["aIEditUsageEvent"]> export type AIEditUsageEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ job_id?: boolean user_id?: boolean created_at?: boolean refunded_at?: boolean }, ExtArgs["result"]["aIEditUsageEvent"]> export type AIEditUsageEventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ job_id?: boolean user_id?: boolean created_at?: boolean refunded_at?: boolean }, ExtArgs["result"]["aIEditUsageEvent"]> export type AIEditUsageEventSelectScalar = { job_id?: boolean user_id?: boolean created_at?: boolean refunded_at?: boolean } export type AIEditUsageEventOmit = $Extensions.GetOmit<"job_id" | "user_id" | "created_at" | "refunded_at", ExtArgs["result"]["aIEditUsageEvent"]> export type $AIEditUsageEventPayload = { name: "AIEditUsageEvent" objects: {} scalars: $Extensions.GetPayloadResult<{ job_id: string user_id: string created_at: Date refunded_at: Date | null }, ExtArgs["result"]["aIEditUsageEvent"]> composites: {} } type AIEditUsageEventGetPayload = $Result.GetResult type AIEditUsageEventCountArgs = Omit & { select?: AIEditUsageEventCountAggregateInputType | true } export interface AIEditUsageEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AIEditUsageEvent'], meta: { name: 'AIEditUsageEvent' } } /** * Find zero or one AIEditUsageEvent that matches the filter. * @param {AIEditUsageEventFindUniqueArgs} args - Arguments to find a AIEditUsageEvent * @example * // Get one AIEditUsageEvent * const aIEditUsageEvent = await prisma.aIEditUsageEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AIEditUsageEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AIEditUsageEventFindUniqueOrThrowArgs} args - Arguments to find a AIEditUsageEvent * @example * // Get one AIEditUsageEvent * const aIEditUsageEvent = await prisma.aIEditUsageEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AIEditUsageEvent 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 {AIEditUsageEventFindFirstArgs} args - Arguments to find a AIEditUsageEvent * @example * // Get one AIEditUsageEvent * const aIEditUsageEvent = await prisma.aIEditUsageEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AIEditUsageEvent 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 {AIEditUsageEventFindFirstOrThrowArgs} args - Arguments to find a AIEditUsageEvent * @example * // Get one AIEditUsageEvent * const aIEditUsageEvent = await prisma.aIEditUsageEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AIEditUsageEvents 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 {AIEditUsageEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AIEditUsageEvents * const aIEditUsageEvents = await prisma.aIEditUsageEvent.findMany() * * // Get first 10 AIEditUsageEvents * const aIEditUsageEvents = await prisma.aIEditUsageEvent.findMany({ take: 10 }) * * // Only select the `job_id` * const aIEditUsageEventWithJob_idOnly = await prisma.aIEditUsageEvent.findMany({ select: { job_id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a AIEditUsageEvent. * @param {AIEditUsageEventCreateArgs} args - Arguments to create a AIEditUsageEvent. * @example * // Create one AIEditUsageEvent * const AIEditUsageEvent = await prisma.aIEditUsageEvent.create({ * data: { * // ... data to create a AIEditUsageEvent * } * }) * */ create(args: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AIEditUsageEvents. * @param {AIEditUsageEventCreateManyArgs} args - Arguments to create many AIEditUsageEvents. * @example * // Create many AIEditUsageEvents * const aIEditUsageEvent = await prisma.aIEditUsageEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many AIEditUsageEvents and returns the data saved in the database. * @param {AIEditUsageEventCreateManyAndReturnArgs} args - Arguments to create many AIEditUsageEvents. * @example * // Create many AIEditUsageEvents * const aIEditUsageEvent = await prisma.aIEditUsageEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AIEditUsageEvents and only return the `job_id` * const aIEditUsageEventWithJob_idOnly = await prisma.aIEditUsageEvent.createManyAndReturn({ * select: { job_id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AIEditUsageEvent. * @param {AIEditUsageEventDeleteArgs} args - Arguments to delete one AIEditUsageEvent. * @example * // Delete one AIEditUsageEvent * const AIEditUsageEvent = await prisma.aIEditUsageEvent.delete({ * where: { * // ... filter to delete one AIEditUsageEvent * } * }) * */ delete(args: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AIEditUsageEvent. * @param {AIEditUsageEventUpdateArgs} args - Arguments to update one AIEditUsageEvent. * @example * // Update one AIEditUsageEvent * const aIEditUsageEvent = await prisma.aIEditUsageEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AIEditUsageEvents. * @param {AIEditUsageEventDeleteManyArgs} args - Arguments to filter AIEditUsageEvents to delete. * @example * // Delete a few AIEditUsageEvents * const { count } = await prisma.aIEditUsageEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AIEditUsageEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AIEditUsageEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AIEditUsageEvents * const aIEditUsageEvent = await prisma.aIEditUsageEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AIEditUsageEvents and returns the data updated in the database. * @param {AIEditUsageEventUpdateManyAndReturnArgs} args - Arguments to update many AIEditUsageEvents. * @example * // Update many AIEditUsageEvents * const aIEditUsageEvent = await prisma.aIEditUsageEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AIEditUsageEvents and only return the `job_id` * const aIEditUsageEventWithJob_idOnly = await prisma.aIEditUsageEvent.updateManyAndReturn({ * select: { job_id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AIEditUsageEvent. * @param {AIEditUsageEventUpsertArgs} args - Arguments to update or create a AIEditUsageEvent. * @example * // Update or create a AIEditUsageEvent * const aIEditUsageEvent = await prisma.aIEditUsageEvent.upsert({ * create: { * // ... data to create a AIEditUsageEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AIEditUsageEvent we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AIEditUsageEventClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AIEditUsageEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AIEditUsageEventCountArgs} args - Arguments to filter AIEditUsageEvents to count. * @example * // Count the number of AIEditUsageEvents * const count = await prisma.aIEditUsageEvent.count({ * where: { * // ... the filter for the AIEditUsageEvents 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 AIEditUsageEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AIEditUsageEventAggregateArgs} 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 AIEditUsageEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AIEditUsageEventGroupByArgs} 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 AIEditUsageEventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AIEditUsageEventGroupByArgs['orderBy'] } : { orderBy?: AIEditUsageEventGroupByArgs['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 ? GetAIEditUsageEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the AIEditUsageEvent model */ readonly fields: AIEditUsageEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AIEditUsageEvent. * 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__AIEditUsageEventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the AIEditUsageEvent model */ interface AIEditUsageEventFieldRefs { readonly job_id: FieldRef<"AIEditUsageEvent", 'String'> readonly user_id: FieldRef<"AIEditUsageEvent", 'String'> readonly created_at: FieldRef<"AIEditUsageEvent", 'DateTime'> readonly refunded_at: FieldRef<"AIEditUsageEvent", 'DateTime'> } // Custom InputTypes /** * AIEditUsageEvent findUnique */ export type AIEditUsageEventFindUniqueArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * Filter, which AIEditUsageEvent to fetch. */ where: AIEditUsageEventWhereUniqueInput } /** * AIEditUsageEvent findUniqueOrThrow */ export type AIEditUsageEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * Filter, which AIEditUsageEvent to fetch. */ where: AIEditUsageEventWhereUniqueInput } /** * AIEditUsageEvent findFirst */ export type AIEditUsageEventFindFirstArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * Filter, which AIEditUsageEvent to fetch. */ where?: AIEditUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AIEditUsageEvents to fetch. */ orderBy?: AIEditUsageEventOrderByWithRelationInput | AIEditUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AIEditUsageEvents. */ cursor?: AIEditUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AIEditUsageEvents 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` AIEditUsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AIEditUsageEvents. */ distinct?: AIEditUsageEventScalarFieldEnum | AIEditUsageEventScalarFieldEnum[] } /** * AIEditUsageEvent findFirstOrThrow */ export type AIEditUsageEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * Filter, which AIEditUsageEvent to fetch. */ where?: AIEditUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AIEditUsageEvents to fetch. */ orderBy?: AIEditUsageEventOrderByWithRelationInput | AIEditUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AIEditUsageEvents. */ cursor?: AIEditUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AIEditUsageEvents 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` AIEditUsageEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AIEditUsageEvents. */ distinct?: AIEditUsageEventScalarFieldEnum | AIEditUsageEventScalarFieldEnum[] } /** * AIEditUsageEvent findMany */ export type AIEditUsageEventFindManyArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * Filter, which AIEditUsageEvents to fetch. */ where?: AIEditUsageEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AIEditUsageEvents to fetch. */ orderBy?: AIEditUsageEventOrderByWithRelationInput | AIEditUsageEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AIEditUsageEvents. */ cursor?: AIEditUsageEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AIEditUsageEvents 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` AIEditUsageEvents. */ skip?: number distinct?: AIEditUsageEventScalarFieldEnum | AIEditUsageEventScalarFieldEnum[] } /** * AIEditUsageEvent create */ export type AIEditUsageEventCreateArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * The data needed to create a AIEditUsageEvent. */ data: XOR } /** * AIEditUsageEvent createMany */ export type AIEditUsageEventCreateManyArgs = { /** * The data used to create many AIEditUsageEvents. */ data: AIEditUsageEventCreateManyInput | AIEditUsageEventCreateManyInput[] skipDuplicates?: boolean } /** * AIEditUsageEvent createManyAndReturn */ export type AIEditUsageEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelectCreateManyAndReturn | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * The data used to create many AIEditUsageEvents. */ data: AIEditUsageEventCreateManyInput | AIEditUsageEventCreateManyInput[] skipDuplicates?: boolean } /** * AIEditUsageEvent update */ export type AIEditUsageEventUpdateArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * The data needed to update a AIEditUsageEvent. */ data: XOR /** * Choose, which AIEditUsageEvent to update. */ where: AIEditUsageEventWhereUniqueInput } /** * AIEditUsageEvent updateMany */ export type AIEditUsageEventUpdateManyArgs = { /** * The data used to update AIEditUsageEvents. */ data: XOR /** * Filter which AIEditUsageEvents to update */ where?: AIEditUsageEventWhereInput /** * Limit how many AIEditUsageEvents to update. */ limit?: number } /** * AIEditUsageEvent updateManyAndReturn */ export type AIEditUsageEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * The data used to update AIEditUsageEvents. */ data: XOR /** * Filter which AIEditUsageEvents to update */ where?: AIEditUsageEventWhereInput /** * Limit how many AIEditUsageEvents to update. */ limit?: number } /** * AIEditUsageEvent upsert */ export type AIEditUsageEventUpsertArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * The filter to search for the AIEditUsageEvent to update in case it exists. */ where: AIEditUsageEventWhereUniqueInput /** * In case the AIEditUsageEvent found by the `where` argument doesn't exist, create a new AIEditUsageEvent with this data. */ create: XOR /** * In case the AIEditUsageEvent was found with the provided `where` argument, update it with this data. */ update: XOR } /** * AIEditUsageEvent delete */ export type AIEditUsageEventDeleteArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null /** * Filter which AIEditUsageEvent to delete. */ where: AIEditUsageEventWhereUniqueInput } /** * AIEditUsageEvent deleteMany */ export type AIEditUsageEventDeleteManyArgs = { /** * Filter which AIEditUsageEvents to delete */ where?: AIEditUsageEventWhereInput /** * Limit how many AIEditUsageEvents to delete. */ limit?: number } /** * AIEditUsageEvent without action */ export type AIEditUsageEventDefaultArgs = { /** * Select specific fields to fetch from the AIEditUsageEvent */ select?: AIEditUsageEventSelect | null /** * Omit specific fields from the AIEditUsageEvent */ omit?: AIEditUsageEventOmit | null } /** * Model Task */ export type AggregateTask = { _count: TaskCountAggregateOutputType | null _avg: TaskAvgAggregateOutputType | null _sum: TaskSumAggregateOutputType | null _min: TaskMinAggregateOutputType | null _max: TaskMaxAggregateOutputType | null } export type TaskAvgAggregateOutputType = { progress: number | null source_duration_seconds: number | null font_size: number | null } export type TaskSumAggregateOutputType = { progress: number | null source_duration_seconds: number | null font_size: number | null } export type TaskMinAggregateOutputType = { id: string | null user_id: string | null source_id: string | null status: string | null progress: number | null progress_message: string | null source_duration_seconds: number | null completion_notification_sent_at: Date | null share_token: string | null share_enabled: boolean | null font_family: string | null font_size: number | null font_color: string | null caption_template: string | null include_broll: boolean | null created_at: Date | null updated_at: Date | null } export type TaskMaxAggregateOutputType = { id: string | null user_id: string | null source_id: string | null status: string | null progress: number | null progress_message: string | null source_duration_seconds: number | null completion_notification_sent_at: Date | null share_token: string | null share_enabled: boolean | null font_family: string | null font_size: number | null font_color: string | null caption_template: string | null include_broll: boolean | null created_at: Date | null updated_at: Date | null } export type TaskCountAggregateOutputType = { id: number user_id: number source_id: number generated_clips_ids: number status: number progress: number progress_message: number source_metadata: number source_duration_seconds: number completion_notification_sent_at: number share_token: number share_enabled: number font_family: number font_size: number font_color: number caption_template: number include_broll: number created_at: number updated_at: number _all: number } export type TaskAvgAggregateInputType = { progress?: true source_duration_seconds?: true font_size?: true } export type TaskSumAggregateInputType = { progress?: true source_duration_seconds?: true font_size?: true } export type TaskMinAggregateInputType = { id?: true user_id?: true source_id?: true status?: true progress?: true progress_message?: true source_duration_seconds?: true completion_notification_sent_at?: true share_token?: true share_enabled?: true font_family?: true font_size?: true font_color?: true caption_template?: true include_broll?: true created_at?: true updated_at?: true } export type TaskMaxAggregateInputType = { id?: true user_id?: true source_id?: true status?: true progress?: true progress_message?: true source_duration_seconds?: true completion_notification_sent_at?: true share_token?: true share_enabled?: true font_family?: true font_size?: true font_color?: true caption_template?: true include_broll?: true created_at?: true updated_at?: true } export type TaskCountAggregateInputType = { id?: true user_id?: true source_id?: true generated_clips_ids?: true status?: true progress?: true progress_message?: true source_metadata?: true source_duration_seconds?: true completion_notification_sent_at?: true share_token?: true share_enabled?: true font_family?: true font_size?: true font_color?: true caption_template?: true include_broll?: true created_at?: true updated_at?: true _all?: true } export type TaskAggregateArgs = { /** * Filter which Task to aggregate. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Tasks **/ _count?: true | TaskCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TaskAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TaskSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TaskMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TaskMaxAggregateInputType } export type GetTaskAggregateType = { [P in keyof T & keyof AggregateTask]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type TaskGroupByArgs = { where?: TaskWhereInput orderBy?: TaskOrderByWithAggregationInput | TaskOrderByWithAggregationInput[] by: TaskScalarFieldEnum[] | TaskScalarFieldEnum having?: TaskScalarWhereWithAggregatesInput take?: number skip?: number _count?: TaskCountAggregateInputType | true _avg?: TaskAvgAggregateInputType _sum?: TaskSumAggregateInputType _min?: TaskMinAggregateInputType _max?: TaskMaxAggregateInputType } export type TaskGroupByOutputType = { id: string user_id: string source_id: string | null generated_clips_ids: string[] status: string progress: number | null progress_message: string | null source_metadata: JsonValue source_duration_seconds: number | null completion_notification_sent_at: Date | null share_token: string | null share_enabled: boolean font_family: string | null font_size: number | null font_color: string | null caption_template: string | null include_broll: boolean | null created_at: Date updated_at: Date _count: TaskCountAggregateOutputType | null _avg: TaskAvgAggregateOutputType | null _sum: TaskSumAggregateOutputType | null _min: TaskMinAggregateOutputType | null _max: TaskMaxAggregateOutputType | null } type GetTaskGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof TaskGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type TaskSelect = $Extensions.GetSelect<{ id?: boolean user_id?: boolean source_id?: boolean generated_clips_ids?: boolean status?: boolean progress?: boolean progress_message?: boolean source_metadata?: boolean source_duration_seconds?: boolean completion_notification_sent_at?: boolean share_token?: boolean share_enabled?: boolean font_family?: boolean font_size?: boolean font_color?: boolean caption_template?: boolean include_broll?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs source?: boolean | Task$sourceArgs social_posts?: boolean | Task$social_postsArgs _count?: boolean | TaskCountOutputTypeDefaultArgs }, ExtArgs["result"]["task"]> export type TaskSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean source_id?: boolean generated_clips_ids?: boolean status?: boolean progress?: boolean progress_message?: boolean source_metadata?: boolean source_duration_seconds?: boolean completion_notification_sent_at?: boolean share_token?: boolean share_enabled?: boolean font_family?: boolean font_size?: boolean font_color?: boolean caption_template?: boolean include_broll?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs source?: boolean | Task$sourceArgs }, ExtArgs["result"]["task"]> export type TaskSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean source_id?: boolean generated_clips_ids?: boolean status?: boolean progress?: boolean progress_message?: boolean source_metadata?: boolean source_duration_seconds?: boolean completion_notification_sent_at?: boolean share_token?: boolean share_enabled?: boolean font_family?: boolean font_size?: boolean font_color?: boolean caption_template?: boolean include_broll?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs source?: boolean | Task$sourceArgs }, ExtArgs["result"]["task"]> export type TaskSelectScalar = { id?: boolean user_id?: boolean source_id?: boolean generated_clips_ids?: boolean status?: boolean progress?: boolean progress_message?: boolean source_metadata?: boolean source_duration_seconds?: boolean completion_notification_sent_at?: boolean share_token?: boolean share_enabled?: boolean font_family?: boolean font_size?: boolean font_color?: boolean caption_template?: boolean include_broll?: boolean created_at?: boolean updated_at?: boolean } export type TaskOmit = $Extensions.GetOmit<"id" | "user_id" | "source_id" | "generated_clips_ids" | "status" | "progress" | "progress_message" | "source_metadata" | "source_duration_seconds" | "completion_notification_sent_at" | "share_token" | "share_enabled" | "font_family" | "font_size" | "font_color" | "caption_template" | "include_broll" | "created_at" | "updated_at", ExtArgs["result"]["task"]> export type TaskInclude = { user?: boolean | UserDefaultArgs source?: boolean | Task$sourceArgs social_posts?: boolean | Task$social_postsArgs _count?: boolean | TaskCountOutputTypeDefaultArgs } export type TaskIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs source?: boolean | Task$sourceArgs } export type TaskIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs source?: boolean | Task$sourceArgs } export type $TaskPayload = { name: "Task" objects: { user: Prisma.$UserPayload source: Prisma.$SourcePayload | null social_posts: Prisma.$SocialPostPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string user_id: string source_id: string | null generated_clips_ids: string[] status: string progress: number | null progress_message: string | null source_metadata: Prisma.JsonValue source_duration_seconds: number | null completion_notification_sent_at: Date | null share_token: string | null share_enabled: boolean font_family: string | null font_size: number | null font_color: string | null caption_template: string | null include_broll: boolean | null created_at: Date updated_at: Date }, ExtArgs["result"]["task"]> composites: {} } type TaskGetPayload = $Result.GetResult type TaskCountArgs = Omit & { select?: TaskCountAggregateInputType | true } export interface TaskDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Task'], meta: { name: 'Task' } } /** * Find zero or one Task that matches the filter. * @param {TaskFindUniqueArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Task that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TaskFindUniqueOrThrowArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Task that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskFindFirstArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Task that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskFindFirstOrThrowArgs} args - Arguments to find a Task * @example * // Get one Task * const task = await prisma.task.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Tasks that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Tasks * const tasks = await prisma.task.findMany() * * // Get first 10 Tasks * const tasks = await prisma.task.findMany({ take: 10 }) * * // Only select the `id` * const taskWithIdOnly = await prisma.task.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Task. * @param {TaskCreateArgs} args - Arguments to create a Task. * @example * // Create one Task * const Task = await prisma.task.create({ * data: { * // ... data to create a Task * } * }) * */ create(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Tasks. * @param {TaskCreateManyArgs} args - Arguments to create many Tasks. * @example * // Create many Tasks * const task = await prisma.task.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Tasks and returns the data saved in the database. * @param {TaskCreateManyAndReturnArgs} args - Arguments to create many Tasks. * @example * // Create many Tasks * const task = await prisma.task.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Tasks and only return the `id` * const taskWithIdOnly = await prisma.task.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Task. * @param {TaskDeleteArgs} args - Arguments to delete one Task. * @example * // Delete one Task * const Task = await prisma.task.delete({ * where: { * // ... filter to delete one Task * } * }) * */ delete(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Task. * @param {TaskUpdateArgs} args - Arguments to update one Task. * @example * // Update one Task * const task = await prisma.task.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Tasks. * @param {TaskDeleteManyArgs} args - Arguments to filter Tasks to delete. * @example * // Delete a few Tasks * const { count } = await prisma.task.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Tasks * const task = await prisma.task.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Tasks and returns the data updated in the database. * @param {TaskUpdateManyAndReturnArgs} args - Arguments to update many Tasks. * @example * // Update many Tasks * const task = await prisma.task.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Tasks and only return the `id` * const taskWithIdOnly = await prisma.task.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Task. * @param {TaskUpsertArgs} args - Arguments to update or create a Task. * @example * // Update or create a Task * const task = await prisma.task.upsert({ * create: { * // ... data to create a Task * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Task we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__TaskClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Tasks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskCountArgs} args - Arguments to filter Tasks to count. * @example * // Count the number of Tasks * const count = await prisma.task.count({ * where: { * // ... the filter for the Tasks we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Task. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Task. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TaskGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends TaskGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: TaskGroupByArgs['orderBy'] } : { orderBy?: TaskGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetTaskGroupByPayload : Prisma.PrismaPromise /** * Fields of the Task model */ readonly fields: TaskFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Task. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__TaskClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> source = {}>(args?: Subset>): Prisma__SourceClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> social_posts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Task model */ interface TaskFieldRefs { readonly id: FieldRef<"Task", 'String'> readonly user_id: FieldRef<"Task", 'String'> readonly source_id: FieldRef<"Task", 'String'> readonly generated_clips_ids: FieldRef<"Task", 'String[]'> readonly status: FieldRef<"Task", 'String'> readonly progress: FieldRef<"Task", 'Int'> readonly progress_message: FieldRef<"Task", 'String'> readonly source_metadata: FieldRef<"Task", 'Json'> readonly source_duration_seconds: FieldRef<"Task", 'Int'> readonly completion_notification_sent_at: FieldRef<"Task", 'DateTime'> readonly share_token: FieldRef<"Task", 'String'> readonly share_enabled: FieldRef<"Task", 'Boolean'> readonly font_family: FieldRef<"Task", 'String'> readonly font_size: FieldRef<"Task", 'Int'> readonly font_color: FieldRef<"Task", 'String'> readonly caption_template: FieldRef<"Task", 'String'> readonly include_broll: FieldRef<"Task", 'Boolean'> readonly created_at: FieldRef<"Task", 'DateTime'> readonly updated_at: FieldRef<"Task", 'DateTime'> } // Custom InputTypes /** * Task findUnique */ export type TaskFindUniqueArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where: TaskWhereUniqueInput } /** * Task findUniqueOrThrow */ export type TaskFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where: TaskWhereUniqueInput } /** * Task findFirst */ export type TaskFindFirstArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tasks. */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tasks. */ distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * Task findFirstOrThrow */ export type TaskFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Task to fetch. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Tasks. */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Tasks. */ distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * Task findMany */ export type TaskFindManyArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter, which Tasks to fetch. */ where?: TaskWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Tasks to fetch. */ orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Tasks. */ cursor?: TaskWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Tasks from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Tasks. */ skip?: number distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * Task create */ export type TaskCreateArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * The data needed to create a Task. */ data: XOR } /** * Task createMany */ export type TaskCreateManyArgs = { /** * The data used to create many Tasks. */ data: TaskCreateManyInput | TaskCreateManyInput[] skipDuplicates?: boolean } /** * Task createManyAndReturn */ export type TaskCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelectCreateManyAndReturn | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * The data used to create many Tasks. */ data: TaskCreateManyInput | TaskCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: TaskIncludeCreateManyAndReturn | null } /** * Task update */ export type TaskUpdateArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * The data needed to update a Task. */ data: XOR /** * Choose, which Task to update. */ where: TaskWhereUniqueInput } /** * Task updateMany */ export type TaskUpdateManyArgs = { /** * The data used to update Tasks. */ data: XOR /** * Filter which Tasks to update */ where?: TaskWhereInput /** * Limit how many Tasks to update. */ limit?: number } /** * Task updateManyAndReturn */ export type TaskUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelectUpdateManyAndReturn | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * The data used to update Tasks. */ data: XOR /** * Filter which Tasks to update */ where?: TaskWhereInput /** * Limit how many Tasks to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: TaskIncludeUpdateManyAndReturn | null } /** * Task upsert */ export type TaskUpsertArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * The filter to search for the Task to update in case it exists. */ where: TaskWhereUniqueInput /** * In case the Task found by the `where` argument doesn't exist, create a new Task with this data. */ create: XOR /** * In case the Task was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Task delete */ export type TaskDeleteArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null /** * Filter which Task to delete. */ where: TaskWhereUniqueInput } /** * Task deleteMany */ export type TaskDeleteManyArgs = { /** * Filter which Tasks to delete */ where?: TaskWhereInput /** * Limit how many Tasks to delete. */ limit?: number } /** * Task.source */ export type Task$sourceArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null where?: SourceWhereInput } /** * Task.social_posts */ export type Task$social_postsArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null where?: SocialPostWhereInput orderBy?: SocialPostOrderByWithRelationInput | SocialPostOrderByWithRelationInput[] cursor?: SocialPostWhereUniqueInput take?: number skip?: number distinct?: SocialPostScalarFieldEnum | SocialPostScalarFieldEnum[] } /** * Task without action */ export type TaskDefaultArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null } /** * Model SocialAccount */ export type AggregateSocialAccount = { _count: SocialAccountCountAggregateOutputType | null _min: SocialAccountMinAggregateOutputType | null _max: SocialAccountMaxAggregateOutputType | null } export type SocialAccountMinAggregateOutputType = { id: string | null user_id: string | null provider: string | null external_account_id: string | null display_name: string | null username: string | null avatar_url: string | null access_token_encrypted: string | null refresh_token_encrypted: string | null token_expires_at: Date | null scopes: string | null status: string | null last_error: string | null created_at: Date | null updated_at: Date | null revoked_at: Date | null } export type SocialAccountMaxAggregateOutputType = { id: string | null user_id: string | null provider: string | null external_account_id: string | null display_name: string | null username: string | null avatar_url: string | null access_token_encrypted: string | null refresh_token_encrypted: string | null token_expires_at: Date | null scopes: string | null status: string | null last_error: string | null created_at: Date | null updated_at: Date | null revoked_at: Date | null } export type SocialAccountCountAggregateOutputType = { id: number user_id: number provider: number external_account_id: number display_name: number username: number avatar_url: number access_token_encrypted: number refresh_token_encrypted: number token_expires_at: number scopes: number metadata: number status: number last_error: number created_at: number updated_at: number revoked_at: number _all: number } export type SocialAccountMinAggregateInputType = { id?: true user_id?: true provider?: true external_account_id?: true display_name?: true username?: true avatar_url?: true access_token_encrypted?: true refresh_token_encrypted?: true token_expires_at?: true scopes?: true status?: true last_error?: true created_at?: true updated_at?: true revoked_at?: true } export type SocialAccountMaxAggregateInputType = { id?: true user_id?: true provider?: true external_account_id?: true display_name?: true username?: true avatar_url?: true access_token_encrypted?: true refresh_token_encrypted?: true token_expires_at?: true scopes?: true status?: true last_error?: true created_at?: true updated_at?: true revoked_at?: true } export type SocialAccountCountAggregateInputType = { id?: true user_id?: true provider?: true external_account_id?: true display_name?: true username?: true avatar_url?: true access_token_encrypted?: true refresh_token_encrypted?: true token_expires_at?: true scopes?: true metadata?: true status?: true last_error?: true created_at?: true updated_at?: true revoked_at?: true _all?: true } export type SocialAccountAggregateArgs = { /** * Filter which SocialAccount to aggregate. */ where?: SocialAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialAccounts to fetch. */ orderBy?: SocialAccountOrderByWithRelationInput | SocialAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SocialAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialAccounts 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` SocialAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SocialAccounts **/ _count?: true | SocialAccountCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SocialAccountMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SocialAccountMaxAggregateInputType } export type GetSocialAccountAggregateType = { [P in keyof T & keyof AggregateSocialAccount]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SocialAccountGroupByArgs = { where?: SocialAccountWhereInput orderBy?: SocialAccountOrderByWithAggregationInput | SocialAccountOrderByWithAggregationInput[] by: SocialAccountScalarFieldEnum[] | SocialAccountScalarFieldEnum having?: SocialAccountScalarWhereWithAggregatesInput take?: number skip?: number _count?: SocialAccountCountAggregateInputType | true _min?: SocialAccountMinAggregateInputType _max?: SocialAccountMaxAggregateInputType } export type SocialAccountGroupByOutputType = { id: string user_id: string provider: string external_account_id: string display_name: string | null username: string | null avatar_url: string | null access_token_encrypted: string refresh_token_encrypted: string | null token_expires_at: Date | null scopes: string | null metadata: JsonValue status: string last_error: string | null created_at: Date | null updated_at: Date | null revoked_at: Date | null _count: SocialAccountCountAggregateOutputType | null _min: SocialAccountMinAggregateOutputType | null _max: SocialAccountMaxAggregateOutputType | null } type GetSocialAccountGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SocialAccountGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SocialAccountSelect = $Extensions.GetSelect<{ id?: boolean user_id?: boolean provider?: boolean external_account_id?: boolean display_name?: boolean username?: boolean avatar_url?: boolean access_token_encrypted?: boolean refresh_token_encrypted?: boolean token_expires_at?: boolean scopes?: boolean metadata?: boolean status?: boolean last_error?: boolean created_at?: boolean updated_at?: boolean revoked_at?: boolean user?: boolean | UserDefaultArgs posts?: boolean | SocialAccount$postsArgs _count?: boolean | SocialAccountCountOutputTypeDefaultArgs }, ExtArgs["result"]["socialAccount"]> export type SocialAccountSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean provider?: boolean external_account_id?: boolean display_name?: boolean username?: boolean avatar_url?: boolean access_token_encrypted?: boolean refresh_token_encrypted?: boolean token_expires_at?: boolean scopes?: boolean metadata?: boolean status?: boolean last_error?: boolean created_at?: boolean updated_at?: boolean revoked_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["socialAccount"]> export type SocialAccountSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean provider?: boolean external_account_id?: boolean display_name?: boolean username?: boolean avatar_url?: boolean access_token_encrypted?: boolean refresh_token_encrypted?: boolean token_expires_at?: boolean scopes?: boolean metadata?: boolean status?: boolean last_error?: boolean created_at?: boolean updated_at?: boolean revoked_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["socialAccount"]> export type SocialAccountSelectScalar = { id?: boolean user_id?: boolean provider?: boolean external_account_id?: boolean display_name?: boolean username?: boolean avatar_url?: boolean access_token_encrypted?: boolean refresh_token_encrypted?: boolean token_expires_at?: boolean scopes?: boolean metadata?: boolean status?: boolean last_error?: boolean created_at?: boolean updated_at?: boolean revoked_at?: boolean } export type SocialAccountOmit = $Extensions.GetOmit<"id" | "user_id" | "provider" | "external_account_id" | "display_name" | "username" | "avatar_url" | "access_token_encrypted" | "refresh_token_encrypted" | "token_expires_at" | "scopes" | "metadata" | "status" | "last_error" | "created_at" | "updated_at" | "revoked_at", ExtArgs["result"]["socialAccount"]> export type SocialAccountInclude = { user?: boolean | UserDefaultArgs posts?: boolean | SocialAccount$postsArgs _count?: boolean | SocialAccountCountOutputTypeDefaultArgs } export type SocialAccountIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type SocialAccountIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $SocialAccountPayload = { name: "SocialAccount" objects: { user: Prisma.$UserPayload posts: Prisma.$SocialPostPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string user_id: string provider: string external_account_id: string display_name: string | null username: string | null avatar_url: string | null access_token_encrypted: string refresh_token_encrypted: string | null token_expires_at: Date | null scopes: string | null metadata: Prisma.JsonValue status: string last_error: string | null created_at: Date | null updated_at: Date | null revoked_at: Date | null }, ExtArgs["result"]["socialAccount"]> composites: {} } type SocialAccountGetPayload = $Result.GetResult type SocialAccountCountArgs = Omit & { select?: SocialAccountCountAggregateInputType | true } export interface SocialAccountDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SocialAccount'], meta: { name: 'SocialAccount' } } /** * Find zero or one SocialAccount that matches the filter. * @param {SocialAccountFindUniqueArgs} args - Arguments to find a SocialAccount * @example * // Get one SocialAccount * const socialAccount = await prisma.socialAccount.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SocialAccount that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SocialAccountFindUniqueOrThrowArgs} args - Arguments to find a SocialAccount * @example * // Get one SocialAccount * const socialAccount = await prisma.socialAccount.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SocialAccount 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 {SocialAccountFindFirstArgs} args - Arguments to find a SocialAccount * @example * // Get one SocialAccount * const socialAccount = await prisma.socialAccount.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SocialAccount 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 {SocialAccountFindFirstOrThrowArgs} args - Arguments to find a SocialAccount * @example * // Get one SocialAccount * const socialAccount = await prisma.socialAccount.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SocialAccounts 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 {SocialAccountFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SocialAccounts * const socialAccounts = await prisma.socialAccount.findMany() * * // Get first 10 SocialAccounts * const socialAccounts = await prisma.socialAccount.findMany({ take: 10 }) * * // Only select the `id` * const socialAccountWithIdOnly = await prisma.socialAccount.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a SocialAccount. * @param {SocialAccountCreateArgs} args - Arguments to create a SocialAccount. * @example * // Create one SocialAccount * const SocialAccount = await prisma.socialAccount.create({ * data: { * // ... data to create a SocialAccount * } * }) * */ create(args: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SocialAccounts. * @param {SocialAccountCreateManyArgs} args - Arguments to create many SocialAccounts. * @example * // Create many SocialAccounts * const socialAccount = await prisma.socialAccount.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many SocialAccounts and returns the data saved in the database. * @param {SocialAccountCreateManyAndReturnArgs} args - Arguments to create many SocialAccounts. * @example * // Create many SocialAccounts * const socialAccount = await prisma.socialAccount.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SocialAccounts and only return the `id` * const socialAccountWithIdOnly = await prisma.socialAccount.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a SocialAccount. * @param {SocialAccountDeleteArgs} args - Arguments to delete one SocialAccount. * @example * // Delete one SocialAccount * const SocialAccount = await prisma.socialAccount.delete({ * where: { * // ... filter to delete one SocialAccount * } * }) * */ delete(args: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SocialAccount. * @param {SocialAccountUpdateArgs} args - Arguments to update one SocialAccount. * @example * // Update one SocialAccount * const socialAccount = await prisma.socialAccount.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SocialAccounts. * @param {SocialAccountDeleteManyArgs} args - Arguments to filter SocialAccounts to delete. * @example * // Delete a few SocialAccounts * const { count } = await prisma.socialAccount.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialAccounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialAccountUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SocialAccounts * const socialAccount = await prisma.socialAccount.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialAccounts and returns the data updated in the database. * @param {SocialAccountUpdateManyAndReturnArgs} args - Arguments to update many SocialAccounts. * @example * // Update many SocialAccounts * const socialAccount = await prisma.socialAccount.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SocialAccounts and only return the `id` * const socialAccountWithIdOnly = await prisma.socialAccount.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one SocialAccount. * @param {SocialAccountUpsertArgs} args - Arguments to update or create a SocialAccount. * @example * // Update or create a SocialAccount * const socialAccount = await prisma.socialAccount.upsert({ * create: { * // ... data to create a SocialAccount * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SocialAccount we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SocialAccountClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SocialAccounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialAccountCountArgs} args - Arguments to filter SocialAccounts to count. * @example * // Count the number of SocialAccounts * const count = await prisma.socialAccount.count({ * where: { * // ... the filter for the SocialAccounts 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 SocialAccount. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialAccountAggregateArgs} 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 SocialAccount. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialAccountGroupByArgs} 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 SocialAccountGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SocialAccountGroupByArgs['orderBy'] } : { orderBy?: SocialAccountGroupByArgs['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 ? GetSocialAccountGroupByPayload : Prisma.PrismaPromise /** * Fields of the SocialAccount model */ readonly fields: SocialAccountFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SocialAccount. * 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__SocialAccountClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> posts = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the SocialAccount model */ interface SocialAccountFieldRefs { readonly id: FieldRef<"SocialAccount", 'String'> readonly user_id: FieldRef<"SocialAccount", 'String'> readonly provider: FieldRef<"SocialAccount", 'String'> readonly external_account_id: FieldRef<"SocialAccount", 'String'> readonly display_name: FieldRef<"SocialAccount", 'String'> readonly username: FieldRef<"SocialAccount", 'String'> readonly avatar_url: FieldRef<"SocialAccount", 'String'> readonly access_token_encrypted: FieldRef<"SocialAccount", 'String'> readonly refresh_token_encrypted: FieldRef<"SocialAccount", 'String'> readonly token_expires_at: FieldRef<"SocialAccount", 'DateTime'> readonly scopes: FieldRef<"SocialAccount", 'String'> readonly metadata: FieldRef<"SocialAccount", 'Json'> readonly status: FieldRef<"SocialAccount", 'String'> readonly last_error: FieldRef<"SocialAccount", 'String'> readonly created_at: FieldRef<"SocialAccount", 'DateTime'> readonly updated_at: FieldRef<"SocialAccount", 'DateTime'> readonly revoked_at: FieldRef<"SocialAccount", 'DateTime'> } // Custom InputTypes /** * SocialAccount findUnique */ export type SocialAccountFindUniqueArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * Filter, which SocialAccount to fetch. */ where: SocialAccountWhereUniqueInput } /** * SocialAccount findUniqueOrThrow */ export type SocialAccountFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * Filter, which SocialAccount to fetch. */ where: SocialAccountWhereUniqueInput } /** * SocialAccount findFirst */ export type SocialAccountFindFirstArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * Filter, which SocialAccount to fetch. */ where?: SocialAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialAccounts to fetch. */ orderBy?: SocialAccountOrderByWithRelationInput | SocialAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialAccounts. */ cursor?: SocialAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialAccounts 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` SocialAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialAccounts. */ distinct?: SocialAccountScalarFieldEnum | SocialAccountScalarFieldEnum[] } /** * SocialAccount findFirstOrThrow */ export type SocialAccountFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * Filter, which SocialAccount to fetch. */ where?: SocialAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialAccounts to fetch. */ orderBy?: SocialAccountOrderByWithRelationInput | SocialAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialAccounts. */ cursor?: SocialAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialAccounts 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` SocialAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialAccounts. */ distinct?: SocialAccountScalarFieldEnum | SocialAccountScalarFieldEnum[] } /** * SocialAccount findMany */ export type SocialAccountFindManyArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * Filter, which SocialAccounts to fetch. */ where?: SocialAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialAccounts to fetch. */ orderBy?: SocialAccountOrderByWithRelationInput | SocialAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SocialAccounts. */ cursor?: SocialAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialAccounts 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` SocialAccounts. */ skip?: number distinct?: SocialAccountScalarFieldEnum | SocialAccountScalarFieldEnum[] } /** * SocialAccount create */ export type SocialAccountCreateArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * The data needed to create a SocialAccount. */ data: XOR } /** * SocialAccount createMany */ export type SocialAccountCreateManyArgs = { /** * The data used to create many SocialAccounts. */ data: SocialAccountCreateManyInput | SocialAccountCreateManyInput[] skipDuplicates?: boolean } /** * SocialAccount createManyAndReturn */ export type SocialAccountCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelectCreateManyAndReturn | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * The data used to create many SocialAccounts. */ data: SocialAccountCreateManyInput | SocialAccountCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SocialAccountIncludeCreateManyAndReturn | null } /** * SocialAccount update */ export type SocialAccountUpdateArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * The data needed to update a SocialAccount. */ data: XOR /** * Choose, which SocialAccount to update. */ where: SocialAccountWhereUniqueInput } /** * SocialAccount updateMany */ export type SocialAccountUpdateManyArgs = { /** * The data used to update SocialAccounts. */ data: XOR /** * Filter which SocialAccounts to update */ where?: SocialAccountWhereInput /** * Limit how many SocialAccounts to update. */ limit?: number } /** * SocialAccount updateManyAndReturn */ export type SocialAccountUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelectUpdateManyAndReturn | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * The data used to update SocialAccounts. */ data: XOR /** * Filter which SocialAccounts to update */ where?: SocialAccountWhereInput /** * Limit how many SocialAccounts to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SocialAccountIncludeUpdateManyAndReturn | null } /** * SocialAccount upsert */ export type SocialAccountUpsertArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * The filter to search for the SocialAccount to update in case it exists. */ where: SocialAccountWhereUniqueInput /** * In case the SocialAccount found by the `where` argument doesn't exist, create a new SocialAccount with this data. */ create: XOR /** * In case the SocialAccount was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SocialAccount delete */ export type SocialAccountDeleteArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null /** * Filter which SocialAccount to delete. */ where: SocialAccountWhereUniqueInput } /** * SocialAccount deleteMany */ export type SocialAccountDeleteManyArgs = { /** * Filter which SocialAccounts to delete */ where?: SocialAccountWhereInput /** * Limit how many SocialAccounts to delete. */ limit?: number } /** * SocialAccount.posts */ export type SocialAccount$postsArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null where?: SocialPostWhereInput orderBy?: SocialPostOrderByWithRelationInput | SocialPostOrderByWithRelationInput[] cursor?: SocialPostWhereUniqueInput take?: number skip?: number distinct?: SocialPostScalarFieldEnum | SocialPostScalarFieldEnum[] } /** * SocialAccount without action */ export type SocialAccountDefaultArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null } /** * Model SocialOauthState */ export type AggregateSocialOauthState = { _count: SocialOauthStateCountAggregateOutputType | null _min: SocialOauthStateMinAggregateOutputType | null _max: SocialOauthStateMaxAggregateOutputType | null } export type SocialOauthStateMinAggregateOutputType = { state: string | null user_id: string | null provider: string | null code_verifier: string | null redirect_uri: string | null created_at: Date | null expires_at: Date | null } export type SocialOauthStateMaxAggregateOutputType = { state: string | null user_id: string | null provider: string | null code_verifier: string | null redirect_uri: string | null created_at: Date | null expires_at: Date | null } export type SocialOauthStateCountAggregateOutputType = { state: number user_id: number provider: number code_verifier: number redirect_uri: number created_at: number expires_at: number _all: number } export type SocialOauthStateMinAggregateInputType = { state?: true user_id?: true provider?: true code_verifier?: true redirect_uri?: true created_at?: true expires_at?: true } export type SocialOauthStateMaxAggregateInputType = { state?: true user_id?: true provider?: true code_verifier?: true redirect_uri?: true created_at?: true expires_at?: true } export type SocialOauthStateCountAggregateInputType = { state?: true user_id?: true provider?: true code_verifier?: true redirect_uri?: true created_at?: true expires_at?: true _all?: true } export type SocialOauthStateAggregateArgs = { /** * Filter which SocialOauthState to aggregate. */ where?: SocialOauthStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialOauthStates to fetch. */ orderBy?: SocialOauthStateOrderByWithRelationInput | SocialOauthStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SocialOauthStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialOauthStates 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` SocialOauthStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SocialOauthStates **/ _count?: true | SocialOauthStateCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SocialOauthStateMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SocialOauthStateMaxAggregateInputType } export type GetSocialOauthStateAggregateType = { [P in keyof T & keyof AggregateSocialOauthState]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SocialOauthStateGroupByArgs = { where?: SocialOauthStateWhereInput orderBy?: SocialOauthStateOrderByWithAggregationInput | SocialOauthStateOrderByWithAggregationInput[] by: SocialOauthStateScalarFieldEnum[] | SocialOauthStateScalarFieldEnum having?: SocialOauthStateScalarWhereWithAggregatesInput take?: number skip?: number _count?: SocialOauthStateCountAggregateInputType | true _min?: SocialOauthStateMinAggregateInputType _max?: SocialOauthStateMaxAggregateInputType } export type SocialOauthStateGroupByOutputType = { state: string user_id: string provider: string code_verifier: string | null redirect_uri: string created_at: Date | null expires_at: Date _count: SocialOauthStateCountAggregateOutputType | null _min: SocialOauthStateMinAggregateOutputType | null _max: SocialOauthStateMaxAggregateOutputType | null } type GetSocialOauthStateGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SocialOauthStateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SocialOauthStateSelect = $Extensions.GetSelect<{ state?: boolean user_id?: boolean provider?: boolean code_verifier?: boolean redirect_uri?: boolean created_at?: boolean expires_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["socialOauthState"]> export type SocialOauthStateSelectCreateManyAndReturn = $Extensions.GetSelect<{ state?: boolean user_id?: boolean provider?: boolean code_verifier?: boolean redirect_uri?: boolean created_at?: boolean expires_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["socialOauthState"]> export type SocialOauthStateSelectUpdateManyAndReturn = $Extensions.GetSelect<{ state?: boolean user_id?: boolean provider?: boolean code_verifier?: boolean redirect_uri?: boolean created_at?: boolean expires_at?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["socialOauthState"]> export type SocialOauthStateSelectScalar = { state?: boolean user_id?: boolean provider?: boolean code_verifier?: boolean redirect_uri?: boolean created_at?: boolean expires_at?: boolean } export type SocialOauthStateOmit = $Extensions.GetOmit<"state" | "user_id" | "provider" | "code_verifier" | "redirect_uri" | "created_at" | "expires_at", ExtArgs["result"]["socialOauthState"]> export type SocialOauthStateInclude = { user?: boolean | UserDefaultArgs } export type SocialOauthStateIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type SocialOauthStateIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $SocialOauthStatePayload = { name: "SocialOauthState" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ state: string user_id: string provider: string code_verifier: string | null redirect_uri: string created_at: Date | null expires_at: Date }, ExtArgs["result"]["socialOauthState"]> composites: {} } type SocialOauthStateGetPayload = $Result.GetResult type SocialOauthStateCountArgs = Omit & { select?: SocialOauthStateCountAggregateInputType | true } export interface SocialOauthStateDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SocialOauthState'], meta: { name: 'SocialOauthState' } } /** * Find zero or one SocialOauthState that matches the filter. * @param {SocialOauthStateFindUniqueArgs} args - Arguments to find a SocialOauthState * @example * // Get one SocialOauthState * const socialOauthState = await prisma.socialOauthState.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SocialOauthState that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SocialOauthStateFindUniqueOrThrowArgs} args - Arguments to find a SocialOauthState * @example * // Get one SocialOauthState * const socialOauthState = await prisma.socialOauthState.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SocialOauthState 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 {SocialOauthStateFindFirstArgs} args - Arguments to find a SocialOauthState * @example * // Get one SocialOauthState * const socialOauthState = await prisma.socialOauthState.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SocialOauthState 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 {SocialOauthStateFindFirstOrThrowArgs} args - Arguments to find a SocialOauthState * @example * // Get one SocialOauthState * const socialOauthState = await prisma.socialOauthState.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SocialOauthStates 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 {SocialOauthStateFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SocialOauthStates * const socialOauthStates = await prisma.socialOauthState.findMany() * * // Get first 10 SocialOauthStates * const socialOauthStates = await prisma.socialOauthState.findMany({ take: 10 }) * * // Only select the `state` * const socialOauthStateWithStateOnly = await prisma.socialOauthState.findMany({ select: { state: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a SocialOauthState. * @param {SocialOauthStateCreateArgs} args - Arguments to create a SocialOauthState. * @example * // Create one SocialOauthState * const SocialOauthState = await prisma.socialOauthState.create({ * data: { * // ... data to create a SocialOauthState * } * }) * */ create(args: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SocialOauthStates. * @param {SocialOauthStateCreateManyArgs} args - Arguments to create many SocialOauthStates. * @example * // Create many SocialOauthStates * const socialOauthState = await prisma.socialOauthState.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many SocialOauthStates and returns the data saved in the database. * @param {SocialOauthStateCreateManyAndReturnArgs} args - Arguments to create many SocialOauthStates. * @example * // Create many SocialOauthStates * const socialOauthState = await prisma.socialOauthState.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SocialOauthStates and only return the `state` * const socialOauthStateWithStateOnly = await prisma.socialOauthState.createManyAndReturn({ * select: { state: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a SocialOauthState. * @param {SocialOauthStateDeleteArgs} args - Arguments to delete one SocialOauthState. * @example * // Delete one SocialOauthState * const SocialOauthState = await prisma.socialOauthState.delete({ * where: { * // ... filter to delete one SocialOauthState * } * }) * */ delete(args: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SocialOauthState. * @param {SocialOauthStateUpdateArgs} args - Arguments to update one SocialOauthState. * @example * // Update one SocialOauthState * const socialOauthState = await prisma.socialOauthState.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SocialOauthStates. * @param {SocialOauthStateDeleteManyArgs} args - Arguments to filter SocialOauthStates to delete. * @example * // Delete a few SocialOauthStates * const { count } = await prisma.socialOauthState.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialOauthStates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialOauthStateUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SocialOauthStates * const socialOauthState = await prisma.socialOauthState.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialOauthStates and returns the data updated in the database. * @param {SocialOauthStateUpdateManyAndReturnArgs} args - Arguments to update many SocialOauthStates. * @example * // Update many SocialOauthStates * const socialOauthState = await prisma.socialOauthState.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SocialOauthStates and only return the `state` * const socialOauthStateWithStateOnly = await prisma.socialOauthState.updateManyAndReturn({ * select: { state: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one SocialOauthState. * @param {SocialOauthStateUpsertArgs} args - Arguments to update or create a SocialOauthState. * @example * // Update or create a SocialOauthState * const socialOauthState = await prisma.socialOauthState.upsert({ * create: { * // ... data to create a SocialOauthState * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SocialOauthState we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SocialOauthStateClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SocialOauthStates. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialOauthStateCountArgs} args - Arguments to filter SocialOauthStates to count. * @example * // Count the number of SocialOauthStates * const count = await prisma.socialOauthState.count({ * where: { * // ... the filter for the SocialOauthStates 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 SocialOauthState. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialOauthStateAggregateArgs} 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 SocialOauthState. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialOauthStateGroupByArgs} 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 SocialOauthStateGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SocialOauthStateGroupByArgs['orderBy'] } : { orderBy?: SocialOauthStateGroupByArgs['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 ? GetSocialOauthStateGroupByPayload : Prisma.PrismaPromise /** * Fields of the SocialOauthState model */ readonly fields: SocialOauthStateFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SocialOauthState. * 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__SocialOauthStateClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the SocialOauthState model */ interface SocialOauthStateFieldRefs { readonly state: FieldRef<"SocialOauthState", 'String'> readonly user_id: FieldRef<"SocialOauthState", 'String'> readonly provider: FieldRef<"SocialOauthState", 'String'> readonly code_verifier: FieldRef<"SocialOauthState", 'String'> readonly redirect_uri: FieldRef<"SocialOauthState", 'String'> readonly created_at: FieldRef<"SocialOauthState", 'DateTime'> readonly expires_at: FieldRef<"SocialOauthState", 'DateTime'> } // Custom InputTypes /** * SocialOauthState findUnique */ export type SocialOauthStateFindUniqueArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * Filter, which SocialOauthState to fetch. */ where: SocialOauthStateWhereUniqueInput } /** * SocialOauthState findUniqueOrThrow */ export type SocialOauthStateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * Filter, which SocialOauthState to fetch. */ where: SocialOauthStateWhereUniqueInput } /** * SocialOauthState findFirst */ export type SocialOauthStateFindFirstArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * Filter, which SocialOauthState to fetch. */ where?: SocialOauthStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialOauthStates to fetch. */ orderBy?: SocialOauthStateOrderByWithRelationInput | SocialOauthStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialOauthStates. */ cursor?: SocialOauthStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialOauthStates 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` SocialOauthStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialOauthStates. */ distinct?: SocialOauthStateScalarFieldEnum | SocialOauthStateScalarFieldEnum[] } /** * SocialOauthState findFirstOrThrow */ export type SocialOauthStateFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * Filter, which SocialOauthState to fetch. */ where?: SocialOauthStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialOauthStates to fetch. */ orderBy?: SocialOauthStateOrderByWithRelationInput | SocialOauthStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialOauthStates. */ cursor?: SocialOauthStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialOauthStates 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` SocialOauthStates. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialOauthStates. */ distinct?: SocialOauthStateScalarFieldEnum | SocialOauthStateScalarFieldEnum[] } /** * SocialOauthState findMany */ export type SocialOauthStateFindManyArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * Filter, which SocialOauthStates to fetch. */ where?: SocialOauthStateWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialOauthStates to fetch. */ orderBy?: SocialOauthStateOrderByWithRelationInput | SocialOauthStateOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SocialOauthStates. */ cursor?: SocialOauthStateWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialOauthStates 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` SocialOauthStates. */ skip?: number distinct?: SocialOauthStateScalarFieldEnum | SocialOauthStateScalarFieldEnum[] } /** * SocialOauthState create */ export type SocialOauthStateCreateArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * The data needed to create a SocialOauthState. */ data: XOR } /** * SocialOauthState createMany */ export type SocialOauthStateCreateManyArgs = { /** * The data used to create many SocialOauthStates. */ data: SocialOauthStateCreateManyInput | SocialOauthStateCreateManyInput[] skipDuplicates?: boolean } /** * SocialOauthState createManyAndReturn */ export type SocialOauthStateCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelectCreateManyAndReturn | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * The data used to create many SocialOauthStates. */ data: SocialOauthStateCreateManyInput | SocialOauthStateCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateIncludeCreateManyAndReturn | null } /** * SocialOauthState update */ export type SocialOauthStateUpdateArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * The data needed to update a SocialOauthState. */ data: XOR /** * Choose, which SocialOauthState to update. */ where: SocialOauthStateWhereUniqueInput } /** * SocialOauthState updateMany */ export type SocialOauthStateUpdateManyArgs = { /** * The data used to update SocialOauthStates. */ data: XOR /** * Filter which SocialOauthStates to update */ where?: SocialOauthStateWhereInput /** * Limit how many SocialOauthStates to update. */ limit?: number } /** * SocialOauthState updateManyAndReturn */ export type SocialOauthStateUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelectUpdateManyAndReturn | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * The data used to update SocialOauthStates. */ data: XOR /** * Filter which SocialOauthStates to update */ where?: SocialOauthStateWhereInput /** * Limit how many SocialOauthStates to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateIncludeUpdateManyAndReturn | null } /** * SocialOauthState upsert */ export type SocialOauthStateUpsertArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * The filter to search for the SocialOauthState to update in case it exists. */ where: SocialOauthStateWhereUniqueInput /** * In case the SocialOauthState found by the `where` argument doesn't exist, create a new SocialOauthState with this data. */ create: XOR /** * In case the SocialOauthState was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SocialOauthState delete */ export type SocialOauthStateDeleteArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null /** * Filter which SocialOauthState to delete. */ where: SocialOauthStateWhereUniqueInput } /** * SocialOauthState deleteMany */ export type SocialOauthStateDeleteManyArgs = { /** * Filter which SocialOauthStates to delete */ where?: SocialOauthStateWhereInput /** * Limit how many SocialOauthStates to delete. */ limit?: number } /** * SocialOauthState without action */ export type SocialOauthStateDefaultArgs = { /** * Select specific fields to fetch from the SocialOauthState */ select?: SocialOauthStateSelect | null /** * Omit specific fields from the SocialOauthState */ omit?: SocialOauthStateOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialOauthStateInclude | null } /** * Model SocialPost */ export type AggregateSocialPost = { _count: SocialPostCountAggregateOutputType | null _avg: SocialPostAvgAggregateOutputType | null _sum: SocialPostSumAggregateOutputType | null _min: SocialPostMinAggregateOutputType | null _max: SocialPostMaxAggregateOutputType | null } export type SocialPostAvgAggregateOutputType = { attempts: number | null virality_score: number | null hook_score: number | null engagement_score: number | null value_score: number | null shareability_score: number | null clip_duration: number | null } export type SocialPostSumAggregateOutputType = { attempts: number | null virality_score: number | null hook_score: number | null engagement_score: number | null value_score: number | null shareability_score: number | null clip_duration: number | null } export type SocialPostMinAggregateOutputType = { id: string | null user_id: string | null task_id: string | null clip_id: string | null social_account_id: string | null provider: string | null status: string | null scheduled_for: Date | null title: string | null caption: string | null privacy_level: string | null media_token: string | null media_token_expires_at: Date | null source_file_path: string | null pending_handle: string | null external_post_id: string | null external_url: string | null error_message: string | null attempts: number | null claimed_at: Date | null hook_type: string | null hook_title: string | null virality_score: number | null hook_score: number | null engagement_score: number | null value_score: number | null shareability_score: number | null clip_duration: number | null published_at: Date | null last_metrics_at: Date | null created_at: Date | null updated_at: Date | null } export type SocialPostMaxAggregateOutputType = { id: string | null user_id: string | null task_id: string | null clip_id: string | null social_account_id: string | null provider: string | null status: string | null scheduled_for: Date | null title: string | null caption: string | null privacy_level: string | null media_token: string | null media_token_expires_at: Date | null source_file_path: string | null pending_handle: string | null external_post_id: string | null external_url: string | null error_message: string | null attempts: number | null claimed_at: Date | null hook_type: string | null hook_title: string | null virality_score: number | null hook_score: number | null engagement_score: number | null value_score: number | null shareability_score: number | null clip_duration: number | null published_at: Date | null last_metrics_at: Date | null created_at: Date | null updated_at: Date | null } export type SocialPostCountAggregateOutputType = { id: number user_id: number task_id: number clip_id: number social_account_id: number provider: number status: number scheduled_for: number title: number caption: number hashtags: number privacy_level: number media_token: number media_token_expires_at: number source_file_path: number pending_handle: number external_post_id: number external_url: number error_message: number attempts: number claimed_at: number hook_type: number hook_title: number virality_score: number hook_score: number engagement_score: number value_score: number shareability_score: number clip_duration: number published_at: number last_metrics_at: number metrics: number created_at: number updated_at: number _all: number } export type SocialPostAvgAggregateInputType = { attempts?: true virality_score?: true hook_score?: true engagement_score?: true value_score?: true shareability_score?: true clip_duration?: true } export type SocialPostSumAggregateInputType = { attempts?: true virality_score?: true hook_score?: true engagement_score?: true value_score?: true shareability_score?: true clip_duration?: true } export type SocialPostMinAggregateInputType = { id?: true user_id?: true task_id?: true clip_id?: true social_account_id?: true provider?: true status?: true scheduled_for?: true title?: true caption?: true privacy_level?: true media_token?: true media_token_expires_at?: true source_file_path?: true pending_handle?: true external_post_id?: true external_url?: true error_message?: true attempts?: true claimed_at?: true hook_type?: true hook_title?: true virality_score?: true hook_score?: true engagement_score?: true value_score?: true shareability_score?: true clip_duration?: true published_at?: true last_metrics_at?: true created_at?: true updated_at?: true } export type SocialPostMaxAggregateInputType = { id?: true user_id?: true task_id?: true clip_id?: true social_account_id?: true provider?: true status?: true scheduled_for?: true title?: true caption?: true privacy_level?: true media_token?: true media_token_expires_at?: true source_file_path?: true pending_handle?: true external_post_id?: true external_url?: true error_message?: true attempts?: true claimed_at?: true hook_type?: true hook_title?: true virality_score?: true hook_score?: true engagement_score?: true value_score?: true shareability_score?: true clip_duration?: true published_at?: true last_metrics_at?: true created_at?: true updated_at?: true } export type SocialPostCountAggregateInputType = { id?: true user_id?: true task_id?: true clip_id?: true social_account_id?: true provider?: true status?: true scheduled_for?: true title?: true caption?: true hashtags?: true privacy_level?: true media_token?: true media_token_expires_at?: true source_file_path?: true pending_handle?: true external_post_id?: true external_url?: true error_message?: true attempts?: true claimed_at?: true hook_type?: true hook_title?: true virality_score?: true hook_score?: true engagement_score?: true value_score?: true shareability_score?: true clip_duration?: true published_at?: true last_metrics_at?: true metrics?: true created_at?: true updated_at?: true _all?: true } export type SocialPostAggregateArgs = { /** * Filter which SocialPost to aggregate. */ where?: SocialPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPosts to fetch. */ orderBy?: SocialPostOrderByWithRelationInput | SocialPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SocialPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPosts 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` SocialPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SocialPosts **/ _count?: true | SocialPostCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SocialPostAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SocialPostSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SocialPostMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SocialPostMaxAggregateInputType } export type GetSocialPostAggregateType = { [P in keyof T & keyof AggregateSocialPost]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SocialPostGroupByArgs = { where?: SocialPostWhereInput orderBy?: SocialPostOrderByWithAggregationInput | SocialPostOrderByWithAggregationInput[] by: SocialPostScalarFieldEnum[] | SocialPostScalarFieldEnum having?: SocialPostScalarWhereWithAggregatesInput take?: number skip?: number _count?: SocialPostCountAggregateInputType | true _avg?: SocialPostAvgAggregateInputType _sum?: SocialPostSumAggregateInputType _min?: SocialPostMinAggregateInputType _max?: SocialPostMaxAggregateInputType } export type SocialPostGroupByOutputType = { id: string user_id: string task_id: string | null clip_id: string | null social_account_id: string | null provider: string status: string scheduled_for: Date | null title: string | null caption: string | null hashtags: string[] privacy_level: string media_token: string | null media_token_expires_at: Date | null source_file_path: string | null pending_handle: string | null external_post_id: string | null external_url: string | null error_message: string | null attempts: number claimed_at: Date | null hook_type: string | null hook_title: string | null virality_score: number | null hook_score: number | null engagement_score: number | null value_score: number | null shareability_score: number | null clip_duration: number | null published_at: Date | null last_metrics_at: Date | null metrics: JsonValue | null created_at: Date | null updated_at: Date | null _count: SocialPostCountAggregateOutputType | null _avg: SocialPostAvgAggregateOutputType | null _sum: SocialPostSumAggregateOutputType | null _min: SocialPostMinAggregateOutputType | null _max: SocialPostMaxAggregateOutputType | null } type GetSocialPostGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SocialPostGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SocialPostSelect = $Extensions.GetSelect<{ id?: boolean user_id?: boolean task_id?: boolean clip_id?: boolean social_account_id?: boolean provider?: boolean status?: boolean scheduled_for?: boolean title?: boolean caption?: boolean hashtags?: boolean privacy_level?: boolean media_token?: boolean media_token_expires_at?: boolean source_file_path?: boolean pending_handle?: boolean external_post_id?: boolean external_url?: boolean error_message?: boolean attempts?: boolean claimed_at?: boolean hook_type?: boolean hook_title?: boolean virality_score?: boolean hook_score?: boolean engagement_score?: boolean value_score?: boolean shareability_score?: boolean clip_duration?: boolean published_at?: boolean last_metrics_at?: boolean metrics?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs task?: boolean | SocialPost$taskArgs social_account?: boolean | SocialPost$social_accountArgs metric_history?: boolean | SocialPost$metric_historyArgs _count?: boolean | SocialPostCountOutputTypeDefaultArgs }, ExtArgs["result"]["socialPost"]> export type SocialPostSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean task_id?: boolean clip_id?: boolean social_account_id?: boolean provider?: boolean status?: boolean scheduled_for?: boolean title?: boolean caption?: boolean hashtags?: boolean privacy_level?: boolean media_token?: boolean media_token_expires_at?: boolean source_file_path?: boolean pending_handle?: boolean external_post_id?: boolean external_url?: boolean error_message?: boolean attempts?: boolean claimed_at?: boolean hook_type?: boolean hook_title?: boolean virality_score?: boolean hook_score?: boolean engagement_score?: boolean value_score?: boolean shareability_score?: boolean clip_duration?: boolean published_at?: boolean last_metrics_at?: boolean metrics?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs task?: boolean | SocialPost$taskArgs social_account?: boolean | SocialPost$social_accountArgs }, ExtArgs["result"]["socialPost"]> export type SocialPostSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean user_id?: boolean task_id?: boolean clip_id?: boolean social_account_id?: boolean provider?: boolean status?: boolean scheduled_for?: boolean title?: boolean caption?: boolean hashtags?: boolean privacy_level?: boolean media_token?: boolean media_token_expires_at?: boolean source_file_path?: boolean pending_handle?: boolean external_post_id?: boolean external_url?: boolean error_message?: boolean attempts?: boolean claimed_at?: boolean hook_type?: boolean hook_title?: boolean virality_score?: boolean hook_score?: boolean engagement_score?: boolean value_score?: boolean shareability_score?: boolean clip_duration?: boolean published_at?: boolean last_metrics_at?: boolean metrics?: boolean created_at?: boolean updated_at?: boolean user?: boolean | UserDefaultArgs task?: boolean | SocialPost$taskArgs social_account?: boolean | SocialPost$social_accountArgs }, ExtArgs["result"]["socialPost"]> export type SocialPostSelectScalar = { id?: boolean user_id?: boolean task_id?: boolean clip_id?: boolean social_account_id?: boolean provider?: boolean status?: boolean scheduled_for?: boolean title?: boolean caption?: boolean hashtags?: boolean privacy_level?: boolean media_token?: boolean media_token_expires_at?: boolean source_file_path?: boolean pending_handle?: boolean external_post_id?: boolean external_url?: boolean error_message?: boolean attempts?: boolean claimed_at?: boolean hook_type?: boolean hook_title?: boolean virality_score?: boolean hook_score?: boolean engagement_score?: boolean value_score?: boolean shareability_score?: boolean clip_duration?: boolean published_at?: boolean last_metrics_at?: boolean metrics?: boolean created_at?: boolean updated_at?: boolean } export type SocialPostOmit = $Extensions.GetOmit<"id" | "user_id" | "task_id" | "clip_id" | "social_account_id" | "provider" | "status" | "scheduled_for" | "title" | "caption" | "hashtags" | "privacy_level" | "media_token" | "media_token_expires_at" | "source_file_path" | "pending_handle" | "external_post_id" | "external_url" | "error_message" | "attempts" | "claimed_at" | "hook_type" | "hook_title" | "virality_score" | "hook_score" | "engagement_score" | "value_score" | "shareability_score" | "clip_duration" | "published_at" | "last_metrics_at" | "metrics" | "created_at" | "updated_at", ExtArgs["result"]["socialPost"]> export type SocialPostInclude = { user?: boolean | UserDefaultArgs task?: boolean | SocialPost$taskArgs social_account?: boolean | SocialPost$social_accountArgs metric_history?: boolean | SocialPost$metric_historyArgs _count?: boolean | SocialPostCountOutputTypeDefaultArgs } export type SocialPostIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs task?: boolean | SocialPost$taskArgs social_account?: boolean | SocialPost$social_accountArgs } export type SocialPostIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs task?: boolean | SocialPost$taskArgs social_account?: boolean | SocialPost$social_accountArgs } export type $SocialPostPayload = { name: "SocialPost" objects: { user: Prisma.$UserPayload task: Prisma.$TaskPayload | null social_account: Prisma.$SocialAccountPayload | null metric_history: Prisma.$SocialPostMetricPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string user_id: string task_id: string | null /** * generated_clips(id), ON DELETE SET NULL (generated_clips is not modeled here). */ clip_id: string | null social_account_id: string | null provider: string status: string scheduled_for: Date | null title: string | null caption: string | null hashtags: string[] privacy_level: string media_token: string | null media_token_expires_at: Date | null source_file_path: string | null pending_handle: string | null external_post_id: string | null external_url: string | null error_message: string | null attempts: number claimed_at: Date | null hook_type: string | null hook_title: string | null virality_score: number | null hook_score: number | null engagement_score: number | null value_score: number | null shareability_score: number | null clip_duration: number | null published_at: Date | null last_metrics_at: Date | null metrics: Prisma.JsonValue | null created_at: Date | null updated_at: Date | null }, ExtArgs["result"]["socialPost"]> composites: {} } type SocialPostGetPayload = $Result.GetResult type SocialPostCountArgs = Omit & { select?: SocialPostCountAggregateInputType | true } export interface SocialPostDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SocialPost'], meta: { name: 'SocialPost' } } /** * Find zero or one SocialPost that matches the filter. * @param {SocialPostFindUniqueArgs} args - Arguments to find a SocialPost * @example * // Get one SocialPost * const socialPost = await prisma.socialPost.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SocialPost that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SocialPostFindUniqueOrThrowArgs} args - Arguments to find a SocialPost * @example * // Get one SocialPost * const socialPost = await prisma.socialPost.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SocialPost 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 {SocialPostFindFirstArgs} args - Arguments to find a SocialPost * @example * // Get one SocialPost * const socialPost = await prisma.socialPost.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SocialPost 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 {SocialPostFindFirstOrThrowArgs} args - Arguments to find a SocialPost * @example * // Get one SocialPost * const socialPost = await prisma.socialPost.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SocialPosts 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 {SocialPostFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SocialPosts * const socialPosts = await prisma.socialPost.findMany() * * // Get first 10 SocialPosts * const socialPosts = await prisma.socialPost.findMany({ take: 10 }) * * // Only select the `id` * const socialPostWithIdOnly = await prisma.socialPost.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a SocialPost. * @param {SocialPostCreateArgs} args - Arguments to create a SocialPost. * @example * // Create one SocialPost * const SocialPost = await prisma.socialPost.create({ * data: { * // ... data to create a SocialPost * } * }) * */ create(args: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SocialPosts. * @param {SocialPostCreateManyArgs} args - Arguments to create many SocialPosts. * @example * // Create many SocialPosts * const socialPost = await prisma.socialPost.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many SocialPosts and returns the data saved in the database. * @param {SocialPostCreateManyAndReturnArgs} args - Arguments to create many SocialPosts. * @example * // Create many SocialPosts * const socialPost = await prisma.socialPost.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SocialPosts and only return the `id` * const socialPostWithIdOnly = await prisma.socialPost.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a SocialPost. * @param {SocialPostDeleteArgs} args - Arguments to delete one SocialPost. * @example * // Delete one SocialPost * const SocialPost = await prisma.socialPost.delete({ * where: { * // ... filter to delete one SocialPost * } * }) * */ delete(args: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SocialPost. * @param {SocialPostUpdateArgs} args - Arguments to update one SocialPost. * @example * // Update one SocialPost * const socialPost = await prisma.socialPost.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SocialPosts. * @param {SocialPostDeleteManyArgs} args - Arguments to filter SocialPosts to delete. * @example * // Delete a few SocialPosts * const { count } = await prisma.socialPost.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialPosts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SocialPosts * const socialPost = await prisma.socialPost.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialPosts and returns the data updated in the database. * @param {SocialPostUpdateManyAndReturnArgs} args - Arguments to update many SocialPosts. * @example * // Update many SocialPosts * const socialPost = await prisma.socialPost.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SocialPosts and only return the `id` * const socialPostWithIdOnly = await prisma.socialPost.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one SocialPost. * @param {SocialPostUpsertArgs} args - Arguments to update or create a SocialPost. * @example * // Update or create a SocialPost * const socialPost = await prisma.socialPost.upsert({ * create: { * // ... data to create a SocialPost * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SocialPost we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SocialPostClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SocialPosts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostCountArgs} args - Arguments to filter SocialPosts to count. * @example * // Count the number of SocialPosts * const count = await prisma.socialPost.count({ * where: { * // ... the filter for the SocialPosts 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 SocialPost. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostAggregateArgs} 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 SocialPost. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostGroupByArgs} 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 SocialPostGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SocialPostGroupByArgs['orderBy'] } : { orderBy?: SocialPostGroupByArgs['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 ? GetSocialPostGroupByPayload : Prisma.PrismaPromise /** * Fields of the SocialPost model */ readonly fields: SocialPostFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SocialPost. * 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__SocialPostClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> task = {}>(args?: Subset>): Prisma__TaskClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> social_account = {}>(args?: Subset>): Prisma__SocialAccountClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> metric_history = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the SocialPost model */ interface SocialPostFieldRefs { readonly id: FieldRef<"SocialPost", 'String'> readonly user_id: FieldRef<"SocialPost", 'String'> readonly task_id: FieldRef<"SocialPost", 'String'> readonly clip_id: FieldRef<"SocialPost", 'String'> readonly social_account_id: FieldRef<"SocialPost", 'String'> readonly provider: FieldRef<"SocialPost", 'String'> readonly status: FieldRef<"SocialPost", 'String'> readonly scheduled_for: FieldRef<"SocialPost", 'DateTime'> readonly title: FieldRef<"SocialPost", 'String'> readonly caption: FieldRef<"SocialPost", 'String'> readonly hashtags: FieldRef<"SocialPost", 'String[]'> readonly privacy_level: FieldRef<"SocialPost", 'String'> readonly media_token: FieldRef<"SocialPost", 'String'> readonly media_token_expires_at: FieldRef<"SocialPost", 'DateTime'> readonly source_file_path: FieldRef<"SocialPost", 'String'> readonly pending_handle: FieldRef<"SocialPost", 'String'> readonly external_post_id: FieldRef<"SocialPost", 'String'> readonly external_url: FieldRef<"SocialPost", 'String'> readonly error_message: FieldRef<"SocialPost", 'String'> readonly attempts: FieldRef<"SocialPost", 'Int'> readonly claimed_at: FieldRef<"SocialPost", 'DateTime'> readonly hook_type: FieldRef<"SocialPost", 'String'> readonly hook_title: FieldRef<"SocialPost", 'String'> readonly virality_score: FieldRef<"SocialPost", 'Int'> readonly hook_score: FieldRef<"SocialPost", 'Int'> readonly engagement_score: FieldRef<"SocialPost", 'Int'> readonly value_score: FieldRef<"SocialPost", 'Int'> readonly shareability_score: FieldRef<"SocialPost", 'Int'> readonly clip_duration: FieldRef<"SocialPost", 'Float'> readonly published_at: FieldRef<"SocialPost", 'DateTime'> readonly last_metrics_at: FieldRef<"SocialPost", 'DateTime'> readonly metrics: FieldRef<"SocialPost", 'Json'> readonly created_at: FieldRef<"SocialPost", 'DateTime'> readonly updated_at: FieldRef<"SocialPost", 'DateTime'> } // Custom InputTypes /** * SocialPost findUnique */ export type SocialPostFindUniqueArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * Filter, which SocialPost to fetch. */ where: SocialPostWhereUniqueInput } /** * SocialPost findUniqueOrThrow */ export type SocialPostFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * Filter, which SocialPost to fetch. */ where: SocialPostWhereUniqueInput } /** * SocialPost findFirst */ export type SocialPostFindFirstArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * Filter, which SocialPost to fetch. */ where?: SocialPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPosts to fetch. */ orderBy?: SocialPostOrderByWithRelationInput | SocialPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialPosts. */ cursor?: SocialPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPosts 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` SocialPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialPosts. */ distinct?: SocialPostScalarFieldEnum | SocialPostScalarFieldEnum[] } /** * SocialPost findFirstOrThrow */ export type SocialPostFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * Filter, which SocialPost to fetch. */ where?: SocialPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPosts to fetch. */ orderBy?: SocialPostOrderByWithRelationInput | SocialPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialPosts. */ cursor?: SocialPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPosts 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` SocialPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialPosts. */ distinct?: SocialPostScalarFieldEnum | SocialPostScalarFieldEnum[] } /** * SocialPost findMany */ export type SocialPostFindManyArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * Filter, which SocialPosts to fetch. */ where?: SocialPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPosts to fetch. */ orderBy?: SocialPostOrderByWithRelationInput | SocialPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SocialPosts. */ cursor?: SocialPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPosts 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` SocialPosts. */ skip?: number distinct?: SocialPostScalarFieldEnum | SocialPostScalarFieldEnum[] } /** * SocialPost create */ export type SocialPostCreateArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * The data needed to create a SocialPost. */ data: XOR } /** * SocialPost createMany */ export type SocialPostCreateManyArgs = { /** * The data used to create many SocialPosts. */ data: SocialPostCreateManyInput | SocialPostCreateManyInput[] skipDuplicates?: boolean } /** * SocialPost createManyAndReturn */ export type SocialPostCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelectCreateManyAndReturn | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * The data used to create many SocialPosts. */ data: SocialPostCreateManyInput | SocialPostCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SocialPostIncludeCreateManyAndReturn | null } /** * SocialPost update */ export type SocialPostUpdateArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * The data needed to update a SocialPost. */ data: XOR /** * Choose, which SocialPost to update. */ where: SocialPostWhereUniqueInput } /** * SocialPost updateMany */ export type SocialPostUpdateManyArgs = { /** * The data used to update SocialPosts. */ data: XOR /** * Filter which SocialPosts to update */ where?: SocialPostWhereInput /** * Limit how many SocialPosts to update. */ limit?: number } /** * SocialPost updateManyAndReturn */ export type SocialPostUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelectUpdateManyAndReturn | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * The data used to update SocialPosts. */ data: XOR /** * Filter which SocialPosts to update */ where?: SocialPostWhereInput /** * Limit how many SocialPosts to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SocialPostIncludeUpdateManyAndReturn | null } /** * SocialPost upsert */ export type SocialPostUpsertArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * The filter to search for the SocialPost to update in case it exists. */ where: SocialPostWhereUniqueInput /** * In case the SocialPost found by the `where` argument doesn't exist, create a new SocialPost with this data. */ create: XOR /** * In case the SocialPost was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SocialPost delete */ export type SocialPostDeleteArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null /** * Filter which SocialPost to delete. */ where: SocialPostWhereUniqueInput } /** * SocialPost deleteMany */ export type SocialPostDeleteManyArgs = { /** * Filter which SocialPosts to delete */ where?: SocialPostWhereInput /** * Limit how many SocialPosts to delete. */ limit?: number } /** * SocialPost.task */ export type SocialPost$taskArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null where?: TaskWhereInput } /** * SocialPost.social_account */ export type SocialPost$social_accountArgs = { /** * Select specific fields to fetch from the SocialAccount */ select?: SocialAccountSelect | null /** * Omit specific fields from the SocialAccount */ omit?: SocialAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialAccountInclude | null where?: SocialAccountWhereInput } /** * SocialPost.metric_history */ export type SocialPost$metric_historyArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null where?: SocialPostMetricWhereInput orderBy?: SocialPostMetricOrderByWithRelationInput | SocialPostMetricOrderByWithRelationInput[] cursor?: SocialPostMetricWhereUniqueInput take?: number skip?: number distinct?: SocialPostMetricScalarFieldEnum | SocialPostMetricScalarFieldEnum[] } /** * SocialPost without action */ export type SocialPostDefaultArgs = { /** * Select specific fields to fetch from the SocialPost */ select?: SocialPostSelect | null /** * Omit specific fields from the SocialPost */ omit?: SocialPostOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostInclude | null } /** * Model SocialPostMetric */ export type AggregateSocialPostMetric = { _count: SocialPostMetricCountAggregateOutputType | null _avg: SocialPostMetricAvgAggregateOutputType | null _sum: SocialPostMetricSumAggregateOutputType | null _min: SocialPostMetricMinAggregateOutputType | null _max: SocialPostMetricMaxAggregateOutputType | null } export type SocialPostMetricAvgAggregateOutputType = { views: number | null likes: number | null comments: number | null shares: number | null saves: number | null } export type SocialPostMetricSumAggregateOutputType = { views: bigint | null likes: bigint | null comments: bigint | null shares: bigint | null saves: bigint | null } export type SocialPostMetricMinAggregateOutputType = { id: string | null post_id: string | null captured_at: Date | null views: bigint | null likes: bigint | null comments: bigint | null shares: bigint | null saves: bigint | null } export type SocialPostMetricMaxAggregateOutputType = { id: string | null post_id: string | null captured_at: Date | null views: bigint | null likes: bigint | null comments: bigint | null shares: bigint | null saves: bigint | null } export type SocialPostMetricCountAggregateOutputType = { id: number post_id: number captured_at: number views: number likes: number comments: number shares: number saves: number raw: number _all: number } export type SocialPostMetricAvgAggregateInputType = { views?: true likes?: true comments?: true shares?: true saves?: true } export type SocialPostMetricSumAggregateInputType = { views?: true likes?: true comments?: true shares?: true saves?: true } export type SocialPostMetricMinAggregateInputType = { id?: true post_id?: true captured_at?: true views?: true likes?: true comments?: true shares?: true saves?: true } export type SocialPostMetricMaxAggregateInputType = { id?: true post_id?: true captured_at?: true views?: true likes?: true comments?: true shares?: true saves?: true } export type SocialPostMetricCountAggregateInputType = { id?: true post_id?: true captured_at?: true views?: true likes?: true comments?: true shares?: true saves?: true raw?: true _all?: true } export type SocialPostMetricAggregateArgs = { /** * Filter which SocialPostMetric to aggregate. */ where?: SocialPostMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPostMetrics to fetch. */ orderBy?: SocialPostMetricOrderByWithRelationInput | SocialPostMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SocialPostMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPostMetrics 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` SocialPostMetrics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned SocialPostMetrics **/ _count?: true | SocialPostMetricCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: SocialPostMetricAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: SocialPostMetricSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SocialPostMetricMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SocialPostMetricMaxAggregateInputType } export type GetSocialPostMetricAggregateType = { [P in keyof T & keyof AggregateSocialPostMetric]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SocialPostMetricGroupByArgs = { where?: SocialPostMetricWhereInput orderBy?: SocialPostMetricOrderByWithAggregationInput | SocialPostMetricOrderByWithAggregationInput[] by: SocialPostMetricScalarFieldEnum[] | SocialPostMetricScalarFieldEnum having?: SocialPostMetricScalarWhereWithAggregatesInput take?: number skip?: number _count?: SocialPostMetricCountAggregateInputType | true _avg?: SocialPostMetricAvgAggregateInputType _sum?: SocialPostMetricSumAggregateInputType _min?: SocialPostMetricMinAggregateInputType _max?: SocialPostMetricMaxAggregateInputType } export type SocialPostMetricGroupByOutputType = { id: string post_id: string captured_at: Date | null views: bigint | null likes: bigint | null comments: bigint | null shares: bigint | null saves: bigint | null raw: JsonValue | null _count: SocialPostMetricCountAggregateOutputType | null _avg: SocialPostMetricAvgAggregateOutputType | null _sum: SocialPostMetricSumAggregateOutputType | null _min: SocialPostMetricMinAggregateOutputType | null _max: SocialPostMetricMaxAggregateOutputType | null } type GetSocialPostMetricGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SocialPostMetricGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SocialPostMetricSelect = $Extensions.GetSelect<{ id?: boolean post_id?: boolean captured_at?: boolean views?: boolean likes?: boolean comments?: boolean shares?: boolean saves?: boolean raw?: boolean post?: boolean | SocialPostDefaultArgs }, ExtArgs["result"]["socialPostMetric"]> export type SocialPostMetricSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean post_id?: boolean captured_at?: boolean views?: boolean likes?: boolean comments?: boolean shares?: boolean saves?: boolean raw?: boolean post?: boolean | SocialPostDefaultArgs }, ExtArgs["result"]["socialPostMetric"]> export type SocialPostMetricSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean post_id?: boolean captured_at?: boolean views?: boolean likes?: boolean comments?: boolean shares?: boolean saves?: boolean raw?: boolean post?: boolean | SocialPostDefaultArgs }, ExtArgs["result"]["socialPostMetric"]> export type SocialPostMetricSelectScalar = { id?: boolean post_id?: boolean captured_at?: boolean views?: boolean likes?: boolean comments?: boolean shares?: boolean saves?: boolean raw?: boolean } export type SocialPostMetricOmit = $Extensions.GetOmit<"id" | "post_id" | "captured_at" | "views" | "likes" | "comments" | "shares" | "saves" | "raw", ExtArgs["result"]["socialPostMetric"]> export type SocialPostMetricInclude = { post?: boolean | SocialPostDefaultArgs } export type SocialPostMetricIncludeCreateManyAndReturn = { post?: boolean | SocialPostDefaultArgs } export type SocialPostMetricIncludeUpdateManyAndReturn = { post?: boolean | SocialPostDefaultArgs } export type $SocialPostMetricPayload = { name: "SocialPostMetric" objects: { post: Prisma.$SocialPostPayload } scalars: $Extensions.GetPayloadResult<{ id: string post_id: string captured_at: Date | null views: bigint | null likes: bigint | null comments: bigint | null shares: bigint | null saves: bigint | null raw: Prisma.JsonValue | null }, ExtArgs["result"]["socialPostMetric"]> composites: {} } type SocialPostMetricGetPayload = $Result.GetResult type SocialPostMetricCountArgs = Omit & { select?: SocialPostMetricCountAggregateInputType | true } export interface SocialPostMetricDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['SocialPostMetric'], meta: { name: 'SocialPostMetric' } } /** * Find zero or one SocialPostMetric that matches the filter. * @param {SocialPostMetricFindUniqueArgs} args - Arguments to find a SocialPostMetric * @example * // Get one SocialPostMetric * const socialPostMetric = await prisma.socialPostMetric.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one SocialPostMetric that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SocialPostMetricFindUniqueOrThrowArgs} args - Arguments to find a SocialPostMetric * @example * // Get one SocialPostMetric * const socialPostMetric = await prisma.socialPostMetric.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first SocialPostMetric 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 {SocialPostMetricFindFirstArgs} args - Arguments to find a SocialPostMetric * @example * // Get one SocialPostMetric * const socialPostMetric = await prisma.socialPostMetric.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first SocialPostMetric 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 {SocialPostMetricFindFirstOrThrowArgs} args - Arguments to find a SocialPostMetric * @example * // Get one SocialPostMetric * const socialPostMetric = await prisma.socialPostMetric.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more SocialPostMetrics 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 {SocialPostMetricFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all SocialPostMetrics * const socialPostMetrics = await prisma.socialPostMetric.findMany() * * // Get first 10 SocialPostMetrics * const socialPostMetrics = await prisma.socialPostMetric.findMany({ take: 10 }) * * // Only select the `id` * const socialPostMetricWithIdOnly = await prisma.socialPostMetric.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a SocialPostMetric. * @param {SocialPostMetricCreateArgs} args - Arguments to create a SocialPostMetric. * @example * // Create one SocialPostMetric * const SocialPostMetric = await prisma.socialPostMetric.create({ * data: { * // ... data to create a SocialPostMetric * } * }) * */ create(args: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many SocialPostMetrics. * @param {SocialPostMetricCreateManyArgs} args - Arguments to create many SocialPostMetrics. * @example * // Create many SocialPostMetrics * const socialPostMetric = await prisma.socialPostMetric.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many SocialPostMetrics and returns the data saved in the database. * @param {SocialPostMetricCreateManyAndReturnArgs} args - Arguments to create many SocialPostMetrics. * @example * // Create many SocialPostMetrics * const socialPostMetric = await prisma.socialPostMetric.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many SocialPostMetrics and only return the `id` * const socialPostMetricWithIdOnly = await prisma.socialPostMetric.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a SocialPostMetric. * @param {SocialPostMetricDeleteArgs} args - Arguments to delete one SocialPostMetric. * @example * // Delete one SocialPostMetric * const SocialPostMetric = await prisma.socialPostMetric.delete({ * where: { * // ... filter to delete one SocialPostMetric * } * }) * */ delete(args: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one SocialPostMetric. * @param {SocialPostMetricUpdateArgs} args - Arguments to update one SocialPostMetric. * @example * // Update one SocialPostMetric * const socialPostMetric = await prisma.socialPostMetric.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more SocialPostMetrics. * @param {SocialPostMetricDeleteManyArgs} args - Arguments to filter SocialPostMetrics to delete. * @example * // Delete a few SocialPostMetrics * const { count } = await prisma.socialPostMetric.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialPostMetrics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostMetricUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many SocialPostMetrics * const socialPostMetric = await prisma.socialPostMetric.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more SocialPostMetrics and returns the data updated in the database. * @param {SocialPostMetricUpdateManyAndReturnArgs} args - Arguments to update many SocialPostMetrics. * @example * // Update many SocialPostMetrics * const socialPostMetric = await prisma.socialPostMetric.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more SocialPostMetrics and only return the `id` * const socialPostMetricWithIdOnly = await prisma.socialPostMetric.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one SocialPostMetric. * @param {SocialPostMetricUpsertArgs} args - Arguments to update or create a SocialPostMetric. * @example * // Update or create a SocialPostMetric * const socialPostMetric = await prisma.socialPostMetric.upsert({ * create: { * // ... data to create a SocialPostMetric * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the SocialPostMetric we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SocialPostMetricClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of SocialPostMetrics. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostMetricCountArgs} args - Arguments to filter SocialPostMetrics to count. * @example * // Count the number of SocialPostMetrics * const count = await prisma.socialPostMetric.count({ * where: { * // ... the filter for the SocialPostMetrics 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 SocialPostMetric. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostMetricAggregateArgs} 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 SocialPostMetric. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SocialPostMetricGroupByArgs} 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 SocialPostMetricGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SocialPostMetricGroupByArgs['orderBy'] } : { orderBy?: SocialPostMetricGroupByArgs['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 ? GetSocialPostMetricGroupByPayload : Prisma.PrismaPromise /** * Fields of the SocialPostMetric model */ readonly fields: SocialPostMetricFieldRefs; } /** * The delegate class that acts as a "Promise-like" for SocialPostMetric. * 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__SocialPostMetricClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" post = {}>(args?: Subset>): Prisma__SocialPostClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the SocialPostMetric model */ interface SocialPostMetricFieldRefs { readonly id: FieldRef<"SocialPostMetric", 'String'> readonly post_id: FieldRef<"SocialPostMetric", 'String'> readonly captured_at: FieldRef<"SocialPostMetric", 'DateTime'> readonly views: FieldRef<"SocialPostMetric", 'BigInt'> readonly likes: FieldRef<"SocialPostMetric", 'BigInt'> readonly comments: FieldRef<"SocialPostMetric", 'BigInt'> readonly shares: FieldRef<"SocialPostMetric", 'BigInt'> readonly saves: FieldRef<"SocialPostMetric", 'BigInt'> readonly raw: FieldRef<"SocialPostMetric", 'Json'> } // Custom InputTypes /** * SocialPostMetric findUnique */ export type SocialPostMetricFindUniqueArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * Filter, which SocialPostMetric to fetch. */ where: SocialPostMetricWhereUniqueInput } /** * SocialPostMetric findUniqueOrThrow */ export type SocialPostMetricFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * Filter, which SocialPostMetric to fetch. */ where: SocialPostMetricWhereUniqueInput } /** * SocialPostMetric findFirst */ export type SocialPostMetricFindFirstArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * Filter, which SocialPostMetric to fetch. */ where?: SocialPostMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPostMetrics to fetch. */ orderBy?: SocialPostMetricOrderByWithRelationInput | SocialPostMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialPostMetrics. */ cursor?: SocialPostMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPostMetrics 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` SocialPostMetrics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialPostMetrics. */ distinct?: SocialPostMetricScalarFieldEnum | SocialPostMetricScalarFieldEnum[] } /** * SocialPostMetric findFirstOrThrow */ export type SocialPostMetricFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * Filter, which SocialPostMetric to fetch. */ where?: SocialPostMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPostMetrics to fetch. */ orderBy?: SocialPostMetricOrderByWithRelationInput | SocialPostMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for SocialPostMetrics. */ cursor?: SocialPostMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPostMetrics 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` SocialPostMetrics. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of SocialPostMetrics. */ distinct?: SocialPostMetricScalarFieldEnum | SocialPostMetricScalarFieldEnum[] } /** * SocialPostMetric findMany */ export type SocialPostMetricFindManyArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * Filter, which SocialPostMetrics to fetch. */ where?: SocialPostMetricWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of SocialPostMetrics to fetch. */ orderBy?: SocialPostMetricOrderByWithRelationInput | SocialPostMetricOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing SocialPostMetrics. */ cursor?: SocialPostMetricWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` SocialPostMetrics 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` SocialPostMetrics. */ skip?: number distinct?: SocialPostMetricScalarFieldEnum | SocialPostMetricScalarFieldEnum[] } /** * SocialPostMetric create */ export type SocialPostMetricCreateArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * The data needed to create a SocialPostMetric. */ data: XOR } /** * SocialPostMetric createMany */ export type SocialPostMetricCreateManyArgs = { /** * The data used to create many SocialPostMetrics. */ data: SocialPostMetricCreateManyInput | SocialPostMetricCreateManyInput[] skipDuplicates?: boolean } /** * SocialPostMetric createManyAndReturn */ export type SocialPostMetricCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelectCreateManyAndReturn | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * The data used to create many SocialPostMetrics. */ data: SocialPostMetricCreateManyInput | SocialPostMetricCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricIncludeCreateManyAndReturn | null } /** * SocialPostMetric update */ export type SocialPostMetricUpdateArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * The data needed to update a SocialPostMetric. */ data: XOR /** * Choose, which SocialPostMetric to update. */ where: SocialPostMetricWhereUniqueInput } /** * SocialPostMetric updateMany */ export type SocialPostMetricUpdateManyArgs = { /** * The data used to update SocialPostMetrics. */ data: XOR /** * Filter which SocialPostMetrics to update */ where?: SocialPostMetricWhereInput /** * Limit how many SocialPostMetrics to update. */ limit?: number } /** * SocialPostMetric updateManyAndReturn */ export type SocialPostMetricUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelectUpdateManyAndReturn | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * The data used to update SocialPostMetrics. */ data: XOR /** * Filter which SocialPostMetrics to update */ where?: SocialPostMetricWhereInput /** * Limit how many SocialPostMetrics to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricIncludeUpdateManyAndReturn | null } /** * SocialPostMetric upsert */ export type SocialPostMetricUpsertArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * The filter to search for the SocialPostMetric to update in case it exists. */ where: SocialPostMetricWhereUniqueInput /** * In case the SocialPostMetric found by the `where` argument doesn't exist, create a new SocialPostMetric with this data. */ create: XOR /** * In case the SocialPostMetric was found with the provided `where` argument, update it with this data. */ update: XOR } /** * SocialPostMetric delete */ export type SocialPostMetricDeleteArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null /** * Filter which SocialPostMetric to delete. */ where: SocialPostMetricWhereUniqueInput } /** * SocialPostMetric deleteMany */ export type SocialPostMetricDeleteManyArgs = { /** * Filter which SocialPostMetrics to delete */ where?: SocialPostMetricWhereInput /** * Limit how many SocialPostMetrics to delete. */ limit?: number } /** * SocialPostMetric without action */ export type SocialPostMetricDefaultArgs = { /** * Select specific fields to fetch from the SocialPostMetric */ select?: SocialPostMetricSelect | null /** * Omit specific fields from the SocialPostMetric */ omit?: SocialPostMetricOmit | null /** * Choose, which related nodes to fetch as well */ include?: SocialPostMetricInclude | null } /** * Model Source */ export type AggregateSource = { _count: SourceCountAggregateOutputType | null _min: SourceMinAggregateOutputType | null _max: SourceMaxAggregateOutputType | null } export type SourceMinAggregateOutputType = { id: string | null type: string | null title: string | null url: string | null created_at: Date | null updated_at: Date | null } export type SourceMaxAggregateOutputType = { id: string | null type: string | null title: string | null url: string | null created_at: Date | null updated_at: Date | null } export type SourceCountAggregateOutputType = { id: number type: number title: number url: number created_at: number updated_at: number _all: number } export type SourceMinAggregateInputType = { id?: true type?: true title?: true url?: true created_at?: true updated_at?: true } export type SourceMaxAggregateInputType = { id?: true type?: true title?: true url?: true created_at?: true updated_at?: true } export type SourceCountAggregateInputType = { id?: true type?: true title?: true url?: true created_at?: true updated_at?: true _all?: true } export type SourceAggregateArgs = { /** * Filter which Source to aggregate. */ where?: SourceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sources to fetch. */ orderBy?: SourceOrderByWithRelationInput | SourceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: SourceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sources 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` Sources. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Sources **/ _count?: true | SourceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SourceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SourceMaxAggregateInputType } export type GetSourceAggregateType = { [P in keyof T & keyof AggregateSource]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type SourceGroupByArgs = { where?: SourceWhereInput orderBy?: SourceOrderByWithAggregationInput | SourceOrderByWithAggregationInput[] by: SourceScalarFieldEnum[] | SourceScalarFieldEnum having?: SourceScalarWhereWithAggregatesInput take?: number skip?: number _count?: SourceCountAggregateInputType | true _min?: SourceMinAggregateInputType _max?: SourceMaxAggregateInputType } export type SourceGroupByOutputType = { id: string type: string title: string url: string | null created_at: Date updated_at: Date _count: SourceCountAggregateOutputType | null _min: SourceMinAggregateOutputType | null _max: SourceMaxAggregateOutputType | null } type GetSourceGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof SourceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type SourceSelect = $Extensions.GetSelect<{ id?: boolean type?: boolean title?: boolean url?: boolean created_at?: boolean updated_at?: boolean tasks?: boolean | Source$tasksArgs _count?: boolean | SourceCountOutputTypeDefaultArgs }, ExtArgs["result"]["source"]> export type SourceSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean title?: boolean url?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["source"]> export type SourceSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean title?: boolean url?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["source"]> export type SourceSelectScalar = { id?: boolean type?: boolean title?: boolean url?: boolean created_at?: boolean updated_at?: boolean } export type SourceOmit = $Extensions.GetOmit<"id" | "type" | "title" | "url" | "created_at" | "updated_at", ExtArgs["result"]["source"]> export type SourceInclude = { tasks?: boolean | Source$tasksArgs _count?: boolean | SourceCountOutputTypeDefaultArgs } export type SourceIncludeCreateManyAndReturn = {} export type SourceIncludeUpdateManyAndReturn = {} export type $SourcePayload = { name: "Source" objects: { tasks: Prisma.$TaskPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string type: string title: string url: string | null created_at: Date updated_at: Date }, ExtArgs["result"]["source"]> composites: {} } type SourceGetPayload = $Result.GetResult type SourceCountArgs = Omit & { select?: SourceCountAggregateInputType | true } export interface SourceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Source'], meta: { name: 'Source' } } /** * Find zero or one Source that matches the filter. * @param {SourceFindUniqueArgs} args - Arguments to find a Source * @example * // Get one Source * const source = await prisma.source.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Source that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SourceFindUniqueOrThrowArgs} args - Arguments to find a Source * @example * // Get one Source * const source = await prisma.source.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Source 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 {SourceFindFirstArgs} args - Arguments to find a Source * @example * // Get one Source * const source = await prisma.source.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Source 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 {SourceFindFirstOrThrowArgs} args - Arguments to find a Source * @example * // Get one Source * const source = await prisma.source.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sources 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 {SourceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sources * const sources = await prisma.source.findMany() * * // Get first 10 Sources * const sources = await prisma.source.findMany({ take: 10 }) * * // Only select the `id` * const sourceWithIdOnly = await prisma.source.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Source. * @param {SourceCreateArgs} args - Arguments to create a Source. * @example * // Create one Source * const Source = await prisma.source.create({ * data: { * // ... data to create a Source * } * }) * */ create(args: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sources. * @param {SourceCreateManyArgs} args - Arguments to create many Sources. * @example * // Create many Sources * const source = await prisma.source.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Sources and returns the data saved in the database. * @param {SourceCreateManyAndReturnArgs} args - Arguments to create many Sources. * @example * // Create many Sources * const source = await prisma.source.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sources and only return the `id` * const sourceWithIdOnly = await prisma.source.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Source. * @param {SourceDeleteArgs} args - Arguments to delete one Source. * @example * // Delete one Source * const Source = await prisma.source.delete({ * where: { * // ... filter to delete one Source * } * }) * */ delete(args: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Source. * @param {SourceUpdateArgs} args - Arguments to update one Source. * @example * // Update one Source * const source = await prisma.source.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sources. * @param {SourceDeleteManyArgs} args - Arguments to filter Sources to delete. * @example * // Delete a few Sources * const { count } = await prisma.source.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sources. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SourceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sources * const source = await prisma.source.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sources and returns the data updated in the database. * @param {SourceUpdateManyAndReturnArgs} args - Arguments to update many Sources. * @example * // Update many Sources * const source = await prisma.source.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Sources and only return the `id` * const sourceWithIdOnly = await prisma.source.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Source. * @param {SourceUpsertArgs} args - Arguments to update or create a Source. * @example * // Update or create a Source * const source = await prisma.source.upsert({ * create: { * // ... data to create a Source * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Source we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SourceClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sources. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SourceCountArgs} args - Arguments to filter Sources to count. * @example * // Count the number of Sources * const count = await prisma.source.count({ * where: { * // ... the filter for the Sources 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 Source. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SourceAggregateArgs} 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 Source. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SourceGroupByArgs} 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 SourceGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SourceGroupByArgs['orderBy'] } : { orderBy?: SourceGroupByArgs['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 ? GetSourceGroupByPayload : Prisma.PrismaPromise /** * Fields of the Source model */ readonly fields: SourceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Source. * 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__SourceClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tasks = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Source model */ interface SourceFieldRefs { readonly id: FieldRef<"Source", 'String'> readonly type: FieldRef<"Source", 'String'> readonly title: FieldRef<"Source", 'String'> readonly url: FieldRef<"Source", 'String'> readonly created_at: FieldRef<"Source", 'DateTime'> readonly updated_at: FieldRef<"Source", 'DateTime'> } // Custom InputTypes /** * Source findUnique */ export type SourceFindUniqueArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * Filter, which Source to fetch. */ where: SourceWhereUniqueInput } /** * Source findUniqueOrThrow */ export type SourceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * Filter, which Source to fetch. */ where: SourceWhereUniqueInput } /** * Source findFirst */ export type SourceFindFirstArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * Filter, which Source to fetch. */ where?: SourceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sources to fetch. */ orderBy?: SourceOrderByWithRelationInput | SourceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sources. */ cursor?: SourceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sources 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` Sources. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sources. */ distinct?: SourceScalarFieldEnum | SourceScalarFieldEnum[] } /** * Source findFirstOrThrow */ export type SourceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * Filter, which Source to fetch. */ where?: SourceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sources to fetch. */ orderBy?: SourceOrderByWithRelationInput | SourceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sources. */ cursor?: SourceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sources 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` Sources. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sources. */ distinct?: SourceScalarFieldEnum | SourceScalarFieldEnum[] } /** * Source findMany */ export type SourceFindManyArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * Filter, which Sources to fetch. */ where?: SourceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sources to fetch. */ orderBy?: SourceOrderByWithRelationInput | SourceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sources. */ cursor?: SourceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sources 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` Sources. */ skip?: number distinct?: SourceScalarFieldEnum | SourceScalarFieldEnum[] } /** * Source create */ export type SourceCreateArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * The data needed to create a Source. */ data: XOR } /** * Source createMany */ export type SourceCreateManyArgs = { /** * The data used to create many Sources. */ data: SourceCreateManyInput | SourceCreateManyInput[] skipDuplicates?: boolean } /** * Source createManyAndReturn */ export type SourceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelectCreateManyAndReturn | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * The data used to create many Sources. */ data: SourceCreateManyInput | SourceCreateManyInput[] skipDuplicates?: boolean } /** * Source update */ export type SourceUpdateArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * The data needed to update a Source. */ data: XOR /** * Choose, which Source to update. */ where: SourceWhereUniqueInput } /** * Source updateMany */ export type SourceUpdateManyArgs = { /** * The data used to update Sources. */ data: XOR /** * Filter which Sources to update */ where?: SourceWhereInput /** * Limit how many Sources to update. */ limit?: number } /** * Source updateManyAndReturn */ export type SourceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelectUpdateManyAndReturn | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * The data used to update Sources. */ data: XOR /** * Filter which Sources to update */ where?: SourceWhereInput /** * Limit how many Sources to update. */ limit?: number } /** * Source upsert */ export type SourceUpsertArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * The filter to search for the Source to update in case it exists. */ where: SourceWhereUniqueInput /** * In case the Source found by the `where` argument doesn't exist, create a new Source with this data. */ create: XOR /** * In case the Source was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Source delete */ export type SourceDeleteArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null /** * Filter which Source to delete. */ where: SourceWhereUniqueInput } /** * Source deleteMany */ export type SourceDeleteManyArgs = { /** * Filter which Sources to delete */ where?: SourceWhereInput /** * Limit how many Sources to delete. */ limit?: number } /** * Source.tasks */ export type Source$tasksArgs = { /** * Select specific fields to fetch from the Task */ select?: TaskSelect | null /** * Omit specific fields from the Task */ omit?: TaskOmit | null /** * Choose, which related nodes to fetch as well */ include?: TaskInclude | null where?: TaskWhereInput orderBy?: TaskOrderByWithRelationInput | TaskOrderByWithRelationInput[] cursor?: TaskWhereUniqueInput take?: number skip?: number distinct?: TaskScalarFieldEnum | TaskScalarFieldEnum[] } /** * Source without action */ export type SourceDefaultArgs = { /** * Select specific fields to fetch from the Source */ select?: SourceSelect | null /** * Omit specific fields from the Source */ omit?: SourceOmit | null /** * Choose, which related nodes to fetch as well */ include?: SourceInclude | null } /** * Model Session */ export type AggregateSession = { _count: SessionCountAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } export type SessionMinAggregateOutputType = { id: string | null expiresAt: Date | null token: string | null createdAt: Date | null updatedAt: Date | null ipAddress: string | null userAgent: string | null userId: string | null } export type SessionMaxAggregateOutputType = { id: string | null expiresAt: Date | null token: string | null createdAt: Date | null updatedAt: Date | null ipAddress: string | null userAgent: string | null userId: string | null } export type SessionCountAggregateOutputType = { id: number expiresAt: number token: number createdAt: number updatedAt: number ipAddress: number userAgent: number userId: number _all: number } export type SessionMinAggregateInputType = { id?: true expiresAt?: true token?: true createdAt?: true updatedAt?: true ipAddress?: true userAgent?: true userId?: true } export type SessionMaxAggregateInputType = { id?: true expiresAt?: true token?: true createdAt?: true updatedAt?: true ipAddress?: true userAgent?: true userId?: true } export type SessionCountAggregateInputType = { id?: true expiresAt?: true token?: true createdAt?: true updatedAt?: true ipAddress?: true userAgent?: true userId?: 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 expiresAt: Date token: string createdAt: Date updatedAt: Date ipAddress: string | null userAgent: string | null userId: string _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 expiresAt?: boolean token?: boolean createdAt?: boolean updatedAt?: boolean ipAddress?: boolean userAgent?: boolean userId?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean expiresAt?: boolean token?: boolean createdAt?: boolean updatedAt?: boolean ipAddress?: boolean userAgent?: boolean userId?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean expiresAt?: boolean token?: boolean createdAt?: boolean updatedAt?: boolean ipAddress?: boolean userAgent?: boolean userId?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectScalar = { id?: boolean expiresAt?: boolean token?: boolean createdAt?: boolean updatedAt?: boolean ipAddress?: boolean userAgent?: boolean userId?: boolean } export type SessionOmit = $Extensions.GetOmit<"id" | "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId", ExtArgs["result"]["session"]> export type SessionInclude = { user?: boolean | UserDefaultArgs } export type SessionIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type SessionIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $SessionPayload = { name: "Session" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string expiresAt: Date token: string createdAt: Date updatedAt: Date ipAddress: string | null userAgent: string | null userId: string }, ExtArgs["result"]["session"]> composites: {} } type SessionGetPayload = $Result.GetResult type SessionCountArgs = Omit & { select?: SessionCountAggregateInputType | true } export interface SessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } /** * Find zero or one Session that matches the filter. * @param {SessionFindUniqueArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Session that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Session that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionFindFirstArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Session that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sessions that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sessions * const sessions = await prisma.session.findMany() * * // Get first 10 Sessions * const sessions = await prisma.session.findMany({ take: 10 }) * * // Only select the `id` * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Session. * @param {SessionCreateArgs} args - Arguments to create a Session. * @example * // Create one Session * const Session = await prisma.session.create({ * data: { * // ... data to create a Session * } * }) * */ create(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sessions. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Sessions and returns the data saved in the database. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sessions and only return the `id` * const sessionWithIdOnly = await prisma.session.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Session. * @param {SessionDeleteArgs} args - Arguments to delete one Session. * @example * // Delete one Session * const Session = await prisma.session.delete({ * where: { * // ... filter to delete one Session * } * }) * */ delete(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Session. * @param {SessionUpdateArgs} args - Arguments to update one Session. * @example * // Update one Session * const session = await prisma.session.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sessions. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. * @example * // Delete a few Sessions * const { count } = await prisma.session.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sessions * const session = await prisma.session.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sessions and returns the data updated in the database. * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions. * @example * // Update many Sessions * const session = await prisma.session.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Sessions and only return the `id` * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Session. * @param {SessionUpsertArgs} args - Arguments to update or create a Session. * @example * // Update or create a Session * const session = await prisma.session.upsert({ * create: { * // ... data to create a Session * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Session we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__SessionClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionCountArgs} args - Arguments to filter Sessions to count. * @example * // Count the number of Sessions * const count = await prisma.session.count({ * where: { * // ... the filter for the Sessions we want to count * } * }) **/ count( args?: Subset, ): Prisma.PrismaPromise< T extends $Utils.Record<'select', any> ? T['select'] extends true ? number : GetScalarType : number > /** * Allows you to perform aggregations operations on a Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Subset): Prisma.PrismaPromise> /** * Group by Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends SessionGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: SessionGroupByArgs['orderBy'] } : { orderBy?: SessionGroupByArgs['orderBy'] }, OrderFields extends ExcludeUnderscoreKeys>>, ByFields extends MaybeTupleToUnion, ByValid extends Has, HavingFields extends GetHavingFields, HavingValid extends Has, ByEmpty extends T['by'] extends never[] ? True : False, InputErrors extends ByEmpty extends True ? `Error: "by" must not be empty.` : HavingValid extends False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Keys ? 'orderBy' extends Keys ? ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Session model */ readonly fields: SessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Session. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__SessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Session model */ interface SessionFieldRefs { readonly id: FieldRef<"Session", 'String'> readonly expiresAt: FieldRef<"Session", 'DateTime'> readonly token: FieldRef<"Session", 'String'> readonly createdAt: FieldRef<"Session", 'DateTime'> readonly updatedAt: FieldRef<"Session", 'DateTime'> readonly ipAddress: FieldRef<"Session", 'String'> readonly userAgent: FieldRef<"Session", 'String'> readonly userId: FieldRef<"Session", 'String'> } // Custom InputTypes /** * Session findUnique */ export type SessionFindUniqueArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findUniqueOrThrow */ export type SessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where: SessionWhereUniqueInput } /** * Session findFirst */ export type SessionFindFirstArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session findFirstOrThrow */ export type SessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Session to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session findMany */ export type SessionFindManyArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter, which Sessions to fetch. */ where?: SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sessions. */ cursor?: SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Sessions. */ skip?: number distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[] } /** * Session create */ export type SessionCreateArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to create a Session. */ data: XOR } /** * Session createMany */ export type SessionCreateManyArgs = { /** * The data used to create many Sessions. */ data: SessionCreateManyInput | SessionCreateManyInput[] skipDuplicates?: boolean } /** * Session createManyAndReturn */ export type SessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelectCreateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * The data used to create many Sessions. */ data: SessionCreateManyInput | SessionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: SessionIncludeCreateManyAndReturn | null } /** * Session update */ export type SessionUpdateArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The data needed to update a Session. */ data: XOR /** * Choose, which Session to update. */ where: SessionWhereUniqueInput } /** * Session updateMany */ export type SessionUpdateManyArgs = { /** * The data used to update Sessions. */ data: XOR /** * Filter which Sessions to update */ where?: SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number } /** * Session updateManyAndReturn */ export type SessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * The data used to update Sessions. */ data: XOR /** * Filter which Sessions to update */ where?: SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: SessionIncludeUpdateManyAndReturn | null } /** * Session upsert */ export type SessionUpsertArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * The filter to search for the Session to update in case it exists. */ where: SessionWhereUniqueInput /** * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. */ create: XOR /** * In case the Session was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Session delete */ export type SessionDeleteArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null /** * Filter which Session to delete. */ where: SessionWhereUniqueInput } /** * Session deleteMany */ export type SessionDeleteManyArgs = { /** * Filter which Sessions to delete */ where?: SessionWhereInput /** * Limit how many Sessions to delete. */ limit?: number } /** * Session without action */ export type SessionDefaultArgs = { /** * Select specific fields to fetch from the Session */ select?: SessionSelect | null /** * Omit specific fields from the Session */ omit?: SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: SessionInclude | null } /** * Model Account */ export type AggregateAccount = { _count: AccountCountAggregateOutputType | null _min: AccountMinAggregateOutputType | null _max: AccountMaxAggregateOutputType | null } export type AccountMinAggregateOutputType = { id: string | null accountId: string | null providerId: string | null userId: string | null accessToken: string | null refreshToken: string | null idToken: string | null accessTokenExpiresAt: Date | null refreshTokenExpiresAt: Date | null scope: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type AccountMaxAggregateOutputType = { id: string | null accountId: string | null providerId: string | null userId: string | null accessToken: string | null refreshToken: string | null idToken: string | null accessTokenExpiresAt: Date | null refreshTokenExpiresAt: Date | null scope: string | null password: string | null createdAt: Date | null updatedAt: Date | null } export type AccountCountAggregateOutputType = { id: number accountId: number providerId: number userId: number accessToken: number refreshToken: number idToken: number accessTokenExpiresAt: number refreshTokenExpiresAt: number scope: number password: number createdAt: number updatedAt: number _all: number } export type AccountMinAggregateInputType = { id?: true accountId?: true providerId?: true userId?: true accessToken?: true refreshToken?: true idToken?: true accessTokenExpiresAt?: true refreshTokenExpiresAt?: true scope?: true password?: true createdAt?: true updatedAt?: true } export type AccountMaxAggregateInputType = { id?: true accountId?: true providerId?: true userId?: true accessToken?: true refreshToken?: true idToken?: true accessTokenExpiresAt?: true refreshTokenExpiresAt?: true scope?: true password?: true createdAt?: true updatedAt?: true } export type AccountCountAggregateInputType = { id?: true accountId?: true providerId?: true userId?: true accessToken?: true refreshToken?: true idToken?: true accessTokenExpiresAt?: true refreshTokenExpiresAt?: true scope?: true password?: true createdAt?: true updatedAt?: true _all?: true } export type AccountAggregateArgs = { /** * Filter which Account to aggregate. */ where?: AccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Accounts to fetch. */ orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: AccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Accounts 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` Accounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Accounts **/ _count?: true | AccountCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AccountMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AccountMaxAggregateInputType } export type GetAccountAggregateType = { [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type AccountGroupByArgs = { where?: AccountWhereInput orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[] by: AccountScalarFieldEnum[] | AccountScalarFieldEnum having?: AccountScalarWhereWithAggregatesInput take?: number skip?: number _count?: AccountCountAggregateInputType | true _min?: AccountMinAggregateInputType _max?: AccountMaxAggregateInputType } export type AccountGroupByOutputType = { id: string accountId: string providerId: string userId: string accessToken: string | null refreshToken: string | null idToken: string | null accessTokenExpiresAt: Date | null refreshTokenExpiresAt: Date | null scope: string | null password: string | null createdAt: Date updatedAt: Date _count: AccountCountAggregateOutputType | null _min: AccountMinAggregateOutputType | null _max: AccountMaxAggregateOutputType | null } type GetAccountGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type AccountSelect = $Extensions.GetSelect<{ id?: boolean accountId?: boolean providerId?: boolean userId?: boolean accessToken?: boolean refreshToken?: boolean idToken?: boolean accessTokenExpiresAt?: boolean refreshTokenExpiresAt?: boolean scope?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["account"]> export type AccountSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean accountId?: boolean providerId?: boolean userId?: boolean accessToken?: boolean refreshToken?: boolean idToken?: boolean accessTokenExpiresAt?: boolean refreshTokenExpiresAt?: boolean scope?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["account"]> export type AccountSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean accountId?: boolean providerId?: boolean userId?: boolean accessToken?: boolean refreshToken?: boolean idToken?: boolean accessTokenExpiresAt?: boolean refreshTokenExpiresAt?: boolean scope?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["account"]> export type AccountSelectScalar = { id?: boolean accountId?: boolean providerId?: boolean userId?: boolean accessToken?: boolean refreshToken?: boolean idToken?: boolean accessTokenExpiresAt?: boolean refreshTokenExpiresAt?: boolean scope?: boolean password?: boolean createdAt?: boolean updatedAt?: boolean } export type AccountOmit = $Extensions.GetOmit<"id" | "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["account"]> export type AccountInclude = { user?: boolean | UserDefaultArgs } export type AccountIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type AccountIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $AccountPayload = { name: "Account" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ id: string accountId: string providerId: string userId: string accessToken: string | null refreshToken: string | null idToken: string | null accessTokenExpiresAt: Date | null refreshTokenExpiresAt: Date | null scope: string | null password: string | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["account"]> composites: {} } type AccountGetPayload = $Result.GetResult type AccountCountArgs = Omit & { select?: AccountCountAggregateInputType | true } export interface AccountDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Account'], meta: { name: 'Account' } } /** * Find zero or one Account that matches the filter. * @param {AccountFindUniqueArgs} args - Arguments to find a Account * @example * // Get one Account * const account = await prisma.account.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Account that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account * @example * // Get one Account * const account = await prisma.account.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Account 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 {AccountFindFirstArgs} args - Arguments to find a Account * @example * // Get one Account * const account = await prisma.account.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Account 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 {AccountFindFirstOrThrowArgs} args - Arguments to find a Account * @example * // Get one Account * const account = await prisma.account.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Accounts 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 {AccountFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Accounts * const accounts = await prisma.account.findMany() * * // Get first 10 Accounts * const accounts = await prisma.account.findMany({ take: 10 }) * * // Only select the `id` * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Account. * @param {AccountCreateArgs} args - Arguments to create a Account. * @example * // Create one Account * const Account = await prisma.account.create({ * data: { * // ... data to create a Account * } * }) * */ create(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Accounts. * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. * @example * // Create many Accounts * const account = await prisma.account.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Accounts and returns the data saved in the database. * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts. * @example * // Create many Accounts * const account = await prisma.account.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Accounts and only return the `id` * const accountWithIdOnly = await prisma.account.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Account. * @param {AccountDeleteArgs} args - Arguments to delete one Account. * @example * // Delete one Account * const Account = await prisma.account.delete({ * where: { * // ... filter to delete one Account * } * }) * */ delete(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Account. * @param {AccountUpdateArgs} args - Arguments to update one Account. * @example * // Update one Account * const account = await prisma.account.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Accounts. * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. * @example * // Delete a few Accounts * const { count } = await prisma.account.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Accounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Accounts * const account = await prisma.account.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Accounts and returns the data updated in the database. * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts. * @example * // Update many Accounts * const account = await prisma.account.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Accounts and only return the `id` * const accountWithIdOnly = await prisma.account.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Account. * @param {AccountUpsertArgs} args - Arguments to update or create a Account. * @example * // Update or create a Account * const account = await prisma.account.upsert({ * create: { * // ... data to create a Account * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Account we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__AccountClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Accounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AccountCountArgs} args - Arguments to filter Accounts to count. * @example * // Count the number of Accounts * const count = await prisma.account.count({ * where: { * // ... the filter for the Accounts 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 Account. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AccountAggregateArgs} 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 Account. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AccountGroupByArgs} 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 AccountGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: AccountGroupByArgs['orderBy'] } : { orderBy?: AccountGroupByArgs['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 ? GetAccountGroupByPayload : Prisma.PrismaPromise /** * Fields of the Account model */ readonly fields: AccountFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Account. * 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__AccountClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Account model */ interface AccountFieldRefs { readonly id: FieldRef<"Account", 'String'> readonly accountId: FieldRef<"Account", 'String'> readonly providerId: FieldRef<"Account", 'String'> readonly userId: FieldRef<"Account", 'String'> readonly accessToken: FieldRef<"Account", 'String'> readonly refreshToken: FieldRef<"Account", 'String'> readonly idToken: FieldRef<"Account", 'String'> readonly accessTokenExpiresAt: FieldRef<"Account", 'DateTime'> readonly refreshTokenExpiresAt: FieldRef<"Account", 'DateTime'> readonly scope: FieldRef<"Account", 'String'> readonly password: FieldRef<"Account", 'String'> readonly createdAt: FieldRef<"Account", 'DateTime'> readonly updatedAt: FieldRef<"Account", 'DateTime'> } // Custom InputTypes /** * Account findUnique */ export type AccountFindUniqueArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter, which Account to fetch. */ where: AccountWhereUniqueInput } /** * Account findUniqueOrThrow */ export type AccountFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter, which Account to fetch. */ where: AccountWhereUniqueInput } /** * Account findFirst */ export type AccountFindFirstArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter, which Account to fetch. */ where?: AccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Accounts to fetch. */ orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Accounts. */ cursor?: AccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Accounts 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` Accounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Accounts. */ distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] } /** * Account findFirstOrThrow */ export type AccountFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter, which Account to fetch. */ where?: AccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Accounts to fetch. */ orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Accounts. */ cursor?: AccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Accounts 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` Accounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Accounts. */ distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] } /** * Account findMany */ export type AccountFindManyArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter, which Accounts to fetch. */ where?: AccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Accounts to fetch. */ orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Accounts. */ cursor?: AccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Accounts 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` Accounts. */ skip?: number distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[] } /** * Account create */ export type AccountCreateArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * The data needed to create a Account. */ data: XOR } /** * Account createMany */ export type AccountCreateManyArgs = { /** * The data used to create many Accounts. */ data: AccountCreateManyInput | AccountCreateManyInput[] skipDuplicates?: boolean } /** * Account createManyAndReturn */ export type AccountCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelectCreateManyAndReturn | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * The data used to create many Accounts. */ data: AccountCreateManyInput | AccountCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: AccountIncludeCreateManyAndReturn | null } /** * Account update */ export type AccountUpdateArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * The data needed to update a Account. */ data: XOR /** * Choose, which Account to update. */ where: AccountWhereUniqueInput } /** * Account updateMany */ export type AccountUpdateManyArgs = { /** * The data used to update Accounts. */ data: XOR /** * Filter which Accounts to update */ where?: AccountWhereInput /** * Limit how many Accounts to update. */ limit?: number } /** * Account updateManyAndReturn */ export type AccountUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelectUpdateManyAndReturn | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * The data used to update Accounts. */ data: XOR /** * Filter which Accounts to update */ where?: AccountWhereInput /** * Limit how many Accounts to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: AccountIncludeUpdateManyAndReturn | null } /** * Account upsert */ export type AccountUpsertArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * The filter to search for the Account to update in case it exists. */ where: AccountWhereUniqueInput /** * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. */ create: XOR /** * In case the Account was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Account delete */ export type AccountDeleteArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null /** * Filter which Account to delete. */ where: AccountWhereUniqueInput } /** * Account deleteMany */ export type AccountDeleteManyArgs = { /** * Filter which Accounts to delete */ where?: AccountWhereInput /** * Limit how many Accounts to delete. */ limit?: number } /** * Account without action */ export type AccountDefaultArgs = { /** * Select specific fields to fetch from the Account */ select?: AccountSelect | null /** * Omit specific fields from the Account */ omit?: AccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: AccountInclude | null } /** * Model Verification */ export type AggregateVerification = { _count: VerificationCountAggregateOutputType | null _min: VerificationMinAggregateOutputType | null _max: VerificationMaxAggregateOutputType | null } export type VerificationMinAggregateOutputType = { id: string | null identifier: string | null value: string | null expiresAt: Date | null createdAt: Date | null updatedAt: Date | null } export type VerificationMaxAggregateOutputType = { id: string | null identifier: string | null value: string | null expiresAt: Date | null createdAt: Date | null updatedAt: Date | null } export type VerificationCountAggregateOutputType = { id: number identifier: number value: number expiresAt: number createdAt: number updatedAt: number _all: number } export type VerificationMinAggregateInputType = { id?: true identifier?: true value?: true expiresAt?: true createdAt?: true updatedAt?: true } export type VerificationMaxAggregateInputType = { id?: true identifier?: true value?: true expiresAt?: true createdAt?: true updatedAt?: true } export type VerificationCountAggregateInputType = { id?: true identifier?: true value?: true expiresAt?: true createdAt?: true updatedAt?: true _all?: true } export type VerificationAggregateArgs = { /** * Filter which Verification to aggregate. */ where?: VerificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Verifications to fetch. */ orderBy?: VerificationOrderByWithRelationInput | VerificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: VerificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Verifications 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` Verifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Verifications **/ _count?: true | VerificationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: VerificationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: VerificationMaxAggregateInputType } export type GetVerificationAggregateType = { [P in keyof T & keyof AggregateVerification]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type VerificationGroupByArgs = { where?: VerificationWhereInput orderBy?: VerificationOrderByWithAggregationInput | VerificationOrderByWithAggregationInput[] by: VerificationScalarFieldEnum[] | VerificationScalarFieldEnum having?: VerificationScalarWhereWithAggregatesInput take?: number skip?: number _count?: VerificationCountAggregateInputType | true _min?: VerificationMinAggregateInputType _max?: VerificationMaxAggregateInputType } export type VerificationGroupByOutputType = { id: string identifier: string value: string expiresAt: Date createdAt: Date | null updatedAt: Date | null _count: VerificationCountAggregateOutputType | null _min: VerificationMinAggregateOutputType | null _max: VerificationMaxAggregateOutputType | null } type GetVerificationGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof VerificationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type VerificationSelect = $Extensions.GetSelect<{ id?: boolean identifier?: boolean value?: boolean expiresAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["verification"]> export type VerificationSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean identifier?: boolean value?: boolean expiresAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["verification"]> export type VerificationSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean identifier?: boolean value?: boolean expiresAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["verification"]> export type VerificationSelectScalar = { id?: boolean identifier?: boolean value?: boolean expiresAt?: boolean createdAt?: boolean updatedAt?: boolean } export type VerificationOmit = $Extensions.GetOmit<"id" | "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["verification"]> export type $VerificationPayload = { name: "Verification" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string identifier: string value: string expiresAt: Date createdAt: Date | null updatedAt: Date | null }, ExtArgs["result"]["verification"]> composites: {} } type VerificationGetPayload = $Result.GetResult type VerificationCountArgs = Omit & { select?: VerificationCountAggregateInputType | true } export interface VerificationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Verification'], meta: { name: 'Verification' } } /** * Find zero or one Verification that matches the filter. * @param {VerificationFindUniqueArgs} args - Arguments to find a Verification * @example * // Get one Verification * const verification = await prisma.verification.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Verification that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {VerificationFindUniqueOrThrowArgs} args - Arguments to find a Verification * @example * // Get one Verification * const verification = await prisma.verification.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Verification 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 {VerificationFindFirstArgs} args - Arguments to find a Verification * @example * // Get one Verification * const verification = await prisma.verification.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Verification 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 {VerificationFindFirstOrThrowArgs} args - Arguments to find a Verification * @example * // Get one Verification * const verification = await prisma.verification.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Verifications 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 {VerificationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Verifications * const verifications = await prisma.verification.findMany() * * // Get first 10 Verifications * const verifications = await prisma.verification.findMany({ take: 10 }) * * // Only select the `id` * const verificationWithIdOnly = await prisma.verification.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a Verification. * @param {VerificationCreateArgs} args - Arguments to create a Verification. * @example * // Create one Verification * const Verification = await prisma.verification.create({ * data: { * // ... data to create a Verification * } * }) * */ create(args: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Verifications. * @param {VerificationCreateManyArgs} args - Arguments to create many Verifications. * @example * // Create many Verifications * const verification = await prisma.verification.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many Verifications and returns the data saved in the database. * @param {VerificationCreateManyAndReturnArgs} args - Arguments to create many Verifications. * @example * // Create many Verifications * const verification = await prisma.verification.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Verifications and only return the `id` * const verificationWithIdOnly = await prisma.verification.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Verification. * @param {VerificationDeleteArgs} args - Arguments to delete one Verification. * @example * // Delete one Verification * const Verification = await prisma.verification.delete({ * where: { * // ... filter to delete one Verification * } * }) * */ delete(args: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Verification. * @param {VerificationUpdateArgs} args - Arguments to update one Verification. * @example * // Update one Verification * const verification = await prisma.verification.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Verifications. * @param {VerificationDeleteManyArgs} args - Arguments to filter Verifications to delete. * @example * // Delete a few Verifications * const { count } = await prisma.verification.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Verifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Verifications * const verification = await prisma.verification.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Verifications and returns the data updated in the database. * @param {VerificationUpdateManyAndReturnArgs} args - Arguments to update many Verifications. * @example * // Update many Verifications * const verification = await prisma.verification.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Verifications and only return the `id` * const verificationWithIdOnly = await prisma.verification.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Verification. * @param {VerificationUpsertArgs} args - Arguments to update or create a Verification. * @example * // Update or create a Verification * const verification = await prisma.verification.upsert({ * create: { * // ... data to create a Verification * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Verification we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__VerificationClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Verifications. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationCountArgs} args - Arguments to filter Verifications to count. * @example * // Count the number of Verifications * const count = await prisma.verification.count({ * where: { * // ... the filter for the Verifications 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 Verification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationAggregateArgs} 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 Verification. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {VerificationGroupByArgs} 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 VerificationGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: VerificationGroupByArgs['orderBy'] } : { orderBy?: VerificationGroupByArgs['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 ? GetVerificationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Verification model */ readonly fields: VerificationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Verification. * 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__VerificationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the Verification model */ interface VerificationFieldRefs { readonly id: FieldRef<"Verification", 'String'> readonly identifier: FieldRef<"Verification", 'String'> readonly value: FieldRef<"Verification", 'String'> readonly expiresAt: FieldRef<"Verification", 'DateTime'> readonly createdAt: FieldRef<"Verification", 'DateTime'> readonly updatedAt: FieldRef<"Verification", 'DateTime'> } // Custom InputTypes /** * Verification findUnique */ export type VerificationFindUniqueArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * Filter, which Verification to fetch. */ where: VerificationWhereUniqueInput } /** * Verification findUniqueOrThrow */ export type VerificationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * Filter, which Verification to fetch. */ where: VerificationWhereUniqueInput } /** * Verification findFirst */ export type VerificationFindFirstArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * Filter, which Verification to fetch. */ where?: VerificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Verifications to fetch. */ orderBy?: VerificationOrderByWithRelationInput | VerificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Verifications. */ cursor?: VerificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Verifications 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` Verifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Verifications. */ distinct?: VerificationScalarFieldEnum | VerificationScalarFieldEnum[] } /** * Verification findFirstOrThrow */ export type VerificationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * Filter, which Verification to fetch. */ where?: VerificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Verifications to fetch. */ orderBy?: VerificationOrderByWithRelationInput | VerificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Verifications. */ cursor?: VerificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Verifications 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` Verifications. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Verifications. */ distinct?: VerificationScalarFieldEnum | VerificationScalarFieldEnum[] } /** * Verification findMany */ export type VerificationFindManyArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * Filter, which Verifications to fetch. */ where?: VerificationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Verifications to fetch. */ orderBy?: VerificationOrderByWithRelationInput | VerificationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Verifications. */ cursor?: VerificationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Verifications 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` Verifications. */ skip?: number distinct?: VerificationScalarFieldEnum | VerificationScalarFieldEnum[] } /** * Verification create */ export type VerificationCreateArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * The data needed to create a Verification. */ data: XOR } /** * Verification createMany */ export type VerificationCreateManyArgs = { /** * The data used to create many Verifications. */ data: VerificationCreateManyInput | VerificationCreateManyInput[] skipDuplicates?: boolean } /** * Verification createManyAndReturn */ export type VerificationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelectCreateManyAndReturn | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * The data used to create many Verifications. */ data: VerificationCreateManyInput | VerificationCreateManyInput[] skipDuplicates?: boolean } /** * Verification update */ export type VerificationUpdateArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * The data needed to update a Verification. */ data: XOR /** * Choose, which Verification to update. */ where: VerificationWhereUniqueInput } /** * Verification updateMany */ export type VerificationUpdateManyArgs = { /** * The data used to update Verifications. */ data: XOR /** * Filter which Verifications to update */ where?: VerificationWhereInput /** * Limit how many Verifications to update. */ limit?: number } /** * Verification updateManyAndReturn */ export type VerificationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * The data used to update Verifications. */ data: XOR /** * Filter which Verifications to update */ where?: VerificationWhereInput /** * Limit how many Verifications to update. */ limit?: number } /** * Verification upsert */ export type VerificationUpsertArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * The filter to search for the Verification to update in case it exists. */ where: VerificationWhereUniqueInput /** * In case the Verification found by the `where` argument doesn't exist, create a new Verification with this data. */ create: XOR /** * In case the Verification was found with the provided `where` argument, update it with this data. */ update: XOR } /** * Verification delete */ export type VerificationDeleteArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null /** * Filter which Verification to delete. */ where: VerificationWhereUniqueInput } /** * Verification deleteMany */ export type VerificationDeleteManyArgs = { /** * Filter which Verifications to delete */ where?: VerificationWhereInput /** * Limit how many Verifications to delete. */ limit?: number } /** * Verification without action */ export type VerificationDefaultArgs = { /** * Select specific fields to fetch from the Verification */ select?: VerificationSelect | null /** * Omit specific fields from the Verification */ omit?: VerificationOmit | null } /** * Model StripeWebhookEvent */ export type AggregateStripeWebhookEvent = { _count: StripeWebhookEventCountAggregateOutputType | null _min: StripeWebhookEventMinAggregateOutputType | null _max: StripeWebhookEventMaxAggregateOutputType | null } export type StripeWebhookEventMinAggregateOutputType = { id: string | null type: string | null created_at: Date | null } export type StripeWebhookEventMaxAggregateOutputType = { id: string | null type: string | null created_at: Date | null } export type StripeWebhookEventCountAggregateOutputType = { id: number type: number created_at: number _all: number } export type StripeWebhookEventMinAggregateInputType = { id?: true type?: true created_at?: true } export type StripeWebhookEventMaxAggregateInputType = { id?: true type?: true created_at?: true } export type StripeWebhookEventCountAggregateInputType = { id?: true type?: true created_at?: true _all?: true } export type StripeWebhookEventAggregateArgs = { /** * Filter which StripeWebhookEvent to aggregate. */ where?: StripeWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StripeWebhookEvents to fetch. */ orderBy?: StripeWebhookEventOrderByWithRelationInput | StripeWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: StripeWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StripeWebhookEvents 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` StripeWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned StripeWebhookEvents **/ _count?: true | StripeWebhookEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StripeWebhookEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StripeWebhookEventMaxAggregateInputType } export type GetStripeWebhookEventAggregateType = { [P in keyof T & keyof AggregateStripeWebhookEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type StripeWebhookEventGroupByArgs = { where?: StripeWebhookEventWhereInput orderBy?: StripeWebhookEventOrderByWithAggregationInput | StripeWebhookEventOrderByWithAggregationInput[] by: StripeWebhookEventScalarFieldEnum[] | StripeWebhookEventScalarFieldEnum having?: StripeWebhookEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: StripeWebhookEventCountAggregateInputType | true _min?: StripeWebhookEventMinAggregateInputType _max?: StripeWebhookEventMaxAggregateInputType } export type StripeWebhookEventGroupByOutputType = { id: string type: string created_at: Date _count: StripeWebhookEventCountAggregateOutputType | null _min: StripeWebhookEventMinAggregateOutputType | null _max: StripeWebhookEventMaxAggregateOutputType | null } type GetStripeWebhookEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof StripeWebhookEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type StripeWebhookEventSelect = $Extensions.GetSelect<{ id?: boolean type?: boolean created_at?: boolean }, ExtArgs["result"]["stripeWebhookEvent"]> export type StripeWebhookEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean created_at?: boolean }, ExtArgs["result"]["stripeWebhookEvent"]> export type StripeWebhookEventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean created_at?: boolean }, ExtArgs["result"]["stripeWebhookEvent"]> export type StripeWebhookEventSelectScalar = { id?: boolean type?: boolean created_at?: boolean } export type StripeWebhookEventOmit = $Extensions.GetOmit<"id" | "type" | "created_at", ExtArgs["result"]["stripeWebhookEvent"]> export type $StripeWebhookEventPayload = { name: "StripeWebhookEvent" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string type: string created_at: Date }, ExtArgs["result"]["stripeWebhookEvent"]> composites: {} } type StripeWebhookEventGetPayload = $Result.GetResult type StripeWebhookEventCountArgs = Omit & { select?: StripeWebhookEventCountAggregateInputType | true } export interface StripeWebhookEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['StripeWebhookEvent'], meta: { name: 'StripeWebhookEvent' } } /** * Find zero or one StripeWebhookEvent that matches the filter. * @param {StripeWebhookEventFindUniqueArgs} args - Arguments to find a StripeWebhookEvent * @example * // Get one StripeWebhookEvent * const stripeWebhookEvent = await prisma.stripeWebhookEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one StripeWebhookEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StripeWebhookEventFindUniqueOrThrowArgs} args - Arguments to find a StripeWebhookEvent * @example * // Get one StripeWebhookEvent * const stripeWebhookEvent = await prisma.stripeWebhookEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first StripeWebhookEvent 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 {StripeWebhookEventFindFirstArgs} args - Arguments to find a StripeWebhookEvent * @example * // Get one StripeWebhookEvent * const stripeWebhookEvent = await prisma.stripeWebhookEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first StripeWebhookEvent 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 {StripeWebhookEventFindFirstOrThrowArgs} args - Arguments to find a StripeWebhookEvent * @example * // Get one StripeWebhookEvent * const stripeWebhookEvent = await prisma.stripeWebhookEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more StripeWebhookEvents 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 {StripeWebhookEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all StripeWebhookEvents * const stripeWebhookEvents = await prisma.stripeWebhookEvent.findMany() * * // Get first 10 StripeWebhookEvents * const stripeWebhookEvents = await prisma.stripeWebhookEvent.findMany({ take: 10 }) * * // Only select the `id` * const stripeWebhookEventWithIdOnly = await prisma.stripeWebhookEvent.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a StripeWebhookEvent. * @param {StripeWebhookEventCreateArgs} args - Arguments to create a StripeWebhookEvent. * @example * // Create one StripeWebhookEvent * const StripeWebhookEvent = await prisma.stripeWebhookEvent.create({ * data: { * // ... data to create a StripeWebhookEvent * } * }) * */ create(args: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many StripeWebhookEvents. * @param {StripeWebhookEventCreateManyArgs} args - Arguments to create many StripeWebhookEvents. * @example * // Create many StripeWebhookEvents * const stripeWebhookEvent = await prisma.stripeWebhookEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many StripeWebhookEvents and returns the data saved in the database. * @param {StripeWebhookEventCreateManyAndReturnArgs} args - Arguments to create many StripeWebhookEvents. * @example * // Create many StripeWebhookEvents * const stripeWebhookEvent = await prisma.stripeWebhookEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many StripeWebhookEvents and only return the `id` * const stripeWebhookEventWithIdOnly = await prisma.stripeWebhookEvent.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a StripeWebhookEvent. * @param {StripeWebhookEventDeleteArgs} args - Arguments to delete one StripeWebhookEvent. * @example * // Delete one StripeWebhookEvent * const StripeWebhookEvent = await prisma.stripeWebhookEvent.delete({ * where: { * // ... filter to delete one StripeWebhookEvent * } * }) * */ delete(args: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one StripeWebhookEvent. * @param {StripeWebhookEventUpdateArgs} args - Arguments to update one StripeWebhookEvent. * @example * // Update one StripeWebhookEvent * const stripeWebhookEvent = await prisma.stripeWebhookEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more StripeWebhookEvents. * @param {StripeWebhookEventDeleteManyArgs} args - Arguments to filter StripeWebhookEvents to delete. * @example * // Delete a few StripeWebhookEvents * const { count } = await prisma.stripeWebhookEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StripeWebhookEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StripeWebhookEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many StripeWebhookEvents * const stripeWebhookEvent = await prisma.stripeWebhookEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more StripeWebhookEvents and returns the data updated in the database. * @param {StripeWebhookEventUpdateManyAndReturnArgs} args - Arguments to update many StripeWebhookEvents. * @example * // Update many StripeWebhookEvents * const stripeWebhookEvent = await prisma.stripeWebhookEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more StripeWebhookEvents and only return the `id` * const stripeWebhookEventWithIdOnly = await prisma.stripeWebhookEvent.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one StripeWebhookEvent. * @param {StripeWebhookEventUpsertArgs} args - Arguments to update or create a StripeWebhookEvent. * @example * // Update or create a StripeWebhookEvent * const stripeWebhookEvent = await prisma.stripeWebhookEvent.upsert({ * create: { * // ... data to create a StripeWebhookEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the StripeWebhookEvent we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__StripeWebhookEventClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of StripeWebhookEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StripeWebhookEventCountArgs} args - Arguments to filter StripeWebhookEvents to count. * @example * // Count the number of StripeWebhookEvents * const count = await prisma.stripeWebhookEvent.count({ * where: { * // ... the filter for the StripeWebhookEvents 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 StripeWebhookEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StripeWebhookEventAggregateArgs} 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 StripeWebhookEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StripeWebhookEventGroupByArgs} 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 StripeWebhookEventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: StripeWebhookEventGroupByArgs['orderBy'] } : { orderBy?: StripeWebhookEventGroupByArgs['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 ? GetStripeWebhookEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the StripeWebhookEvent model */ readonly fields: StripeWebhookEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for StripeWebhookEvent. * 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__StripeWebhookEventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the StripeWebhookEvent model */ interface StripeWebhookEventFieldRefs { readonly id: FieldRef<"StripeWebhookEvent", 'String'> readonly type: FieldRef<"StripeWebhookEvent", 'String'> readonly created_at: FieldRef<"StripeWebhookEvent", 'DateTime'> } // Custom InputTypes /** * StripeWebhookEvent findUnique */ export type StripeWebhookEventFindUniqueArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * Filter, which StripeWebhookEvent to fetch. */ where: StripeWebhookEventWhereUniqueInput } /** * StripeWebhookEvent findUniqueOrThrow */ export type StripeWebhookEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * Filter, which StripeWebhookEvent to fetch. */ where: StripeWebhookEventWhereUniqueInput } /** * StripeWebhookEvent findFirst */ export type StripeWebhookEventFindFirstArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * Filter, which StripeWebhookEvent to fetch. */ where?: StripeWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StripeWebhookEvents to fetch. */ orderBy?: StripeWebhookEventOrderByWithRelationInput | StripeWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StripeWebhookEvents. */ cursor?: StripeWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StripeWebhookEvents 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` StripeWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StripeWebhookEvents. */ distinct?: StripeWebhookEventScalarFieldEnum | StripeWebhookEventScalarFieldEnum[] } /** * StripeWebhookEvent findFirstOrThrow */ export type StripeWebhookEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * Filter, which StripeWebhookEvent to fetch. */ where?: StripeWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StripeWebhookEvents to fetch. */ orderBy?: StripeWebhookEventOrderByWithRelationInput | StripeWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for StripeWebhookEvents. */ cursor?: StripeWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StripeWebhookEvents 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` StripeWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of StripeWebhookEvents. */ distinct?: StripeWebhookEventScalarFieldEnum | StripeWebhookEventScalarFieldEnum[] } /** * StripeWebhookEvent findMany */ export type StripeWebhookEventFindManyArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * Filter, which StripeWebhookEvents to fetch. */ where?: StripeWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of StripeWebhookEvents to fetch. */ orderBy?: StripeWebhookEventOrderByWithRelationInput | StripeWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing StripeWebhookEvents. */ cursor?: StripeWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` StripeWebhookEvents 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` StripeWebhookEvents. */ skip?: number distinct?: StripeWebhookEventScalarFieldEnum | StripeWebhookEventScalarFieldEnum[] } /** * StripeWebhookEvent create */ export type StripeWebhookEventCreateArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * The data needed to create a StripeWebhookEvent. */ data: XOR } /** * StripeWebhookEvent createMany */ export type StripeWebhookEventCreateManyArgs = { /** * The data used to create many StripeWebhookEvents. */ data: StripeWebhookEventCreateManyInput | StripeWebhookEventCreateManyInput[] skipDuplicates?: boolean } /** * StripeWebhookEvent createManyAndReturn */ export type StripeWebhookEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelectCreateManyAndReturn | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * The data used to create many StripeWebhookEvents. */ data: StripeWebhookEventCreateManyInput | StripeWebhookEventCreateManyInput[] skipDuplicates?: boolean } /** * StripeWebhookEvent update */ export type StripeWebhookEventUpdateArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * The data needed to update a StripeWebhookEvent. */ data: XOR /** * Choose, which StripeWebhookEvent to update. */ where: StripeWebhookEventWhereUniqueInput } /** * StripeWebhookEvent updateMany */ export type StripeWebhookEventUpdateManyArgs = { /** * The data used to update StripeWebhookEvents. */ data: XOR /** * Filter which StripeWebhookEvents to update */ where?: StripeWebhookEventWhereInput /** * Limit how many StripeWebhookEvents to update. */ limit?: number } /** * StripeWebhookEvent updateManyAndReturn */ export type StripeWebhookEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * The data used to update StripeWebhookEvents. */ data: XOR /** * Filter which StripeWebhookEvents to update */ where?: StripeWebhookEventWhereInput /** * Limit how many StripeWebhookEvents to update. */ limit?: number } /** * StripeWebhookEvent upsert */ export type StripeWebhookEventUpsertArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * The filter to search for the StripeWebhookEvent to update in case it exists. */ where: StripeWebhookEventWhereUniqueInput /** * In case the StripeWebhookEvent found by the `where` argument doesn't exist, create a new StripeWebhookEvent with this data. */ create: XOR /** * In case the StripeWebhookEvent was found with the provided `where` argument, update it with this data. */ update: XOR } /** * StripeWebhookEvent delete */ export type StripeWebhookEventDeleteArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null /** * Filter which StripeWebhookEvent to delete. */ where: StripeWebhookEventWhereUniqueInput } /** * StripeWebhookEvent deleteMany */ export type StripeWebhookEventDeleteManyArgs = { /** * Filter which StripeWebhookEvents to delete */ where?: StripeWebhookEventWhereInput /** * Limit how many StripeWebhookEvents to delete. */ limit?: number } /** * StripeWebhookEvent without action */ export type StripeWebhookEventDefaultArgs = { /** * Select specific fields to fetch from the StripeWebhookEvent */ select?: StripeWebhookEventSelect | null /** * Omit specific fields from the StripeWebhookEvent */ omit?: StripeWebhookEventOmit | null } /** * Model RevenueCatWebhookEvent */ export type AggregateRevenueCatWebhookEvent = { _count: RevenueCatWebhookEventCountAggregateOutputType | null _min: RevenueCatWebhookEventMinAggregateOutputType | null _max: RevenueCatWebhookEventMaxAggregateOutputType | null } export type RevenueCatWebhookEventMinAggregateOutputType = { id: string | null type: string | null created_at: Date | null } export type RevenueCatWebhookEventMaxAggregateOutputType = { id: string | null type: string | null created_at: Date | null } export type RevenueCatWebhookEventCountAggregateOutputType = { id: number type: number created_at: number _all: number } export type RevenueCatWebhookEventMinAggregateInputType = { id?: true type?: true created_at?: true } export type RevenueCatWebhookEventMaxAggregateInputType = { id?: true type?: true created_at?: true } export type RevenueCatWebhookEventCountAggregateInputType = { id?: true type?: true created_at?: true _all?: true } export type RevenueCatWebhookEventAggregateArgs = { /** * Filter which RevenueCatWebhookEvent to aggregate. */ where?: RevenueCatWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RevenueCatWebhookEvents to fetch. */ orderBy?: RevenueCatWebhookEventOrderByWithRelationInput | RevenueCatWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: RevenueCatWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RevenueCatWebhookEvents 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` RevenueCatWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned RevenueCatWebhookEvents **/ _count?: true | RevenueCatWebhookEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RevenueCatWebhookEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RevenueCatWebhookEventMaxAggregateInputType } export type GetRevenueCatWebhookEventAggregateType = { [P in keyof T & keyof AggregateRevenueCatWebhookEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type RevenueCatWebhookEventGroupByArgs = { where?: RevenueCatWebhookEventWhereInput orderBy?: RevenueCatWebhookEventOrderByWithAggregationInput | RevenueCatWebhookEventOrderByWithAggregationInput[] by: RevenueCatWebhookEventScalarFieldEnum[] | RevenueCatWebhookEventScalarFieldEnum having?: RevenueCatWebhookEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: RevenueCatWebhookEventCountAggregateInputType | true _min?: RevenueCatWebhookEventMinAggregateInputType _max?: RevenueCatWebhookEventMaxAggregateInputType } export type RevenueCatWebhookEventGroupByOutputType = { id: string type: string created_at: Date _count: RevenueCatWebhookEventCountAggregateOutputType | null _min: RevenueCatWebhookEventMinAggregateOutputType | null _max: RevenueCatWebhookEventMaxAggregateOutputType | null } type GetRevenueCatWebhookEventGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof RevenueCatWebhookEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type RevenueCatWebhookEventSelect = $Extensions.GetSelect<{ id?: boolean type?: boolean created_at?: boolean }, ExtArgs["result"]["revenueCatWebhookEvent"]> export type RevenueCatWebhookEventSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean created_at?: boolean }, ExtArgs["result"]["revenueCatWebhookEvent"]> export type RevenueCatWebhookEventSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean type?: boolean created_at?: boolean }, ExtArgs["result"]["revenueCatWebhookEvent"]> export type RevenueCatWebhookEventSelectScalar = { id?: boolean type?: boolean created_at?: boolean } export type RevenueCatWebhookEventOmit = $Extensions.GetOmit<"id" | "type" | "created_at", ExtArgs["result"]["revenueCatWebhookEvent"]> export type $RevenueCatWebhookEventPayload = { name: "RevenueCatWebhookEvent" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string type: string created_at: Date }, ExtArgs["result"]["revenueCatWebhookEvent"]> composites: {} } type RevenueCatWebhookEventGetPayload = $Result.GetResult type RevenueCatWebhookEventCountArgs = Omit & { select?: RevenueCatWebhookEventCountAggregateInputType | true } export interface RevenueCatWebhookEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['RevenueCatWebhookEvent'], meta: { name: 'RevenueCatWebhookEvent' } } /** * Find zero or one RevenueCatWebhookEvent that matches the filter. * @param {RevenueCatWebhookEventFindUniqueArgs} args - Arguments to find a RevenueCatWebhookEvent * @example * // Get one RevenueCatWebhookEvent * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one RevenueCatWebhookEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RevenueCatWebhookEventFindUniqueOrThrowArgs} args - Arguments to find a RevenueCatWebhookEvent * @example * // Get one RevenueCatWebhookEvent * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first RevenueCatWebhookEvent 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 {RevenueCatWebhookEventFindFirstArgs} args - Arguments to find a RevenueCatWebhookEvent * @example * // Get one RevenueCatWebhookEvent * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first RevenueCatWebhookEvent 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 {RevenueCatWebhookEventFindFirstOrThrowArgs} args - Arguments to find a RevenueCatWebhookEvent * @example * // Get one RevenueCatWebhookEvent * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more RevenueCatWebhookEvents 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 {RevenueCatWebhookEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all RevenueCatWebhookEvents * const revenueCatWebhookEvents = await prisma.revenueCatWebhookEvent.findMany() * * // Get first 10 RevenueCatWebhookEvents * const revenueCatWebhookEvents = await prisma.revenueCatWebhookEvent.findMany({ take: 10 }) * * // Only select the `id` * const revenueCatWebhookEventWithIdOnly = await prisma.revenueCatWebhookEvent.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a RevenueCatWebhookEvent. * @param {RevenueCatWebhookEventCreateArgs} args - Arguments to create a RevenueCatWebhookEvent. * @example * // Create one RevenueCatWebhookEvent * const RevenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.create({ * data: { * // ... data to create a RevenueCatWebhookEvent * } * }) * */ create(args: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many RevenueCatWebhookEvents. * @param {RevenueCatWebhookEventCreateManyArgs} args - Arguments to create many RevenueCatWebhookEvents. * @example * // Create many RevenueCatWebhookEvents * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many RevenueCatWebhookEvents and returns the data saved in the database. * @param {RevenueCatWebhookEventCreateManyAndReturnArgs} args - Arguments to create many RevenueCatWebhookEvents. * @example * // Create many RevenueCatWebhookEvents * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many RevenueCatWebhookEvents and only return the `id` * const revenueCatWebhookEventWithIdOnly = await prisma.revenueCatWebhookEvent.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a RevenueCatWebhookEvent. * @param {RevenueCatWebhookEventDeleteArgs} args - Arguments to delete one RevenueCatWebhookEvent. * @example * // Delete one RevenueCatWebhookEvent * const RevenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.delete({ * where: { * // ... filter to delete one RevenueCatWebhookEvent * } * }) * */ delete(args: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one RevenueCatWebhookEvent. * @param {RevenueCatWebhookEventUpdateArgs} args - Arguments to update one RevenueCatWebhookEvent. * @example * // Update one RevenueCatWebhookEvent * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more RevenueCatWebhookEvents. * @param {RevenueCatWebhookEventDeleteManyArgs} args - Arguments to filter RevenueCatWebhookEvents to delete. * @example * // Delete a few RevenueCatWebhookEvents * const { count } = await prisma.revenueCatWebhookEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more RevenueCatWebhookEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RevenueCatWebhookEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many RevenueCatWebhookEvents * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more RevenueCatWebhookEvents and returns the data updated in the database. * @param {RevenueCatWebhookEventUpdateManyAndReturnArgs} args - Arguments to update many RevenueCatWebhookEvents. * @example * // Update many RevenueCatWebhookEvents * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more RevenueCatWebhookEvents and only return the `id` * const revenueCatWebhookEventWithIdOnly = await prisma.revenueCatWebhookEvent.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one RevenueCatWebhookEvent. * @param {RevenueCatWebhookEventUpsertArgs} args - Arguments to update or create a RevenueCatWebhookEvent. * @example * // Update or create a RevenueCatWebhookEvent * const revenueCatWebhookEvent = await prisma.revenueCatWebhookEvent.upsert({ * create: { * // ... data to create a RevenueCatWebhookEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the RevenueCatWebhookEvent we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__RevenueCatWebhookEventClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of RevenueCatWebhookEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RevenueCatWebhookEventCountArgs} args - Arguments to filter RevenueCatWebhookEvents to count. * @example * // Count the number of RevenueCatWebhookEvents * const count = await prisma.revenueCatWebhookEvent.count({ * where: { * // ... the filter for the RevenueCatWebhookEvents 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 RevenueCatWebhookEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RevenueCatWebhookEventAggregateArgs} 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 RevenueCatWebhookEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RevenueCatWebhookEventGroupByArgs} 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 RevenueCatWebhookEventGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: RevenueCatWebhookEventGroupByArgs['orderBy'] } : { orderBy?: RevenueCatWebhookEventGroupByArgs['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 ? GetRevenueCatWebhookEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the RevenueCatWebhookEvent model */ readonly fields: RevenueCatWebhookEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for RevenueCatWebhookEvent. * 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__RevenueCatWebhookEventClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the RevenueCatWebhookEvent model */ interface RevenueCatWebhookEventFieldRefs { readonly id: FieldRef<"RevenueCatWebhookEvent", 'String'> readonly type: FieldRef<"RevenueCatWebhookEvent", 'String'> readonly created_at: FieldRef<"RevenueCatWebhookEvent", 'DateTime'> } // Custom InputTypes /** * RevenueCatWebhookEvent findUnique */ export type RevenueCatWebhookEventFindUniqueArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * Filter, which RevenueCatWebhookEvent to fetch. */ where: RevenueCatWebhookEventWhereUniqueInput } /** * RevenueCatWebhookEvent findUniqueOrThrow */ export type RevenueCatWebhookEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * Filter, which RevenueCatWebhookEvent to fetch. */ where: RevenueCatWebhookEventWhereUniqueInput } /** * RevenueCatWebhookEvent findFirst */ export type RevenueCatWebhookEventFindFirstArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * Filter, which RevenueCatWebhookEvent to fetch. */ where?: RevenueCatWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RevenueCatWebhookEvents to fetch. */ orderBy?: RevenueCatWebhookEventOrderByWithRelationInput | RevenueCatWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RevenueCatWebhookEvents. */ cursor?: RevenueCatWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RevenueCatWebhookEvents 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` RevenueCatWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RevenueCatWebhookEvents. */ distinct?: RevenueCatWebhookEventScalarFieldEnum | RevenueCatWebhookEventScalarFieldEnum[] } /** * RevenueCatWebhookEvent findFirstOrThrow */ export type RevenueCatWebhookEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * Filter, which RevenueCatWebhookEvent to fetch. */ where?: RevenueCatWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RevenueCatWebhookEvents to fetch. */ orderBy?: RevenueCatWebhookEventOrderByWithRelationInput | RevenueCatWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for RevenueCatWebhookEvents. */ cursor?: RevenueCatWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RevenueCatWebhookEvents 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` RevenueCatWebhookEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of RevenueCatWebhookEvents. */ distinct?: RevenueCatWebhookEventScalarFieldEnum | RevenueCatWebhookEventScalarFieldEnum[] } /** * RevenueCatWebhookEvent findMany */ export type RevenueCatWebhookEventFindManyArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * Filter, which RevenueCatWebhookEvents to fetch. */ where?: RevenueCatWebhookEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of RevenueCatWebhookEvents to fetch. */ orderBy?: RevenueCatWebhookEventOrderByWithRelationInput | RevenueCatWebhookEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing RevenueCatWebhookEvents. */ cursor?: RevenueCatWebhookEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` RevenueCatWebhookEvents 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` RevenueCatWebhookEvents. */ skip?: number distinct?: RevenueCatWebhookEventScalarFieldEnum | RevenueCatWebhookEventScalarFieldEnum[] } /** * RevenueCatWebhookEvent create */ export type RevenueCatWebhookEventCreateArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * The data needed to create a RevenueCatWebhookEvent. */ data: XOR } /** * RevenueCatWebhookEvent createMany */ export type RevenueCatWebhookEventCreateManyArgs = { /** * The data used to create many RevenueCatWebhookEvents. */ data: RevenueCatWebhookEventCreateManyInput | RevenueCatWebhookEventCreateManyInput[] skipDuplicates?: boolean } /** * RevenueCatWebhookEvent createManyAndReturn */ export type RevenueCatWebhookEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelectCreateManyAndReturn | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * The data used to create many RevenueCatWebhookEvents. */ data: RevenueCatWebhookEventCreateManyInput | RevenueCatWebhookEventCreateManyInput[] skipDuplicates?: boolean } /** * RevenueCatWebhookEvent update */ export type RevenueCatWebhookEventUpdateArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * The data needed to update a RevenueCatWebhookEvent. */ data: XOR /** * Choose, which RevenueCatWebhookEvent to update. */ where: RevenueCatWebhookEventWhereUniqueInput } /** * RevenueCatWebhookEvent updateMany */ export type RevenueCatWebhookEventUpdateManyArgs = { /** * The data used to update RevenueCatWebhookEvents. */ data: XOR /** * Filter which RevenueCatWebhookEvents to update */ where?: RevenueCatWebhookEventWhereInput /** * Limit how many RevenueCatWebhookEvents to update. */ limit?: number } /** * RevenueCatWebhookEvent updateManyAndReturn */ export type RevenueCatWebhookEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * The data used to update RevenueCatWebhookEvents. */ data: XOR /** * Filter which RevenueCatWebhookEvents to update */ where?: RevenueCatWebhookEventWhereInput /** * Limit how many RevenueCatWebhookEvents to update. */ limit?: number } /** * RevenueCatWebhookEvent upsert */ export type RevenueCatWebhookEventUpsertArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * The filter to search for the RevenueCatWebhookEvent to update in case it exists. */ where: RevenueCatWebhookEventWhereUniqueInput /** * In case the RevenueCatWebhookEvent found by the `where` argument doesn't exist, create a new RevenueCatWebhookEvent with this data. */ create: XOR /** * In case the RevenueCatWebhookEvent was found with the provided `where` argument, update it with this data. */ update: XOR } /** * RevenueCatWebhookEvent delete */ export type RevenueCatWebhookEventDeleteArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null /** * Filter which RevenueCatWebhookEvent to delete. */ where: RevenueCatWebhookEventWhereUniqueInput } /** * RevenueCatWebhookEvent deleteMany */ export type RevenueCatWebhookEventDeleteManyArgs = { /** * Filter which RevenueCatWebhookEvents to delete */ where?: RevenueCatWebhookEventWhereInput /** * Limit how many RevenueCatWebhookEvents to delete. */ limit?: number } /** * RevenueCatWebhookEvent without action */ export type RevenueCatWebhookEventDefaultArgs = { /** * Select specific fields to fetch from the RevenueCatWebhookEvent */ select?: RevenueCatWebhookEventSelect | null /** * Omit specific fields from the RevenueCatWebhookEvent */ omit?: RevenueCatWebhookEventOmit | null } /** * Model UserFeatureTour */ export type AggregateUserFeatureTour = { _count: UserFeatureTourCountAggregateOutputType | null _avg: UserFeatureTourAvgAggregateOutputType | null _sum: UserFeatureTourSumAggregateOutputType | null _min: UserFeatureTourMinAggregateOutputType | null _max: UserFeatureTourMaxAggregateOutputType | null } export type UserFeatureTourAvgAggregateOutputType = { last_step: number | null } export type UserFeatureTourSumAggregateOutputType = { last_step: number | null } export type UserFeatureTourMinAggregateOutputType = { user_id: string | null tour_id: string | null shown_at: Date | null completed_at: Date | null dismissed_at: Date | null last_step: number | null } export type UserFeatureTourMaxAggregateOutputType = { user_id: string | null tour_id: string | null shown_at: Date | null completed_at: Date | null dismissed_at: Date | null last_step: number | null } export type UserFeatureTourCountAggregateOutputType = { user_id: number tour_id: number shown_at: number completed_at: number dismissed_at: number last_step: number _all: number } export type UserFeatureTourAvgAggregateInputType = { last_step?: true } export type UserFeatureTourSumAggregateInputType = { last_step?: true } export type UserFeatureTourMinAggregateInputType = { user_id?: true tour_id?: true shown_at?: true completed_at?: true dismissed_at?: true last_step?: true } export type UserFeatureTourMaxAggregateInputType = { user_id?: true tour_id?: true shown_at?: true completed_at?: true dismissed_at?: true last_step?: true } export type UserFeatureTourCountAggregateInputType = { user_id?: true tour_id?: true shown_at?: true completed_at?: true dismissed_at?: true last_step?: true _all?: true } export type UserFeatureTourAggregateArgs = { /** * Filter which UserFeatureTour to aggregate. */ where?: UserFeatureTourWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserFeatureTours to fetch. */ orderBy?: UserFeatureTourOrderByWithRelationInput | UserFeatureTourOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: UserFeatureTourWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserFeatureTours 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` UserFeatureTours. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserFeatureTours **/ _count?: true | UserFeatureTourCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UserFeatureTourAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UserFeatureTourSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserFeatureTourMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserFeatureTourMaxAggregateInputType } export type GetUserFeatureTourAggregateType = { [P in keyof T & keyof AggregateUserFeatureTour]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type UserFeatureTourGroupByArgs = { where?: UserFeatureTourWhereInput orderBy?: UserFeatureTourOrderByWithAggregationInput | UserFeatureTourOrderByWithAggregationInput[] by: UserFeatureTourScalarFieldEnum[] | UserFeatureTourScalarFieldEnum having?: UserFeatureTourScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserFeatureTourCountAggregateInputType | true _avg?: UserFeatureTourAvgAggregateInputType _sum?: UserFeatureTourSumAggregateInputType _min?: UserFeatureTourMinAggregateInputType _max?: UserFeatureTourMaxAggregateInputType } export type UserFeatureTourGroupByOutputType = { user_id: string tour_id: string shown_at: Date completed_at: Date | null dismissed_at: Date | null last_step: number | null _count: UserFeatureTourCountAggregateOutputType | null _avg: UserFeatureTourAvgAggregateOutputType | null _sum: UserFeatureTourSumAggregateOutputType | null _min: UserFeatureTourMinAggregateOutputType | null _max: UserFeatureTourMaxAggregateOutputType | null } type GetUserFeatureTourGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof UserFeatureTourGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type UserFeatureTourSelect = $Extensions.GetSelect<{ user_id?: boolean tour_id?: boolean shown_at?: boolean completed_at?: boolean dismissed_at?: boolean last_step?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["userFeatureTour"]> export type UserFeatureTourSelectCreateManyAndReturn = $Extensions.GetSelect<{ user_id?: boolean tour_id?: boolean shown_at?: boolean completed_at?: boolean dismissed_at?: boolean last_step?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["userFeatureTour"]> export type UserFeatureTourSelectUpdateManyAndReturn = $Extensions.GetSelect<{ user_id?: boolean tour_id?: boolean shown_at?: boolean completed_at?: boolean dismissed_at?: boolean last_step?: boolean user?: boolean | UserDefaultArgs }, ExtArgs["result"]["userFeatureTour"]> export type UserFeatureTourSelectScalar = { user_id?: boolean tour_id?: boolean shown_at?: boolean completed_at?: boolean dismissed_at?: boolean last_step?: boolean } export type UserFeatureTourOmit = $Extensions.GetOmit<"user_id" | "tour_id" | "shown_at" | "completed_at" | "dismissed_at" | "last_step", ExtArgs["result"]["userFeatureTour"]> export type UserFeatureTourInclude = { user?: boolean | UserDefaultArgs } export type UserFeatureTourIncludeCreateManyAndReturn = { user?: boolean | UserDefaultArgs } export type UserFeatureTourIncludeUpdateManyAndReturn = { user?: boolean | UserDefaultArgs } export type $UserFeatureTourPayload = { name: "UserFeatureTour" objects: { user: Prisma.$UserPayload } scalars: $Extensions.GetPayloadResult<{ user_id: string tour_id: string shown_at: Date completed_at: Date | null dismissed_at: Date | null last_step: number | null }, ExtArgs["result"]["userFeatureTour"]> composites: {} } type UserFeatureTourGetPayload = $Result.GetResult type UserFeatureTourCountArgs = Omit & { select?: UserFeatureTourCountAggregateInputType | true } export interface UserFeatureTourDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserFeatureTour'], meta: { name: 'UserFeatureTour' } } /** * Find zero or one UserFeatureTour that matches the filter. * @param {UserFeatureTourFindUniqueArgs} args - Arguments to find a UserFeatureTour * @example * // Get one UserFeatureTour * const userFeatureTour = await prisma.userFeatureTour.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserFeatureTour that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFeatureTourFindUniqueOrThrowArgs} args - Arguments to find a UserFeatureTour * @example * // Get one UserFeatureTour * const userFeatureTour = await prisma.userFeatureTour.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserFeatureTour 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 {UserFeatureTourFindFirstArgs} args - Arguments to find a UserFeatureTour * @example * // Get one UserFeatureTour * const userFeatureTour = await prisma.userFeatureTour.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserFeatureTour 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 {UserFeatureTourFindFirstOrThrowArgs} args - Arguments to find a UserFeatureTour * @example * // Get one UserFeatureTour * const userFeatureTour = await prisma.userFeatureTour.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserFeatureTours 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 {UserFeatureTourFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserFeatureTours * const userFeatureTours = await prisma.userFeatureTour.findMany() * * // Get first 10 UserFeatureTours * const userFeatureTours = await prisma.userFeatureTour.findMany({ take: 10 }) * * // Only select the `user_id` * const userFeatureTourWithUser_idOnly = await prisma.userFeatureTour.findMany({ select: { user_id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a UserFeatureTour. * @param {UserFeatureTourCreateArgs} args - Arguments to create a UserFeatureTour. * @example * // Create one UserFeatureTour * const UserFeatureTour = await prisma.userFeatureTour.create({ * data: { * // ... data to create a UserFeatureTour * } * }) * */ create(args: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserFeatureTours. * @param {UserFeatureTourCreateManyArgs} args - Arguments to create many UserFeatureTours. * @example * // Create many UserFeatureTours * const userFeatureTour = await prisma.userFeatureTour.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many UserFeatureTours and returns the data saved in the database. * @param {UserFeatureTourCreateManyAndReturnArgs} args - Arguments to create many UserFeatureTours. * @example * // Create many UserFeatureTours * const userFeatureTour = await prisma.userFeatureTour.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserFeatureTours and only return the `user_id` * const userFeatureTourWithUser_idOnly = await prisma.userFeatureTour.createManyAndReturn({ * select: { user_id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a UserFeatureTour. * @param {UserFeatureTourDeleteArgs} args - Arguments to delete one UserFeatureTour. * @example * // Delete one UserFeatureTour * const UserFeatureTour = await prisma.userFeatureTour.delete({ * where: { * // ... filter to delete one UserFeatureTour * } * }) * */ delete(args: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserFeatureTour. * @param {UserFeatureTourUpdateArgs} args - Arguments to update one UserFeatureTour. * @example * // Update one UserFeatureTour * const userFeatureTour = await prisma.userFeatureTour.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserFeatureTours. * @param {UserFeatureTourDeleteManyArgs} args - Arguments to filter UserFeatureTours to delete. * @example * // Delete a few UserFeatureTours * const { count } = await prisma.userFeatureTour.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserFeatureTours. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFeatureTourUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserFeatureTours * const userFeatureTour = await prisma.userFeatureTour.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserFeatureTours and returns the data updated in the database. * @param {UserFeatureTourUpdateManyAndReturnArgs} args - Arguments to update many UserFeatureTours. * @example * // Update many UserFeatureTours * const userFeatureTour = await prisma.userFeatureTour.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserFeatureTours and only return the `user_id` * const userFeatureTourWithUser_idOnly = await prisma.userFeatureTour.updateManyAndReturn({ * select: { user_id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one UserFeatureTour. * @param {UserFeatureTourUpsertArgs} args - Arguments to update or create a UserFeatureTour. * @example * // Update or create a UserFeatureTour * const userFeatureTour = await prisma.userFeatureTour.upsert({ * create: { * // ... data to create a UserFeatureTour * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserFeatureTour we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__UserFeatureTourClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserFeatureTours. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFeatureTourCountArgs} args - Arguments to filter UserFeatureTours to count. * @example * // Count the number of UserFeatureTours * const count = await prisma.userFeatureTour.count({ * where: { * // ... the filter for the UserFeatureTours 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 UserFeatureTour. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFeatureTourAggregateArgs} 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 UserFeatureTour. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserFeatureTourGroupByArgs} 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 UserFeatureTourGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: UserFeatureTourGroupByArgs['orderBy'] } : { orderBy?: UserFeatureTourGroupByArgs['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 ? GetUserFeatureTourGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserFeatureTour model */ readonly fields: UserFeatureTourFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserFeatureTour. * 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__UserFeatureTourClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise } /** * Fields of the UserFeatureTour model */ interface UserFeatureTourFieldRefs { readonly user_id: FieldRef<"UserFeatureTour", 'String'> readonly tour_id: FieldRef<"UserFeatureTour", 'String'> readonly shown_at: FieldRef<"UserFeatureTour", 'DateTime'> readonly completed_at: FieldRef<"UserFeatureTour", 'DateTime'> readonly dismissed_at: FieldRef<"UserFeatureTour", 'DateTime'> readonly last_step: FieldRef<"UserFeatureTour", 'Int'> } // Custom InputTypes /** * UserFeatureTour findUnique */ export type UserFeatureTourFindUniqueArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * Filter, which UserFeatureTour to fetch. */ where: UserFeatureTourWhereUniqueInput } /** * UserFeatureTour findUniqueOrThrow */ export type UserFeatureTourFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * Filter, which UserFeatureTour to fetch. */ where: UserFeatureTourWhereUniqueInput } /** * UserFeatureTour findFirst */ export type UserFeatureTourFindFirstArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * Filter, which UserFeatureTour to fetch. */ where?: UserFeatureTourWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserFeatureTours to fetch. */ orderBy?: UserFeatureTourOrderByWithRelationInput | UserFeatureTourOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserFeatureTours. */ cursor?: UserFeatureTourWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserFeatureTours 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` UserFeatureTours. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserFeatureTours. */ distinct?: UserFeatureTourScalarFieldEnum | UserFeatureTourScalarFieldEnum[] } /** * UserFeatureTour findFirstOrThrow */ export type UserFeatureTourFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * Filter, which UserFeatureTour to fetch. */ where?: UserFeatureTourWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserFeatureTours to fetch. */ orderBy?: UserFeatureTourOrderByWithRelationInput | UserFeatureTourOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserFeatureTours. */ cursor?: UserFeatureTourWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserFeatureTours 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` UserFeatureTours. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserFeatureTours. */ distinct?: UserFeatureTourScalarFieldEnum | UserFeatureTourScalarFieldEnum[] } /** * UserFeatureTour findMany */ export type UserFeatureTourFindManyArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * Filter, which UserFeatureTours to fetch. */ where?: UserFeatureTourWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserFeatureTours to fetch. */ orderBy?: UserFeatureTourOrderByWithRelationInput | UserFeatureTourOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserFeatureTours. */ cursor?: UserFeatureTourWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserFeatureTours 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` UserFeatureTours. */ skip?: number distinct?: UserFeatureTourScalarFieldEnum | UserFeatureTourScalarFieldEnum[] } /** * UserFeatureTour create */ export type UserFeatureTourCreateArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * The data needed to create a UserFeatureTour. */ data: XOR } /** * UserFeatureTour createMany */ export type UserFeatureTourCreateManyArgs = { /** * The data used to create many UserFeatureTours. */ data: UserFeatureTourCreateManyInput | UserFeatureTourCreateManyInput[] skipDuplicates?: boolean } /** * UserFeatureTour createManyAndReturn */ export type UserFeatureTourCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelectCreateManyAndReturn | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * The data used to create many UserFeatureTours. */ data: UserFeatureTourCreateManyInput | UserFeatureTourCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourIncludeCreateManyAndReturn | null } /** * UserFeatureTour update */ export type UserFeatureTourUpdateArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * The data needed to update a UserFeatureTour. */ data: XOR /** * Choose, which UserFeatureTour to update. */ where: UserFeatureTourWhereUniqueInput } /** * UserFeatureTour updateMany */ export type UserFeatureTourUpdateManyArgs = { /** * The data used to update UserFeatureTours. */ data: XOR /** * Filter which UserFeatureTours to update */ where?: UserFeatureTourWhereInput /** * Limit how many UserFeatureTours to update. */ limit?: number } /** * UserFeatureTour updateManyAndReturn */ export type UserFeatureTourUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelectUpdateManyAndReturn | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * The data used to update UserFeatureTours. */ data: XOR /** * Filter which UserFeatureTours to update */ where?: UserFeatureTourWhereInput /** * Limit how many UserFeatureTours to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourIncludeUpdateManyAndReturn | null } /** * UserFeatureTour upsert */ export type UserFeatureTourUpsertArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * The filter to search for the UserFeatureTour to update in case it exists. */ where: UserFeatureTourWhereUniqueInput /** * In case the UserFeatureTour found by the `where` argument doesn't exist, create a new UserFeatureTour with this data. */ create: XOR /** * In case the UserFeatureTour was found with the provided `where` argument, update it with this data. */ update: XOR } /** * UserFeatureTour delete */ export type UserFeatureTourDeleteArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null /** * Filter which UserFeatureTour to delete. */ where: UserFeatureTourWhereUniqueInput } /** * UserFeatureTour deleteMany */ export type UserFeatureTourDeleteManyArgs = { /** * Filter which UserFeatureTours to delete */ where?: UserFeatureTourWhereInput /** * Limit how many UserFeatureTours to delete. */ limit?: number } /** * UserFeatureTour without action */ export type UserFeatureTourDefaultArgs = { /** * Select specific fields to fetch from the UserFeatureTour */ select?: UserFeatureTourSelect | null /** * Omit specific fields from the UserFeatureTour */ omit?: UserFeatureTourOmit | null /** * Choose, which related nodes to fetch as well */ include?: UserFeatureTourInclude | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const ServiceStatusScalarFieldEnum: { id: 'id', name: 'name', status: 'status', headline: 'headline', description: 'description', updatedAt: 'updatedAt' }; export type ServiceStatusScalarFieldEnum = (typeof ServiceStatusScalarFieldEnum)[keyof typeof ServiceStatusScalarFieldEnum] export const AnnouncementScalarFieldEnum: { id: 'id', title: 'title', description: 'description', href: 'href', action: 'action', isPublished: 'isPublished', publishedAt: 'publishedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type AnnouncementScalarFieldEnum = (typeof AnnouncementScalarFieldEnum)[keyof typeof AnnouncementScalarFieldEnum] export const EmailDeliveryScalarFieldEnum: { message_id: 'message_id', recipient: 'recipient', subject: 'subject', region: 'region', sent_at: 'sent_at' }; export type EmailDeliveryScalarFieldEnum = (typeof EmailDeliveryScalarFieldEnum)[keyof typeof EmailDeliveryScalarFieldEnum] export const UserScalarFieldEnum: { id: 'id', name: 'name', email: 'email', emailVerified: 'emailVerified', image: 'image', createdAt: 'createdAt', updatedAt: 'updatedAt', first_name: 'first_name', last_name: 'last_name', password_hash: 'password_hash', default_font_family: 'default_font_family', default_font_size: 'default_font_size', default_font_color: 'default_font_color', notify_on_completion: 'notify_on_completion', default_clip_length: 'default_clip_length', create_settings: 'create_settings', product_updates_unsubscribed_at: 'product_updates_unsubscribed_at', plan: 'plan', subscription_status: 'subscription_status', subscription_provider: 'subscription_provider', is_admin: 'is_admin', stripe_customer_id: 'stripe_customer_id', stripe_subscription_id: 'stripe_subscription_id', billing_period_start: 'billing_period_start', billing_period_end: 'billing_period_end', trial_ends_at: 'trial_ends_at', subscription_cancel_at: 'subscription_cancel_at', legacy_hd: 'legacy_hd', pending_plan: 'pending_plan', pending_plan_invoice_id: 'pending_plan_invoice_id' }; export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] export const UserAcquisitionScalarFieldEnum: { user_id: 'user_id', utm_source: 'utm_source', utm_medium: 'utm_medium', utm_campaign: 'utm_campaign', utm_content: 'utm_content', utm_term: 'utm_term', ref: 'ref', referrer_host: 'referrer_host', landing_path: 'landing_path', first_seen_at: 'first_seen_at', first_clip_exported_at: 'first_clip_exported_at', created_at: 'created_at' }; export type UserAcquisitionScalarFieldEnum = (typeof UserAcquisitionScalarFieldEnum)[keyof typeof UserAcquisitionScalarFieldEnum] export const AffiliateScalarFieldEnum: { id: 'id', user_id: 'user_id', slug: 'slug', status: 'status', platform: 'platform', profile_url: 'profile_url', audience_size: 'audience_size', video_url: 'video_url', promotion_plan: 'promotion_plan', decline_reason: 'decline_reason', stripe_promotion_code_id: 'stripe_promotion_code_id', app_store_code_added_at: 'app_store_code_added_at', terms_accepted_at: 'terms_accepted_at', reviewed_at: 'reviewed_at', reviewed_by: 'reviewed_by', created_at: 'created_at', updated_at: 'updated_at' }; export type AffiliateScalarFieldEnum = (typeof AffiliateScalarFieldEnum)[keyof typeof AffiliateScalarFieldEnum] export const FeatureFlagScalarFieldEnum: { key: 'key', description: 'description', web_enabled: 'web_enabled', ios_enabled: 'ios_enabled', admins_bypass: 'admins_bypass', updated_by: 'updated_by', created_at: 'created_at', updated_at: 'updated_at' }; export type FeatureFlagScalarFieldEnum = (typeof FeatureFlagScalarFieldEnum)[keyof typeof FeatureFlagScalarFieldEnum] export const AppSettingScalarFieldEnum: { setting_key: 'setting_key', encrypted_value: 'encrypted_value', prefer_admin_value: 'prefer_admin_value', updated_by: 'updated_by', created_at: 'created_at', updated_at: 'updated_at' }; export type AppSettingScalarFieldEnum = (typeof AppSettingScalarFieldEnum)[keyof typeof AppSettingScalarFieldEnum] export const MinuteUsageEventScalarFieldEnum: { id: 'id', user_id: 'user_id', task_id: 'task_id', minutes: 'minutes', source_duration_seconds: 'source_duration_seconds', created_at: 'created_at', refunded_at: 'refunded_at' }; export type MinuteUsageEventScalarFieldEnum = (typeof MinuteUsageEventScalarFieldEnum)[keyof typeof MinuteUsageEventScalarFieldEnum] export const AIEditUsageEventScalarFieldEnum: { job_id: 'job_id', user_id: 'user_id', created_at: 'created_at', refunded_at: 'refunded_at' }; export type AIEditUsageEventScalarFieldEnum = (typeof AIEditUsageEventScalarFieldEnum)[keyof typeof AIEditUsageEventScalarFieldEnum] export const TaskScalarFieldEnum: { id: 'id', user_id: 'user_id', source_id: 'source_id', generated_clips_ids: 'generated_clips_ids', status: 'status', progress: 'progress', progress_message: 'progress_message', source_metadata: 'source_metadata', source_duration_seconds: 'source_duration_seconds', completion_notification_sent_at: 'completion_notification_sent_at', share_token: 'share_token', share_enabled: 'share_enabled', font_family: 'font_family', font_size: 'font_size', font_color: 'font_color', caption_template: 'caption_template', include_broll: 'include_broll', created_at: 'created_at', updated_at: 'updated_at' }; export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum] export const SocialAccountScalarFieldEnum: { id: 'id', user_id: 'user_id', provider: 'provider', external_account_id: 'external_account_id', display_name: 'display_name', username: 'username', avatar_url: 'avatar_url', access_token_encrypted: 'access_token_encrypted', refresh_token_encrypted: 'refresh_token_encrypted', token_expires_at: 'token_expires_at', scopes: 'scopes', metadata: 'metadata', status: 'status', last_error: 'last_error', created_at: 'created_at', updated_at: 'updated_at', revoked_at: 'revoked_at' }; export type SocialAccountScalarFieldEnum = (typeof SocialAccountScalarFieldEnum)[keyof typeof SocialAccountScalarFieldEnum] export const SocialOauthStateScalarFieldEnum: { state: 'state', user_id: 'user_id', provider: 'provider', code_verifier: 'code_verifier', redirect_uri: 'redirect_uri', created_at: 'created_at', expires_at: 'expires_at' }; export type SocialOauthStateScalarFieldEnum = (typeof SocialOauthStateScalarFieldEnum)[keyof typeof SocialOauthStateScalarFieldEnum] export const SocialPostScalarFieldEnum: { id: 'id', user_id: 'user_id', task_id: 'task_id', clip_id: 'clip_id', social_account_id: 'social_account_id', provider: 'provider', status: 'status', scheduled_for: 'scheduled_for', title: 'title', caption: 'caption', hashtags: 'hashtags', privacy_level: 'privacy_level', media_token: 'media_token', media_token_expires_at: 'media_token_expires_at', source_file_path: 'source_file_path', pending_handle: 'pending_handle', external_post_id: 'external_post_id', external_url: 'external_url', error_message: 'error_message', attempts: 'attempts', claimed_at: 'claimed_at', hook_type: 'hook_type', hook_title: 'hook_title', virality_score: 'virality_score', hook_score: 'hook_score', engagement_score: 'engagement_score', value_score: 'value_score', shareability_score: 'shareability_score', clip_duration: 'clip_duration', published_at: 'published_at', last_metrics_at: 'last_metrics_at', metrics: 'metrics', created_at: 'created_at', updated_at: 'updated_at' }; export type SocialPostScalarFieldEnum = (typeof SocialPostScalarFieldEnum)[keyof typeof SocialPostScalarFieldEnum] export const SocialPostMetricScalarFieldEnum: { id: 'id', post_id: 'post_id', captured_at: 'captured_at', views: 'views', likes: 'likes', comments: 'comments', shares: 'shares', saves: 'saves', raw: 'raw' }; export type SocialPostMetricScalarFieldEnum = (typeof SocialPostMetricScalarFieldEnum)[keyof typeof SocialPostMetricScalarFieldEnum] export const SourceScalarFieldEnum: { id: 'id', type: 'type', title: 'title', url: 'url', created_at: 'created_at', updated_at: 'updated_at' }; export type SourceScalarFieldEnum = (typeof SourceScalarFieldEnum)[keyof typeof SourceScalarFieldEnum] export const SessionScalarFieldEnum: { id: 'id', expiresAt: 'expiresAt', token: 'token', createdAt: 'createdAt', updatedAt: 'updatedAt', ipAddress: 'ipAddress', userAgent: 'userAgent', userId: 'userId' }; export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] export const AccountScalarFieldEnum: { id: 'id', accountId: 'accountId', providerId: 'providerId', userId: 'userId', accessToken: 'accessToken', refreshToken: 'refreshToken', idToken: 'idToken', accessTokenExpiresAt: 'accessTokenExpiresAt', refreshTokenExpiresAt: 'refreshTokenExpiresAt', scope: 'scope', password: 'password', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] export const VerificationScalarFieldEnum: { id: 'id', identifier: 'identifier', value: 'value', expiresAt: 'expiresAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum] export const StripeWebhookEventScalarFieldEnum: { id: 'id', type: 'type', created_at: 'created_at' }; export type StripeWebhookEventScalarFieldEnum = (typeof StripeWebhookEventScalarFieldEnum)[keyof typeof StripeWebhookEventScalarFieldEnum] export const RevenueCatWebhookEventScalarFieldEnum: { id: 'id', type: 'type', created_at: 'created_at' }; export type RevenueCatWebhookEventScalarFieldEnum = (typeof RevenueCatWebhookEventScalarFieldEnum)[keyof typeof RevenueCatWebhookEventScalarFieldEnum] export const UserFeatureTourScalarFieldEnum: { user_id: 'user_id', tour_id: 'tour_id', shown_at: 'shown_at', completed_at: 'completed_at', dismissed_at: 'dismissed_at', last_step: 'last_step' }; export type UserFeatureTourScalarFieldEnum = (typeof UserFeatureTourScalarFieldEnum)[keyof typeof UserFeatureTourScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const JsonNullValueInput: { JsonNull: typeof JsonNull }; export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] export const NullableJsonNullValueInput: { DbNull: typeof DbNull, JsonNull: typeof JsonNull }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> /** * Reference to a field of type 'Json' */ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> /** * Reference to a field of type 'QueryMode' */ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> /** * Reference to a field of type '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 'BigInt' */ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'> /** * Reference to a field of type 'BigInt[]' */ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'> /** * Deep Input Types */ export type ServiceStatusWhereInput = { AND?: ServiceStatusWhereInput | ServiceStatusWhereInput[] OR?: ServiceStatusWhereInput[] NOT?: ServiceStatusWhereInput | ServiceStatusWhereInput[] id?: StringFilter<"ServiceStatus"> | string name?: StringFilter<"ServiceStatus"> | string status?: StringFilter<"ServiceStatus"> | string headline?: StringFilter<"ServiceStatus"> | string description?: StringFilter<"ServiceStatus"> | string updatedAt?: DateTimeFilter<"ServiceStatus"> | Date | string } export type ServiceStatusOrderByWithRelationInput = { id?: SortOrder name?: SortOrder status?: SortOrder headline?: SortOrder description?: SortOrder updatedAt?: SortOrder } export type ServiceStatusWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: ServiceStatusWhereInput | ServiceStatusWhereInput[] OR?: ServiceStatusWhereInput[] NOT?: ServiceStatusWhereInput | ServiceStatusWhereInput[] name?: StringFilter<"ServiceStatus"> | string status?: StringFilter<"ServiceStatus"> | string headline?: StringFilter<"ServiceStatus"> | string description?: StringFilter<"ServiceStatus"> | string updatedAt?: DateTimeFilter<"ServiceStatus"> | Date | string }, "id"> export type ServiceStatusOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder status?: SortOrder headline?: SortOrder description?: SortOrder updatedAt?: SortOrder _count?: ServiceStatusCountOrderByAggregateInput _max?: ServiceStatusMaxOrderByAggregateInput _min?: ServiceStatusMinOrderByAggregateInput } export type ServiceStatusScalarWhereWithAggregatesInput = { AND?: ServiceStatusScalarWhereWithAggregatesInput | ServiceStatusScalarWhereWithAggregatesInput[] OR?: ServiceStatusScalarWhereWithAggregatesInput[] NOT?: ServiceStatusScalarWhereWithAggregatesInput | ServiceStatusScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"ServiceStatus"> | string name?: StringWithAggregatesFilter<"ServiceStatus"> | string status?: StringWithAggregatesFilter<"ServiceStatus"> | string headline?: StringWithAggregatesFilter<"ServiceStatus"> | string description?: StringWithAggregatesFilter<"ServiceStatus"> | string updatedAt?: DateTimeWithAggregatesFilter<"ServiceStatus"> | Date | string } export type AnnouncementWhereInput = { AND?: AnnouncementWhereInput | AnnouncementWhereInput[] OR?: AnnouncementWhereInput[] NOT?: AnnouncementWhereInput | AnnouncementWhereInput[] id?: StringFilter<"Announcement"> | string title?: StringFilter<"Announcement"> | string description?: StringFilter<"Announcement"> | string href?: StringFilter<"Announcement"> | string action?: StringFilter<"Announcement"> | string isPublished?: BoolFilter<"Announcement"> | boolean publishedAt?: DateTimeFilter<"Announcement"> | Date | string createdAt?: DateTimeFilter<"Announcement"> | Date | string updatedAt?: DateTimeFilter<"Announcement"> | Date | string } export type AnnouncementOrderByWithRelationInput = { id?: SortOrder title?: SortOrder description?: SortOrder href?: SortOrder action?: SortOrder isPublished?: SortOrder publishedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AnnouncementWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: AnnouncementWhereInput | AnnouncementWhereInput[] OR?: AnnouncementWhereInput[] NOT?: AnnouncementWhereInput | AnnouncementWhereInput[] title?: StringFilter<"Announcement"> | string description?: StringFilter<"Announcement"> | string href?: StringFilter<"Announcement"> | string action?: StringFilter<"Announcement"> | string isPublished?: BoolFilter<"Announcement"> | boolean publishedAt?: DateTimeFilter<"Announcement"> | Date | string createdAt?: DateTimeFilter<"Announcement"> | Date | string updatedAt?: DateTimeFilter<"Announcement"> | Date | string }, "id"> export type AnnouncementOrderByWithAggregationInput = { id?: SortOrder title?: SortOrder description?: SortOrder href?: SortOrder action?: SortOrder isPublished?: SortOrder publishedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: AnnouncementCountOrderByAggregateInput _max?: AnnouncementMaxOrderByAggregateInput _min?: AnnouncementMinOrderByAggregateInput } export type AnnouncementScalarWhereWithAggregatesInput = { AND?: AnnouncementScalarWhereWithAggregatesInput | AnnouncementScalarWhereWithAggregatesInput[] OR?: AnnouncementScalarWhereWithAggregatesInput[] NOT?: AnnouncementScalarWhereWithAggregatesInput | AnnouncementScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Announcement"> | string title?: StringWithAggregatesFilter<"Announcement"> | string description?: StringWithAggregatesFilter<"Announcement"> | string href?: StringWithAggregatesFilter<"Announcement"> | string action?: StringWithAggregatesFilter<"Announcement"> | string isPublished?: BoolWithAggregatesFilter<"Announcement"> | boolean publishedAt?: DateTimeWithAggregatesFilter<"Announcement"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"Announcement"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Announcement"> | Date | string } export type EmailDeliveryWhereInput = { AND?: EmailDeliveryWhereInput | EmailDeliveryWhereInput[] OR?: EmailDeliveryWhereInput[] NOT?: EmailDeliveryWhereInput | EmailDeliveryWhereInput[] message_id?: StringFilter<"EmailDelivery"> | string recipient?: StringFilter<"EmailDelivery"> | string subject?: StringFilter<"EmailDelivery"> | string region?: StringFilter<"EmailDelivery"> | string sent_at?: DateTimeFilter<"EmailDelivery"> | Date | string } export type EmailDeliveryOrderByWithRelationInput = { message_id?: SortOrder recipient?: SortOrder subject?: SortOrder region?: SortOrder sent_at?: SortOrder } export type EmailDeliveryWhereUniqueInput = Prisma.AtLeast<{ message_id?: string AND?: EmailDeliveryWhereInput | EmailDeliveryWhereInput[] OR?: EmailDeliveryWhereInput[] NOT?: EmailDeliveryWhereInput | EmailDeliveryWhereInput[] recipient?: StringFilter<"EmailDelivery"> | string subject?: StringFilter<"EmailDelivery"> | string region?: StringFilter<"EmailDelivery"> | string sent_at?: DateTimeFilter<"EmailDelivery"> | Date | string }, "message_id"> export type EmailDeliveryOrderByWithAggregationInput = { message_id?: SortOrder recipient?: SortOrder subject?: SortOrder region?: SortOrder sent_at?: SortOrder _count?: EmailDeliveryCountOrderByAggregateInput _max?: EmailDeliveryMaxOrderByAggregateInput _min?: EmailDeliveryMinOrderByAggregateInput } export type EmailDeliveryScalarWhereWithAggregatesInput = { AND?: EmailDeliveryScalarWhereWithAggregatesInput | EmailDeliveryScalarWhereWithAggregatesInput[] OR?: EmailDeliveryScalarWhereWithAggregatesInput[] NOT?: EmailDeliveryScalarWhereWithAggregatesInput | EmailDeliveryScalarWhereWithAggregatesInput[] message_id?: StringWithAggregatesFilter<"EmailDelivery"> | string recipient?: StringWithAggregatesFilter<"EmailDelivery"> | string subject?: StringWithAggregatesFilter<"EmailDelivery"> | string region?: StringWithAggregatesFilter<"EmailDelivery"> | string sent_at?: DateTimeWithAggregatesFilter<"EmailDelivery"> | Date | string } export type UserWhereInput = { AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] id?: StringFilter<"User"> | string name?: StringFilter<"User"> | string email?: StringFilter<"User"> | string emailVerified?: BoolFilter<"User"> | boolean image?: StringNullableFilter<"User"> | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string first_name?: StringNullableFilter<"User"> | string | null last_name?: StringNullableFilter<"User"> | string | null password_hash?: StringNullableFilter<"User"> | string | null default_font_family?: StringNullableFilter<"User"> | string | null default_font_size?: IntNullableFilter<"User"> | number | null default_font_color?: StringNullableFilter<"User"> | string | null notify_on_completion?: BoolFilter<"User"> | boolean default_clip_length?: StringFilter<"User"> | string create_settings?: JsonFilter<"User"> product_updates_unsubscribed_at?: DateTimeNullableFilter<"User"> | Date | string | null plan?: StringFilter<"User"> | string subscription_status?: StringFilter<"User"> | string subscription_provider?: StringNullableFilter<"User"> | string | null is_admin?: BoolFilter<"User"> | boolean stripe_customer_id?: StringNullableFilter<"User"> | string | null stripe_subscription_id?: StringNullableFilter<"User"> | string | null billing_period_start?: DateTimeNullableFilter<"User"> | Date | string | null billing_period_end?: DateTimeNullableFilter<"User"> | Date | string | null trial_ends_at?: DateTimeNullableFilter<"User"> | Date | string | null subscription_cancel_at?: DateTimeNullableFilter<"User"> | Date | string | null legacy_hd?: BoolFilter<"User"> | boolean pending_plan?: StringNullableFilter<"User"> | string | null pending_plan_invoice_id?: StringNullableFilter<"User"> | string | null tasks?: TaskListRelationFilter sessions?: SessionListRelationFilter accounts?: AccountListRelationFilter app_settings?: AppSettingListRelationFilter feature_flags_updated?: FeatureFlagListRelationFilter acquisition?: XOR | null affiliate?: XOR | null reviewed_affiliates?: AffiliateListRelationFilter social_accounts?: SocialAccountListRelationFilter social_oauth_states?: SocialOauthStateListRelationFilter social_posts?: SocialPostListRelationFilter feature_tours?: UserFeatureTourListRelationFilter } export type UserOrderByWithRelationInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder first_name?: SortOrderInput | SortOrder last_name?: SortOrderInput | SortOrder password_hash?: SortOrderInput | SortOrder default_font_family?: SortOrderInput | SortOrder default_font_size?: SortOrderInput | SortOrder default_font_color?: SortOrderInput | SortOrder notify_on_completion?: SortOrder default_clip_length?: SortOrder create_settings?: SortOrder product_updates_unsubscribed_at?: SortOrderInput | SortOrder plan?: SortOrder subscription_status?: SortOrder subscription_provider?: SortOrderInput | SortOrder is_admin?: SortOrder stripe_customer_id?: SortOrderInput | SortOrder stripe_subscription_id?: SortOrderInput | SortOrder billing_period_start?: SortOrderInput | SortOrder billing_period_end?: SortOrderInput | SortOrder trial_ends_at?: SortOrderInput | SortOrder subscription_cancel_at?: SortOrderInput | SortOrder legacy_hd?: SortOrder pending_plan?: SortOrderInput | SortOrder pending_plan_invoice_id?: SortOrderInput | SortOrder tasks?: TaskOrderByRelationAggregateInput sessions?: SessionOrderByRelationAggregateInput accounts?: AccountOrderByRelationAggregateInput app_settings?: AppSettingOrderByRelationAggregateInput feature_flags_updated?: FeatureFlagOrderByRelationAggregateInput acquisition?: UserAcquisitionOrderByWithRelationInput affiliate?: AffiliateOrderByWithRelationInput reviewed_affiliates?: AffiliateOrderByRelationAggregateInput social_accounts?: SocialAccountOrderByRelationAggregateInput social_oauth_states?: SocialOauthStateOrderByRelationAggregateInput social_posts?: SocialPostOrderByRelationAggregateInput feature_tours?: UserFeatureTourOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string stripe_customer_id?: string stripe_subscription_id?: string AND?: UserWhereInput | UserWhereInput[] OR?: UserWhereInput[] NOT?: UserWhereInput | UserWhereInput[] name?: StringFilter<"User"> | string emailVerified?: BoolFilter<"User"> | boolean image?: StringNullableFilter<"User"> | string | null createdAt?: DateTimeFilter<"User"> | Date | string updatedAt?: DateTimeFilter<"User"> | Date | string first_name?: StringNullableFilter<"User"> | string | null last_name?: StringNullableFilter<"User"> | string | null password_hash?: StringNullableFilter<"User"> | string | null default_font_family?: StringNullableFilter<"User"> | string | null default_font_size?: IntNullableFilter<"User"> | number | null default_font_color?: StringNullableFilter<"User"> | string | null notify_on_completion?: BoolFilter<"User"> | boolean default_clip_length?: StringFilter<"User"> | string create_settings?: JsonFilter<"User"> product_updates_unsubscribed_at?: DateTimeNullableFilter<"User"> | Date | string | null plan?: StringFilter<"User"> | string subscription_status?: StringFilter<"User"> | string subscription_provider?: StringNullableFilter<"User"> | string | null is_admin?: BoolFilter<"User"> | boolean billing_period_start?: DateTimeNullableFilter<"User"> | Date | string | null billing_period_end?: DateTimeNullableFilter<"User"> | Date | string | null trial_ends_at?: DateTimeNullableFilter<"User"> | Date | string | null subscription_cancel_at?: DateTimeNullableFilter<"User"> | Date | string | null legacy_hd?: BoolFilter<"User"> | boolean pending_plan?: StringNullableFilter<"User"> | string | null pending_plan_invoice_id?: StringNullableFilter<"User"> | string | null tasks?: TaskListRelationFilter sessions?: SessionListRelationFilter accounts?: AccountListRelationFilter app_settings?: AppSettingListRelationFilter feature_flags_updated?: FeatureFlagListRelationFilter acquisition?: XOR | null affiliate?: XOR | null reviewed_affiliates?: AffiliateListRelationFilter social_accounts?: SocialAccountListRelationFilter social_oauth_states?: SocialOauthStateListRelationFilter social_posts?: SocialPostListRelationFilter feature_tours?: UserFeatureTourListRelationFilter }, "id" | "email" | "stripe_customer_id" | "stripe_subscription_id"> export type UserOrderByWithAggregationInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder first_name?: SortOrderInput | SortOrder last_name?: SortOrderInput | SortOrder password_hash?: SortOrderInput | SortOrder default_font_family?: SortOrderInput | SortOrder default_font_size?: SortOrderInput | SortOrder default_font_color?: SortOrderInput | SortOrder notify_on_completion?: SortOrder default_clip_length?: SortOrder create_settings?: SortOrder product_updates_unsubscribed_at?: SortOrderInput | SortOrder plan?: SortOrder subscription_status?: SortOrder subscription_provider?: SortOrderInput | SortOrder is_admin?: SortOrder stripe_customer_id?: SortOrderInput | SortOrder stripe_subscription_id?: SortOrderInput | SortOrder billing_period_start?: SortOrderInput | SortOrder billing_period_end?: SortOrderInput | SortOrder trial_ends_at?: SortOrderInput | SortOrder subscription_cancel_at?: SortOrderInput | SortOrder legacy_hd?: SortOrder pending_plan?: SortOrderInput | SortOrder pending_plan_invoice_id?: SortOrderInput | SortOrder _count?: UserCountOrderByAggregateInput _avg?: UserAvgOrderByAggregateInput _max?: UserMaxOrderByAggregateInput _min?: UserMinOrderByAggregateInput _sum?: UserSumOrderByAggregateInput } export type UserScalarWhereWithAggregatesInput = { AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] OR?: UserScalarWhereWithAggregatesInput[] NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"User"> | string name?: StringWithAggregatesFilter<"User"> | string email?: StringWithAggregatesFilter<"User"> | string emailVerified?: BoolWithAggregatesFilter<"User"> | boolean image?: StringNullableWithAggregatesFilter<"User"> | string | null createdAt?: DateTimeWithAggregatesFilter<"User"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"User"> | Date | string first_name?: StringNullableWithAggregatesFilter<"User"> | string | null last_name?: StringNullableWithAggregatesFilter<"User"> | string | null password_hash?: StringNullableWithAggregatesFilter<"User"> | string | null default_font_family?: StringNullableWithAggregatesFilter<"User"> | string | null default_font_size?: IntNullableWithAggregatesFilter<"User"> | number | null default_font_color?: StringNullableWithAggregatesFilter<"User"> | string | null notify_on_completion?: BoolWithAggregatesFilter<"User"> | boolean default_clip_length?: StringWithAggregatesFilter<"User"> | string create_settings?: JsonWithAggregatesFilter<"User"> product_updates_unsubscribed_at?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null plan?: StringWithAggregatesFilter<"User"> | string subscription_status?: StringWithAggregatesFilter<"User"> | string subscription_provider?: StringNullableWithAggregatesFilter<"User"> | string | null is_admin?: BoolWithAggregatesFilter<"User"> | boolean stripe_customer_id?: StringNullableWithAggregatesFilter<"User"> | string | null stripe_subscription_id?: StringNullableWithAggregatesFilter<"User"> | string | null billing_period_start?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null billing_period_end?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null trial_ends_at?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null subscription_cancel_at?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null legacy_hd?: BoolWithAggregatesFilter<"User"> | boolean pending_plan?: StringNullableWithAggregatesFilter<"User"> | string | null pending_plan_invoice_id?: StringNullableWithAggregatesFilter<"User"> | string | null } export type UserAcquisitionWhereInput = { AND?: UserAcquisitionWhereInput | UserAcquisitionWhereInput[] OR?: UserAcquisitionWhereInput[] NOT?: UserAcquisitionWhereInput | UserAcquisitionWhereInput[] user_id?: StringFilter<"UserAcquisition"> | string utm_source?: StringNullableFilter<"UserAcquisition"> | string | null utm_medium?: StringNullableFilter<"UserAcquisition"> | string | null utm_campaign?: StringNullableFilter<"UserAcquisition"> | string | null utm_content?: StringNullableFilter<"UserAcquisition"> | string | null utm_term?: StringNullableFilter<"UserAcquisition"> | string | null ref?: StringNullableFilter<"UserAcquisition"> | string | null referrer_host?: StringNullableFilter<"UserAcquisition"> | string | null landing_path?: StringNullableFilter<"UserAcquisition"> | string | null first_seen_at?: DateTimeNullableFilter<"UserAcquisition"> | Date | string | null first_clip_exported_at?: DateTimeNullableFilter<"UserAcquisition"> | Date | string | null created_at?: DateTimeFilter<"UserAcquisition"> | Date | string user?: XOR } export type UserAcquisitionOrderByWithRelationInput = { user_id?: SortOrder utm_source?: SortOrderInput | SortOrder utm_medium?: SortOrderInput | SortOrder utm_campaign?: SortOrderInput | SortOrder utm_content?: SortOrderInput | SortOrder utm_term?: SortOrderInput | SortOrder ref?: SortOrderInput | SortOrder referrer_host?: SortOrderInput | SortOrder landing_path?: SortOrderInput | SortOrder first_seen_at?: SortOrderInput | SortOrder first_clip_exported_at?: SortOrderInput | SortOrder created_at?: SortOrder user?: UserOrderByWithRelationInput } export type UserAcquisitionWhereUniqueInput = Prisma.AtLeast<{ user_id?: string AND?: UserAcquisitionWhereInput | UserAcquisitionWhereInput[] OR?: UserAcquisitionWhereInput[] NOT?: UserAcquisitionWhereInput | UserAcquisitionWhereInput[] utm_source?: StringNullableFilter<"UserAcquisition"> | string | null utm_medium?: StringNullableFilter<"UserAcquisition"> | string | null utm_campaign?: StringNullableFilter<"UserAcquisition"> | string | null utm_content?: StringNullableFilter<"UserAcquisition"> | string | null utm_term?: StringNullableFilter<"UserAcquisition"> | string | null ref?: StringNullableFilter<"UserAcquisition"> | string | null referrer_host?: StringNullableFilter<"UserAcquisition"> | string | null landing_path?: StringNullableFilter<"UserAcquisition"> | string | null first_seen_at?: DateTimeNullableFilter<"UserAcquisition"> | Date | string | null first_clip_exported_at?: DateTimeNullableFilter<"UserAcquisition"> | Date | string | null created_at?: DateTimeFilter<"UserAcquisition"> | Date | string user?: XOR }, "user_id"> export type UserAcquisitionOrderByWithAggregationInput = { user_id?: SortOrder utm_source?: SortOrderInput | SortOrder utm_medium?: SortOrderInput | SortOrder utm_campaign?: SortOrderInput | SortOrder utm_content?: SortOrderInput | SortOrder utm_term?: SortOrderInput | SortOrder ref?: SortOrderInput | SortOrder referrer_host?: SortOrderInput | SortOrder landing_path?: SortOrderInput | SortOrder first_seen_at?: SortOrderInput | SortOrder first_clip_exported_at?: SortOrderInput | SortOrder created_at?: SortOrder _count?: UserAcquisitionCountOrderByAggregateInput _max?: UserAcquisitionMaxOrderByAggregateInput _min?: UserAcquisitionMinOrderByAggregateInput } export type UserAcquisitionScalarWhereWithAggregatesInput = { AND?: UserAcquisitionScalarWhereWithAggregatesInput | UserAcquisitionScalarWhereWithAggregatesInput[] OR?: UserAcquisitionScalarWhereWithAggregatesInput[] NOT?: UserAcquisitionScalarWhereWithAggregatesInput | UserAcquisitionScalarWhereWithAggregatesInput[] user_id?: StringWithAggregatesFilter<"UserAcquisition"> | string utm_source?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null utm_medium?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null utm_campaign?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null utm_content?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null utm_term?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null ref?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null referrer_host?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null landing_path?: StringNullableWithAggregatesFilter<"UserAcquisition"> | string | null first_seen_at?: DateTimeNullableWithAggregatesFilter<"UserAcquisition"> | Date | string | null first_clip_exported_at?: DateTimeNullableWithAggregatesFilter<"UserAcquisition"> | Date | string | null created_at?: DateTimeWithAggregatesFilter<"UserAcquisition"> | Date | string } export type AffiliateWhereInput = { AND?: AffiliateWhereInput | AffiliateWhereInput[] OR?: AffiliateWhereInput[] NOT?: AffiliateWhereInput | AffiliateWhereInput[] id?: StringFilter<"Affiliate"> | string user_id?: StringFilter<"Affiliate"> | string slug?: StringNullableFilter<"Affiliate"> | string | null status?: StringFilter<"Affiliate"> | string platform?: StringFilter<"Affiliate"> | string profile_url?: StringFilter<"Affiliate"> | string audience_size?: StringFilter<"Affiliate"> | string video_url?: StringNullableFilter<"Affiliate"> | string | null promotion_plan?: StringNullableFilter<"Affiliate"> | string | null decline_reason?: StringNullableFilter<"Affiliate"> | string | null stripe_promotion_code_id?: StringNullableFilter<"Affiliate"> | string | null app_store_code_added_at?: DateTimeNullableFilter<"Affiliate"> | Date | string | null terms_accepted_at?: DateTimeFilter<"Affiliate"> | Date | string reviewed_at?: DateTimeNullableFilter<"Affiliate"> | Date | string | null reviewed_by?: StringNullableFilter<"Affiliate"> | string | null created_at?: DateTimeFilter<"Affiliate"> | Date | string updated_at?: DateTimeFilter<"Affiliate"> | Date | string user?: XOR reviewer?: XOR | null } export type AffiliateOrderByWithRelationInput = { id?: SortOrder user_id?: SortOrder slug?: SortOrderInput | SortOrder status?: SortOrder platform?: SortOrder profile_url?: SortOrder audience_size?: SortOrder video_url?: SortOrderInput | SortOrder promotion_plan?: SortOrderInput | SortOrder decline_reason?: SortOrderInput | SortOrder stripe_promotion_code_id?: SortOrderInput | SortOrder app_store_code_added_at?: SortOrderInput | SortOrder terms_accepted_at?: SortOrder reviewed_at?: SortOrderInput | SortOrder reviewed_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder user?: UserOrderByWithRelationInput reviewer?: UserOrderByWithRelationInput } export type AffiliateWhereUniqueInput = Prisma.AtLeast<{ id?: string user_id?: string slug?: string AND?: AffiliateWhereInput | AffiliateWhereInput[] OR?: AffiliateWhereInput[] NOT?: AffiliateWhereInput | AffiliateWhereInput[] status?: StringFilter<"Affiliate"> | string platform?: StringFilter<"Affiliate"> | string profile_url?: StringFilter<"Affiliate"> | string audience_size?: StringFilter<"Affiliate"> | string video_url?: StringNullableFilter<"Affiliate"> | string | null promotion_plan?: StringNullableFilter<"Affiliate"> | string | null decline_reason?: StringNullableFilter<"Affiliate"> | string | null stripe_promotion_code_id?: StringNullableFilter<"Affiliate"> | string | null app_store_code_added_at?: DateTimeNullableFilter<"Affiliate"> | Date | string | null terms_accepted_at?: DateTimeFilter<"Affiliate"> | Date | string reviewed_at?: DateTimeNullableFilter<"Affiliate"> | Date | string | null reviewed_by?: StringNullableFilter<"Affiliate"> | string | null created_at?: DateTimeFilter<"Affiliate"> | Date | string updated_at?: DateTimeFilter<"Affiliate"> | Date | string user?: XOR reviewer?: XOR | null }, "id" | "user_id" | "slug"> export type AffiliateOrderByWithAggregationInput = { id?: SortOrder user_id?: SortOrder slug?: SortOrderInput | SortOrder status?: SortOrder platform?: SortOrder profile_url?: SortOrder audience_size?: SortOrder video_url?: SortOrderInput | SortOrder promotion_plan?: SortOrderInput | SortOrder decline_reason?: SortOrderInput | SortOrder stripe_promotion_code_id?: SortOrderInput | SortOrder app_store_code_added_at?: SortOrderInput | SortOrder terms_accepted_at?: SortOrder reviewed_at?: SortOrderInput | SortOrder reviewed_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: AffiliateCountOrderByAggregateInput _max?: AffiliateMaxOrderByAggregateInput _min?: AffiliateMinOrderByAggregateInput } export type AffiliateScalarWhereWithAggregatesInput = { AND?: AffiliateScalarWhereWithAggregatesInput | AffiliateScalarWhereWithAggregatesInput[] OR?: AffiliateScalarWhereWithAggregatesInput[] NOT?: AffiliateScalarWhereWithAggregatesInput | AffiliateScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Affiliate"> | string user_id?: StringWithAggregatesFilter<"Affiliate"> | string slug?: StringNullableWithAggregatesFilter<"Affiliate"> | string | null status?: StringWithAggregatesFilter<"Affiliate"> | string platform?: StringWithAggregatesFilter<"Affiliate"> | string profile_url?: StringWithAggregatesFilter<"Affiliate"> | string audience_size?: StringWithAggregatesFilter<"Affiliate"> | string video_url?: StringNullableWithAggregatesFilter<"Affiliate"> | string | null promotion_plan?: StringNullableWithAggregatesFilter<"Affiliate"> | string | null decline_reason?: StringNullableWithAggregatesFilter<"Affiliate"> | string | null stripe_promotion_code_id?: StringNullableWithAggregatesFilter<"Affiliate"> | string | null app_store_code_added_at?: DateTimeNullableWithAggregatesFilter<"Affiliate"> | Date | string | null terms_accepted_at?: DateTimeWithAggregatesFilter<"Affiliate"> | Date | string reviewed_at?: DateTimeNullableWithAggregatesFilter<"Affiliate"> | Date | string | null reviewed_by?: StringNullableWithAggregatesFilter<"Affiliate"> | string | null created_at?: DateTimeWithAggregatesFilter<"Affiliate"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"Affiliate"> | Date | string } export type FeatureFlagWhereInput = { AND?: FeatureFlagWhereInput | FeatureFlagWhereInput[] OR?: FeatureFlagWhereInput[] NOT?: FeatureFlagWhereInput | FeatureFlagWhereInput[] key?: StringFilter<"FeatureFlag"> | string description?: StringFilter<"FeatureFlag"> | string web_enabled?: BoolFilter<"FeatureFlag"> | boolean ios_enabled?: BoolFilter<"FeatureFlag"> | boolean admins_bypass?: BoolFilter<"FeatureFlag"> | boolean updated_by?: StringNullableFilter<"FeatureFlag"> | string | null created_at?: DateTimeFilter<"FeatureFlag"> | Date | string updated_at?: DateTimeFilter<"FeatureFlag"> | Date | string updated_by_user?: XOR | null } export type FeatureFlagOrderByWithRelationInput = { key?: SortOrder description?: SortOrder web_enabled?: SortOrder ios_enabled?: SortOrder admins_bypass?: SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder updated_by_user?: UserOrderByWithRelationInput } export type FeatureFlagWhereUniqueInput = Prisma.AtLeast<{ key?: string AND?: FeatureFlagWhereInput | FeatureFlagWhereInput[] OR?: FeatureFlagWhereInput[] NOT?: FeatureFlagWhereInput | FeatureFlagWhereInput[] description?: StringFilter<"FeatureFlag"> | string web_enabled?: BoolFilter<"FeatureFlag"> | boolean ios_enabled?: BoolFilter<"FeatureFlag"> | boolean admins_bypass?: BoolFilter<"FeatureFlag"> | boolean updated_by?: StringNullableFilter<"FeatureFlag"> | string | null created_at?: DateTimeFilter<"FeatureFlag"> | Date | string updated_at?: DateTimeFilter<"FeatureFlag"> | Date | string updated_by_user?: XOR | null }, "key"> export type FeatureFlagOrderByWithAggregationInput = { key?: SortOrder description?: SortOrder web_enabled?: SortOrder ios_enabled?: SortOrder admins_bypass?: SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: FeatureFlagCountOrderByAggregateInput _max?: FeatureFlagMaxOrderByAggregateInput _min?: FeatureFlagMinOrderByAggregateInput } export type FeatureFlagScalarWhereWithAggregatesInput = { AND?: FeatureFlagScalarWhereWithAggregatesInput | FeatureFlagScalarWhereWithAggregatesInput[] OR?: FeatureFlagScalarWhereWithAggregatesInput[] NOT?: FeatureFlagScalarWhereWithAggregatesInput | FeatureFlagScalarWhereWithAggregatesInput[] key?: StringWithAggregatesFilter<"FeatureFlag"> | string description?: StringWithAggregatesFilter<"FeatureFlag"> | string web_enabled?: BoolWithAggregatesFilter<"FeatureFlag"> | boolean ios_enabled?: BoolWithAggregatesFilter<"FeatureFlag"> | boolean admins_bypass?: BoolWithAggregatesFilter<"FeatureFlag"> | boolean updated_by?: StringNullableWithAggregatesFilter<"FeatureFlag"> | string | null created_at?: DateTimeWithAggregatesFilter<"FeatureFlag"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"FeatureFlag"> | Date | string } export type AppSettingWhereInput = { AND?: AppSettingWhereInput | AppSettingWhereInput[] OR?: AppSettingWhereInput[] NOT?: AppSettingWhereInput | AppSettingWhereInput[] setting_key?: StringFilter<"AppSetting"> | string encrypted_value?: StringFilter<"AppSetting"> | string prefer_admin_value?: BoolFilter<"AppSetting"> | boolean updated_by?: StringNullableFilter<"AppSetting"> | string | null created_at?: DateTimeFilter<"AppSetting"> | Date | string updated_at?: DateTimeFilter<"AppSetting"> | Date | string user?: XOR | null } export type AppSettingOrderByWithRelationInput = { setting_key?: SortOrder encrypted_value?: SortOrder prefer_admin_value?: SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder user?: UserOrderByWithRelationInput } export type AppSettingWhereUniqueInput = Prisma.AtLeast<{ setting_key?: string AND?: AppSettingWhereInput | AppSettingWhereInput[] OR?: AppSettingWhereInput[] NOT?: AppSettingWhereInput | AppSettingWhereInput[] encrypted_value?: StringFilter<"AppSetting"> | string prefer_admin_value?: BoolFilter<"AppSetting"> | boolean updated_by?: StringNullableFilter<"AppSetting"> | string | null created_at?: DateTimeFilter<"AppSetting"> | Date | string updated_at?: DateTimeFilter<"AppSetting"> | Date | string user?: XOR | null }, "setting_key"> export type AppSettingOrderByWithAggregationInput = { setting_key?: SortOrder encrypted_value?: SortOrder prefer_admin_value?: SortOrder updated_by?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: AppSettingCountOrderByAggregateInput _max?: AppSettingMaxOrderByAggregateInput _min?: AppSettingMinOrderByAggregateInput } export type AppSettingScalarWhereWithAggregatesInput = { AND?: AppSettingScalarWhereWithAggregatesInput | AppSettingScalarWhereWithAggregatesInput[] OR?: AppSettingScalarWhereWithAggregatesInput[] NOT?: AppSettingScalarWhereWithAggregatesInput | AppSettingScalarWhereWithAggregatesInput[] setting_key?: StringWithAggregatesFilter<"AppSetting"> | string encrypted_value?: StringWithAggregatesFilter<"AppSetting"> | string prefer_admin_value?: BoolWithAggregatesFilter<"AppSetting"> | boolean updated_by?: StringNullableWithAggregatesFilter<"AppSetting"> | string | null created_at?: DateTimeWithAggregatesFilter<"AppSetting"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"AppSetting"> | Date | string } export type MinuteUsageEventWhereInput = { AND?: MinuteUsageEventWhereInput | MinuteUsageEventWhereInput[] OR?: MinuteUsageEventWhereInput[] NOT?: MinuteUsageEventWhereInput | MinuteUsageEventWhereInput[] id?: StringFilter<"MinuteUsageEvent"> | string user_id?: StringFilter<"MinuteUsageEvent"> | string task_id?: StringNullableFilter<"MinuteUsageEvent"> | string | null minutes?: IntFilter<"MinuteUsageEvent"> | number source_duration_seconds?: IntFilter<"MinuteUsageEvent"> | number created_at?: DateTimeFilter<"MinuteUsageEvent"> | Date | string refunded_at?: DateTimeNullableFilter<"MinuteUsageEvent"> | Date | string | null } export type MinuteUsageEventOrderByWithRelationInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrderInput | SortOrder minutes?: SortOrder source_duration_seconds?: SortOrder created_at?: SortOrder refunded_at?: SortOrderInput | SortOrder } export type MinuteUsageEventWhereUniqueInput = Prisma.AtLeast<{ id?: string task_id?: string AND?: MinuteUsageEventWhereInput | MinuteUsageEventWhereInput[] OR?: MinuteUsageEventWhereInput[] NOT?: MinuteUsageEventWhereInput | MinuteUsageEventWhereInput[] user_id?: StringFilter<"MinuteUsageEvent"> | string minutes?: IntFilter<"MinuteUsageEvent"> | number source_duration_seconds?: IntFilter<"MinuteUsageEvent"> | number created_at?: DateTimeFilter<"MinuteUsageEvent"> | Date | string refunded_at?: DateTimeNullableFilter<"MinuteUsageEvent"> | Date | string | null }, "id" | "task_id"> export type MinuteUsageEventOrderByWithAggregationInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrderInput | SortOrder minutes?: SortOrder source_duration_seconds?: SortOrder created_at?: SortOrder refunded_at?: SortOrderInput | SortOrder _count?: MinuteUsageEventCountOrderByAggregateInput _avg?: MinuteUsageEventAvgOrderByAggregateInput _max?: MinuteUsageEventMaxOrderByAggregateInput _min?: MinuteUsageEventMinOrderByAggregateInput _sum?: MinuteUsageEventSumOrderByAggregateInput } export type MinuteUsageEventScalarWhereWithAggregatesInput = { AND?: MinuteUsageEventScalarWhereWithAggregatesInput | MinuteUsageEventScalarWhereWithAggregatesInput[] OR?: MinuteUsageEventScalarWhereWithAggregatesInput[] NOT?: MinuteUsageEventScalarWhereWithAggregatesInput | MinuteUsageEventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"MinuteUsageEvent"> | string user_id?: StringWithAggregatesFilter<"MinuteUsageEvent"> | string task_id?: StringNullableWithAggregatesFilter<"MinuteUsageEvent"> | string | null minutes?: IntWithAggregatesFilter<"MinuteUsageEvent"> | number source_duration_seconds?: IntWithAggregatesFilter<"MinuteUsageEvent"> | number created_at?: DateTimeWithAggregatesFilter<"MinuteUsageEvent"> | Date | string refunded_at?: DateTimeNullableWithAggregatesFilter<"MinuteUsageEvent"> | Date | string | null } export type AIEditUsageEventWhereInput = { AND?: AIEditUsageEventWhereInput | AIEditUsageEventWhereInput[] OR?: AIEditUsageEventWhereInput[] NOT?: AIEditUsageEventWhereInput | AIEditUsageEventWhereInput[] job_id?: StringFilter<"AIEditUsageEvent"> | string user_id?: StringFilter<"AIEditUsageEvent"> | string created_at?: DateTimeFilter<"AIEditUsageEvent"> | Date | string refunded_at?: DateTimeNullableFilter<"AIEditUsageEvent"> | Date | string | null } export type AIEditUsageEventOrderByWithRelationInput = { job_id?: SortOrder user_id?: SortOrder created_at?: SortOrder refunded_at?: SortOrderInput | SortOrder } export type AIEditUsageEventWhereUniqueInput = Prisma.AtLeast<{ job_id?: string AND?: AIEditUsageEventWhereInput | AIEditUsageEventWhereInput[] OR?: AIEditUsageEventWhereInput[] NOT?: AIEditUsageEventWhereInput | AIEditUsageEventWhereInput[] user_id?: StringFilter<"AIEditUsageEvent"> | string created_at?: DateTimeFilter<"AIEditUsageEvent"> | Date | string refunded_at?: DateTimeNullableFilter<"AIEditUsageEvent"> | Date | string | null }, "job_id"> export type AIEditUsageEventOrderByWithAggregationInput = { job_id?: SortOrder user_id?: SortOrder created_at?: SortOrder refunded_at?: SortOrderInput | SortOrder _count?: AIEditUsageEventCountOrderByAggregateInput _max?: AIEditUsageEventMaxOrderByAggregateInput _min?: AIEditUsageEventMinOrderByAggregateInput } export type AIEditUsageEventScalarWhereWithAggregatesInput = { AND?: AIEditUsageEventScalarWhereWithAggregatesInput | AIEditUsageEventScalarWhereWithAggregatesInput[] OR?: AIEditUsageEventScalarWhereWithAggregatesInput[] NOT?: AIEditUsageEventScalarWhereWithAggregatesInput | AIEditUsageEventScalarWhereWithAggregatesInput[] job_id?: StringWithAggregatesFilter<"AIEditUsageEvent"> | string user_id?: StringWithAggregatesFilter<"AIEditUsageEvent"> | string created_at?: DateTimeWithAggregatesFilter<"AIEditUsageEvent"> | Date | string refunded_at?: DateTimeNullableWithAggregatesFilter<"AIEditUsageEvent"> | Date | string | null } export type TaskWhereInput = { AND?: TaskWhereInput | TaskWhereInput[] OR?: TaskWhereInput[] NOT?: TaskWhereInput | TaskWhereInput[] id?: StringFilter<"Task"> | string user_id?: StringFilter<"Task"> | string source_id?: StringNullableFilter<"Task"> | string | null generated_clips_ids?: StringNullableListFilter<"Task"> status?: StringFilter<"Task"> | string progress?: IntNullableFilter<"Task"> | number | null progress_message?: StringNullableFilter<"Task"> | string | null source_metadata?: JsonFilter<"Task"> source_duration_seconds?: IntNullableFilter<"Task"> | number | null completion_notification_sent_at?: DateTimeNullableFilter<"Task"> | Date | string | null share_token?: StringNullableFilter<"Task"> | string | null share_enabled?: BoolFilter<"Task"> | boolean font_family?: StringNullableFilter<"Task"> | string | null font_size?: IntNullableFilter<"Task"> | number | null font_color?: StringNullableFilter<"Task"> | string | null caption_template?: StringNullableFilter<"Task"> | string | null include_broll?: BoolNullableFilter<"Task"> | boolean | null created_at?: DateTimeFilter<"Task"> | Date | string updated_at?: DateTimeFilter<"Task"> | Date | string user?: XOR source?: XOR | null social_posts?: SocialPostListRelationFilter } export type TaskOrderByWithRelationInput = { id?: SortOrder user_id?: SortOrder source_id?: SortOrderInput | SortOrder generated_clips_ids?: SortOrder status?: SortOrder progress?: SortOrderInput | SortOrder progress_message?: SortOrderInput | SortOrder source_metadata?: SortOrder source_duration_seconds?: SortOrderInput | SortOrder completion_notification_sent_at?: SortOrderInput | SortOrder share_token?: SortOrderInput | SortOrder share_enabled?: SortOrder font_family?: SortOrderInput | SortOrder font_size?: SortOrderInput | SortOrder font_color?: SortOrderInput | SortOrder caption_template?: SortOrderInput | SortOrder include_broll?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder user?: UserOrderByWithRelationInput source?: SourceOrderByWithRelationInput social_posts?: SocialPostOrderByRelationAggregateInput } export type TaskWhereUniqueInput = Prisma.AtLeast<{ id?: string share_token?: string AND?: TaskWhereInput | TaskWhereInput[] OR?: TaskWhereInput[] NOT?: TaskWhereInput | TaskWhereInput[] user_id?: StringFilter<"Task"> | string source_id?: StringNullableFilter<"Task"> | string | null generated_clips_ids?: StringNullableListFilter<"Task"> status?: StringFilter<"Task"> | string progress?: IntNullableFilter<"Task"> | number | null progress_message?: StringNullableFilter<"Task"> | string | null source_metadata?: JsonFilter<"Task"> source_duration_seconds?: IntNullableFilter<"Task"> | number | null completion_notification_sent_at?: DateTimeNullableFilter<"Task"> | Date | string | null share_enabled?: BoolFilter<"Task"> | boolean font_family?: StringNullableFilter<"Task"> | string | null font_size?: IntNullableFilter<"Task"> | number | null font_color?: StringNullableFilter<"Task"> | string | null caption_template?: StringNullableFilter<"Task"> | string | null include_broll?: BoolNullableFilter<"Task"> | boolean | null created_at?: DateTimeFilter<"Task"> | Date | string updated_at?: DateTimeFilter<"Task"> | Date | string user?: XOR source?: XOR | null social_posts?: SocialPostListRelationFilter }, "id" | "share_token"> export type TaskOrderByWithAggregationInput = { id?: SortOrder user_id?: SortOrder source_id?: SortOrderInput | SortOrder generated_clips_ids?: SortOrder status?: SortOrder progress?: SortOrderInput | SortOrder progress_message?: SortOrderInput | SortOrder source_metadata?: SortOrder source_duration_seconds?: SortOrderInput | SortOrder completion_notification_sent_at?: SortOrderInput | SortOrder share_token?: SortOrderInput | SortOrder share_enabled?: SortOrder font_family?: SortOrderInput | SortOrder font_size?: SortOrderInput | SortOrder font_color?: SortOrderInput | SortOrder caption_template?: SortOrderInput | SortOrder include_broll?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: TaskCountOrderByAggregateInput _avg?: TaskAvgOrderByAggregateInput _max?: TaskMaxOrderByAggregateInput _min?: TaskMinOrderByAggregateInput _sum?: TaskSumOrderByAggregateInput } export type TaskScalarWhereWithAggregatesInput = { AND?: TaskScalarWhereWithAggregatesInput | TaskScalarWhereWithAggregatesInput[] OR?: TaskScalarWhereWithAggregatesInput[] NOT?: TaskScalarWhereWithAggregatesInput | TaskScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Task"> | string user_id?: StringWithAggregatesFilter<"Task"> | string source_id?: StringNullableWithAggregatesFilter<"Task"> | string | null generated_clips_ids?: StringNullableListFilter<"Task"> status?: StringWithAggregatesFilter<"Task"> | string progress?: IntNullableWithAggregatesFilter<"Task"> | number | null progress_message?: StringNullableWithAggregatesFilter<"Task"> | string | null source_metadata?: JsonWithAggregatesFilter<"Task"> source_duration_seconds?: IntNullableWithAggregatesFilter<"Task"> | number | null completion_notification_sent_at?: DateTimeNullableWithAggregatesFilter<"Task"> | Date | string | null share_token?: StringNullableWithAggregatesFilter<"Task"> | string | null share_enabled?: BoolWithAggregatesFilter<"Task"> | boolean font_family?: StringNullableWithAggregatesFilter<"Task"> | string | null font_size?: IntNullableWithAggregatesFilter<"Task"> | number | null font_color?: StringNullableWithAggregatesFilter<"Task"> | string | null caption_template?: StringNullableWithAggregatesFilter<"Task"> | string | null include_broll?: BoolNullableWithAggregatesFilter<"Task"> | boolean | null created_at?: DateTimeWithAggregatesFilter<"Task"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"Task"> | Date | string } export type SocialAccountWhereInput = { AND?: SocialAccountWhereInput | SocialAccountWhereInput[] OR?: SocialAccountWhereInput[] NOT?: SocialAccountWhereInput | SocialAccountWhereInput[] id?: StringFilter<"SocialAccount"> | string user_id?: StringFilter<"SocialAccount"> | string provider?: StringFilter<"SocialAccount"> | string external_account_id?: StringFilter<"SocialAccount"> | string display_name?: StringNullableFilter<"SocialAccount"> | string | null username?: StringNullableFilter<"SocialAccount"> | string | null avatar_url?: StringNullableFilter<"SocialAccount"> | string | null access_token_encrypted?: StringFilter<"SocialAccount"> | string refresh_token_encrypted?: StringNullableFilter<"SocialAccount"> | string | null token_expires_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null scopes?: StringNullableFilter<"SocialAccount"> | string | null metadata?: JsonFilter<"SocialAccount"> status?: StringFilter<"SocialAccount"> | string last_error?: StringNullableFilter<"SocialAccount"> | string | null created_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null updated_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null revoked_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null user?: XOR posts?: SocialPostListRelationFilter } export type SocialAccountOrderByWithRelationInput = { id?: SortOrder user_id?: SortOrder provider?: SortOrder external_account_id?: SortOrder display_name?: SortOrderInput | SortOrder username?: SortOrderInput | SortOrder avatar_url?: SortOrderInput | SortOrder access_token_encrypted?: SortOrder refresh_token_encrypted?: SortOrderInput | SortOrder token_expires_at?: SortOrderInput | SortOrder scopes?: SortOrderInput | SortOrder metadata?: SortOrder status?: SortOrder last_error?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder revoked_at?: SortOrderInput | SortOrder user?: UserOrderByWithRelationInput posts?: SocialPostOrderByRelationAggregateInput } export type SocialAccountWhereUniqueInput = Prisma.AtLeast<{ id?: string user_id_provider_external_account_id?: SocialAccountUser_idProviderExternal_account_idCompoundUniqueInput AND?: SocialAccountWhereInput | SocialAccountWhereInput[] OR?: SocialAccountWhereInput[] NOT?: SocialAccountWhereInput | SocialAccountWhereInput[] user_id?: StringFilter<"SocialAccount"> | string provider?: StringFilter<"SocialAccount"> | string external_account_id?: StringFilter<"SocialAccount"> | string display_name?: StringNullableFilter<"SocialAccount"> | string | null username?: StringNullableFilter<"SocialAccount"> | string | null avatar_url?: StringNullableFilter<"SocialAccount"> | string | null access_token_encrypted?: StringFilter<"SocialAccount"> | string refresh_token_encrypted?: StringNullableFilter<"SocialAccount"> | string | null token_expires_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null scopes?: StringNullableFilter<"SocialAccount"> | string | null metadata?: JsonFilter<"SocialAccount"> status?: StringFilter<"SocialAccount"> | string last_error?: StringNullableFilter<"SocialAccount"> | string | null created_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null updated_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null revoked_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null user?: XOR posts?: SocialPostListRelationFilter }, "id" | "user_id_provider_external_account_id"> export type SocialAccountOrderByWithAggregationInput = { id?: SortOrder user_id?: SortOrder provider?: SortOrder external_account_id?: SortOrder display_name?: SortOrderInput | SortOrder username?: SortOrderInput | SortOrder avatar_url?: SortOrderInput | SortOrder access_token_encrypted?: SortOrder refresh_token_encrypted?: SortOrderInput | SortOrder token_expires_at?: SortOrderInput | SortOrder scopes?: SortOrderInput | SortOrder metadata?: SortOrder status?: SortOrder last_error?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder revoked_at?: SortOrderInput | SortOrder _count?: SocialAccountCountOrderByAggregateInput _max?: SocialAccountMaxOrderByAggregateInput _min?: SocialAccountMinOrderByAggregateInput } export type SocialAccountScalarWhereWithAggregatesInput = { AND?: SocialAccountScalarWhereWithAggregatesInput | SocialAccountScalarWhereWithAggregatesInput[] OR?: SocialAccountScalarWhereWithAggregatesInput[] NOT?: SocialAccountScalarWhereWithAggregatesInput | SocialAccountScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"SocialAccount"> | string user_id?: StringWithAggregatesFilter<"SocialAccount"> | string provider?: StringWithAggregatesFilter<"SocialAccount"> | string external_account_id?: StringWithAggregatesFilter<"SocialAccount"> | string display_name?: StringNullableWithAggregatesFilter<"SocialAccount"> | string | null username?: StringNullableWithAggregatesFilter<"SocialAccount"> | string | null avatar_url?: StringNullableWithAggregatesFilter<"SocialAccount"> | string | null access_token_encrypted?: StringWithAggregatesFilter<"SocialAccount"> | string refresh_token_encrypted?: StringNullableWithAggregatesFilter<"SocialAccount"> | string | null token_expires_at?: DateTimeNullableWithAggregatesFilter<"SocialAccount"> | Date | string | null scopes?: StringNullableWithAggregatesFilter<"SocialAccount"> | string | null metadata?: JsonWithAggregatesFilter<"SocialAccount"> status?: StringWithAggregatesFilter<"SocialAccount"> | string last_error?: StringNullableWithAggregatesFilter<"SocialAccount"> | string | null created_at?: DateTimeNullableWithAggregatesFilter<"SocialAccount"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"SocialAccount"> | Date | string | null revoked_at?: DateTimeNullableWithAggregatesFilter<"SocialAccount"> | Date | string | null } export type SocialOauthStateWhereInput = { AND?: SocialOauthStateWhereInput | SocialOauthStateWhereInput[] OR?: SocialOauthStateWhereInput[] NOT?: SocialOauthStateWhereInput | SocialOauthStateWhereInput[] state?: StringFilter<"SocialOauthState"> | string user_id?: StringFilter<"SocialOauthState"> | string provider?: StringFilter<"SocialOauthState"> | string code_verifier?: StringNullableFilter<"SocialOauthState"> | string | null redirect_uri?: StringFilter<"SocialOauthState"> | string created_at?: DateTimeNullableFilter<"SocialOauthState"> | Date | string | null expires_at?: DateTimeFilter<"SocialOauthState"> | Date | string user?: XOR } export type SocialOauthStateOrderByWithRelationInput = { state?: SortOrder user_id?: SortOrder provider?: SortOrder code_verifier?: SortOrderInput | SortOrder redirect_uri?: SortOrder created_at?: SortOrderInput | SortOrder expires_at?: SortOrder user?: UserOrderByWithRelationInput } export type SocialOauthStateWhereUniqueInput = Prisma.AtLeast<{ state?: string AND?: SocialOauthStateWhereInput | SocialOauthStateWhereInput[] OR?: SocialOauthStateWhereInput[] NOT?: SocialOauthStateWhereInput | SocialOauthStateWhereInput[] user_id?: StringFilter<"SocialOauthState"> | string provider?: StringFilter<"SocialOauthState"> | string code_verifier?: StringNullableFilter<"SocialOauthState"> | string | null redirect_uri?: StringFilter<"SocialOauthState"> | string created_at?: DateTimeNullableFilter<"SocialOauthState"> | Date | string | null expires_at?: DateTimeFilter<"SocialOauthState"> | Date | string user?: XOR }, "state"> export type SocialOauthStateOrderByWithAggregationInput = { state?: SortOrder user_id?: SortOrder provider?: SortOrder code_verifier?: SortOrderInput | SortOrder redirect_uri?: SortOrder created_at?: SortOrderInput | SortOrder expires_at?: SortOrder _count?: SocialOauthStateCountOrderByAggregateInput _max?: SocialOauthStateMaxOrderByAggregateInput _min?: SocialOauthStateMinOrderByAggregateInput } export type SocialOauthStateScalarWhereWithAggregatesInput = { AND?: SocialOauthStateScalarWhereWithAggregatesInput | SocialOauthStateScalarWhereWithAggregatesInput[] OR?: SocialOauthStateScalarWhereWithAggregatesInput[] NOT?: SocialOauthStateScalarWhereWithAggregatesInput | SocialOauthStateScalarWhereWithAggregatesInput[] state?: StringWithAggregatesFilter<"SocialOauthState"> | string user_id?: StringWithAggregatesFilter<"SocialOauthState"> | string provider?: StringWithAggregatesFilter<"SocialOauthState"> | string code_verifier?: StringNullableWithAggregatesFilter<"SocialOauthState"> | string | null redirect_uri?: StringWithAggregatesFilter<"SocialOauthState"> | string created_at?: DateTimeNullableWithAggregatesFilter<"SocialOauthState"> | Date | string | null expires_at?: DateTimeWithAggregatesFilter<"SocialOauthState"> | Date | string } export type SocialPostWhereInput = { AND?: SocialPostWhereInput | SocialPostWhereInput[] OR?: SocialPostWhereInput[] NOT?: SocialPostWhereInput | SocialPostWhereInput[] id?: StringFilter<"SocialPost"> | string user_id?: StringFilter<"SocialPost"> | string task_id?: StringNullableFilter<"SocialPost"> | string | null clip_id?: StringNullableFilter<"SocialPost"> | string | null social_account_id?: StringNullableFilter<"SocialPost"> | string | null provider?: StringFilter<"SocialPost"> | string status?: StringFilter<"SocialPost"> | string scheduled_for?: DateTimeNullableFilter<"SocialPost"> | Date | string | null title?: StringNullableFilter<"SocialPost"> | string | null caption?: StringNullableFilter<"SocialPost"> | string | null hashtags?: StringNullableListFilter<"SocialPost"> privacy_level?: StringFilter<"SocialPost"> | string media_token?: StringNullableFilter<"SocialPost"> | string | null media_token_expires_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null source_file_path?: StringNullableFilter<"SocialPost"> | string | null pending_handle?: StringNullableFilter<"SocialPost"> | string | null external_post_id?: StringNullableFilter<"SocialPost"> | string | null external_url?: StringNullableFilter<"SocialPost"> | string | null error_message?: StringNullableFilter<"SocialPost"> | string | null attempts?: IntFilter<"SocialPost"> | number claimed_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null hook_type?: StringNullableFilter<"SocialPost"> | string | null hook_title?: StringNullableFilter<"SocialPost"> | string | null virality_score?: IntNullableFilter<"SocialPost"> | number | null hook_score?: IntNullableFilter<"SocialPost"> | number | null engagement_score?: IntNullableFilter<"SocialPost"> | number | null value_score?: IntNullableFilter<"SocialPost"> | number | null shareability_score?: IntNullableFilter<"SocialPost"> | number | null clip_duration?: FloatNullableFilter<"SocialPost"> | number | null published_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null last_metrics_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null metrics?: JsonNullableFilter<"SocialPost"> created_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null updated_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null user?: XOR task?: XOR | null social_account?: XOR | null metric_history?: SocialPostMetricListRelationFilter } export type SocialPostOrderByWithRelationInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrderInput | SortOrder clip_id?: SortOrderInput | SortOrder social_account_id?: SortOrderInput | SortOrder provider?: SortOrder status?: SortOrder scheduled_for?: SortOrderInput | SortOrder title?: SortOrderInput | SortOrder caption?: SortOrderInput | SortOrder hashtags?: SortOrder privacy_level?: SortOrder media_token?: SortOrderInput | SortOrder media_token_expires_at?: SortOrderInput | SortOrder source_file_path?: SortOrderInput | SortOrder pending_handle?: SortOrderInput | SortOrder external_post_id?: SortOrderInput | SortOrder external_url?: SortOrderInput | SortOrder error_message?: SortOrderInput | SortOrder attempts?: SortOrder claimed_at?: SortOrderInput | SortOrder hook_type?: SortOrderInput | SortOrder hook_title?: SortOrderInput | SortOrder virality_score?: SortOrderInput | SortOrder hook_score?: SortOrderInput | SortOrder engagement_score?: SortOrderInput | SortOrder value_score?: SortOrderInput | SortOrder shareability_score?: SortOrderInput | SortOrder clip_duration?: SortOrderInput | SortOrder published_at?: SortOrderInput | SortOrder last_metrics_at?: SortOrderInput | SortOrder metrics?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder user?: UserOrderByWithRelationInput task?: TaskOrderByWithRelationInput social_account?: SocialAccountOrderByWithRelationInput metric_history?: SocialPostMetricOrderByRelationAggregateInput } export type SocialPostWhereUniqueInput = Prisma.AtLeast<{ id?: string media_token?: string AND?: SocialPostWhereInput | SocialPostWhereInput[] OR?: SocialPostWhereInput[] NOT?: SocialPostWhereInput | SocialPostWhereInput[] user_id?: StringFilter<"SocialPost"> | string task_id?: StringNullableFilter<"SocialPost"> | string | null clip_id?: StringNullableFilter<"SocialPost"> | string | null social_account_id?: StringNullableFilter<"SocialPost"> | string | null provider?: StringFilter<"SocialPost"> | string status?: StringFilter<"SocialPost"> | string scheduled_for?: DateTimeNullableFilter<"SocialPost"> | Date | string | null title?: StringNullableFilter<"SocialPost"> | string | null caption?: StringNullableFilter<"SocialPost"> | string | null hashtags?: StringNullableListFilter<"SocialPost"> privacy_level?: StringFilter<"SocialPost"> | string media_token_expires_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null source_file_path?: StringNullableFilter<"SocialPost"> | string | null pending_handle?: StringNullableFilter<"SocialPost"> | string | null external_post_id?: StringNullableFilter<"SocialPost"> | string | null external_url?: StringNullableFilter<"SocialPost"> | string | null error_message?: StringNullableFilter<"SocialPost"> | string | null attempts?: IntFilter<"SocialPost"> | number claimed_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null hook_type?: StringNullableFilter<"SocialPost"> | string | null hook_title?: StringNullableFilter<"SocialPost"> | string | null virality_score?: IntNullableFilter<"SocialPost"> | number | null hook_score?: IntNullableFilter<"SocialPost"> | number | null engagement_score?: IntNullableFilter<"SocialPost"> | number | null value_score?: IntNullableFilter<"SocialPost"> | number | null shareability_score?: IntNullableFilter<"SocialPost"> | number | null clip_duration?: FloatNullableFilter<"SocialPost"> | number | null published_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null last_metrics_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null metrics?: JsonNullableFilter<"SocialPost"> created_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null updated_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null user?: XOR task?: XOR | null social_account?: XOR | null metric_history?: SocialPostMetricListRelationFilter }, "id" | "media_token"> export type SocialPostOrderByWithAggregationInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrderInput | SortOrder clip_id?: SortOrderInput | SortOrder social_account_id?: SortOrderInput | SortOrder provider?: SortOrder status?: SortOrder scheduled_for?: SortOrderInput | SortOrder title?: SortOrderInput | SortOrder caption?: SortOrderInput | SortOrder hashtags?: SortOrder privacy_level?: SortOrder media_token?: SortOrderInput | SortOrder media_token_expires_at?: SortOrderInput | SortOrder source_file_path?: SortOrderInput | SortOrder pending_handle?: SortOrderInput | SortOrder external_post_id?: SortOrderInput | SortOrder external_url?: SortOrderInput | SortOrder error_message?: SortOrderInput | SortOrder attempts?: SortOrder claimed_at?: SortOrderInput | SortOrder hook_type?: SortOrderInput | SortOrder hook_title?: SortOrderInput | SortOrder virality_score?: SortOrderInput | SortOrder hook_score?: SortOrderInput | SortOrder engagement_score?: SortOrderInput | SortOrder value_score?: SortOrderInput | SortOrder shareability_score?: SortOrderInput | SortOrder clip_duration?: SortOrderInput | SortOrder published_at?: SortOrderInput | SortOrder last_metrics_at?: SortOrderInput | SortOrder metrics?: SortOrderInput | SortOrder created_at?: SortOrderInput | SortOrder updated_at?: SortOrderInput | SortOrder _count?: SocialPostCountOrderByAggregateInput _avg?: SocialPostAvgOrderByAggregateInput _max?: SocialPostMaxOrderByAggregateInput _min?: SocialPostMinOrderByAggregateInput _sum?: SocialPostSumOrderByAggregateInput } export type SocialPostScalarWhereWithAggregatesInput = { AND?: SocialPostScalarWhereWithAggregatesInput | SocialPostScalarWhereWithAggregatesInput[] OR?: SocialPostScalarWhereWithAggregatesInput[] NOT?: SocialPostScalarWhereWithAggregatesInput | SocialPostScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"SocialPost"> | string user_id?: StringWithAggregatesFilter<"SocialPost"> | string task_id?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null clip_id?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null social_account_id?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null provider?: StringWithAggregatesFilter<"SocialPost"> | string status?: StringWithAggregatesFilter<"SocialPost"> | string scheduled_for?: DateTimeNullableWithAggregatesFilter<"SocialPost"> | Date | string | null title?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null caption?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null hashtags?: StringNullableListFilter<"SocialPost"> privacy_level?: StringWithAggregatesFilter<"SocialPost"> | string media_token?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null media_token_expires_at?: DateTimeNullableWithAggregatesFilter<"SocialPost"> | Date | string | null source_file_path?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null pending_handle?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null external_post_id?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null external_url?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null error_message?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null attempts?: IntWithAggregatesFilter<"SocialPost"> | number claimed_at?: DateTimeNullableWithAggregatesFilter<"SocialPost"> | Date | string | null hook_type?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null hook_title?: StringNullableWithAggregatesFilter<"SocialPost"> | string | null virality_score?: IntNullableWithAggregatesFilter<"SocialPost"> | number | null hook_score?: IntNullableWithAggregatesFilter<"SocialPost"> | number | null engagement_score?: IntNullableWithAggregatesFilter<"SocialPost"> | number | null value_score?: IntNullableWithAggregatesFilter<"SocialPost"> | number | null shareability_score?: IntNullableWithAggregatesFilter<"SocialPost"> | number | null clip_duration?: FloatNullableWithAggregatesFilter<"SocialPost"> | number | null published_at?: DateTimeNullableWithAggregatesFilter<"SocialPost"> | Date | string | null last_metrics_at?: DateTimeNullableWithAggregatesFilter<"SocialPost"> | Date | string | null metrics?: JsonNullableWithAggregatesFilter<"SocialPost"> created_at?: DateTimeNullableWithAggregatesFilter<"SocialPost"> | Date | string | null updated_at?: DateTimeNullableWithAggregatesFilter<"SocialPost"> | Date | string | null } export type SocialPostMetricWhereInput = { AND?: SocialPostMetricWhereInput | SocialPostMetricWhereInput[] OR?: SocialPostMetricWhereInput[] NOT?: SocialPostMetricWhereInput | SocialPostMetricWhereInput[] id?: StringFilter<"SocialPostMetric"> | string post_id?: StringFilter<"SocialPostMetric"> | string captured_at?: DateTimeNullableFilter<"SocialPostMetric"> | Date | string | null views?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null likes?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null comments?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null shares?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null saves?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null raw?: JsonNullableFilter<"SocialPostMetric"> post?: XOR } export type SocialPostMetricOrderByWithRelationInput = { id?: SortOrder post_id?: SortOrder captured_at?: SortOrderInput | SortOrder views?: SortOrderInput | SortOrder likes?: SortOrderInput | SortOrder comments?: SortOrderInput | SortOrder shares?: SortOrderInput | SortOrder saves?: SortOrderInput | SortOrder raw?: SortOrderInput | SortOrder post?: SocialPostOrderByWithRelationInput } export type SocialPostMetricWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: SocialPostMetricWhereInput | SocialPostMetricWhereInput[] OR?: SocialPostMetricWhereInput[] NOT?: SocialPostMetricWhereInput | SocialPostMetricWhereInput[] post_id?: StringFilter<"SocialPostMetric"> | string captured_at?: DateTimeNullableFilter<"SocialPostMetric"> | Date | string | null views?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null likes?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null comments?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null shares?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null saves?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null raw?: JsonNullableFilter<"SocialPostMetric"> post?: XOR }, "id"> export type SocialPostMetricOrderByWithAggregationInput = { id?: SortOrder post_id?: SortOrder captured_at?: SortOrderInput | SortOrder views?: SortOrderInput | SortOrder likes?: SortOrderInput | SortOrder comments?: SortOrderInput | SortOrder shares?: SortOrderInput | SortOrder saves?: SortOrderInput | SortOrder raw?: SortOrderInput | SortOrder _count?: SocialPostMetricCountOrderByAggregateInput _avg?: SocialPostMetricAvgOrderByAggregateInput _max?: SocialPostMetricMaxOrderByAggregateInput _min?: SocialPostMetricMinOrderByAggregateInput _sum?: SocialPostMetricSumOrderByAggregateInput } export type SocialPostMetricScalarWhereWithAggregatesInput = { AND?: SocialPostMetricScalarWhereWithAggregatesInput | SocialPostMetricScalarWhereWithAggregatesInput[] OR?: SocialPostMetricScalarWhereWithAggregatesInput[] NOT?: SocialPostMetricScalarWhereWithAggregatesInput | SocialPostMetricScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"SocialPostMetric"> | string post_id?: StringWithAggregatesFilter<"SocialPostMetric"> | string captured_at?: DateTimeNullableWithAggregatesFilter<"SocialPostMetric"> | Date | string | null views?: BigIntNullableWithAggregatesFilter<"SocialPostMetric"> | bigint | number | null likes?: BigIntNullableWithAggregatesFilter<"SocialPostMetric"> | bigint | number | null comments?: BigIntNullableWithAggregatesFilter<"SocialPostMetric"> | bigint | number | null shares?: BigIntNullableWithAggregatesFilter<"SocialPostMetric"> | bigint | number | null saves?: BigIntNullableWithAggregatesFilter<"SocialPostMetric"> | bigint | number | null raw?: JsonNullableWithAggregatesFilter<"SocialPostMetric"> } export type SourceWhereInput = { AND?: SourceWhereInput | SourceWhereInput[] OR?: SourceWhereInput[] NOT?: SourceWhereInput | SourceWhereInput[] id?: StringFilter<"Source"> | string type?: StringFilter<"Source"> | string title?: StringFilter<"Source"> | string url?: StringNullableFilter<"Source"> | string | null created_at?: DateTimeFilter<"Source"> | Date | string updated_at?: DateTimeFilter<"Source"> | Date | string tasks?: TaskListRelationFilter } export type SourceOrderByWithRelationInput = { id?: SortOrder type?: SortOrder title?: SortOrder url?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder tasks?: TaskOrderByRelationAggregateInput } export type SourceWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: SourceWhereInput | SourceWhereInput[] OR?: SourceWhereInput[] NOT?: SourceWhereInput | SourceWhereInput[] type?: StringFilter<"Source"> | string title?: StringFilter<"Source"> | string url?: StringNullableFilter<"Source"> | string | null created_at?: DateTimeFilter<"Source"> | Date | string updated_at?: DateTimeFilter<"Source"> | Date | string tasks?: TaskListRelationFilter }, "id"> export type SourceOrderByWithAggregationInput = { id?: SortOrder type?: SortOrder title?: SortOrder url?: SortOrderInput | SortOrder created_at?: SortOrder updated_at?: SortOrder _count?: SourceCountOrderByAggregateInput _max?: SourceMaxOrderByAggregateInput _min?: SourceMinOrderByAggregateInput } export type SourceScalarWhereWithAggregatesInput = { AND?: SourceScalarWhereWithAggregatesInput | SourceScalarWhereWithAggregatesInput[] OR?: SourceScalarWhereWithAggregatesInput[] NOT?: SourceScalarWhereWithAggregatesInput | SourceScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Source"> | string type?: StringWithAggregatesFilter<"Source"> | string title?: StringWithAggregatesFilter<"Source"> | string url?: StringNullableWithAggregatesFilter<"Source"> | string | null created_at?: DateTimeWithAggregatesFilter<"Source"> | Date | string updated_at?: DateTimeWithAggregatesFilter<"Source"> | Date | string } export type SessionWhereInput = { AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] id?: StringFilter<"Session"> | string expiresAt?: DateTimeFilter<"Session"> | Date | string token?: StringFilter<"Session"> | string createdAt?: DateTimeFilter<"Session"> | Date | string updatedAt?: DateTimeFilter<"Session"> | Date | string ipAddress?: StringNullableFilter<"Session"> | string | null userAgent?: StringNullableFilter<"Session"> | string | null userId?: StringFilter<"Session"> | string user?: XOR } export type SessionOrderByWithRelationInput = { id?: SortOrder expiresAt?: SortOrder token?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder ipAddress?: SortOrderInput | SortOrder userAgent?: SortOrderInput | SortOrder userId?: SortOrder user?: UserOrderByWithRelationInput } export type SessionWhereUniqueInput = Prisma.AtLeast<{ id?: string token?: string AND?: SessionWhereInput | SessionWhereInput[] OR?: SessionWhereInput[] NOT?: SessionWhereInput | SessionWhereInput[] expiresAt?: DateTimeFilter<"Session"> | Date | string createdAt?: DateTimeFilter<"Session"> | Date | string updatedAt?: DateTimeFilter<"Session"> | Date | string ipAddress?: StringNullableFilter<"Session"> | string | null userAgent?: StringNullableFilter<"Session"> | string | null userId?: StringFilter<"Session"> | string user?: XOR }, "id" | "token"> export type SessionOrderByWithAggregationInput = { id?: SortOrder expiresAt?: SortOrder token?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder ipAddress?: SortOrderInput | SortOrder userAgent?: SortOrderInput | SortOrder userId?: SortOrder _count?: SessionCountOrderByAggregateInput _max?: SessionMaxOrderByAggregateInput _min?: SessionMinOrderByAggregateInput } export type SessionScalarWhereWithAggregatesInput = { AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] OR?: SessionScalarWhereWithAggregatesInput[] NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Session"> | string expiresAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string token?: StringWithAggregatesFilter<"Session"> | string createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string ipAddress?: StringNullableWithAggregatesFilter<"Session"> | string | null userAgent?: StringNullableWithAggregatesFilter<"Session"> | string | null userId?: StringWithAggregatesFilter<"Session"> | string } export type AccountWhereInput = { AND?: AccountWhereInput | AccountWhereInput[] OR?: AccountWhereInput[] NOT?: AccountWhereInput | AccountWhereInput[] id?: StringFilter<"Account"> | string accountId?: StringFilter<"Account"> | string providerId?: StringFilter<"Account"> | string userId?: StringFilter<"Account"> | string accessToken?: StringNullableFilter<"Account"> | string | null refreshToken?: StringNullableFilter<"Account"> | string | null idToken?: StringNullableFilter<"Account"> | string | null accessTokenExpiresAt?: DateTimeNullableFilter<"Account"> | Date | string | null refreshTokenExpiresAt?: DateTimeNullableFilter<"Account"> | Date | string | null scope?: StringNullableFilter<"Account"> | string | null password?: StringNullableFilter<"Account"> | string | null createdAt?: DateTimeFilter<"Account"> | Date | string updatedAt?: DateTimeFilter<"Account"> | Date | string user?: XOR } export type AccountOrderByWithRelationInput = { id?: SortOrder accountId?: SortOrder providerId?: SortOrder userId?: SortOrder accessToken?: SortOrderInput | SortOrder refreshToken?: SortOrderInput | SortOrder idToken?: SortOrderInput | SortOrder accessTokenExpiresAt?: SortOrderInput | SortOrder refreshTokenExpiresAt?: SortOrderInput | SortOrder scope?: SortOrderInput | SortOrder password?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder user?: UserOrderByWithRelationInput } export type AccountWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: AccountWhereInput | AccountWhereInput[] OR?: AccountWhereInput[] NOT?: AccountWhereInput | AccountWhereInput[] accountId?: StringFilter<"Account"> | string providerId?: StringFilter<"Account"> | string userId?: StringFilter<"Account"> | string accessToken?: StringNullableFilter<"Account"> | string | null refreshToken?: StringNullableFilter<"Account"> | string | null idToken?: StringNullableFilter<"Account"> | string | null accessTokenExpiresAt?: DateTimeNullableFilter<"Account"> | Date | string | null refreshTokenExpiresAt?: DateTimeNullableFilter<"Account"> | Date | string | null scope?: StringNullableFilter<"Account"> | string | null password?: StringNullableFilter<"Account"> | string | null createdAt?: DateTimeFilter<"Account"> | Date | string updatedAt?: DateTimeFilter<"Account"> | Date | string user?: XOR }, "id"> export type AccountOrderByWithAggregationInput = { id?: SortOrder accountId?: SortOrder providerId?: SortOrder userId?: SortOrder accessToken?: SortOrderInput | SortOrder refreshToken?: SortOrderInput | SortOrder idToken?: SortOrderInput | SortOrder accessTokenExpiresAt?: SortOrderInput | SortOrder refreshTokenExpiresAt?: SortOrderInput | SortOrder scope?: SortOrderInput | SortOrder password?: SortOrderInput | SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: AccountCountOrderByAggregateInput _max?: AccountMaxOrderByAggregateInput _min?: AccountMinOrderByAggregateInput } export type AccountScalarWhereWithAggregatesInput = { AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] OR?: AccountScalarWhereWithAggregatesInput[] NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Account"> | string accountId?: StringWithAggregatesFilter<"Account"> | string providerId?: StringWithAggregatesFilter<"Account"> | string userId?: StringWithAggregatesFilter<"Account"> | string accessToken?: StringNullableWithAggregatesFilter<"Account"> | string | null refreshToken?: StringNullableWithAggregatesFilter<"Account"> | string | null idToken?: StringNullableWithAggregatesFilter<"Account"> | string | null accessTokenExpiresAt?: DateTimeNullableWithAggregatesFilter<"Account"> | Date | string | null refreshTokenExpiresAt?: DateTimeNullableWithAggregatesFilter<"Account"> | Date | string | null scope?: StringNullableWithAggregatesFilter<"Account"> | string | null password?: StringNullableWithAggregatesFilter<"Account"> | string | null createdAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"Account"> | Date | string } export type VerificationWhereInput = { AND?: VerificationWhereInput | VerificationWhereInput[] OR?: VerificationWhereInput[] NOT?: VerificationWhereInput | VerificationWhereInput[] id?: StringFilter<"Verification"> | string identifier?: StringFilter<"Verification"> | string value?: StringFilter<"Verification"> | string expiresAt?: DateTimeFilter<"Verification"> | Date | string createdAt?: DateTimeNullableFilter<"Verification"> | Date | string | null updatedAt?: DateTimeNullableFilter<"Verification"> | Date | string | null } export type VerificationOrderByWithRelationInput = { id?: SortOrder identifier?: SortOrder value?: SortOrder expiresAt?: SortOrder createdAt?: SortOrderInput | SortOrder updatedAt?: SortOrderInput | SortOrder } export type VerificationWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: VerificationWhereInput | VerificationWhereInput[] OR?: VerificationWhereInput[] NOT?: VerificationWhereInput | VerificationWhereInput[] identifier?: StringFilter<"Verification"> | string value?: StringFilter<"Verification"> | string expiresAt?: DateTimeFilter<"Verification"> | Date | string createdAt?: DateTimeNullableFilter<"Verification"> | Date | string | null updatedAt?: DateTimeNullableFilter<"Verification"> | Date | string | null }, "id"> export type VerificationOrderByWithAggregationInput = { id?: SortOrder identifier?: SortOrder value?: SortOrder expiresAt?: SortOrder createdAt?: SortOrderInput | SortOrder updatedAt?: SortOrderInput | SortOrder _count?: VerificationCountOrderByAggregateInput _max?: VerificationMaxOrderByAggregateInput _min?: VerificationMinOrderByAggregateInput } export type VerificationScalarWhereWithAggregatesInput = { AND?: VerificationScalarWhereWithAggregatesInput | VerificationScalarWhereWithAggregatesInput[] OR?: VerificationScalarWhereWithAggregatesInput[] NOT?: VerificationScalarWhereWithAggregatesInput | VerificationScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"Verification"> | string identifier?: StringWithAggregatesFilter<"Verification"> | string value?: StringWithAggregatesFilter<"Verification"> | string expiresAt?: DateTimeWithAggregatesFilter<"Verification"> | Date | string createdAt?: DateTimeNullableWithAggregatesFilter<"Verification"> | Date | string | null updatedAt?: DateTimeNullableWithAggregatesFilter<"Verification"> | Date | string | null } export type StripeWebhookEventWhereInput = { AND?: StripeWebhookEventWhereInput | StripeWebhookEventWhereInput[] OR?: StripeWebhookEventWhereInput[] NOT?: StripeWebhookEventWhereInput | StripeWebhookEventWhereInput[] id?: StringFilter<"StripeWebhookEvent"> | string type?: StringFilter<"StripeWebhookEvent"> | string created_at?: DateTimeFilter<"StripeWebhookEvent"> | Date | string } export type StripeWebhookEventOrderByWithRelationInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type StripeWebhookEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: StripeWebhookEventWhereInput | StripeWebhookEventWhereInput[] OR?: StripeWebhookEventWhereInput[] NOT?: StripeWebhookEventWhereInput | StripeWebhookEventWhereInput[] type?: StringFilter<"StripeWebhookEvent"> | string created_at?: DateTimeFilter<"StripeWebhookEvent"> | Date | string }, "id"> export type StripeWebhookEventOrderByWithAggregationInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder _count?: StripeWebhookEventCountOrderByAggregateInput _max?: StripeWebhookEventMaxOrderByAggregateInput _min?: StripeWebhookEventMinOrderByAggregateInput } export type StripeWebhookEventScalarWhereWithAggregatesInput = { AND?: StripeWebhookEventScalarWhereWithAggregatesInput | StripeWebhookEventScalarWhereWithAggregatesInput[] OR?: StripeWebhookEventScalarWhereWithAggregatesInput[] NOT?: StripeWebhookEventScalarWhereWithAggregatesInput | StripeWebhookEventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"StripeWebhookEvent"> | string type?: StringWithAggregatesFilter<"StripeWebhookEvent"> | string created_at?: DateTimeWithAggregatesFilter<"StripeWebhookEvent"> | Date | string } export type RevenueCatWebhookEventWhereInput = { AND?: RevenueCatWebhookEventWhereInput | RevenueCatWebhookEventWhereInput[] OR?: RevenueCatWebhookEventWhereInput[] NOT?: RevenueCatWebhookEventWhereInput | RevenueCatWebhookEventWhereInput[] id?: StringFilter<"RevenueCatWebhookEvent"> | string type?: StringFilter<"RevenueCatWebhookEvent"> | string created_at?: DateTimeFilter<"RevenueCatWebhookEvent"> | Date | string } export type RevenueCatWebhookEventOrderByWithRelationInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type RevenueCatWebhookEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: RevenueCatWebhookEventWhereInput | RevenueCatWebhookEventWhereInput[] OR?: RevenueCatWebhookEventWhereInput[] NOT?: RevenueCatWebhookEventWhereInput | RevenueCatWebhookEventWhereInput[] type?: StringFilter<"RevenueCatWebhookEvent"> | string created_at?: DateTimeFilter<"RevenueCatWebhookEvent"> | Date | string }, "id"> export type RevenueCatWebhookEventOrderByWithAggregationInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder _count?: RevenueCatWebhookEventCountOrderByAggregateInput _max?: RevenueCatWebhookEventMaxOrderByAggregateInput _min?: RevenueCatWebhookEventMinOrderByAggregateInput } export type RevenueCatWebhookEventScalarWhereWithAggregatesInput = { AND?: RevenueCatWebhookEventScalarWhereWithAggregatesInput | RevenueCatWebhookEventScalarWhereWithAggregatesInput[] OR?: RevenueCatWebhookEventScalarWhereWithAggregatesInput[] NOT?: RevenueCatWebhookEventScalarWhereWithAggregatesInput | RevenueCatWebhookEventScalarWhereWithAggregatesInput[] id?: StringWithAggregatesFilter<"RevenueCatWebhookEvent"> | string type?: StringWithAggregatesFilter<"RevenueCatWebhookEvent"> | string created_at?: DateTimeWithAggregatesFilter<"RevenueCatWebhookEvent"> | Date | string } export type UserFeatureTourWhereInput = { AND?: UserFeatureTourWhereInput | UserFeatureTourWhereInput[] OR?: UserFeatureTourWhereInput[] NOT?: UserFeatureTourWhereInput | UserFeatureTourWhereInput[] user_id?: StringFilter<"UserFeatureTour"> | string tour_id?: StringFilter<"UserFeatureTour"> | string shown_at?: DateTimeFilter<"UserFeatureTour"> | Date | string completed_at?: DateTimeNullableFilter<"UserFeatureTour"> | Date | string | null dismissed_at?: DateTimeNullableFilter<"UserFeatureTour"> | Date | string | null last_step?: IntNullableFilter<"UserFeatureTour"> | number | null user?: XOR } export type UserFeatureTourOrderByWithRelationInput = { user_id?: SortOrder tour_id?: SortOrder shown_at?: SortOrder completed_at?: SortOrderInput | SortOrder dismissed_at?: SortOrderInput | SortOrder last_step?: SortOrderInput | SortOrder user?: UserOrderByWithRelationInput } export type UserFeatureTourWhereUniqueInput = Prisma.AtLeast<{ user_id_tour_id?: UserFeatureTourUser_idTour_idCompoundUniqueInput AND?: UserFeatureTourWhereInput | UserFeatureTourWhereInput[] OR?: UserFeatureTourWhereInput[] NOT?: UserFeatureTourWhereInput | UserFeatureTourWhereInput[] user_id?: StringFilter<"UserFeatureTour"> | string tour_id?: StringFilter<"UserFeatureTour"> | string shown_at?: DateTimeFilter<"UserFeatureTour"> | Date | string completed_at?: DateTimeNullableFilter<"UserFeatureTour"> | Date | string | null dismissed_at?: DateTimeNullableFilter<"UserFeatureTour"> | Date | string | null last_step?: IntNullableFilter<"UserFeatureTour"> | number | null user?: XOR }, "user_id_tour_id"> export type UserFeatureTourOrderByWithAggregationInput = { user_id?: SortOrder tour_id?: SortOrder shown_at?: SortOrder completed_at?: SortOrderInput | SortOrder dismissed_at?: SortOrderInput | SortOrder last_step?: SortOrderInput | SortOrder _count?: UserFeatureTourCountOrderByAggregateInput _avg?: UserFeatureTourAvgOrderByAggregateInput _max?: UserFeatureTourMaxOrderByAggregateInput _min?: UserFeatureTourMinOrderByAggregateInput _sum?: UserFeatureTourSumOrderByAggregateInput } export type UserFeatureTourScalarWhereWithAggregatesInput = { AND?: UserFeatureTourScalarWhereWithAggregatesInput | UserFeatureTourScalarWhereWithAggregatesInput[] OR?: UserFeatureTourScalarWhereWithAggregatesInput[] NOT?: UserFeatureTourScalarWhereWithAggregatesInput | UserFeatureTourScalarWhereWithAggregatesInput[] user_id?: StringWithAggregatesFilter<"UserFeatureTour"> | string tour_id?: StringWithAggregatesFilter<"UserFeatureTour"> | string shown_at?: DateTimeWithAggregatesFilter<"UserFeatureTour"> | Date | string completed_at?: DateTimeNullableWithAggregatesFilter<"UserFeatureTour"> | Date | string | null dismissed_at?: DateTimeNullableWithAggregatesFilter<"UserFeatureTour"> | Date | string | null last_step?: IntNullableWithAggregatesFilter<"UserFeatureTour"> | number | null } export type ServiceStatusCreateInput = { id: string name: string status: string headline: string description: string updatedAt?: Date | string } export type ServiceStatusUncheckedCreateInput = { id: string name: string status: string headline: string description: string updatedAt?: Date | string } export type ServiceStatusUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string headline?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceStatusUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string headline?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceStatusCreateManyInput = { id: string name: string status: string headline: string description: string updatedAt?: Date | string } export type ServiceStatusUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string headline?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ServiceStatusUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string headline?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AnnouncementCreateInput = { id?: string title: string description: string href: string action: string isPublished?: boolean publishedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type AnnouncementUncheckedCreateInput = { id?: string title: string description: string href: string action: string isPublished?: boolean publishedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type AnnouncementUpdateInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string href?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string isPublished?: BoolFieldUpdateOperationsInput | boolean publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AnnouncementUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string href?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string isPublished?: BoolFieldUpdateOperationsInput | boolean publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AnnouncementCreateManyInput = { id?: string title: string description: string href: string action: string isPublished?: boolean publishedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type AnnouncementUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string href?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string isPublished?: BoolFieldUpdateOperationsInput | boolean publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AnnouncementUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string href?: StringFieldUpdateOperationsInput | string action?: StringFieldUpdateOperationsInput | string isPublished?: BoolFieldUpdateOperationsInput | boolean publishedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailDeliveryCreateInput = { message_id: string recipient: string subject: string region: string sent_at?: Date | string } export type EmailDeliveryUncheckedCreateInput = { message_id: string recipient: string subject: string region: string sent_at?: Date | string } export type EmailDeliveryUpdateInput = { message_id?: StringFieldUpdateOperationsInput | string recipient?: StringFieldUpdateOperationsInput | string subject?: StringFieldUpdateOperationsInput | string region?: StringFieldUpdateOperationsInput | string sent_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailDeliveryUncheckedUpdateInput = { message_id?: StringFieldUpdateOperationsInput | string recipient?: StringFieldUpdateOperationsInput | string subject?: StringFieldUpdateOperationsInput | string region?: StringFieldUpdateOperationsInput | string sent_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailDeliveryCreateManyInput = { message_id: string recipient: string subject: string region: string sent_at?: Date | string } export type EmailDeliveryUpdateManyMutationInput = { message_id?: StringFieldUpdateOperationsInput | string recipient?: StringFieldUpdateOperationsInput | string subject?: StringFieldUpdateOperationsInput | string region?: StringFieldUpdateOperationsInput | string sent_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type EmailDeliveryUncheckedUpdateManyInput = { message_id?: StringFieldUpdateOperationsInput | string recipient?: StringFieldUpdateOperationsInput | string subject?: StringFieldUpdateOperationsInput | string region?: StringFieldUpdateOperationsInput | string sent_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserCreateInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null } export type UserUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null } export type UserUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null } export type UserAcquisitionCreateInput = { utm_source?: string | null utm_medium?: string | null utm_campaign?: string | null utm_content?: string | null utm_term?: string | null ref?: string | null referrer_host?: string | null landing_path?: string | null first_seen_at?: Date | string | null first_clip_exported_at?: Date | string | null created_at?: Date | string user: UserCreateNestedOneWithoutAcquisitionInput } export type UserAcquisitionUncheckedCreateInput = { user_id: string utm_source?: string | null utm_medium?: string | null utm_campaign?: string | null utm_content?: string | null utm_term?: string | null ref?: string | null referrer_host?: string | null landing_path?: string | null first_seen_at?: Date | string | null first_clip_exported_at?: Date | string | null created_at?: Date | string } export type UserAcquisitionUpdateInput = { utm_source?: NullableStringFieldUpdateOperationsInput | string | null utm_medium?: NullableStringFieldUpdateOperationsInput | string | null utm_campaign?: NullableStringFieldUpdateOperationsInput | string | null utm_content?: NullableStringFieldUpdateOperationsInput | string | null utm_term?: NullableStringFieldUpdateOperationsInput | string | null ref?: NullableStringFieldUpdateOperationsInput | string | null referrer_host?: NullableStringFieldUpdateOperationsInput | string | null landing_path?: NullableStringFieldUpdateOperationsInput | string | null first_seen_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null first_clip_exported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutAcquisitionNestedInput } export type UserAcquisitionUncheckedUpdateInput = { user_id?: StringFieldUpdateOperationsInput | string utm_source?: NullableStringFieldUpdateOperationsInput | string | null utm_medium?: NullableStringFieldUpdateOperationsInput | string | null utm_campaign?: NullableStringFieldUpdateOperationsInput | string | null utm_content?: NullableStringFieldUpdateOperationsInput | string | null utm_term?: NullableStringFieldUpdateOperationsInput | string | null ref?: NullableStringFieldUpdateOperationsInput | string | null referrer_host?: NullableStringFieldUpdateOperationsInput | string | null landing_path?: NullableStringFieldUpdateOperationsInput | string | null first_seen_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null first_clip_exported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserAcquisitionCreateManyInput = { user_id: string utm_source?: string | null utm_medium?: string | null utm_campaign?: string | null utm_content?: string | null utm_term?: string | null ref?: string | null referrer_host?: string | null landing_path?: string | null first_seen_at?: Date | string | null first_clip_exported_at?: Date | string | null created_at?: Date | string } export type UserAcquisitionUpdateManyMutationInput = { utm_source?: NullableStringFieldUpdateOperationsInput | string | null utm_medium?: NullableStringFieldUpdateOperationsInput | string | null utm_campaign?: NullableStringFieldUpdateOperationsInput | string | null utm_content?: NullableStringFieldUpdateOperationsInput | string | null utm_term?: NullableStringFieldUpdateOperationsInput | string | null ref?: NullableStringFieldUpdateOperationsInput | string | null referrer_host?: NullableStringFieldUpdateOperationsInput | string | null landing_path?: NullableStringFieldUpdateOperationsInput | string | null first_seen_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null first_clip_exported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserAcquisitionUncheckedUpdateManyInput = { user_id?: StringFieldUpdateOperationsInput | string utm_source?: NullableStringFieldUpdateOperationsInput | string | null utm_medium?: NullableStringFieldUpdateOperationsInput | string | null utm_campaign?: NullableStringFieldUpdateOperationsInput | string | null utm_content?: NullableStringFieldUpdateOperationsInput | string | null utm_term?: NullableStringFieldUpdateOperationsInput | string | null ref?: NullableStringFieldUpdateOperationsInput | string | null referrer_host?: NullableStringFieldUpdateOperationsInput | string | null landing_path?: NullableStringFieldUpdateOperationsInput | string | null first_seen_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null first_clip_exported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateCreateInput = { id?: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null created_at?: Date | string updated_at?: Date | string user: UserCreateNestedOneWithoutAffiliateInput reviewer?: UserCreateNestedOneWithoutReviewed_affiliatesInput } export type AffiliateUncheckedCreateInput = { id?: string user_id: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null reviewed_by?: string | null created_at?: Date | string updated_at?: Date | string } export type AffiliateUpdateInput = { id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutAffiliateNestedInput reviewer?: UserUpdateOneWithoutReviewed_affiliatesNestedInput } export type AffiliateUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null reviewed_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateCreateManyInput = { id?: string user_id: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null reviewed_by?: string | null created_at?: Date | string updated_at?: Date | string } export type AffiliateUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null reviewed_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type FeatureFlagCreateInput = { key: string description?: string web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean created_at?: Date | string updated_at?: Date | string updated_by_user?: UserCreateNestedOneWithoutFeature_flags_updatedInput } export type FeatureFlagUncheckedCreateInput = { key: string description?: string web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean updated_by?: string | null created_at?: Date | string updated_at?: Date | string } export type FeatureFlagUpdateInput = { key?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string web_enabled?: BoolFieldUpdateOperationsInput | boolean ios_enabled?: BoolFieldUpdateOperationsInput | boolean admins_bypass?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_by_user?: UserUpdateOneWithoutFeature_flags_updatedNestedInput } export type FeatureFlagUncheckedUpdateInput = { key?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string web_enabled?: BoolFieldUpdateOperationsInput | boolean ios_enabled?: BoolFieldUpdateOperationsInput | boolean admins_bypass?: BoolFieldUpdateOperationsInput | boolean updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type FeatureFlagCreateManyInput = { key: string description?: string web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean updated_by?: string | null created_at?: Date | string updated_at?: Date | string } export type FeatureFlagUpdateManyMutationInput = { key?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string web_enabled?: BoolFieldUpdateOperationsInput | boolean ios_enabled?: BoolFieldUpdateOperationsInput | boolean admins_bypass?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type FeatureFlagUncheckedUpdateManyInput = { key?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string web_enabled?: BoolFieldUpdateOperationsInput | boolean ios_enabled?: BoolFieldUpdateOperationsInput | boolean admins_bypass?: BoolFieldUpdateOperationsInput | boolean updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingCreateInput = { setting_key: string encrypted_value: string prefer_admin_value?: boolean created_at?: Date | string updated_at?: Date | string user?: UserCreateNestedOneWithoutApp_settingsInput } export type AppSettingUncheckedCreateInput = { setting_key: string encrypted_value: string prefer_admin_value?: boolean updated_by?: string | null created_at?: Date | string updated_at?: Date | string } export type AppSettingUpdateInput = { setting_key?: StringFieldUpdateOperationsInput | string encrypted_value?: StringFieldUpdateOperationsInput | string prefer_admin_value?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneWithoutApp_settingsNestedInput } export type AppSettingUncheckedUpdateInput = { setting_key?: StringFieldUpdateOperationsInput | string encrypted_value?: StringFieldUpdateOperationsInput | string prefer_admin_value?: BoolFieldUpdateOperationsInput | boolean updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingCreateManyInput = { setting_key: string encrypted_value: string prefer_admin_value?: boolean updated_by?: string | null created_at?: Date | string updated_at?: Date | string } export type AppSettingUpdateManyMutationInput = { setting_key?: StringFieldUpdateOperationsInput | string encrypted_value?: StringFieldUpdateOperationsInput | string prefer_admin_value?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingUncheckedUpdateManyInput = { setting_key?: StringFieldUpdateOperationsInput | string encrypted_value?: StringFieldUpdateOperationsInput | string prefer_admin_value?: BoolFieldUpdateOperationsInput | boolean updated_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type MinuteUsageEventCreateInput = { id: string user_id: string task_id?: string | null minutes: number source_duration_seconds: number created_at?: Date | string refunded_at?: Date | string | null } export type MinuteUsageEventUncheckedCreateInput = { id: string user_id: string task_id?: string | null minutes: number source_duration_seconds: number created_at?: Date | string refunded_at?: Date | string | null } export type MinuteUsageEventUpdateInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null minutes?: IntFieldUpdateOperationsInput | number source_duration_seconds?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type MinuteUsageEventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null minutes?: IntFieldUpdateOperationsInput | number source_duration_seconds?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type MinuteUsageEventCreateManyInput = { id: string user_id: string task_id?: string | null minutes: number source_duration_seconds: number created_at?: Date | string refunded_at?: Date | string | null } export type MinuteUsageEventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null minutes?: IntFieldUpdateOperationsInput | number source_duration_seconds?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type MinuteUsageEventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null minutes?: IntFieldUpdateOperationsInput | number source_duration_seconds?: IntFieldUpdateOperationsInput | number created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AIEditUsageEventCreateInput = { job_id: string user_id: string created_at?: Date | string refunded_at?: Date | string | null } export type AIEditUsageEventUncheckedCreateInput = { job_id: string user_id: string created_at?: Date | string refunded_at?: Date | string | null } export type AIEditUsageEventUpdateInput = { job_id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AIEditUsageEventUncheckedUpdateInput = { job_id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AIEditUsageEventCreateManyInput = { job_id: string user_id: string created_at?: Date | string refunded_at?: Date | string | null } export type AIEditUsageEventUpdateManyMutationInput = { job_id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type AIEditUsageEventUncheckedUpdateManyInput = { job_id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string refunded_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TaskCreateInput = { id?: string generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string user: UserCreateNestedOneWithoutTasksInput source?: SourceCreateNestedOneWithoutTasksInput social_posts?: SocialPostCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateInput = { id?: string user_id: string source_id?: string | null generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string social_posts?: SocialPostUncheckedCreateNestedManyWithoutTaskInput } export type TaskUpdateInput = { id?: StringFieldUpdateOperationsInput | string generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutTasksNestedInput source?: SourceUpdateOneWithoutTasksNestedInput social_posts?: SocialPostUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string source_id?: NullableStringFieldUpdateOperationsInput | string | null generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string social_posts?: SocialPostUncheckedUpdateManyWithoutTaskNestedInput } export type TaskCreateManyInput = { id?: string user_id: string source_id?: string | null generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string } export type TaskUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type TaskUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string source_id?: NullableStringFieldUpdateOperationsInput | string | null generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialAccountCreateInput = { id?: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null user: UserCreateNestedOneWithoutSocial_accountsInput posts?: SocialPostCreateNestedManyWithoutSocial_accountInput } export type SocialAccountUncheckedCreateInput = { id?: string user_id: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null posts?: SocialPostUncheckedCreateNestedManyWithoutSocial_accountInput } export type SocialAccountUpdateInput = { id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutSocial_accountsNestedInput posts?: SocialPostUpdateManyWithoutSocial_accountNestedInput } export type SocialAccountUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null posts?: SocialPostUncheckedUpdateManyWithoutSocial_accountNestedInput } export type SocialAccountCreateManyInput = { id?: string user_id: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null } export type SocialAccountUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialAccountUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialOauthStateCreateInput = { state: string provider: string code_verifier?: string | null redirect_uri: string created_at?: Date | string | null expires_at: Date | string user: UserCreateNestedOneWithoutSocial_oauth_statesInput } export type SocialOauthStateUncheckedCreateInput = { state: string user_id: string provider: string code_verifier?: string | null redirect_uri: string created_at?: Date | string | null expires_at: Date | string } export type SocialOauthStateUpdateInput = { state?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string code_verifier?: NullableStringFieldUpdateOperationsInput | string | null redirect_uri?: StringFieldUpdateOperationsInput | string created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutSocial_oauth_statesNestedInput } export type SocialOauthStateUncheckedUpdateInput = { state?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string code_verifier?: NullableStringFieldUpdateOperationsInput | string | null redirect_uri?: StringFieldUpdateOperationsInput | string created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialOauthStateCreateManyInput = { state: string user_id: string provider: string code_verifier?: string | null redirect_uri: string created_at?: Date | string | null expires_at: Date | string } export type SocialOauthStateUpdateManyMutationInput = { state?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string code_verifier?: NullableStringFieldUpdateOperationsInput | string | null redirect_uri?: StringFieldUpdateOperationsInput | string created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialOauthStateUncheckedUpdateManyInput = { state?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string code_verifier?: NullableStringFieldUpdateOperationsInput | string | null redirect_uri?: StringFieldUpdateOperationsInput | string created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialPostCreateInput = { id?: string clip_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null user: UserCreateNestedOneWithoutSocial_postsInput task?: TaskCreateNestedOneWithoutSocial_postsInput social_account?: SocialAccountCreateNestedOneWithoutPostsInput metric_history?: SocialPostMetricCreateNestedManyWithoutPostInput } export type SocialPostUncheckedCreateInput = { id?: string user_id: string task_id?: string | null clip_id?: string | null social_account_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null metric_history?: SocialPostMetricUncheckedCreateNestedManyWithoutPostInput } export type SocialPostUpdateInput = { id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutSocial_postsNestedInput task?: TaskUpdateOneWithoutSocial_postsNestedInput social_account?: SocialAccountUpdateOneWithoutPostsNestedInput metric_history?: SocialPostMetricUpdateManyWithoutPostNestedInput } export type SocialPostUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null clip_id?: NullableStringFieldUpdateOperationsInput | string | null social_account_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metric_history?: SocialPostMetricUncheckedUpdateManyWithoutPostNestedInput } export type SocialPostCreateManyInput = { id?: string user_id: string task_id?: string | null clip_id?: string | null social_account_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type SocialPostUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialPostUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null clip_id?: NullableStringFieldUpdateOperationsInput | string | null social_account_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialPostMetricCreateInput = { id?: string captured_at?: Date | string | null views?: bigint | number | null likes?: bigint | number | null comments?: bigint | number | null shares?: bigint | number | null saves?: bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue post: SocialPostCreateNestedOneWithoutMetric_historyInput } export type SocialPostMetricUncheckedCreateInput = { id?: string post_id: string captured_at?: Date | string | null views?: bigint | number | null likes?: bigint | number | null comments?: bigint | number | null shares?: bigint | number | null saves?: bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricUpdateInput = { id?: StringFieldUpdateOperationsInput | string captured_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null views?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null likes?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null comments?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null shares?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null saves?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue post?: SocialPostUpdateOneRequiredWithoutMetric_historyNestedInput } export type SocialPostMetricUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string post_id?: StringFieldUpdateOperationsInput | string captured_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null views?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null likes?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null comments?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null shares?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null saves?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricCreateManyInput = { id?: string post_id: string captured_at?: Date | string | null views?: bigint | number | null likes?: bigint | number | null comments?: bigint | number | null shares?: bigint | number | null saves?: bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string captured_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null views?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null likes?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null comments?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null shares?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null saves?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string post_id?: StringFieldUpdateOperationsInput | string captured_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null views?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null likes?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null comments?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null shares?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null saves?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SourceCreateInput = { id?: string type: string title: string url?: string | null created_at?: Date | string updated_at?: Date | string tasks?: TaskCreateNestedManyWithoutSourceInput } export type SourceUncheckedCreateInput = { id?: string type: string title: string url?: string | null created_at?: Date | string updated_at?: Date | string tasks?: TaskUncheckedCreateNestedManyWithoutSourceInput } export type SourceUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string url?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks?: TaskUpdateManyWithoutSourceNestedInput } export type SourceUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string url?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string tasks?: TaskUncheckedUpdateManyWithoutSourceNestedInput } export type SourceCreateManyInput = { id?: string type: string title: string url?: string | null created_at?: Date | string updated_at?: Date | string } export type SourceUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string url?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SourceUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string url?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCreateInput = { id: string expiresAt: Date | string token: string createdAt: Date | string updatedAt: Date | string ipAddress?: string | null userAgent?: string | null user: UserCreateNestedOneWithoutSessionsInput } export type SessionUncheckedCreateInput = { id: string expiresAt: Date | string token: string createdAt: Date | string updatedAt: Date | string ipAddress?: string | null userAgent?: string | null userId: string } export type SessionUpdateInput = { id?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null user?: UserUpdateOneRequiredWithoutSessionsNestedInput } export type SessionUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null userId?: StringFieldUpdateOperationsInput | string } export type SessionCreateManyInput = { id: string expiresAt: Date | string token: string createdAt: Date | string updatedAt: Date | string ipAddress?: string | null userAgent?: string | null userId: string } export type SessionUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null } export type SessionUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null userId?: StringFieldUpdateOperationsInput | string } export type AccountCreateInput = { id: string accountId: string providerId: string accessToken?: string | null refreshToken?: string | null idToken?: string | null accessTokenExpiresAt?: Date | string | null refreshTokenExpiresAt?: Date | string | null scope?: string | null password?: string | null createdAt: Date | string updatedAt: Date | string user: UserCreateNestedOneWithoutAccountsInput } export type AccountUncheckedCreateInput = { id: string accountId: string providerId: string userId: string accessToken?: string | null refreshToken?: string | null idToken?: string | null accessTokenExpiresAt?: Date | string | null refreshTokenExpiresAt?: Date | string | null scope?: string | null password?: string | null createdAt: Date | string updatedAt: Date | string } export type AccountUpdateInput = { id?: StringFieldUpdateOperationsInput | string accountId?: StringFieldUpdateOperationsInput | string providerId?: StringFieldUpdateOperationsInput | string accessToken?: NullableStringFieldUpdateOperationsInput | string | null refreshToken?: NullableStringFieldUpdateOperationsInput | string | null idToken?: NullableStringFieldUpdateOperationsInput | string | null accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null password?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutAccountsNestedInput } export type AccountUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string accountId?: StringFieldUpdateOperationsInput | string providerId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string accessToken?: NullableStringFieldUpdateOperationsInput | string | null refreshToken?: NullableStringFieldUpdateOperationsInput | string | null idToken?: NullableStringFieldUpdateOperationsInput | string | null accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null password?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AccountCreateManyInput = { id: string accountId: string providerId: string userId: string accessToken?: string | null refreshToken?: string | null idToken?: string | null accessTokenExpiresAt?: Date | string | null refreshTokenExpiresAt?: Date | string | null scope?: string | null password?: string | null createdAt: Date | string updatedAt: Date | string } export type AccountUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string accountId?: StringFieldUpdateOperationsInput | string providerId?: StringFieldUpdateOperationsInput | string accessToken?: NullableStringFieldUpdateOperationsInput | string | null refreshToken?: NullableStringFieldUpdateOperationsInput | string | null idToken?: NullableStringFieldUpdateOperationsInput | string | null accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null password?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AccountUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string accountId?: StringFieldUpdateOperationsInput | string providerId?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string accessToken?: NullableStringFieldUpdateOperationsInput | string | null refreshToken?: NullableStringFieldUpdateOperationsInput | string | null idToken?: NullableStringFieldUpdateOperationsInput | string | null accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null password?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type VerificationCreateInput = { id: string identifier: string value: string expiresAt: Date | string createdAt?: Date | string | null updatedAt?: Date | string | null } export type VerificationUncheckedCreateInput = { id: string identifier: string value: string expiresAt: Date | string createdAt?: Date | string | null updatedAt?: Date | string | null } export type VerificationUpdateInput = { id?: StringFieldUpdateOperationsInput | string identifier?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type VerificationUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string identifier?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type VerificationCreateManyInput = { id: string identifier: string value: string expiresAt: Date | string createdAt?: Date | string | null updatedAt?: Date | string | null } export type VerificationUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string identifier?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type VerificationUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string identifier?: StringFieldUpdateOperationsInput | string value?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updatedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type StripeWebhookEventCreateInput = { id: string type: string created_at?: Date | string } export type StripeWebhookEventUncheckedCreateInput = { id: string type: string created_at?: Date | string } export type StripeWebhookEventUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type StripeWebhookEventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type StripeWebhookEventCreateManyInput = { id: string type: string created_at?: Date | string } export type StripeWebhookEventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type StripeWebhookEventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type RevenueCatWebhookEventCreateInput = { id: string type: string created_at?: Date | string } export type RevenueCatWebhookEventUncheckedCreateInput = { id: string type: string created_at?: Date | string } export type RevenueCatWebhookEventUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type RevenueCatWebhookEventUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type RevenueCatWebhookEventCreateManyInput = { id: string type: string created_at?: Date | string } export type RevenueCatWebhookEventUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type RevenueCatWebhookEventUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserFeatureTourCreateInput = { tour_id: string shown_at?: Date | string completed_at?: Date | string | null dismissed_at?: Date | string | null last_step?: number | null user: UserCreateNestedOneWithoutFeature_toursInput } export type UserFeatureTourUncheckedCreateInput = { user_id: string tour_id: string shown_at?: Date | string completed_at?: Date | string | null dismissed_at?: Date | string | null last_step?: number | null } export type UserFeatureTourUpdateInput = { tour_id?: StringFieldUpdateOperationsInput | string shown_at?: DateTimeFieldUpdateOperationsInput | Date | string completed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null dismissed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_step?: NullableIntFieldUpdateOperationsInput | number | null user?: UserUpdateOneRequiredWithoutFeature_toursNestedInput } export type UserFeatureTourUncheckedUpdateInput = { user_id?: StringFieldUpdateOperationsInput | string tour_id?: StringFieldUpdateOperationsInput | string shown_at?: DateTimeFieldUpdateOperationsInput | Date | string completed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null dismissed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_step?: NullableIntFieldUpdateOperationsInput | number | null } export type UserFeatureTourCreateManyInput = { user_id: string tour_id: string shown_at?: Date | string completed_at?: Date | string | null dismissed_at?: Date | string | null last_step?: number | null } export type UserFeatureTourUpdateManyMutationInput = { tour_id?: StringFieldUpdateOperationsInput | string shown_at?: DateTimeFieldUpdateOperationsInput | Date | string completed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null dismissed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_step?: NullableIntFieldUpdateOperationsInput | number | null } export type UserFeatureTourUncheckedUpdateManyInput = { user_id?: StringFieldUpdateOperationsInput | string tour_id?: StringFieldUpdateOperationsInput | string shown_at?: DateTimeFieldUpdateOperationsInput | Date | string completed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null dismissed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_step?: NullableIntFieldUpdateOperationsInput | number | null } 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 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 ServiceStatusCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder status?: SortOrder headline?: SortOrder description?: SortOrder updatedAt?: SortOrder } export type ServiceStatusMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder status?: SortOrder headline?: SortOrder description?: SortOrder updatedAt?: SortOrder } export type ServiceStatusMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder status?: SortOrder headline?: SortOrder description?: SortOrder updatedAt?: 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 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 BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type AnnouncementCountOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder href?: SortOrder action?: SortOrder isPublished?: SortOrder publishedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AnnouncementMaxOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder href?: SortOrder action?: SortOrder isPublished?: SortOrder publishedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AnnouncementMinOrderByAggregateInput = { id?: SortOrder title?: SortOrder description?: SortOrder href?: SortOrder action?: SortOrder isPublished?: SortOrder publishedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } export type EmailDeliveryCountOrderByAggregateInput = { message_id?: SortOrder recipient?: SortOrder subject?: SortOrder region?: SortOrder sent_at?: SortOrder } export type EmailDeliveryMaxOrderByAggregateInput = { message_id?: SortOrder recipient?: SortOrder subject?: SortOrder region?: SortOrder sent_at?: SortOrder } export type EmailDeliveryMinOrderByAggregateInput = { message_id?: SortOrder recipient?: SortOrder subject?: SortOrder region?: SortOrder sent_at?: SortOrder } 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 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 JsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type 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 TaskListRelationFilter = { every?: TaskWhereInput some?: TaskWhereInput none?: TaskWhereInput } export type SessionListRelationFilter = { every?: SessionWhereInput some?: SessionWhereInput none?: SessionWhereInput } export type AccountListRelationFilter = { every?: AccountWhereInput some?: AccountWhereInput none?: AccountWhereInput } export type AppSettingListRelationFilter = { every?: AppSettingWhereInput some?: AppSettingWhereInput none?: AppSettingWhereInput } export type FeatureFlagListRelationFilter = { every?: FeatureFlagWhereInput some?: FeatureFlagWhereInput none?: FeatureFlagWhereInput } export type UserAcquisitionNullableScalarRelationFilter = { is?: UserAcquisitionWhereInput | null isNot?: UserAcquisitionWhereInput | null } export type AffiliateNullableScalarRelationFilter = { is?: AffiliateWhereInput | null isNot?: AffiliateWhereInput | null } export type AffiliateListRelationFilter = { every?: AffiliateWhereInput some?: AffiliateWhereInput none?: AffiliateWhereInput } export type SocialAccountListRelationFilter = { every?: SocialAccountWhereInput some?: SocialAccountWhereInput none?: SocialAccountWhereInput } export type SocialOauthStateListRelationFilter = { every?: SocialOauthStateWhereInput some?: SocialOauthStateWhereInput none?: SocialOauthStateWhereInput } export type SocialPostListRelationFilter = { every?: SocialPostWhereInput some?: SocialPostWhereInput none?: SocialPostWhereInput } export type UserFeatureTourListRelationFilter = { every?: UserFeatureTourWhereInput some?: UserFeatureTourWhereInput none?: UserFeatureTourWhereInput } export type SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type TaskOrderByRelationAggregateInput = { _count?: SortOrder } export type SessionOrderByRelationAggregateInput = { _count?: SortOrder } export type AccountOrderByRelationAggregateInput = { _count?: SortOrder } export type AppSettingOrderByRelationAggregateInput = { _count?: SortOrder } export type FeatureFlagOrderByRelationAggregateInput = { _count?: SortOrder } export type AffiliateOrderByRelationAggregateInput = { _count?: SortOrder } export type SocialAccountOrderByRelationAggregateInput = { _count?: SortOrder } export type SocialOauthStateOrderByRelationAggregateInput = { _count?: SortOrder } export type SocialPostOrderByRelationAggregateInput = { _count?: SortOrder } export type UserFeatureTourOrderByRelationAggregateInput = { _count?: SortOrder } export type UserCountOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder first_name?: SortOrder last_name?: SortOrder password_hash?: SortOrder default_font_family?: SortOrder default_font_size?: SortOrder default_font_color?: SortOrder notify_on_completion?: SortOrder default_clip_length?: SortOrder create_settings?: SortOrder product_updates_unsubscribed_at?: SortOrder plan?: SortOrder subscription_status?: SortOrder subscription_provider?: SortOrder is_admin?: SortOrder stripe_customer_id?: SortOrder stripe_subscription_id?: SortOrder billing_period_start?: SortOrder billing_period_end?: SortOrder trial_ends_at?: SortOrder subscription_cancel_at?: SortOrder legacy_hd?: SortOrder pending_plan?: SortOrder pending_plan_invoice_id?: SortOrder } export type UserAvgOrderByAggregateInput = { default_font_size?: SortOrder } export type UserMaxOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder first_name?: SortOrder last_name?: SortOrder password_hash?: SortOrder default_font_family?: SortOrder default_font_size?: SortOrder default_font_color?: SortOrder notify_on_completion?: SortOrder default_clip_length?: SortOrder product_updates_unsubscribed_at?: SortOrder plan?: SortOrder subscription_status?: SortOrder subscription_provider?: SortOrder is_admin?: SortOrder stripe_customer_id?: SortOrder stripe_subscription_id?: SortOrder billing_period_start?: SortOrder billing_period_end?: SortOrder trial_ends_at?: SortOrder subscription_cancel_at?: SortOrder legacy_hd?: SortOrder pending_plan?: SortOrder pending_plan_invoice_id?: SortOrder } export type UserMinOrderByAggregateInput = { id?: SortOrder name?: SortOrder email?: SortOrder emailVerified?: SortOrder image?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder first_name?: SortOrder last_name?: SortOrder password_hash?: SortOrder default_font_family?: SortOrder default_font_size?: SortOrder default_font_color?: SortOrder notify_on_completion?: SortOrder default_clip_length?: SortOrder product_updates_unsubscribed_at?: SortOrder plan?: SortOrder subscription_status?: SortOrder subscription_provider?: SortOrder is_admin?: SortOrder stripe_customer_id?: SortOrder stripe_subscription_id?: SortOrder billing_period_start?: SortOrder billing_period_end?: SortOrder trial_ends_at?: SortOrder subscription_cancel_at?: SortOrder legacy_hd?: SortOrder pending_plan?: SortOrder pending_plan_invoice_id?: SortOrder } export type UserSumOrderByAggregateInput = { default_font_size?: SortOrder } 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 JsonWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntFilter<$PrismaModel> _min?: NestedJsonFilter<$PrismaModel> _max?: NestedJsonFilter<$PrismaModel> } export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type UserScalarRelationFilter = { is?: UserWhereInput isNot?: UserWhereInput } export type UserAcquisitionCountOrderByAggregateInput = { user_id?: SortOrder utm_source?: SortOrder utm_medium?: SortOrder utm_campaign?: SortOrder utm_content?: SortOrder utm_term?: SortOrder ref?: SortOrder referrer_host?: SortOrder landing_path?: SortOrder first_seen_at?: SortOrder first_clip_exported_at?: SortOrder created_at?: SortOrder } export type UserAcquisitionMaxOrderByAggregateInput = { user_id?: SortOrder utm_source?: SortOrder utm_medium?: SortOrder utm_campaign?: SortOrder utm_content?: SortOrder utm_term?: SortOrder ref?: SortOrder referrer_host?: SortOrder landing_path?: SortOrder first_seen_at?: SortOrder first_clip_exported_at?: SortOrder created_at?: SortOrder } export type UserAcquisitionMinOrderByAggregateInput = { user_id?: SortOrder utm_source?: SortOrder utm_medium?: SortOrder utm_campaign?: SortOrder utm_content?: SortOrder utm_term?: SortOrder ref?: SortOrder referrer_host?: SortOrder landing_path?: SortOrder first_seen_at?: SortOrder first_clip_exported_at?: SortOrder created_at?: SortOrder } export type UserNullableScalarRelationFilter = { is?: UserWhereInput | null isNot?: UserWhereInput | null } export type AffiliateCountOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder slug?: SortOrder status?: SortOrder platform?: SortOrder profile_url?: SortOrder audience_size?: SortOrder video_url?: SortOrder promotion_plan?: SortOrder decline_reason?: SortOrder stripe_promotion_code_id?: SortOrder app_store_code_added_at?: SortOrder terms_accepted_at?: SortOrder reviewed_at?: SortOrder reviewed_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AffiliateMaxOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder slug?: SortOrder status?: SortOrder platform?: SortOrder profile_url?: SortOrder audience_size?: SortOrder video_url?: SortOrder promotion_plan?: SortOrder decline_reason?: SortOrder stripe_promotion_code_id?: SortOrder app_store_code_added_at?: SortOrder terms_accepted_at?: SortOrder reviewed_at?: SortOrder reviewed_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AffiliateMinOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder slug?: SortOrder status?: SortOrder platform?: SortOrder profile_url?: SortOrder audience_size?: SortOrder video_url?: SortOrder promotion_plan?: SortOrder decline_reason?: SortOrder stripe_promotion_code_id?: SortOrder app_store_code_added_at?: SortOrder terms_accepted_at?: SortOrder reviewed_at?: SortOrder reviewed_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type FeatureFlagCountOrderByAggregateInput = { key?: SortOrder description?: SortOrder web_enabled?: SortOrder ios_enabled?: SortOrder admins_bypass?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type FeatureFlagMaxOrderByAggregateInput = { key?: SortOrder description?: SortOrder web_enabled?: SortOrder ios_enabled?: SortOrder admins_bypass?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type FeatureFlagMinOrderByAggregateInput = { key?: SortOrder description?: SortOrder web_enabled?: SortOrder ios_enabled?: SortOrder admins_bypass?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AppSettingCountOrderByAggregateInput = { setting_key?: SortOrder encrypted_value?: SortOrder prefer_admin_value?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AppSettingMaxOrderByAggregateInput = { setting_key?: SortOrder encrypted_value?: SortOrder prefer_admin_value?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type AppSettingMinOrderByAggregateInput = { setting_key?: SortOrder encrypted_value?: SortOrder prefer_admin_value?: SortOrder updated_by?: SortOrder created_at?: SortOrder updated_at?: SortOrder } 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 MinuteUsageEventCountOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrder minutes?: SortOrder source_duration_seconds?: SortOrder created_at?: SortOrder refunded_at?: SortOrder } export type MinuteUsageEventAvgOrderByAggregateInput = { minutes?: SortOrder source_duration_seconds?: SortOrder } export type MinuteUsageEventMaxOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrder minutes?: SortOrder source_duration_seconds?: SortOrder created_at?: SortOrder refunded_at?: SortOrder } export type MinuteUsageEventMinOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrder minutes?: SortOrder source_duration_seconds?: SortOrder created_at?: SortOrder refunded_at?: SortOrder } export type MinuteUsageEventSumOrderByAggregateInput = { minutes?: SortOrder source_duration_seconds?: SortOrder } export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> in?: number[] | ListIntFieldRefInput<$PrismaModel> notIn?: number[] | ListIntFieldRefInput<$PrismaModel> lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntWithAggregatesFilter<$PrismaModel> | number _count?: NestedIntFilter<$PrismaModel> _avg?: NestedFloatFilter<$PrismaModel> _sum?: NestedIntFilter<$PrismaModel> _min?: NestedIntFilter<$PrismaModel> _max?: NestedIntFilter<$PrismaModel> } export type AIEditUsageEventCountOrderByAggregateInput = { job_id?: SortOrder user_id?: SortOrder created_at?: SortOrder refunded_at?: SortOrder } export type AIEditUsageEventMaxOrderByAggregateInput = { job_id?: SortOrder user_id?: SortOrder created_at?: SortOrder refunded_at?: SortOrder } export type AIEditUsageEventMinOrderByAggregateInput = { job_id?: SortOrder user_id?: SortOrder created_at?: SortOrder refunded_at?: SortOrder } export type StringNullableListFilter<$PrismaModel = never> = { equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null has?: string | StringFieldRefInput<$PrismaModel> | null hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel> hasSome?: string[] | ListStringFieldRefInput<$PrismaModel> isEmpty?: boolean } export type BoolNullableFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null } export type SourceNullableScalarRelationFilter = { is?: SourceWhereInput | null isNot?: SourceWhereInput | null } export type TaskCountOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder source_id?: SortOrder generated_clips_ids?: SortOrder status?: SortOrder progress?: SortOrder progress_message?: SortOrder source_metadata?: SortOrder source_duration_seconds?: SortOrder completion_notification_sent_at?: SortOrder share_token?: SortOrder share_enabled?: SortOrder font_family?: SortOrder font_size?: SortOrder font_color?: SortOrder caption_template?: SortOrder include_broll?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type TaskAvgOrderByAggregateInput = { progress?: SortOrder source_duration_seconds?: SortOrder font_size?: SortOrder } export type TaskMaxOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder source_id?: SortOrder status?: SortOrder progress?: SortOrder progress_message?: SortOrder source_duration_seconds?: SortOrder completion_notification_sent_at?: SortOrder share_token?: SortOrder share_enabled?: SortOrder font_family?: SortOrder font_size?: SortOrder font_color?: SortOrder caption_template?: SortOrder include_broll?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type TaskMinOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder source_id?: SortOrder status?: SortOrder progress?: SortOrder progress_message?: SortOrder source_duration_seconds?: SortOrder completion_notification_sent_at?: SortOrder share_token?: SortOrder share_enabled?: SortOrder font_family?: SortOrder font_size?: SortOrder font_color?: SortOrder caption_template?: SortOrder include_broll?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type TaskSumOrderByAggregateInput = { progress?: SortOrder source_duration_seconds?: SortOrder font_size?: SortOrder } export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedBoolNullableFilter<$PrismaModel> _max?: NestedBoolNullableFilter<$PrismaModel> } export type SocialAccountUser_idProviderExternal_account_idCompoundUniqueInput = { user_id: string provider: string external_account_id: string } export type SocialAccountCountOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder provider?: SortOrder external_account_id?: SortOrder display_name?: SortOrder username?: SortOrder avatar_url?: SortOrder access_token_encrypted?: SortOrder refresh_token_encrypted?: SortOrder token_expires_at?: SortOrder scopes?: SortOrder metadata?: SortOrder status?: SortOrder last_error?: SortOrder created_at?: SortOrder updated_at?: SortOrder revoked_at?: SortOrder } export type SocialAccountMaxOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder provider?: SortOrder external_account_id?: SortOrder display_name?: SortOrder username?: SortOrder avatar_url?: SortOrder access_token_encrypted?: SortOrder refresh_token_encrypted?: SortOrder token_expires_at?: SortOrder scopes?: SortOrder status?: SortOrder last_error?: SortOrder created_at?: SortOrder updated_at?: SortOrder revoked_at?: SortOrder } export type SocialAccountMinOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder provider?: SortOrder external_account_id?: SortOrder display_name?: SortOrder username?: SortOrder avatar_url?: SortOrder access_token_encrypted?: SortOrder refresh_token_encrypted?: SortOrder token_expires_at?: SortOrder scopes?: SortOrder status?: SortOrder last_error?: SortOrder created_at?: SortOrder updated_at?: SortOrder revoked_at?: SortOrder } export type SocialOauthStateCountOrderByAggregateInput = { state?: SortOrder user_id?: SortOrder provider?: SortOrder code_verifier?: SortOrder redirect_uri?: SortOrder created_at?: SortOrder expires_at?: SortOrder } export type SocialOauthStateMaxOrderByAggregateInput = { state?: SortOrder user_id?: SortOrder provider?: SortOrder code_verifier?: SortOrder redirect_uri?: SortOrder created_at?: SortOrder expires_at?: SortOrder } export type SocialOauthStateMinOrderByAggregateInput = { state?: SortOrder user_id?: SortOrder provider?: SortOrder code_verifier?: SortOrder redirect_uri?: SortOrder created_at?: SortOrder expires_at?: SortOrder } 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 JsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type TaskNullableScalarRelationFilter = { is?: TaskWhereInput | null isNot?: TaskWhereInput | null } export type SocialAccountNullableScalarRelationFilter = { is?: SocialAccountWhereInput | null isNot?: SocialAccountWhereInput | null } export type SocialPostMetricListRelationFilter = { every?: SocialPostMetricWhereInput some?: SocialPostMetricWhereInput none?: SocialPostMetricWhereInput } export type SocialPostMetricOrderByRelationAggregateInput = { _count?: SortOrder } export type SocialPostCountOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrder clip_id?: SortOrder social_account_id?: SortOrder provider?: SortOrder status?: SortOrder scheduled_for?: SortOrder title?: SortOrder caption?: SortOrder hashtags?: SortOrder privacy_level?: SortOrder media_token?: SortOrder media_token_expires_at?: SortOrder source_file_path?: SortOrder pending_handle?: SortOrder external_post_id?: SortOrder external_url?: SortOrder error_message?: SortOrder attempts?: SortOrder claimed_at?: SortOrder hook_type?: SortOrder hook_title?: SortOrder virality_score?: SortOrder hook_score?: SortOrder engagement_score?: SortOrder value_score?: SortOrder shareability_score?: SortOrder clip_duration?: SortOrder published_at?: SortOrder last_metrics_at?: SortOrder metrics?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SocialPostAvgOrderByAggregateInput = { attempts?: SortOrder virality_score?: SortOrder hook_score?: SortOrder engagement_score?: SortOrder value_score?: SortOrder shareability_score?: SortOrder clip_duration?: SortOrder } export type SocialPostMaxOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrder clip_id?: SortOrder social_account_id?: SortOrder provider?: SortOrder status?: SortOrder scheduled_for?: SortOrder title?: SortOrder caption?: SortOrder privacy_level?: SortOrder media_token?: SortOrder media_token_expires_at?: SortOrder source_file_path?: SortOrder pending_handle?: SortOrder external_post_id?: SortOrder external_url?: SortOrder error_message?: SortOrder attempts?: SortOrder claimed_at?: SortOrder hook_type?: SortOrder hook_title?: SortOrder virality_score?: SortOrder hook_score?: SortOrder engagement_score?: SortOrder value_score?: SortOrder shareability_score?: SortOrder clip_duration?: SortOrder published_at?: SortOrder last_metrics_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SocialPostMinOrderByAggregateInput = { id?: SortOrder user_id?: SortOrder task_id?: SortOrder clip_id?: SortOrder social_account_id?: SortOrder provider?: SortOrder status?: SortOrder scheduled_for?: SortOrder title?: SortOrder caption?: SortOrder privacy_level?: SortOrder media_token?: SortOrder media_token_expires_at?: SortOrder source_file_path?: SortOrder pending_handle?: SortOrder external_post_id?: SortOrder external_url?: SortOrder error_message?: SortOrder attempts?: SortOrder claimed_at?: SortOrder hook_type?: SortOrder hook_title?: SortOrder virality_score?: SortOrder hook_score?: SortOrder engagement_score?: SortOrder value_score?: SortOrder shareability_score?: SortOrder clip_duration?: SortOrder published_at?: SortOrder last_metrics_at?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SocialPostSumOrderByAggregateInput = { attempts?: SortOrder virality_score?: SortOrder hook_score?: SortOrder engagement_score?: SortOrder value_score?: SortOrder shareability_score?: SortOrder clip_duration?: SortOrder } 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 JsonNullableWithAggregatesFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedJsonNullableFilter<$PrismaModel> _max?: NestedJsonNullableFilter<$PrismaModel> } export type BigIntNullableFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null } export type SocialPostScalarRelationFilter = { is?: SocialPostWhereInput isNot?: SocialPostWhereInput } export type SocialPostMetricCountOrderByAggregateInput = { id?: SortOrder post_id?: SortOrder captured_at?: SortOrder views?: SortOrder likes?: SortOrder comments?: SortOrder shares?: SortOrder saves?: SortOrder raw?: SortOrder } export type SocialPostMetricAvgOrderByAggregateInput = { views?: SortOrder likes?: SortOrder comments?: SortOrder shares?: SortOrder saves?: SortOrder } export type SocialPostMetricMaxOrderByAggregateInput = { id?: SortOrder post_id?: SortOrder captured_at?: SortOrder views?: SortOrder likes?: SortOrder comments?: SortOrder shares?: SortOrder saves?: SortOrder } export type SocialPostMetricMinOrderByAggregateInput = { id?: SortOrder post_id?: SortOrder captured_at?: SortOrder views?: SortOrder likes?: SortOrder comments?: SortOrder shares?: SortOrder saves?: SortOrder } export type SocialPostMetricSumOrderByAggregateInput = { views?: SortOrder likes?: SortOrder comments?: SortOrder shares?: SortOrder saves?: SortOrder } export type BigIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedBigIntNullableFilter<$PrismaModel> _min?: NestedBigIntNullableFilter<$PrismaModel> _max?: NestedBigIntNullableFilter<$PrismaModel> } export type SourceCountOrderByAggregateInput = { id?: SortOrder type?: SortOrder title?: SortOrder url?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SourceMaxOrderByAggregateInput = { id?: SortOrder type?: SortOrder title?: SortOrder url?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SourceMinOrderByAggregateInput = { id?: SortOrder type?: SortOrder title?: SortOrder url?: SortOrder created_at?: SortOrder updated_at?: SortOrder } export type SessionCountOrderByAggregateInput = { id?: SortOrder expiresAt?: SortOrder token?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder ipAddress?: SortOrder userAgent?: SortOrder userId?: SortOrder } export type SessionMaxOrderByAggregateInput = { id?: SortOrder expiresAt?: SortOrder token?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder ipAddress?: SortOrder userAgent?: SortOrder userId?: SortOrder } export type SessionMinOrderByAggregateInput = { id?: SortOrder expiresAt?: SortOrder token?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder ipAddress?: SortOrder userAgent?: SortOrder userId?: SortOrder } export type AccountCountOrderByAggregateInput = { id?: SortOrder accountId?: SortOrder providerId?: SortOrder userId?: SortOrder accessToken?: SortOrder refreshToken?: SortOrder idToken?: SortOrder accessTokenExpiresAt?: SortOrder refreshTokenExpiresAt?: SortOrder scope?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AccountMaxOrderByAggregateInput = { id?: SortOrder accountId?: SortOrder providerId?: SortOrder userId?: SortOrder accessToken?: SortOrder refreshToken?: SortOrder idToken?: SortOrder accessTokenExpiresAt?: SortOrder refreshTokenExpiresAt?: SortOrder scope?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type AccountMinOrderByAggregateInput = { id?: SortOrder accountId?: SortOrder providerId?: SortOrder userId?: SortOrder accessToken?: SortOrder refreshToken?: SortOrder idToken?: SortOrder accessTokenExpiresAt?: SortOrder refreshTokenExpiresAt?: SortOrder scope?: SortOrder password?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type VerificationCountOrderByAggregateInput = { id?: SortOrder identifier?: SortOrder value?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type VerificationMaxOrderByAggregateInput = { id?: SortOrder identifier?: SortOrder value?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type VerificationMinOrderByAggregateInput = { id?: SortOrder identifier?: SortOrder value?: SortOrder expiresAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type StripeWebhookEventCountOrderByAggregateInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type StripeWebhookEventMaxOrderByAggregateInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type StripeWebhookEventMinOrderByAggregateInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type RevenueCatWebhookEventCountOrderByAggregateInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type RevenueCatWebhookEventMaxOrderByAggregateInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type RevenueCatWebhookEventMinOrderByAggregateInput = { id?: SortOrder type?: SortOrder created_at?: SortOrder } export type UserFeatureTourUser_idTour_idCompoundUniqueInput = { user_id: string tour_id: string } export type UserFeatureTourCountOrderByAggregateInput = { user_id?: SortOrder tour_id?: SortOrder shown_at?: SortOrder completed_at?: SortOrder dismissed_at?: SortOrder last_step?: SortOrder } export type UserFeatureTourAvgOrderByAggregateInput = { last_step?: SortOrder } export type UserFeatureTourMaxOrderByAggregateInput = { user_id?: SortOrder tour_id?: SortOrder shown_at?: SortOrder completed_at?: SortOrder dismissed_at?: SortOrder last_step?: SortOrder } export type UserFeatureTourMinOrderByAggregateInput = { user_id?: SortOrder tour_id?: SortOrder shown_at?: SortOrder completed_at?: SortOrder dismissed_at?: SortOrder last_step?: SortOrder } export type UserFeatureTourSumOrderByAggregateInput = { last_step?: SortOrder } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type TaskCreateNestedManyWithoutUserInput = { create?: XOR | TaskCreateWithoutUserInput[] | TaskUncheckedCreateWithoutUserInput[] connectOrCreate?: TaskCreateOrConnectWithoutUserInput | TaskCreateOrConnectWithoutUserInput[] createMany?: TaskCreateManyUserInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type SessionCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type AccountCreateNestedManyWithoutUserInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] createMany?: AccountCreateManyUserInputEnvelope connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] } export type AppSettingCreateNestedManyWithoutUserInput = { create?: XOR | AppSettingCreateWithoutUserInput[] | AppSettingUncheckedCreateWithoutUserInput[] connectOrCreate?: AppSettingCreateOrConnectWithoutUserInput | AppSettingCreateOrConnectWithoutUserInput[] createMany?: AppSettingCreateManyUserInputEnvelope connect?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] } export type FeatureFlagCreateNestedManyWithoutUpdated_by_userInput = { create?: XOR | FeatureFlagCreateWithoutUpdated_by_userInput[] | FeatureFlagUncheckedCreateWithoutUpdated_by_userInput[] connectOrCreate?: FeatureFlagCreateOrConnectWithoutUpdated_by_userInput | FeatureFlagCreateOrConnectWithoutUpdated_by_userInput[] createMany?: FeatureFlagCreateManyUpdated_by_userInputEnvelope connect?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] } export type UserAcquisitionCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: UserAcquisitionCreateOrConnectWithoutUserInput connect?: UserAcquisitionWhereUniqueInput } export type AffiliateCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: AffiliateCreateOrConnectWithoutUserInput connect?: AffiliateWhereUniqueInput } export type AffiliateCreateNestedManyWithoutReviewerInput = { create?: XOR | AffiliateCreateWithoutReviewerInput[] | AffiliateUncheckedCreateWithoutReviewerInput[] connectOrCreate?: AffiliateCreateOrConnectWithoutReviewerInput | AffiliateCreateOrConnectWithoutReviewerInput[] createMany?: AffiliateCreateManyReviewerInputEnvelope connect?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] } export type SocialAccountCreateNestedManyWithoutUserInput = { create?: XOR | SocialAccountCreateWithoutUserInput[] | SocialAccountUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialAccountCreateOrConnectWithoutUserInput | SocialAccountCreateOrConnectWithoutUserInput[] createMany?: SocialAccountCreateManyUserInputEnvelope connect?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] } export type SocialOauthStateCreateNestedManyWithoutUserInput = { create?: XOR | SocialOauthStateCreateWithoutUserInput[] | SocialOauthStateUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialOauthStateCreateOrConnectWithoutUserInput | SocialOauthStateCreateOrConnectWithoutUserInput[] createMany?: SocialOauthStateCreateManyUserInputEnvelope connect?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] } export type SocialPostCreateNestedManyWithoutUserInput = { create?: XOR | SocialPostCreateWithoutUserInput[] | SocialPostUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutUserInput | SocialPostCreateOrConnectWithoutUserInput[] createMany?: SocialPostCreateManyUserInputEnvelope connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] } export type UserFeatureTourCreateNestedManyWithoutUserInput = { create?: XOR | UserFeatureTourCreateWithoutUserInput[] | UserFeatureTourUncheckedCreateWithoutUserInput[] connectOrCreate?: UserFeatureTourCreateOrConnectWithoutUserInput | UserFeatureTourCreateOrConnectWithoutUserInput[] createMany?: UserFeatureTourCreateManyUserInputEnvelope connect?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] } export type TaskUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | TaskCreateWithoutUserInput[] | TaskUncheckedCreateWithoutUserInput[] connectOrCreate?: TaskCreateOrConnectWithoutUserInput | TaskCreateOrConnectWithoutUserInput[] createMany?: TaskCreateManyUserInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type SessionUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[] createMany?: SessionCreateManyUserInputEnvelope connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[] } export type AccountUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] createMany?: AccountCreateManyUserInputEnvelope connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] } export type AppSettingUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | AppSettingCreateWithoutUserInput[] | AppSettingUncheckedCreateWithoutUserInput[] connectOrCreate?: AppSettingCreateOrConnectWithoutUserInput | AppSettingCreateOrConnectWithoutUserInput[] createMany?: AppSettingCreateManyUserInputEnvelope connect?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] } export type FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput = { create?: XOR | FeatureFlagCreateWithoutUpdated_by_userInput[] | FeatureFlagUncheckedCreateWithoutUpdated_by_userInput[] connectOrCreate?: FeatureFlagCreateOrConnectWithoutUpdated_by_userInput | FeatureFlagCreateOrConnectWithoutUpdated_by_userInput[] createMany?: FeatureFlagCreateManyUpdated_by_userInputEnvelope connect?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] } export type UserAcquisitionUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: UserAcquisitionCreateOrConnectWithoutUserInput connect?: UserAcquisitionWhereUniqueInput } export type AffiliateUncheckedCreateNestedOneWithoutUserInput = { create?: XOR connectOrCreate?: AffiliateCreateOrConnectWithoutUserInput connect?: AffiliateWhereUniqueInput } export type AffiliateUncheckedCreateNestedManyWithoutReviewerInput = { create?: XOR | AffiliateCreateWithoutReviewerInput[] | AffiliateUncheckedCreateWithoutReviewerInput[] connectOrCreate?: AffiliateCreateOrConnectWithoutReviewerInput | AffiliateCreateOrConnectWithoutReviewerInput[] createMany?: AffiliateCreateManyReviewerInputEnvelope connect?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] } export type SocialAccountUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | SocialAccountCreateWithoutUserInput[] | SocialAccountUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialAccountCreateOrConnectWithoutUserInput | SocialAccountCreateOrConnectWithoutUserInput[] createMany?: SocialAccountCreateManyUserInputEnvelope connect?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] } export type SocialOauthStateUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | SocialOauthStateCreateWithoutUserInput[] | SocialOauthStateUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialOauthStateCreateOrConnectWithoutUserInput | SocialOauthStateCreateOrConnectWithoutUserInput[] createMany?: SocialOauthStateCreateManyUserInputEnvelope connect?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] } export type SocialPostUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | SocialPostCreateWithoutUserInput[] | SocialPostUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutUserInput | SocialPostCreateOrConnectWithoutUserInput[] createMany?: SocialPostCreateManyUserInputEnvelope connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] } export type UserFeatureTourUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | UserFeatureTourCreateWithoutUserInput[] | UserFeatureTourUncheckedCreateWithoutUserInput[] connectOrCreate?: UserFeatureTourCreateOrConnectWithoutUserInput | UserFeatureTourCreateOrConnectWithoutUserInput[] createMany?: UserFeatureTourCreateManyUserInputEnvelope connect?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type TaskUpdateManyWithoutUserNestedInput = { create?: XOR | TaskCreateWithoutUserInput[] | TaskUncheckedCreateWithoutUserInput[] connectOrCreate?: TaskCreateOrConnectWithoutUserInput | TaskCreateOrConnectWithoutUserInput[] upsert?: TaskUpsertWithWhereUniqueWithoutUserInput | TaskUpsertWithWhereUniqueWithoutUserInput[] createMany?: TaskCreateManyUserInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutUserInput | TaskUpdateWithWhereUniqueWithoutUserInput[] updateMany?: TaskUpdateManyWithWhereWithoutUserInput | TaskUpdateManyWithWhereWithoutUserInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } 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 AccountUpdateManyWithoutUserNestedInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[] createMany?: AccountCreateManyUserInputEnvelope set?: AccountWhereUniqueInput | AccountWhereUniqueInput[] disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[] connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[] deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[] } export type AppSettingUpdateManyWithoutUserNestedInput = { create?: XOR | AppSettingCreateWithoutUserInput[] | AppSettingUncheckedCreateWithoutUserInput[] connectOrCreate?: AppSettingCreateOrConnectWithoutUserInput | AppSettingCreateOrConnectWithoutUserInput[] upsert?: AppSettingUpsertWithWhereUniqueWithoutUserInput | AppSettingUpsertWithWhereUniqueWithoutUserInput[] createMany?: AppSettingCreateManyUserInputEnvelope set?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] disconnect?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] delete?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] connect?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] update?: AppSettingUpdateWithWhereUniqueWithoutUserInput | AppSettingUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AppSettingUpdateManyWithWhereWithoutUserInput | AppSettingUpdateManyWithWhereWithoutUserInput[] deleteMany?: AppSettingScalarWhereInput | AppSettingScalarWhereInput[] } export type FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput = { create?: XOR | FeatureFlagCreateWithoutUpdated_by_userInput[] | FeatureFlagUncheckedCreateWithoutUpdated_by_userInput[] connectOrCreate?: FeatureFlagCreateOrConnectWithoutUpdated_by_userInput | FeatureFlagCreateOrConnectWithoutUpdated_by_userInput[] upsert?: FeatureFlagUpsertWithWhereUniqueWithoutUpdated_by_userInput | FeatureFlagUpsertWithWhereUniqueWithoutUpdated_by_userInput[] createMany?: FeatureFlagCreateManyUpdated_by_userInputEnvelope set?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] disconnect?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] delete?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] connect?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] update?: FeatureFlagUpdateWithWhereUniqueWithoutUpdated_by_userInput | FeatureFlagUpdateWithWhereUniqueWithoutUpdated_by_userInput[] updateMany?: FeatureFlagUpdateManyWithWhereWithoutUpdated_by_userInput | FeatureFlagUpdateManyWithWhereWithoutUpdated_by_userInput[] deleteMany?: FeatureFlagScalarWhereInput | FeatureFlagScalarWhereInput[] } export type UserAcquisitionUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: UserAcquisitionCreateOrConnectWithoutUserInput upsert?: UserAcquisitionUpsertWithoutUserInput disconnect?: UserAcquisitionWhereInput | boolean delete?: UserAcquisitionWhereInput | boolean connect?: UserAcquisitionWhereUniqueInput update?: XOR, UserAcquisitionUncheckedUpdateWithoutUserInput> } export type AffiliateUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: AffiliateCreateOrConnectWithoutUserInput upsert?: AffiliateUpsertWithoutUserInput disconnect?: AffiliateWhereInput | boolean delete?: AffiliateWhereInput | boolean connect?: AffiliateWhereUniqueInput update?: XOR, AffiliateUncheckedUpdateWithoutUserInput> } export type AffiliateUpdateManyWithoutReviewerNestedInput = { create?: XOR | AffiliateCreateWithoutReviewerInput[] | AffiliateUncheckedCreateWithoutReviewerInput[] connectOrCreate?: AffiliateCreateOrConnectWithoutReviewerInput | AffiliateCreateOrConnectWithoutReviewerInput[] upsert?: AffiliateUpsertWithWhereUniqueWithoutReviewerInput | AffiliateUpsertWithWhereUniqueWithoutReviewerInput[] createMany?: AffiliateCreateManyReviewerInputEnvelope set?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] disconnect?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] delete?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] connect?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] update?: AffiliateUpdateWithWhereUniqueWithoutReviewerInput | AffiliateUpdateWithWhereUniqueWithoutReviewerInput[] updateMany?: AffiliateUpdateManyWithWhereWithoutReviewerInput | AffiliateUpdateManyWithWhereWithoutReviewerInput[] deleteMany?: AffiliateScalarWhereInput | AffiliateScalarWhereInput[] } export type SocialAccountUpdateManyWithoutUserNestedInput = { create?: XOR | SocialAccountCreateWithoutUserInput[] | SocialAccountUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialAccountCreateOrConnectWithoutUserInput | SocialAccountCreateOrConnectWithoutUserInput[] upsert?: SocialAccountUpsertWithWhereUniqueWithoutUserInput | SocialAccountUpsertWithWhereUniqueWithoutUserInput[] createMany?: SocialAccountCreateManyUserInputEnvelope set?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] disconnect?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] delete?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] connect?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] update?: SocialAccountUpdateWithWhereUniqueWithoutUserInput | SocialAccountUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SocialAccountUpdateManyWithWhereWithoutUserInput | SocialAccountUpdateManyWithWhereWithoutUserInput[] deleteMany?: SocialAccountScalarWhereInput | SocialAccountScalarWhereInput[] } export type SocialOauthStateUpdateManyWithoutUserNestedInput = { create?: XOR | SocialOauthStateCreateWithoutUserInput[] | SocialOauthStateUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialOauthStateCreateOrConnectWithoutUserInput | SocialOauthStateCreateOrConnectWithoutUserInput[] upsert?: SocialOauthStateUpsertWithWhereUniqueWithoutUserInput | SocialOauthStateUpsertWithWhereUniqueWithoutUserInput[] createMany?: SocialOauthStateCreateManyUserInputEnvelope set?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] disconnect?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] delete?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] connect?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] update?: SocialOauthStateUpdateWithWhereUniqueWithoutUserInput | SocialOauthStateUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SocialOauthStateUpdateManyWithWhereWithoutUserInput | SocialOauthStateUpdateManyWithWhereWithoutUserInput[] deleteMany?: SocialOauthStateScalarWhereInput | SocialOauthStateScalarWhereInput[] } export type SocialPostUpdateManyWithoutUserNestedInput = { create?: XOR | SocialPostCreateWithoutUserInput[] | SocialPostUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutUserInput | SocialPostCreateOrConnectWithoutUserInput[] upsert?: SocialPostUpsertWithWhereUniqueWithoutUserInput | SocialPostUpsertWithWhereUniqueWithoutUserInput[] createMany?: SocialPostCreateManyUserInputEnvelope set?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] disconnect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] delete?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] update?: SocialPostUpdateWithWhereUniqueWithoutUserInput | SocialPostUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SocialPostUpdateManyWithWhereWithoutUserInput | SocialPostUpdateManyWithWhereWithoutUserInput[] deleteMany?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] } export type UserFeatureTourUpdateManyWithoutUserNestedInput = { create?: XOR | UserFeatureTourCreateWithoutUserInput[] | UserFeatureTourUncheckedCreateWithoutUserInput[] connectOrCreate?: UserFeatureTourCreateOrConnectWithoutUserInput | UserFeatureTourCreateOrConnectWithoutUserInput[] upsert?: UserFeatureTourUpsertWithWhereUniqueWithoutUserInput | UserFeatureTourUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserFeatureTourCreateManyUserInputEnvelope set?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] disconnect?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] delete?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] connect?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] update?: UserFeatureTourUpdateWithWhereUniqueWithoutUserInput | UserFeatureTourUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserFeatureTourUpdateManyWithWhereWithoutUserInput | UserFeatureTourUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserFeatureTourScalarWhereInput | UserFeatureTourScalarWhereInput[] } export type TaskUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | TaskCreateWithoutUserInput[] | TaskUncheckedCreateWithoutUserInput[] connectOrCreate?: TaskCreateOrConnectWithoutUserInput | TaskCreateOrConnectWithoutUserInput[] upsert?: TaskUpsertWithWhereUniqueWithoutUserInput | TaskUpsertWithWhereUniqueWithoutUserInput[] createMany?: TaskCreateManyUserInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutUserInput | TaskUpdateWithWhereUniqueWithoutUserInput[] updateMany?: TaskUpdateManyWithWhereWithoutUserInput | TaskUpdateManyWithWhereWithoutUserInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } 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 AccountUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[] connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[] upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[] createMany?: AccountCreateManyUserInputEnvelope set?: AccountWhereUniqueInput | AccountWhereUniqueInput[] disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[] connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[] update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[] deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[] } export type AppSettingUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | AppSettingCreateWithoutUserInput[] | AppSettingUncheckedCreateWithoutUserInput[] connectOrCreate?: AppSettingCreateOrConnectWithoutUserInput | AppSettingCreateOrConnectWithoutUserInput[] upsert?: AppSettingUpsertWithWhereUniqueWithoutUserInput | AppSettingUpsertWithWhereUniqueWithoutUserInput[] createMany?: AppSettingCreateManyUserInputEnvelope set?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] disconnect?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] delete?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] connect?: AppSettingWhereUniqueInput | AppSettingWhereUniqueInput[] update?: AppSettingUpdateWithWhereUniqueWithoutUserInput | AppSettingUpdateWithWhereUniqueWithoutUserInput[] updateMany?: AppSettingUpdateManyWithWhereWithoutUserInput | AppSettingUpdateManyWithWhereWithoutUserInput[] deleteMany?: AppSettingScalarWhereInput | AppSettingScalarWhereInput[] } export type FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput = { create?: XOR | FeatureFlagCreateWithoutUpdated_by_userInput[] | FeatureFlagUncheckedCreateWithoutUpdated_by_userInput[] connectOrCreate?: FeatureFlagCreateOrConnectWithoutUpdated_by_userInput | FeatureFlagCreateOrConnectWithoutUpdated_by_userInput[] upsert?: FeatureFlagUpsertWithWhereUniqueWithoutUpdated_by_userInput | FeatureFlagUpsertWithWhereUniqueWithoutUpdated_by_userInput[] createMany?: FeatureFlagCreateManyUpdated_by_userInputEnvelope set?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] disconnect?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] delete?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] connect?: FeatureFlagWhereUniqueInput | FeatureFlagWhereUniqueInput[] update?: FeatureFlagUpdateWithWhereUniqueWithoutUpdated_by_userInput | FeatureFlagUpdateWithWhereUniqueWithoutUpdated_by_userInput[] updateMany?: FeatureFlagUpdateManyWithWhereWithoutUpdated_by_userInput | FeatureFlagUpdateManyWithWhereWithoutUpdated_by_userInput[] deleteMany?: FeatureFlagScalarWhereInput | FeatureFlagScalarWhereInput[] } export type UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: UserAcquisitionCreateOrConnectWithoutUserInput upsert?: UserAcquisitionUpsertWithoutUserInput disconnect?: UserAcquisitionWhereInput | boolean delete?: UserAcquisitionWhereInput | boolean connect?: UserAcquisitionWhereUniqueInput update?: XOR, UserAcquisitionUncheckedUpdateWithoutUserInput> } export type AffiliateUncheckedUpdateOneWithoutUserNestedInput = { create?: XOR connectOrCreate?: AffiliateCreateOrConnectWithoutUserInput upsert?: AffiliateUpsertWithoutUserInput disconnect?: AffiliateWhereInput | boolean delete?: AffiliateWhereInput | boolean connect?: AffiliateWhereUniqueInput update?: XOR, AffiliateUncheckedUpdateWithoutUserInput> } export type AffiliateUncheckedUpdateManyWithoutReviewerNestedInput = { create?: XOR | AffiliateCreateWithoutReviewerInput[] | AffiliateUncheckedCreateWithoutReviewerInput[] connectOrCreate?: AffiliateCreateOrConnectWithoutReviewerInput | AffiliateCreateOrConnectWithoutReviewerInput[] upsert?: AffiliateUpsertWithWhereUniqueWithoutReviewerInput | AffiliateUpsertWithWhereUniqueWithoutReviewerInput[] createMany?: AffiliateCreateManyReviewerInputEnvelope set?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] disconnect?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] delete?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] connect?: AffiliateWhereUniqueInput | AffiliateWhereUniqueInput[] update?: AffiliateUpdateWithWhereUniqueWithoutReviewerInput | AffiliateUpdateWithWhereUniqueWithoutReviewerInput[] updateMany?: AffiliateUpdateManyWithWhereWithoutReviewerInput | AffiliateUpdateManyWithWhereWithoutReviewerInput[] deleteMany?: AffiliateScalarWhereInput | AffiliateScalarWhereInput[] } export type SocialAccountUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | SocialAccountCreateWithoutUserInput[] | SocialAccountUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialAccountCreateOrConnectWithoutUserInput | SocialAccountCreateOrConnectWithoutUserInput[] upsert?: SocialAccountUpsertWithWhereUniqueWithoutUserInput | SocialAccountUpsertWithWhereUniqueWithoutUserInput[] createMany?: SocialAccountCreateManyUserInputEnvelope set?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] disconnect?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] delete?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] connect?: SocialAccountWhereUniqueInput | SocialAccountWhereUniqueInput[] update?: SocialAccountUpdateWithWhereUniqueWithoutUserInput | SocialAccountUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SocialAccountUpdateManyWithWhereWithoutUserInput | SocialAccountUpdateManyWithWhereWithoutUserInput[] deleteMany?: SocialAccountScalarWhereInput | SocialAccountScalarWhereInput[] } export type SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | SocialOauthStateCreateWithoutUserInput[] | SocialOauthStateUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialOauthStateCreateOrConnectWithoutUserInput | SocialOauthStateCreateOrConnectWithoutUserInput[] upsert?: SocialOauthStateUpsertWithWhereUniqueWithoutUserInput | SocialOauthStateUpsertWithWhereUniqueWithoutUserInput[] createMany?: SocialOauthStateCreateManyUserInputEnvelope set?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] disconnect?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] delete?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] connect?: SocialOauthStateWhereUniqueInput | SocialOauthStateWhereUniqueInput[] update?: SocialOauthStateUpdateWithWhereUniqueWithoutUserInput | SocialOauthStateUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SocialOauthStateUpdateManyWithWhereWithoutUserInput | SocialOauthStateUpdateManyWithWhereWithoutUserInput[] deleteMany?: SocialOauthStateScalarWhereInput | SocialOauthStateScalarWhereInput[] } export type SocialPostUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | SocialPostCreateWithoutUserInput[] | SocialPostUncheckedCreateWithoutUserInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutUserInput | SocialPostCreateOrConnectWithoutUserInput[] upsert?: SocialPostUpsertWithWhereUniqueWithoutUserInput | SocialPostUpsertWithWhereUniqueWithoutUserInput[] createMany?: SocialPostCreateManyUserInputEnvelope set?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] disconnect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] delete?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] update?: SocialPostUpdateWithWhereUniqueWithoutUserInput | SocialPostUpdateWithWhereUniqueWithoutUserInput[] updateMany?: SocialPostUpdateManyWithWhereWithoutUserInput | SocialPostUpdateManyWithWhereWithoutUserInput[] deleteMany?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] } export type UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | UserFeatureTourCreateWithoutUserInput[] | UserFeatureTourUncheckedCreateWithoutUserInput[] connectOrCreate?: UserFeatureTourCreateOrConnectWithoutUserInput | UserFeatureTourCreateOrConnectWithoutUserInput[] upsert?: UserFeatureTourUpsertWithWhereUniqueWithoutUserInput | UserFeatureTourUpsertWithWhereUniqueWithoutUserInput[] createMany?: UserFeatureTourCreateManyUserInputEnvelope set?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] disconnect?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] delete?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] connect?: UserFeatureTourWhereUniqueInput | UserFeatureTourWhereUniqueInput[] update?: UserFeatureTourUpdateWithWhereUniqueWithoutUserInput | UserFeatureTourUpdateWithWhereUniqueWithoutUserInput[] updateMany?: UserFeatureTourUpdateManyWithWhereWithoutUserInput | UserFeatureTourUpdateManyWithWhereWithoutUserInput[] deleteMany?: UserFeatureTourScalarWhereInput | UserFeatureTourScalarWhereInput[] } export type UserCreateNestedOneWithoutAcquisitionInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAcquisitionInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutAcquisitionNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAcquisitionInput upsert?: UserUpsertWithoutAcquisitionInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAcquisitionInput> } export type UserCreateNestedOneWithoutAffiliateInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAffiliateInput connect?: UserWhereUniqueInput } export type UserCreateNestedOneWithoutReviewed_affiliatesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutReviewed_affiliatesInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutAffiliateNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAffiliateInput upsert?: UserUpsertWithoutAffiliateInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAffiliateInput> } export type UserUpdateOneWithoutReviewed_affiliatesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutReviewed_affiliatesInput upsert?: UserUpsertWithoutReviewed_affiliatesInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutReviewed_affiliatesInput> } export type UserCreateNestedOneWithoutFeature_flags_updatedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutFeature_flags_updatedInput connect?: UserWhereUniqueInput } export type UserUpdateOneWithoutFeature_flags_updatedNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutFeature_flags_updatedInput upsert?: UserUpsertWithoutFeature_flags_updatedInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutFeature_flags_updatedInput> } export type UserCreateNestedOneWithoutApp_settingsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutApp_settingsInput connect?: UserWhereUniqueInput } export type UserUpdateOneWithoutApp_settingsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutApp_settingsInput upsert?: UserUpsertWithoutApp_settingsInput disconnect?: UserWhereInput | boolean delete?: UserWhereInput | boolean connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutApp_settingsInput> } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type TaskCreategenerated_clips_idsInput = { set: string[] } export type UserCreateNestedOneWithoutTasksInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutTasksInput connect?: UserWhereUniqueInput } export type SourceCreateNestedOneWithoutTasksInput = { create?: XOR connectOrCreate?: SourceCreateOrConnectWithoutTasksInput connect?: SourceWhereUniqueInput } export type SocialPostCreateNestedManyWithoutTaskInput = { create?: XOR | SocialPostCreateWithoutTaskInput[] | SocialPostUncheckedCreateWithoutTaskInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutTaskInput | SocialPostCreateOrConnectWithoutTaskInput[] createMany?: SocialPostCreateManyTaskInputEnvelope connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] } export type SocialPostUncheckedCreateNestedManyWithoutTaskInput = { create?: XOR | SocialPostCreateWithoutTaskInput[] | SocialPostUncheckedCreateWithoutTaskInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutTaskInput | SocialPostCreateOrConnectWithoutTaskInput[] createMany?: SocialPostCreateManyTaskInputEnvelope connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] } export type TaskUpdategenerated_clips_idsInput = { set?: string[] push?: string | string[] } export type NullableBoolFieldUpdateOperationsInput = { set?: boolean | null } export type UserUpdateOneRequiredWithoutTasksNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutTasksInput upsert?: UserUpsertWithoutTasksInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutTasksInput> } export type SourceUpdateOneWithoutTasksNestedInput = { create?: XOR connectOrCreate?: SourceCreateOrConnectWithoutTasksInput upsert?: SourceUpsertWithoutTasksInput disconnect?: SourceWhereInput | boolean delete?: SourceWhereInput | boolean connect?: SourceWhereUniqueInput update?: XOR, SourceUncheckedUpdateWithoutTasksInput> } export type SocialPostUpdateManyWithoutTaskNestedInput = { create?: XOR | SocialPostCreateWithoutTaskInput[] | SocialPostUncheckedCreateWithoutTaskInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutTaskInput | SocialPostCreateOrConnectWithoutTaskInput[] upsert?: SocialPostUpsertWithWhereUniqueWithoutTaskInput | SocialPostUpsertWithWhereUniqueWithoutTaskInput[] createMany?: SocialPostCreateManyTaskInputEnvelope set?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] disconnect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] delete?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] update?: SocialPostUpdateWithWhereUniqueWithoutTaskInput | SocialPostUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: SocialPostUpdateManyWithWhereWithoutTaskInput | SocialPostUpdateManyWithWhereWithoutTaskInput[] deleteMany?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] } export type SocialPostUncheckedUpdateManyWithoutTaskNestedInput = { create?: XOR | SocialPostCreateWithoutTaskInput[] | SocialPostUncheckedCreateWithoutTaskInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutTaskInput | SocialPostCreateOrConnectWithoutTaskInput[] upsert?: SocialPostUpsertWithWhereUniqueWithoutTaskInput | SocialPostUpsertWithWhereUniqueWithoutTaskInput[] createMany?: SocialPostCreateManyTaskInputEnvelope set?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] disconnect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] delete?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] update?: SocialPostUpdateWithWhereUniqueWithoutTaskInput | SocialPostUpdateWithWhereUniqueWithoutTaskInput[] updateMany?: SocialPostUpdateManyWithWhereWithoutTaskInput | SocialPostUpdateManyWithWhereWithoutTaskInput[] deleteMany?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] } export type UserCreateNestedOneWithoutSocial_accountsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSocial_accountsInput connect?: UserWhereUniqueInput } export type SocialPostCreateNestedManyWithoutSocial_accountInput = { create?: XOR | SocialPostCreateWithoutSocial_accountInput[] | SocialPostUncheckedCreateWithoutSocial_accountInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutSocial_accountInput | SocialPostCreateOrConnectWithoutSocial_accountInput[] createMany?: SocialPostCreateManySocial_accountInputEnvelope connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] } export type SocialPostUncheckedCreateNestedManyWithoutSocial_accountInput = { create?: XOR | SocialPostCreateWithoutSocial_accountInput[] | SocialPostUncheckedCreateWithoutSocial_accountInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutSocial_accountInput | SocialPostCreateOrConnectWithoutSocial_accountInput[] createMany?: SocialPostCreateManySocial_accountInputEnvelope connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] } export type UserUpdateOneRequiredWithoutSocial_accountsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSocial_accountsInput upsert?: UserUpsertWithoutSocial_accountsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutSocial_accountsInput> } export type SocialPostUpdateManyWithoutSocial_accountNestedInput = { create?: XOR | SocialPostCreateWithoutSocial_accountInput[] | SocialPostUncheckedCreateWithoutSocial_accountInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutSocial_accountInput | SocialPostCreateOrConnectWithoutSocial_accountInput[] upsert?: SocialPostUpsertWithWhereUniqueWithoutSocial_accountInput | SocialPostUpsertWithWhereUniqueWithoutSocial_accountInput[] createMany?: SocialPostCreateManySocial_accountInputEnvelope set?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] disconnect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] delete?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] update?: SocialPostUpdateWithWhereUniqueWithoutSocial_accountInput | SocialPostUpdateWithWhereUniqueWithoutSocial_accountInput[] updateMany?: SocialPostUpdateManyWithWhereWithoutSocial_accountInput | SocialPostUpdateManyWithWhereWithoutSocial_accountInput[] deleteMany?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] } export type SocialPostUncheckedUpdateManyWithoutSocial_accountNestedInput = { create?: XOR | SocialPostCreateWithoutSocial_accountInput[] | SocialPostUncheckedCreateWithoutSocial_accountInput[] connectOrCreate?: SocialPostCreateOrConnectWithoutSocial_accountInput | SocialPostCreateOrConnectWithoutSocial_accountInput[] upsert?: SocialPostUpsertWithWhereUniqueWithoutSocial_accountInput | SocialPostUpsertWithWhereUniqueWithoutSocial_accountInput[] createMany?: SocialPostCreateManySocial_accountInputEnvelope set?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] disconnect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] delete?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] connect?: SocialPostWhereUniqueInput | SocialPostWhereUniqueInput[] update?: SocialPostUpdateWithWhereUniqueWithoutSocial_accountInput | SocialPostUpdateWithWhereUniqueWithoutSocial_accountInput[] updateMany?: SocialPostUpdateManyWithWhereWithoutSocial_accountInput | SocialPostUpdateManyWithWhereWithoutSocial_accountInput[] deleteMany?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] } export type UserCreateNestedOneWithoutSocial_oauth_statesInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSocial_oauth_statesInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutSocial_oauth_statesNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSocial_oauth_statesInput upsert?: UserUpsertWithoutSocial_oauth_statesInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutSocial_oauth_statesInput> } export type SocialPostCreatehashtagsInput = { set: string[] } export type UserCreateNestedOneWithoutSocial_postsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSocial_postsInput connect?: UserWhereUniqueInput } export type TaskCreateNestedOneWithoutSocial_postsInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutSocial_postsInput connect?: TaskWhereUniqueInput } export type SocialAccountCreateNestedOneWithoutPostsInput = { create?: XOR connectOrCreate?: SocialAccountCreateOrConnectWithoutPostsInput connect?: SocialAccountWhereUniqueInput } export type SocialPostMetricCreateNestedManyWithoutPostInput = { create?: XOR | SocialPostMetricCreateWithoutPostInput[] | SocialPostMetricUncheckedCreateWithoutPostInput[] connectOrCreate?: SocialPostMetricCreateOrConnectWithoutPostInput | SocialPostMetricCreateOrConnectWithoutPostInput[] createMany?: SocialPostMetricCreateManyPostInputEnvelope connect?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] } export type SocialPostMetricUncheckedCreateNestedManyWithoutPostInput = { create?: XOR | SocialPostMetricCreateWithoutPostInput[] | SocialPostMetricUncheckedCreateWithoutPostInput[] connectOrCreate?: SocialPostMetricCreateOrConnectWithoutPostInput | SocialPostMetricCreateOrConnectWithoutPostInput[] createMany?: SocialPostMetricCreateManyPostInputEnvelope connect?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] } export type SocialPostUpdatehashtagsInput = { set?: string[] push?: string | string[] } export type NullableFloatFieldUpdateOperationsInput = { set?: number | null increment?: number decrement?: number multiply?: number divide?: number } export type UserUpdateOneRequiredWithoutSocial_postsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutSocial_postsInput upsert?: UserUpsertWithoutSocial_postsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutSocial_postsInput> } export type TaskUpdateOneWithoutSocial_postsNestedInput = { create?: XOR connectOrCreate?: TaskCreateOrConnectWithoutSocial_postsInput upsert?: TaskUpsertWithoutSocial_postsInput disconnect?: TaskWhereInput | boolean delete?: TaskWhereInput | boolean connect?: TaskWhereUniqueInput update?: XOR, TaskUncheckedUpdateWithoutSocial_postsInput> } export type SocialAccountUpdateOneWithoutPostsNestedInput = { create?: XOR connectOrCreate?: SocialAccountCreateOrConnectWithoutPostsInput upsert?: SocialAccountUpsertWithoutPostsInput disconnect?: SocialAccountWhereInput | boolean delete?: SocialAccountWhereInput | boolean connect?: SocialAccountWhereUniqueInput update?: XOR, SocialAccountUncheckedUpdateWithoutPostsInput> } export type SocialPostMetricUpdateManyWithoutPostNestedInput = { create?: XOR | SocialPostMetricCreateWithoutPostInput[] | SocialPostMetricUncheckedCreateWithoutPostInput[] connectOrCreate?: SocialPostMetricCreateOrConnectWithoutPostInput | SocialPostMetricCreateOrConnectWithoutPostInput[] upsert?: SocialPostMetricUpsertWithWhereUniqueWithoutPostInput | SocialPostMetricUpsertWithWhereUniqueWithoutPostInput[] createMany?: SocialPostMetricCreateManyPostInputEnvelope set?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] disconnect?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] delete?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] connect?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] update?: SocialPostMetricUpdateWithWhereUniqueWithoutPostInput | SocialPostMetricUpdateWithWhereUniqueWithoutPostInput[] updateMany?: SocialPostMetricUpdateManyWithWhereWithoutPostInput | SocialPostMetricUpdateManyWithWhereWithoutPostInput[] deleteMany?: SocialPostMetricScalarWhereInput | SocialPostMetricScalarWhereInput[] } export type SocialPostMetricUncheckedUpdateManyWithoutPostNestedInput = { create?: XOR | SocialPostMetricCreateWithoutPostInput[] | SocialPostMetricUncheckedCreateWithoutPostInput[] connectOrCreate?: SocialPostMetricCreateOrConnectWithoutPostInput | SocialPostMetricCreateOrConnectWithoutPostInput[] upsert?: SocialPostMetricUpsertWithWhereUniqueWithoutPostInput | SocialPostMetricUpsertWithWhereUniqueWithoutPostInput[] createMany?: SocialPostMetricCreateManyPostInputEnvelope set?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] disconnect?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] delete?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] connect?: SocialPostMetricWhereUniqueInput | SocialPostMetricWhereUniqueInput[] update?: SocialPostMetricUpdateWithWhereUniqueWithoutPostInput | SocialPostMetricUpdateWithWhereUniqueWithoutPostInput[] updateMany?: SocialPostMetricUpdateManyWithWhereWithoutPostInput | SocialPostMetricUpdateManyWithWhereWithoutPostInput[] deleteMany?: SocialPostMetricScalarWhereInput | SocialPostMetricScalarWhereInput[] } export type SocialPostCreateNestedOneWithoutMetric_historyInput = { create?: XOR connectOrCreate?: SocialPostCreateOrConnectWithoutMetric_historyInput connect?: SocialPostWhereUniqueInput } export type NullableBigIntFieldUpdateOperationsInput = { set?: bigint | number | null increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type SocialPostUpdateOneRequiredWithoutMetric_historyNestedInput = { create?: XOR connectOrCreate?: SocialPostCreateOrConnectWithoutMetric_historyInput upsert?: SocialPostUpsertWithoutMetric_historyInput connect?: SocialPostWhereUniqueInput update?: XOR, SocialPostUncheckedUpdateWithoutMetric_historyInput> } export type TaskCreateNestedManyWithoutSourceInput = { create?: XOR | TaskCreateWithoutSourceInput[] | TaskUncheckedCreateWithoutSourceInput[] connectOrCreate?: TaskCreateOrConnectWithoutSourceInput | TaskCreateOrConnectWithoutSourceInput[] createMany?: TaskCreateManySourceInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type TaskUncheckedCreateNestedManyWithoutSourceInput = { create?: XOR | TaskCreateWithoutSourceInput[] | TaskUncheckedCreateWithoutSourceInput[] connectOrCreate?: TaskCreateOrConnectWithoutSourceInput | TaskCreateOrConnectWithoutSourceInput[] createMany?: TaskCreateManySourceInputEnvelope connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] } export type TaskUpdateManyWithoutSourceNestedInput = { create?: XOR | TaskCreateWithoutSourceInput[] | TaskUncheckedCreateWithoutSourceInput[] connectOrCreate?: TaskCreateOrConnectWithoutSourceInput | TaskCreateOrConnectWithoutSourceInput[] upsert?: TaskUpsertWithWhereUniqueWithoutSourceInput | TaskUpsertWithWhereUniqueWithoutSourceInput[] createMany?: TaskCreateManySourceInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutSourceInput | TaskUpdateWithWhereUniqueWithoutSourceInput[] updateMany?: TaskUpdateManyWithWhereWithoutSourceInput | TaskUpdateManyWithWhereWithoutSourceInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } export type TaskUncheckedUpdateManyWithoutSourceNestedInput = { create?: XOR | TaskCreateWithoutSourceInput[] | TaskUncheckedCreateWithoutSourceInput[] connectOrCreate?: TaskCreateOrConnectWithoutSourceInput | TaskCreateOrConnectWithoutSourceInput[] upsert?: TaskUpsertWithWhereUniqueWithoutSourceInput | TaskUpsertWithWhereUniqueWithoutSourceInput[] createMany?: TaskCreateManySourceInputEnvelope set?: TaskWhereUniqueInput | TaskWhereUniqueInput[] disconnect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] delete?: TaskWhereUniqueInput | TaskWhereUniqueInput[] connect?: TaskWhereUniqueInput | TaskWhereUniqueInput[] update?: TaskUpdateWithWhereUniqueWithoutSourceInput | TaskUpdateWithWhereUniqueWithoutSourceInput[] updateMany?: TaskUpdateManyWithWhereWithoutSourceInput | TaskUpdateManyWithWhereWithoutSourceInput[] deleteMany?: TaskScalarWhereInput | TaskScalarWhereInput[] } 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 UserCreateNestedOneWithoutAccountsInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAccountsInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutAccountsNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutAccountsInput upsert?: UserUpsertWithoutAccountsInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutAccountsInput> } export type UserCreateNestedOneWithoutFeature_toursInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutFeature_toursInput connect?: UserWhereUniqueInput } export type UserUpdateOneRequiredWithoutFeature_toursNestedInput = { create?: XOR connectOrCreate?: UserCreateOrConnectWithoutFeature_toursInput upsert?: UserUpsertWithoutFeature_toursInput connect?: UserWhereUniqueInput update?: XOR, UserUncheckedUpdateWithoutFeature_toursInput> } 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 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 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 NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } 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 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 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 NestedJsonFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedDateTimeNullableFilter<$PrismaModel> _max?: NestedDateTimeNullableFilter<$PrismaModel> } export type 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 NestedBoolNullableFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null } export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableWithAggregatesFilter<$PrismaModel> | boolean | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedBoolNullableFilter<$PrismaModel> _max?: NestedBoolNullableFilter<$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 NestedJsonNullableFilter<$PrismaModel = never> = | PatchUndefined< Either>, Exclude>, 'path'>>, Required> > | OptionalFlat>, 'path'>> export type NestedJsonNullableFilterBase<$PrismaModel = never> = { equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter path?: string[] mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel> string_contains?: string | StringFieldRefInput<$PrismaModel> string_starts_with?: string | StringFieldRefInput<$PrismaModel> string_ends_with?: string | StringFieldRefInput<$PrismaModel> array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel> gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel> not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter } export type NestedBigIntNullableFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableFilter<$PrismaModel> | bigint | number | null } export type NestedBigIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: bigint | number | BigIntFieldRefInput<$PrismaModel> | null in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel> | null lt?: bigint | number | BigIntFieldRefInput<$PrismaModel> lte?: bigint | number | BigIntFieldRefInput<$PrismaModel> gt?: bigint | number | BigIntFieldRefInput<$PrismaModel> gte?: bigint | number | BigIntFieldRefInput<$PrismaModel> not?: NestedBigIntNullableWithAggregatesFilter<$PrismaModel> | bigint | number | null _count?: NestedIntNullableFilter<$PrismaModel> _avg?: NestedFloatNullableFilter<$PrismaModel> _sum?: NestedBigIntNullableFilter<$PrismaModel> _min?: NestedBigIntNullableFilter<$PrismaModel> _max?: NestedBigIntNullableFilter<$PrismaModel> } export type TaskCreateWithoutUserInput = { id?: string generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string source?: SourceCreateNestedOneWithoutTasksInput social_posts?: SocialPostCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutUserInput = { id?: string source_id?: string | null generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string social_posts?: SocialPostUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutUserInput = { where: TaskWhereUniqueInput create: XOR } export type TaskCreateManyUserInputEnvelope = { data: TaskCreateManyUserInput | TaskCreateManyUserInput[] skipDuplicates?: boolean } export type SessionCreateWithoutUserInput = { id: string expiresAt: Date | string token: string createdAt: Date | string updatedAt: Date | string ipAddress?: string | null userAgent?: string | null } export type SessionUncheckedCreateWithoutUserInput = { id: string expiresAt: Date | string token: string createdAt: Date | string updatedAt: Date | string ipAddress?: string | null userAgent?: string | null } export type SessionCreateOrConnectWithoutUserInput = { where: SessionWhereUniqueInput create: XOR } export type SessionCreateManyUserInputEnvelope = { data: SessionCreateManyUserInput | SessionCreateManyUserInput[] skipDuplicates?: boolean } export type AccountCreateWithoutUserInput = { id: string accountId: string providerId: string accessToken?: string | null refreshToken?: string | null idToken?: string | null accessTokenExpiresAt?: Date | string | null refreshTokenExpiresAt?: Date | string | null scope?: string | null password?: string | null createdAt: Date | string updatedAt: Date | string } export type AccountUncheckedCreateWithoutUserInput = { id: string accountId: string providerId: string accessToken?: string | null refreshToken?: string | null idToken?: string | null accessTokenExpiresAt?: Date | string | null refreshTokenExpiresAt?: Date | string | null scope?: string | null password?: string | null createdAt: Date | string updatedAt: Date | string } export type AccountCreateOrConnectWithoutUserInput = { where: AccountWhereUniqueInput create: XOR } export type AccountCreateManyUserInputEnvelope = { data: AccountCreateManyUserInput | AccountCreateManyUserInput[] skipDuplicates?: boolean } export type AppSettingCreateWithoutUserInput = { setting_key: string encrypted_value: string prefer_admin_value?: boolean created_at?: Date | string updated_at?: Date | string } export type AppSettingUncheckedCreateWithoutUserInput = { setting_key: string encrypted_value: string prefer_admin_value?: boolean created_at?: Date | string updated_at?: Date | string } export type AppSettingCreateOrConnectWithoutUserInput = { where: AppSettingWhereUniqueInput create: XOR } export type AppSettingCreateManyUserInputEnvelope = { data: AppSettingCreateManyUserInput | AppSettingCreateManyUserInput[] skipDuplicates?: boolean } export type FeatureFlagCreateWithoutUpdated_by_userInput = { key: string description?: string web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean created_at?: Date | string updated_at?: Date | string } export type FeatureFlagUncheckedCreateWithoutUpdated_by_userInput = { key: string description?: string web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean created_at?: Date | string updated_at?: Date | string } export type FeatureFlagCreateOrConnectWithoutUpdated_by_userInput = { where: FeatureFlagWhereUniqueInput create: XOR } export type FeatureFlagCreateManyUpdated_by_userInputEnvelope = { data: FeatureFlagCreateManyUpdated_by_userInput | FeatureFlagCreateManyUpdated_by_userInput[] skipDuplicates?: boolean } export type UserAcquisitionCreateWithoutUserInput = { utm_source?: string | null utm_medium?: string | null utm_campaign?: string | null utm_content?: string | null utm_term?: string | null ref?: string | null referrer_host?: string | null landing_path?: string | null first_seen_at?: Date | string | null first_clip_exported_at?: Date | string | null created_at?: Date | string } export type UserAcquisitionUncheckedCreateWithoutUserInput = { utm_source?: string | null utm_medium?: string | null utm_campaign?: string | null utm_content?: string | null utm_term?: string | null ref?: string | null referrer_host?: string | null landing_path?: string | null first_seen_at?: Date | string | null first_clip_exported_at?: Date | string | null created_at?: Date | string } export type UserAcquisitionCreateOrConnectWithoutUserInput = { where: UserAcquisitionWhereUniqueInput create: XOR } export type AffiliateCreateWithoutUserInput = { id?: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null created_at?: Date | string updated_at?: Date | string reviewer?: UserCreateNestedOneWithoutReviewed_affiliatesInput } export type AffiliateUncheckedCreateWithoutUserInput = { id?: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null reviewed_by?: string | null created_at?: Date | string updated_at?: Date | string } export type AffiliateCreateOrConnectWithoutUserInput = { where: AffiliateWhereUniqueInput create: XOR } export type AffiliateCreateWithoutReviewerInput = { id?: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null created_at?: Date | string updated_at?: Date | string user: UserCreateNestedOneWithoutAffiliateInput } export type AffiliateUncheckedCreateWithoutReviewerInput = { id?: string user_id: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null created_at?: Date | string updated_at?: Date | string } export type AffiliateCreateOrConnectWithoutReviewerInput = { where: AffiliateWhereUniqueInput create: XOR } export type AffiliateCreateManyReviewerInputEnvelope = { data: AffiliateCreateManyReviewerInput | AffiliateCreateManyReviewerInput[] skipDuplicates?: boolean } export type SocialAccountCreateWithoutUserInput = { id?: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null posts?: SocialPostCreateNestedManyWithoutSocial_accountInput } export type SocialAccountUncheckedCreateWithoutUserInput = { id?: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null posts?: SocialPostUncheckedCreateNestedManyWithoutSocial_accountInput } export type SocialAccountCreateOrConnectWithoutUserInput = { where: SocialAccountWhereUniqueInput create: XOR } export type SocialAccountCreateManyUserInputEnvelope = { data: SocialAccountCreateManyUserInput | SocialAccountCreateManyUserInput[] skipDuplicates?: boolean } export type SocialOauthStateCreateWithoutUserInput = { state: string provider: string code_verifier?: string | null redirect_uri: string created_at?: Date | string | null expires_at: Date | string } export type SocialOauthStateUncheckedCreateWithoutUserInput = { state: string provider: string code_verifier?: string | null redirect_uri: string created_at?: Date | string | null expires_at: Date | string } export type SocialOauthStateCreateOrConnectWithoutUserInput = { where: SocialOauthStateWhereUniqueInput create: XOR } export type SocialOauthStateCreateManyUserInputEnvelope = { data: SocialOauthStateCreateManyUserInput | SocialOauthStateCreateManyUserInput[] skipDuplicates?: boolean } export type SocialPostCreateWithoutUserInput = { id?: string clip_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null task?: TaskCreateNestedOneWithoutSocial_postsInput social_account?: SocialAccountCreateNestedOneWithoutPostsInput metric_history?: SocialPostMetricCreateNestedManyWithoutPostInput } export type SocialPostUncheckedCreateWithoutUserInput = { id?: string task_id?: string | null clip_id?: string | null social_account_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null metric_history?: SocialPostMetricUncheckedCreateNestedManyWithoutPostInput } export type SocialPostCreateOrConnectWithoutUserInput = { where: SocialPostWhereUniqueInput create: XOR } export type SocialPostCreateManyUserInputEnvelope = { data: SocialPostCreateManyUserInput | SocialPostCreateManyUserInput[] skipDuplicates?: boolean } export type UserFeatureTourCreateWithoutUserInput = { tour_id: string shown_at?: Date | string completed_at?: Date | string | null dismissed_at?: Date | string | null last_step?: number | null } export type UserFeatureTourUncheckedCreateWithoutUserInput = { tour_id: string shown_at?: Date | string completed_at?: Date | string | null dismissed_at?: Date | string | null last_step?: number | null } export type UserFeatureTourCreateOrConnectWithoutUserInput = { where: UserFeatureTourWhereUniqueInput create: XOR } export type UserFeatureTourCreateManyUserInputEnvelope = { data: UserFeatureTourCreateManyUserInput | UserFeatureTourCreateManyUserInput[] skipDuplicates?: boolean } export type TaskUpsertWithWhereUniqueWithoutUserInput = { where: TaskWhereUniqueInput update: XOR create: XOR } export type TaskUpdateWithWhereUniqueWithoutUserInput = { where: TaskWhereUniqueInput data: XOR } export type TaskUpdateManyWithWhereWithoutUserInput = { where: TaskScalarWhereInput data: XOR } export type TaskScalarWhereInput = { AND?: TaskScalarWhereInput | TaskScalarWhereInput[] OR?: TaskScalarWhereInput[] NOT?: TaskScalarWhereInput | TaskScalarWhereInput[] id?: StringFilter<"Task"> | string user_id?: StringFilter<"Task"> | string source_id?: StringNullableFilter<"Task"> | string | null generated_clips_ids?: StringNullableListFilter<"Task"> status?: StringFilter<"Task"> | string progress?: IntNullableFilter<"Task"> | number | null progress_message?: StringNullableFilter<"Task"> | string | null source_metadata?: JsonFilter<"Task"> source_duration_seconds?: IntNullableFilter<"Task"> | number | null completion_notification_sent_at?: DateTimeNullableFilter<"Task"> | Date | string | null share_token?: StringNullableFilter<"Task"> | string | null share_enabled?: BoolFilter<"Task"> | boolean font_family?: StringNullableFilter<"Task"> | string | null font_size?: IntNullableFilter<"Task"> | number | null font_color?: StringNullableFilter<"Task"> | string | null caption_template?: StringNullableFilter<"Task"> | string | null include_broll?: BoolNullableFilter<"Task"> | boolean | null created_at?: DateTimeFilter<"Task"> | Date | string updated_at?: DateTimeFilter<"Task"> | Date | string } 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 expiresAt?: DateTimeFilter<"Session"> | Date | string token?: StringFilter<"Session"> | string createdAt?: DateTimeFilter<"Session"> | Date | string updatedAt?: DateTimeFilter<"Session"> | Date | string ipAddress?: StringNullableFilter<"Session"> | string | null userAgent?: StringNullableFilter<"Session"> | string | null userId?: StringFilter<"Session"> | string } export type AccountUpsertWithWhereUniqueWithoutUserInput = { where: AccountWhereUniqueInput update: XOR create: XOR } export type AccountUpdateWithWhereUniqueWithoutUserInput = { where: AccountWhereUniqueInput data: XOR } export type AccountUpdateManyWithWhereWithoutUserInput = { where: AccountScalarWhereInput data: XOR } export type AccountScalarWhereInput = { AND?: AccountScalarWhereInput | AccountScalarWhereInput[] OR?: AccountScalarWhereInput[] NOT?: AccountScalarWhereInput | AccountScalarWhereInput[] id?: StringFilter<"Account"> | string accountId?: StringFilter<"Account"> | string providerId?: StringFilter<"Account"> | string userId?: StringFilter<"Account"> | string accessToken?: StringNullableFilter<"Account"> | string | null refreshToken?: StringNullableFilter<"Account"> | string | null idToken?: StringNullableFilter<"Account"> | string | null accessTokenExpiresAt?: DateTimeNullableFilter<"Account"> | Date | string | null refreshTokenExpiresAt?: DateTimeNullableFilter<"Account"> | Date | string | null scope?: StringNullableFilter<"Account"> | string | null password?: StringNullableFilter<"Account"> | string | null createdAt?: DateTimeFilter<"Account"> | Date | string updatedAt?: DateTimeFilter<"Account"> | Date | string } export type AppSettingUpsertWithWhereUniqueWithoutUserInput = { where: AppSettingWhereUniqueInput update: XOR create: XOR } export type AppSettingUpdateWithWhereUniqueWithoutUserInput = { where: AppSettingWhereUniqueInput data: XOR } export type AppSettingUpdateManyWithWhereWithoutUserInput = { where: AppSettingScalarWhereInput data: XOR } export type AppSettingScalarWhereInput = { AND?: AppSettingScalarWhereInput | AppSettingScalarWhereInput[] OR?: AppSettingScalarWhereInput[] NOT?: AppSettingScalarWhereInput | AppSettingScalarWhereInput[] setting_key?: StringFilter<"AppSetting"> | string encrypted_value?: StringFilter<"AppSetting"> | string prefer_admin_value?: BoolFilter<"AppSetting"> | boolean updated_by?: StringNullableFilter<"AppSetting"> | string | null created_at?: DateTimeFilter<"AppSetting"> | Date | string updated_at?: DateTimeFilter<"AppSetting"> | Date | string } export type FeatureFlagUpsertWithWhereUniqueWithoutUpdated_by_userInput = { where: FeatureFlagWhereUniqueInput update: XOR create: XOR } export type FeatureFlagUpdateWithWhereUniqueWithoutUpdated_by_userInput = { where: FeatureFlagWhereUniqueInput data: XOR } export type FeatureFlagUpdateManyWithWhereWithoutUpdated_by_userInput = { where: FeatureFlagScalarWhereInput data: XOR } export type FeatureFlagScalarWhereInput = { AND?: FeatureFlagScalarWhereInput | FeatureFlagScalarWhereInput[] OR?: FeatureFlagScalarWhereInput[] NOT?: FeatureFlagScalarWhereInput | FeatureFlagScalarWhereInput[] key?: StringFilter<"FeatureFlag"> | string description?: StringFilter<"FeatureFlag"> | string web_enabled?: BoolFilter<"FeatureFlag"> | boolean ios_enabled?: BoolFilter<"FeatureFlag"> | boolean admins_bypass?: BoolFilter<"FeatureFlag"> | boolean updated_by?: StringNullableFilter<"FeatureFlag"> | string | null created_at?: DateTimeFilter<"FeatureFlag"> | Date | string updated_at?: DateTimeFilter<"FeatureFlag"> | Date | string } export type UserAcquisitionUpsertWithoutUserInput = { update: XOR create: XOR where?: UserAcquisitionWhereInput } export type UserAcquisitionUpdateToOneWithWhereWithoutUserInput = { where?: UserAcquisitionWhereInput data: XOR } export type UserAcquisitionUpdateWithoutUserInput = { utm_source?: NullableStringFieldUpdateOperationsInput | string | null utm_medium?: NullableStringFieldUpdateOperationsInput | string | null utm_campaign?: NullableStringFieldUpdateOperationsInput | string | null utm_content?: NullableStringFieldUpdateOperationsInput | string | null utm_term?: NullableStringFieldUpdateOperationsInput | string | null ref?: NullableStringFieldUpdateOperationsInput | string | null referrer_host?: NullableStringFieldUpdateOperationsInput | string | null landing_path?: NullableStringFieldUpdateOperationsInput | string | null first_seen_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null first_clip_exported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type UserAcquisitionUncheckedUpdateWithoutUserInput = { utm_source?: NullableStringFieldUpdateOperationsInput | string | null utm_medium?: NullableStringFieldUpdateOperationsInput | string | null utm_campaign?: NullableStringFieldUpdateOperationsInput | string | null utm_content?: NullableStringFieldUpdateOperationsInput | string | null utm_term?: NullableStringFieldUpdateOperationsInput | string | null ref?: NullableStringFieldUpdateOperationsInput | string | null referrer_host?: NullableStringFieldUpdateOperationsInput | string | null landing_path?: NullableStringFieldUpdateOperationsInput | string | null first_seen_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null first_clip_exported_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateUpsertWithoutUserInput = { update: XOR create: XOR where?: AffiliateWhereInput } export type AffiliateUpdateToOneWithWhereWithoutUserInput = { where?: AffiliateWhereInput data: XOR } export type AffiliateUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewer?: UserUpdateOneWithoutReviewed_affiliatesNestedInput } export type AffiliateUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null reviewed_by?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateUpsertWithWhereUniqueWithoutReviewerInput = { where: AffiliateWhereUniqueInput update: XOR create: XOR } export type AffiliateUpdateWithWhereUniqueWithoutReviewerInput = { where: AffiliateWhereUniqueInput data: XOR } export type AffiliateUpdateManyWithWhereWithoutReviewerInput = { where: AffiliateScalarWhereInput data: XOR } export type AffiliateScalarWhereInput = { AND?: AffiliateScalarWhereInput | AffiliateScalarWhereInput[] OR?: AffiliateScalarWhereInput[] NOT?: AffiliateScalarWhereInput | AffiliateScalarWhereInput[] id?: StringFilter<"Affiliate"> | string user_id?: StringFilter<"Affiliate"> | string slug?: StringNullableFilter<"Affiliate"> | string | null status?: StringFilter<"Affiliate"> | string platform?: StringFilter<"Affiliate"> | string profile_url?: StringFilter<"Affiliate"> | string audience_size?: StringFilter<"Affiliate"> | string video_url?: StringNullableFilter<"Affiliate"> | string | null promotion_plan?: StringNullableFilter<"Affiliate"> | string | null decline_reason?: StringNullableFilter<"Affiliate"> | string | null stripe_promotion_code_id?: StringNullableFilter<"Affiliate"> | string | null app_store_code_added_at?: DateTimeNullableFilter<"Affiliate"> | Date | string | null terms_accepted_at?: DateTimeFilter<"Affiliate"> | Date | string reviewed_at?: DateTimeNullableFilter<"Affiliate"> | Date | string | null reviewed_by?: StringNullableFilter<"Affiliate"> | string | null created_at?: DateTimeFilter<"Affiliate"> | Date | string updated_at?: DateTimeFilter<"Affiliate"> | Date | string } export type SocialAccountUpsertWithWhereUniqueWithoutUserInput = { where: SocialAccountWhereUniqueInput update: XOR create: XOR } export type SocialAccountUpdateWithWhereUniqueWithoutUserInput = { where: SocialAccountWhereUniqueInput data: XOR } export type SocialAccountUpdateManyWithWhereWithoutUserInput = { where: SocialAccountScalarWhereInput data: XOR } export type SocialAccountScalarWhereInput = { AND?: SocialAccountScalarWhereInput | SocialAccountScalarWhereInput[] OR?: SocialAccountScalarWhereInput[] NOT?: SocialAccountScalarWhereInput | SocialAccountScalarWhereInput[] id?: StringFilter<"SocialAccount"> | string user_id?: StringFilter<"SocialAccount"> | string provider?: StringFilter<"SocialAccount"> | string external_account_id?: StringFilter<"SocialAccount"> | string display_name?: StringNullableFilter<"SocialAccount"> | string | null username?: StringNullableFilter<"SocialAccount"> | string | null avatar_url?: StringNullableFilter<"SocialAccount"> | string | null access_token_encrypted?: StringFilter<"SocialAccount"> | string refresh_token_encrypted?: StringNullableFilter<"SocialAccount"> | string | null token_expires_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null scopes?: StringNullableFilter<"SocialAccount"> | string | null metadata?: JsonFilter<"SocialAccount"> status?: StringFilter<"SocialAccount"> | string last_error?: StringNullableFilter<"SocialAccount"> | string | null created_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null updated_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null revoked_at?: DateTimeNullableFilter<"SocialAccount"> | Date | string | null } export type SocialOauthStateUpsertWithWhereUniqueWithoutUserInput = { where: SocialOauthStateWhereUniqueInput update: XOR create: XOR } export type SocialOauthStateUpdateWithWhereUniqueWithoutUserInput = { where: SocialOauthStateWhereUniqueInput data: XOR } export type SocialOauthStateUpdateManyWithWhereWithoutUserInput = { where: SocialOauthStateScalarWhereInput data: XOR } export type SocialOauthStateScalarWhereInput = { AND?: SocialOauthStateScalarWhereInput | SocialOauthStateScalarWhereInput[] OR?: SocialOauthStateScalarWhereInput[] NOT?: SocialOauthStateScalarWhereInput | SocialOauthStateScalarWhereInput[] state?: StringFilter<"SocialOauthState"> | string user_id?: StringFilter<"SocialOauthState"> | string provider?: StringFilter<"SocialOauthState"> | string code_verifier?: StringNullableFilter<"SocialOauthState"> | string | null redirect_uri?: StringFilter<"SocialOauthState"> | string created_at?: DateTimeNullableFilter<"SocialOauthState"> | Date | string | null expires_at?: DateTimeFilter<"SocialOauthState"> | Date | string } export type SocialPostUpsertWithWhereUniqueWithoutUserInput = { where: SocialPostWhereUniqueInput update: XOR create: XOR } export type SocialPostUpdateWithWhereUniqueWithoutUserInput = { where: SocialPostWhereUniqueInput data: XOR } export type SocialPostUpdateManyWithWhereWithoutUserInput = { where: SocialPostScalarWhereInput data: XOR } export type SocialPostScalarWhereInput = { AND?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] OR?: SocialPostScalarWhereInput[] NOT?: SocialPostScalarWhereInput | SocialPostScalarWhereInput[] id?: StringFilter<"SocialPost"> | string user_id?: StringFilter<"SocialPost"> | string task_id?: StringNullableFilter<"SocialPost"> | string | null clip_id?: StringNullableFilter<"SocialPost"> | string | null social_account_id?: StringNullableFilter<"SocialPost"> | string | null provider?: StringFilter<"SocialPost"> | string status?: StringFilter<"SocialPost"> | string scheduled_for?: DateTimeNullableFilter<"SocialPost"> | Date | string | null title?: StringNullableFilter<"SocialPost"> | string | null caption?: StringNullableFilter<"SocialPost"> | string | null hashtags?: StringNullableListFilter<"SocialPost"> privacy_level?: StringFilter<"SocialPost"> | string media_token?: StringNullableFilter<"SocialPost"> | string | null media_token_expires_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null source_file_path?: StringNullableFilter<"SocialPost"> | string | null pending_handle?: StringNullableFilter<"SocialPost"> | string | null external_post_id?: StringNullableFilter<"SocialPost"> | string | null external_url?: StringNullableFilter<"SocialPost"> | string | null error_message?: StringNullableFilter<"SocialPost"> | string | null attempts?: IntFilter<"SocialPost"> | number claimed_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null hook_type?: StringNullableFilter<"SocialPost"> | string | null hook_title?: StringNullableFilter<"SocialPost"> | string | null virality_score?: IntNullableFilter<"SocialPost"> | number | null hook_score?: IntNullableFilter<"SocialPost"> | number | null engagement_score?: IntNullableFilter<"SocialPost"> | number | null value_score?: IntNullableFilter<"SocialPost"> | number | null shareability_score?: IntNullableFilter<"SocialPost"> | number | null clip_duration?: FloatNullableFilter<"SocialPost"> | number | null published_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null last_metrics_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null metrics?: JsonNullableFilter<"SocialPost"> created_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null updated_at?: DateTimeNullableFilter<"SocialPost"> | Date | string | null } export type UserFeatureTourUpsertWithWhereUniqueWithoutUserInput = { where: UserFeatureTourWhereUniqueInput update: XOR create: XOR } export type UserFeatureTourUpdateWithWhereUniqueWithoutUserInput = { where: UserFeatureTourWhereUniqueInput data: XOR } export type UserFeatureTourUpdateManyWithWhereWithoutUserInput = { where: UserFeatureTourScalarWhereInput data: XOR } export type UserFeatureTourScalarWhereInput = { AND?: UserFeatureTourScalarWhereInput | UserFeatureTourScalarWhereInput[] OR?: UserFeatureTourScalarWhereInput[] NOT?: UserFeatureTourScalarWhereInput | UserFeatureTourScalarWhereInput[] user_id?: StringFilter<"UserFeatureTour"> | string tour_id?: StringFilter<"UserFeatureTour"> | string shown_at?: DateTimeFilter<"UserFeatureTour"> | Date | string completed_at?: DateTimeNullableFilter<"UserFeatureTour"> | Date | string | null dismissed_at?: DateTimeNullableFilter<"UserFeatureTour"> | Date | string | null last_step?: IntNullableFilter<"UserFeatureTour"> | number | null } export type UserCreateWithoutAcquisitionInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAcquisitionInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAcquisitionInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutAcquisitionInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAcquisitionInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAcquisitionInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAcquisitionInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutAffiliateInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAffiliateInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAffiliateInput = { where: UserWhereUniqueInput create: XOR } export type UserCreateWithoutReviewed_affiliatesInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutReviewed_affiliatesInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutReviewed_affiliatesInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutAffiliateInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAffiliateInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAffiliateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAffiliateInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserUpsertWithoutReviewed_affiliatesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutReviewed_affiliatesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutReviewed_affiliatesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutReviewed_affiliatesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutFeature_flags_updatedInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutFeature_flags_updatedInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutFeature_flags_updatedInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutFeature_flags_updatedInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutFeature_flags_updatedInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutFeature_flags_updatedInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutFeature_flags_updatedInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutApp_settingsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutApp_settingsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutApp_settingsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutApp_settingsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutApp_settingsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutApp_settingsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutApp_settingsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutTasksInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutTasksInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutTasksInput = { where: UserWhereUniqueInput create: XOR } export type SourceCreateWithoutTasksInput = { id?: string type: string title: string url?: string | null created_at?: Date | string updated_at?: Date | string } export type SourceUncheckedCreateWithoutTasksInput = { id?: string type: string title: string url?: string | null created_at?: Date | string updated_at?: Date | string } export type SourceCreateOrConnectWithoutTasksInput = { where: SourceWhereUniqueInput create: XOR } export type SocialPostCreateWithoutTaskInput = { id?: string clip_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null user: UserCreateNestedOneWithoutSocial_postsInput social_account?: SocialAccountCreateNestedOneWithoutPostsInput metric_history?: SocialPostMetricCreateNestedManyWithoutPostInput } export type SocialPostUncheckedCreateWithoutTaskInput = { id?: string user_id: string clip_id?: string | null social_account_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null metric_history?: SocialPostMetricUncheckedCreateNestedManyWithoutPostInput } export type SocialPostCreateOrConnectWithoutTaskInput = { where: SocialPostWhereUniqueInput create: XOR } export type SocialPostCreateManyTaskInputEnvelope = { data: SocialPostCreateManyTaskInput | SocialPostCreateManyTaskInput[] skipDuplicates?: boolean } export type UserUpsertWithoutTasksInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutTasksInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutTasksInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutTasksInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type SourceUpsertWithoutTasksInput = { update: XOR create: XOR where?: SourceWhereInput } export type SourceUpdateToOneWithWhereWithoutTasksInput = { where?: SourceWhereInput data: XOR } export type SourceUpdateWithoutTasksInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string url?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SourceUncheckedUpdateWithoutTasksInput = { id?: StringFieldUpdateOperationsInput | string type?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string url?: NullableStringFieldUpdateOperationsInput | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialPostUpsertWithWhereUniqueWithoutTaskInput = { where: SocialPostWhereUniqueInput update: XOR create: XOR } export type SocialPostUpdateWithWhereUniqueWithoutTaskInput = { where: SocialPostWhereUniqueInput data: XOR } export type SocialPostUpdateManyWithWhereWithoutTaskInput = { where: SocialPostScalarWhereInput data: XOR } export type UserCreateWithoutSocial_accountsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutSocial_accountsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutSocial_accountsInput = { where: UserWhereUniqueInput create: XOR } export type SocialPostCreateWithoutSocial_accountInput = { id?: string clip_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null user: UserCreateNestedOneWithoutSocial_postsInput task?: TaskCreateNestedOneWithoutSocial_postsInput metric_history?: SocialPostMetricCreateNestedManyWithoutPostInput } export type SocialPostUncheckedCreateWithoutSocial_accountInput = { id?: string user_id: string task_id?: string | null clip_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null metric_history?: SocialPostMetricUncheckedCreateNestedManyWithoutPostInput } export type SocialPostCreateOrConnectWithoutSocial_accountInput = { where: SocialPostWhereUniqueInput create: XOR } export type SocialPostCreateManySocial_accountInputEnvelope = { data: SocialPostCreateManySocial_accountInput | SocialPostCreateManySocial_accountInput[] skipDuplicates?: boolean } export type UserUpsertWithoutSocial_accountsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutSocial_accountsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutSocial_accountsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSocial_accountsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type SocialPostUpsertWithWhereUniqueWithoutSocial_accountInput = { where: SocialPostWhereUniqueInput update: XOR create: XOR } export type SocialPostUpdateWithWhereUniqueWithoutSocial_accountInput = { where: SocialPostWhereUniqueInput data: XOR } export type SocialPostUpdateManyWithWhereWithoutSocial_accountInput = { where: SocialPostScalarWhereInput data: XOR } export type UserCreateWithoutSocial_oauth_statesInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutSocial_oauth_statesInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutSocial_oauth_statesInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutSocial_oauth_statesInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutSocial_oauth_statesInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutSocial_oauth_statesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSocial_oauth_statesInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutSocial_postsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutSocial_postsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutSocial_postsInput = { where: UserWhereUniqueInput create: XOR } export type TaskCreateWithoutSocial_postsInput = { id?: string generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string user: UserCreateNestedOneWithoutTasksInput source?: SourceCreateNestedOneWithoutTasksInput } export type TaskUncheckedCreateWithoutSocial_postsInput = { id?: string user_id: string source_id?: string | null generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string } export type TaskCreateOrConnectWithoutSocial_postsInput = { where: TaskWhereUniqueInput create: XOR } export type SocialAccountCreateWithoutPostsInput = { id?: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null user: UserCreateNestedOneWithoutSocial_accountsInput } export type SocialAccountUncheckedCreateWithoutPostsInput = { id?: string user_id: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null } export type SocialAccountCreateOrConnectWithoutPostsInput = { where: SocialAccountWhereUniqueInput create: XOR } export type SocialPostMetricCreateWithoutPostInput = { id?: string captured_at?: Date | string | null views?: bigint | number | null likes?: bigint | number | null comments?: bigint | number | null shares?: bigint | number | null saves?: bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricUncheckedCreateWithoutPostInput = { id?: string captured_at?: Date | string | null views?: bigint | number | null likes?: bigint | number | null comments?: bigint | number | null shares?: bigint | number | null saves?: bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricCreateOrConnectWithoutPostInput = { where: SocialPostMetricWhereUniqueInput create: XOR } export type SocialPostMetricCreateManyPostInputEnvelope = { data: SocialPostMetricCreateManyPostInput | SocialPostMetricCreateManyPostInput[] skipDuplicates?: boolean } export type UserUpsertWithoutSocial_postsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutSocial_postsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutSocial_postsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSocial_postsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type TaskUpsertWithoutSocial_postsInput = { update: XOR create: XOR where?: TaskWhereInput } export type TaskUpdateToOneWithWhereWithoutSocial_postsInput = { where?: TaskWhereInput data: XOR } export type TaskUpdateWithoutSocial_postsInput = { id?: StringFieldUpdateOperationsInput | string generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutTasksNestedInput source?: SourceUpdateOneWithoutTasksNestedInput } export type TaskUncheckedUpdateWithoutSocial_postsInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string source_id?: NullableStringFieldUpdateOperationsInput | string | null generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialAccountUpsertWithoutPostsInput = { update: XOR create: XOR where?: SocialAccountWhereInput } export type SocialAccountUpdateToOneWithWhereWithoutPostsInput = { where?: SocialAccountWhereInput data: XOR } export type SocialAccountUpdateWithoutPostsInput = { id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutSocial_accountsNestedInput } export type SocialAccountUncheckedUpdateWithoutPostsInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialPostMetricUpsertWithWhereUniqueWithoutPostInput = { where: SocialPostMetricWhereUniqueInput update: XOR create: XOR } export type SocialPostMetricUpdateWithWhereUniqueWithoutPostInput = { where: SocialPostMetricWhereUniqueInput data: XOR } export type SocialPostMetricUpdateManyWithWhereWithoutPostInput = { where: SocialPostMetricScalarWhereInput data: XOR } export type SocialPostMetricScalarWhereInput = { AND?: SocialPostMetricScalarWhereInput | SocialPostMetricScalarWhereInput[] OR?: SocialPostMetricScalarWhereInput[] NOT?: SocialPostMetricScalarWhereInput | SocialPostMetricScalarWhereInput[] id?: StringFilter<"SocialPostMetric"> | string post_id?: StringFilter<"SocialPostMetric"> | string captured_at?: DateTimeNullableFilter<"SocialPostMetric"> | Date | string | null views?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null likes?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null comments?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null shares?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null saves?: BigIntNullableFilter<"SocialPostMetric"> | bigint | number | null raw?: JsonNullableFilter<"SocialPostMetric"> } export type SocialPostCreateWithoutMetric_historyInput = { id?: string clip_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null user: UserCreateNestedOneWithoutSocial_postsInput task?: TaskCreateNestedOneWithoutSocial_postsInput social_account?: SocialAccountCreateNestedOneWithoutPostsInput } export type SocialPostUncheckedCreateWithoutMetric_historyInput = { id?: string user_id: string task_id?: string | null clip_id?: string | null social_account_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type SocialPostCreateOrConnectWithoutMetric_historyInput = { where: SocialPostWhereUniqueInput create: XOR } export type SocialPostUpsertWithoutMetric_historyInput = { update: XOR create: XOR where?: SocialPostWhereInput } export type SocialPostUpdateToOneWithWhereWithoutMetric_historyInput = { where?: SocialPostWhereInput data: XOR } export type SocialPostUpdateWithoutMetric_historyInput = { id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutSocial_postsNestedInput task?: TaskUpdateOneWithoutSocial_postsNestedInput social_account?: SocialAccountUpdateOneWithoutPostsNestedInput } export type SocialPostUncheckedUpdateWithoutMetric_historyInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null clip_id?: NullableStringFieldUpdateOperationsInput | string | null social_account_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TaskCreateWithoutSourceInput = { id?: string generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string user: UserCreateNestedOneWithoutTasksInput social_posts?: SocialPostCreateNestedManyWithoutTaskInput } export type TaskUncheckedCreateWithoutSourceInput = { id?: string user_id: string generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string social_posts?: SocialPostUncheckedCreateNestedManyWithoutTaskInput } export type TaskCreateOrConnectWithoutSourceInput = { where: TaskWhereUniqueInput create: XOR } export type TaskCreateManySourceInputEnvelope = { data: TaskCreateManySourceInput | TaskCreateManySourceInput[] skipDuplicates?: boolean } export type TaskUpsertWithWhereUniqueWithoutSourceInput = { where: TaskWhereUniqueInput update: XOR create: XOR } export type TaskUpdateWithWhereUniqueWithoutSourceInput = { where: TaskWhereUniqueInput data: XOR } export type TaskUpdateManyWithWhereWithoutSourceInput = { where: TaskScalarWhereInput data: XOR } export type UserCreateWithoutSessionsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutSessionsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } 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 name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutSessionsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutAccountsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutAccountsInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput feature_tours?: UserFeatureTourUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutAccountsInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutAccountsInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutAccountsInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutAccountsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutAccountsInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput feature_tours?: UserFeatureTourUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutFeature_toursInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskCreateNestedManyWithoutUserInput sessions?: SessionCreateNestedManyWithoutUserInput accounts?: AccountCreateNestedManyWithoutUserInput app_settings?: AppSettingCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionCreateNestedOneWithoutUserInput affiliate?: AffiliateCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateCreateNestedManyWithoutUserInput social_posts?: SocialPostCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutFeature_toursInput = { id?: string name: string email: string emailVerified?: boolean image?: string | null createdAt?: Date | string updatedAt?: Date | string first_name?: string | null last_name?: string | null password_hash?: string | null default_font_family?: string | null default_font_size?: number | null default_font_color?: string | null notify_on_completion?: boolean default_clip_length?: string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: Date | string | null plan?: string subscription_status?: string subscription_provider?: string | null is_admin?: boolean stripe_customer_id?: string | null stripe_subscription_id?: string | null billing_period_start?: Date | string | null billing_period_end?: Date | string | null trial_ends_at?: Date | string | null subscription_cancel_at?: Date | string | null legacy_hd?: boolean pending_plan?: string | null pending_plan_invoice_id?: string | null tasks?: TaskUncheckedCreateNestedManyWithoutUserInput sessions?: SessionUncheckedCreateNestedManyWithoutUserInput accounts?: AccountUncheckedCreateNestedManyWithoutUserInput app_settings?: AppSettingUncheckedCreateNestedManyWithoutUserInput feature_flags_updated?: FeatureFlagUncheckedCreateNestedManyWithoutUpdated_by_userInput acquisition?: UserAcquisitionUncheckedCreateNestedOneWithoutUserInput affiliate?: AffiliateUncheckedCreateNestedOneWithoutUserInput reviewed_affiliates?: AffiliateUncheckedCreateNestedManyWithoutReviewerInput social_accounts?: SocialAccountUncheckedCreateNestedManyWithoutUserInput social_oauth_states?: SocialOauthStateUncheckedCreateNestedManyWithoutUserInput social_posts?: SocialPostUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutFeature_toursInput = { where: UserWhereUniqueInput create: XOR } export type UserUpsertWithoutFeature_toursInput = { update: XOR create: XOR where?: UserWhereInput } export type UserUpdateToOneWithWhereWithoutFeature_toursInput = { where?: UserWhereInput data: XOR } export type UserUpdateWithoutFeature_toursInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUpdateManyWithoutUserNestedInput sessions?: SessionUpdateManyWithoutUserNestedInput accounts?: AccountUpdateManyWithoutUserNestedInput app_settings?: AppSettingUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUpdateOneWithoutUserNestedInput affiliate?: AffiliateUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUpdateManyWithoutUserNestedInput social_posts?: SocialPostUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutFeature_toursInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string emailVerified?: BoolFieldUpdateOperationsInput | boolean image?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string first_name?: NullableStringFieldUpdateOperationsInput | string | null last_name?: NullableStringFieldUpdateOperationsInput | string | null password_hash?: NullableStringFieldUpdateOperationsInput | string | null default_font_family?: NullableStringFieldUpdateOperationsInput | string | null default_font_size?: NullableIntFieldUpdateOperationsInput | number | null default_font_color?: NullableStringFieldUpdateOperationsInput | string | null notify_on_completion?: BoolFieldUpdateOperationsInput | boolean default_clip_length?: StringFieldUpdateOperationsInput | string create_settings?: JsonNullValueInput | InputJsonValue product_updates_unsubscribed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null plan?: StringFieldUpdateOperationsInput | string subscription_status?: StringFieldUpdateOperationsInput | string subscription_provider?: NullableStringFieldUpdateOperationsInput | string | null is_admin?: BoolFieldUpdateOperationsInput | boolean stripe_customer_id?: NullableStringFieldUpdateOperationsInput | string | null stripe_subscription_id?: NullableStringFieldUpdateOperationsInput | string | null billing_period_start?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null billing_period_end?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null trial_ends_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null subscription_cancel_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null legacy_hd?: BoolFieldUpdateOperationsInput | boolean pending_plan?: NullableStringFieldUpdateOperationsInput | string | null pending_plan_invoice_id?: NullableStringFieldUpdateOperationsInput | string | null tasks?: TaskUncheckedUpdateManyWithoutUserNestedInput sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput app_settings?: AppSettingUncheckedUpdateManyWithoutUserNestedInput feature_flags_updated?: FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userNestedInput acquisition?: UserAcquisitionUncheckedUpdateOneWithoutUserNestedInput affiliate?: AffiliateUncheckedUpdateOneWithoutUserNestedInput reviewed_affiliates?: AffiliateUncheckedUpdateManyWithoutReviewerNestedInput social_accounts?: SocialAccountUncheckedUpdateManyWithoutUserNestedInput social_oauth_states?: SocialOauthStateUncheckedUpdateManyWithoutUserNestedInput social_posts?: SocialPostUncheckedUpdateManyWithoutUserNestedInput } export type TaskCreateManyUserInput = { id?: string source_id?: string | null generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string } export type SessionCreateManyUserInput = { id: string expiresAt: Date | string token: string createdAt: Date | string updatedAt: Date | string ipAddress?: string | null userAgent?: string | null } export type AccountCreateManyUserInput = { id: string accountId: string providerId: string accessToken?: string | null refreshToken?: string | null idToken?: string | null accessTokenExpiresAt?: Date | string | null refreshTokenExpiresAt?: Date | string | null scope?: string | null password?: string | null createdAt: Date | string updatedAt: Date | string } export type AppSettingCreateManyUserInput = { setting_key: string encrypted_value: string prefer_admin_value?: boolean created_at?: Date | string updated_at?: Date | string } export type FeatureFlagCreateManyUpdated_by_userInput = { key: string description?: string web_enabled?: boolean ios_enabled?: boolean admins_bypass?: boolean created_at?: Date | string updated_at?: Date | string } export type AffiliateCreateManyReviewerInput = { id?: string user_id: string slug?: string | null status?: string platform: string profile_url: string audience_size: string video_url?: string | null promotion_plan?: string | null decline_reason?: string | null stripe_promotion_code_id?: string | null app_store_code_added_at?: Date | string | null terms_accepted_at: Date | string reviewed_at?: Date | string | null created_at?: Date | string updated_at?: Date | string } export type SocialAccountCreateManyUserInput = { id?: string provider: string external_account_id: string display_name?: string | null username?: string | null avatar_url?: string | null access_token_encrypted: string refresh_token_encrypted?: string | null token_expires_at?: Date | string | null scopes?: string | null metadata?: JsonNullValueInput | InputJsonValue status?: string last_error?: string | null created_at?: Date | string | null updated_at?: Date | string | null revoked_at?: Date | string | null } export type SocialOauthStateCreateManyUserInput = { state: string provider: string code_verifier?: string | null redirect_uri: string created_at?: Date | string | null expires_at: Date | string } export type SocialPostCreateManyUserInput = { id?: string task_id?: string | null clip_id?: string | null social_account_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type UserFeatureTourCreateManyUserInput = { tour_id: string shown_at?: Date | string completed_at?: Date | string | null dismissed_at?: Date | string | null last_step?: number | null } export type TaskUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string source?: SourceUpdateOneWithoutTasksNestedInput social_posts?: SocialPostUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string source_id?: NullableStringFieldUpdateOperationsInput | string | null generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string social_posts?: SocialPostUncheckedUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string source_id?: NullableStringFieldUpdateOperationsInput | string | null generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null } export type SessionUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null } export type SessionUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string token?: StringFieldUpdateOperationsInput | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string ipAddress?: NullableStringFieldUpdateOperationsInput | string | null userAgent?: NullableStringFieldUpdateOperationsInput | string | null } export type AccountUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string accountId?: StringFieldUpdateOperationsInput | string providerId?: StringFieldUpdateOperationsInput | string accessToken?: NullableStringFieldUpdateOperationsInput | string | null refreshToken?: NullableStringFieldUpdateOperationsInput | string | null idToken?: NullableStringFieldUpdateOperationsInput | string | null accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null password?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AccountUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string accountId?: StringFieldUpdateOperationsInput | string providerId?: StringFieldUpdateOperationsInput | string accessToken?: NullableStringFieldUpdateOperationsInput | string | null refreshToken?: NullableStringFieldUpdateOperationsInput | string | null idToken?: NullableStringFieldUpdateOperationsInput | string | null accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null password?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AccountUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string accountId?: StringFieldUpdateOperationsInput | string providerId?: StringFieldUpdateOperationsInput | string accessToken?: NullableStringFieldUpdateOperationsInput | string | null refreshToken?: NullableStringFieldUpdateOperationsInput | string | null idToken?: NullableStringFieldUpdateOperationsInput | string | null accessTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null refreshTokenExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scope?: NullableStringFieldUpdateOperationsInput | string | null password?: NullableStringFieldUpdateOperationsInput | string | null createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingUpdateWithoutUserInput = { setting_key?: StringFieldUpdateOperationsInput | string encrypted_value?: StringFieldUpdateOperationsInput | string prefer_admin_value?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingUncheckedUpdateWithoutUserInput = { setting_key?: StringFieldUpdateOperationsInput | string encrypted_value?: StringFieldUpdateOperationsInput | string prefer_admin_value?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AppSettingUncheckedUpdateManyWithoutUserInput = { setting_key?: StringFieldUpdateOperationsInput | string encrypted_value?: StringFieldUpdateOperationsInput | string prefer_admin_value?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type FeatureFlagUpdateWithoutUpdated_by_userInput = { key?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string web_enabled?: BoolFieldUpdateOperationsInput | boolean ios_enabled?: BoolFieldUpdateOperationsInput | boolean admins_bypass?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type FeatureFlagUncheckedUpdateWithoutUpdated_by_userInput = { key?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string web_enabled?: BoolFieldUpdateOperationsInput | boolean ios_enabled?: BoolFieldUpdateOperationsInput | boolean admins_bypass?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type FeatureFlagUncheckedUpdateManyWithoutUpdated_by_userInput = { key?: StringFieldUpdateOperationsInput | string description?: StringFieldUpdateOperationsInput | string web_enabled?: BoolFieldUpdateOperationsInput | boolean ios_enabled?: BoolFieldUpdateOperationsInput | boolean admins_bypass?: BoolFieldUpdateOperationsInput | boolean created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateUpdateWithoutReviewerInput = { id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutAffiliateNestedInput } export type AffiliateUncheckedUpdateWithoutReviewerInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type AffiliateUncheckedUpdateManyWithoutReviewerInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string slug?: NullableStringFieldUpdateOperationsInput | string | null status?: StringFieldUpdateOperationsInput | string platform?: StringFieldUpdateOperationsInput | string profile_url?: StringFieldUpdateOperationsInput | string audience_size?: StringFieldUpdateOperationsInput | string video_url?: NullableStringFieldUpdateOperationsInput | string | null promotion_plan?: NullableStringFieldUpdateOperationsInput | string | null decline_reason?: NullableStringFieldUpdateOperationsInput | string | null stripe_promotion_code_id?: NullableStringFieldUpdateOperationsInput | string | null app_store_code_added_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null terms_accepted_at?: DateTimeFieldUpdateOperationsInput | Date | string reviewed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialAccountUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null posts?: SocialPostUpdateManyWithoutSocial_accountNestedInput } export type SocialAccountUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null posts?: SocialPostUncheckedUpdateManyWithoutSocial_accountNestedInput } export type SocialAccountUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string external_account_id?: StringFieldUpdateOperationsInput | string display_name?: NullableStringFieldUpdateOperationsInput | string | null username?: NullableStringFieldUpdateOperationsInput | string | null avatar_url?: NullableStringFieldUpdateOperationsInput | string | null access_token_encrypted?: StringFieldUpdateOperationsInput | string refresh_token_encrypted?: NullableStringFieldUpdateOperationsInput | string | null token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null scopes?: NullableStringFieldUpdateOperationsInput | string | null metadata?: JsonNullValueInput | InputJsonValue status?: StringFieldUpdateOperationsInput | string last_error?: NullableStringFieldUpdateOperationsInput | string | null created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null revoked_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialOauthStateUpdateWithoutUserInput = { state?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string code_verifier?: NullableStringFieldUpdateOperationsInput | string | null redirect_uri?: StringFieldUpdateOperationsInput | string created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialOauthStateUncheckedUpdateWithoutUserInput = { state?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string code_verifier?: NullableStringFieldUpdateOperationsInput | string | null redirect_uri?: StringFieldUpdateOperationsInput | string created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialOauthStateUncheckedUpdateManyWithoutUserInput = { state?: StringFieldUpdateOperationsInput | string provider?: StringFieldUpdateOperationsInput | string code_verifier?: NullableStringFieldUpdateOperationsInput | string | null redirect_uri?: StringFieldUpdateOperationsInput | string created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null expires_at?: DateTimeFieldUpdateOperationsInput | Date | string } export type SocialPostUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null task?: TaskUpdateOneWithoutSocial_postsNestedInput social_account?: SocialAccountUpdateOneWithoutPostsNestedInput metric_history?: SocialPostMetricUpdateManyWithoutPostNestedInput } export type SocialPostUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null clip_id?: NullableStringFieldUpdateOperationsInput | string | null social_account_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metric_history?: SocialPostMetricUncheckedUpdateManyWithoutPostNestedInput } export type SocialPostUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null clip_id?: NullableStringFieldUpdateOperationsInput | string | null social_account_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type UserFeatureTourUpdateWithoutUserInput = { tour_id?: StringFieldUpdateOperationsInput | string shown_at?: DateTimeFieldUpdateOperationsInput | Date | string completed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null dismissed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_step?: NullableIntFieldUpdateOperationsInput | number | null } export type UserFeatureTourUncheckedUpdateWithoutUserInput = { tour_id?: StringFieldUpdateOperationsInput | string shown_at?: DateTimeFieldUpdateOperationsInput | Date | string completed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null dismissed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_step?: NullableIntFieldUpdateOperationsInput | number | null } export type UserFeatureTourUncheckedUpdateManyWithoutUserInput = { tour_id?: StringFieldUpdateOperationsInput | string shown_at?: DateTimeFieldUpdateOperationsInput | Date | string completed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null dismissed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_step?: NullableIntFieldUpdateOperationsInput | number | null } export type SocialPostCreateManyTaskInput = { id?: string user_id: string clip_id?: string | null social_account_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type SocialPostUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutSocial_postsNestedInput social_account?: SocialAccountUpdateOneWithoutPostsNestedInput metric_history?: SocialPostMetricUpdateManyWithoutPostNestedInput } export type SocialPostUncheckedUpdateWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null social_account_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metric_history?: SocialPostMetricUncheckedUpdateManyWithoutPostNestedInput } export type SocialPostUncheckedUpdateManyWithoutTaskInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null social_account_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialPostCreateManySocial_accountInput = { id?: string user_id: string task_id?: string | null clip_id?: string | null provider: string status?: string scheduled_for?: Date | string | null title?: string | null caption?: string | null hashtags?: SocialPostCreatehashtagsInput | string[] privacy_level?: string media_token?: string | null media_token_expires_at?: Date | string | null source_file_path?: string | null pending_handle?: string | null external_post_id?: string | null external_url?: string | null error_message?: string | null attempts?: number claimed_at?: Date | string | null hook_type?: string | null hook_title?: string | null virality_score?: number | null hook_score?: number | null engagement_score?: number | null value_score?: number | null shareability_score?: number | null clip_duration?: number | null published_at?: Date | string | null last_metrics_at?: Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: Date | string | null updated_at?: Date | string | null } export type SocialPostUpdateWithoutSocial_accountInput = { id?: StringFieldUpdateOperationsInput | string clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: UserUpdateOneRequiredWithoutSocial_postsNestedInput task?: TaskUpdateOneWithoutSocial_postsNestedInput metric_history?: SocialPostMetricUpdateManyWithoutPostNestedInput } export type SocialPostUncheckedUpdateWithoutSocial_accountInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metric_history?: SocialPostMetricUncheckedUpdateManyWithoutPostNestedInput } export type SocialPostUncheckedUpdateManyWithoutSocial_accountInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string task_id?: NullableStringFieldUpdateOperationsInput | string | null clip_id?: NullableStringFieldUpdateOperationsInput | string | null provider?: StringFieldUpdateOperationsInput | string status?: StringFieldUpdateOperationsInput | string scheduled_for?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null title?: NullableStringFieldUpdateOperationsInput | string | null caption?: NullableStringFieldUpdateOperationsInput | string | null hashtags?: SocialPostUpdatehashtagsInput | string[] privacy_level?: StringFieldUpdateOperationsInput | string media_token?: NullableStringFieldUpdateOperationsInput | string | null media_token_expires_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null source_file_path?: NullableStringFieldUpdateOperationsInput | string | null pending_handle?: NullableStringFieldUpdateOperationsInput | string | null external_post_id?: NullableStringFieldUpdateOperationsInput | string | null external_url?: NullableStringFieldUpdateOperationsInput | string | null error_message?: NullableStringFieldUpdateOperationsInput | string | null attempts?: IntFieldUpdateOperationsInput | number claimed_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null hook_type?: NullableStringFieldUpdateOperationsInput | string | null hook_title?: NullableStringFieldUpdateOperationsInput | string | null virality_score?: NullableIntFieldUpdateOperationsInput | number | null hook_score?: NullableIntFieldUpdateOperationsInput | number | null engagement_score?: NullableIntFieldUpdateOperationsInput | number | null value_score?: NullableIntFieldUpdateOperationsInput | number | null shareability_score?: NullableIntFieldUpdateOperationsInput | number | null clip_duration?: NullableFloatFieldUpdateOperationsInput | number | null published_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null last_metrics_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null metrics?: NullableJsonNullValueInput | InputJsonValue created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type SocialPostMetricCreateManyPostInput = { id?: string captured_at?: Date | string | null views?: bigint | number | null likes?: bigint | number | null comments?: bigint | number | null shares?: bigint | number | null saves?: bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricUpdateWithoutPostInput = { id?: StringFieldUpdateOperationsInput | string captured_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null views?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null likes?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null comments?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null shares?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null saves?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricUncheckedUpdateWithoutPostInput = { id?: StringFieldUpdateOperationsInput | string captured_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null views?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null likes?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null comments?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null shares?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null saves?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type SocialPostMetricUncheckedUpdateManyWithoutPostInput = { id?: StringFieldUpdateOperationsInput | string captured_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null views?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null likes?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null comments?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null shares?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null saves?: NullableBigIntFieldUpdateOperationsInput | bigint | number | null raw?: NullableJsonNullValueInput | InputJsonValue } export type TaskCreateManySourceInput = { id?: string user_id: string generated_clips_ids?: TaskCreategenerated_clips_idsInput | string[] status?: string progress?: number | null progress_message?: string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: number | null completion_notification_sent_at?: Date | string | null share_token?: string | null share_enabled?: boolean font_family?: string | null font_size?: number | null font_color?: string | null caption_template?: string | null include_broll?: boolean | null created_at?: Date | string updated_at?: Date | string } export type TaskUpdateWithoutSourceInput = { id?: StringFieldUpdateOperationsInput | string generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string user?: UserUpdateOneRequiredWithoutTasksNestedInput social_posts?: SocialPostUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateWithoutSourceInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string social_posts?: SocialPostUncheckedUpdateManyWithoutTaskNestedInput } export type TaskUncheckedUpdateManyWithoutSourceInput = { id?: StringFieldUpdateOperationsInput | string user_id?: StringFieldUpdateOperationsInput | string generated_clips_ids?: TaskUpdategenerated_clips_idsInput | string[] status?: StringFieldUpdateOperationsInput | string progress?: NullableIntFieldUpdateOperationsInput | number | null progress_message?: NullableStringFieldUpdateOperationsInput | string | null source_metadata?: JsonNullValueInput | InputJsonValue source_duration_seconds?: NullableIntFieldUpdateOperationsInput | number | null completion_notification_sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null share_token?: NullableStringFieldUpdateOperationsInput | string | null share_enabled?: BoolFieldUpdateOperationsInput | boolean font_family?: NullableStringFieldUpdateOperationsInput | string | null font_size?: NullableIntFieldUpdateOperationsInput | number | null font_color?: NullableStringFieldUpdateOperationsInput | string | null caption_template?: NullableStringFieldUpdateOperationsInput | string | null include_broll?: NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: DateTimeFieldUpdateOperationsInput | Date | string updated_at?: DateTimeFieldUpdateOperationsInput | Date | string } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }