pulse-cli-divakar 1.0.2 → 1.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 (44) hide show
  1. package/package.json +8 -6
  2. package/src/cli/chat/chat-with-aiAgent.js +0 -1
  3. package/src/cli/chat/chat-with-aitool.js +1 -1
  4. package/src/cli/chat/utils/chataiutils.js +40 -19
  5. package/src/cli/commands/ai/wakeup.js +77 -73
  6. package/src/cli/commands/auth/login.js +2 -3
  7. package/src/cli/commands/auth/whoami.js +24 -18
  8. package/src/cli/commands/config/config.js +72 -0
  9. package/src/cli/main.js +3 -1
  10. package/src/config/google.config.js +21 -6
  11. package/src/service/chat.service.js +120 -0
  12. package/src/generated/prisma/browser.ts +0 -24
  13. package/src/generated/prisma/client.d.ts +0 -1
  14. package/src/generated/prisma/client.js +0 -5
  15. package/src/generated/prisma/client.ts +0 -48
  16. package/src/generated/prisma/commonInputTypes.ts +0 -92
  17. package/src/generated/prisma/default.d.ts +0 -1
  18. package/src/generated/prisma/default.js +0 -5
  19. package/src/generated/prisma/edge.d.ts +0 -1
  20. package/src/generated/prisma/edge.js +0 -234
  21. package/src/generated/prisma/enums.ts +0 -15
  22. package/src/generated/prisma/index-browser.js +0 -260
  23. package/src/generated/prisma/index.d.ts +0 -13151
  24. package/src/generated/prisma/index.js +0 -234
  25. package/src/generated/prisma/internal/class.ts +0 -204
  26. package/src/generated/prisma/internal/prismaNamespace.ts +0 -804
  27. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -95
  28. package/src/generated/prisma/models/Test.ts +0 -1069
  29. package/src/generated/prisma/models.ts +0 -12
  30. package/src/generated/prisma/package.json +0 -139
  31. package/src/generated/prisma/query_compiler_fast_bg.js +0 -2
  32. package/src/generated/prisma/query_compiler_fast_bg.wasm +0 -0
  33. package/src/generated/prisma/query_compiler_fast_bg.wasm-base64.js +0 -2
  34. package/src/generated/prisma/runtime/client.d.ts +0 -3490
  35. package/src/generated/prisma/runtime/client.js +0 -105
  36. package/src/generated/prisma/runtime/index-browser.d.ts +0 -90
  37. package/src/generated/prisma/runtime/index-browser.js +0 -6
  38. package/src/generated/prisma/runtime/wasm-compiler-edge.js +0 -100
  39. package/src/generated/prisma/schema.prisma +0 -119
  40. package/src/generated/prisma/wasm-edge-light-loader.mjs +0 -5
  41. package/src/generated/prisma/wasm-worker-loader.mjs +0 -5
  42. package/src/index.js +0 -66
  43. package/src/lib/auth.js +0 -29
  44. package/src/lib/db.js +0 -9
