/** * 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 LauncherNotice * */ export type LauncherNotice = $Result.DefaultSelection /** * Model ProvisionedDevice * */ export type ProvisionedDevice = $Result.DefaultSelection /** * Model LauncherSshKey * */ export type LauncherSshKey = $Result.DefaultSelection /** * ## Prisma Client ʲˢ * * Type-safe database client for TypeScript & Node.js * @example * ``` * const prisma = new PrismaClient() * // Fetch zero or more LauncherNotices * const launcherNotices = await prisma.launcherNotice.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 LauncherNotices * const launcherNotices = await prisma.launcherNotice.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.launcherNotice`: Exposes CRUD operations for the **LauncherNotice** model. * Example usage: * ```ts * // Fetch zero or more LauncherNotices * const launcherNotices = await prisma.launcherNotice.findMany() * ``` */ get launcherNotice(): Prisma.LauncherNoticeDelegate; /** * `prisma.provisionedDevice`: Exposes CRUD operations for the **ProvisionedDevice** model. * Example usage: * ```ts * // Fetch zero or more ProvisionedDevices * const provisionedDevices = await prisma.provisionedDevice.findMany() * ``` */ get provisionedDevice(): Prisma.ProvisionedDeviceDelegate; /** * `prisma.launcherSshKey`: Exposes CRUD operations for the **LauncherSshKey** model. * Example usage: * ```ts * // Fetch zero or more LauncherSshKeys * const launcherSshKeys = await prisma.launcherSshKey.findMany() * ``` */ get launcherSshKey(): Prisma.LauncherSshKeyDelegate; } 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: { LauncherNotice: 'LauncherNotice', ProvisionedDevice: 'ProvisionedDevice', LauncherSshKey: 'LauncherSshKey' }; 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: "launcherNotice" | "provisionedDevice" | "launcherSshKey" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { LauncherNotice: { payload: Prisma.$LauncherNoticePayload fields: Prisma.LauncherNoticeFieldRefs operations: { findUnique: { args: Prisma.LauncherNoticeFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.LauncherNoticeFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.LauncherNoticeFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.LauncherNoticeFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.LauncherNoticeFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.LauncherNoticeCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.LauncherNoticeCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.LauncherNoticeCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.LauncherNoticeDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.LauncherNoticeUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.LauncherNoticeDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.LauncherNoticeUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.LauncherNoticeUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.LauncherNoticeUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.LauncherNoticeAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.LauncherNoticeGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.LauncherNoticeCountArgs result: $Utils.Optional | number } } } ProvisionedDevice: { payload: Prisma.$ProvisionedDevicePayload fields: Prisma.ProvisionedDeviceFieldRefs operations: { findUnique: { args: Prisma.ProvisionedDeviceFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.ProvisionedDeviceFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.ProvisionedDeviceFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.ProvisionedDeviceFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.ProvisionedDeviceFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.ProvisionedDeviceCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.ProvisionedDeviceCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.ProvisionedDeviceCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.ProvisionedDeviceDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.ProvisionedDeviceUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.ProvisionedDeviceDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.ProvisionedDeviceUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.ProvisionedDeviceUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.ProvisionedDeviceUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.ProvisionedDeviceAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.ProvisionedDeviceGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.ProvisionedDeviceCountArgs result: $Utils.Optional | number } } } LauncherSshKey: { payload: Prisma.$LauncherSshKeyPayload fields: Prisma.LauncherSshKeyFieldRefs operations: { findUnique: { args: Prisma.LauncherSshKeyFindUniqueArgs result: $Utils.PayloadToResult | null } findUniqueOrThrow: { args: Prisma.LauncherSshKeyFindUniqueOrThrowArgs result: $Utils.PayloadToResult } findFirst: { args: Prisma.LauncherSshKeyFindFirstArgs result: $Utils.PayloadToResult | null } findFirstOrThrow: { args: Prisma.LauncherSshKeyFindFirstOrThrowArgs result: $Utils.PayloadToResult } findMany: { args: Prisma.LauncherSshKeyFindManyArgs result: $Utils.PayloadToResult[] } create: { args: Prisma.LauncherSshKeyCreateArgs result: $Utils.PayloadToResult } createMany: { args: Prisma.LauncherSshKeyCreateManyArgs result: BatchPayload } createManyAndReturn: { args: Prisma.LauncherSshKeyCreateManyAndReturnArgs result: $Utils.PayloadToResult[] } delete: { args: Prisma.LauncherSshKeyDeleteArgs result: $Utils.PayloadToResult } update: { args: Prisma.LauncherSshKeyUpdateArgs result: $Utils.PayloadToResult } deleteMany: { args: Prisma.LauncherSshKeyDeleteManyArgs result: BatchPayload } updateMany: { args: Prisma.LauncherSshKeyUpdateManyArgs result: BatchPayload } updateManyAndReturn: { args: Prisma.LauncherSshKeyUpdateManyAndReturnArgs result: $Utils.PayloadToResult[] } upsert: { args: Prisma.LauncherSshKeyUpsertArgs result: $Utils.PayloadToResult } aggregate: { args: Prisma.LauncherSshKeyAggregateArgs result: $Utils.Optional } groupBy: { args: Prisma.LauncherSshKeyGroupByArgs result: $Utils.Optional[] } count: { args: Prisma.LauncherSshKeyCountArgs 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 = { launcherNotice?: LauncherNoticeOmit provisionedDevice?: ProvisionedDeviceOmit launcherSshKey?: LauncherSshKeyOmit } /* 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 */ /** * Models */ /** * Model LauncherNotice */ export type AggregateLauncherNotice = { _count: LauncherNoticeCountAggregateOutputType | null _avg: LauncherNoticeAvgAggregateOutputType | null _sum: LauncherNoticeSumAggregateOutputType | null _min: LauncherNoticeMinAggregateOutputType | null _max: LauncherNoticeMaxAggregateOutputType | null } export type LauncherNoticeAvgAggregateOutputType = { priority: number | null } export type LauncherNoticeSumAggregateOutputType = { priority: number | null } export type LauncherNoticeMinAggregateOutputType = { id: string | null appKey: string | null title: string | null body: string | null linkUrl: string | null isActive: boolean | null startsAt: Date | null endsAt: Date | null priority: number | null createdAt: Date | null updatedAt: Date | null } export type LauncherNoticeMaxAggregateOutputType = { id: string | null appKey: string | null title: string | null body: string | null linkUrl: string | null isActive: boolean | null startsAt: Date | null endsAt: Date | null priority: number | null createdAt: Date | null updatedAt: Date | null } export type LauncherNoticeCountAggregateOutputType = { id: number appKey: number title: number body: number linkUrl: number isActive: number startsAt: number endsAt: number priority: number createdAt: number updatedAt: number _all: number } export type LauncherNoticeAvgAggregateInputType = { priority?: true } export type LauncherNoticeSumAggregateInputType = { priority?: true } export type LauncherNoticeMinAggregateInputType = { id?: true appKey?: true title?: true body?: true linkUrl?: true isActive?: true startsAt?: true endsAt?: true priority?: true createdAt?: true updatedAt?: true } export type LauncherNoticeMaxAggregateInputType = { id?: true appKey?: true title?: true body?: true linkUrl?: true isActive?: true startsAt?: true endsAt?: true priority?: true createdAt?: true updatedAt?: true } export type LauncherNoticeCountAggregateInputType = { id?: true appKey?: true title?: true body?: true linkUrl?: true isActive?: true startsAt?: true endsAt?: true priority?: true createdAt?: true updatedAt?: true _all?: true } export type LauncherNoticeAggregateArgs = { /** * Filter which LauncherNotice to aggregate. */ where?: LauncherNoticeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherNotices to fetch. */ orderBy?: LauncherNoticeOrderByWithRelationInput | LauncherNoticeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: LauncherNoticeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherNotices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherNotices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned LauncherNotices **/ _count?: true | LauncherNoticeCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: LauncherNoticeAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: LauncherNoticeSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LauncherNoticeMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LauncherNoticeMaxAggregateInputType } export type GetLauncherNoticeAggregateType = { [P in keyof T & keyof AggregateLauncherNotice]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type LauncherNoticeGroupByArgs = { where?: LauncherNoticeWhereInput orderBy?: LauncherNoticeOrderByWithAggregationInput | LauncherNoticeOrderByWithAggregationInput[] by: LauncherNoticeScalarFieldEnum[] | LauncherNoticeScalarFieldEnum having?: LauncherNoticeScalarWhereWithAggregatesInput take?: number skip?: number _count?: LauncherNoticeCountAggregateInputType | true _avg?: LauncherNoticeAvgAggregateInputType _sum?: LauncherNoticeSumAggregateInputType _min?: LauncherNoticeMinAggregateInputType _max?: LauncherNoticeMaxAggregateInputType } export type LauncherNoticeGroupByOutputType = { id: string appKey: string title: string body: string linkUrl: string | null isActive: boolean startsAt: Date | null endsAt: Date | null priority: number createdAt: Date updatedAt: Date _count: LauncherNoticeCountAggregateOutputType | null _avg: LauncherNoticeAvgAggregateOutputType | null _sum: LauncherNoticeSumAggregateOutputType | null _min: LauncherNoticeMinAggregateOutputType | null _max: LauncherNoticeMaxAggregateOutputType | null } type GetLauncherNoticeGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof LauncherNoticeGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type LauncherNoticeSelect = $Extensions.GetSelect<{ id?: boolean appKey?: boolean title?: boolean body?: boolean linkUrl?: boolean isActive?: boolean startsAt?: boolean endsAt?: boolean priority?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["launcherNotice"]> export type LauncherNoticeSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appKey?: boolean title?: boolean body?: boolean linkUrl?: boolean isActive?: boolean startsAt?: boolean endsAt?: boolean priority?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["launcherNotice"]> export type LauncherNoticeSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean appKey?: boolean title?: boolean body?: boolean linkUrl?: boolean isActive?: boolean startsAt?: boolean endsAt?: boolean priority?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["launcherNotice"]> export type LauncherNoticeSelectScalar = { id?: boolean appKey?: boolean title?: boolean body?: boolean linkUrl?: boolean isActive?: boolean startsAt?: boolean endsAt?: boolean priority?: boolean createdAt?: boolean updatedAt?: boolean } export type LauncherNoticeOmit = $Extensions.GetOmit<"id" | "appKey" | "title" | "body" | "linkUrl" | "isActive" | "startsAt" | "endsAt" | "priority" | "createdAt" | "updatedAt", ExtArgs["result"]["launcherNotice"]> export type $LauncherNoticePayload = { name: "LauncherNotice" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string appKey: string title: string body: string linkUrl: string | null isActive: boolean startsAt: Date | null endsAt: Date | null priority: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["launcherNotice"]> composites: {} } type LauncherNoticeGetPayload = $Result.GetResult type LauncherNoticeCountArgs = Omit & { select?: LauncherNoticeCountAggregateInputType | true } export interface LauncherNoticeDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['LauncherNotice'], meta: { name: 'LauncherNotice' } } /** * Find zero or one LauncherNotice that matches the filter. * @param {LauncherNoticeFindUniqueArgs} args - Arguments to find a LauncherNotice * @example * // Get one LauncherNotice * const launcherNotice = await prisma.launcherNotice.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one LauncherNotice that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LauncherNoticeFindUniqueOrThrowArgs} args - Arguments to find a LauncherNotice * @example * // Get one LauncherNotice * const launcherNotice = await prisma.launcherNotice.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first LauncherNotice 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 {LauncherNoticeFindFirstArgs} args - Arguments to find a LauncherNotice * @example * // Get one LauncherNotice * const launcherNotice = await prisma.launcherNotice.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first LauncherNotice 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 {LauncherNoticeFindFirstOrThrowArgs} args - Arguments to find a LauncherNotice * @example * // Get one LauncherNotice * const launcherNotice = await prisma.launcherNotice.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more LauncherNotices 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 {LauncherNoticeFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all LauncherNotices * const launcherNotices = await prisma.launcherNotice.findMany() * * // Get first 10 LauncherNotices * const launcherNotices = await prisma.launcherNotice.findMany({ take: 10 }) * * // Only select the `id` * const launcherNoticeWithIdOnly = await prisma.launcherNotice.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a LauncherNotice. * @param {LauncherNoticeCreateArgs} args - Arguments to create a LauncherNotice. * @example * // Create one LauncherNotice * const LauncherNotice = await prisma.launcherNotice.create({ * data: { * // ... data to create a LauncherNotice * } * }) * */ create(args: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many LauncherNotices. * @param {LauncherNoticeCreateManyArgs} args - Arguments to create many LauncherNotices. * @example * // Create many LauncherNotices * const launcherNotice = await prisma.launcherNotice.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many LauncherNotices and returns the data saved in the database. * @param {LauncherNoticeCreateManyAndReturnArgs} args - Arguments to create many LauncherNotices. * @example * // Create many LauncherNotices * const launcherNotice = await prisma.launcherNotice.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many LauncherNotices and only return the `id` * const launcherNoticeWithIdOnly = await prisma.launcherNotice.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 LauncherNotice. * @param {LauncherNoticeDeleteArgs} args - Arguments to delete one LauncherNotice. * @example * // Delete one LauncherNotice * const LauncherNotice = await prisma.launcherNotice.delete({ * where: { * // ... filter to delete one LauncherNotice * } * }) * */ delete(args: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one LauncherNotice. * @param {LauncherNoticeUpdateArgs} args - Arguments to update one LauncherNotice. * @example * // Update one LauncherNotice * const launcherNotice = await prisma.launcherNotice.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more LauncherNotices. * @param {LauncherNoticeDeleteManyArgs} args - Arguments to filter LauncherNotices to delete. * @example * // Delete a few LauncherNotices * const { count } = await prisma.launcherNotice.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LauncherNotices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherNoticeUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many LauncherNotices * const launcherNotice = await prisma.launcherNotice.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LauncherNotices and returns the data updated in the database. * @param {LauncherNoticeUpdateManyAndReturnArgs} args - Arguments to update many LauncherNotices. * @example * // Update many LauncherNotices * const launcherNotice = await prisma.launcherNotice.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more LauncherNotices and only return the `id` * const launcherNoticeWithIdOnly = await prisma.launcherNotice.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 LauncherNotice. * @param {LauncherNoticeUpsertArgs} args - Arguments to update or create a LauncherNotice. * @example * // Update or create a LauncherNotice * const launcherNotice = await prisma.launcherNotice.upsert({ * create: { * // ... data to create a LauncherNotice * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the LauncherNotice we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__LauncherNoticeClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of LauncherNotices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherNoticeCountArgs} args - Arguments to filter LauncherNotices to count. * @example * // Count the number of LauncherNotices * const count = await prisma.launcherNotice.count({ * where: { * // ... the filter for the LauncherNotices 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 LauncherNotice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherNoticeAggregateArgs} 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 LauncherNotice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherNoticeGroupByArgs} 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 LauncherNoticeGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: LauncherNoticeGroupByArgs['orderBy'] } : { orderBy?: LauncherNoticeGroupByArgs['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 ? GetLauncherNoticeGroupByPayload : Prisma.PrismaPromise /** * Fields of the LauncherNotice model */ readonly fields: LauncherNoticeFieldRefs; } /** * The delegate class that acts as a "Promise-like" for LauncherNotice. * 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__LauncherNoticeClient 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 LauncherNotice model */ interface LauncherNoticeFieldRefs { readonly id: FieldRef<"LauncherNotice", 'String'> readonly appKey: FieldRef<"LauncherNotice", 'String'> readonly title: FieldRef<"LauncherNotice", 'String'> readonly body: FieldRef<"LauncherNotice", 'String'> readonly linkUrl: FieldRef<"LauncherNotice", 'String'> readonly isActive: FieldRef<"LauncherNotice", 'Boolean'> readonly startsAt: FieldRef<"LauncherNotice", 'DateTime'> readonly endsAt: FieldRef<"LauncherNotice", 'DateTime'> readonly priority: FieldRef<"LauncherNotice", 'Int'> readonly createdAt: FieldRef<"LauncherNotice", 'DateTime'> readonly updatedAt: FieldRef<"LauncherNotice", 'DateTime'> } // Custom InputTypes /** * LauncherNotice findUnique */ export type LauncherNoticeFindUniqueArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * Filter, which LauncherNotice to fetch. */ where: LauncherNoticeWhereUniqueInput } /** * LauncherNotice findUniqueOrThrow */ export type LauncherNoticeFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * Filter, which LauncherNotice to fetch. */ where: LauncherNoticeWhereUniqueInput } /** * LauncherNotice findFirst */ export type LauncherNoticeFindFirstArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * Filter, which LauncherNotice to fetch. */ where?: LauncherNoticeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherNotices to fetch. */ orderBy?: LauncherNoticeOrderByWithRelationInput | LauncherNoticeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LauncherNotices. */ cursor?: LauncherNoticeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherNotices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherNotices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LauncherNotices. */ distinct?: LauncherNoticeScalarFieldEnum | LauncherNoticeScalarFieldEnum[] } /** * LauncherNotice findFirstOrThrow */ export type LauncherNoticeFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * Filter, which LauncherNotice to fetch. */ where?: LauncherNoticeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherNotices to fetch. */ orderBy?: LauncherNoticeOrderByWithRelationInput | LauncherNoticeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LauncherNotices. */ cursor?: LauncherNoticeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherNotices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherNotices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LauncherNotices. */ distinct?: LauncherNoticeScalarFieldEnum | LauncherNoticeScalarFieldEnum[] } /** * LauncherNotice findMany */ export type LauncherNoticeFindManyArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * Filter, which LauncherNotices to fetch. */ where?: LauncherNoticeWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherNotices to fetch. */ orderBy?: LauncherNoticeOrderByWithRelationInput | LauncherNoticeOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing LauncherNotices. */ cursor?: LauncherNoticeWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherNotices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherNotices. */ skip?: number distinct?: LauncherNoticeScalarFieldEnum | LauncherNoticeScalarFieldEnum[] } /** * LauncherNotice create */ export type LauncherNoticeCreateArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * The data needed to create a LauncherNotice. */ data: XOR } /** * LauncherNotice createMany */ export type LauncherNoticeCreateManyArgs = { /** * The data used to create many LauncherNotices. */ data: LauncherNoticeCreateManyInput | LauncherNoticeCreateManyInput[] skipDuplicates?: boolean } /** * LauncherNotice createManyAndReturn */ export type LauncherNoticeCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelectCreateManyAndReturn | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * The data used to create many LauncherNotices. */ data: LauncherNoticeCreateManyInput | LauncherNoticeCreateManyInput[] skipDuplicates?: boolean } /** * LauncherNotice update */ export type LauncherNoticeUpdateArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * The data needed to update a LauncherNotice. */ data: XOR /** * Choose, which LauncherNotice to update. */ where: LauncherNoticeWhereUniqueInput } /** * LauncherNotice updateMany */ export type LauncherNoticeUpdateManyArgs = { /** * The data used to update LauncherNotices. */ data: XOR /** * Filter which LauncherNotices to update */ where?: LauncherNoticeWhereInput /** * Limit how many LauncherNotices to update. */ limit?: number } /** * LauncherNotice updateManyAndReturn */ export type LauncherNoticeUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelectUpdateManyAndReturn | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * The data used to update LauncherNotices. */ data: XOR /** * Filter which LauncherNotices to update */ where?: LauncherNoticeWhereInput /** * Limit how many LauncherNotices to update. */ limit?: number } /** * LauncherNotice upsert */ export type LauncherNoticeUpsertArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * The filter to search for the LauncherNotice to update in case it exists. */ where: LauncherNoticeWhereUniqueInput /** * In case the LauncherNotice found by the `where` argument doesn't exist, create a new LauncherNotice with this data. */ create: XOR /** * In case the LauncherNotice was found with the provided `where` argument, update it with this data. */ update: XOR } /** * LauncherNotice delete */ export type LauncherNoticeDeleteArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null /** * Filter which LauncherNotice to delete. */ where: LauncherNoticeWhereUniqueInput } /** * LauncherNotice deleteMany */ export type LauncherNoticeDeleteManyArgs = { /** * Filter which LauncherNotices to delete */ where?: LauncherNoticeWhereInput /** * Limit how many LauncherNotices to delete. */ limit?: number } /** * LauncherNotice without action */ export type LauncherNoticeDefaultArgs = { /** * Select specific fields to fetch from the LauncherNotice */ select?: LauncherNoticeSelect | null /** * Omit specific fields from the LauncherNotice */ omit?: LauncherNoticeOmit | null } /** * Model ProvisionedDevice */ export type AggregateProvisionedDevice = { _count: ProvisionedDeviceCountAggregateOutputType | null _min: ProvisionedDeviceMinAggregateOutputType | null _max: ProvisionedDeviceMaxAggregateOutputType | null } export type ProvisionedDeviceMinAggregateOutputType = { id: string | null accountEmail: string | null authUserId: string | null hostname: string | null tailscaleHostname: string | null sshUser: string | null workspaceRoot: string | null usageType: string | null os: string | null arch: string | null kernel: string | null distro: string | null installedAt: Date | null lastProvisionedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ProvisionedDeviceMaxAggregateOutputType = { id: string | null accountEmail: string | null authUserId: string | null hostname: string | null tailscaleHostname: string | null sshUser: string | null workspaceRoot: string | null usageType: string | null os: string | null arch: string | null kernel: string | null distro: string | null installedAt: Date | null lastProvisionedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type ProvisionedDeviceCountAggregateOutputType = { id: number accountEmail: number authUserId: number hostname: number tailscaleHostname: number sshUser: number workspaceRoot: number usageType: number os: number arch: number kernel: number distro: number device: number installedAt: number lastProvisionedAt: number createdAt: number updatedAt: number _all: number } export type ProvisionedDeviceMinAggregateInputType = { id?: true accountEmail?: true authUserId?: true hostname?: true tailscaleHostname?: true sshUser?: true workspaceRoot?: true usageType?: true os?: true arch?: true kernel?: true distro?: true installedAt?: true lastProvisionedAt?: true createdAt?: true updatedAt?: true } export type ProvisionedDeviceMaxAggregateInputType = { id?: true accountEmail?: true authUserId?: true hostname?: true tailscaleHostname?: true sshUser?: true workspaceRoot?: true usageType?: true os?: true arch?: true kernel?: true distro?: true installedAt?: true lastProvisionedAt?: true createdAt?: true updatedAt?: true } export type ProvisionedDeviceCountAggregateInputType = { id?: true accountEmail?: true authUserId?: true hostname?: true tailscaleHostname?: true sshUser?: true workspaceRoot?: true usageType?: true os?: true arch?: true kernel?: true distro?: true device?: true installedAt?: true lastProvisionedAt?: true createdAt?: true updatedAt?: true _all?: true } export type ProvisionedDeviceAggregateArgs = { /** * Filter which ProvisionedDevice to aggregate. */ where?: ProvisionedDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProvisionedDevices to fetch. */ orderBy?: ProvisionedDeviceOrderByWithRelationInput | ProvisionedDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: ProvisionedDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProvisionedDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProvisionedDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ProvisionedDevices **/ _count?: true | ProvisionedDeviceCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ProvisionedDeviceMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ProvisionedDeviceMaxAggregateInputType } export type GetProvisionedDeviceAggregateType = { [P in keyof T & keyof AggregateProvisionedDevice]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type ProvisionedDeviceGroupByArgs = { where?: ProvisionedDeviceWhereInput orderBy?: ProvisionedDeviceOrderByWithAggregationInput | ProvisionedDeviceOrderByWithAggregationInput[] by: ProvisionedDeviceScalarFieldEnum[] | ProvisionedDeviceScalarFieldEnum having?: ProvisionedDeviceScalarWhereWithAggregatesInput take?: number skip?: number _count?: ProvisionedDeviceCountAggregateInputType | true _min?: ProvisionedDeviceMinAggregateInputType _max?: ProvisionedDeviceMaxAggregateInputType } export type ProvisionedDeviceGroupByOutputType = { id: string accountEmail: string authUserId: string | null hostname: string tailscaleHostname: string sshUser: string | null workspaceRoot: string | null usageType: string os: string | null arch: string | null kernel: string | null distro: string | null device: JsonValue | null installedAt: Date lastProvisionedAt: Date createdAt: Date updatedAt: Date _count: ProvisionedDeviceCountAggregateOutputType | null _min: ProvisionedDeviceMinAggregateOutputType | null _max: ProvisionedDeviceMaxAggregateOutputType | null } type GetProvisionedDeviceGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof ProvisionedDeviceGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type ProvisionedDeviceSelect = $Extensions.GetSelect<{ id?: boolean accountEmail?: boolean authUserId?: boolean hostname?: boolean tailscaleHostname?: boolean sshUser?: boolean workspaceRoot?: boolean usageType?: boolean os?: boolean arch?: boolean kernel?: boolean distro?: boolean device?: boolean installedAt?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["provisionedDevice"]> export type ProvisionedDeviceSelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean accountEmail?: boolean authUserId?: boolean hostname?: boolean tailscaleHostname?: boolean sshUser?: boolean workspaceRoot?: boolean usageType?: boolean os?: boolean arch?: boolean kernel?: boolean distro?: boolean device?: boolean installedAt?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["provisionedDevice"]> export type ProvisionedDeviceSelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean accountEmail?: boolean authUserId?: boolean hostname?: boolean tailscaleHostname?: boolean sshUser?: boolean workspaceRoot?: boolean usageType?: boolean os?: boolean arch?: boolean kernel?: boolean distro?: boolean device?: boolean installedAt?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["provisionedDevice"]> export type ProvisionedDeviceSelectScalar = { id?: boolean accountEmail?: boolean authUserId?: boolean hostname?: boolean tailscaleHostname?: boolean sshUser?: boolean workspaceRoot?: boolean usageType?: boolean os?: boolean arch?: boolean kernel?: boolean distro?: boolean device?: boolean installedAt?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type ProvisionedDeviceOmit = $Extensions.GetOmit<"id" | "accountEmail" | "authUserId" | "hostname" | "tailscaleHostname" | "sshUser" | "workspaceRoot" | "usageType" | "os" | "arch" | "kernel" | "distro" | "device" | "installedAt" | "lastProvisionedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["provisionedDevice"]> export type $ProvisionedDevicePayload = { name: "ProvisionedDevice" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string accountEmail: string authUserId: string | null hostname: string tailscaleHostname: string sshUser: string | null workspaceRoot: string | null usageType: string os: string | null arch: string | null kernel: string | null distro: string | null device: Prisma.JsonValue | null installedAt: Date lastProvisionedAt: Date createdAt: Date updatedAt: Date }, ExtArgs["result"]["provisionedDevice"]> composites: {} } type ProvisionedDeviceGetPayload = $Result.GetResult type ProvisionedDeviceCountArgs = Omit & { select?: ProvisionedDeviceCountAggregateInputType | true } export interface ProvisionedDeviceDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ProvisionedDevice'], meta: { name: 'ProvisionedDevice' } } /** * Find zero or one ProvisionedDevice that matches the filter. * @param {ProvisionedDeviceFindUniqueArgs} args - Arguments to find a ProvisionedDevice * @example * // Get one ProvisionedDevice * const provisionedDevice = await prisma.provisionedDevice.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one ProvisionedDevice that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProvisionedDeviceFindUniqueOrThrowArgs} args - Arguments to find a ProvisionedDevice * @example * // Get one ProvisionedDevice * const provisionedDevice = await prisma.provisionedDevice.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first ProvisionedDevice 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 {ProvisionedDeviceFindFirstArgs} args - Arguments to find a ProvisionedDevice * @example * // Get one ProvisionedDevice * const provisionedDevice = await prisma.provisionedDevice.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first ProvisionedDevice 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 {ProvisionedDeviceFindFirstOrThrowArgs} args - Arguments to find a ProvisionedDevice * @example * // Get one ProvisionedDevice * const provisionedDevice = await prisma.provisionedDevice.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more ProvisionedDevices 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 {ProvisionedDeviceFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all ProvisionedDevices * const provisionedDevices = await prisma.provisionedDevice.findMany() * * // Get first 10 ProvisionedDevices * const provisionedDevices = await prisma.provisionedDevice.findMany({ take: 10 }) * * // Only select the `id` * const provisionedDeviceWithIdOnly = await prisma.provisionedDevice.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a ProvisionedDevice. * @param {ProvisionedDeviceCreateArgs} args - Arguments to create a ProvisionedDevice. * @example * // Create one ProvisionedDevice * const ProvisionedDevice = await prisma.provisionedDevice.create({ * data: { * // ... data to create a ProvisionedDevice * } * }) * */ create(args: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many ProvisionedDevices. * @param {ProvisionedDeviceCreateManyArgs} args - Arguments to create many ProvisionedDevices. * @example * // Create many ProvisionedDevices * const provisionedDevice = await prisma.provisionedDevice.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many ProvisionedDevices and returns the data saved in the database. * @param {ProvisionedDeviceCreateManyAndReturnArgs} args - Arguments to create many ProvisionedDevices. * @example * // Create many ProvisionedDevices * const provisionedDevice = await prisma.provisionedDevice.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many ProvisionedDevices and only return the `id` * const provisionedDeviceWithIdOnly = await prisma.provisionedDevice.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 ProvisionedDevice. * @param {ProvisionedDeviceDeleteArgs} args - Arguments to delete one ProvisionedDevice. * @example * // Delete one ProvisionedDevice * const ProvisionedDevice = await prisma.provisionedDevice.delete({ * where: { * // ... filter to delete one ProvisionedDevice * } * }) * */ delete(args: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one ProvisionedDevice. * @param {ProvisionedDeviceUpdateArgs} args - Arguments to update one ProvisionedDevice. * @example * // Update one ProvisionedDevice * const provisionedDevice = await prisma.provisionedDevice.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more ProvisionedDevices. * @param {ProvisionedDeviceDeleteManyArgs} args - Arguments to filter ProvisionedDevices to delete. * @example * // Delete a few ProvisionedDevices * const { count } = await prisma.provisionedDevice.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProvisionedDevices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProvisionedDeviceUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many ProvisionedDevices * const provisionedDevice = await prisma.provisionedDevice.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more ProvisionedDevices and returns the data updated in the database. * @param {ProvisionedDeviceUpdateManyAndReturnArgs} args - Arguments to update many ProvisionedDevices. * @example * // Update many ProvisionedDevices * const provisionedDevice = await prisma.provisionedDevice.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more ProvisionedDevices and only return the `id` * const provisionedDeviceWithIdOnly = await prisma.provisionedDevice.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 ProvisionedDevice. * @param {ProvisionedDeviceUpsertArgs} args - Arguments to update or create a ProvisionedDevice. * @example * // Update or create a ProvisionedDevice * const provisionedDevice = await prisma.provisionedDevice.upsert({ * create: { * // ... data to create a ProvisionedDevice * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the ProvisionedDevice we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__ProvisionedDeviceClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of ProvisionedDevices. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProvisionedDeviceCountArgs} args - Arguments to filter ProvisionedDevices to count. * @example * // Count the number of ProvisionedDevices * const count = await prisma.provisionedDevice.count({ * where: { * // ... the filter for the ProvisionedDevices 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 ProvisionedDevice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProvisionedDeviceAggregateArgs} 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 ProvisionedDevice. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ProvisionedDeviceGroupByArgs} 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 ProvisionedDeviceGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: ProvisionedDeviceGroupByArgs['orderBy'] } : { orderBy?: ProvisionedDeviceGroupByArgs['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 ? GetProvisionedDeviceGroupByPayload : Prisma.PrismaPromise /** * Fields of the ProvisionedDevice model */ readonly fields: ProvisionedDeviceFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ProvisionedDevice. * 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__ProvisionedDeviceClient 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 ProvisionedDevice model */ interface ProvisionedDeviceFieldRefs { readonly id: FieldRef<"ProvisionedDevice", 'String'> readonly accountEmail: FieldRef<"ProvisionedDevice", 'String'> readonly authUserId: FieldRef<"ProvisionedDevice", 'String'> readonly hostname: FieldRef<"ProvisionedDevice", 'String'> readonly tailscaleHostname: FieldRef<"ProvisionedDevice", 'String'> readonly sshUser: FieldRef<"ProvisionedDevice", 'String'> readonly workspaceRoot: FieldRef<"ProvisionedDevice", 'String'> readonly usageType: FieldRef<"ProvisionedDevice", 'String'> readonly os: FieldRef<"ProvisionedDevice", 'String'> readonly arch: FieldRef<"ProvisionedDevice", 'String'> readonly kernel: FieldRef<"ProvisionedDevice", 'String'> readonly distro: FieldRef<"ProvisionedDevice", 'String'> readonly device: FieldRef<"ProvisionedDevice", 'Json'> readonly installedAt: FieldRef<"ProvisionedDevice", 'DateTime'> readonly lastProvisionedAt: FieldRef<"ProvisionedDevice", 'DateTime'> readonly createdAt: FieldRef<"ProvisionedDevice", 'DateTime'> readonly updatedAt: FieldRef<"ProvisionedDevice", 'DateTime'> } // Custom InputTypes /** * ProvisionedDevice findUnique */ export type ProvisionedDeviceFindUniqueArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * Filter, which ProvisionedDevice to fetch. */ where: ProvisionedDeviceWhereUniqueInput } /** * ProvisionedDevice findUniqueOrThrow */ export type ProvisionedDeviceFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * Filter, which ProvisionedDevice to fetch. */ where: ProvisionedDeviceWhereUniqueInput } /** * ProvisionedDevice findFirst */ export type ProvisionedDeviceFindFirstArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * Filter, which ProvisionedDevice to fetch. */ where?: ProvisionedDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProvisionedDevices to fetch. */ orderBy?: ProvisionedDeviceOrderByWithRelationInput | ProvisionedDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProvisionedDevices. */ cursor?: ProvisionedDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProvisionedDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProvisionedDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProvisionedDevices. */ distinct?: ProvisionedDeviceScalarFieldEnum | ProvisionedDeviceScalarFieldEnum[] } /** * ProvisionedDevice findFirstOrThrow */ export type ProvisionedDeviceFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * Filter, which ProvisionedDevice to fetch. */ where?: ProvisionedDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProvisionedDevices to fetch. */ orderBy?: ProvisionedDeviceOrderByWithRelationInput | ProvisionedDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ProvisionedDevices. */ cursor?: ProvisionedDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProvisionedDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProvisionedDevices. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ProvisionedDevices. */ distinct?: ProvisionedDeviceScalarFieldEnum | ProvisionedDeviceScalarFieldEnum[] } /** * ProvisionedDevice findMany */ export type ProvisionedDeviceFindManyArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * Filter, which ProvisionedDevices to fetch. */ where?: ProvisionedDeviceWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ProvisionedDevices to fetch. */ orderBy?: ProvisionedDeviceOrderByWithRelationInput | ProvisionedDeviceOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ProvisionedDevices. */ cursor?: ProvisionedDeviceWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ProvisionedDevices from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` ProvisionedDevices. */ skip?: number distinct?: ProvisionedDeviceScalarFieldEnum | ProvisionedDeviceScalarFieldEnum[] } /** * ProvisionedDevice create */ export type ProvisionedDeviceCreateArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * The data needed to create a ProvisionedDevice. */ data: XOR } /** * ProvisionedDevice createMany */ export type ProvisionedDeviceCreateManyArgs = { /** * The data used to create many ProvisionedDevices. */ data: ProvisionedDeviceCreateManyInput | ProvisionedDeviceCreateManyInput[] skipDuplicates?: boolean } /** * ProvisionedDevice createManyAndReturn */ export type ProvisionedDeviceCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelectCreateManyAndReturn | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * The data used to create many ProvisionedDevices. */ data: ProvisionedDeviceCreateManyInput | ProvisionedDeviceCreateManyInput[] skipDuplicates?: boolean } /** * ProvisionedDevice update */ export type ProvisionedDeviceUpdateArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * The data needed to update a ProvisionedDevice. */ data: XOR /** * Choose, which ProvisionedDevice to update. */ where: ProvisionedDeviceWhereUniqueInput } /** * ProvisionedDevice updateMany */ export type ProvisionedDeviceUpdateManyArgs = { /** * The data used to update ProvisionedDevices. */ data: XOR /** * Filter which ProvisionedDevices to update */ where?: ProvisionedDeviceWhereInput /** * Limit how many ProvisionedDevices to update. */ limit?: number } /** * ProvisionedDevice updateManyAndReturn */ export type ProvisionedDeviceUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelectUpdateManyAndReturn | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * The data used to update ProvisionedDevices. */ data: XOR /** * Filter which ProvisionedDevices to update */ where?: ProvisionedDeviceWhereInput /** * Limit how many ProvisionedDevices to update. */ limit?: number } /** * ProvisionedDevice upsert */ export type ProvisionedDeviceUpsertArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * The filter to search for the ProvisionedDevice to update in case it exists. */ where: ProvisionedDeviceWhereUniqueInput /** * In case the ProvisionedDevice found by the `where` argument doesn't exist, create a new ProvisionedDevice with this data. */ create: XOR /** * In case the ProvisionedDevice was found with the provided `where` argument, update it with this data. */ update: XOR } /** * ProvisionedDevice delete */ export type ProvisionedDeviceDeleteArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null /** * Filter which ProvisionedDevice to delete. */ where: ProvisionedDeviceWhereUniqueInput } /** * ProvisionedDevice deleteMany */ export type ProvisionedDeviceDeleteManyArgs = { /** * Filter which ProvisionedDevices to delete */ where?: ProvisionedDeviceWhereInput /** * Limit how many ProvisionedDevices to delete. */ limit?: number } /** * ProvisionedDevice without action */ export type ProvisionedDeviceDefaultArgs = { /** * Select specific fields to fetch from the ProvisionedDevice */ select?: ProvisionedDeviceSelect | null /** * Omit specific fields from the ProvisionedDevice */ omit?: ProvisionedDeviceOmit | null } /** * Model LauncherSshKey */ export type AggregateLauncherSshKey = { _count: LauncherSshKeyCountAggregateOutputType | null _min: LauncherSshKeyMinAggregateOutputType | null _max: LauncherSshKeyMaxAggregateOutputType | null } export type LauncherSshKeyMinAggregateOutputType = { id: string | null accountEmail: string | null authUserId: string | null publicKey: string | null publicKeyHash: string | null keyType: string | null label: string | null lastProvisionedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type LauncherSshKeyMaxAggregateOutputType = { id: string | null accountEmail: string | null authUserId: string | null publicKey: string | null publicKeyHash: string | null keyType: string | null label: string | null lastProvisionedAt: Date | null createdAt: Date | null updatedAt: Date | null } export type LauncherSshKeyCountAggregateOutputType = { id: number accountEmail: number authUserId: number publicKey: number publicKeyHash: number keyType: number label: number lastProvisionedAt: number createdAt: number updatedAt: number _all: number } export type LauncherSshKeyMinAggregateInputType = { id?: true accountEmail?: true authUserId?: true publicKey?: true publicKeyHash?: true keyType?: true label?: true lastProvisionedAt?: true createdAt?: true updatedAt?: true } export type LauncherSshKeyMaxAggregateInputType = { id?: true accountEmail?: true authUserId?: true publicKey?: true publicKeyHash?: true keyType?: true label?: true lastProvisionedAt?: true createdAt?: true updatedAt?: true } export type LauncherSshKeyCountAggregateInputType = { id?: true accountEmail?: true authUserId?: true publicKey?: true publicKeyHash?: true keyType?: true label?: true lastProvisionedAt?: true createdAt?: true updatedAt?: true _all?: true } export type LauncherSshKeyAggregateArgs = { /** * Filter which LauncherSshKey to aggregate. */ where?: LauncherSshKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherSshKeys to fetch. */ orderBy?: LauncherSshKeyOrderByWithRelationInput | LauncherSshKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: LauncherSshKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherSshKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherSshKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned LauncherSshKeys **/ _count?: true | LauncherSshKeyCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LauncherSshKeyMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LauncherSshKeyMaxAggregateInputType } export type GetLauncherSshKeyAggregateType = { [P in keyof T & keyof AggregateLauncherSshKey]: P extends '_count' | 'count' ? T[P] extends true ? number : GetScalarType : GetScalarType } export type LauncherSshKeyGroupByArgs = { where?: LauncherSshKeyWhereInput orderBy?: LauncherSshKeyOrderByWithAggregationInput | LauncherSshKeyOrderByWithAggregationInput[] by: LauncherSshKeyScalarFieldEnum[] | LauncherSshKeyScalarFieldEnum having?: LauncherSshKeyScalarWhereWithAggregatesInput take?: number skip?: number _count?: LauncherSshKeyCountAggregateInputType | true _min?: LauncherSshKeyMinAggregateInputType _max?: LauncherSshKeyMaxAggregateInputType } export type LauncherSshKeyGroupByOutputType = { id: string accountEmail: string authUserId: string | null publicKey: string publicKeyHash: string keyType: string | null label: string | null lastProvisionedAt: Date createdAt: Date updatedAt: Date _count: LauncherSshKeyCountAggregateOutputType | null _min: LauncherSshKeyMinAggregateOutputType | null _max: LauncherSshKeyMaxAggregateOutputType | null } type GetLauncherSshKeyGroupByPayload = Prisma.PrismaPromise< Array< PickEnumerable & { [P in ((keyof T) & (keyof LauncherSshKeyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : GetScalarType : GetScalarType } > > export type LauncherSshKeySelect = $Extensions.GetSelect<{ id?: boolean accountEmail?: boolean authUserId?: boolean publicKey?: boolean publicKeyHash?: boolean keyType?: boolean label?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["launcherSshKey"]> export type LauncherSshKeySelectCreateManyAndReturn = $Extensions.GetSelect<{ id?: boolean accountEmail?: boolean authUserId?: boolean publicKey?: boolean publicKeyHash?: boolean keyType?: boolean label?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["launcherSshKey"]> export type LauncherSshKeySelectUpdateManyAndReturn = $Extensions.GetSelect<{ id?: boolean accountEmail?: boolean authUserId?: boolean publicKey?: boolean publicKeyHash?: boolean keyType?: boolean label?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["launcherSshKey"]> export type LauncherSshKeySelectScalar = { id?: boolean accountEmail?: boolean authUserId?: boolean publicKey?: boolean publicKeyHash?: boolean keyType?: boolean label?: boolean lastProvisionedAt?: boolean createdAt?: boolean updatedAt?: boolean } export type LauncherSshKeyOmit = $Extensions.GetOmit<"id" | "accountEmail" | "authUserId" | "publicKey" | "publicKeyHash" | "keyType" | "label" | "lastProvisionedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["launcherSshKey"]> export type $LauncherSshKeyPayload = { name: "LauncherSshKey" objects: {} scalars: $Extensions.GetPayloadResult<{ id: string accountEmail: string authUserId: string | null publicKey: string publicKeyHash: string keyType: string | null label: string | null lastProvisionedAt: Date createdAt: Date updatedAt: Date }, ExtArgs["result"]["launcherSshKey"]> composites: {} } type LauncherSshKeyGetPayload = $Result.GetResult type LauncherSshKeyCountArgs = Omit & { select?: LauncherSshKeyCountAggregateInputType | true } export interface LauncherSshKeyDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['LauncherSshKey'], meta: { name: 'LauncherSshKey' } } /** * Find zero or one LauncherSshKey that matches the filter. * @param {LauncherSshKeyFindUniqueArgs} args - Arguments to find a LauncherSshKey * @example * // Get one LauncherSshKey * const launcherSshKey = await prisma.launcherSshKey.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one LauncherSshKey that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LauncherSshKeyFindUniqueOrThrowArgs} args - Arguments to find a LauncherSshKey * @example * // Get one LauncherSshKey * const launcherSshKey = await prisma.launcherSshKey.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first LauncherSshKey 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 {LauncherSshKeyFindFirstArgs} args - Arguments to find a LauncherSshKey * @example * // Get one LauncherSshKey * const launcherSshKey = await prisma.launcherSshKey.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first LauncherSshKey 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 {LauncherSshKeyFindFirstOrThrowArgs} args - Arguments to find a LauncherSshKey * @example * // Get one LauncherSshKey * const launcherSshKey = await prisma.launcherSshKey.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more LauncherSshKeys 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 {LauncherSshKeyFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all LauncherSshKeys * const launcherSshKeys = await prisma.launcherSshKey.findMany() * * // Get first 10 LauncherSshKeys * const launcherSshKeys = await prisma.launcherSshKey.findMany({ take: 10 }) * * // Only select the `id` * const launcherSshKeyWithIdOnly = await prisma.launcherSshKey.findMany({ select: { id: true } }) * */ findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", GlobalOmitOptions>> /** * Create a LauncherSshKey. * @param {LauncherSshKeyCreateArgs} args - Arguments to create a LauncherSshKey. * @example * // Create one LauncherSshKey * const LauncherSshKey = await prisma.launcherSshKey.create({ * data: { * // ... data to create a LauncherSshKey * } * }) * */ create(args: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many LauncherSshKeys. * @param {LauncherSshKeyCreateManyArgs} args - Arguments to create many LauncherSshKeys. * @example * // Create many LauncherSshKeys * const launcherSshKey = await prisma.launcherSshKey.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Create many LauncherSshKeys and returns the data saved in the database. * @param {LauncherSshKeyCreateManyAndReturnArgs} args - Arguments to create many LauncherSshKeys. * @example * // Create many LauncherSshKeys * const launcherSshKey = await prisma.launcherSshKey.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many LauncherSshKeys and only return the `id` * const launcherSshKeyWithIdOnly = await prisma.launcherSshKey.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 LauncherSshKey. * @param {LauncherSshKeyDeleteArgs} args - Arguments to delete one LauncherSshKey. * @example * // Delete one LauncherSshKey * const LauncherSshKey = await prisma.launcherSshKey.delete({ * where: { * // ... filter to delete one LauncherSshKey * } * }) * */ delete(args: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one LauncherSshKey. * @param {LauncherSshKeyUpdateArgs} args - Arguments to update one LauncherSshKey. * @example * // Update one LauncherSshKey * const launcherSshKey = await prisma.launcherSshKey.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more LauncherSshKeys. * @param {LauncherSshKeyDeleteManyArgs} args - Arguments to filter LauncherSshKeys to delete. * @example * // Delete a few LauncherSshKeys * const { count } = await prisma.launcherSshKey.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LauncherSshKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherSshKeyUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many LauncherSshKeys * const launcherSshKey = await prisma.launcherSshKey.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LauncherSshKeys and returns the data updated in the database. * @param {LauncherSshKeyUpdateManyAndReturnArgs} args - Arguments to update many LauncherSshKeys. * @example * // Update many LauncherSshKeys * const launcherSshKey = await prisma.launcherSshKey.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more LauncherSshKeys and only return the `id` * const launcherSshKeyWithIdOnly = await prisma.launcherSshKey.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 LauncherSshKey. * @param {LauncherSshKeyUpsertArgs} args - Arguments to update or create a LauncherSshKey. * @example * // Update or create a LauncherSshKey * const launcherSshKey = await prisma.launcherSshKey.upsert({ * create: { * // ... data to create a LauncherSshKey * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the LauncherSshKey we want to update * } * }) */ upsert(args: SelectSubset>): Prisma__LauncherSshKeyClient<$Result.GetResult, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of LauncherSshKeys. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherSshKeyCountArgs} args - Arguments to filter LauncherSshKeys to count. * @example * // Count the number of LauncherSshKeys * const count = await prisma.launcherSshKey.count({ * where: { * // ... the filter for the LauncherSshKeys 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 LauncherSshKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherSshKeyAggregateArgs} 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 LauncherSshKey. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LauncherSshKeyGroupByArgs} 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 LauncherSshKeyGroupByArgs, HasSelectOrTake extends Or< Extends<'skip', Keys>, Extends<'take', Keys> >, OrderByArg extends True extends HasSelectOrTake ? { orderBy: LauncherSshKeyGroupByArgs['orderBy'] } : { orderBy?: LauncherSshKeyGroupByArgs['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 ? GetLauncherSshKeyGroupByPayload : Prisma.PrismaPromise /** * Fields of the LauncherSshKey model */ readonly fields: LauncherSshKeyFieldRefs; } /** * The delegate class that acts as a "Promise-like" for LauncherSshKey. * 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__LauncherSshKeyClient 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 LauncherSshKey model */ interface LauncherSshKeyFieldRefs { readonly id: FieldRef<"LauncherSshKey", 'String'> readonly accountEmail: FieldRef<"LauncherSshKey", 'String'> readonly authUserId: FieldRef<"LauncherSshKey", 'String'> readonly publicKey: FieldRef<"LauncherSshKey", 'String'> readonly publicKeyHash: FieldRef<"LauncherSshKey", 'String'> readonly keyType: FieldRef<"LauncherSshKey", 'String'> readonly label: FieldRef<"LauncherSshKey", 'String'> readonly lastProvisionedAt: FieldRef<"LauncherSshKey", 'DateTime'> readonly createdAt: FieldRef<"LauncherSshKey", 'DateTime'> readonly updatedAt: FieldRef<"LauncherSshKey", 'DateTime'> } // Custom InputTypes /** * LauncherSshKey findUnique */ export type LauncherSshKeyFindUniqueArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * Filter, which LauncherSshKey to fetch. */ where: LauncherSshKeyWhereUniqueInput } /** * LauncherSshKey findUniqueOrThrow */ export type LauncherSshKeyFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * Filter, which LauncherSshKey to fetch. */ where: LauncherSshKeyWhereUniqueInput } /** * LauncherSshKey findFirst */ export type LauncherSshKeyFindFirstArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * Filter, which LauncherSshKey to fetch. */ where?: LauncherSshKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherSshKeys to fetch. */ orderBy?: LauncherSshKeyOrderByWithRelationInput | LauncherSshKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LauncherSshKeys. */ cursor?: LauncherSshKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherSshKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherSshKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LauncherSshKeys. */ distinct?: LauncherSshKeyScalarFieldEnum | LauncherSshKeyScalarFieldEnum[] } /** * LauncherSshKey findFirstOrThrow */ export type LauncherSshKeyFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * Filter, which LauncherSshKey to fetch. */ where?: LauncherSshKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherSshKeys to fetch. */ orderBy?: LauncherSshKeyOrderByWithRelationInput | LauncherSshKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LauncherSshKeys. */ cursor?: LauncherSshKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherSshKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherSshKeys. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LauncherSshKeys. */ distinct?: LauncherSshKeyScalarFieldEnum | LauncherSshKeyScalarFieldEnum[] } /** * LauncherSshKey findMany */ export type LauncherSshKeyFindManyArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * Filter, which LauncherSshKeys to fetch. */ where?: LauncherSshKeyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LauncherSshKeys to fetch. */ orderBy?: LauncherSshKeyOrderByWithRelationInput | LauncherSshKeyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing LauncherSshKeys. */ cursor?: LauncherSshKeyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LauncherSshKeys from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` LauncherSshKeys. */ skip?: number distinct?: LauncherSshKeyScalarFieldEnum | LauncherSshKeyScalarFieldEnum[] } /** * LauncherSshKey create */ export type LauncherSshKeyCreateArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * The data needed to create a LauncherSshKey. */ data: XOR } /** * LauncherSshKey createMany */ export type LauncherSshKeyCreateManyArgs = { /** * The data used to create many LauncherSshKeys. */ data: LauncherSshKeyCreateManyInput | LauncherSshKeyCreateManyInput[] skipDuplicates?: boolean } /** * LauncherSshKey createManyAndReturn */ export type LauncherSshKeyCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelectCreateManyAndReturn | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * The data used to create many LauncherSshKeys. */ data: LauncherSshKeyCreateManyInput | LauncherSshKeyCreateManyInput[] skipDuplicates?: boolean } /** * LauncherSshKey update */ export type LauncherSshKeyUpdateArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * The data needed to update a LauncherSshKey. */ data: XOR /** * Choose, which LauncherSshKey to update. */ where: LauncherSshKeyWhereUniqueInput } /** * LauncherSshKey updateMany */ export type LauncherSshKeyUpdateManyArgs = { /** * The data used to update LauncherSshKeys. */ data: XOR /** * Filter which LauncherSshKeys to update */ where?: LauncherSshKeyWhereInput /** * Limit how many LauncherSshKeys to update. */ limit?: number } /** * LauncherSshKey updateManyAndReturn */ export type LauncherSshKeyUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelectUpdateManyAndReturn | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * The data used to update LauncherSshKeys. */ data: XOR /** * Filter which LauncherSshKeys to update */ where?: LauncherSshKeyWhereInput /** * Limit how many LauncherSshKeys to update. */ limit?: number } /** * LauncherSshKey upsert */ export type LauncherSshKeyUpsertArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * The filter to search for the LauncherSshKey to update in case it exists. */ where: LauncherSshKeyWhereUniqueInput /** * In case the LauncherSshKey found by the `where` argument doesn't exist, create a new LauncherSshKey with this data. */ create: XOR /** * In case the LauncherSshKey was found with the provided `where` argument, update it with this data. */ update: XOR } /** * LauncherSshKey delete */ export type LauncherSshKeyDeleteArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null /** * Filter which LauncherSshKey to delete. */ where: LauncherSshKeyWhereUniqueInput } /** * LauncherSshKey deleteMany */ export type LauncherSshKeyDeleteManyArgs = { /** * Filter which LauncherSshKeys to delete */ where?: LauncherSshKeyWhereInput /** * Limit how many LauncherSshKeys to delete. */ limit?: number } /** * LauncherSshKey without action */ export type LauncherSshKeyDefaultArgs = { /** * Select specific fields to fetch from the LauncherSshKey */ select?: LauncherSshKeySelect | null /** * Omit specific fields from the LauncherSshKey */ omit?: LauncherSshKeyOmit | null } /** * Enums */ export const TransactionIsolationLevel: { ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const LauncherNoticeScalarFieldEnum: { id: 'id', appKey: 'appKey', title: 'title', body: 'body', linkUrl: 'linkUrl', isActive: 'isActive', startsAt: 'startsAt', endsAt: 'endsAt', priority: 'priority', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type LauncherNoticeScalarFieldEnum = (typeof LauncherNoticeScalarFieldEnum)[keyof typeof LauncherNoticeScalarFieldEnum] export const ProvisionedDeviceScalarFieldEnum: { id: 'id', accountEmail: 'accountEmail', authUserId: 'authUserId', hostname: 'hostname', tailscaleHostname: 'tailscaleHostname', sshUser: 'sshUser', workspaceRoot: 'workspaceRoot', usageType: 'usageType', os: 'os', arch: 'arch', kernel: 'kernel', distro: 'distro', device: 'device', installedAt: 'installedAt', lastProvisionedAt: 'lastProvisionedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type ProvisionedDeviceScalarFieldEnum = (typeof ProvisionedDeviceScalarFieldEnum)[keyof typeof ProvisionedDeviceScalarFieldEnum] export const LauncherSshKeyScalarFieldEnum: { id: 'id', accountEmail: 'accountEmail', authUserId: 'authUserId', publicKey: 'publicKey', publicKeyHash: 'publicKeyHash', keyType: 'keyType', label: 'label', lastProvisionedAt: 'lastProvisionedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; export type LauncherSshKeyScalarFieldEnum = (typeof LauncherSshKeyScalarFieldEnum)[keyof typeof LauncherSshKeyScalarFieldEnum] export const SortOrder: { asc: 'asc', desc: 'desc' }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const NullableJsonNullValueInput: { DbNull: typeof DbNull, JsonNull: typeof JsonNull }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] export const QueryMode: { default: 'default', insensitive: 'insensitive' }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const NullsOrder: { first: 'first', last: 'last' }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] export const JsonNullValueFilter: { DbNull: typeof DbNull, JsonNull: typeof JsonNull, AnyNull: typeof AnyNull }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> /** * Reference to a field of type 'Boolean' */ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> /** * Reference to a field of type '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[]'> /** * Deep Input Types */ export type LauncherNoticeWhereInput = { AND?: LauncherNoticeWhereInput | LauncherNoticeWhereInput[] OR?: LauncherNoticeWhereInput[] NOT?: LauncherNoticeWhereInput | LauncherNoticeWhereInput[] id?: UuidFilter<"LauncherNotice"> | string appKey?: StringFilter<"LauncherNotice"> | string title?: StringFilter<"LauncherNotice"> | string body?: StringFilter<"LauncherNotice"> | string linkUrl?: StringNullableFilter<"LauncherNotice"> | string | null isActive?: BoolFilter<"LauncherNotice"> | boolean startsAt?: DateTimeNullableFilter<"LauncherNotice"> | Date | string | null endsAt?: DateTimeNullableFilter<"LauncherNotice"> | Date | string | null priority?: IntFilter<"LauncherNotice"> | number createdAt?: DateTimeFilter<"LauncherNotice"> | Date | string updatedAt?: DateTimeFilter<"LauncherNotice"> | Date | string } export type LauncherNoticeOrderByWithRelationInput = { id?: SortOrder appKey?: SortOrder title?: SortOrder body?: SortOrder linkUrl?: SortOrderInput | SortOrder isActive?: SortOrder startsAt?: SortOrderInput | SortOrder endsAt?: SortOrderInput | SortOrder priority?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LauncherNoticeWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: LauncherNoticeWhereInput | LauncherNoticeWhereInput[] OR?: LauncherNoticeWhereInput[] NOT?: LauncherNoticeWhereInput | LauncherNoticeWhereInput[] appKey?: StringFilter<"LauncherNotice"> | string title?: StringFilter<"LauncherNotice"> | string body?: StringFilter<"LauncherNotice"> | string linkUrl?: StringNullableFilter<"LauncherNotice"> | string | null isActive?: BoolFilter<"LauncherNotice"> | boolean startsAt?: DateTimeNullableFilter<"LauncherNotice"> | Date | string | null endsAt?: DateTimeNullableFilter<"LauncherNotice"> | Date | string | null priority?: IntFilter<"LauncherNotice"> | number createdAt?: DateTimeFilter<"LauncherNotice"> | Date | string updatedAt?: DateTimeFilter<"LauncherNotice"> | Date | string }, "id"> export type LauncherNoticeOrderByWithAggregationInput = { id?: SortOrder appKey?: SortOrder title?: SortOrder body?: SortOrder linkUrl?: SortOrderInput | SortOrder isActive?: SortOrder startsAt?: SortOrderInput | SortOrder endsAt?: SortOrderInput | SortOrder priority?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: LauncherNoticeCountOrderByAggregateInput _avg?: LauncherNoticeAvgOrderByAggregateInput _max?: LauncherNoticeMaxOrderByAggregateInput _min?: LauncherNoticeMinOrderByAggregateInput _sum?: LauncherNoticeSumOrderByAggregateInput } export type LauncherNoticeScalarWhereWithAggregatesInput = { AND?: LauncherNoticeScalarWhereWithAggregatesInput | LauncherNoticeScalarWhereWithAggregatesInput[] OR?: LauncherNoticeScalarWhereWithAggregatesInput[] NOT?: LauncherNoticeScalarWhereWithAggregatesInput | LauncherNoticeScalarWhereWithAggregatesInput[] id?: UuidWithAggregatesFilter<"LauncherNotice"> | string appKey?: StringWithAggregatesFilter<"LauncherNotice"> | string title?: StringWithAggregatesFilter<"LauncherNotice"> | string body?: StringWithAggregatesFilter<"LauncherNotice"> | string linkUrl?: StringNullableWithAggregatesFilter<"LauncherNotice"> | string | null isActive?: BoolWithAggregatesFilter<"LauncherNotice"> | boolean startsAt?: DateTimeNullableWithAggregatesFilter<"LauncherNotice"> | Date | string | null endsAt?: DateTimeNullableWithAggregatesFilter<"LauncherNotice"> | Date | string | null priority?: IntWithAggregatesFilter<"LauncherNotice"> | number createdAt?: DateTimeWithAggregatesFilter<"LauncherNotice"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"LauncherNotice"> | Date | string } export type ProvisionedDeviceWhereInput = { AND?: ProvisionedDeviceWhereInput | ProvisionedDeviceWhereInput[] OR?: ProvisionedDeviceWhereInput[] NOT?: ProvisionedDeviceWhereInput | ProvisionedDeviceWhereInput[] id?: UuidFilter<"ProvisionedDevice"> | string accountEmail?: StringFilter<"ProvisionedDevice"> | string authUserId?: UuidNullableFilter<"ProvisionedDevice"> | string | null hostname?: StringFilter<"ProvisionedDevice"> | string tailscaleHostname?: StringFilter<"ProvisionedDevice"> | string sshUser?: StringNullableFilter<"ProvisionedDevice"> | string | null workspaceRoot?: StringNullableFilter<"ProvisionedDevice"> | string | null usageType?: StringFilter<"ProvisionedDevice"> | string os?: StringNullableFilter<"ProvisionedDevice"> | string | null arch?: StringNullableFilter<"ProvisionedDevice"> | string | null kernel?: StringNullableFilter<"ProvisionedDevice"> | string | null distro?: StringNullableFilter<"ProvisionedDevice"> | string | null device?: JsonNullableFilter<"ProvisionedDevice"> installedAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string lastProvisionedAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string createdAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string updatedAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string } export type ProvisionedDeviceOrderByWithRelationInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrderInput | SortOrder hostname?: SortOrder tailscaleHostname?: SortOrder sshUser?: SortOrderInput | SortOrder workspaceRoot?: SortOrderInput | SortOrder usageType?: SortOrder os?: SortOrderInput | SortOrder arch?: SortOrderInput | SortOrder kernel?: SortOrderInput | SortOrder distro?: SortOrderInput | SortOrder device?: SortOrderInput | SortOrder installedAt?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProvisionedDeviceWhereUniqueInput = Prisma.AtLeast<{ id?: string accountEmail_tailscaleHostname?: ProvisionedDeviceAccountEmailTailscaleHostnameCompoundUniqueInput AND?: ProvisionedDeviceWhereInput | ProvisionedDeviceWhereInput[] OR?: ProvisionedDeviceWhereInput[] NOT?: ProvisionedDeviceWhereInput | ProvisionedDeviceWhereInput[] accountEmail?: StringFilter<"ProvisionedDevice"> | string authUserId?: UuidNullableFilter<"ProvisionedDevice"> | string | null hostname?: StringFilter<"ProvisionedDevice"> | string tailscaleHostname?: StringFilter<"ProvisionedDevice"> | string sshUser?: StringNullableFilter<"ProvisionedDevice"> | string | null workspaceRoot?: StringNullableFilter<"ProvisionedDevice"> | string | null usageType?: StringFilter<"ProvisionedDevice"> | string os?: StringNullableFilter<"ProvisionedDevice"> | string | null arch?: StringNullableFilter<"ProvisionedDevice"> | string | null kernel?: StringNullableFilter<"ProvisionedDevice"> | string | null distro?: StringNullableFilter<"ProvisionedDevice"> | string | null device?: JsonNullableFilter<"ProvisionedDevice"> installedAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string lastProvisionedAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string createdAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string updatedAt?: DateTimeFilter<"ProvisionedDevice"> | Date | string }, "id" | "accountEmail_tailscaleHostname"> export type ProvisionedDeviceOrderByWithAggregationInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrderInput | SortOrder hostname?: SortOrder tailscaleHostname?: SortOrder sshUser?: SortOrderInput | SortOrder workspaceRoot?: SortOrderInput | SortOrder usageType?: SortOrder os?: SortOrderInput | SortOrder arch?: SortOrderInput | SortOrder kernel?: SortOrderInput | SortOrder distro?: SortOrderInput | SortOrder device?: SortOrderInput | SortOrder installedAt?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: ProvisionedDeviceCountOrderByAggregateInput _max?: ProvisionedDeviceMaxOrderByAggregateInput _min?: ProvisionedDeviceMinOrderByAggregateInput } export type ProvisionedDeviceScalarWhereWithAggregatesInput = { AND?: ProvisionedDeviceScalarWhereWithAggregatesInput | ProvisionedDeviceScalarWhereWithAggregatesInput[] OR?: ProvisionedDeviceScalarWhereWithAggregatesInput[] NOT?: ProvisionedDeviceScalarWhereWithAggregatesInput | ProvisionedDeviceScalarWhereWithAggregatesInput[] id?: UuidWithAggregatesFilter<"ProvisionedDevice"> | string accountEmail?: StringWithAggregatesFilter<"ProvisionedDevice"> | string authUserId?: UuidNullableWithAggregatesFilter<"ProvisionedDevice"> | string | null hostname?: StringWithAggregatesFilter<"ProvisionedDevice"> | string tailscaleHostname?: StringWithAggregatesFilter<"ProvisionedDevice"> | string sshUser?: StringNullableWithAggregatesFilter<"ProvisionedDevice"> | string | null workspaceRoot?: StringNullableWithAggregatesFilter<"ProvisionedDevice"> | string | null usageType?: StringWithAggregatesFilter<"ProvisionedDevice"> | string os?: StringNullableWithAggregatesFilter<"ProvisionedDevice"> | string | null arch?: StringNullableWithAggregatesFilter<"ProvisionedDevice"> | string | null kernel?: StringNullableWithAggregatesFilter<"ProvisionedDevice"> | string | null distro?: StringNullableWithAggregatesFilter<"ProvisionedDevice"> | string | null device?: JsonNullableWithAggregatesFilter<"ProvisionedDevice"> installedAt?: DateTimeWithAggregatesFilter<"ProvisionedDevice"> | Date | string lastProvisionedAt?: DateTimeWithAggregatesFilter<"ProvisionedDevice"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"ProvisionedDevice"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"ProvisionedDevice"> | Date | string } export type LauncherSshKeyWhereInput = { AND?: LauncherSshKeyWhereInput | LauncherSshKeyWhereInput[] OR?: LauncherSshKeyWhereInput[] NOT?: LauncherSshKeyWhereInput | LauncherSshKeyWhereInput[] id?: UuidFilter<"LauncherSshKey"> | string accountEmail?: StringFilter<"LauncherSshKey"> | string authUserId?: UuidNullableFilter<"LauncherSshKey"> | string | null publicKey?: StringFilter<"LauncherSshKey"> | string publicKeyHash?: StringFilter<"LauncherSshKey"> | string keyType?: StringNullableFilter<"LauncherSshKey"> | string | null label?: StringNullableFilter<"LauncherSshKey"> | string | null lastProvisionedAt?: DateTimeFilter<"LauncherSshKey"> | Date | string createdAt?: DateTimeFilter<"LauncherSshKey"> | Date | string updatedAt?: DateTimeFilter<"LauncherSshKey"> | Date | string } export type LauncherSshKeyOrderByWithRelationInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrderInput | SortOrder publicKey?: SortOrder publicKeyHash?: SortOrder keyType?: SortOrderInput | SortOrder label?: SortOrderInput | SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LauncherSshKeyWhereUniqueInput = Prisma.AtLeast<{ id?: string accountEmail_publicKeyHash?: LauncherSshKeyAccountEmailPublicKeyHashCompoundUniqueInput AND?: LauncherSshKeyWhereInput | LauncherSshKeyWhereInput[] OR?: LauncherSshKeyWhereInput[] NOT?: LauncherSshKeyWhereInput | LauncherSshKeyWhereInput[] accountEmail?: StringFilter<"LauncherSshKey"> | string authUserId?: UuidNullableFilter<"LauncherSshKey"> | string | null publicKey?: StringFilter<"LauncherSshKey"> | string publicKeyHash?: StringFilter<"LauncherSshKey"> | string keyType?: StringNullableFilter<"LauncherSshKey"> | string | null label?: StringNullableFilter<"LauncherSshKey"> | string | null lastProvisionedAt?: DateTimeFilter<"LauncherSshKey"> | Date | string createdAt?: DateTimeFilter<"LauncherSshKey"> | Date | string updatedAt?: DateTimeFilter<"LauncherSshKey"> | Date | string }, "id" | "accountEmail_publicKeyHash"> export type LauncherSshKeyOrderByWithAggregationInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrderInput | SortOrder publicKey?: SortOrder publicKeyHash?: SortOrder keyType?: SortOrderInput | SortOrder label?: SortOrderInput | SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder _count?: LauncherSshKeyCountOrderByAggregateInput _max?: LauncherSshKeyMaxOrderByAggregateInput _min?: LauncherSshKeyMinOrderByAggregateInput } export type LauncherSshKeyScalarWhereWithAggregatesInput = { AND?: LauncherSshKeyScalarWhereWithAggregatesInput | LauncherSshKeyScalarWhereWithAggregatesInput[] OR?: LauncherSshKeyScalarWhereWithAggregatesInput[] NOT?: LauncherSshKeyScalarWhereWithAggregatesInput | LauncherSshKeyScalarWhereWithAggregatesInput[] id?: UuidWithAggregatesFilter<"LauncherSshKey"> | string accountEmail?: StringWithAggregatesFilter<"LauncherSshKey"> | string authUserId?: UuidNullableWithAggregatesFilter<"LauncherSshKey"> | string | null publicKey?: StringWithAggregatesFilter<"LauncherSshKey"> | string publicKeyHash?: StringWithAggregatesFilter<"LauncherSshKey"> | string keyType?: StringNullableWithAggregatesFilter<"LauncherSshKey"> | string | null label?: StringNullableWithAggregatesFilter<"LauncherSshKey"> | string | null lastProvisionedAt?: DateTimeWithAggregatesFilter<"LauncherSshKey"> | Date | string createdAt?: DateTimeWithAggregatesFilter<"LauncherSshKey"> | Date | string updatedAt?: DateTimeWithAggregatesFilter<"LauncherSshKey"> | Date | string } export type LauncherNoticeCreateInput = { id?: string appKey?: string title: string body: string linkUrl?: string | null isActive?: boolean startsAt?: Date | string | null endsAt?: Date | string | null priority?: number createdAt?: Date | string updatedAt?: Date | string } export type LauncherNoticeUncheckedCreateInput = { id?: string appKey?: string title: string body: string linkUrl?: string | null isActive?: boolean startsAt?: Date | string | null endsAt?: Date | string | null priority?: number createdAt?: Date | string updatedAt?: Date | string } export type LauncherNoticeUpdateInput = { id?: StringFieldUpdateOperationsInput | string appKey?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string body?: StringFieldUpdateOperationsInput | string linkUrl?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean startsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null priority?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LauncherNoticeUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string appKey?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string body?: StringFieldUpdateOperationsInput | string linkUrl?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean startsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null priority?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LauncherNoticeCreateManyInput = { id?: string appKey?: string title: string body: string linkUrl?: string | null isActive?: boolean startsAt?: Date | string | null endsAt?: Date | string | null priority?: number createdAt?: Date | string updatedAt?: Date | string } export type LauncherNoticeUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string appKey?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string body?: StringFieldUpdateOperationsInput | string linkUrl?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean startsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null priority?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LauncherNoticeUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string appKey?: StringFieldUpdateOperationsInput | string title?: StringFieldUpdateOperationsInput | string body?: StringFieldUpdateOperationsInput | string linkUrl?: NullableStringFieldUpdateOperationsInput | string | null isActive?: BoolFieldUpdateOperationsInput | boolean startsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null endsAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null priority?: IntFieldUpdateOperationsInput | number createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProvisionedDeviceCreateInput = { id?: string accountEmail: string authUserId?: string | null hostname: string tailscaleHostname: string sshUser?: string | null workspaceRoot?: string | null usageType?: string os?: string | null arch?: string | null kernel?: string | null distro?: string | null device?: NullableJsonNullValueInput | InputJsonValue installedAt?: Date | string lastProvisionedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type ProvisionedDeviceUncheckedCreateInput = { id?: string accountEmail: string authUserId?: string | null hostname: string tailscaleHostname: string sshUser?: string | null workspaceRoot?: string | null usageType?: string os?: string | null arch?: string | null kernel?: string | null distro?: string | null device?: NullableJsonNullValueInput | InputJsonValue installedAt?: Date | string lastProvisionedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type ProvisionedDeviceUpdateInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null hostname?: StringFieldUpdateOperationsInput | string tailscaleHostname?: StringFieldUpdateOperationsInput | string sshUser?: NullableStringFieldUpdateOperationsInput | string | null workspaceRoot?: NullableStringFieldUpdateOperationsInput | string | null usageType?: StringFieldUpdateOperationsInput | string os?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null kernel?: NullableStringFieldUpdateOperationsInput | string | null distro?: NullableStringFieldUpdateOperationsInput | string | null device?: NullableJsonNullValueInput | InputJsonValue installedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProvisionedDeviceUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null hostname?: StringFieldUpdateOperationsInput | string tailscaleHostname?: StringFieldUpdateOperationsInput | string sshUser?: NullableStringFieldUpdateOperationsInput | string | null workspaceRoot?: NullableStringFieldUpdateOperationsInput | string | null usageType?: StringFieldUpdateOperationsInput | string os?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null kernel?: NullableStringFieldUpdateOperationsInput | string | null distro?: NullableStringFieldUpdateOperationsInput | string | null device?: NullableJsonNullValueInput | InputJsonValue installedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProvisionedDeviceCreateManyInput = { id?: string accountEmail: string authUserId?: string | null hostname: string tailscaleHostname: string sshUser?: string | null workspaceRoot?: string | null usageType?: string os?: string | null arch?: string | null kernel?: string | null distro?: string | null device?: NullableJsonNullValueInput | InputJsonValue installedAt?: Date | string lastProvisionedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type ProvisionedDeviceUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null hostname?: StringFieldUpdateOperationsInput | string tailscaleHostname?: StringFieldUpdateOperationsInput | string sshUser?: NullableStringFieldUpdateOperationsInput | string | null workspaceRoot?: NullableStringFieldUpdateOperationsInput | string | null usageType?: StringFieldUpdateOperationsInput | string os?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null kernel?: NullableStringFieldUpdateOperationsInput | string | null distro?: NullableStringFieldUpdateOperationsInput | string | null device?: NullableJsonNullValueInput | InputJsonValue installedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type ProvisionedDeviceUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null hostname?: StringFieldUpdateOperationsInput | string tailscaleHostname?: StringFieldUpdateOperationsInput | string sshUser?: NullableStringFieldUpdateOperationsInput | string | null workspaceRoot?: NullableStringFieldUpdateOperationsInput | string | null usageType?: StringFieldUpdateOperationsInput | string os?: NullableStringFieldUpdateOperationsInput | string | null arch?: NullableStringFieldUpdateOperationsInput | string | null kernel?: NullableStringFieldUpdateOperationsInput | string | null distro?: NullableStringFieldUpdateOperationsInput | string | null device?: NullableJsonNullValueInput | InputJsonValue installedAt?: DateTimeFieldUpdateOperationsInput | Date | string lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LauncherSshKeyCreateInput = { id?: string accountEmail: string authUserId?: string | null publicKey: string publicKeyHash: string keyType?: string | null label?: string | null lastProvisionedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type LauncherSshKeyUncheckedCreateInput = { id?: string accountEmail: string authUserId?: string | null publicKey: string publicKeyHash: string keyType?: string | null label?: string | null lastProvisionedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type LauncherSshKeyUpdateInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null publicKey?: StringFieldUpdateOperationsInput | string publicKeyHash?: StringFieldUpdateOperationsInput | string keyType?: NullableStringFieldUpdateOperationsInput | string | null label?: NullableStringFieldUpdateOperationsInput | string | null lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LauncherSshKeyUncheckedUpdateInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null publicKey?: StringFieldUpdateOperationsInput | string publicKeyHash?: StringFieldUpdateOperationsInput | string keyType?: NullableStringFieldUpdateOperationsInput | string | null label?: NullableStringFieldUpdateOperationsInput | string | null lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LauncherSshKeyCreateManyInput = { id?: string accountEmail: string authUserId?: string | null publicKey: string publicKeyHash: string keyType?: string | null label?: string | null lastProvisionedAt?: Date | string createdAt?: Date | string updatedAt?: Date | string } export type LauncherSshKeyUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null publicKey?: StringFieldUpdateOperationsInput | string publicKeyHash?: StringFieldUpdateOperationsInput | string keyType?: NullableStringFieldUpdateOperationsInput | string | null label?: NullableStringFieldUpdateOperationsInput | string | null lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type LauncherSshKeyUncheckedUpdateManyInput = { id?: StringFieldUpdateOperationsInput | string accountEmail?: StringFieldUpdateOperationsInput | string authUserId?: NullableStringFieldUpdateOperationsInput | string | null publicKey?: StringFieldUpdateOperationsInput | string publicKeyHash?: StringFieldUpdateOperationsInput | string keyType?: NullableStringFieldUpdateOperationsInput | string | null label?: NullableStringFieldUpdateOperationsInput | string | null lastProvisionedAt?: DateTimeFieldUpdateOperationsInput | Date | string createdAt?: DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } export type UuidFilter<$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> mode?: QueryMode not?: NestedUuidFilter<$PrismaModel> | string } export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringFilter<$PrismaModel> | string } export type 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 BoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } export type DateTimeNullableFilter<$PrismaModel = never> = { equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null } export type 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 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 SortOrderInput = { sort: SortOrder nulls?: NullsOrder } export type LauncherNoticeCountOrderByAggregateInput = { id?: SortOrder appKey?: SortOrder title?: SortOrder body?: SortOrder linkUrl?: SortOrder isActive?: SortOrder startsAt?: SortOrder endsAt?: SortOrder priority?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LauncherNoticeAvgOrderByAggregateInput = { priority?: SortOrder } export type LauncherNoticeMaxOrderByAggregateInput = { id?: SortOrder appKey?: SortOrder title?: SortOrder body?: SortOrder linkUrl?: SortOrder isActive?: SortOrder startsAt?: SortOrder endsAt?: SortOrder priority?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LauncherNoticeMinOrderByAggregateInput = { id?: SortOrder appKey?: SortOrder title?: SortOrder body?: SortOrder linkUrl?: SortOrder isActive?: SortOrder startsAt?: SortOrder endsAt?: SortOrder priority?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LauncherNoticeSumOrderByAggregateInput = { priority?: SortOrder } export type UuidWithAggregatesFilter<$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> mode?: QueryMode not?: NestedUuidWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type StringWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> notIn?: string[] | ListStringFieldRefInput<$PrismaModel> lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> mode?: QueryMode not?: NestedStringWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } export type 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 BoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$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 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 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 UuidNullableFilter<$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> mode?: QueryMode not?: NestedUuidNullableFilter<$PrismaModel> | string | 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 ProvisionedDeviceAccountEmailTailscaleHostnameCompoundUniqueInput = { accountEmail: string tailscaleHostname: string } export type ProvisionedDeviceCountOrderByAggregateInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrder hostname?: SortOrder tailscaleHostname?: SortOrder sshUser?: SortOrder workspaceRoot?: SortOrder usageType?: SortOrder os?: SortOrder arch?: SortOrder kernel?: SortOrder distro?: SortOrder device?: SortOrder installedAt?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProvisionedDeviceMaxOrderByAggregateInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrder hostname?: SortOrder tailscaleHostname?: SortOrder sshUser?: SortOrder workspaceRoot?: SortOrder usageType?: SortOrder os?: SortOrder arch?: SortOrder kernel?: SortOrder distro?: SortOrder installedAt?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type ProvisionedDeviceMinOrderByAggregateInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrder hostname?: SortOrder tailscaleHostname?: SortOrder sshUser?: SortOrder workspaceRoot?: SortOrder usageType?: SortOrder os?: SortOrder arch?: SortOrder kernel?: SortOrder distro?: SortOrder installedAt?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type UuidNullableWithAggregatesFilter<$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> mode?: QueryMode not?: NestedUuidNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$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 LauncherSshKeyAccountEmailPublicKeyHashCompoundUniqueInput = { accountEmail: string publicKeyHash: string } export type LauncherSshKeyCountOrderByAggregateInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrder publicKey?: SortOrder publicKeyHash?: SortOrder keyType?: SortOrder label?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LauncherSshKeyMaxOrderByAggregateInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrder publicKey?: SortOrder publicKeyHash?: SortOrder keyType?: SortOrder label?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type LauncherSshKeyMinOrderByAggregateInput = { id?: SortOrder accountEmail?: SortOrder authUserId?: SortOrder publicKey?: SortOrder publicKeyHash?: SortOrder keyType?: SortOrder label?: SortOrder lastProvisionedAt?: SortOrder createdAt?: SortOrder updatedAt?: SortOrder } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type NestedUuidFilter<$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> not?: NestedUuidFilter<$PrismaModel> | string } 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 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 NestedBoolFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolFilter<$PrismaModel> | boolean } 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 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 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 NestedUuidWithAggregatesFilter<$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> not?: NestedUuidWithAggregatesFilter<$PrismaModel> | string _count?: NestedIntFilter<$PrismaModel> _min?: NestedStringFilter<$PrismaModel> _max?: NestedStringFilter<$PrismaModel> } 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 NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> | null in?: string[] | ListStringFieldRefInput<$PrismaModel> | null notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null lt?: string | StringFieldRefInput<$PrismaModel> lte?: string | StringFieldRefInput<$PrismaModel> gt?: string | StringFieldRefInput<$PrismaModel> gte?: string | StringFieldRefInput<$PrismaModel> contains?: string | StringFieldRefInput<$PrismaModel> startsWith?: string | StringFieldRefInput<$PrismaModel> endsWith?: string | StringFieldRefInput<$PrismaModel> not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$PrismaModel> } export type NestedIntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null lt?: number | IntFieldRefInput<$PrismaModel> lte?: number | IntFieldRefInput<$PrismaModel> gt?: number | IntFieldRefInput<$PrismaModel> gte?: number | IntFieldRefInput<$PrismaModel> not?: NestedIntNullableFilter<$PrismaModel> | number | null } export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean _count?: NestedIntFilter<$PrismaModel> _min?: NestedBoolFilter<$PrismaModel> _max?: NestedBoolFilter<$PrismaModel> } 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 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 NestedUuidNullableFilter<$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> not?: NestedUuidNullableFilter<$PrismaModel> | string | null } export type NestedUuidNullableWithAggregatesFilter<$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> not?: NestedUuidNullableWithAggregatesFilter<$PrismaModel> | string | null _count?: NestedIntNullableFilter<$PrismaModel> _min?: NestedStringNullableFilter<$PrismaModel> _max?: NestedStringNullableFilter<$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 } /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number } /** * DMMF */ export const dmmf: runtime.BaseDMMF }