auth-vir 5.0.2 → 5.0.4

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.
Files changed (49) hide show
  1. package/dist/auth-client/backend-auth.client.d.ts +263 -0
  2. package/dist/auth-client/backend-auth.client.js +398 -0
  3. package/dist/auth-client/frontend-auth.client.d.ts +113 -0
  4. package/dist/auth-client/frontend-auth.client.js +131 -0
  5. package/dist/auth-client/is-session-refresh-ready.d.ts +23 -0
  6. package/dist/auth-client/is-session-refresh-ready.js +21 -0
  7. package/dist/auth.d.ts +81 -0
  8. package/dist/auth.js +132 -0
  9. package/dist/cookie.d.ts +111 -0
  10. package/dist/cookie.js +137 -0
  11. package/dist/csrf-token.d.ts +33 -0
  12. package/dist/csrf-token.js +42 -0
  13. package/dist/generated/browser.d.ts +9 -0
  14. package/dist/generated/browser.js +17 -0
  15. package/dist/generated/client.d.ts +26 -0
  16. package/dist/generated/client.js +32 -0
  17. package/dist/generated/commonInputTypes.d.ts +122 -0
  18. package/dist/generated/commonInputTypes.js +1 -0
  19. package/dist/generated/enums.d.ts +1 -0
  20. package/dist/generated/enums.js +10 -0
  21. package/dist/generated/internal/class.d.ts +126 -0
  22. package/dist/generated/internal/class.js +85 -0
  23. package/dist/generated/internal/prismaNamespace.d.ts +545 -0
  24. package/dist/generated/internal/prismaNamespace.js +102 -0
  25. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +75 -0
  26. package/dist/generated/internal/prismaNamespaceBrowser.js +70 -0
  27. package/dist/generated/models/User.d.ts +980 -0
  28. package/dist/generated/models/User.js +1 -0
  29. package/dist/generated/models.d.ts +2 -0
  30. package/dist/generated/models.js +1 -0
  31. package/dist/generated/shapes.gen.d.ts +8 -0
  32. package/dist/generated/shapes.gen.js +11 -0
  33. package/dist/hash.d.ts +42 -0
  34. package/dist/hash.js +52 -0
  35. package/dist/headers.d.ts +19 -0
  36. package/dist/headers.js +32 -0
  37. package/dist/index.d.ts +11 -0
  38. package/dist/index.js +11 -0
  39. package/dist/jwt/jwt-keys.d.ts +44 -0
  40. package/dist/jwt/jwt-keys.js +57 -0
  41. package/dist/jwt/jwt-keys.script.d.ts +1 -0
  42. package/dist/jwt/jwt-keys.script.js +3 -0
  43. package/dist/jwt/jwt.d.ts +126 -0
  44. package/dist/jwt/jwt.js +109 -0
  45. package/dist/jwt/user-jwt.d.ts +44 -0
  46. package/dist/jwt/user-jwt.js +53 -0
  47. package/package.json +4 -4
  48. package/src/auth-client/backend-auth.client.ts +3 -0
  49. package/src/auth.ts +5 -1