@@ -1,804 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * WARNING: This is an internal file that is subject to change!
8
- *
9
- * 🛑 Under no circumstances should you import this file directly! 🛑
10
- *
11
- * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
12
- * While this enables partial backward compatibility, it is not part of the stable public API.
13
- *
14
- * If you are looking for your Models, Enums, and Input Types, please import them from the respective
15
- * model files in the `model` directory!
16
- */
17
-
18
- import * as runtime from "@prisma/client/runtime/client"
19
- import type * as Prisma from "../models.ts"
20
- import { type PrismaClient } from "./class.ts"
21
-
22
- export type * from '../models.ts'
23
-
24
- export type DMMF = typeof runtime.DMMF
25
-
26
- export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
27
-
28
- /**
29
- * Prisma Errors
30
- */
31
-
32
- export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
33
- export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
34
-
35
- export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
36
- export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
37
-
38
- export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
39
- export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
40
-
41
- export const PrismaClientInitializationError = runtime.PrismaClientInitializationError
42
- export type PrismaClientInitializationError = runtime.PrismaClientInitializationError
43
-
44
- export const PrismaClientValidationError = runtime.PrismaClientValidationError
45
- export type PrismaClientValidationError = runtime.PrismaClientValidationError
46
-
47
- /**
48
- * Re-export of sql-template-tag
49
- */
50
- export const sql = runtime.sqltag
51
- export const empty = runtime.empty
52
- export const join = runtime.join
53
- export const raw = runtime.raw
54
- export const Sql = runtime.Sql
55
- export type Sql = runtime.Sql
56
-
57
-
58
-
59
- /**
60
- * Decimal.js
61
- */
62
- export const Decimal = runtime.Decimal
63
- export type Decimal = runtime.Decimal
64
-
65
- export type DecimalJsLike = runtime.DecimalJsLike
66
-
67
- /**
68
- * Extensions
69
- */
70
- export type Extension = runtime.Types.Extensions.UserArgs
71
- export const getExtensionContext = runtime.Extensions.getExtensionContext
72
- export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>
73
- export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>
74
- export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>
75
- export type Exact<A, W> = runtime.Types.Public.Exact<A, W>
76
-
77
- export type PrismaVersion = {
78
- client: string
79
- engine: string
80
- }
81
-
82
- /**
83
- * Prisma Client JS version: 7.10.1
84
- * Query Engine version: d1b3f377ca835d73fd50954a5e22128b9ebdd6b8
85
- */
86
- export const prismaVersion: PrismaVersion = {
87
- client: "7.10.1",
88
- engine: "d1b3f377ca835d73fd50954a5e22128b9ebdd6b8"
89
- }
90
-
91
- /**
92
- * Utility Types
93
- */
94
-
95
- export type Bytes = runtime.Bytes
96
- export type JsonObject = runtime.JsonObject
97
- export type JsonArray = runtime.JsonArray
98
- export type JsonValue = runtime.JsonValue
99
- export type InputJsonObject = runtime.InputJsonObject
100
- export type InputJsonArray = runtime.InputJsonArray
101
- export type InputJsonValue = runtime.InputJsonValue
102
-
103
-
104
- export const NullTypes = {
105
- DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
106
- JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
107
- AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
108
- }
109
- /**
110
- * Helper for filtering JSON entries that have `null` on the database (empty on the db)
111
- *
112
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
113
- */
114
- export const DbNull = runtime.DbNull
115
-
116
- /**
117
- * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
118
- *
119
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
120
- */
121
- export const JsonNull = runtime.JsonNull
122
-
123
- /**
124
- * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
125
- *
126
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
127
- */
128
- export const AnyNull = runtime.AnyNull
129
-
130
-
131
- type SelectAndInclude = {
132
- select: any
133
- include: any
134
- }
135
-
136
- type SelectAndOmit = {
137
- select: any
138
- omit: any
139
- }
140
-
141
- /**
142
- * From T, pick a set of properties whose keys are in the union K
143
- */
144
- type Prisma__Pick<T, K extends keyof T> = {
145
- [P in K]: T[P];
146
- };
147
-
148
- export type Enumerable<T> = T | Array<T>;
149
-
150
- /**
151
- * Subset
152
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
153
- */
154
- export type Subset<T, U> = {
155
- [key in keyof T]: key extends keyof U ? T[key] : never;
156
- };
157
-
158
- /**
159
- * Resolved type of the argument passed to the `PrismaClient` constructor.
160
- *
161
- * When called without a narrower options type (the common case), this resolves
162
- * to `PrismaClientOptions` directly, which produces a clear TypeScript error
163
- * message (`not assignable to parameter of type 'PrismaClientOptions'`) when
164
- * the argument is missing or incomplete. When the user supplies a narrower
165
- * options type (e.g. via a literal), it falls back to `Subset` to keep
166
- * filtering out unknown properties.
167
- */
168
- export type PrismaClientConstructorArgs<Options extends PrismaClientOptions> =
169
- [PrismaClientOptions] extends [Options] ? PrismaClientOptions : Subset<Options, PrismaClientOptions>;
170
-
171
- /**
172
- * SelectSubset
173
- * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
174
- * Additionally, it validates, if both select and include are present. If the case, it errors.
175
- */
176
- export type SelectSubset<T, U> = {
177
- [key in keyof T]: key extends keyof U ? T[key] : never
178
- } &
179
- (T extends SelectAndInclude
180
- ? 'Please either choose `select` or `include`.'
181
- : T extends SelectAndOmit
182
- ? 'Please either choose `select` or `omit`.'
183
- : {})
184
-
185
- /**
186
- * Subset + Intersection
187
- * @desc From `T` pick properties that exist in `U` and intersect `K`
188
- */
189
- export type SubsetIntersection<T, U, K> = {
190
- [key in keyof T]: key extends keyof U ? T[key] : never
191
- } &
192
- K
193
-
194
- type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
195
-
196
- /**
197
- * XOR is needed to have a real mutually exclusive union type
198
- * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
199
- */
200
- export type XOR<T, U> =
201
- T extends object ?
202
- U extends object ?
203
- ((Without<T, U> & U) | (Without<U, T> & T)) & object
204
- : U : T
205
-
206
-
207
- /**
208
- * Is T a Record?
209
- */
210
- type IsObject<T extends any> = T extends Array<any>
211
- ? False
212
- : T extends Date
213
- ? False
214
- : T extends Uint8Array
215
- ? False
216
- : T extends BigInt
217
- ? False
218
- : T extends object
219
- ? True
220
- : False
221
-
222
-
223
- /**
224
- * If it's T[], return T
225
- */
226
- export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
227
-
228
- /**
229
- * From ts-toolbelt
230
- */
231
-
232
- type __Either<O extends object, K extends Key> = Omit<O, K> &
233
- {
234
- // Merge all but K
235
- [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
236
- }[K]
237
-
238
- type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
239
-
240
- type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
241
-
242
- type _Either<
243
- O extends object,
244
- K extends Key,
245
- strict extends Boolean
246
- > = {
247
- 1: EitherStrict<O, K>
248
- 0: EitherLoose<O, K>
249
- }[strict]
250
-
251
- export type Either<
252
- O extends object,
253
- K extends Key,
254
- strict extends Boolean = 1
255
- > = O extends unknown ? _Either<O, K, strict> : never
256
-
257
- export type Union = any
258
-
259
- export type PatchUndefined<O extends object, O1 extends object> = {
260
- [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
261
- } & {}
262
-
263
- /** Helper Types for "Merge" **/
264
- export type IntersectOf<U extends Union> = (
265
- U extends unknown ? (k: U) => void : never
266
- ) extends (k: infer I) => void
267
- ? I
268
- : never
269
-
270
- export type Overwrite<O extends object, O1 extends object> = {
271
- [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
272
- } & {};
273
-
274
- type _Merge<U extends object> = IntersectOf<Overwrite<U, {
275
- [K in keyof U]-?: At<U, K>;
276
- }>>;
277
-
278
- type Key = string | number | symbol;
279
- type AtStrict<O extends object, K extends Key> = O[K & keyof O];
280
- type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
281
- export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
282
- 1: AtStrict<O, K>;
283
- 0: AtLoose<O, K>;
284
- }[strict];
285
-
286
- export type ComputeRaw<A extends any> = A extends Function ? A : {
287
- [K in keyof A]: A[K];
288
- } & {};
289
-
290
- export type OptionalFlat<O> = {
291
- [K in keyof O]?: O[K];
292
- } & {};
293
-
294
- type _Record<K extends keyof any, T> = {
295
- [P in K]: T;
296
- };
297
-
298
- // cause typescript not to expand types and preserve names
299
- type NoExpand<T> = T extends unknown ? T : never;
300
-
301
- // this type assumes the passed object is entirely optional
302
- export type AtLeast<O extends object, K extends string> = NoExpand<
303
- O extends unknown
304
- ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
305
- | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
306
- : never>;
307
-
308
- type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
309
-
310
- export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
311
- /** End Helper Types for "Merge" **/
312
-
313
- export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
314
-
315
- export type Boolean = True | False
316
-
317
- export type True = 1
318
-
319
- export type False = 0
320
-
321
- export type Not<B extends Boolean> = {
322
- 0: 1
323
- 1: 0
324
- }[B]
325
-
326
- export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
327
- ? 0 // anything `never` is false
328
- : A1 extends A2
329
- ? 1
330
- : 0
331
-
332
- export type Has<U extends Union, U1 extends Union> = Not<
333
- Extends<Exclude<U1, U>, U1>
334
- >
335
-
336
- export type Or<B1 extends Boolean, B2 extends Boolean> = {
337
- 0: {
338
- 0: 0
339
- 1: 1
340
- }
341
- 1: {
342
- 0: 1
343
- 1: 1
344
- }
345
- }[B1][B2]
346
-
347
- export type Keys<U extends Union> = U extends unknown ? keyof U : never
348
-
349
- export type GetScalarType<T, O> = O extends object ? {
350
- [P in keyof T]: P extends keyof O
351
- ? O[P]
352
- : never
353
- } : never
354
-
355
- type FieldPaths<
356
- T,
357
- U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
358
- > = IsObject<T> extends True ? U : T
359
-
360
- export type GetHavingFields<T> = {
361
- [K in keyof T]: Or<
362
- Or<Extends<'OR', K>, Extends<'AND', K>>,
363
- Extends<'NOT', K>
364
- > extends True
365
- ? // infer is only needed to not hit TS limit
366
- // based on the brilliant idea of Pierre-Antoine Mills
367
- // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
368
- T[K] extends infer TK
369
- ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
370
- : never
371
- : {} extends FieldPaths<T[K]>
372
- ? never
373
- : K
374
- }[keyof T]
375
-
376
- /**
377
- * Convert tuple to union
378
- */
379
- type _TupleToUnion<T> = T extends (infer E)[] ? E : never
380
- type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
381
- export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
382
-
383
- /**
384
- * Like `Pick`, but additionally can also accept an array of keys
385
- */
386
- export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
387
-
388
- /**
389
- * Exclude all keys with underscores
390
- */
391
- export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
392
-
393
-
394
- export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
395
-
396
- type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
397
-
398
-
399
- export const ModelName = {
400
- Test: 'Test'
401
- } as const
402
-
403
- export type ModelName = (typeof ModelName)[keyof typeof ModelName]
404
-
405
-
406
-
407
- export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
408
- returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
409
- }
410
-
411
- export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
412
- globalOmitOptions: {
413
- omit: GlobalOmitOptions
414
- }
415
- meta: {
416
- modelProps: "test"
417
- txIsolationLevel: TransactionIsolationLevel
418
- }
419
- model: {
420
- Test: {
421
- payload: Prisma.$TestPayload<ExtArgs>
422
- fields: Prisma.TestFieldRefs
423
- operations: {
424
- findUnique: {
425
- args: Prisma.TestFindUniqueArgs<ExtArgs>
426
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload> | null
427
- }
428
- findUniqueOrThrow: {
429
- args: Prisma.TestFindUniqueOrThrowArgs<ExtArgs>
430
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>
431
- }
432
- findFirst: {
433
- args: Prisma.TestFindFirstArgs<ExtArgs>
434
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload> | null
435
- }
436
- findFirstOrThrow: {
437
- args: Prisma.TestFindFirstOrThrowArgs<ExtArgs>
438
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>
439
- }
440
- findMany: {
441
- args: Prisma.TestFindManyArgs<ExtArgs>
442
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>[]
443
- }
444
- create: {
445
- args: Prisma.TestCreateArgs<ExtArgs>
446
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>
447
- }
448
- createMany: {
449
- args: Prisma.TestCreateManyArgs<ExtArgs>
450
- result: BatchPayload
451
- }
452
- createManyAndReturn: {
453
- args: Prisma.TestCreateManyAndReturnArgs<ExtArgs>
454
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>[]
455
- }
456
- delete: {
457
- args: Prisma.TestDeleteArgs<ExtArgs>
458
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>
459
- }
460
- update: {
461
- args: Prisma.TestUpdateArgs<ExtArgs>
462
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>
463
- }
464
- deleteMany: {
465
- args: Prisma.TestDeleteManyArgs<ExtArgs>
466
- result: BatchPayload
467
- }
468
- updateMany: {
469
- args: Prisma.TestUpdateManyArgs<ExtArgs>
470
- result: BatchPayload
471
- }
472
- updateManyAndReturn: {
473
- args: Prisma.TestUpdateManyAndReturnArgs<ExtArgs>
474
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>[]
475
- }
476
- upsert: {
477
- args: Prisma.TestUpsertArgs<ExtArgs>
478
- result: runtime.Types.Utils.PayloadToResult<Prisma.$TestPayload>
479
- }
480
- aggregate: {
481
- args: Prisma.TestAggregateArgs<ExtArgs>
482
- result: runtime.Types.Utils.Optional<Prisma.AggregateTest>
483
- }
484
- groupBy: {
485
- args: Prisma.TestGroupByArgs<ExtArgs>
486
- result: runtime.Types.Utils.Optional<Prisma.TestGroupByOutputType>[]
487
- }
488
- count: {
489
- args: Prisma.TestCountArgs<ExtArgs>
490
- result: runtime.Types.Utils.Optional<Prisma.TestCountAggregateOutputType> | number
491
- }
492
- }
493
- }
494
- }
495
- } & {
496
- other: {
497
- payload: any
498
- operations: {
499
- $executeRaw: {
500
- args: [query: TemplateStringsArray | Sql, ...values: any[]],
501
- result: any
502
- }
503
- $executeRawUnsafe: {
504
- args: [query: string, ...values: any[]],
505
- result: any
506
- }
507
- $queryRaw: {
508
- args: [query: TemplateStringsArray | Sql, ...values: any[]],
509
- result: any
510
- }
511
- $queryRawUnsafe: {
512
- args: [query: string, ...values: any[]],
513
- result: any
514
- }
515
- }
516
- }
517
- }
518
-
519
- /**
520
- * Enums
521
- */
522
-
523
- export const TransactionIsolationLevel = runtime.makeStrictEnum({
524
- ReadUncommitted: 'ReadUncommitted',
525
- ReadCommitted: 'ReadCommitted',
526
- RepeatableRead: 'RepeatableRead',
527
- Serializable: 'Serializable'
528
- } as const)
529
-
530
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
531
-
532
-
533
- export const TestScalarFieldEnum = {
534
- id: 'id',
535
- name: 'name'
536
- } as const
537
-
538
- export type TestScalarFieldEnum = (typeof TestScalarFieldEnum)[keyof typeof TestScalarFieldEnum]
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 'Int'
579
- */
580
- export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
581
-
582
-
583
-
584
- /**
585
- * Reference to a field of type 'Int[]'
586
- */
587
- export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
588
-
589
-
590
- /**
591
- * Batch Payload for updateMany & deleteMany & createMany
592
- */
593
- export type BatchPayload = {
594
- count: number
595
- }
596
-
597
- export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
598
- export type DefaultPrismaClient = PrismaClient
599
- export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
600
- /**
601
- * Options common to all variants of `PrismaClientOptions`, regardless of whether you connect to your database through a driver adapter or through Prisma Accelerate.
602
- */
603
- export interface PrismaClientBaseOptions {
604
- /**
605
- * @default "colorless"
606
- */
607
- errorFormat?: ErrorFormat
608
- /**
609
- * @example
610
- * ```
611
- * // Shorthand for `emit: 'stdout'`
612
- * log: ['query', 'info', 'warn', 'error']
613
- *
614
- * // Emit as events only
615
- * log: [
616
- * { emit: 'event', level: 'query' },
617
- * { emit: 'event', level: 'info' },
618
- * { emit: 'event', level: 'warn' }
619
- * { emit: 'event', level: 'error' }
620
- * ]
621
- *
622
- * / Emit as events and log to stdout
623
- * og: [
624
- * { emit: 'stdout', level: 'query' },
625
- * { emit: 'stdout', level: 'info' },
626
- * { emit: 'stdout', level: 'warn' }
627
- * { emit: 'stdout', level: 'error' }
628
- *
629
- * ```
630
- * Read more in our [docs](https://pris.ly/d/logging).
631
- */
632
- log?: (LogLevel | LogDefinition)[]
633
- /**
634
- * The default values for transactionOptions
635
- * maxWait ?= 2000
636
- * timeout ?= 5000
637
- */
638
- transactionOptions?: {
639
- maxWait?: number
640
- timeout?: number
641
- isolationLevel?: TransactionIsolationLevel
642
- }
643
- /**
644
- * Global configuration for omitting model fields by default.
645
- *
646
- * @example
647
- * ```
648
- * const prisma = new PrismaClient({
649
- * omit: {
650
- * user: {
651
- * password: true
652
- * }
653
- * }
654
- * })
655
- * ```
656
- */
657
- omit?: GlobalOmitConfig
658
- /**
659
- * SQL commenter plugins that add metadata to SQL queries as comments.
660
- * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
661
- *
662
- * @example
663
- * ```
664
- * const prisma = new PrismaClient({
665
- * adapter,
666
- * comments: [
667
- * traceContext(),
668
- * queryInsights(),
669
- * ],
670
- * })
671
- * ```
672
- */
673
- comments?: runtime.SqlCommenterPlugin[]
674
- /**
675
- * Optional maximum size for the query plan cache. If not provided, a default size will be used.
676
- * A value of `0` can be used to disable the cache entirely. A higher cache size can improve
677
- * performance for applications that execute a large number of unique queries, while a smaller
678
- * cache size can reduce memory usage.
679
- *
680
- * @example
681
- * ```
682
- * const prisma = new PrismaClient({
683
- * adapter,
684
- * queryPlanCacheMaxSize: 100,
685
- * })
686
- * ```
687
- */
688
- queryPlanCacheMaxSize?: number
689
- }
690
-
691
- /**
692
- * `PrismaClient` options for connecting to your database through Prisma Accelerate instead of a driver adapter.
693
- *
694
- * Learn more: https://pris.ly/d/accelerate
695
- */
696
- export interface PrismaClientOptionsWithAccelerateUrl extends PrismaClientBaseOptions {
697
- /**
698
- * The Prisma Accelerate connection URL. Use this option to connect to your database through Prisma Accelerate instead of using a driver adapter to connect directly.
699
- *
700
- * Learn more: https://pris.ly/d/accelerate
701
- */
702
- accelerateUrl: string
703
- adapter?: never
704
- }
705
-
706
- /**
707
- * `PrismaClient` options for connecting to your database through a driver adapter. This is the common case in Prisma 7.
708
- *
709
- * Learn more: https://pris.ly/d/driver-adapters
710
- */
711
- export interface PrismaClientOptionsWithAdapter extends PrismaClientBaseOptions {
712
- /**
713
- * A driver adapter that PrismaClient uses to connect to your database, such as the ones provided by `@prisma/adapter-pg`, `@prisma/adapter-libsql`, `@prisma/adapter-planetscale`, etc.
714
- *
715
- * A driver adapter is **required** unless you connect to your database through Prisma Accelerate (in which case use `accelerateUrl` instead).
716
- *
717
- * Learn more: https://pris.ly/d/driver-adapters
718
- *
719
- * @example
720
- * ```ts
721
- * import { PrismaPg } from '@prisma/adapter-pg'
722
- * import { PrismaClient } from './generated/prisma/client'
723
- *
724
- * const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
725
- * const prisma = new PrismaClient({ adapter })
726
- * ```
727
- */
728
- adapter: runtime.SqlDriverAdapterFactory
729
- accelerateUrl?: never
730
- }
731
-
732
- /**
733
- * Options passed to the `PrismaClient` constructor.
734
- *
735
- * A driver adapter (or, alternatively, a Prisma Accelerate URL) is **required**. See {@link PrismaClientOptionsWithAdapter} and {@link PrismaClientOptionsWithAccelerateUrl} for the two variants. All other properties live in {@link PrismaClientBaseOptions} and are optional.
736
- *
737
- * Learn more about driver adapters: https://pris.ly/d/driver-adapters
738
- */
739
- export type PrismaClientOptions = PrismaClientOptionsWithAccelerateUrl | PrismaClientOptionsWithAdapter
740
- export type GlobalOmitConfig = {
741
- test?: Prisma.TestOmit
742
- }
743
-
744
- /* Types for Logging */
745
- export type LogLevel = 'info' | 'query' | 'warn' | 'error'
746
- export type LogDefinition = {
747
- level: LogLevel
748
- emit: 'stdout' | 'event'
749
- }
750
-
751
- export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
752
-
753
- export type GetLogType<T> = CheckIsLogLevel<
754
- T extends LogDefinition ? T['level'] : T
755
- >;
756
-
757
- export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
758
- ? GetLogType<T[number]>
759
- : never;
760
-
761
- export type QueryEvent = {
762
- timestamp: Date
763
- query: string
764
- params: string
765
- duration: number
766
- target: string
767
- }
768
-
769
- export type LogEvent = {
770
- timestamp: Date
771
- message: string
772
- target: string
773
- }
774
- /* End Types for Logging */
775
-
776
-
777
- export type PrismaAction =
778
- | 'findUnique'
779
- | 'findUniqueOrThrow'
780
- | 'findMany'
781
- | 'findFirst'
782
- | 'findFirstOrThrow'
783
- | 'create'
784
- | 'createMany'
785
- | 'createManyAndReturn'
786
- | 'update'
787
- | 'updateMany'
788
- | 'updateManyAndReturn'
789
- | 'upsert'
790
- | 'delete'
791
- | 'deleteMany'
792
- | 'executeRaw'
793
- | 'queryRaw'
794
- | 'aggregate'
795
- | 'count'
796
- | 'runCommandRaw'
797
- | 'findRaw'
798
- | 'groupBy'
799
-
800
- /**
801
- * `PrismaClient` proxy available in interactive transactions.
802
- */
803
- export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>
804
-