morio_bridge 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,760 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * WARNING: This is an internal file that is subject to change!
7
+ *
8
+ * 🛑 Under no circumstances should you import this file directly! 🛑
9
+ *
10
+ * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
11
+ * While this enables partial backward compatibility, it is not part of the stable public API.
12
+ *
13
+ * If you are looking for your Models, Enums, and Input Types, please import them from the respective
14
+ * model files in the `model` directory!
15
+ */
16
+
17
+ import * as runtime from "@prisma/client/runtime/client"
18
+ import type * as Prisma from "../models.ts"
19
+ import { type PrismaClient } from "./class.ts"
20
+
21
+ export type * from '../models.ts'
22
+
23
+ export type DMMF = typeof runtime.DMMF
24
+
25
+ export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
26
+
27
+ /**
28
+ * Validator
29
+ */
30
+ export const validator = runtime.Public.validator
31
+
32
+ /**
33
+ * Prisma Errors
34
+ */
35
+
36
+ export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
37
+ export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
38
+
39
+ export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
40
+ export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
41
+
42
+ export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
43
+ export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
44
+
45
+ export const PrismaClientInitializationError = runtime.PrismaClientInitializationError
46
+ export type PrismaClientInitializationError = runtime.PrismaClientInitializationError
47
+
48
+ export const PrismaClientValidationError = runtime.PrismaClientValidationError
49
+ export type PrismaClientValidationError = runtime.PrismaClientValidationError
50
+
51
+ /**
52
+ * Re-export of sql-template-tag
53
+ */
54
+ export const sql = runtime.sqltag
55
+ export const empty = runtime.empty
56
+ export const join = runtime.join
57
+ export const raw = runtime.raw
58
+ export const Sql = runtime.Sql
59
+ export type Sql = runtime.Sql
60
+
61
+
62
+
63
+ /**
64
+ * Decimal.js
65
+ */
66
+ export const Decimal = runtime.Decimal
67
+ export type Decimal = runtime.Decimal
68
+
69
+ export type DecimalJsLike = runtime.DecimalJsLike
70
+
71
+ /**
72
+ * Metrics
73
+ */
74
+ export type Metrics = runtime.Metrics
75
+ export type Metric<T> = runtime.Metric<T>
76
+ export type MetricHistogram = runtime.MetricHistogram
77
+ export type MetricHistogramBucket = runtime.MetricHistogramBucket
78
+
79
+ /**
80
+ * Extensions
81
+ */
82
+ export type Extension = runtime.Types.Extensions.UserArgs
83
+ export const getExtensionContext = runtime.Extensions.getExtensionContext
84
+ export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>
85
+ export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>
86
+ export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>
87
+ export type Exact<A, W> = runtime.Types.Public.Exact<A, W>
88
+
89
+ export type PrismaVersion = {
90
+ client: string
91
+ engine: string
92
+ }
93
+
94
+ /**
95
+ * Prisma Client JS version: 6.8.2
96
+ * Query Engine version: 2060c79ba17c6bb9f5823312b6f6b7f4a845738e
97
+ */
98
+ export const prismaVersion: PrismaVersion = {
99
+ client: "6.8.2",
100
+ engine: "2060c79ba17c6bb9f5823312b6f6b7f4a845738e"
101
+ }
102
+
103
+ /**
104
+ * Utility Types
105
+ */
106
+
107
+ export type JsonObject = runtime.JsonObject
108
+ export type JsonArray = runtime.JsonArray
109
+ export type JsonValue = runtime.JsonValue
110
+ export type InputJsonObject = runtime.InputJsonObject
111
+ export type InputJsonArray = runtime.InputJsonArray
112
+ export type InputJsonValue = runtime.InputJsonValue
113
+
114
+ export const NullTypes = {
115
+ DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
116
+ JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
117
+ AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
118
+ }
119
+
120
+ /**
121
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
122
+ *
123
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
124
+ */
125
+ export const DbNull = runtime.objectEnumValues.instances.DbNull
126
+
127
+ /**
128
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
129
+ *
130
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
131
+ */
132
+ export const JsonNull = runtime.objectEnumValues.instances.JsonNull
133
+
134
+ /**
135
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
136
+ *
137
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
138
+ */
139
+ export const AnyNull = runtime.objectEnumValues.instances.AnyNull
140
+
141
+ type SelectAndInclude = {
142
+ select: any
143
+ include: any
144
+ }
145
+
146
+ type SelectAndOmit = {
147
+ select: any
148
+ omit: any
149
+ }
150
+
151
+ /**
152
+ * From T, pick a set of properties whose keys are in the union K
153
+ */
154
+ type Prisma__Pick<T, K extends keyof T> = {
155
+ [P in K]: T[P];
156
+ };
157
+
158
+ export type Enumerable<T> = T | Array<T>;
159
+
160
+ /**
161
+ * Subset
162
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
163
+ */
164
+ export type Subset<T, U> = {
165
+ [key in keyof T]: key extends keyof U ? T[key] : never;
166
+ };
167
+
168
+ /**
169
+ * SelectSubset
170
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
171
+ * Additionally, it validates, if both select and include are present. If the case, it errors.
172
+ */
173
+ export type SelectSubset<T, U> = {
174
+ [key in keyof T]: key extends keyof U ? T[key] : never
175
+ } &
176
+ (T extends SelectAndInclude
177
+ ? 'Please either choose `select` or `include`.'
178
+ : T extends SelectAndOmit
179
+ ? 'Please either choose `select` or `omit`.'
180
+ : {})
181
+
182
+ /**
183
+ * Subset + Intersection
184
+ * @desc From `T` pick properties that exist in `U` and intersect `K`
185
+ */
186
+ export type SubsetIntersection<T, U, K> = {
187
+ [key in keyof T]: key extends keyof U ? T[key] : never
188
+ } &
189
+ K
190
+
191
+ type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
192
+
193
+ /**
194
+ * XOR is needed to have a real mutually exclusive union type
195
+ * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
196
+ */
197
+ export type XOR<T, U> =
198
+ T extends object ?
199
+ U extends object ?
200
+ (Without<T, U> & U) | (Without<U, T> & T)
201
+ : U : T
202
+
203
+
204
+ /**
205
+ * Is T a Record?
206
+ */
207
+ type IsObject<T extends any> = T extends Array<any>
208
+ ? False
209
+ : T extends Date
210
+ ? False
211
+ : T extends Uint8Array
212
+ ? False
213
+ : T extends BigInt
214
+ ? False
215
+ : T extends object
216
+ ? True
217
+ : False
218
+
219
+
220
+ /**
221
+ * If it's T[], return T
222
+ */
223
+ export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
224
+
225
+ /**
226
+ * From ts-toolbelt
227
+ */
228
+
229
+ type __Either<O extends object, K extends Key> = Omit<O, K> &
230
+ {
231
+ // Merge all but K
232
+ [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
233
+ }[K]
234
+
235
+ type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
236
+
237
+ type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
238
+
239
+ type _Either<
240
+ O extends object,
241
+ K extends Key,
242
+ strict extends Boolean
243
+ > = {
244
+ 1: EitherStrict<O, K>
245
+ 0: EitherLoose<O, K>
246
+ }[strict]
247
+
248
+ export type Either<
249
+ O extends object,
250
+ K extends Key,
251
+ strict extends Boolean = 1
252
+ > = O extends unknown ? _Either<O, K, strict> : never
253
+
254
+ export type Union = any
255
+
256
+ export type PatchUndefined<O extends object, O1 extends object> = {
257
+ [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
258
+ } & {}
259
+
260
+ /** Helper Types for "Merge" **/
261
+ export type IntersectOf<U extends Union> = (
262
+ U extends unknown ? (k: U) => void : never
263
+ ) extends (k: infer I) => void
264
+ ? I
265
+ : never
266
+
267
+ export type Overwrite<O extends object, O1 extends object> = {
268
+ [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
269
+ } & {};
270
+
271
+ type _Merge<U extends object> = IntersectOf<Overwrite<U, {
272
+ [K in keyof U]-?: At<U, K>;
273
+ }>>;
274
+
275
+ type Key = string | number | symbol;
276
+ type AtStrict<O extends object, K extends Key> = O[K & keyof O];
277
+ type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
278
+ export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
279
+ 1: AtStrict<O, K>;
280
+ 0: AtLoose<O, K>;
281
+ }[strict];
282
+
283
+ export type ComputeRaw<A extends any> = A extends Function ? A : {
284
+ [K in keyof A]: A[K];
285
+ } & {};
286
+
287
+ export type OptionalFlat<O> = {
288
+ [K in keyof O]?: O[K];
289
+ } & {};
290
+
291
+ type _Record<K extends keyof any, T> = {
292
+ [P in K]: T;
293
+ };
294
+
295
+ // cause typescript not to expand types and preserve names
296
+ type NoExpand<T> = T extends unknown ? T : never;
297
+
298
+ // this type assumes the passed object is entirely optional
299
+ export type AtLeast<O extends object, K extends string> = NoExpand<
300
+ O extends unknown
301
+ ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
302
+ | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
303
+ : never>;
304
+
305
+ type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
306
+
307
+ export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
308
+ /** End Helper Types for "Merge" **/
309
+
310
+ export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
311
+
312
+ export type Boolean = True | False
313
+
314
+ export type True = 1
315
+
316
+ export type False = 0
317
+
318
+ export type Not<B extends Boolean> = {
319
+ 0: 1
320
+ 1: 0
321
+ }[B]
322
+
323
+ export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
324
+ ? 0 // anything `never` is false
325
+ : A1 extends A2
326
+ ? 1
327
+ : 0
328
+
329
+ export type Has<U extends Union, U1 extends Union> = Not<
330
+ Extends<Exclude<U1, U>, U1>
331
+ >
332
+
333
+ export type Or<B1 extends Boolean, B2 extends Boolean> = {
334
+ 0: {
335
+ 0: 0
336
+ 1: 1
337
+ }
338
+ 1: {
339
+ 0: 1
340
+ 1: 1
341
+ }
342
+ }[B1][B2]
343
+
344
+ export type Keys<U extends Union> = U extends unknown ? keyof U : never
345
+
346
+ export type GetScalarType<T, O> = O extends object ? {
347
+ [P in keyof T]: P extends keyof O
348
+ ? O[P]
349
+ : never
350
+ } : never
351
+
352
+ type FieldPaths<
353
+ T,
354
+ U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
355
+ > = IsObject<T> extends True ? U : T
356
+
357
+ export type GetHavingFields<T> = {
358
+ [K in keyof T]: Or<
359
+ Or<Extends<'OR', K>, Extends<'AND', K>>,
360
+ Extends<'NOT', K>
361
+ > extends True
362
+ ? // infer is only needed to not hit TS limit
363
+ // based on the brilliant idea of Pierre-Antoine Mills
364
+ // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
365
+ T[K] extends infer TK
366
+ ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
367
+ : never
368
+ : {} extends FieldPaths<T[K]>
369
+ ? never
370
+ : K
371
+ }[keyof T]
372
+
373
+ /**
374
+ * Convert tuple to union
375
+ */
376
+ type _TupleToUnion<T> = T extends (infer E)[] ? E : never
377
+ type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
378
+ export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
379
+
380
+ /**
381
+ * Like `Pick`, but additionally can also accept an array of keys
382
+ */
383
+ export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
384
+
385
+ /**
386
+ * Exclude all keys with underscores
387
+ */
388
+ export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
389
+
390
+
391
+ export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
392
+
393
+ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
394
+
395
+
396
+ export const ModelName = {
397
+ User: 'User'
398
+ } as const
399
+
400
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName]
401
+
402
+
403
+
404
+ export interface TypeMapCb<ClientOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
405
+ returns: TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
406
+ }
407
+
408
+ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
409
+ globalOmitOptions: {
410
+ omit: GlobalOmitOptions
411
+ }
412
+ meta: {
413
+ modelProps: "user"
414
+ txIsolationLevel: TransactionIsolationLevel
415
+ }
416
+ model: {
417
+ User: {
418
+ payload: Prisma.$UserPayload<ExtArgs>
419
+ fields: Prisma.UserFieldRefs
420
+ operations: {
421
+ findUnique: {
422
+ args: Prisma.UserFindUniqueArgs<ExtArgs>
423
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null
424
+ }
425
+ findUniqueOrThrow: {
426
+ args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
427
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
428
+ }
429
+ findFirst: {
430
+ args: Prisma.UserFindFirstArgs<ExtArgs>
431
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null
432
+ }
433
+ findFirstOrThrow: {
434
+ args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
435
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
436
+ }
437
+ findMany: {
438
+ args: Prisma.UserFindManyArgs<ExtArgs>
439
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
440
+ }
441
+ create: {
442
+ args: Prisma.UserCreateArgs<ExtArgs>
443
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
444
+ }
445
+ createMany: {
446
+ args: Prisma.UserCreateManyArgs<ExtArgs>
447
+ result: BatchPayload
448
+ }
449
+ createManyAndReturn: {
450
+ args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
451
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
452
+ }
453
+ delete: {
454
+ args: Prisma.UserDeleteArgs<ExtArgs>
455
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
456
+ }
457
+ update: {
458
+ args: Prisma.UserUpdateArgs<ExtArgs>
459
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
460
+ }
461
+ deleteMany: {
462
+ args: Prisma.UserDeleteManyArgs<ExtArgs>
463
+ result: BatchPayload
464
+ }
465
+ updateMany: {
466
+ args: Prisma.UserUpdateManyArgs<ExtArgs>
467
+ result: BatchPayload
468
+ }
469
+ updateManyAndReturn: {
470
+ args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
471
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
472
+ }
473
+ upsert: {
474
+ args: Prisma.UserUpsertArgs<ExtArgs>
475
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
476
+ }
477
+ aggregate: {
478
+ args: Prisma.UserAggregateArgs<ExtArgs>
479
+ result: runtime.Types.Utils.Optional<Prisma.AggregateUser>
480
+ }
481
+ groupBy: {
482
+ args: Prisma.UserGroupByArgs<ExtArgs>
483
+ result: runtime.Types.Utils.Optional<Prisma.UserGroupByOutputType>[]
484
+ }
485
+ count: {
486
+ args: Prisma.UserCountArgs<ExtArgs>
487
+ result: runtime.Types.Utils.Optional<Prisma.UserCountAggregateOutputType> | number
488
+ }
489
+ }
490
+ }
491
+ }
492
+ } & {
493
+ other: {
494
+ payload: any
495
+ operations: {
496
+ $executeRaw: {
497
+ args: [query: TemplateStringsArray | Sql, ...values: any[]],
498
+ result: any
499
+ }
500
+ $executeRawUnsafe: {
501
+ args: [query: string, ...values: any[]],
502
+ result: any
503
+ }
504
+ $queryRaw: {
505
+ args: [query: TemplateStringsArray | Sql, ...values: any[]],
506
+ result: any
507
+ }
508
+ $queryRawUnsafe: {
509
+ args: [query: string, ...values: any[]],
510
+ result: any
511
+ }
512
+ }
513
+ }
514
+ }
515
+
516
+ /**
517
+ * Enums
518
+ */
519
+
520
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
521
+ ReadUncommitted: 'ReadUncommitted',
522
+ ReadCommitted: 'ReadCommitted',
523
+ RepeatableRead: 'RepeatableRead',
524
+ Serializable: 'Serializable'
525
+ } as const)
526
+
527
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
528
+
529
+
530
+ export const UserScalarFieldEnum = {
531
+ id: 'id',
532
+ email: 'email',
533
+ password: 'password',
534
+ createdAt: 'createdAt',
535
+ updatedAt: 'updatedAt'
536
+ } as const
537
+
538
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
539
+
540
+
541
+ export const SortOrder = {
542
+ asc: 'asc',
543
+ desc: 'desc'
544
+ } as const
545
+
546
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
547
+
548
+
549
+ export const QueryMode = {
550
+ default: 'default',
551
+ insensitive: 'insensitive'
552
+ } as const
553
+
554
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
555
+
556
+
557
+
558
+ /**
559
+ * Field references
560
+ */
561
+
562
+
563
+ /**
564
+ * Reference to a field of type 'String'
565
+ */
566
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
567
+
568
+
569
+
570
+ /**
571
+ * Reference to a field of type 'String[]'
572
+ */
573
+ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
574
+
575
+
576
+
577
+ /**
578
+ * Reference to a field of type 'DateTime'
579
+ */
580
+ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
581
+
582
+
583
+
584
+ /**
585
+ * Reference to a field of type 'DateTime[]'
586
+ */
587
+ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
588
+
589
+
590
+
591
+ /**
592
+ * Reference to a field of type 'Int'
593
+ */
594
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
595
+
596
+
597
+
598
+ /**
599
+ * Reference to a field of type 'Int[]'
600
+ */
601
+ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
602
+
603
+
604
+ /**
605
+ * Batch Payload for updateMany & deleteMany & createMany
606
+ */
607
+ export type BatchPayload = {
608
+ count: number
609
+ }
610
+
611
+
612
+ export type Datasource = {
613
+ url?: string
614
+ }
615
+ export type Datasources = {
616
+ db?: Datasource
617
+ }
618
+
619
+ export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
620
+ export type DefaultPrismaClient = PrismaClient
621
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
622
+ export interface PrismaClientOptions {
623
+ /**
624
+ * Overwrites the datasource url from your schema.prisma file
625
+ */
626
+ datasources?: Datasources
627
+ /**
628
+ * Overwrites the datasource url from your schema.prisma file
629
+ */
630
+ datasourceUrl?: string
631
+ /**
632
+ * @default "colorless"
633
+ */
634
+ errorFormat?: ErrorFormat
635
+ /**
636
+ * @example
637
+ * ```
638
+ * // Defaults to stdout
639
+ * log: ['query', 'info', 'warn', 'error']
640
+ *
641
+ * // Emit as events
642
+ * log: [
643
+ * { emit: 'stdout', level: 'query' },
644
+ * { emit: 'stdout', level: 'info' },
645
+ * { emit: 'stdout', level: 'warn' }
646
+ * { emit: 'stdout', level: 'error' }
647
+ * ]
648
+ * ```
649
+ * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
650
+ */
651
+ log?: (LogLevel | LogDefinition)[]
652
+ /**
653
+ * The default values for transactionOptions
654
+ * maxWait ?= 2000
655
+ * timeout ?= 5000
656
+ */
657
+ transactionOptions?: {
658
+ maxWait?: number
659
+ timeout?: number
660
+ isolationLevel?: TransactionIsolationLevel
661
+ }
662
+ /**
663
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
664
+ */
665
+ adapter?: runtime.SqlDriverAdapterFactory | null
666
+ /**
667
+ * Global configuration for omitting model fields by default.
668
+ *
669
+ * @example
670
+ * ```
671
+ * const prisma = new PrismaClient({
672
+ * omit: {
673
+ * user: {
674
+ * password: true
675
+ * }
676
+ * }
677
+ * })
678
+ * ```
679
+ */
680
+ omit?: GlobalOmitConfig
681
+ }
682
+ export type GlobalOmitConfig = {
683
+ user?: Prisma.UserOmit
684
+ }
685
+
686
+ /* Types for Logging */
687
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error'
688
+ export type LogDefinition = {
689
+ level: LogLevel
690
+ emit: 'stdout' | 'event'
691
+ }
692
+
693
+ export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
694
+ export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
695
+ GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
696
+ : never
697
+
698
+ export type QueryEvent = {
699
+ timestamp: Date
700
+ query: string
701
+ params: string
702
+ duration: number
703
+ target: string
704
+ }
705
+
706
+ export type LogEvent = {
707
+ timestamp: Date
708
+ message: string
709
+ target: string
710
+ }
711
+ /* End Types for Logging */
712
+
713
+
714
+ export type PrismaAction =
715
+ | 'findUnique'
716
+ | 'findUniqueOrThrow'
717
+ | 'findMany'
718
+ | 'findFirst'
719
+ | 'findFirstOrThrow'
720
+ | 'create'
721
+ | 'createMany'
722
+ | 'createManyAndReturn'
723
+ | 'update'
724
+ | 'updateMany'
725
+ | 'updateManyAndReturn'
726
+ | 'upsert'
727
+ | 'delete'
728
+ | 'deleteMany'
729
+ | 'executeRaw'
730
+ | 'queryRaw'
731
+ | 'aggregate'
732
+ | 'count'
733
+ | 'runCommandRaw'
734
+ | 'findRaw'
735
+ | 'groupBy'
736
+
737
+ /**
738
+ * These options are being passed into the middleware as "params"
739
+ */
740
+ export type MiddlewareParams = {
741
+ model?: ModelName
742
+ action: PrismaAction
743
+ args: any
744
+ dataPath: string[]
745
+ runInTransaction: boolean
746
+ }
747
+
748
+ /**
749
+ * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
750
+ */
751
+ export type Middleware<T = any> = (
752
+ params: MiddlewareParams,
753
+ next: (params: MiddlewareParams) => runtime.Types.Utils.JsPromise<T>,
754
+ ) => runtime.Types.Utils.JsPromise<T>
755
+
756
+ /**
757
+ * `PrismaClient` proxy available in interactive transactions.
758
+ */
759
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>
760
+