@@ -0,0 +1,545 @@
1
+ import { type UtcIsoString } from 'date-vir';
2
+ import * as runtime from "@prisma/client/runtime/client";
3
+ import type * as Prisma from "../models.js";
4
+ import { type PrismaClient } from "./class.js";
5
+ export type * from '../models.js';
6
+ export type DMMF = typeof runtime.DMMF;
7
+ export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>;
8
+ /**
9
+ * Prisma Errors
10
+ */
11
+ export declare const PrismaClientKnownRequestError: typeof runtime.PrismaClientKnownRequestError;
12
+ export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
13
+ export declare const PrismaClientUnknownRequestError: typeof runtime.PrismaClientUnknownRequestError;
14
+ export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
15
+ export declare const PrismaClientRustPanicError: typeof runtime.PrismaClientRustPanicError;
16
+ export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
17
+ export declare const PrismaClientInitializationError: typeof runtime.PrismaClientInitializationError;
18
+ export type PrismaClientInitializationError = runtime.PrismaClientInitializationError;
19
+ export declare const PrismaClientValidationError: typeof runtime.PrismaClientValidationError;
20
+ export type PrismaClientValidationError = runtime.PrismaClientValidationError;
21
+ /**
22
+ * Re-export of sql-template-tag
23
+ */
24
+ export declare const sql: typeof runtime.sqltag;
25
+ export declare const empty: runtime.Sql;
26
+ export declare const join: typeof runtime.join;
27
+ export declare const raw: typeof runtime.raw;
28
+ export declare const Sql: typeof runtime.Sql;
29
+ export type Sql = runtime.Sql;
30
+ /**
31
+ * Prisma.skip
32
+ */
33
+ export declare const skip: runtime.Types.Skip;
34
+ /**
35
+ * Decimal.js
36
+ */
37
+ export declare const Decimal: typeof runtime.Decimal;
38
+ export type Decimal = runtime.Decimal;
39
+ export type DecimalJsLike = runtime.DecimalJsLike;
40
+ /**
41
+ * Metrics
42
+ */
43
+ export type Metrics = runtime.Metrics;
44
+ export type Metric<T> = runtime.Metric<T>;
45
+ export type MetricHistogram = runtime.MetricHistogram;
46
+ export type MetricHistogramBucket = runtime.MetricHistogramBucket;
47
+ /**
48
+ * Extensions
49
+ */
50
+ export type Extension = runtime.Types.Extensions.UserArgs;
51
+ export declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext;
52
+ export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>;
53
+ export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>;
54
+ export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>;
55
+ export type Exact<A, W> = runtime.Types.Public.Exact<A, W>;
56
+ export type PrismaVersion = {
57
+ client: string;
58
+ engine: string;
59
+ };
60
+ /**
61
+ * Prisma Client JS version: 6.19.2
62
+ * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
63
+ */
64
+ export declare const prismaVersion: PrismaVersion;
65
+ /**
66
+ * Utility Types
67
+ */
68
+ export type Bytes = runtime.Bytes;
69
+ export type JsonObject = runtime.JsonObject;
70
+ export type JsonArray = runtime.JsonArray;
71
+ export type JsonValue = runtime.JsonValue;
72
+ export type InputJsonObject = runtime.InputJsonObject;
73
+ export type InputJsonArray = runtime.InputJsonArray;
74
+ export type InputJsonValue = runtime.InputJsonValue;
75
+ export declare const NullTypes: {
76
+ DbNull: (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull);
77
+ JsonNull: (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull);
78
+ AnyNull: (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull);
79
+ };
80
+ /**
81
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
82
+ *
83
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
84
+ */
85
+ export declare const DbNull: {
86
+ "__#private@#private": any;
87
+ _getNamespace(): string;
88
+ _getName(): string;
89
+ toString(): string;
90
+ };
91
+ /**
92
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
93
+ *
94
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
95
+ */
96
+ export declare const JsonNull: {
97
+ "__#private@#private": any;
98
+ _getNamespace(): string;
99
+ _getName(): string;
100
+ toString(): string;
101
+ };
102
+ /**
103
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
104
+ *
105
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
106
+ */
107
+ export declare const AnyNull: {
108
+ "__#private@#private": any;
109
+ _getNamespace(): string;
110
+ _getName(): string;
111
+ toString(): string;
112
+ };
113
+ type SelectAndInclude = {
114
+ select: any;
115
+ include: any;
116
+ };
117
+ type SelectAndOmit = {
118
+ select: any;
119
+ omit: any;
120
+ };
121
+ /**
122
+ * From T, pick a set of properties whose keys are in the union K
123
+ */
124
+ type Prisma__Pick<T, K extends keyof T> = {
125
+ [P in K]: T[P];
126
+ };
127
+ export type Enumerable<T> = T | Array<T>;
128
+ /**
129
+ * Subset
130
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
131
+ */
132
+ export type Subset<T, U> = {
133
+ [key in keyof T]: key extends keyof U ? T[key] : never;
134
+ };
135
+ /**
136
+ * SelectSubset
137
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
138
+ * Additionally, it validates, if both select and include are present. If the case, it errors.
139
+ */
140
+ export type SelectSubset<T, U> = {
141
+ [key in keyof T]: key extends keyof U ? T[key] : never;
142
+ } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {});
143
+ /**
144
+ * Subset + Intersection
145
+ * @desc From `T` pick properties that exist in `U` and intersect `K`
146
+ */
147
+ export type SubsetIntersection<T, U, K> = {
148
+ [key in keyof T]: key extends keyof U ? T[key] : never;
149
+ } & K;
150
+ type Without<T, U> = {
151
+ [P in Exclude<keyof T, keyof U>]?: never;
152
+ };
153
+ /**
154
+ * XOR is needed to have a real mutually exclusive union type
155
+ * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
156
+ */
157
+ export type XOR<T, U> = T extends object ? U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : U : T;
158
+ /**
159
+ * Is T a Record?
160
+ */
161
+ type IsObject<T extends any> = T extends Array<any> ? False : T extends UtcIsoString ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False;
162
+ /**
163
+ * If it's T[], return T
164
+ */
165
+ export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
166
+ /**
167
+ * From ts-toolbelt
168
+ */
169
+ type __Either<O extends object, K extends Key> = Omit<O, K> & {
170
+ [P in K]: Prisma__Pick<O, P & keyof O>;
171
+ }[K];
172
+ type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>;
173
+ type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>;
174
+ type _Either<O extends object, K extends Key, strict extends Boolean> = {
175
+ 1: EitherStrict<O, K>;
176
+ 0: EitherLoose<O, K>;
177
+ }[strict];
178
+ export type Either<O extends object, K extends Key, strict extends Boolean = 1> = O extends unknown ? _Either<O, K, strict> : never;
179
+ export type Union = any;
180
+ export type PatchUndefined<O extends object, O1 extends object> = {
181
+ [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
182
+ } & {};
183
+ /** Helper Types for "Merge" **/
184
+ export type IntersectOf<U extends Union> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
185
+ export type Overwrite<O extends object, O1 extends object> = {
186
+ [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
187
+ } & {};
188
+ type _Merge<U extends object> = IntersectOf<Overwrite<U, {
189
+ [K in keyof U]-?: At<U, K>;
190
+ }>>;
191
+ type Key = string | number | symbol;
192
+ type AtStrict<O extends object, K extends Key> = O[K & keyof O];
193
+ type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
194
+ export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
195
+ 1: AtStrict<O, K>;
196
+ 0: AtLoose<O, K>;
197
+ }[strict];
198
+ export type ComputeRaw<A extends any> = A extends Function ? A : {
199
+ [K in keyof A]: A[K];
200
+ } & {};
201
+ export type OptionalFlat<O> = {
202
+ [K in keyof O]?: O[K];
203
+ } & {};
204
+ type _Record<K extends keyof any, T> = {
205
+ [P in K]: T;
206
+ };
207
+ type NoExpand<T> = T extends unknown ? T : never;
208
+ export type AtLeast<O extends object, K extends string> = NoExpand<O extends unknown ? (K extends keyof O ? {
209
+ [P in K]: O[P];
210
+ } & O : O) | {
211
+ [P in keyof O as P extends K ? P : never]-?: O[P];
212
+ } & O : never>;
213
+ type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
214
+ export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
215
+ /** End Helper Types for "Merge" **/
216
+ export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
217
+ export type Boolean = True | False;
218
+ export type True = 1;
219
+ export type False = 0;
220
+ export type Not<B extends Boolean> = {
221
+ 0: 1;
222
+ 1: 0;
223
+ }[B];
224
+ export type Extends<A1 extends any, A2 extends any> = [A1] extends [never] ? 0 : A1 extends A2 ? 1 : 0;
225
+ export type Has<U extends Union, U1 extends Union> = Not<Extends<Exclude<U1, U>, U1>>;
226
+ export type Or<B1 extends Boolean, B2 extends Boolean> = {
227
+ 0: {
228
+ 0: 0;
229
+ 1: 1;
230
+ };
231
+ 1: {
232
+ 0: 1;
233
+ 1: 1;
234
+ };
235
+ }[B1][B2];
236
+ export type Keys<U extends Union> = U extends unknown ? keyof U : never;
237
+ export type GetScalarType<T, O> = O extends object ? {
238
+ [P in keyof T]: P extends keyof O ? O[P] : never;
239
+ } : never;
240
+ type FieldPaths<T, U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>> = IsObject<T> extends True ? U : T;
241
+ export type GetHavingFields<T> = {
242
+ [K in keyof T]: Or<Or<Extends<'OR', K>, Extends<'AND', K>>, Extends<'NOT', K>> extends True ? T[K] extends infer TK ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never> : never : {} extends FieldPaths<T[K]> ? never : K;
243
+ }[keyof T];
244
+ /**
245
+ * Convert tuple to union
246
+ */
247
+ type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
248
+ type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
249
+ export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
250
+ /**
251
+ * Like `Pick`, but additionally can also accept an array of keys
252
+ */
253
+ export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>;
254
+ /**
255
+ * Exclude all keys with underscores
256
+ */
257
+ export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T;
258
+ export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
259
+ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>;
260
+ export declare const ModelName: {
261
+ readonly User: "User";
262
+ };
263
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName];
264
+ export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
265
+ extArgs: runtime.Types.Extensions.InternalArgs;
266
+ }, runtime.Types.Utils.Record<string, any>> {
267
+ returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>;
268
+ }
269
+ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
270
+ globalOmitOptions: {
271
+ omit: GlobalOmitOptions;
272
+ };
273
+ meta: {
274
+ modelProps: "user";
275
+ txIsolationLevel: TransactionIsolationLevel;
276
+ };
277
+ model: {
278
+ User: {
279
+ payload: Prisma.$UserPayload<ExtArgs>;
280
+ fields: Prisma.UserFieldRefs;
281
+ operations: {
282
+ findUnique: {
283
+ args: Prisma.UserFindUniqueArgs<ExtArgs>;
284
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null;
285
+ };
286
+ findUniqueOrThrow: {
287
+ args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>;
288
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
289
+ };
290
+ findFirst: {
291
+ args: Prisma.UserFindFirstArgs<ExtArgs>;
292
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null;
293
+ };
294
+ findFirstOrThrow: {
295
+ args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>;
296
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
297
+ };
298
+ findMany: {
299
+ args: Prisma.UserFindManyArgs<ExtArgs>;
300
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
301
+ };
302
+ create: {
303
+ args: Prisma.UserCreateArgs<ExtArgs>;
304
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
305
+ };
306
+ createMany: {
307
+ args: Prisma.UserCreateManyArgs<ExtArgs>;
308
+ result: BatchPayload;
309
+ };
310
+ createManyAndReturn: {
311
+ args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>;
312
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
313
+ };
314
+ delete: {
315
+ args: Prisma.UserDeleteArgs<ExtArgs>;
316
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
317
+ };
318
+ update: {
319
+ args: Prisma.UserUpdateArgs<ExtArgs>;
320
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
321
+ };
322
+ deleteMany: {
323
+ args: Prisma.UserDeleteManyArgs<ExtArgs>;
324
+ result: BatchPayload;
325
+ };
326
+ updateMany: {
327
+ args: Prisma.UserUpdateManyArgs<ExtArgs>;
328
+ result: BatchPayload;
329
+ };
330
+ updateManyAndReturn: {
331
+ args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>;
332
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[];
333
+ };
334
+ upsert: {
335
+ args: Prisma.UserUpsertArgs<ExtArgs>;
336
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>;
337
+ };
338
+ aggregate: {
339
+ args: Prisma.UserAggregateArgs<ExtArgs>;
340
+ result: runtime.Types.Utils.Optional<Prisma.AggregateUser>;
341
+ };
342
+ groupBy: {
343
+ args: Prisma.UserGroupByArgs<ExtArgs>;
344
+ result: runtime.Types.Utils.Optional<Prisma.UserGroupByOutputType>[];
345
+ };
346
+ count: {
347
+ args: Prisma.UserCountArgs<ExtArgs>;
348
+ result: runtime.Types.Utils.Optional<Prisma.UserCountAggregateOutputType> | number;
349
+ };
350
+ };
351
+ };
352
+ };
353
+ } & {
354
+ other: {
355
+ payload: any;
356
+ operations: {
357
+ $executeRaw: {
358
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
359
+ result: any;
360
+ };
361
+ $executeRawUnsafe: {
362
+ args: [query: string, ...values: any[]];
363
+ result: any;
364
+ };
365
+ $queryRaw: {
366
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
367
+ result: any;
368
+ };
369
+ $queryRawUnsafe: {
370
+ args: [query: string, ...values: any[]];
371
+ result: any;
372
+ };
373
+ };
374
+ };
375
+ };
376
+ /**
377
+ * Enums
378
+ */
379
+ export declare const TransactionIsolationLevel: {
380
+ readonly ReadUncommitted: "ReadUncommitted";
381
+ readonly ReadCommitted: "ReadCommitted";
382
+ readonly RepeatableRead: "RepeatableRead";
383
+ readonly Serializable: "Serializable";
384
+ };
385
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
386
+ export declare const UserScalarFieldEnum: {
387
+ readonly id: "id";
388
+ readonly createdAt: "createdAt";
389
+ readonly updatedAt: "updatedAt";
390
+ readonly name: "name";
391
+ };
392
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
393
+ export declare const RelationLoadStrategy: {
394
+ readonly query: "query";
395
+ readonly join: "join";
396
+ };
397
+ export type RelationLoadStrategy = (typeof RelationLoadStrategy)[keyof typeof RelationLoadStrategy];
398
+ export declare const SortOrder: {
399
+ readonly asc: "asc";
400
+ readonly desc: "desc";
401
+ };
402
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
403
+ export declare const QueryMode: {
404
+ readonly default: "default";
405
+ readonly insensitive: "insensitive";
406
+ };
407
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode];
408
+ /**
409
+ * Field references
410
+ */
411
+ /**
412
+ * Reference to a field of type 'String'
413
+ */
414
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>;
415
+ /**
416
+ * Reference to a field of type 'String[]'
417
+ */
418
+ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>;
419
+ /**
420
+ * Reference to a field of type 'DateTime'
421
+ */
422
+ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>;
423
+ /**
424
+ * Reference to a field of type 'DateTime[]'
425
+ */
426
+ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>;
427
+ /**
428
+ * Reference to a field of type 'Int'
429
+ */
430
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>;
431
+ /**
432
+ * Reference to a field of type 'Int[]'
433
+ */
434
+ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>;
435
+ /**
436
+ * Batch Payload for updateMany & deleteMany & createMany
437
+ */
438
+ export type BatchPayload = {
439
+ count: number;
440
+ };
441
+ export type Datasource = {
442
+ url?: string;
443
+ };
444
+ export type Datasources = {
445
+ db?: Datasource;
446
+ };
447
+ export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>;
448
+ export type DefaultPrismaClient = PrismaClient;
449
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
450
+ export interface PrismaClientOptions {
451
+ /**
452
+ * Overwrites the datasource url from your schema.prisma file
453
+ */
454
+ datasources?: Datasources;
455
+ /**
456
+ * Overwrites the datasource url from your schema.prisma file
457
+ */
458
+ datasourceUrl?: string;
459
+ /**
460
+ * @default "colorless"
461
+ */
462
+ errorFormat?: ErrorFormat;
463
+ /**
464
+ * @example
465
+ * ```
466
+ * // Shorthand for `emit: 'stdout'`
467
+ * log: ['query', 'info', 'warn', 'error']
468
+ *
469
+ * // Emit as events only
470
+ * log: [
471
+ * { emit: 'event', level: 'query' },
472
+ * { emit: 'event', level: 'info' },
473
+ * { emit: 'event', level: 'warn' }
474
+ * { emit: 'event', level: 'error' }
475
+ * ]
476
+ *
477
+ * / Emit as events and log to stdout
478
+ * og: [
479
+ * { emit: 'stdout', level: 'query' },
480
+ * { emit: 'stdout', level: 'info' },
481
+ * { emit: 'stdout', level: 'warn' }
482
+ * { emit: 'stdout', level: 'error' }
483
+ *
484
+ * ```
485
+ * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
486
+ */
487
+ log?: (LogLevel | LogDefinition)[];
488
+ /**
489
+ * The default values for transactionOptions
490
+ * maxWait ?= 2000
491
+ * timeout ?= 5000
492
+ */
493
+ transactionOptions?: {
494
+ maxWait?: number;
495
+ timeout?: number;
496
+ isolationLevel?: TransactionIsolationLevel;
497
+ };
498
+ /**
499
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
500
+ */
501
+ adapter?: runtime.SqlDriverAdapterFactory | null;
502
+ /**
503
+ * Global configuration for omitting model fields by default.
504
+ *
505
+ * @example
506
+ * ```
507
+ * const prisma = new PrismaClient({
508
+ * omit: {
509
+ * user: {
510
+ * password: true
511
+ * }
512
+ * }
513
+ * })
514
+ * ```
515
+ */
516
+ omit?: GlobalOmitConfig;
517
+ }
518
+ export type GlobalOmitConfig = {
519
+ user?: Prisma.UserOmit;
520
+ };
521
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error';
522
+ export type LogDefinition = {
523
+ level: LogLevel;
524
+ emit: 'stdout' | 'event';
525
+ };
526
+ export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
527
+ export type GetLogType<T> = CheckIsLogLevel<T extends LogDefinition ? T['level'] : T>;
528
+ export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
529
+ export type QueryEvent = {
530
+ timestamp: UtcIsoString;
531
+ query: string;
532
+ params: string;
533
+ duration: number;
534
+ target: string;
535
+ };
536
+ export type LogEvent = {
537
+ timestamp: UtcIsoString;
538
+ message: string;
539
+ target: string;
540
+ };
541
+ export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
542
+ /**
543
+ * `PrismaClient` proxy available in interactive transactions.
544
+ */
545
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;
@@ -0,0 +1,102 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ /*
5
+ * WARNING: This is an internal file that is subject to change!
6
+ *
7
+ * 🛑 Under no circumstances should you import this file directly! 🛑
8
+ *
9
+ * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
10
+ * While this enables partial backward compatibility, it is not part of the stable public API.
11
+ *
12
+ * If you are looking for your Models, Enums, and Input Types, please import them from the respective
13
+ * model files in the `model` directory!
14
+ */
15
+ import * as runtime from "@prisma/client/runtime/client";
16
+ /**
17
+ * Prisma Errors
18
+ */
19
+ export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
20
+ export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
21
+ export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
22
+ export const PrismaClientInitializationError = runtime.PrismaClientInitializationError;
23
+ export const PrismaClientValidationError = runtime.PrismaClientValidationError;
24
+ /**
25
+ * Re-export of sql-template-tag
26
+ */
27
+ export const sql = runtime.sqltag;
28
+ export const empty = runtime.empty;
29
+ export const join = runtime.join;
30
+ export const raw = runtime.raw;
31
+ export const Sql = runtime.Sql;
32
+ /**
33
+ * Prisma.skip
34
+ */
35
+ export const skip = runtime.skip;
36
+ /**
37
+ * Decimal.js
38
+ */
39
+ export const Decimal = runtime.Decimal;
40
+ export const getExtensionContext = runtime.Extensions.getExtensionContext;
41
+ /**
42
+ * Prisma Client JS version: 6.19.2
43
+ * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
44
+ */
45
+ export const prismaVersion = {
46
+ client: "6.19.2",
47
+ engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
48
+ };
49
+ export const NullTypes = {
50
+ DbNull: runtime.objectEnumValues.classes.DbNull,
51
+ JsonNull: runtime.objectEnumValues.classes.JsonNull,
52
+ AnyNull: runtime.objectEnumValues.classes.AnyNull,
53
+ };
54
+ /**
55
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
56
+ *
57
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
58
+ */
59
+ export const DbNull = runtime.objectEnumValues.instances.DbNull;
60
+ /**
61
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
62
+ *
63
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
64
+ */
65
+ export const JsonNull = runtime.objectEnumValues.instances.JsonNull;
66
+ /**
67
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
68
+ *
69
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
70
+ */
71
+ export const AnyNull = runtime.objectEnumValues.instances.AnyNull;
72
+ export const ModelName = {
73
+ User: 'User'
74
+ };
75
+ /**
76
+ * Enums
77
+ */
78
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
79
+ ReadUncommitted: 'ReadUncommitted',
80
+ ReadCommitted: 'ReadCommitted',
81
+ RepeatableRead: 'RepeatableRead',
82
+ Serializable: 'Serializable'
83
+ });
84
+ export const UserScalarFieldEnum = {
85
+ id: 'id',
86
+ createdAt: 'createdAt',
87
+ updatedAt: 'updatedAt',
88
+ name: 'name'
89
+ };
90
+ export const RelationLoadStrategy = {
91
+ query: 'query',
92
+ join: 'join'
93
+ };
94
+ export const SortOrder = {
95
+ asc: 'asc',
96
+ desc: 'desc'
97
+ };
98
+ export const QueryMode = {
99
+ default: 'default',
100
+ insensitive: 'insensitive'
101
+ };
102
+ export const defineExtension = runtime.Extensions.defineExtension;