import * as runtime from "@prisma/client/runtime/library"; import type * as Prisma from "../models.ts"; import { type PrismaClient } from "./class.ts"; export type * from '../models.ts'; export type DMMF = typeof runtime.DMMF; export type PrismaPromise = runtime.Types.Public.PrismaPromise; /** * Prisma Errors */ export declare const PrismaClientKnownRequestError: typeof runtime.PrismaClientKnownRequestError; export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError; export declare const PrismaClientUnknownRequestError: typeof runtime.PrismaClientUnknownRequestError; export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError; export declare const PrismaClientRustPanicError: typeof runtime.PrismaClientRustPanicError; export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError; export declare const PrismaClientInitializationError: typeof runtime.PrismaClientInitializationError; export type PrismaClientInitializationError = runtime.PrismaClientInitializationError; export declare const PrismaClientValidationError: typeof runtime.PrismaClientValidationError; export type PrismaClientValidationError = runtime.PrismaClientValidationError; /** * Re-export of sql-template-tag */ export declare const sql: typeof runtime.sqltag; export declare const empty: runtime.Sql; export declare const join: typeof runtime.join; export declare const raw: typeof runtime.raw; export declare const Sql: typeof runtime.Sql; export type Sql = runtime.Sql; /** * Decimal.js */ export declare const Decimal: typeof runtime.Decimal; export type 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 type Extension = runtime.Types.Extensions.UserArgs; export declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext; export type Args = runtime.Types.Public.Args; export type Payload = runtime.Types.Public.Payload; export type Result = runtime.Types.Public.Result; export type Exact = runtime.Types.Public.Exact; export type PrismaVersion = { client: string; engine: string; }; /** * Prisma Client JS version: 6.19.0 * Query Engine version: 2ba551f319ab1df4bc874a89965d8b3641056773 */ export declare const prismaVersion: PrismaVersion; /** * Utility Types */ export type Bytes = runtime.Bytes; export type JsonObject = runtime.JsonObject; export type JsonArray = runtime.JsonArray; export type JsonValue = runtime.JsonValue; export type InputJsonObject = runtime.InputJsonObject; export type InputJsonArray = runtime.InputJsonArray; export type InputJsonValue = runtime.InputJsonValue; export declare const NullTypes: { DbNull: (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull); JsonNull: (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull); AnyNull: (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull); }; /** * 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 declare const DbNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; /** * 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 declare const JsonNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; /** * 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 declare const AnyNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; type SelectAndInclude = { select: any; include: any; }; type SelectAndOmit = { select: any; omit: any; }; /** * 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; /** * 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 */ export 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 & { [P in K]: Prisma__Pick; }[K]; type EitherStrict = Strict<__Either>; type EitherLoose = ComputeRaw<__Either>; type _Either = { 1: EitherStrict; 0: EitherLoose; }[strict]; export type Either = O extends unknown ? _Either : never; export type Union = any; export 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 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; }; type NoExpand = T extends unknown ? T : never; export type AtLeast = NoExpand; 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>>; export type Boolean = True | False; export type True = 1; export type False = 0; export type Not = { 0: 1; 1: 0; }[B]; export type Extends = [A1] extends [never] ? 0 : A1 extends A2 ? 1 : 0; export type Has = Not, 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; export type GetScalarType = O extends object ? { [P in keyof T]: P extends keyof O ? O[P] : never; } : never; type FieldPaths> = IsObject extends True ? U : T; export type GetHavingFields = { [K in keyof T]: Or, Extends<'AND', K>>, Extends<'NOT', K>> extends True ? 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; export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T; /** * Like `Pick`, but additionally can also accept an array of keys */ export type PickEnumerable | keyof T> = Prisma__Pick>; /** * Exclude all keys with underscores */ export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T; export type FieldRef = runtime.FieldRef; type FieldRefInputType = Model extends never ? never : FieldRef; export declare const ModelName: { readonly QueueJob: "QueueJob"; }; export type ModelName = (typeof ModelName)[keyof typeof ModelName]; export interface TypeMapCb extends runtime.Types.Utils.Fn<{ extArgs: runtime.Types.Extensions.InternalArgs; }, runtime.Types.Utils.Record> { returns: TypeMap; } export type TypeMap = { globalOmitOptions: { omit: GlobalOmitOptions; }; meta: { modelProps: "queueJob"; txIsolationLevel: TransactionIsolationLevel; }; model: { QueueJob: { payload: Prisma.$QueueJobPayload; fields: Prisma.QueueJobFieldRefs; operations: { findUnique: { args: Prisma.QueueJobFindUniqueArgs; result: runtime.Types.Utils.PayloadToResult | null; }; findUniqueOrThrow: { args: Prisma.QueueJobFindUniqueOrThrowArgs; result: runtime.Types.Utils.PayloadToResult; }; findFirst: { args: Prisma.QueueJobFindFirstArgs; result: runtime.Types.Utils.PayloadToResult | null; }; findFirstOrThrow: { args: Prisma.QueueJobFindFirstOrThrowArgs; result: runtime.Types.Utils.PayloadToResult; }; findMany: { args: Prisma.QueueJobFindManyArgs; result: runtime.Types.Utils.PayloadToResult[]; }; create: { args: Prisma.QueueJobCreateArgs; result: runtime.Types.Utils.PayloadToResult; }; createMany: { args: Prisma.QueueJobCreateManyArgs; result: BatchPayload; }; createManyAndReturn: { args: Prisma.QueueJobCreateManyAndReturnArgs; result: runtime.Types.Utils.PayloadToResult[]; }; delete: { args: Prisma.QueueJobDeleteArgs; result: runtime.Types.Utils.PayloadToResult; }; update: { args: Prisma.QueueJobUpdateArgs; result: runtime.Types.Utils.PayloadToResult; }; deleteMany: { args: Prisma.QueueJobDeleteManyArgs; result: BatchPayload; }; updateMany: { args: Prisma.QueueJobUpdateManyArgs; result: BatchPayload; }; updateManyAndReturn: { args: Prisma.QueueJobUpdateManyAndReturnArgs; result: runtime.Types.Utils.PayloadToResult[]; }; upsert: { args: Prisma.QueueJobUpsertArgs; result: runtime.Types.Utils.PayloadToResult; }; aggregate: { args: Prisma.QueueJobAggregateArgs; result: runtime.Types.Utils.Optional; }; groupBy: { args: Prisma.QueueJobGroupByArgs; result: runtime.Types.Utils.Optional[]; }; count: { args: Prisma.QueueJobCountArgs; result: runtime.Types.Utils.Optional | number; }; }; }; }; } & { other: { payload: any; operations: { $executeRaw: { args: [query: TemplateStringsArray | Sql, ...values: any[]]; result: any; }; $executeRawUnsafe: { args: [query: string, ...values: any[]]; result: any; }; $queryRaw: { args: [query: TemplateStringsArray | Sql, ...values: any[]]; result: any; }; $queryRawUnsafe: { args: [query: string, ...values: any[]]; result: any; }; }; }; }; /** * Enums */ export declare const TransactionIsolationLevel: { readonly ReadUncommitted: "ReadUncommitted"; readonly ReadCommitted: "ReadCommitted"; readonly RepeatableRead: "RepeatableRead"; readonly Serializable: "Serializable"; }; export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]; export declare const QueueJobScalarFieldEnum: { readonly id: "id"; readonly queueName: "queueName"; readonly name: "name"; readonly payload: "payload"; readonly status: "status"; readonly priority: "priority"; readonly attempts: "attempts"; readonly maxAttempts: "maxAttempts"; readonly createdAt: "createdAt"; readonly processAt: "processAt"; readonly processedAt: "processedAt"; readonly completedAt: "completedAt"; readonly failedAt: "failedAt"; readonly error: "error"; readonly result: "result"; readonly progress: "progress"; readonly timeout: "timeout"; readonly cron: "cron"; readonly repeatEvery: "repeatEvery"; readonly repeatLimit: "repeatLimit"; readonly repeatCount: "repeatCount"; }; export type QueueJobScalarFieldEnum = (typeof QueueJobScalarFieldEnum)[keyof typeof QueueJobScalarFieldEnum]; export declare const SortOrder: { readonly asc: "asc"; readonly desc: "desc"; }; export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; export declare const JsonNullValueInput: { readonly JsonNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; }; export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]; export declare const NullableJsonNullValueInput: { readonly DbNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; readonly JsonNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; }; export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]; export declare const QueryMode: { readonly default: "default"; readonly insensitive: "insensitive"; }; export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]; export declare const JsonNullValueFilter: { readonly DbNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; readonly JsonNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; readonly AnyNull: { "__#private@#private": any; _getNamespace(): string; _getName(): string; toString(): string; }; }; export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]; export declare const NullsOrder: { readonly first: "first"; readonly last: "last"; }; export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]; /** * Field references */ /** * Reference to a field of type 'String' */ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>; /** * Reference to a field of type 'String[]' */ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>; /** * Reference to a field of type '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 'Int' */ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>; /** * Reference to a field of type 'Int[]' */ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>; /** * Reference to a field of type 'DateTime' */ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>; /** * Reference to a field of type 'DateTime[]' */ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>; /** * Reference to a field of type 'Float' */ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>; /** * Reference to a field of type 'Float[]' */ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>; /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { count: number; }; export type Datasource = { url?: string; }; export type Datasources = { db?: Datasource; }; export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.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?: 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?: GlobalOmitConfig; } export type GlobalOmitConfig = { queueJob?: Prisma.QueueJobOmit; }; 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; 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; }; export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy'; /** * `PrismaClient` proxy available in interactive transactions. */ export type TransactionClient = Omit;