@windrun-huaiin/backend-core 26.0.2 → 28.0.0

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 (191) hide show
  1. package/dist/app/api/ai/route.d.ts +2 -0
  2. package/dist/app/api/ai/route.d.ts.map +1 -0
  3. package/dist/app/api/ai/route.js +10 -0
  4. package/dist/app/api/ai/route.mjs +1 -0
  5. package/dist/app/api/stripe/checkout/route.js +1 -1
  6. package/dist/app/api/stripe/checkout/route.mjs +1 -1
  7. package/dist/app/api/stripe/customer-portal/route.js +1 -1
  8. package/dist/app/api/stripe/customer-portal/route.mjs +1 -1
  9. package/dist/app/api/webhook/clerk/user/route.js +1 -1
  10. package/dist/app/api/webhook/clerk/user/route.mjs +1 -1
  11. package/dist/auth/auth-utils.js +1 -1
  12. package/dist/auth/auth-utils.mjs +1 -1
  13. package/dist/config/fingerprint.d.ts +2 -0
  14. package/dist/config/fingerprint.d.ts.map +1 -0
  15. package/dist/config/fingerprint.js +7 -0
  16. package/dist/config/fingerprint.mjs +1 -0
  17. package/dist/config/money-price.d.ts +2 -0
  18. package/dist/config/money-price.d.ts.map +1 -0
  19. package/dist/config/money-price.js +10 -0
  20. package/dist/config/money-price.mjs +1 -0
  21. package/dist/core-prisma/browser.d.ts +40 -0
  22. package/dist/core-prisma/browser.d.ts.map +1 -0
  23. package/dist/core-prisma/client.d.ts +57 -0
  24. package/dist/core-prisma/client.d.ts.map +1 -0
  25. package/dist/core-prisma/client.js +55 -0
  26. package/dist/core-prisma/client.mjs +33 -0
  27. package/dist/core-prisma/commonInputTypes.d.ts +495 -0
  28. package/dist/core-prisma/commonInputTypes.d.ts.map +1 -0
  29. package/dist/core-prisma/enums.d.ts +2 -0
  30. package/dist/core-prisma/enums.d.ts.map +1 -0
  31. package/dist/core-prisma/internal/class.d.ts +193 -0
  32. package/dist/core-prisma/internal/class.d.ts.map +1 -0
  33. package/dist/core-prisma/internal/class.js +108 -0
  34. package/dist/core-prisma/internal/class.mjs +87 -0
  35. package/dist/core-prisma/internal/prismaNamespace.d.ts +1180 -0
  36. package/dist/core-prisma/internal/prismaNamespace.d.ts.map +1 -0
  37. package/dist/core-prisma/internal/prismaNamespace.js +278 -0
  38. package/dist/core-prisma/internal/prismaNamespace.mjs +226 -0
  39. package/dist/core-prisma/internal/prismaNamespaceBrowser.d.ts +233 -0
  40. package/dist/core-prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  41. package/dist/core-prisma/models/Apilog.d.ts +1088 -0
  42. package/dist/core-prisma/models/Apilog.d.ts.map +1 -0
  43. package/dist/core-prisma/models/Credit.d.ts +1554 -0
  44. package/dist/core-prisma/models/Credit.d.ts.map +1 -0
  45. package/dist/core-prisma/models/CreditAuditLog.d.ts +1362 -0
  46. package/dist/core-prisma/models/CreditAuditLog.d.ts.map +1 -0
  47. package/dist/core-prisma/models/Subscription.d.ts +1441 -0
  48. package/dist/core-prisma/models/Subscription.d.ts.map +1 -0
  49. package/dist/core-prisma/models/Transaction.d.ts +2222 -0
  50. package/dist/core-prisma/models/Transaction.d.ts.map +1 -0
  51. package/dist/core-prisma/models/User.d.ts +1775 -0
  52. package/dist/core-prisma/models/User.d.ts.map +1 -0
  53. package/dist/core-prisma/models/UserBackup.d.ts +1228 -0
  54. package/dist/core-prisma/models/UserBackup.d.ts.map +1 -0
  55. package/dist/core-prisma/models.d.ts +9 -0
  56. package/dist/core-prisma/models.d.ts.map +1 -0
  57. package/dist/credit/server.d.ts +2 -0
  58. package/dist/credit/server.d.ts.map +1 -0
  59. package/dist/credit/server.js +11 -0
  60. package/dist/credit/server.mjs +1 -0
  61. package/dist/index.d.ts +0 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +7 -98
  64. package/dist/index.mjs +5 -14
  65. package/dist/lib/money-price-helper.d.ts.map +1 -1
  66. package/dist/lib/money-price-helper.js +1 -0
  67. package/dist/lib/money-price-helper.mjs +2 -1
  68. package/dist/lib/stripe-config.js +1 -1
  69. package/dist/lib/stripe-config.mjs +1 -1
  70. package/dist/pricing/server.d.ts +2 -0
  71. package/dist/pricing/server.d.ts.map +1 -0
  72. package/dist/pricing/server.js +7 -0
  73. package/dist/pricing/server.mjs +1 -0
  74. package/dist/prisma/index.d.ts +4 -1
  75. package/dist/prisma/index.d.ts.map +1 -1
  76. package/dist/prisma/index.js +6 -0
  77. package/dist/prisma/index.mjs +4 -1
  78. package/dist/prisma/prisma-transaction-util.d.ts +1 -1
  79. package/dist/prisma/prisma-transaction-util.d.ts.map +1 -1
  80. package/dist/prisma/prisma-transaction-util.js +1 -1
  81. package/dist/prisma/prisma-transaction-util.mjs +2 -2
  82. package/dist/prisma/prisma.d.ts +22 -3
  83. package/dist/prisma/prisma.d.ts.map +1 -1
  84. package/dist/prisma/prisma.js +83 -20
  85. package/dist/prisma/prisma.mjs +81 -21
  86. package/dist/services/aggregate/anonymous.aggregate.service.d.ts +2 -2
  87. package/dist/services/aggregate/anonymous.aggregate.service.d.ts.map +1 -1
  88. package/dist/services/aggregate/anonymous.aggregate.service.js +3 -2
  89. package/dist/services/aggregate/anonymous.aggregate.service.mjs +3 -2
  90. package/dist/services/aggregate/billing.aggregate.service.d.ts +2 -2
  91. package/dist/services/aggregate/billing.aggregate.service.d.ts.map +1 -1
  92. package/dist/services/aggregate/billing.aggregate.service.js +1 -1
  93. package/dist/services/aggregate/billing.aggregate.service.mjs +1 -1
  94. package/dist/services/aggregate/user.aggregate.service.d.ts +1 -1
  95. package/dist/services/aggregate/user.aggregate.service.d.ts.map +1 -1
  96. package/dist/services/aggregate/user.aggregate.service.js +3 -3
  97. package/dist/services/aggregate/user.aggregate.service.mjs +3 -3
  98. package/dist/services/context/index.js +1 -0
  99. package/dist/services/context/index.mjs +1 -1
  100. package/dist/services/context/user-context-finalizer.d.ts +1 -0
  101. package/dist/services/context/user-context-finalizer.d.ts.map +1 -1
  102. package/dist/services/context/user-context-finalizer.js +17 -0
  103. package/dist/services/context/user-context-finalizer.mjs +17 -1
  104. package/dist/services/context/user-context-service.js +1 -1
  105. package/dist/services/context/user-context-service.mjs +1 -1
  106. package/dist/services/database/apilog.service.d.ts +2 -2
  107. package/dist/services/database/apilog.service.d.ts.map +1 -1
  108. package/dist/services/database/apilog.service.js +1 -0
  109. package/dist/services/database/apilog.service.mjs +1 -0
  110. package/dist/services/database/credit.service.d.ts +2 -2
  111. package/dist/services/database/credit.service.d.ts.map +1 -1
  112. package/dist/services/database/credit.service.js +5 -4
  113. package/dist/services/database/credit.service.mjs +3 -2
  114. package/dist/services/database/creditAuditLog.service.d.ts +2 -2
  115. package/dist/services/database/creditAuditLog.service.d.ts.map +1 -1
  116. package/dist/services/database/creditAuditLog.service.js +5 -4
  117. package/dist/services/database/creditAuditLog.service.mjs +3 -2
  118. package/dist/services/database/prisma-model-type.d.ts +2 -2
  119. package/dist/services/database/prisma-model-type.d.ts.map +1 -1
  120. package/dist/services/database/subscription.service.d.ts +1 -1
  121. package/dist/services/database/subscription.service.d.ts.map +1 -1
  122. package/dist/services/database/subscription.service.js +1 -0
  123. package/dist/services/database/subscription.service.mjs +1 -0
  124. package/dist/services/database/transaction.service.d.ts +3 -3
  125. package/dist/services/database/transaction.service.d.ts.map +1 -1
  126. package/dist/services/database/transaction.service.js +5 -4
  127. package/dist/services/database/transaction.service.mjs +3 -2
  128. package/dist/services/database/user.service.d.ts +2 -2
  129. package/dist/services/database/user.service.d.ts.map +1 -1
  130. package/dist/services/database/user.service.js +1 -0
  131. package/dist/services/database/user.service.mjs +1 -0
  132. package/dist/services/database/userBackup.service.d.ts +2 -2
  133. package/dist/services/database/userBackup.service.d.ts.map +1 -1
  134. package/dist/services/database/userBackup.service.js +1 -0
  135. package/dist/services/database/userBackup.service.mjs +1 -0
  136. package/dist/services/stripe/webhook-handler.js +1 -1
  137. package/dist/services/stripe/webhook-handler.mjs +1 -1
  138. package/dist/upstash/server.d.ts +3 -0
  139. package/dist/upstash/server.d.ts.map +1 -0
  140. package/dist/{lib/index.js → upstash/server.js} +7 -32
  141. package/dist/upstash/server.mjs +7 -0
  142. package/package.json +44 -12
  143. package/prisma/schema.prisma +3 -1
  144. package/src/app/api/ai/route.ts +6 -0
  145. package/src/app/api/stripe/checkout/route.ts +4 -4
  146. package/src/app/api/stripe/customer-portal/route.ts +3 -3
  147. package/src/app/api/user/anonymous/init/route.ts +5 -5
  148. package/src/app/api/webhook/clerk/user/route.ts +3 -3
  149. package/src/app/api/webhook/stripe/route.ts +3 -3
  150. package/src/config/fingerprint.ts +1 -0
  151. package/src/config/money-price.ts +1 -0
  152. package/src/core-prisma/browser.ts +54 -0
  153. package/src/core-prisma/client.ts +78 -0
  154. package/src/core-prisma/commonInputTypes.ts +565 -0
  155. package/src/core-prisma/enums.ts +15 -0
  156. package/src/core-prisma/internal/class.ts +293 -0
  157. package/src/core-prisma/internal/prismaNamespace.ts +1419 -0
  158. package/src/core-prisma/internal/prismaNamespaceBrowser.ts +259 -0
  159. package/src/core-prisma/models/Apilog.ts +1244 -0
  160. package/src/core-prisma/models/Credit.ts +1722 -0
  161. package/src/core-prisma/models/CreditAuditLog.ts +1536 -0
  162. package/src/core-prisma/models/Subscription.ts +1610 -0
  163. package/src/core-prisma/models/Transaction.ts +2398 -0
  164. package/src/core-prisma/models/User.ts +1982 -0
  165. package/src/core-prisma/models/UserBackup.ts +1384 -0
  166. package/src/core-prisma/models.ts +18 -0
  167. package/src/credit/server.ts +1 -0
  168. package/src/index.ts +0 -1
  169. package/src/lib/money-price-helper.ts +3 -0
  170. package/src/pricing/server.ts +1 -0
  171. package/src/prisma/index.ts +18 -1
  172. package/src/prisma/prisma-transaction-util.ts +3 -3
  173. package/src/prisma/prisma.ts +130 -21
  174. package/src/services/aggregate/anonymous.aggregate.service.ts +7 -7
  175. package/src/services/aggregate/billing.aggregate.service.ts +3 -3
  176. package/src/services/aggregate/user.aggregate.service.ts +7 -6
  177. package/src/services/context/user-context-finalizer.ts +16 -0
  178. package/src/services/database/apilog.service.ts +3 -3
  179. package/src/services/database/credit.service.ts +7 -7
  180. package/src/services/database/creditAuditLog.service.ts +4 -4
  181. package/src/services/database/prisma-model-type.ts +2 -2
  182. package/src/services/database/subscription.service.ts +3 -3
  183. package/src/services/database/transaction.service.ts +4 -4
  184. package/src/services/database/user.service.ts +4 -4
  185. package/src/services/database/userBackup.service.ts +4 -4
  186. package/src/services/stripe/webhook-handler.ts +6 -6
  187. package/src/upstash/server.ts +2 -0
  188. package/dist/lib/index.d.ts +0 -8
  189. package/dist/lib/index.d.ts.map +0 -1
  190. package/dist/lib/index.mjs +0 -12
  191. package/src/lib/index.ts +0 -7
