@appweaver/data 0.0.0-stage → 2.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 (157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/config.d.ts +6 -0
  4. package/config.js +22 -0
  5. package/database/create-client.d.ts +11 -0
  6. package/database/create-client.js +145 -0
  7. package/database/database-config.d.ts +14 -0
  8. package/database/database-config.js +40 -0
  9. package/database/database-error.d.ts +49 -0
  10. package/database/database-error.js +216 -0
  11. package/database/index.d.ts +3 -0
  12. package/database/index.js +19 -0
  13. package/database/prisma-database.d.ts +33 -0
  14. package/database/prisma-database.js +178 -0
  15. package/database/run-transaction.d.ts +21 -0
  16. package/database/run-transaction.js +15 -0
  17. package/export/export-config.d.ts +7 -0
  18. package/export/export-config.js +17 -0
  19. package/export/export-service.d.ts +22 -0
  20. package/export/export-service.js +188 -0
  21. package/export/index.d.ts +1 -0
  22. package/export/index.js +17 -0
  23. package/factory/create-model.d.ts +11 -0
  24. package/factory/create-model.js +479 -0
  25. package/factory/create-policy.d.ts +12 -0
  26. package/factory/create-policy.js +20 -0
  27. package/factory/create-service.d.ts +14 -0
  28. package/factory/create-service.js +116 -0
  29. package/index.d.ts +22 -0
  30. package/index.js +38 -0
  31. package/internal.d.ts +2 -0
  32. package/internal.js +6 -0
  33. package/module.d.ts +3 -0
  34. package/module.js +81 -0
  35. package/package.json +67 -3
  36. package/prisma/client/browser.d.ts +39 -0
  37. package/prisma/client/browser.js +56 -0
  38. package/prisma/client/client.d.ts +58 -0
  39. package/prisma/client/client.js +70 -0
  40. package/prisma/client/commonInputTypes.d.ts +345 -0
  41. package/prisma/client/commonInputTypes.js +11 -0
  42. package/prisma/client/enums.d.ts +1 -0
  43. package/prisma/client/enums.js +11 -0
  44. package/prisma/client/internal/class.d.ts +198 -0
  45. package/prisma/client/internal/class.js +85 -0
  46. package/prisma/client/internal/prismaNamespace.d.ts +1125 -0
  47. package/prisma/client/internal/prismaNamespace.js +204 -0
  48. package/prisma/client/internal/prismaNamespaceBrowser.d.ts +137 -0
  49. package/prisma/client/internal/prismaNamespaceBrowser.js +175 -0
  50. package/prisma/client/models/ApiKey.d.ts +1167 -0
  51. package/prisma/client/models/ApiKey.js +2 -0
  52. package/prisma/client/models/ConnectedAccount.d.ts +1094 -0
  53. package/prisma/client/models/ConnectedAccount.js +2 -0
  54. package/prisma/client/models/File.d.ts +1291 -0
  55. package/prisma/client/models/File.js +2 -0
  56. package/prisma/client/models/OneTimeToken.d.ts +1055 -0
  57. package/prisma/client/models/OneTimeToken.js +2 -0
  58. package/prisma/client/models/Permission.d.ts +1209 -0
  59. package/prisma/client/models/Permission.js +2 -0
  60. package/prisma/client/models/Role.d.ts +1209 -0
  61. package/prisma/client/models/Role.js +2 -0
  62. package/prisma/client/models/Seeder.d.ts +1023 -0
  63. package/prisma/client/models/Seeder.js +2 -0
  64. package/prisma/client/models.d.ts +8 -0
  65. package/prisma/client/models.js +2 -0
  66. package/resource/load-data-resources.d.ts +13 -0
  67. package/resource/load-data-resources.js +37 -0
  68. package/resource/model-schema.d.ts +34 -0
  69. package/resource/model-schema.js +54 -0
  70. package/resource/resource-config.d.ts +16 -0
  71. package/resource/resource-config.js +62 -0
  72. package/resource/resource-loader.d.ts +25 -0
  73. package/resource/resource-loader.js +138 -0
  74. package/resource/resource-service.d.ts +462 -0
  75. package/resource/resource-service.js +1042 -0
  76. package/resource/schemas/index.d.ts +3 -0
  77. package/resource/schemas/index.js +19 -0
  78. package/resource/schemas/resource-aggregate-schema.d.ts +53 -0
  79. package/resource/schemas/resource-aggregate-schema.js +130 -0
  80. package/resource/schemas/resource-filter-schema.d.ts +39 -0
  81. package/resource/schemas/resource-filter-schema.js +153 -0
  82. package/resource/schemas/resource-sort-schema.d.ts +38 -0
  83. package/resource/schemas/resource-sort-schema.js +113 -0
  84. package/resource/utils/aggregate-util.d.ts +113 -0
  85. package/resource/utils/aggregate-util.js +322 -0
  86. package/resource/utils/cursor-util.d.ts +60 -0
  87. package/resource/utils/cursor-util.js +116 -0
  88. package/resource/utils/date-util.d.ts +22 -0
  89. package/resource/utils/date-util.js +112 -0
  90. package/resource/utils/delete-util.d.ts +131 -0
  91. package/resource/utils/delete-util.js +385 -0
  92. package/resource/utils/filter-util.d.ts +24 -0
  93. package/resource/utils/filter-util.js +289 -0
  94. package/resource/utils/prune-util.d.ts +11 -0
  95. package/resource/utils/prune-util.js +56 -0
  96. package/resource/utils/relation-util.d.ts +75 -0
  97. package/resource/utils/relation-util.js +400 -0
  98. package/resource/utils/sort-util.d.ts +31 -0
  99. package/resource/utils/sort-util.js +235 -0
  100. package/resource/utils/text-search-util.d.ts +14 -0
  101. package/resource/utils/text-search-util.js +39 -0
  102. package/resources.d.ts +10 -0
  103. package/resources.js +26 -0
  104. package/security/auth-config.d.ts +23 -0
  105. package/security/auth-config.js +43 -0
  106. package/security/create-auth-resources.d.ts +28 -0
  107. package/security/create-auth-resources.js +163 -0
  108. package/security/helper.d.ts +109 -0
  109. package/security/helper.js +298 -0
  110. package/security/resources/api-key/model.d.ts +2 -0
  111. package/security/resources/api-key/model.js +67 -0
  112. package/security/resources/api-key/policy.d.ts +2 -0
  113. package/security/resources/api-key/policy.js +27 -0
  114. package/security/resources/api-key/service.d.ts +3 -0
  115. package/security/resources/api-key/service.js +34 -0
  116. package/security/resources/connected-account/model.d.ts +2 -0
  117. package/security/resources/connected-account/model.js +57 -0
  118. package/security/resources/connected-account/service.d.ts +2 -0
  119. package/security/resources/connected-account/service.js +7 -0
  120. package/security/resources/one-time-token/model.d.ts +2 -0
  121. package/security/resources/one-time-token/model.js +36 -0
  122. package/security/resources/permission/model.d.ts +2 -0
  123. package/security/resources/permission/model.js +16 -0
  124. package/security/resources/role/model.d.ts +2 -0
  125. package/security/resources/role/model.js +22 -0
  126. package/security/store/database-security-store.d.ts +5 -0
  127. package/security/store/database-security-store.js +54 -0
  128. package/seeder/create-seeder.d.ts +29 -0
  129. package/seeder/create-seeder.js +28 -0
  130. package/seeder/index.d.ts +2 -0
  131. package/seeder/index.js +18 -0
  132. package/seeder/resources/seeder/model.d.ts +2 -0
  133. package/seeder/resources/seeder/model.js +38 -0
  134. package/seeder/seeder.d.ts +29 -0
  135. package/seeder/seeder.js +197 -0
  136. package/storage/file-service.d.ts +133 -0
  137. package/storage/file-service.js +586 -0
  138. package/storage/image-config.d.ts +3 -0
  139. package/storage/image-config.js +11 -0
  140. package/storage/resources/file/model.d.ts +2 -0
  141. package/storage/resources/file/model.js +80 -0
  142. package/types/auth.d.ts +23 -0
  143. package/types/auth.js +2 -0
  144. package/types/generated.d.ts +366 -0
  145. package/types/generated.js +3 -0
  146. package/types/storage.d.ts +35 -0
  147. package/types/storage.js +2 -0
  148. package/utils/export-util.d.ts +8 -0
  149. package/utils/export-util.js +26 -0
  150. package/utils/file-util.d.ts +106 -0
  151. package/utils/file-util.js +254 -0
  152. package/utils/model-util.d.ts +36 -0
  153. package/utils/model-util.js +154 -0
  154. package/utils/policy-util.d.ts +18 -0
  155. package/utils/policy-util.js +28 -0
  156. package/utils/virtual-util.d.ts +11 -0
  157. package/utils/virtual-util.js +53 -0
@@ -0,0 +1,1125 @@
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
+ * Extensions
37
+ */
38
+ export type Extension = runtime.Types.Extensions.UserArgs;
39
+ export declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext;
40
+ export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>;
41
+ export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>;
42
+ export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>;
43
+ export type Exact<A, W> = runtime.Types.Public.Exact<A, W>;
44
+ export type PrismaVersion = {
45
+ client: string;
46
+ engine: string;
47
+ };
48
+ /**
49
+ * Prisma Client JS version: 7.9.1
50
+ * Query Engine version: e922089b7d7502aff4249d5da3420f6fa55fc6ad
51
+ */
52
+ export declare const prismaVersion: PrismaVersion;
53
+ /**
54
+ * Utility Types
55
+ */
56
+ export type Bytes = runtime.Bytes;
57
+ export type JsonObject = runtime.JsonObject;
58
+ export type JsonArray = runtime.JsonArray;
59
+ export type JsonValue = runtime.JsonValue;
60
+ export type InputJsonObject = runtime.InputJsonObject;
61
+ export type InputJsonArray = runtime.InputJsonArray;
62
+ export type InputJsonValue = runtime.InputJsonValue;
63
+ export declare const NullTypes: {
64
+ DbNull: (new (secret: never) => typeof runtime.DbNull);
65
+ JsonNull: (new (secret: never) => typeof runtime.JsonNull);
66
+ AnyNull: (new (secret: never) => typeof runtime.AnyNull);
67
+ };
68
+ /**
69
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
70
+ *
71
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
72
+ */
73
+ export declare const DbNull: runtime.DbNullClass;
74
+ /**
75
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
76
+ *
77
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
78
+ */
79
+ export declare const JsonNull: runtime.JsonNullClass;
80
+ /**
81
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
82
+ *
83
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
84
+ */
85
+ export declare const AnyNull: runtime.AnyNullClass;
86
+ type SelectAndInclude = {
87
+ select: any;
88
+ include: any;
89
+ };
90
+ type SelectAndOmit = {
91
+ select: any;
92
+ omit: any;
93
+ };
94
+ /**
95
+ * From T, pick a set of properties whose keys are in the union K
96
+ */
97
+ type Prisma__Pick<T, K extends keyof T> = {
98
+ [P in K]: T[P];
99
+ };
100
+ export type Enumerable<T> = T | Array<T>;
101
+ /**
102
+ * Subset
103
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
104
+ */
105
+ export type Subset<T, U> = {
106
+ [key in keyof T]: key extends keyof U ? T[key] : never;
107
+ };
108
+ /**
109
+ * Resolved type of the argument passed to the `PrismaClient` constructor.
110
+ *
111
+ * When called without a narrower options type (the common case), this resolves
112
+ * to `PrismaClientOptions` directly, which produces a clear TypeScript error
113
+ * message (`not assignable to parameter of type 'PrismaClientOptions'`) when
114
+ * the argument is missing or incomplete. When the user supplies a narrower
115
+ * options type (e.g. via a literal), it falls back to `Subset` to keep
116
+ * filtering out unknown properties.
117
+ */
118
+ export type PrismaClientConstructorArgs<Options extends PrismaClientOptions> = [
119
+ PrismaClientOptions
120
+ ] extends [Options] ? PrismaClientOptions : Subset<Options, PrismaClientOptions>;
121
+ /**
122
+ * SelectSubset
123
+ * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
124
+ * Additionally, it validates, if both select and include are present. If the case, it errors.
125
+ */
126
+ export type SelectSubset<T, U> = {
127
+ [key in keyof T]: key extends keyof U ? T[key] : never;
128
+ } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {});
129
+ /**
130
+ * Subset + Intersection
131
+ * @desc From `T` pick properties that exist in `U` and intersect `K`
132
+ */
133
+ export type SubsetIntersection<T, U, K> = {
134
+ [key in keyof T]: key extends keyof U ? T[key] : never;
135
+ } & K;
136
+ type Without<T, U> = {
137
+ [P in Exclude<keyof T, keyof U>]?: never;
138
+ };
139
+ /**
140
+ * XOR is needed to have a real mutually exclusive union type
141
+ * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
142
+ */
143
+ export type XOR<T, U> = T extends object ? U extends object ? ((Without<T, U> & U) | (Without<U, T> & T)) & object : U : T;
144
+ /**
145
+ * Is T a Record?
146
+ */
147
+ 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;
148
+ /**
149
+ * If it's T[], return T
150
+ */
151
+ export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
152
+ /**
153
+ * From ts-toolbelt
154
+ */
155
+ type __Either<O extends object, K extends Key> = Omit<O, K> & {
156
+ [P in K]: Prisma__Pick<O, P & keyof O>;
157
+ }[K];
158
+ type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>;
159
+ type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>;
160
+ type _Either<O extends object, K extends Key, strict extends Boolean> = {
161
+ 1: EitherStrict<O, K>;
162
+ 0: EitherLoose<O, K>;
163
+ }[strict];
164
+ export type Either<O extends object, K extends Key, strict extends Boolean = 1> = O extends unknown ? _Either<O, K, strict> : never;
165
+ export type Union = any;
166
+ export type PatchUndefined<O extends object, O1 extends object> = {
167
+ [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
168
+ } & {};
169
+ /** Helper Types for "Merge" **/
170
+ export type IntersectOf<U extends Union> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
171
+ export type Overwrite<O extends object, O1 extends object> = {
172
+ [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
173
+ } & {};
174
+ type _Merge<U extends object> = IntersectOf<Overwrite<U, {
175
+ [K in keyof U]-?: At<U, K>;
176
+ }>>;
177
+ type Key = string | number | symbol;
178
+ type AtStrict<O extends object, K extends Key> = O[K & keyof O];
179
+ type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
180
+ export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
181
+ 1: AtStrict<O, K>;
182
+ 0: AtLoose<O, K>;
183
+ }[strict];
184
+ export type ComputeRaw<A extends any> = A extends Function ? A : {
185
+ [K in keyof A]: A[K];
186
+ } & {};
187
+ export type OptionalFlat<O> = {
188
+ [K in keyof O]?: O[K];
189
+ } & {};
190
+ type _Record<K extends keyof any, T> = {
191
+ [P in K]: T;
192
+ };
193
+ type NoExpand<T> = T extends unknown ? T : never;
194
+ export type AtLeast<O extends object, K extends string> = NoExpand<O extends unknown ? (K extends keyof O ? {
195
+ [P in K]: O[P];
196
+ } & O : O) | {
197
+ [P in keyof O as P extends K ? P : never]-?: O[P];
198
+ } & O : never>;
199
+ type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
200
+ export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
201
+ /** End Helper Types for "Merge" **/
202
+ export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
203
+ export type Boolean = True | False;
204
+ export type True = 1;
205
+ export type False = 0;
206
+ export type Not<B extends Boolean> = {
207
+ 0: 1;
208
+ 1: 0;
209
+ }[B];
210
+ export type Extends<A1 extends any, A2 extends any> = [A1] extends [never] ? 0 : A1 extends A2 ? 1 : 0;
211
+ export type Has<U extends Union, U1 extends Union> = Not<Extends<Exclude<U1, U>, U1>>;
212
+ export type Or<B1 extends Boolean, B2 extends Boolean> = {
213
+ 0: {
214
+ 0: 0;
215
+ 1: 1;
216
+ };
217
+ 1: {
218
+ 0: 1;
219
+ 1: 1;
220
+ };
221
+ }[B1][B2];
222
+ export type Keys<U extends Union> = U extends unknown ? keyof U : never;
223
+ export type GetScalarType<T, O> = O extends object ? {
224
+ [P in keyof T]: P extends keyof O ? O[P] : never;
225
+ } : never;
226
+ type FieldPaths<T, U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>> = IsObject<T> extends True ? U : T;
227
+ export type GetHavingFields<T> = {
228
+ [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;
229
+ }[keyof T];
230
+ /**
231
+ * Convert tuple to union
232
+ */
233
+ type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
234
+ type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
235
+ export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
236
+ /**
237
+ * Like `Pick`, but additionally can also accept an array of keys
238
+ */
239
+ export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>;
240
+ /**
241
+ * Exclude all keys with underscores
242
+ */
243
+ export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T;
244
+ export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
245
+ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>;
246
+ export declare const ModelName: {
247
+ readonly ApiKey: "ApiKey";
248
+ readonly ConnectedAccount: "ConnectedAccount";
249
+ readonly OneTimeToken: "OneTimeToken";
250
+ readonly Permission: "Permission";
251
+ readonly Role: "Role";
252
+ readonly Seeder: "Seeder";
253
+ readonly File: "File";
254
+ };
255
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName];
256
+ export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
257
+ extArgs: runtime.Types.Extensions.InternalArgs;
258
+ }, runtime.Types.Utils.Record<string, any>> {
259
+ returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>;
260
+ }
261
+ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
262
+ globalOmitOptions: {
263
+ omit: GlobalOmitOptions;
264
+ };
265
+ meta: {
266
+ modelProps: "apiKey" | "connectedAccount" | "oneTimeToken" | "permission" | "role" | "seeder" | "file";
267
+ txIsolationLevel: TransactionIsolationLevel;
268
+ };
269
+ model: {
270
+ ApiKey: {
271
+ payload: Prisma.$ApiKeyPayload<ExtArgs>;
272
+ fields: Prisma.ApiKeyFieldRefs;
273
+ operations: {
274
+ findUnique: {
275
+ args: Prisma.ApiKeyFindUniqueArgs<ExtArgs>;
276
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload> | null;
277
+ };
278
+ findUniqueOrThrow: {
279
+ args: Prisma.ApiKeyFindUniqueOrThrowArgs<ExtArgs>;
280
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>;
281
+ };
282
+ findFirst: {
283
+ args: Prisma.ApiKeyFindFirstArgs<ExtArgs>;
284
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload> | null;
285
+ };
286
+ findFirstOrThrow: {
287
+ args: Prisma.ApiKeyFindFirstOrThrowArgs<ExtArgs>;
288
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>;
289
+ };
290
+ findMany: {
291
+ args: Prisma.ApiKeyFindManyArgs<ExtArgs>;
292
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>[];
293
+ };
294
+ create: {
295
+ args: Prisma.ApiKeyCreateArgs<ExtArgs>;
296
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>;
297
+ };
298
+ createMany: {
299
+ args: Prisma.ApiKeyCreateManyArgs<ExtArgs>;
300
+ result: BatchPayload;
301
+ };
302
+ createManyAndReturn: {
303
+ args: Prisma.ApiKeyCreateManyAndReturnArgs<ExtArgs>;
304
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>[];
305
+ };
306
+ delete: {
307
+ args: Prisma.ApiKeyDeleteArgs<ExtArgs>;
308
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>;
309
+ };
310
+ update: {
311
+ args: Prisma.ApiKeyUpdateArgs<ExtArgs>;
312
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>;
313
+ };
314
+ deleteMany: {
315
+ args: Prisma.ApiKeyDeleteManyArgs<ExtArgs>;
316
+ result: BatchPayload;
317
+ };
318
+ updateMany: {
319
+ args: Prisma.ApiKeyUpdateManyArgs<ExtArgs>;
320
+ result: BatchPayload;
321
+ };
322
+ updateManyAndReturn: {
323
+ args: Prisma.ApiKeyUpdateManyAndReturnArgs<ExtArgs>;
324
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>[];
325
+ };
326
+ upsert: {
327
+ args: Prisma.ApiKeyUpsertArgs<ExtArgs>;
328
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ApiKeyPayload>;
329
+ };
330
+ aggregate: {
331
+ args: Prisma.ApiKeyAggregateArgs<ExtArgs>;
332
+ result: runtime.Types.Utils.Optional<Prisma.AggregateApiKey>;
333
+ };
334
+ groupBy: {
335
+ args: Prisma.ApiKeyGroupByArgs<ExtArgs>;
336
+ result: runtime.Types.Utils.Optional<Prisma.ApiKeyGroupByOutputType>[];
337
+ };
338
+ count: {
339
+ args: Prisma.ApiKeyCountArgs<ExtArgs>;
340
+ result: runtime.Types.Utils.Optional<Prisma.ApiKeyCountAggregateOutputType> | number;
341
+ };
342
+ };
343
+ };
344
+ ConnectedAccount: {
345
+ payload: Prisma.$ConnectedAccountPayload<ExtArgs>;
346
+ fields: Prisma.ConnectedAccountFieldRefs;
347
+ operations: {
348
+ findUnique: {
349
+ args: Prisma.ConnectedAccountFindUniqueArgs<ExtArgs>;
350
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload> | null;
351
+ };
352
+ findUniqueOrThrow: {
353
+ args: Prisma.ConnectedAccountFindUniqueOrThrowArgs<ExtArgs>;
354
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>;
355
+ };
356
+ findFirst: {
357
+ args: Prisma.ConnectedAccountFindFirstArgs<ExtArgs>;
358
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload> | null;
359
+ };
360
+ findFirstOrThrow: {
361
+ args: Prisma.ConnectedAccountFindFirstOrThrowArgs<ExtArgs>;
362
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>;
363
+ };
364
+ findMany: {
365
+ args: Prisma.ConnectedAccountFindManyArgs<ExtArgs>;
366
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>[];
367
+ };
368
+ create: {
369
+ args: Prisma.ConnectedAccountCreateArgs<ExtArgs>;
370
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>;
371
+ };
372
+ createMany: {
373
+ args: Prisma.ConnectedAccountCreateManyArgs<ExtArgs>;
374
+ result: BatchPayload;
375
+ };
376
+ createManyAndReturn: {
377
+ args: Prisma.ConnectedAccountCreateManyAndReturnArgs<ExtArgs>;
378
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>[];
379
+ };
380
+ delete: {
381
+ args: Prisma.ConnectedAccountDeleteArgs<ExtArgs>;
382
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>;
383
+ };
384
+ update: {
385
+ args: Prisma.ConnectedAccountUpdateArgs<ExtArgs>;
386
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>;
387
+ };
388
+ deleteMany: {
389
+ args: Prisma.ConnectedAccountDeleteManyArgs<ExtArgs>;
390
+ result: BatchPayload;
391
+ };
392
+ updateMany: {
393
+ args: Prisma.ConnectedAccountUpdateManyArgs<ExtArgs>;
394
+ result: BatchPayload;
395
+ };
396
+ updateManyAndReturn: {
397
+ args: Prisma.ConnectedAccountUpdateManyAndReturnArgs<ExtArgs>;
398
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>[];
399
+ };
400
+ upsert: {
401
+ args: Prisma.ConnectedAccountUpsertArgs<ExtArgs>;
402
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$ConnectedAccountPayload>;
403
+ };
404
+ aggregate: {
405
+ args: Prisma.ConnectedAccountAggregateArgs<ExtArgs>;
406
+ result: runtime.Types.Utils.Optional<Prisma.AggregateConnectedAccount>;
407
+ };
408
+ groupBy: {
409
+ args: Prisma.ConnectedAccountGroupByArgs<ExtArgs>;
410
+ result: runtime.Types.Utils.Optional<Prisma.ConnectedAccountGroupByOutputType>[];
411
+ };
412
+ count: {
413
+ args: Prisma.ConnectedAccountCountArgs<ExtArgs>;
414
+ result: runtime.Types.Utils.Optional<Prisma.ConnectedAccountCountAggregateOutputType> | number;
415
+ };
416
+ };
417
+ };
418
+ OneTimeToken: {
419
+ payload: Prisma.$OneTimeTokenPayload<ExtArgs>;
420
+ fields: Prisma.OneTimeTokenFieldRefs;
421
+ operations: {
422
+ findUnique: {
423
+ args: Prisma.OneTimeTokenFindUniqueArgs<ExtArgs>;
424
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload> | null;
425
+ };
426
+ findUniqueOrThrow: {
427
+ args: Prisma.OneTimeTokenFindUniqueOrThrowArgs<ExtArgs>;
428
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>;
429
+ };
430
+ findFirst: {
431
+ args: Prisma.OneTimeTokenFindFirstArgs<ExtArgs>;
432
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload> | null;
433
+ };
434
+ findFirstOrThrow: {
435
+ args: Prisma.OneTimeTokenFindFirstOrThrowArgs<ExtArgs>;
436
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>;
437
+ };
438
+ findMany: {
439
+ args: Prisma.OneTimeTokenFindManyArgs<ExtArgs>;
440
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>[];
441
+ };
442
+ create: {
443
+ args: Prisma.OneTimeTokenCreateArgs<ExtArgs>;
444
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>;
445
+ };
446
+ createMany: {
447
+ args: Prisma.OneTimeTokenCreateManyArgs<ExtArgs>;
448
+ result: BatchPayload;
449
+ };
450
+ createManyAndReturn: {
451
+ args: Prisma.OneTimeTokenCreateManyAndReturnArgs<ExtArgs>;
452
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>[];
453
+ };
454
+ delete: {
455
+ args: Prisma.OneTimeTokenDeleteArgs<ExtArgs>;
456
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>;
457
+ };
458
+ update: {
459
+ args: Prisma.OneTimeTokenUpdateArgs<ExtArgs>;
460
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>;
461
+ };
462
+ deleteMany: {
463
+ args: Prisma.OneTimeTokenDeleteManyArgs<ExtArgs>;
464
+ result: BatchPayload;
465
+ };
466
+ updateMany: {
467
+ args: Prisma.OneTimeTokenUpdateManyArgs<ExtArgs>;
468
+ result: BatchPayload;
469
+ };
470
+ updateManyAndReturn: {
471
+ args: Prisma.OneTimeTokenUpdateManyAndReturnArgs<ExtArgs>;
472
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>[];
473
+ };
474
+ upsert: {
475
+ args: Prisma.OneTimeTokenUpsertArgs<ExtArgs>;
476
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$OneTimeTokenPayload>;
477
+ };
478
+ aggregate: {
479
+ args: Prisma.OneTimeTokenAggregateArgs<ExtArgs>;
480
+ result: runtime.Types.Utils.Optional<Prisma.AggregateOneTimeToken>;
481
+ };
482
+ groupBy: {
483
+ args: Prisma.OneTimeTokenGroupByArgs<ExtArgs>;
484
+ result: runtime.Types.Utils.Optional<Prisma.OneTimeTokenGroupByOutputType>[];
485
+ };
486
+ count: {
487
+ args: Prisma.OneTimeTokenCountArgs<ExtArgs>;
488
+ result: runtime.Types.Utils.Optional<Prisma.OneTimeTokenCountAggregateOutputType> | number;
489
+ };
490
+ };
491
+ };
492
+ Permission: {
493
+ payload: Prisma.$PermissionPayload<ExtArgs>;
494
+ fields: Prisma.PermissionFieldRefs;
495
+ operations: {
496
+ findUnique: {
497
+ args: Prisma.PermissionFindUniqueArgs<ExtArgs>;
498
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload> | null;
499
+ };
500
+ findUniqueOrThrow: {
501
+ args: Prisma.PermissionFindUniqueOrThrowArgs<ExtArgs>;
502
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>;
503
+ };
504
+ findFirst: {
505
+ args: Prisma.PermissionFindFirstArgs<ExtArgs>;
506
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload> | null;
507
+ };
508
+ findFirstOrThrow: {
509
+ args: Prisma.PermissionFindFirstOrThrowArgs<ExtArgs>;
510
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>;
511
+ };
512
+ findMany: {
513
+ args: Prisma.PermissionFindManyArgs<ExtArgs>;
514
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>[];
515
+ };
516
+ create: {
517
+ args: Prisma.PermissionCreateArgs<ExtArgs>;
518
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>;
519
+ };
520
+ createMany: {
521
+ args: Prisma.PermissionCreateManyArgs<ExtArgs>;
522
+ result: BatchPayload;
523
+ };
524
+ createManyAndReturn: {
525
+ args: Prisma.PermissionCreateManyAndReturnArgs<ExtArgs>;
526
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>[];
527
+ };
528
+ delete: {
529
+ args: Prisma.PermissionDeleteArgs<ExtArgs>;
530
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>;
531
+ };
532
+ update: {
533
+ args: Prisma.PermissionUpdateArgs<ExtArgs>;
534
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>;
535
+ };
536
+ deleteMany: {
537
+ args: Prisma.PermissionDeleteManyArgs<ExtArgs>;
538
+ result: BatchPayload;
539
+ };
540
+ updateMany: {
541
+ args: Prisma.PermissionUpdateManyArgs<ExtArgs>;
542
+ result: BatchPayload;
543
+ };
544
+ updateManyAndReturn: {
545
+ args: Prisma.PermissionUpdateManyAndReturnArgs<ExtArgs>;
546
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>[];
547
+ };
548
+ upsert: {
549
+ args: Prisma.PermissionUpsertArgs<ExtArgs>;
550
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$PermissionPayload>;
551
+ };
552
+ aggregate: {
553
+ args: Prisma.PermissionAggregateArgs<ExtArgs>;
554
+ result: runtime.Types.Utils.Optional<Prisma.AggregatePermission>;
555
+ };
556
+ groupBy: {
557
+ args: Prisma.PermissionGroupByArgs<ExtArgs>;
558
+ result: runtime.Types.Utils.Optional<Prisma.PermissionGroupByOutputType>[];
559
+ };
560
+ count: {
561
+ args: Prisma.PermissionCountArgs<ExtArgs>;
562
+ result: runtime.Types.Utils.Optional<Prisma.PermissionCountAggregateOutputType> | number;
563
+ };
564
+ };
565
+ };
566
+ Role: {
567
+ payload: Prisma.$RolePayload<ExtArgs>;
568
+ fields: Prisma.RoleFieldRefs;
569
+ operations: {
570
+ findUnique: {
571
+ args: Prisma.RoleFindUniqueArgs<ExtArgs>;
572
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload> | null;
573
+ };
574
+ findUniqueOrThrow: {
575
+ args: Prisma.RoleFindUniqueOrThrowArgs<ExtArgs>;
576
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>;
577
+ };
578
+ findFirst: {
579
+ args: Prisma.RoleFindFirstArgs<ExtArgs>;
580
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload> | null;
581
+ };
582
+ findFirstOrThrow: {
583
+ args: Prisma.RoleFindFirstOrThrowArgs<ExtArgs>;
584
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>;
585
+ };
586
+ findMany: {
587
+ args: Prisma.RoleFindManyArgs<ExtArgs>;
588
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>[];
589
+ };
590
+ create: {
591
+ args: Prisma.RoleCreateArgs<ExtArgs>;
592
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>;
593
+ };
594
+ createMany: {
595
+ args: Prisma.RoleCreateManyArgs<ExtArgs>;
596
+ result: BatchPayload;
597
+ };
598
+ createManyAndReturn: {
599
+ args: Prisma.RoleCreateManyAndReturnArgs<ExtArgs>;
600
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>[];
601
+ };
602
+ delete: {
603
+ args: Prisma.RoleDeleteArgs<ExtArgs>;
604
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>;
605
+ };
606
+ update: {
607
+ args: Prisma.RoleUpdateArgs<ExtArgs>;
608
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>;
609
+ };
610
+ deleteMany: {
611
+ args: Prisma.RoleDeleteManyArgs<ExtArgs>;
612
+ result: BatchPayload;
613
+ };
614
+ updateMany: {
615
+ args: Prisma.RoleUpdateManyArgs<ExtArgs>;
616
+ result: BatchPayload;
617
+ };
618
+ updateManyAndReturn: {
619
+ args: Prisma.RoleUpdateManyAndReturnArgs<ExtArgs>;
620
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>[];
621
+ };
622
+ upsert: {
623
+ args: Prisma.RoleUpsertArgs<ExtArgs>;
624
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$RolePayload>;
625
+ };
626
+ aggregate: {
627
+ args: Prisma.RoleAggregateArgs<ExtArgs>;
628
+ result: runtime.Types.Utils.Optional<Prisma.AggregateRole>;
629
+ };
630
+ groupBy: {
631
+ args: Prisma.RoleGroupByArgs<ExtArgs>;
632
+ result: runtime.Types.Utils.Optional<Prisma.RoleGroupByOutputType>[];
633
+ };
634
+ count: {
635
+ args: Prisma.RoleCountArgs<ExtArgs>;
636
+ result: runtime.Types.Utils.Optional<Prisma.RoleCountAggregateOutputType> | number;
637
+ };
638
+ };
639
+ };
640
+ Seeder: {
641
+ payload: Prisma.$SeederPayload<ExtArgs>;
642
+ fields: Prisma.SeederFieldRefs;
643
+ operations: {
644
+ findUnique: {
645
+ args: Prisma.SeederFindUniqueArgs<ExtArgs>;
646
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload> | null;
647
+ };
648
+ findUniqueOrThrow: {
649
+ args: Prisma.SeederFindUniqueOrThrowArgs<ExtArgs>;
650
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>;
651
+ };
652
+ findFirst: {
653
+ args: Prisma.SeederFindFirstArgs<ExtArgs>;
654
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload> | null;
655
+ };
656
+ findFirstOrThrow: {
657
+ args: Prisma.SeederFindFirstOrThrowArgs<ExtArgs>;
658
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>;
659
+ };
660
+ findMany: {
661
+ args: Prisma.SeederFindManyArgs<ExtArgs>;
662
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>[];
663
+ };
664
+ create: {
665
+ args: Prisma.SeederCreateArgs<ExtArgs>;
666
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>;
667
+ };
668
+ createMany: {
669
+ args: Prisma.SeederCreateManyArgs<ExtArgs>;
670
+ result: BatchPayload;
671
+ };
672
+ createManyAndReturn: {
673
+ args: Prisma.SeederCreateManyAndReturnArgs<ExtArgs>;
674
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>[];
675
+ };
676
+ delete: {
677
+ args: Prisma.SeederDeleteArgs<ExtArgs>;
678
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>;
679
+ };
680
+ update: {
681
+ args: Prisma.SeederUpdateArgs<ExtArgs>;
682
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>;
683
+ };
684
+ deleteMany: {
685
+ args: Prisma.SeederDeleteManyArgs<ExtArgs>;
686
+ result: BatchPayload;
687
+ };
688
+ updateMany: {
689
+ args: Prisma.SeederUpdateManyArgs<ExtArgs>;
690
+ result: BatchPayload;
691
+ };
692
+ updateManyAndReturn: {
693
+ args: Prisma.SeederUpdateManyAndReturnArgs<ExtArgs>;
694
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>[];
695
+ };
696
+ upsert: {
697
+ args: Prisma.SeederUpsertArgs<ExtArgs>;
698
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$SeederPayload>;
699
+ };
700
+ aggregate: {
701
+ args: Prisma.SeederAggregateArgs<ExtArgs>;
702
+ result: runtime.Types.Utils.Optional<Prisma.AggregateSeeder>;
703
+ };
704
+ groupBy: {
705
+ args: Prisma.SeederGroupByArgs<ExtArgs>;
706
+ result: runtime.Types.Utils.Optional<Prisma.SeederGroupByOutputType>[];
707
+ };
708
+ count: {
709
+ args: Prisma.SeederCountArgs<ExtArgs>;
710
+ result: runtime.Types.Utils.Optional<Prisma.SeederCountAggregateOutputType> | number;
711
+ };
712
+ };
713
+ };
714
+ File: {
715
+ payload: Prisma.$FilePayload<ExtArgs>;
716
+ fields: Prisma.FileFieldRefs;
717
+ operations: {
718
+ findUnique: {
719
+ args: Prisma.FileFindUniqueArgs<ExtArgs>;
720
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload> | null;
721
+ };
722
+ findUniqueOrThrow: {
723
+ args: Prisma.FileFindUniqueOrThrowArgs<ExtArgs>;
724
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>;
725
+ };
726
+ findFirst: {
727
+ args: Prisma.FileFindFirstArgs<ExtArgs>;
728
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload> | null;
729
+ };
730
+ findFirstOrThrow: {
731
+ args: Prisma.FileFindFirstOrThrowArgs<ExtArgs>;
732
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>;
733
+ };
734
+ findMany: {
735
+ args: Prisma.FileFindManyArgs<ExtArgs>;
736
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>[];
737
+ };
738
+ create: {
739
+ args: Prisma.FileCreateArgs<ExtArgs>;
740
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>;
741
+ };
742
+ createMany: {
743
+ args: Prisma.FileCreateManyArgs<ExtArgs>;
744
+ result: BatchPayload;
745
+ };
746
+ createManyAndReturn: {
747
+ args: Prisma.FileCreateManyAndReturnArgs<ExtArgs>;
748
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>[];
749
+ };
750
+ delete: {
751
+ args: Prisma.FileDeleteArgs<ExtArgs>;
752
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>;
753
+ };
754
+ update: {
755
+ args: Prisma.FileUpdateArgs<ExtArgs>;
756
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>;
757
+ };
758
+ deleteMany: {
759
+ args: Prisma.FileDeleteManyArgs<ExtArgs>;
760
+ result: BatchPayload;
761
+ };
762
+ updateMany: {
763
+ args: Prisma.FileUpdateManyArgs<ExtArgs>;
764
+ result: BatchPayload;
765
+ };
766
+ updateManyAndReturn: {
767
+ args: Prisma.FileUpdateManyAndReturnArgs<ExtArgs>;
768
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>[];
769
+ };
770
+ upsert: {
771
+ args: Prisma.FileUpsertArgs<ExtArgs>;
772
+ result: runtime.Types.Utils.PayloadToResult<Prisma.$FilePayload>;
773
+ };
774
+ aggregate: {
775
+ args: Prisma.FileAggregateArgs<ExtArgs>;
776
+ result: runtime.Types.Utils.Optional<Prisma.AggregateFile>;
777
+ };
778
+ groupBy: {
779
+ args: Prisma.FileGroupByArgs<ExtArgs>;
780
+ result: runtime.Types.Utils.Optional<Prisma.FileGroupByOutputType>[];
781
+ };
782
+ count: {
783
+ args: Prisma.FileCountArgs<ExtArgs>;
784
+ result: runtime.Types.Utils.Optional<Prisma.FileCountAggregateOutputType> | number;
785
+ };
786
+ };
787
+ };
788
+ };
789
+ } & {
790
+ other: {
791
+ payload: any;
792
+ operations: {
793
+ $executeRaw: {
794
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
795
+ result: any;
796
+ };
797
+ $executeRawUnsafe: {
798
+ args: [query: string, ...values: any[]];
799
+ result: any;
800
+ };
801
+ $queryRaw: {
802
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
803
+ result: any;
804
+ };
805
+ $queryRawUnsafe: {
806
+ args: [query: string, ...values: any[]];
807
+ result: any;
808
+ };
809
+ };
810
+ };
811
+ };
812
+ /**
813
+ * Enums
814
+ */
815
+ export declare const TransactionIsolationLevel: {
816
+ readonly Serializable: "Serializable";
817
+ };
818
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
819
+ export declare const ApiKeyScalarFieldEnum: {
820
+ readonly id: "id";
821
+ readonly key: "key";
822
+ readonly keyHash: "keyHash";
823
+ readonly name: "name";
824
+ readonly description: "description";
825
+ readonly enabled: "enabled";
826
+ readonly expiresAt: "expiresAt";
827
+ readonly updatedAt: "updatedAt";
828
+ readonly createdAt: "createdAt";
829
+ };
830
+ export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum];
831
+ export declare const ConnectedAccountScalarFieldEnum: {
832
+ readonly id: "id";
833
+ readonly provider: "provider";
834
+ readonly providerAccountId: "providerAccountId";
835
+ readonly scope: "scope";
836
+ readonly lastLoginAt: "lastLoginAt";
837
+ readonly updatedAt: "updatedAt";
838
+ readonly createdAt: "createdAt";
839
+ };
840
+ export type ConnectedAccountScalarFieldEnum = (typeof ConnectedAccountScalarFieldEnum)[keyof typeof ConnectedAccountScalarFieldEnum];
841
+ export declare const OneTimeTokenScalarFieldEnum: {
842
+ readonly id: "id";
843
+ readonly tokenHash: "tokenHash";
844
+ readonly purpose: "purpose";
845
+ readonly data: "data";
846
+ readonly expiresAt: "expiresAt";
847
+ readonly createdAt: "createdAt";
848
+ };
849
+ export type OneTimeTokenScalarFieldEnum = (typeof OneTimeTokenScalarFieldEnum)[keyof typeof OneTimeTokenScalarFieldEnum];
850
+ export declare const PermissionScalarFieldEnum: {
851
+ readonly id: "id";
852
+ readonly name: "name";
853
+ readonly updatedAt: "updatedAt";
854
+ readonly createdAt: "createdAt";
855
+ };
856
+ export type PermissionScalarFieldEnum = (typeof PermissionScalarFieldEnum)[keyof typeof PermissionScalarFieldEnum];
857
+ export declare const RoleScalarFieldEnum: {
858
+ readonly id: "id";
859
+ readonly name: "name";
860
+ readonly updatedAt: "updatedAt";
861
+ readonly createdAt: "createdAt";
862
+ };
863
+ export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum];
864
+ export declare const SeederScalarFieldEnum: {
865
+ readonly id: "id";
866
+ readonly checksum: "checksum";
867
+ readonly seederName: "seederName";
868
+ readonly startedAt: "startedAt";
869
+ readonly finishedAt: "finishedAt";
870
+ readonly logs: "logs";
871
+ };
872
+ export type SeederScalarFieldEnum = (typeof SeederScalarFieldEnum)[keyof typeof SeederScalarFieldEnum];
873
+ export declare const FileScalarFieldEnum: {
874
+ readonly id: "id";
875
+ readonly name: "name";
876
+ readonly originalName: "originalName";
877
+ readonly mimeType: "mimeType";
878
+ readonly sizeBytes: "sizeBytes";
879
+ readonly checksum: "checksum";
880
+ readonly title: "title";
881
+ readonly description: "description";
882
+ readonly resourceField: "resourceField";
883
+ readonly resourceName: "resourceName";
884
+ readonly resourceId: "resourceId";
885
+ readonly updatedAt: "updatedAt";
886
+ readonly createdAt: "createdAt";
887
+ readonly deletedAt: "deletedAt";
888
+ };
889
+ export type FileScalarFieldEnum = (typeof FileScalarFieldEnum)[keyof typeof FileScalarFieldEnum];
890
+ export declare const SortOrder: {
891
+ readonly asc: "asc";
892
+ readonly desc: "desc";
893
+ };
894
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
895
+ export declare const JsonNullValueInput: {
896
+ readonly JsonNull: runtime.JsonNullClass;
897
+ };
898
+ export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput];
899
+ export declare const NullsOrder: {
900
+ readonly first: "first";
901
+ readonly last: "last";
902
+ };
903
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
904
+ export declare const JsonNullValueFilter: {
905
+ readonly DbNull: runtime.DbNullClass;
906
+ readonly JsonNull: runtime.JsonNullClass;
907
+ readonly AnyNull: runtime.AnyNullClass;
908
+ };
909
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter];
910
+ export declare const QueryMode: {
911
+ readonly default: "default";
912
+ readonly insensitive: "insensitive";
913
+ };
914
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode];
915
+ /**
916
+ * Field references
917
+ */
918
+ /**
919
+ * Reference to a field of type 'Int'
920
+ */
921
+ export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>;
922
+ /**
923
+ * Reference to a field of type 'String'
924
+ */
925
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>;
926
+ /**
927
+ * Reference to a field of type 'Boolean'
928
+ */
929
+ export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>;
930
+ /**
931
+ * Reference to a field of type 'DateTime'
932
+ */
933
+ export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>;
934
+ /**
935
+ * Reference to a field of type 'Json'
936
+ */
937
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>;
938
+ /**
939
+ * Reference to a field of type 'QueryMode'
940
+ */
941
+ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>;
942
+ /**
943
+ * Reference to a field of type 'Float'
944
+ */
945
+ export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>;
946
+ /**
947
+ * Batch Payload for updateMany & deleteMany & createMany
948
+ */
949
+ export type BatchPayload = {
950
+ count: number;
951
+ };
952
+ export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>;
953
+ export type DefaultPrismaClient = PrismaClient;
954
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
955
+ /**
956
+ * Options common to all variants of `PrismaClientOptions`, regardless of whether you connect to your database through a driver adapter or through Prisma Accelerate.
957
+ */
958
+ export interface PrismaClientBaseOptions {
959
+ /**
960
+ * @default "colorless"
961
+ */
962
+ errorFormat?: ErrorFormat;
963
+ /**
964
+ * @example
965
+ * ```
966
+ * // Shorthand for `emit: 'stdout'`
967
+ * log: ['query', 'info', 'warn', 'error']
968
+ *
969
+ * // Emit as events only
970
+ * log: [
971
+ * { emit: 'event', level: 'query' },
972
+ * { emit: 'event', level: 'info' },
973
+ * { emit: 'event', level: 'warn' }
974
+ * { emit: 'event', level: 'error' }
975
+ * ]
976
+ *
977
+ * / Emit as events and log to stdout
978
+ * og: [
979
+ * { emit: 'stdout', level: 'query' },
980
+ * { emit: 'stdout', level: 'info' },
981
+ * { emit: 'stdout', level: 'warn' }
982
+ * { emit: 'stdout', level: 'error' }
983
+ *
984
+ * ```
985
+ * Read more in our [docs](https://pris.ly/d/logging).
986
+ */
987
+ log?: (LogLevel | LogDefinition)[];
988
+ /**
989
+ * The default values for transactionOptions
990
+ * maxWait ?= 2000
991
+ * timeout ?= 5000
992
+ */
993
+ transactionOptions?: {
994
+ maxWait?: number;
995
+ timeout?: number;
996
+ isolationLevel?: TransactionIsolationLevel;
997
+ };
998
+ /**
999
+ * Global configuration for omitting model fields by default.
1000
+ *
1001
+ * @example
1002
+ * ```
1003
+ * const prisma = new PrismaClient({
1004
+ * omit: {
1005
+ * user: {
1006
+ * password: true
1007
+ * }
1008
+ * }
1009
+ * })
1010
+ * ```
1011
+ */
1012
+ omit?: GlobalOmitConfig;
1013
+ /**
1014
+ * SQL commenter plugins that add metadata to SQL queries as comments.
1015
+ * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/
1016
+ *
1017
+ * @example
1018
+ * ```
1019
+ * const prisma = new PrismaClient({
1020
+ * adapter,
1021
+ * comments: [
1022
+ * traceContext(),
1023
+ * queryInsights(),
1024
+ * ],
1025
+ * })
1026
+ * ```
1027
+ */
1028
+ comments?: runtime.SqlCommenterPlugin[];
1029
+ /**
1030
+ * Optional maximum size for the query plan cache. If not provided, a default size will be used.
1031
+ * A value of `0` can be used to disable the cache entirely. A higher cache size can improve
1032
+ * performance for applications that execute a large number of unique queries, while a smaller
1033
+ * cache size can reduce memory usage.
1034
+ *
1035
+ * @example
1036
+ * ```
1037
+ * const prisma = new PrismaClient({
1038
+ * adapter,
1039
+ * queryPlanCacheMaxSize: 100,
1040
+ * })
1041
+ * ```
1042
+ */
1043
+ queryPlanCacheMaxSize?: number;
1044
+ }
1045
+ /**
1046
+ * `PrismaClient` options for connecting to your database through Prisma Accelerate instead of a driver adapter.
1047
+ *
1048
+ * Learn more: https://pris.ly/d/accelerate
1049
+ */
1050
+ export interface PrismaClientOptionsWithAccelerateUrl extends PrismaClientBaseOptions {
1051
+ /**
1052
+ * The Prisma Accelerate connection URL. Use this option to connect to your database through Prisma Accelerate instead of using a driver adapter to connect directly.
1053
+ *
1054
+ * Learn more: https://pris.ly/d/accelerate
1055
+ */
1056
+ accelerateUrl: string;
1057
+ adapter?: never;
1058
+ }
1059
+ /**
1060
+ * `PrismaClient` options for connecting to your database through a driver adapter. This is the common case in Prisma 7.
1061
+ *
1062
+ * Learn more: https://pris.ly/d/driver-adapters
1063
+ */
1064
+ export interface PrismaClientOptionsWithAdapter extends PrismaClientBaseOptions {
1065
+ /**
1066
+ * A driver adapter that PrismaClient uses to connect to your database, such as the ones provided by `@prisma/adapter-pg`, `@prisma/adapter-libsql`, `@prisma/adapter-planetscale`, etc.
1067
+ *
1068
+ * A driver adapter is **required** unless you connect to your database through Prisma Accelerate (in which case use `accelerateUrl` instead).
1069
+ *
1070
+ * Learn more: https://pris.ly/d/driver-adapters
1071
+ *
1072
+ * @example
1073
+ * ```ts
1074
+ * import { PrismaPg } from '@prisma/adapter-pg'
1075
+ * import { PrismaClient } from './generated/prisma/client'
1076
+ *
1077
+ * const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
1078
+ * const prisma = new PrismaClient({ adapter })
1079
+ * ```
1080
+ */
1081
+ adapter: runtime.SqlDriverAdapterFactory;
1082
+ accelerateUrl?: never;
1083
+ }
1084
+ /**
1085
+ * Options passed to the `PrismaClient` constructor.
1086
+ *
1087
+ * A driver adapter (or, alternatively, a Prisma Accelerate URL) is **required**. See {@link PrismaClientOptionsWithAdapter} and {@link PrismaClientOptionsWithAccelerateUrl} for the two variants. All other properties live in {@link PrismaClientBaseOptions} and are optional.
1088
+ *
1089
+ * Learn more about driver adapters: https://pris.ly/d/driver-adapters
1090
+ */
1091
+ export type PrismaClientOptions = PrismaClientOptionsWithAccelerateUrl | PrismaClientOptionsWithAdapter;
1092
+ export type GlobalOmitConfig = {
1093
+ apiKey?: Prisma.ApiKeyOmit;
1094
+ connectedAccount?: Prisma.ConnectedAccountOmit;
1095
+ oneTimeToken?: Prisma.OneTimeTokenOmit;
1096
+ permission?: Prisma.PermissionOmit;
1097
+ role?: Prisma.RoleOmit;
1098
+ seeder?: Prisma.SeederOmit;
1099
+ file?: Prisma.FileOmit;
1100
+ };
1101
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error';
1102
+ export type LogDefinition = {
1103
+ level: LogLevel;
1104
+ emit: 'stdout' | 'event';
1105
+ };
1106
+ export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
1107
+ export type GetLogType<T> = CheckIsLogLevel<T extends LogDefinition ? T['level'] : T>;
1108
+ export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
1109
+ export type QueryEvent = {
1110
+ timestamp: Date;
1111
+ query: string;
1112
+ params: string;
1113
+ duration: number;
1114
+ target: string;
1115
+ };
1116
+ export type LogEvent = {
1117
+ timestamp: Date;
1118
+ message: string;
1119
+ target: string;
1120
+ };
1121
+ export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
1122
+ /**
1123
+ * `PrismaClient` proxy available in interactive transactions.
1124
+ */
1125
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;