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