@@ -0,0 +1,1419 @@
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"
20
+ import { type PrismaClient } from "./class"
21
+
22
+ export type * from '../models'
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
+ * Metrics
69
+ */
70
+ export type Metrics = runtime.Metrics
71
+ export type Metric<T> = runtime.Metric<T>
72
+ export type MetricHistogram = runtime.MetricHistogram
73
+ export type MetricHistogramBucket = runtime.MetricHistogramBucket
74
+
75
+ /**
76
+ * Extensions
77
+ */
78
+ export type Extension = runtime.Types.Extensions.UserArgs
79
+ export const getExtensionContext = runtime.Extensions.getExtensionContext
80
+ export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>
81
+ export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>
82
+ export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>
83
+ export type Exact<A, W> = runtime.Types.Public.Exact<A, W>
84
+
85
+ export type PrismaVersion = {
86
+ client: string
87
+ engine: string
88
+ }
89
+
90
+ /**
91
+ * Prisma Client JS version: 6.19.3
92
+ * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
93
+ */
94
+ export const prismaVersion: PrismaVersion = {
95
+ client: "6.19.3",
96
+ engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
97
+ }
98
+
99
+ /**
100
+ * Utility Types
101
+ */
102
+
103
+ export type Bytes = runtime.Bytes
104
+ export type JsonObject = runtime.JsonObject
105
+ export type JsonArray = runtime.JsonArray
106
+ export type JsonValue = runtime.JsonValue
107
+ export type InputJsonObject = runtime.InputJsonObject
108
+ export type InputJsonArray = runtime.InputJsonArray
109
+ export type InputJsonValue = runtime.InputJsonValue
110
+
111
+
112
+ export const NullTypes = {
113
+ DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
114
+ JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
115
+ AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
116
+ }
117
+ /**
118
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
119
+ *
120
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
121
+ */
122
+ export const DbNull = runtime.objectEnumValues.instances.DbNull
123
+ /**
124
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
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 JsonNull = runtime.objectEnumValues.instances.JsonNull
129
+ /**
130
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
131
+ *
132
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
133
+ */
134
+ export const AnyNull = runtime.objectEnumValues.instances.AnyNull
135
+
136
+
137
+ type SelectAndInclude = {
138
+ select: any
139
+ include: any
140
+ }
141
+
142
+ type SelectAndOmit = {
143
+ select: any
144
+ omit: any
145
+ }
146
+
147
+ /**
148
+ * From T, pick a set of properties whose keys are in the union K
149
+ */
150
+ type Prisma__Pick<T, K extends keyof T> = {
151
+ [P in K]: T[P];
152
+ };
153
+
154
+ export type Enumerable<T> = T | Array<T>;
155
+
156
+ /**
157
+ * Subset
158
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
159
+ */
160
+ export type Subset<T, U> = {
161
+ [key in keyof T]: key extends keyof U ? T[key] : never;
162
+ };
163
+
164
+ /**
165
+ * SelectSubset
166
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
167
+ * Additionally, it validates, if both select and include are present. If the case, it errors.
168
+ */
169
+ export type SelectSubset<T, U> = {
170
+ [key in keyof T]: key extends keyof U ? T[key] : never
171
+ } &
172
+ (T extends SelectAndInclude
173
+ ? 'Please either choose `select` or `include`.'
174
+ : T extends SelectAndOmit
175
+ ? 'Please either choose `select` or `omit`.'
176
+ : {})
177
+
178
+ /**
179
+ * Subset + Intersection
180
+ * @desc From `T` pick properties that exist in `U` and intersect `K`
181
+ */
182
+ export type SubsetIntersection<T, U, K> = {
183
+ [key in keyof T]: key extends keyof U ? T[key] : never
184
+ } &
185
+ K
186
+
187
+ type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
188
+
189
+ /**
190
+ * XOR is needed to have a real mutually exclusive union type
191
+ * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
192
+ */
193
+ export type XOR<T, U> =
194
+ T extends object ?
195
+ U extends object ?
196
+ (Without<T, U> & U) | (Without<U, T> & T)
197
+ : U : T
198
+
199
+
200
+ /**
201
+ * Is T a Record?
202
+ */
203
+ type IsObject<T extends any> = T extends Array<any>
204
+ ? False
205
+ : T extends Date
206
+ ? False
207
+ : T extends Uint8Array
208
+ ? False
209
+ : T extends BigInt
210
+ ? False
211
+ : T extends object
212
+ ? True
213
+ : False
214
+
215
+
216
+ /**
217
+ * If it's T[], return T
218
+ */
219
+ export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
220
+
221
+ /**
222
+ * From ts-toolbelt
223
+ */
224
+
225
+ type __Either<O extends object, K extends Key> = Omit<O, K> &
226
+ {
227
+ // Merge all but K
228
+ [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
229
+ }[K]
230
+
231
+ type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
232
+
233
+ type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
234
+
235
+ type _Either<
236
+ O extends object,
237
+ K extends Key,
238
+ strict extends Boolean
239
+ > = {
240
+ 1: EitherStrict<O, K>
241
+ 0: EitherLoose<O, K>
242
+ }[strict]
243
+
244
+ export type Either<
245
+ O extends object,
246
+ K extends Key,
247
+ strict extends Boolean = 1
248
+ > = O extends unknown ? _Either<O, K, strict> : never
249
+
250
+ export type Union = any
251
+
252
+ export type PatchUndefined<O extends object, O1 extends object> = {
253
+ [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
254
+ } & {}
255
+
256
+ /** Helper Types for "Merge" **/
257
+ export type IntersectOf<U extends Union> = (
258
+ U extends unknown ? (k: U) => void : never
259
+ ) extends (k: infer I) => void
260
+ ? I
261
+ : never
262
+
263
+ export type Overwrite<O extends object, O1 extends object> = {
264
+ [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
265
+ } & {};
266
+
267
+ type _Merge<U extends object> = IntersectOf<Overwrite<U, {
268
+ [K in keyof U]-?: At<U, K>;
269
+ }>>;
270
+
271
+ type Key = string | number | symbol;
272
+ type AtStrict<O extends object, K extends Key> = O[K & keyof O];
273
+ type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
274
+ export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
275
+ 1: AtStrict<O, K>;
276
+ 0: AtLoose<O, K>;
277
+ }[strict];
278
+
279
+ export type ComputeRaw<A extends any> = A extends Function ? A : {
280
+ [K in keyof A]: A[K];
281
+ } & {};
282
+
283
+ export type OptionalFlat<O> = {
284
+ [K in keyof O]?: O[K];
285
+ } & {};
286
+
287
+ type _Record<K extends keyof any, T> = {
288
+ [P in K]: T;
289
+ };
290
+
291
+ // cause typescript not to expand types and preserve names
292
+ type NoExpand<T> = T extends unknown ? T : never;
293
+
294
+ // this type assumes the passed object is entirely optional
295
+ export type AtLeast<O extends object, K extends string> = NoExpand<
296
+ O extends unknown
297
+ ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
298
+ | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
299
+ : never>;
300
+
301
+ type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
302
+
303
+ export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
304
+ /** End Helper Types for "Merge" **/
305
+
306
+ export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
307
+
308
+ export type Boolean = True | False
309
+
310
+ export type True = 1
311
+
312
+ export type False = 0
313
+
314
+ export type Not<B extends Boolean> = {
315
+ 0: 1
316
+ 1: 0
317
+ }[B]
318
+
319
+ export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
320
+ ? 0 // anything `never` is false
321
+ : A1 extends A2
322
+ ? 1
323
+ : 0
324
+
325
+ export type Has<U extends Union, U1 extends Union> = Not<
326
+ Extends<Exclude<U1, U>, U1>
327
+ >
328
+
329
+ export type Or<B1 extends Boolean, B2 extends Boolean> = {
330
+ 0: {
331
+ 0: 0
332
+ 1: 1
333
+ }
334
+ 1: {
335
+ 0: 1
336
+ 1: 1
337
+ }
338
+ }[B1][B2]
339
+
340
+ export type Keys<U extends Union> = U extends unknown ? keyof U : never
341
+
342
+ export type GetScalarType<T, O> = O extends object ? {
343
+ [P in keyof T]: P extends keyof O
344
+ ? O[P]
345
+ : never
346
+ } : never
347
+
348
+ type FieldPaths<
349
+ T,
350
+ U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
351
+ > = IsObject<T> extends True ? U : T
352
+
353
+ export type GetHavingFields<T> = {
354
+ [K in keyof T]: Or<
355
+ Or<Extends<'OR', K>, Extends<'AND', K>>,
356
+ Extends<'NOT', K>
357
+ > extends True
358
+ ? // infer is only needed to not hit TS limit
359
+ // based on the brilliant idea of Pierre-Antoine Mills
360
+ // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
361
+ T[K] extends infer TK
362
+ ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
363
+ : never
364
+ : {} extends FieldPaths<T[K]>
365
+ ? never
366
+ : K
367
+ }[keyof T]
368
+
369
+ /**
370
+ * Convert tuple to union
371
+ */
372
+ type _TupleToUnion<T> = T extends (infer E)[] ? E : never
373
+ type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
374
+ export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
375
+
376
+ /**
377
+ * Like `Pick`, but additionally can also accept an array of keys
378
+ */
379
+ export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
380
+
381
+ /**
382
+ * Exclude all keys with underscores
383
+ */
384
+ export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
385
+
386
+
387
+ export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
388
+
389
+ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
390
+
391
+
392
+ export const ModelName = {
393
+ User: 'User',
394
+ Subscription: 'Subscription',
395
+ Credit: 'Credit',
396
+ Transaction: 'Transaction',
397
+ CreditAuditLog: 'CreditAuditLog',
398
+ UserBackup: 'UserBackup',
399
+ Apilog: 'Apilog'
400
+ } as const
401
+
402
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName]
403
+
404
+
405
+
406
+ export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
407
+ returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
408
+ }
409
+
410
+ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
411
+ globalOmitOptions: {
412
+ omit: GlobalOmitOptions
413
+ }
414
+ meta: {
415
+ modelProps: "user" | "subscription" | "credit" | "transaction" | "creditAuditLog" | "userBackup" | "apilog"
416
+ txIsolationLevel: TransactionIsolationLevel
417
+ }
418
+ model: {
419
+ User: {
420
+ payload: Prisma.$UserPayload<ExtArgs>
421
+ fields: Prisma.UserFieldRefs
422
+ operations: {
423
+ findUnique: {
424
+ args: Prisma.UserFindUniqueArgs<ExtArgs>
425
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null
426
+ }
427
+ findUniqueOrThrow: {
428
+ args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
429
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
430
+ }
431
+ findFirst: {
432
+ args: Prisma.UserFindFirstArgs<ExtArgs>
433
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload> | null
434
+ }
435
+ findFirstOrThrow: {
436
+ args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
437
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
438
+ }
439
+ findMany: {
440
+ args: Prisma.UserFindManyArgs<ExtArgs>
441
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
442
+ }
443
+ create: {
444
+ args: Prisma.UserCreateArgs<ExtArgs>
445
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
446
+ }
447
+ createMany: {
448
+ args: Prisma.UserCreateManyArgs<ExtArgs>
449
+ result: BatchPayload
450
+ }
451
+ createManyAndReturn: {
452
+ args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
453
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
454
+ }
455
+ delete: {
456
+ args: Prisma.UserDeleteArgs<ExtArgs>
457
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
458
+ }
459
+ update: {
460
+ args: Prisma.UserUpdateArgs<ExtArgs>
461
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
462
+ }
463
+ deleteMany: {
464
+ args: Prisma.UserDeleteManyArgs<ExtArgs>
465
+ result: BatchPayload
466
+ }
467
+ updateMany: {
468
+ args: Prisma.UserUpdateManyArgs<ExtArgs>
469
+ result: BatchPayload
470
+ }
471
+ updateManyAndReturn: {
472
+ args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
473
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>[]
474
+ }
475
+ upsert: {
476
+ args: Prisma.UserUpsertArgs<ExtArgs>
477
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserPayload>
478
+ }
479
+ aggregate: {
480
+ args: Prisma.UserAggregateArgs<ExtArgs>
481
+ result: runtime.Types.Utils.Optional<Prisma.AggregateUser>
482
+ }
483
+ groupBy: {
484
+ args: Prisma.UserGroupByArgs<ExtArgs>
485
+ result: runtime.Types.Utils.Optional<Prisma.UserGroupByOutputType>[]
486
+ }
487
+ count: {
488
+ args: Prisma.UserCountArgs<ExtArgs>
489
+ result: runtime.Types.Utils.Optional<Prisma.UserCountAggregateOutputType> | number
490
+ }
491
+ }
492
+ }
493
+ Subscription: {
494
+ payload: Prisma.$SubscriptionPayload<ExtArgs>
495
+ fields: Prisma.SubscriptionFieldRefs
496
+ operations: {
497
+ findUnique: {
498
+ args: Prisma.SubscriptionFindUniqueArgs<ExtArgs>
499
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload> | null
500
+ }
501
+ findUniqueOrThrow: {
502
+ args: Prisma.SubscriptionFindUniqueOrThrowArgs<ExtArgs>
503
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>
504
+ }
505
+ findFirst: {
506
+ args: Prisma.SubscriptionFindFirstArgs<ExtArgs>
507
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload> | null
508
+ }
509
+ findFirstOrThrow: {
510
+ args: Prisma.SubscriptionFindFirstOrThrowArgs<ExtArgs>
511
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>
512
+ }
513
+ findMany: {
514
+ args: Prisma.SubscriptionFindManyArgs<ExtArgs>
515
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>[]
516
+ }
517
+ create: {
518
+ args: Prisma.SubscriptionCreateArgs<ExtArgs>
519
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>
520
+ }
521
+ createMany: {
522
+ args: Prisma.SubscriptionCreateManyArgs<ExtArgs>
523
+ result: BatchPayload
524
+ }
525
+ createManyAndReturn: {
526
+ args: Prisma.SubscriptionCreateManyAndReturnArgs<ExtArgs>
527
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>[]
528
+ }
529
+ delete: {
530
+ args: Prisma.SubscriptionDeleteArgs<ExtArgs>
531
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>
532
+ }
533
+ update: {
534
+ args: Prisma.SubscriptionUpdateArgs<ExtArgs>
535
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>
536
+ }
537
+ deleteMany: {
538
+ args: Prisma.SubscriptionDeleteManyArgs<ExtArgs>
539
+ result: BatchPayload
540
+ }
541
+ updateMany: {
542
+ args: Prisma.SubscriptionUpdateManyArgs<ExtArgs>
543
+ result: BatchPayload
544
+ }
545
+ updateManyAndReturn: {
546
+ args: Prisma.SubscriptionUpdateManyAndReturnArgs<ExtArgs>
547
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>[]
548
+ }
549
+ upsert: {
550
+ args: Prisma.SubscriptionUpsertArgs<ExtArgs>
551
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SubscriptionPayload>
552
+ }
553
+ aggregate: {
554
+ args: Prisma.SubscriptionAggregateArgs<ExtArgs>
555
+ result: runtime.Types.Utils.Optional<Prisma.AggregateSubscription>
556
+ }
557
+ groupBy: {
558
+ args: Prisma.SubscriptionGroupByArgs<ExtArgs>
559
+ result: runtime.Types.Utils.Optional<Prisma.SubscriptionGroupByOutputType>[]
560
+ }
561
+ count: {
562
+ args: Prisma.SubscriptionCountArgs<ExtArgs>
563
+ result: runtime.Types.Utils.Optional<Prisma.SubscriptionCountAggregateOutputType> | number
564
+ }
565
+ }
566
+ }
567
+ Credit: {
568
+ payload: Prisma.$CreditPayload<ExtArgs>
569
+ fields: Prisma.CreditFieldRefs
570
+ operations: {
571
+ findUnique: {
572
+ args: Prisma.CreditFindUniqueArgs<ExtArgs>
573
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload> | null
574
+ }
575
+ findUniqueOrThrow: {
576
+ args: Prisma.CreditFindUniqueOrThrowArgs<ExtArgs>
577
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>
578
+ }
579
+ findFirst: {
580
+ args: Prisma.CreditFindFirstArgs<ExtArgs>
581
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload> | null
582
+ }
583
+ findFirstOrThrow: {
584
+ args: Prisma.CreditFindFirstOrThrowArgs<ExtArgs>
585
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>
586
+ }
587
+ findMany: {
588
+ args: Prisma.CreditFindManyArgs<ExtArgs>
589
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>[]
590
+ }
591
+ create: {
592
+ args: Prisma.CreditCreateArgs<ExtArgs>
593
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>
594
+ }
595
+ createMany: {
596
+ args: Prisma.CreditCreateManyArgs<ExtArgs>
597
+ result: BatchPayload
598
+ }
599
+ createManyAndReturn: {
600
+ args: Prisma.CreditCreateManyAndReturnArgs<ExtArgs>
601
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>[]
602
+ }
603
+ delete: {
604
+ args: Prisma.CreditDeleteArgs<ExtArgs>
605
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>
606
+ }
607
+ update: {
608
+ args: Prisma.CreditUpdateArgs<ExtArgs>
609
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>
610
+ }
611
+ deleteMany: {
612
+ args: Prisma.CreditDeleteManyArgs<ExtArgs>
613
+ result: BatchPayload
614
+ }
615
+ updateMany: {
616
+ args: Prisma.CreditUpdateManyArgs<ExtArgs>
617
+ result: BatchPayload
618
+ }
619
+ updateManyAndReturn: {
620
+ args: Prisma.CreditUpdateManyAndReturnArgs<ExtArgs>
621
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>[]
622
+ }
623
+ upsert: {
624
+ args: Prisma.CreditUpsertArgs<ExtArgs>
625
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditPayload>
626
+ }
627
+ aggregate: {
628
+ args: Prisma.CreditAggregateArgs<ExtArgs>
629
+ result: runtime.Types.Utils.Optional<Prisma.AggregateCredit>
630
+ }
631
+ groupBy: {
632
+ args: Prisma.CreditGroupByArgs<ExtArgs>
633
+ result: runtime.Types.Utils.Optional<Prisma.CreditGroupByOutputType>[]
634
+ }
635
+ count: {
636
+ args: Prisma.CreditCountArgs<ExtArgs>
637
+ result: runtime.Types.Utils.Optional<Prisma.CreditCountAggregateOutputType> | number
638
+ }
639
+ }
640
+ }
641
+ Transaction: {
642
+ payload: Prisma.$TransactionPayload<ExtArgs>
643
+ fields: Prisma.TransactionFieldRefs
644
+ operations: {
645
+ findUnique: {
646
+ args: Prisma.TransactionFindUniqueArgs<ExtArgs>
647
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload> | null
648
+ }
649
+ findUniqueOrThrow: {
650
+ args: Prisma.TransactionFindUniqueOrThrowArgs<ExtArgs>
651
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>
652
+ }
653
+ findFirst: {
654
+ args: Prisma.TransactionFindFirstArgs<ExtArgs>
655
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload> | null
656
+ }
657
+ findFirstOrThrow: {
658
+ args: Prisma.TransactionFindFirstOrThrowArgs<ExtArgs>
659
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>
660
+ }
661
+ findMany: {
662
+ args: Prisma.TransactionFindManyArgs<ExtArgs>
663
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>[]
664
+ }
665
+ create: {
666
+ args: Prisma.TransactionCreateArgs<ExtArgs>
667
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>
668
+ }
669
+ createMany: {
670
+ args: Prisma.TransactionCreateManyArgs<ExtArgs>
671
+ result: BatchPayload
672
+ }
673
+ createManyAndReturn: {
674
+ args: Prisma.TransactionCreateManyAndReturnArgs<ExtArgs>
675
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>[]
676
+ }
677
+ delete: {
678
+ args: Prisma.TransactionDeleteArgs<ExtArgs>
679
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>
680
+ }
681
+ update: {
682
+ args: Prisma.TransactionUpdateArgs<ExtArgs>
683
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>
684
+ }
685
+ deleteMany: {
686
+ args: Prisma.TransactionDeleteManyArgs<ExtArgs>
687
+ result: BatchPayload
688
+ }
689
+ updateMany: {
690
+ args: Prisma.TransactionUpdateManyArgs<ExtArgs>
691
+ result: BatchPayload
692
+ }
693
+ updateManyAndReturn: {
694
+ args: Prisma.TransactionUpdateManyAndReturnArgs<ExtArgs>
695
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>[]
696
+ }
697
+ upsert: {
698
+ args: Prisma.TransactionUpsertArgs<ExtArgs>
699
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$TransactionPayload>
700
+ }
701
+ aggregate: {
702
+ args: Prisma.TransactionAggregateArgs<ExtArgs>
703
+ result: runtime.Types.Utils.Optional<Prisma.AggregateTransaction>
704
+ }
705
+ groupBy: {
706
+ args: Prisma.TransactionGroupByArgs<ExtArgs>
707
+ result: runtime.Types.Utils.Optional<Prisma.TransactionGroupByOutputType>[]
708
+ }
709
+ count: {
710
+ args: Prisma.TransactionCountArgs<ExtArgs>
711
+ result: runtime.Types.Utils.Optional<Prisma.TransactionCountAggregateOutputType> | number
712
+ }
713
+ }
714
+ }
715
+ CreditAuditLog: {
716
+ payload: Prisma.$CreditAuditLogPayload<ExtArgs>
717
+ fields: Prisma.CreditAuditLogFieldRefs
718
+ operations: {
719
+ findUnique: {
720
+ args: Prisma.CreditAuditLogFindUniqueArgs<ExtArgs>
721
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload> | null
722
+ }
723
+ findUniqueOrThrow: {
724
+ args: Prisma.CreditAuditLogFindUniqueOrThrowArgs<ExtArgs>
725
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>
726
+ }
727
+ findFirst: {
728
+ args: Prisma.CreditAuditLogFindFirstArgs<ExtArgs>
729
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload> | null
730
+ }
731
+ findFirstOrThrow: {
732
+ args: Prisma.CreditAuditLogFindFirstOrThrowArgs<ExtArgs>
733
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>
734
+ }
735
+ findMany: {
736
+ args: Prisma.CreditAuditLogFindManyArgs<ExtArgs>
737
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>[]
738
+ }
739
+ create: {
740
+ args: Prisma.CreditAuditLogCreateArgs<ExtArgs>
741
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>
742
+ }
743
+ createMany: {
744
+ args: Prisma.CreditAuditLogCreateManyArgs<ExtArgs>
745
+ result: BatchPayload
746
+ }
747
+ createManyAndReturn: {
748
+ args: Prisma.CreditAuditLogCreateManyAndReturnArgs<ExtArgs>
749
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>[]
750
+ }
751
+ delete: {
752
+ args: Prisma.CreditAuditLogDeleteArgs<ExtArgs>
753
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>
754
+ }
755
+ update: {
756
+ args: Prisma.CreditAuditLogUpdateArgs<ExtArgs>
757
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>
758
+ }
759
+ deleteMany: {
760
+ args: Prisma.CreditAuditLogDeleteManyArgs<ExtArgs>
761
+ result: BatchPayload
762
+ }
763
+ updateMany: {
764
+ args: Prisma.CreditAuditLogUpdateManyArgs<ExtArgs>
765
+ result: BatchPayload
766
+ }
767
+ updateManyAndReturn: {
768
+ args: Prisma.CreditAuditLogUpdateManyAndReturnArgs<ExtArgs>
769
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>[]
770
+ }
771
+ upsert: {
772
+ args: Prisma.CreditAuditLogUpsertArgs<ExtArgs>
773
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$CreditAuditLogPayload>
774
+ }
775
+ aggregate: {
776
+ args: Prisma.CreditAuditLogAggregateArgs<ExtArgs>
777
+ result: runtime.Types.Utils.Optional<Prisma.AggregateCreditAuditLog>
778
+ }
779
+ groupBy: {
780
+ args: Prisma.CreditAuditLogGroupByArgs<ExtArgs>
781
+ result: runtime.Types.Utils.Optional<Prisma.CreditAuditLogGroupByOutputType>[]
782
+ }
783
+ count: {
784
+ args: Prisma.CreditAuditLogCountArgs<ExtArgs>
785
+ result: runtime.Types.Utils.Optional<Prisma.CreditAuditLogCountAggregateOutputType> | number
786
+ }
787
+ }
788
+ }
789
+ UserBackup: {
790
+ payload: Prisma.$UserBackupPayload<ExtArgs>
791
+ fields: Prisma.UserBackupFieldRefs
792
+ operations: {
793
+ findUnique: {
794
+ args: Prisma.UserBackupFindUniqueArgs<ExtArgs>
795
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload> | null
796
+ }
797
+ findUniqueOrThrow: {
798
+ args: Prisma.UserBackupFindUniqueOrThrowArgs<ExtArgs>
799
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>
800
+ }
801
+ findFirst: {
802
+ args: Prisma.UserBackupFindFirstArgs<ExtArgs>
803
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload> | null
804
+ }
805
+ findFirstOrThrow: {
806
+ args: Prisma.UserBackupFindFirstOrThrowArgs<ExtArgs>
807
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>
808
+ }
809
+ findMany: {
810
+ args: Prisma.UserBackupFindManyArgs<ExtArgs>
811
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>[]
812
+ }
813
+ create: {
814
+ args: Prisma.UserBackupCreateArgs<ExtArgs>
815
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>
816
+ }
817
+ createMany: {
818
+ args: Prisma.UserBackupCreateManyArgs<ExtArgs>
819
+ result: BatchPayload
820
+ }
821
+ createManyAndReturn: {
822
+ args: Prisma.UserBackupCreateManyAndReturnArgs<ExtArgs>
823
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>[]
824
+ }
825
+ delete: {
826
+ args: Prisma.UserBackupDeleteArgs<ExtArgs>
827
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>
828
+ }
829
+ update: {
830
+ args: Prisma.UserBackupUpdateArgs<ExtArgs>
831
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>
832
+ }
833
+ deleteMany: {
834
+ args: Prisma.UserBackupDeleteManyArgs<ExtArgs>
835
+ result: BatchPayload
836
+ }
837
+ updateMany: {
838
+ args: Prisma.UserBackupUpdateManyArgs<ExtArgs>
839
+ result: BatchPayload
840
+ }
841
+ updateManyAndReturn: {
842
+ args: Prisma.UserBackupUpdateManyAndReturnArgs<ExtArgs>
843
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>[]
844
+ }
845
+ upsert: {
846
+ args: Prisma.UserBackupUpsertArgs<ExtArgs>
847
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$UserBackupPayload>
848
+ }
849
+ aggregate: {
850
+ args: Prisma.UserBackupAggregateArgs<ExtArgs>
851
+ result: runtime.Types.Utils.Optional<Prisma.AggregateUserBackup>
852
+ }
853
+ groupBy: {
854
+ args: Prisma.UserBackupGroupByArgs<ExtArgs>
855
+ result: runtime.Types.Utils.Optional<Prisma.UserBackupGroupByOutputType>[]
856
+ }
857
+ count: {
858
+ args: Prisma.UserBackupCountArgs<ExtArgs>
859
+ result: runtime.Types.Utils.Optional<Prisma.UserBackupCountAggregateOutputType> | number
860
+ }
861
+ }
862
+ }
863
+ Apilog: {
864
+ payload: Prisma.$ApilogPayload<ExtArgs>
865
+ fields: Prisma.ApilogFieldRefs
866
+ operations: {
867
+ findUnique: {
868
+ args: Prisma.ApilogFindUniqueArgs<ExtArgs>
869
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload> | null
870
+ }
871
+ findUniqueOrThrow: {
872
+ args: Prisma.ApilogFindUniqueOrThrowArgs<ExtArgs>
873
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>
874
+ }
875
+ findFirst: {
876
+ args: Prisma.ApilogFindFirstArgs<ExtArgs>
877
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload> | null
878
+ }
879
+ findFirstOrThrow: {
880
+ args: Prisma.ApilogFindFirstOrThrowArgs<ExtArgs>
881
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>
882
+ }
883
+ findMany: {
884
+ args: Prisma.ApilogFindManyArgs<ExtArgs>
885
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>[]
886
+ }
887
+ create: {
888
+ args: Prisma.ApilogCreateArgs<ExtArgs>
889
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>
890
+ }
891
+ createMany: {
892
+ args: Prisma.ApilogCreateManyArgs<ExtArgs>
893
+ result: BatchPayload
894
+ }
895
+ createManyAndReturn: {
896
+ args: Prisma.ApilogCreateManyAndReturnArgs<ExtArgs>
897
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>[]
898
+ }
899
+ delete: {
900
+ args: Prisma.ApilogDeleteArgs<ExtArgs>
901
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>
902
+ }
903
+ update: {
904
+ args: Prisma.ApilogUpdateArgs<ExtArgs>
905
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>
906
+ }
907
+ deleteMany: {
908
+ args: Prisma.ApilogDeleteManyArgs<ExtArgs>
909
+ result: BatchPayload
910
+ }
911
+ updateMany: {
912
+ args: Prisma.ApilogUpdateManyArgs<ExtArgs>
913
+ result: BatchPayload
914
+ }
915
+ updateManyAndReturn: {
916
+ args: Prisma.ApilogUpdateManyAndReturnArgs<ExtArgs>
917
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>[]
918
+ }
919
+ upsert: {
920
+ args: Prisma.ApilogUpsertArgs<ExtArgs>
921
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApilogPayload>
922
+ }
923
+ aggregate: {
924
+ args: Prisma.ApilogAggregateArgs<ExtArgs>
925
+ result: runtime.Types.Utils.Optional<Prisma.AggregateApilog>
926
+ }
927
+ groupBy: {
928
+ args: Prisma.ApilogGroupByArgs<ExtArgs>
929
+ result: runtime.Types.Utils.Optional<Prisma.ApilogGroupByOutputType>[]
930
+ }
931
+ count: {
932
+ args: Prisma.ApilogCountArgs<ExtArgs>
933
+ result: runtime.Types.Utils.Optional<Prisma.ApilogCountAggregateOutputType> | number
934
+ }
935
+ }
936
+ }
937
+ }
938
+ } & {
939
+ other: {
940
+ payload: any
941
+ operations: {
942
+ $executeRaw: {
943
+ args: [query: TemplateStringsArray | Sql, ...values: any[]],
944
+ result: any
945
+ }
946
+ $executeRawUnsafe: {
947
+ args: [query: string, ...values: any[]],
948
+ result: any
949
+ }
950
+ $queryRaw: {
951
+ args: [query: TemplateStringsArray | Sql, ...values: any[]],
952
+ result: any
953
+ }
954
+ $queryRawUnsafe: {
955
+ args: [query: string, ...values: any[]],
956
+ result: any
957
+ }
958
+ }
959
+ }
960
+ }
961
+
962
+ /**
963
+ * Enums
964
+ */
965
+
966
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
967
+ ReadUncommitted: 'ReadUncommitted',
968
+ ReadCommitted: 'ReadCommitted',
969
+ RepeatableRead: 'RepeatableRead',
970
+ Serializable: 'Serializable'
971
+ } as const)
972
+
973
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
974
+
975
+
976
+ export const UserScalarFieldEnum = {
977
+ id: 'id',
978
+ userId: 'userId',
979
+ status: 'status',
980
+ fingerprintId: 'fingerprintId',
981
+ clerkUserId: 'clerkUserId',
982
+ stripeCusId: 'stripeCusId',
983
+ email: 'email',
984
+ userName: 'userName',
985
+ createdAt: 'createdAt',
986
+ updatedAt: 'updatedAt',
987
+ sourceRef: 'sourceRef'
988
+ } as const
989
+
990
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
991
+
992
+
993
+ export const SubscriptionScalarFieldEnum = {
994
+ id: 'id',
995
+ userId: 'userId',
996
+ status: 'status',
997
+ paySubscriptionId: 'paySubscriptionId',
998
+ orderId: 'orderId',
999
+ priceId: 'priceId',
1000
+ priceName: 'priceName',
1001
+ creditsAllocated: 'creditsAllocated',
1002
+ subPeriodStart: 'subPeriodStart',
1003
+ subPeriodEnd: 'subPeriodEnd',
1004
+ createdAt: 'createdAt',
1005
+ updatedAt: 'updatedAt',
1006
+ deleted: 'deleted'
1007
+ } as const
1008
+
1009
+ export type SubscriptionScalarFieldEnum = (typeof SubscriptionScalarFieldEnum)[keyof typeof SubscriptionScalarFieldEnum]
1010
+
1011
+
1012
+ export const CreditScalarFieldEnum = {
1013
+ id: 'id',
1014
+ userId: 'userId',
1015
+ balanceFree: 'balanceFree',
1016
+ totalFreeLimit: 'totalFreeLimit',
1017
+ freeStart: 'freeStart',
1018
+ freeEnd: 'freeEnd',
1019
+ balancePaid: 'balancePaid',
1020
+ totalPaidLimit: 'totalPaidLimit',
1021
+ paidStart: 'paidStart',
1022
+ paidEnd: 'paidEnd',
1023
+ balanceOneTimePaid: 'balanceOneTimePaid',
1024
+ totalOneTimePaidLimit: 'totalOneTimePaidLimit',
1025
+ oneTimePaidStart: 'oneTimePaidStart',
1026
+ oneTimePaidEnd: 'oneTimePaidEnd',
1027
+ createdAt: 'createdAt',
1028
+ updatedAt: 'updatedAt'
1029
+ } as const
1030
+
1031
+ export type CreditScalarFieldEnum = (typeof CreditScalarFieldEnum)[keyof typeof CreditScalarFieldEnum]
1032
+
1033
+
1034
+ export const TransactionScalarFieldEnum = {
1035
+ id: 'id',
1036
+ userId: 'userId',
1037
+ orderId: 'orderId',
1038
+ orderStatus: 'orderStatus',
1039
+ orderCreatedAt: 'orderCreatedAt',
1040
+ orderExpiredAt: 'orderExpiredAt',
1041
+ orderUpdatedAt: 'orderUpdatedAt',
1042
+ type: 'type',
1043
+ paySupplier: 'paySupplier',
1044
+ paySessionId: 'paySessionId',
1045
+ payTransactionId: 'payTransactionId',
1046
+ paySubscriptionId: 'paySubscriptionId',
1047
+ subPeriodStart: 'subPeriodStart',
1048
+ subPeriodEnd: 'subPeriodEnd',
1049
+ subLastTryCancelAt: 'subLastTryCancelAt',
1050
+ subPeriodCanceledAt: 'subPeriodCanceledAt',
1051
+ subCancellationDetail: 'subCancellationDetail',
1052
+ priceId: 'priceId',
1053
+ priceName: 'priceName',
1054
+ amount: 'amount',
1055
+ currency: 'currency',
1056
+ creditsGranted: 'creditsGranted',
1057
+ payInvoiceId: 'payInvoiceId',
1058
+ paymentStatus: 'paymentStatus',
1059
+ billingReason: 'billingReason',
1060
+ hostedInvoiceUrl: 'hostedInvoiceUrl',
1061
+ invoicePdf: 'invoicePdf',
1062
+ orderDetail: 'orderDetail',
1063
+ paidEmail: 'paidEmail',
1064
+ paidAt: 'paidAt',
1065
+ paidDetail: 'paidDetail',
1066
+ payUpdatedAt: 'payUpdatedAt',
1067
+ deleted: 'deleted'
1068
+ } as const
1069
+
1070
+ export type TransactionScalarFieldEnum = (typeof TransactionScalarFieldEnum)[keyof typeof TransactionScalarFieldEnum]
1071
+
1072
+
1073
+ export const CreditAuditLogScalarFieldEnum = {
1074
+ id: 'id',
1075
+ userId: 'userId',
1076
+ creditsChange: 'creditsChange',
1077
+ feature: 'feature',
1078
+ creditType: 'creditType',
1079
+ operationType: 'operationType',
1080
+ operationReferId: 'operationReferId',
1081
+ createdAt: 'createdAt',
1082
+ deleted: 'deleted'
1083
+ } as const
1084
+
1085
+ export type CreditAuditLogScalarFieldEnum = (typeof CreditAuditLogScalarFieldEnum)[keyof typeof CreditAuditLogScalarFieldEnum]
1086
+
1087
+
1088
+ export const UserBackupScalarFieldEnum = {
1089
+ id: 'id',
1090
+ originalUserId: 'originalUserId',
1091
+ status: 'status',
1092
+ fingerprintId: 'fingerprintId',
1093
+ clerkUserId: 'clerkUserId',
1094
+ stripeCusId: 'stripeCusId',
1095
+ email: 'email',
1096
+ userName: 'userName',
1097
+ backupData: 'backupData',
1098
+ deletedAt: 'deletedAt',
1099
+ createdAt: 'createdAt',
1100
+ deleted: 'deleted'
1101
+ } as const
1102
+
1103
+ export type UserBackupScalarFieldEnum = (typeof UserBackupScalarFieldEnum)[keyof typeof UserBackupScalarFieldEnum]
1104
+
1105
+
1106
+ export const ApilogScalarFieldEnum = {
1107
+ id: 'id',
1108
+ apiType: 'apiType',
1109
+ methodName: 'methodName',
1110
+ summary: 'summary',
1111
+ request: 'request',
1112
+ response: 'response',
1113
+ createdAt: 'createdAt'
1114
+ } as const
1115
+
1116
+ export type ApilogScalarFieldEnum = (typeof ApilogScalarFieldEnum)[keyof typeof ApilogScalarFieldEnum]
1117
+
1118
+
1119
+ export const SortOrder = {
1120
+ asc: 'asc',
1121
+ desc: 'desc'
1122
+ } as const
1123
+
1124
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
1125
+
1126
+
1127
+ export const NullableJsonNullValueInput = {
1128
+ DbNull: DbNull,
1129
+ JsonNull: JsonNull
1130
+ } as const
1131
+
1132
+ export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
1133
+
1134
+
1135
+ export const QueryMode = {
1136
+ default: 'default',
1137
+ insensitive: 'insensitive'
1138
+ } as const
1139
+
1140
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
1141
+
1142
+
1143
+ export const JsonNullValueFilter = {
1144
+ DbNull: DbNull,
1145
+ JsonNull: JsonNull,
1146
+ AnyNull: AnyNull
1147
+ } as const
1148
+
1149
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
1150
+
1151
+
1152
+ export const NullsOrder = {
1153
+ first: 'first',
1154
+ last: 'last'
1155
+ } as const
1156
+
1157
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
1158
+
1159
+
1160
+
1161
+ /**
1162
+ * Field references
1163
+ */
1164
+
1165
+
1166
+ /**
1167
+ * Reference to a field of type 'BigInt'
1168
+ */
1169
+ export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
1170
+
1171
+
1172
+
1173
+ /**
1174
+ * Reference to a field of type 'BigInt[]'
1175
+ */
1176
+ export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
1177
+
1178
+
1179
+
1180
+ /**
1181
+ * Reference to a field of type 'String'
1182
+ */
1183
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
1184
+
1185
+
1186
+
1187
+ /**
1188
+ * Reference to a field of type 'String[]'
1189
+ */
1190
+ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
1191
+
1192
+
1193
+
1194
+ /**
1195
+ * Reference to a field of type 'DateTime'
1196
+ */
1197
+ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
1198
+
1199
+
1200
+
1201
+ /**
1202
+ * Reference to a field of type 'DateTime[]'
1203
+ */
1204
+ export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
1205
+
1206
+
1207
+
1208
+ /**
1209
+ * Reference to a field of type 'Json'
1210
+ */
1211
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
1212
+
1213
+
1214
+
1215
+ /**
1216
+ * Reference to a field of type 'QueryMode'
1217
+ */
1218
+ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
1219
+
1220
+
1221
+
1222
+ /**
1223
+ * Reference to a field of type 'Int'
1224
+ */
1225
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
1226
+
1227
+
1228
+
1229
+ /**
1230
+ * Reference to a field of type 'Int[]'
1231
+ */
1232
+ export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
1233
+
1234
+
1235
+
1236
+ /**
1237
+ * Reference to a field of type 'Decimal'
1238
+ */
1239
+ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'>
1240
+
1241
+
1242
+
1243
+ /**
1244
+ * Reference to a field of type 'Decimal[]'
1245
+ */
1246
+ export type ListDecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal[]'>
1247
+
1248
+
1249
+
1250
+ /**
1251
+ * Reference to a field of type 'Float'
1252
+ */
1253
+ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
1254
+
1255
+
1256
+
1257
+ /**
1258
+ * Reference to a field of type 'Float[]'
1259
+ */
1260
+ export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
1261
+
1262
+
1263
+ /**
1264
+ * Batch Payload for updateMany & deleteMany & createMany
1265
+ */
1266
+ export type BatchPayload = {
1267
+ count: number
1268
+ }
1269
+
1270
+
1271
+ export type Datasource = {
1272
+ url?: string
1273
+ }
1274
+ export type Datasources = {
1275
+ db?: Datasource
1276
+ }
1277
+
1278
+ export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
1279
+ export type DefaultPrismaClient = PrismaClient
1280
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
1281
+ export interface PrismaClientOptions {
1282
+ /**
1283
+ * Overwrites the datasource url from your schema.prisma file
1284
+ */
1285
+ datasources?: Datasources
1286
+ /**
1287
+ * Overwrites the datasource url from your schema.prisma file
1288
+ */
1289
+ datasourceUrl?: string
1290
+ /**
1291
+ * @default "colorless"
1292
+ */
1293
+ errorFormat?: ErrorFormat
1294
+ /**
1295
+ * @example
1296
+ * ```
1297
+ * // Shorthand for `emit: 'stdout'`
1298
+ * log: ['query', 'info', 'warn', 'error']
1299
+ *
1300
+ * // Emit as events only
1301
+ * log: [
1302
+ * { emit: 'event', level: 'query' },
1303
+ * { emit: 'event', level: 'info' },
1304
+ * { emit: 'event', level: 'warn' }
1305
+ * { emit: 'event', level: 'error' }
1306
+ * ]
1307
+ *
1308
+ * / Emit as events and log to stdout
1309
+ * og: [
1310
+ * { emit: 'stdout', level: 'query' },
1311
+ * { emit: 'stdout', level: 'info' },
1312
+ * { emit: 'stdout', level: 'warn' }
1313
+ * { emit: 'stdout', level: 'error' }
1314
+ *
1315
+ * ```
1316
+ * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
1317
+ */
1318
+ log?: (LogLevel | LogDefinition)[]
1319
+ /**
1320
+ * The default values for transactionOptions
1321
+ * maxWait ?= 2000
1322
+ * timeout ?= 5000
1323
+ */
1324
+ transactionOptions?: {
1325
+ maxWait?: number
1326
+ timeout?: number
1327
+ isolationLevel?: TransactionIsolationLevel
1328
+ }
1329
+ /**
1330
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
1331
+ */
1332
+ adapter?: runtime.SqlDriverAdapterFactory | null
1333
+ /**
1334
+ * Global configuration for omitting model fields by default.
1335
+ *
1336
+ * @example
1337
+ * ```
1338
+ * const prisma = new PrismaClient({
1339
+ * omit: {
1340
+ * user: {
1341
+ * password: true
1342
+ * }
1343
+ * }
1344
+ * })
1345
+ * ```
1346
+ */
1347
+ omit?: GlobalOmitConfig
1348
+ }
1349
+ export type GlobalOmitConfig = {
1350
+ user?: Prisma.UserOmit
1351
+ subscription?: Prisma.SubscriptionOmit
1352
+ credit?: Prisma.CreditOmit
1353
+ transaction?: Prisma.TransactionOmit
1354
+ creditAuditLog?: Prisma.CreditAuditLogOmit
1355
+ userBackup?: Prisma.UserBackupOmit
1356
+ apilog?: Prisma.ApilogOmit
1357
+ }
1358
+
1359
+ /* Types for Logging */
1360
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error'
1361
+ export type LogDefinition = {
1362
+ level: LogLevel
1363
+ emit: 'stdout' | 'event'
1364
+ }
1365
+
1366
+ export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
1367
+
1368
+ export type GetLogType<T> = CheckIsLogLevel<
1369
+ T extends LogDefinition ? T['level'] : T
1370
+ >;
1371
+
1372
+ export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
1373
+ ? GetLogType<T[number]>
1374
+ : never;
1375
+
1376
+ export type QueryEvent = {
1377
+ timestamp: Date
1378
+ query: string
1379
+ params: string
1380
+ duration: number
1381
+ target: string
1382
+ }
1383
+
1384
+ export type LogEvent = {
1385
+ timestamp: Date
1386
+ message: string
1387
+ target: string
1388
+ }
1389
+ /* End Types for Logging */
1390
+
1391
+
1392
+ export type PrismaAction =
1393
+ | 'findUnique'
1394
+ | 'findUniqueOrThrow'
1395
+ | 'findMany'
1396
+ | 'findFirst'
1397
+ | 'findFirstOrThrow'
1398
+ | 'create'
1399
+ | 'createMany'
1400
+ | 'createManyAndReturn'
1401
+ | 'update'
1402
+ | 'updateMany'
1403
+ | 'updateManyAndReturn'
1404
+ | 'upsert'
1405
+ | 'delete'
1406
+ | 'deleteMany'
1407
+ | 'executeRaw'
1408
+ | 'queryRaw'
1409
+ | 'aggregate'
1410
+ | 'count'
1411
+ | 'runCommandRaw'
1412
+ | 'findRaw'
1413
+ | 'groupBy'
1414
+
1415
+ /**
1416
+ * `PrismaClient` proxy available in interactive transactions.
1417
+ */
1418
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>
1419
+