@appweaver/core 1.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 (271) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +7 -0
  3. package/app/application.d.ts +43 -0
  4. package/app/application.js +112 -0
  5. package/app/create-app.d.ts +32 -0
  6. package/app/create-app.js +38 -0
  7. package/app/index.d.ts +2 -0
  8. package/app/index.js +18 -0
  9. package/app/lifecycle-manager.d.ts +20 -0
  10. package/app/lifecycle-manager.js +42 -0
  11. package/app/load-modules.d.ts +10 -0
  12. package/app/load-modules.js +50 -0
  13. package/app/load-providers.d.ts +8 -0
  14. package/app/load-providers.js +33 -0
  15. package/cache/cache-service.d.ts +72 -0
  16. package/cache/cache-service.js +202 -0
  17. package/cache/cache.d.ts +12 -0
  18. package/cache/cache.js +184 -0
  19. package/cache/caching.d.ts +8 -0
  20. package/cache/caching.js +72 -0
  21. package/cache/eviction/eviction-index.d.ts +35 -0
  22. package/cache/eviction/eviction-index.js +2 -0
  23. package/cache/eviction/fifo-eviction-index.d.ts +7 -0
  24. package/cache/eviction/fifo-eviction-index.js +28 -0
  25. package/cache/eviction/index.d.ts +4 -0
  26. package/cache/eviction/index.js +20 -0
  27. package/cache/eviction/lfu-eviction-index.d.ts +8 -0
  28. package/cache/eviction/lfu-eviction-index.js +82 -0
  29. package/cache/eviction/lru-eviction-index.d.ts +8 -0
  30. package/cache/eviction/lru-eviction-index.js +81 -0
  31. package/cache/index.d.ts +2 -0
  32. package/cache/index.js +18 -0
  33. package/cache/memory-cache.d.ts +4 -0
  34. package/cache/memory-cache.js +12 -0
  35. package/cache/redis-cache.d.ts +4 -0
  36. package/cache/redis-cache.js +12 -0
  37. package/context/context.d.ts +2 -0
  38. package/context/context.js +13 -0
  39. package/context/dependency-injection.d.ts +98 -0
  40. package/context/dependency-injection.js +276 -0
  41. package/context/index.d.ts +2 -0
  42. package/context/index.js +18 -0
  43. package/database/create-client.d.ts +11 -0
  44. package/database/create-client.js +142 -0
  45. package/database/index.d.ts +1 -0
  46. package/database/index.js +17 -0
  47. package/database/prisma-database.d.ts +15 -0
  48. package/database/prisma-database.js +53 -0
  49. package/errors/error-handler.d.ts +3 -0
  50. package/errors/error-handler.js +24 -0
  51. package/errors/error-schema.d.ts +32 -0
  52. package/errors/error-schema.js +31 -0
  53. package/errors/http-error.d.ts +21 -0
  54. package/errors/http-error.js +33 -0
  55. package/errors/index.d.ts +3 -0
  56. package/errors/index.js +19 -0
  57. package/events/node-events.d.ts +7 -0
  58. package/events/node-events.js +39 -0
  59. package/export/export-service.d.ts +19 -0
  60. package/export/export-service.js +154 -0
  61. package/export/index.d.ts +1 -0
  62. package/export/index.js +17 -0
  63. package/factory/create-model.d.ts +2 -0
  64. package/factory/create-model.js +366 -0
  65. package/factory/create-policy.d.ts +2 -0
  66. package/factory/create-policy.js +16 -0
  67. package/factory/create-routes.d.ts +2 -0
  68. package/factory/create-routes.js +21 -0
  69. package/factory/create-service.d.ts +3 -0
  70. package/factory/create-service.js +97 -0
  71. package/factory/index.d.ts +4 -0
  72. package/factory/index.js +20 -0
  73. package/health/health-routes.d.ts +2 -0
  74. package/health/health-routes.js +36 -0
  75. package/health/health-schema.d.ts +45 -0
  76. package/health/health-schema.js +52 -0
  77. package/health/health-service.d.ts +38 -0
  78. package/health/health-service.js +82 -0
  79. package/health/index.d.ts +2 -0
  80. package/health/index.js +18 -0
  81. package/index.d.ts +15 -0
  82. package/index.js +31 -0
  83. package/mailer/email-service.d.ts +36 -0
  84. package/mailer/email-service.js +89 -0
  85. package/mailer/index.d.ts +1 -0
  86. package/mailer/index.js +17 -0
  87. package/mailer/json-mailer.d.ts +7 -0
  88. package/mailer/json-mailer.js +32 -0
  89. package/mailer/smtp-mailer.d.ts +7 -0
  90. package/mailer/smtp-mailer.js +43 -0
  91. package/memory/in-memory.d.ts +24 -0
  92. package/memory/in-memory.js +164 -0
  93. package/memory/redis.d.ts +26 -0
  94. package/memory/redis.js +158 -0
  95. package/package.json +68 -0
  96. package/prisma/client/browser.d.ts +34 -0
  97. package/prisma/client/browser.js +56 -0
  98. package/prisma/client/client.d.ts +53 -0
  99. package/prisma/client/client.js +70 -0
  100. package/prisma/client/commonInputTypes.d.ts +395 -0
  101. package/prisma/client/commonInputTypes.js +11 -0
  102. package/prisma/client/enums.d.ts +1 -0
  103. package/prisma/client/enums.js +11 -0
  104. package/prisma/client/internal/class.d.ts +187 -0
  105. package/prisma/client/internal/class.js +85 -0
  106. package/prisma/client/internal/prismaNamespace.d.ts +987 -0
  107. package/prisma/client/internal/prismaNamespace.js +193 -0
  108. package/prisma/client/internal/prismaNamespaceBrowser.d.ts +125 -0
  109. package/prisma/client/internal/prismaNamespaceBrowser.js +164 -0
  110. package/prisma/client/models/ApiKey.d.ts +1167 -0
  111. package/prisma/client/models/ApiKey.js +2 -0
  112. package/prisma/client/models/File.d.ts +1248 -0
  113. package/prisma/client/models/File.js +2 -0
  114. package/prisma/client/models/OneTimeToken.d.ts +1083 -0
  115. package/prisma/client/models/OneTimeToken.js +2 -0
  116. package/prisma/client/models/Permission.d.ts +1209 -0
  117. package/prisma/client/models/Permission.js +2 -0
  118. package/prisma/client/models/Role.d.ts +1209 -0
  119. package/prisma/client/models/Role.js +2 -0
  120. package/prisma/client/models/Seeder.d.ts +1023 -0
  121. package/prisma/client/models/Seeder.js +2 -0
  122. package/prisma/client/models.d.ts +7 -0
  123. package/prisma/client/models.js +2 -0
  124. package/queue/bull-queue.d.ts +37 -0
  125. package/queue/bull-queue.js +207 -0
  126. package/queue/memory-queue.d.ts +54 -0
  127. package/queue/memory-queue.js +283 -0
  128. package/resource/index.d.ts +4 -0
  129. package/resource/index.js +20 -0
  130. package/resource/resource-loader.d.ts +26 -0
  131. package/resource/resource-loader.js +161 -0
  132. package/resource/resource-routes.d.ts +3 -0
  133. package/resource/resource-routes.js +174 -0
  134. package/resource/resource-schema.d.ts +33 -0
  135. package/resource/resource-schema.js +186 -0
  136. package/resource/resource-service.d.ts +89 -0
  137. package/resource/resource-service.js +772 -0
  138. package/resources.d.ts +9 -0
  139. package/resources.js +24 -0
  140. package/scheduler/cron-scheduler.d.ts +12 -0
  141. package/scheduler/cron-scheduler.js +73 -0
  142. package/security/account/account-routes.d.ts +2 -0
  143. package/security/account/account-routes.js +104 -0
  144. package/security/account/account-schema.d.ts +290 -0
  145. package/security/account/account-schema.js +166 -0
  146. package/security/account/account-service.d.ts +88 -0
  147. package/security/account/account-service.js +218 -0
  148. package/security/account/index.d.ts +3 -0
  149. package/security/account/index.js +19 -0
  150. package/security/api-key/api-key-auth.d.ts +4 -0
  151. package/security/api-key/api-key-auth.js +66 -0
  152. package/security/api-key/index.d.ts +1 -0
  153. package/security/api-key/index.js +17 -0
  154. package/security/auth-routes.d.ts +2 -0
  155. package/security/auth-routes.js +80 -0
  156. package/security/auth-schema.d.ts +215 -0
  157. package/security/auth-schema.js +129 -0
  158. package/security/auth-service.d.ts +117 -0
  159. package/security/auth-service.js +272 -0
  160. package/security/auth.d.ts +3 -0
  161. package/security/auth.js +127 -0
  162. package/security/basic/basic-auth.d.ts +4 -0
  163. package/security/basic/basic-auth.js +32 -0
  164. package/security/basic/index.d.ts +1 -0
  165. package/security/basic/index.js +17 -0
  166. package/security/create-auth-resources.d.ts +6 -0
  167. package/security/create-auth-resources.js +129 -0
  168. package/security/helper.d.ts +127 -0
  169. package/security/helper.js +329 -0
  170. package/security/index.d.ts +4 -0
  171. package/security/index.js +20 -0
  172. package/security/jwt/index.d.ts +2 -0
  173. package/security/jwt/index.js +18 -0
  174. package/security/jwt/jwt-auth.d.ts +4 -0
  175. package/security/jwt/jwt-auth.js +57 -0
  176. package/security/jwt/jwt-keys.d.ts +7 -0
  177. package/security/jwt/jwt-keys.js +43 -0
  178. package/security/oauth2/create-oauth2-plugin.d.ts +17 -0
  179. package/security/oauth2/create-oauth2-plugin.js +85 -0
  180. package/security/oauth2/index.d.ts +3 -0
  181. package/security/oauth2/index.js +19 -0
  182. package/security/oauth2/oauth2-custom.d.ts +7 -0
  183. package/security/oauth2/oauth2-custom.js +40 -0
  184. package/security/oauth2/oauth2-facebook.d.ts +1 -0
  185. package/security/oauth2/oauth2-facebook.js +30 -0
  186. package/security/oauth2/oauth2-google.d.ts +1 -0
  187. package/security/oauth2/oauth2-google.js +28 -0
  188. package/security/oauth2/oauth2-schema.d.ts +10 -0
  189. package/security/oauth2/oauth2-schema.js +53 -0
  190. package/security/recaptcha/index.d.ts +2 -0
  191. package/security/recaptcha/index.js +18 -0
  192. package/security/recaptcha/recaptcha-verify.d.ts +1 -0
  193. package/security/recaptcha/recaptcha-verify.js +33 -0
  194. package/security/recaptcha/recaptcha.d.ts +2 -0
  195. package/security/recaptcha/recaptcha.js +22 -0
  196. package/security/resources/api-key/model.d.ts +2 -0
  197. package/security/resources/api-key/model.js +63 -0
  198. package/security/resources/api-key/policy.d.ts +2 -0
  199. package/security/resources/api-key/policy.js +26 -0
  200. package/security/resources/api-key/routes.d.ts +2 -0
  201. package/security/resources/api-key/routes.js +15 -0
  202. package/security/resources/api-key/service.d.ts +3 -0
  203. package/security/resources/api-key/service.js +33 -0
  204. package/security/resources/one-time-token/model.d.ts +2 -0
  205. package/security/resources/one-time-token/model.js +32 -0
  206. package/security/resources/permission/model.d.ts +2 -0
  207. package/security/resources/permission/model.js +16 -0
  208. package/security/resources/role/model.d.ts +2 -0
  209. package/security/resources/role/model.js +22 -0
  210. package/security/store/database-security-store.d.ts +5 -0
  211. package/security/store/database-security-store.js +51 -0
  212. package/security/store/redis-security-store.d.ts +5 -0
  213. package/security/store/redis-security-store.js +32 -0
  214. package/seeder/create-seeder.d.ts +21 -0
  215. package/seeder/create-seeder.js +17 -0
  216. package/seeder/index.d.ts +2 -0
  217. package/seeder/index.js +18 -0
  218. package/seeder/resources/seeder/model.d.ts +2 -0
  219. package/seeder/resources/seeder/model.js +38 -0
  220. package/seeder/seeder.d.ts +20 -0
  221. package/seeder/seeder.js +175 -0
  222. package/server/create-server.d.ts +20 -0
  223. package/server/create-server.js +160 -0
  224. package/server/index.d.ts +4 -0
  225. package/server/index.js +20 -0
  226. package/server/info-route.d.ts +2 -0
  227. package/server/info-route.js +18 -0
  228. package/server/info-schema.d.ts +37 -0
  229. package/server/info-schema.js +19 -0
  230. package/server/register-model.d.ts +2 -0
  231. package/server/register-model.js +12 -0
  232. package/server/register-plugin.d.ts +2 -0
  233. package/server/register-plugin.js +13 -0
  234. package/server/register-route.d.ts +3 -0
  235. package/server/register-route.js +74 -0
  236. package/server/schemas.d.ts +3 -0
  237. package/server/schemas.js +30 -0
  238. package/server/swagger.d.ts +3 -0
  239. package/server/swagger.js +122 -0
  240. package/storage/file-route.d.ts +2 -0
  241. package/storage/file-route.js +39 -0
  242. package/storage/file-schema.d.ts +9 -0
  243. package/storage/file-schema.js +42 -0
  244. package/storage/file-service.d.ts +81 -0
  245. package/storage/file-service.js +384 -0
  246. package/storage/filesystem-storage.d.ts +10 -0
  247. package/storage/filesystem-storage.js +128 -0
  248. package/storage/index.d.ts +2 -0
  249. package/storage/index.js +18 -0
  250. package/storage/resources/file/model.d.ts +2 -0
  251. package/storage/resources/file/model.js +75 -0
  252. package/types/application-context.d.ts +20 -0
  253. package/types/application-context.js +2 -0
  254. package/types/auth.d.ts +31 -0
  255. package/types/auth.js +2 -0
  256. package/types/fastify-extensions.d.ts +24 -0
  257. package/types/fastify-extensions.js +4 -0
  258. package/types/generated.d.ts +193 -0
  259. package/types/generated.js +3 -0
  260. package/types/index.d.ts +4 -0
  261. package/types/index.js +20 -0
  262. package/types/server.d.ts +4 -0
  263. package/types/server.js +2 -0
  264. package/utils/export-util.d.ts +8 -0
  265. package/utils/export-util.js +25 -0
  266. package/utils/file-util.d.ts +64 -0
  267. package/utils/file-util.js +141 -0
  268. package/utils/index.d.ts +3 -0
  269. package/utils/index.js +19 -0
  270. package/utils/schema-util.d.ts +20 -0
  271. package/utils/schema-util.js +37 -0
@@ -0,0 +1,1083 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model OneTimeToken
5
+ *
6
+ */
7
+ export type OneTimeTokenModel = runtime.Types.Result.DefaultSelection<Prisma.$OneTimeTokenPayload>;
8
+ export type AggregateOneTimeToken = {
9
+ _count: OneTimeTokenCountAggregateOutputType | null;
10
+ _avg: OneTimeTokenAvgAggregateOutputType | null;
11
+ _sum: OneTimeTokenSumAggregateOutputType | null;
12
+ _min: OneTimeTokenMinAggregateOutputType | null;
13
+ _max: OneTimeTokenMaxAggregateOutputType | null;
14
+ };
15
+ export type OneTimeTokenAvgAggregateOutputType = {
16
+ id: number | null;
17
+ };
18
+ export type OneTimeTokenSumAggregateOutputType = {
19
+ id: number | null;
20
+ };
21
+ export type OneTimeTokenMinAggregateOutputType = {
22
+ id: number | null;
23
+ tokenHash: string | null;
24
+ purpose: string | null;
25
+ expiresAt: Date | null;
26
+ updatedAt: Date | null;
27
+ createdAt: Date | null;
28
+ };
29
+ export type OneTimeTokenMaxAggregateOutputType = {
30
+ id: number | null;
31
+ tokenHash: string | null;
32
+ purpose: string | null;
33
+ expiresAt: Date | null;
34
+ updatedAt: Date | null;
35
+ createdAt: Date | null;
36
+ };
37
+ export type OneTimeTokenCountAggregateOutputType = {
38
+ id: number;
39
+ tokenHash: number;
40
+ purpose: number;
41
+ expiresAt: number;
42
+ data: number;
43
+ updatedAt: number;
44
+ createdAt: number;
45
+ _all: number;
46
+ };
47
+ export type OneTimeTokenAvgAggregateInputType = {
48
+ id?: true;
49
+ };
50
+ export type OneTimeTokenSumAggregateInputType = {
51
+ id?: true;
52
+ };
53
+ export type OneTimeTokenMinAggregateInputType = {
54
+ id?: true;
55
+ tokenHash?: true;
56
+ purpose?: true;
57
+ expiresAt?: true;
58
+ updatedAt?: true;
59
+ createdAt?: true;
60
+ };
61
+ export type OneTimeTokenMaxAggregateInputType = {
62
+ id?: true;
63
+ tokenHash?: true;
64
+ purpose?: true;
65
+ expiresAt?: true;
66
+ updatedAt?: true;
67
+ createdAt?: true;
68
+ };
69
+ export type OneTimeTokenCountAggregateInputType = {
70
+ id?: true;
71
+ tokenHash?: true;
72
+ purpose?: true;
73
+ expiresAt?: true;
74
+ data?: true;
75
+ updatedAt?: true;
76
+ createdAt?: true;
77
+ _all?: true;
78
+ };
79
+ export type OneTimeTokenAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
80
+ /**
81
+ * Filter which OneTimeToken to aggregate.
82
+ */
83
+ where?: Prisma.OneTimeTokenWhereInput;
84
+ /**
85
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
86
+ *
87
+ * Determine the order of OneTimeTokens to fetch.
88
+ */
89
+ orderBy?: Prisma.OneTimeTokenOrderByWithRelationInput | Prisma.OneTimeTokenOrderByWithRelationInput[];
90
+ /**
91
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
92
+ *
93
+ * Sets the start position
94
+ */
95
+ cursor?: Prisma.OneTimeTokenWhereUniqueInput;
96
+ /**
97
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
98
+ *
99
+ * Take `±n` OneTimeTokens from the position of the cursor.
100
+ */
101
+ take?: number;
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
104
+ *
105
+ * Skip the first `n` OneTimeTokens.
106
+ */
107
+ skip?: number;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
110
+ *
111
+ * Count returned OneTimeTokens
112
+ **/
113
+ _count?: true | OneTimeTokenCountAggregateInputType;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
116
+ *
117
+ * Select which fields to average
118
+ **/
119
+ _avg?: OneTimeTokenAvgAggregateInputType;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
122
+ *
123
+ * Select which fields to sum
124
+ **/
125
+ _sum?: OneTimeTokenSumAggregateInputType;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Select which fields to find the minimum value
130
+ **/
131
+ _min?: OneTimeTokenMinAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to find the maximum value
136
+ **/
137
+ _max?: OneTimeTokenMaxAggregateInputType;
138
+ };
139
+ export type GetOneTimeTokenAggregateType<T extends OneTimeTokenAggregateArgs> = {
140
+ [P in keyof T & keyof AggregateOneTimeToken]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOneTimeToken[P]> : Prisma.GetScalarType<T[P], AggregateOneTimeToken[P]>;
141
+ };
142
+ export type OneTimeTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
143
+ where?: Prisma.OneTimeTokenWhereInput;
144
+ orderBy?: Prisma.OneTimeTokenOrderByWithAggregationInput | Prisma.OneTimeTokenOrderByWithAggregationInput[];
145
+ by: Prisma.OneTimeTokenScalarFieldEnum[] | Prisma.OneTimeTokenScalarFieldEnum;
146
+ having?: Prisma.OneTimeTokenScalarWhereWithAggregatesInput;
147
+ take?: number;
148
+ skip?: number;
149
+ _count?: OneTimeTokenCountAggregateInputType | true;
150
+ _avg?: OneTimeTokenAvgAggregateInputType;
151
+ _sum?: OneTimeTokenSumAggregateInputType;
152
+ _min?: OneTimeTokenMinAggregateInputType;
153
+ _max?: OneTimeTokenMaxAggregateInputType;
154
+ };
155
+ export type OneTimeTokenGroupByOutputType = {
156
+ id: number;
157
+ tokenHash: string;
158
+ purpose: string;
159
+ expiresAt: Date;
160
+ data: runtime.JsonValue;
161
+ updatedAt: Date;
162
+ createdAt: Date;
163
+ _count: OneTimeTokenCountAggregateOutputType | null;
164
+ _avg: OneTimeTokenAvgAggregateOutputType | null;
165
+ _sum: OneTimeTokenSumAggregateOutputType | null;
166
+ _min: OneTimeTokenMinAggregateOutputType | null;
167
+ _max: OneTimeTokenMaxAggregateOutputType | null;
168
+ };
169
+ export type GetOneTimeTokenGroupByPayload<T extends OneTimeTokenGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OneTimeTokenGroupByOutputType, T['by']> & {
170
+ [P in ((keyof T) & (keyof OneTimeTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OneTimeTokenGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OneTimeTokenGroupByOutputType[P]>;
171
+ }>>;
172
+ export type OneTimeTokenWhereInput = {
173
+ AND?: Prisma.OneTimeTokenWhereInput | Prisma.OneTimeTokenWhereInput[];
174
+ OR?: Prisma.OneTimeTokenWhereInput[];
175
+ NOT?: Prisma.OneTimeTokenWhereInput | Prisma.OneTimeTokenWhereInput[];
176
+ id?: Prisma.IntFilter<"OneTimeToken"> | number;
177
+ tokenHash?: Prisma.StringFilter<"OneTimeToken"> | string;
178
+ purpose?: Prisma.StringFilter<"OneTimeToken"> | string;
179
+ expiresAt?: Prisma.DateTimeFilter<"OneTimeToken"> | Date | string;
180
+ data?: Prisma.JsonFilter<"OneTimeToken">;
181
+ updatedAt?: Prisma.DateTimeFilter<"OneTimeToken"> | Date | string;
182
+ createdAt?: Prisma.DateTimeFilter<"OneTimeToken"> | Date | string;
183
+ };
184
+ export type OneTimeTokenOrderByWithRelationInput = {
185
+ id?: Prisma.SortOrder;
186
+ tokenHash?: Prisma.SortOrder;
187
+ purpose?: Prisma.SortOrder;
188
+ expiresAt?: Prisma.SortOrder;
189
+ data?: Prisma.SortOrder;
190
+ updatedAt?: Prisma.SortOrder;
191
+ createdAt?: Prisma.SortOrder;
192
+ };
193
+ export type OneTimeTokenWhereUniqueInput = Prisma.AtLeast<{
194
+ id?: number;
195
+ AND?: Prisma.OneTimeTokenWhereInput | Prisma.OneTimeTokenWhereInput[];
196
+ OR?: Prisma.OneTimeTokenWhereInput[];
197
+ NOT?: Prisma.OneTimeTokenWhereInput | Prisma.OneTimeTokenWhereInput[];
198
+ tokenHash?: Prisma.StringFilter<"OneTimeToken"> | string;
199
+ purpose?: Prisma.StringFilter<"OneTimeToken"> | string;
200
+ expiresAt?: Prisma.DateTimeFilter<"OneTimeToken"> | Date | string;
201
+ data?: Prisma.JsonFilter<"OneTimeToken">;
202
+ updatedAt?: Prisma.DateTimeFilter<"OneTimeToken"> | Date | string;
203
+ createdAt?: Prisma.DateTimeFilter<"OneTimeToken"> | Date | string;
204
+ }, "id">;
205
+ export type OneTimeTokenOrderByWithAggregationInput = {
206
+ id?: Prisma.SortOrder;
207
+ tokenHash?: Prisma.SortOrder;
208
+ purpose?: Prisma.SortOrder;
209
+ expiresAt?: Prisma.SortOrder;
210
+ data?: Prisma.SortOrder;
211
+ updatedAt?: Prisma.SortOrder;
212
+ createdAt?: Prisma.SortOrder;
213
+ _count?: Prisma.OneTimeTokenCountOrderByAggregateInput;
214
+ _avg?: Prisma.OneTimeTokenAvgOrderByAggregateInput;
215
+ _max?: Prisma.OneTimeTokenMaxOrderByAggregateInput;
216
+ _min?: Prisma.OneTimeTokenMinOrderByAggregateInput;
217
+ _sum?: Prisma.OneTimeTokenSumOrderByAggregateInput;
218
+ };
219
+ export type OneTimeTokenScalarWhereWithAggregatesInput = {
220
+ AND?: Prisma.OneTimeTokenScalarWhereWithAggregatesInput | Prisma.OneTimeTokenScalarWhereWithAggregatesInput[];
221
+ OR?: Prisma.OneTimeTokenScalarWhereWithAggregatesInput[];
222
+ NOT?: Prisma.OneTimeTokenScalarWhereWithAggregatesInput | Prisma.OneTimeTokenScalarWhereWithAggregatesInput[];
223
+ id?: Prisma.IntWithAggregatesFilter<"OneTimeToken"> | number;
224
+ tokenHash?: Prisma.StringWithAggregatesFilter<"OneTimeToken"> | string;
225
+ purpose?: Prisma.StringWithAggregatesFilter<"OneTimeToken"> | string;
226
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"OneTimeToken"> | Date | string;
227
+ data?: Prisma.JsonWithAggregatesFilter<"OneTimeToken">;
228
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"OneTimeToken"> | Date | string;
229
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"OneTimeToken"> | Date | string;
230
+ };
231
+ export type OneTimeTokenCreateInput = {
232
+ tokenHash: string;
233
+ purpose: string;
234
+ expiresAt: Date | string;
235
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
236
+ updatedAt?: Date | string;
237
+ createdAt?: Date | string;
238
+ };
239
+ export type OneTimeTokenUncheckedCreateInput = {
240
+ id?: number;
241
+ tokenHash: string;
242
+ purpose: string;
243
+ expiresAt: Date | string;
244
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
245
+ updatedAt?: Date | string;
246
+ createdAt?: Date | string;
247
+ };
248
+ export type OneTimeTokenUpdateInput = {
249
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
250
+ purpose?: Prisma.StringFieldUpdateOperationsInput | string;
251
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
252
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
253
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
254
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
255
+ };
256
+ export type OneTimeTokenUncheckedUpdateInput = {
257
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
258
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
259
+ purpose?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
262
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
263
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
264
+ };
265
+ export type OneTimeTokenCreateManyInput = {
266
+ id?: number;
267
+ tokenHash: string;
268
+ purpose: string;
269
+ expiresAt: Date | string;
270
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue;
271
+ updatedAt?: Date | string;
272
+ createdAt?: Date | string;
273
+ };
274
+ export type OneTimeTokenUpdateManyMutationInput = {
275
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
276
+ purpose?: Prisma.StringFieldUpdateOperationsInput | string;
277
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
278
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
279
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
280
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
281
+ };
282
+ export type OneTimeTokenUncheckedUpdateManyInput = {
283
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
284
+ tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
285
+ purpose?: Prisma.StringFieldUpdateOperationsInput | string;
286
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
287
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
288
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
289
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
290
+ };
291
+ export type OneTimeTokenCountOrderByAggregateInput = {
292
+ id?: Prisma.SortOrder;
293
+ tokenHash?: Prisma.SortOrder;
294
+ purpose?: Prisma.SortOrder;
295
+ expiresAt?: Prisma.SortOrder;
296
+ data?: Prisma.SortOrder;
297
+ updatedAt?: Prisma.SortOrder;
298
+ createdAt?: Prisma.SortOrder;
299
+ };
300
+ export type OneTimeTokenAvgOrderByAggregateInput = {
301
+ id?: Prisma.SortOrder;
302
+ };
303
+ export type OneTimeTokenMaxOrderByAggregateInput = {
304
+ id?: Prisma.SortOrder;
305
+ tokenHash?: Prisma.SortOrder;
306
+ purpose?: Prisma.SortOrder;
307
+ expiresAt?: Prisma.SortOrder;
308
+ updatedAt?: Prisma.SortOrder;
309
+ createdAt?: Prisma.SortOrder;
310
+ };
311
+ export type OneTimeTokenMinOrderByAggregateInput = {
312
+ id?: Prisma.SortOrder;
313
+ tokenHash?: Prisma.SortOrder;
314
+ purpose?: Prisma.SortOrder;
315
+ expiresAt?: Prisma.SortOrder;
316
+ updatedAt?: Prisma.SortOrder;
317
+ createdAt?: Prisma.SortOrder;
318
+ };
319
+ export type OneTimeTokenSumOrderByAggregateInput = {
320
+ id?: Prisma.SortOrder;
321
+ };
322
+ export type OneTimeTokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
323
+ id?: boolean;
324
+ tokenHash?: boolean;
325
+ purpose?: boolean;
326
+ expiresAt?: boolean;
327
+ data?: boolean;
328
+ updatedAt?: boolean;
329
+ createdAt?: boolean;
330
+ }, ExtArgs["result"]["oneTimeToken"]>;
331
+ export type OneTimeTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
332
+ id?: boolean;
333
+ tokenHash?: boolean;
334
+ purpose?: boolean;
335
+ expiresAt?: boolean;
336
+ data?: boolean;
337
+ updatedAt?: boolean;
338
+ createdAt?: boolean;
339
+ }, ExtArgs["result"]["oneTimeToken"]>;
340
+ export type OneTimeTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
341
+ id?: boolean;
342
+ tokenHash?: boolean;
343
+ purpose?: boolean;
344
+ expiresAt?: boolean;
345
+ data?: boolean;
346
+ updatedAt?: boolean;
347
+ createdAt?: boolean;
348
+ }, ExtArgs["result"]["oneTimeToken"]>;
349
+ export type OneTimeTokenSelectScalar = {
350
+ id?: boolean;
351
+ tokenHash?: boolean;
352
+ purpose?: boolean;
353
+ expiresAt?: boolean;
354
+ data?: boolean;
355
+ updatedAt?: boolean;
356
+ createdAt?: boolean;
357
+ };
358
+ export type OneTimeTokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tokenHash" | "purpose" | "expiresAt" | "data" | "updatedAt" | "createdAt", ExtArgs["result"]["oneTimeToken"]>;
359
+ export type $OneTimeTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
360
+ name: "OneTimeToken";
361
+ objects: {};
362
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
363
+ id: number;
364
+ tokenHash: string;
365
+ purpose: string;
366
+ expiresAt: Date;
367
+ data: runtime.JsonValue;
368
+ /**
369
+ * Audit columns
370
+ */
371
+ updatedAt: Date;
372
+ createdAt: Date;
373
+ }, ExtArgs["result"]["oneTimeToken"]>;
374
+ composites: {};
375
+ };
376
+ export type OneTimeTokenGetPayload<S extends boolean | null | undefined | OneTimeTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload, S>;
377
+ export type OneTimeTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OneTimeTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
378
+ select?: OneTimeTokenCountAggregateInputType | true;
379
+ };
380
+ export interface OneTimeTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
381
+ [K: symbol]: {
382
+ types: Prisma.TypeMap<ExtArgs>['model']['OneTimeToken'];
383
+ meta: {
384
+ name: 'OneTimeToken';
385
+ };
386
+ };
387
+ /**
388
+ * Find zero or one OneTimeToken that matches the filter.
389
+ * @param {OneTimeTokenFindUniqueArgs} args - Arguments to find a OneTimeToken
390
+ * @example
391
+ * // Get one OneTimeToken
392
+ * const oneTimeToken = await prisma.oneTimeToken.findUnique({
393
+ * where: {
394
+ * // ... provide filter here
395
+ * }
396
+ * })
397
+ */
398
+ findUnique<T extends OneTimeTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, OneTimeTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
399
+ /**
400
+ * Find one OneTimeToken that matches the filter or throw an error with `error.code='P2025'`
401
+ * if no matches were found.
402
+ * @param {OneTimeTokenFindUniqueOrThrowArgs} args - Arguments to find a OneTimeToken
403
+ * @example
404
+ * // Get one OneTimeToken
405
+ * const oneTimeToken = await prisma.oneTimeToken.findUniqueOrThrow({
406
+ * where: {
407
+ * // ... provide filter here
408
+ * }
409
+ * })
410
+ */
411
+ findUniqueOrThrow<T extends OneTimeTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OneTimeTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
412
+ /**
413
+ * Find the first OneTimeToken that matches the filter.
414
+ * Note, that providing `undefined` is treated as the value not being there.
415
+ * Read more here: https://pris.ly/d/null-undefined
416
+ * @param {OneTimeTokenFindFirstArgs} args - Arguments to find a OneTimeToken
417
+ * @example
418
+ * // Get one OneTimeToken
419
+ * const oneTimeToken = await prisma.oneTimeToken.findFirst({
420
+ * where: {
421
+ * // ... provide filter here
422
+ * }
423
+ * })
424
+ */
425
+ findFirst<T extends OneTimeTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, OneTimeTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
426
+ /**
427
+ * Find the first OneTimeToken that matches the filter or
428
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
429
+ * Note, that providing `undefined` is treated as the value not being there.
430
+ * Read more here: https://pris.ly/d/null-undefined
431
+ * @param {OneTimeTokenFindFirstOrThrowArgs} args - Arguments to find a OneTimeToken
432
+ * @example
433
+ * // Get one OneTimeToken
434
+ * const oneTimeToken = await prisma.oneTimeToken.findFirstOrThrow({
435
+ * where: {
436
+ * // ... provide filter here
437
+ * }
438
+ * })
439
+ */
440
+ findFirstOrThrow<T extends OneTimeTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OneTimeTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
441
+ /**
442
+ * Find zero or more OneTimeTokens that matches the filter.
443
+ * Note, that providing `undefined` is treated as the value not being there.
444
+ * Read more here: https://pris.ly/d/null-undefined
445
+ * @param {OneTimeTokenFindManyArgs} args - Arguments to filter and select certain fields only.
446
+ * @example
447
+ * // Get all OneTimeTokens
448
+ * const oneTimeTokens = await prisma.oneTimeToken.findMany()
449
+ *
450
+ * // Get first 10 OneTimeTokens
451
+ * const oneTimeTokens = await prisma.oneTimeToken.findMany({ take: 10 })
452
+ *
453
+ * // Only select the `id`
454
+ * const oneTimeTokenWithIdOnly = await prisma.oneTimeToken.findMany({ select: { id: true } })
455
+ *
456
+ */
457
+ findMany<T extends OneTimeTokenFindManyArgs>(args?: Prisma.SelectSubset<T, OneTimeTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
458
+ /**
459
+ * Create a OneTimeToken.
460
+ * @param {OneTimeTokenCreateArgs} args - Arguments to create a OneTimeToken.
461
+ * @example
462
+ * // Create one OneTimeToken
463
+ * const OneTimeToken = await prisma.oneTimeToken.create({
464
+ * data: {
465
+ * // ... data to create a OneTimeToken
466
+ * }
467
+ * })
468
+ *
469
+ */
470
+ create<T extends OneTimeTokenCreateArgs>(args: Prisma.SelectSubset<T, OneTimeTokenCreateArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
471
+ /**
472
+ * Create many OneTimeTokens.
473
+ * @param {OneTimeTokenCreateManyArgs} args - Arguments to create many OneTimeTokens.
474
+ * @example
475
+ * // Create many OneTimeTokens
476
+ * const oneTimeToken = await prisma.oneTimeToken.createMany({
477
+ * data: [
478
+ * // ... provide data here
479
+ * ]
480
+ * })
481
+ *
482
+ */
483
+ createMany<T extends OneTimeTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, OneTimeTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
484
+ /**
485
+ * Create many OneTimeTokens and returns the data saved in the database.
486
+ * @param {OneTimeTokenCreateManyAndReturnArgs} args - Arguments to create many OneTimeTokens.
487
+ * @example
488
+ * // Create many OneTimeTokens
489
+ * const oneTimeToken = await prisma.oneTimeToken.createManyAndReturn({
490
+ * data: [
491
+ * // ... provide data here
492
+ * ]
493
+ * })
494
+ *
495
+ * // Create many OneTimeTokens and only return the `id`
496
+ * const oneTimeTokenWithIdOnly = await prisma.oneTimeToken.createManyAndReturn({
497
+ * select: { id: true },
498
+ * data: [
499
+ * // ... provide data here
500
+ * ]
501
+ * })
502
+ * Note, that providing `undefined` is treated as the value not being there.
503
+ * Read more here: https://pris.ly/d/null-undefined
504
+ *
505
+ */
506
+ createManyAndReturn<T extends OneTimeTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OneTimeTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
507
+ /**
508
+ * Delete a OneTimeToken.
509
+ * @param {OneTimeTokenDeleteArgs} args - Arguments to delete one OneTimeToken.
510
+ * @example
511
+ * // Delete one OneTimeToken
512
+ * const OneTimeToken = await prisma.oneTimeToken.delete({
513
+ * where: {
514
+ * // ... filter to delete one OneTimeToken
515
+ * }
516
+ * })
517
+ *
518
+ */
519
+ delete<T extends OneTimeTokenDeleteArgs>(args: Prisma.SelectSubset<T, OneTimeTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
520
+ /**
521
+ * Update one OneTimeToken.
522
+ * @param {OneTimeTokenUpdateArgs} args - Arguments to update one OneTimeToken.
523
+ * @example
524
+ * // Update one OneTimeToken
525
+ * const oneTimeToken = await prisma.oneTimeToken.update({
526
+ * where: {
527
+ * // ... provide filter here
528
+ * },
529
+ * data: {
530
+ * // ... provide data here
531
+ * }
532
+ * })
533
+ *
534
+ */
535
+ update<T extends OneTimeTokenUpdateArgs>(args: Prisma.SelectSubset<T, OneTimeTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
536
+ /**
537
+ * Delete zero or more OneTimeTokens.
538
+ * @param {OneTimeTokenDeleteManyArgs} args - Arguments to filter OneTimeTokens to delete.
539
+ * @example
540
+ * // Delete a few OneTimeTokens
541
+ * const { count } = await prisma.oneTimeToken.deleteMany({
542
+ * where: {
543
+ * // ... provide filter here
544
+ * }
545
+ * })
546
+ *
547
+ */
548
+ deleteMany<T extends OneTimeTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, OneTimeTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
549
+ /**
550
+ * Update zero or more OneTimeTokens.
551
+ * Note, that providing `undefined` is treated as the value not being there.
552
+ * Read more here: https://pris.ly/d/null-undefined
553
+ * @param {OneTimeTokenUpdateManyArgs} args - Arguments to update one or more rows.
554
+ * @example
555
+ * // Update many OneTimeTokens
556
+ * const oneTimeToken = await prisma.oneTimeToken.updateMany({
557
+ * where: {
558
+ * // ... provide filter here
559
+ * },
560
+ * data: {
561
+ * // ... provide data here
562
+ * }
563
+ * })
564
+ *
565
+ */
566
+ updateMany<T extends OneTimeTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, OneTimeTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
567
+ /**
568
+ * Update zero or more OneTimeTokens and returns the data updated in the database.
569
+ * @param {OneTimeTokenUpdateManyAndReturnArgs} args - Arguments to update many OneTimeTokens.
570
+ * @example
571
+ * // Update many OneTimeTokens
572
+ * const oneTimeToken = await prisma.oneTimeToken.updateManyAndReturn({
573
+ * where: {
574
+ * // ... provide filter here
575
+ * },
576
+ * data: [
577
+ * // ... provide data here
578
+ * ]
579
+ * })
580
+ *
581
+ * // Update zero or more OneTimeTokens and only return the `id`
582
+ * const oneTimeTokenWithIdOnly = await prisma.oneTimeToken.updateManyAndReturn({
583
+ * select: { id: true },
584
+ * where: {
585
+ * // ... provide filter here
586
+ * },
587
+ * data: [
588
+ * // ... provide data here
589
+ * ]
590
+ * })
591
+ * Note, that providing `undefined` is treated as the value not being there.
592
+ * Read more here: https://pris.ly/d/null-undefined
593
+ *
594
+ */
595
+ updateManyAndReturn<T extends OneTimeTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OneTimeTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
596
+ /**
597
+ * Create or update one OneTimeToken.
598
+ * @param {OneTimeTokenUpsertArgs} args - Arguments to update or create a OneTimeToken.
599
+ * @example
600
+ * // Update or create a OneTimeToken
601
+ * const oneTimeToken = await prisma.oneTimeToken.upsert({
602
+ * create: {
603
+ * // ... data to create a OneTimeToken
604
+ * },
605
+ * update: {
606
+ * // ... in case it already exists, update
607
+ * },
608
+ * where: {
609
+ * // ... the filter for the OneTimeToken we want to update
610
+ * }
611
+ * })
612
+ */
613
+ upsert<T extends OneTimeTokenUpsertArgs>(args: Prisma.SelectSubset<T, OneTimeTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__OneTimeTokenClient<runtime.Types.Result.GetResult<Prisma.$OneTimeTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
614
+ /**
615
+ * Count the number of OneTimeTokens.
616
+ * Note, that providing `undefined` is treated as the value not being there.
617
+ * Read more here: https://pris.ly/d/null-undefined
618
+ * @param {OneTimeTokenCountArgs} args - Arguments to filter OneTimeTokens to count.
619
+ * @example
620
+ * // Count the number of OneTimeTokens
621
+ * const count = await prisma.oneTimeToken.count({
622
+ * where: {
623
+ * // ... the filter for the OneTimeTokens we want to count
624
+ * }
625
+ * })
626
+ **/
627
+ count<T extends OneTimeTokenCountArgs>(args?: Prisma.Subset<T, OneTimeTokenCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OneTimeTokenCountAggregateOutputType> : number>;
628
+ /**
629
+ * Allows you to perform aggregations operations on a OneTimeToken.
630
+ * Note, that providing `undefined` is treated as the value not being there.
631
+ * Read more here: https://pris.ly/d/null-undefined
632
+ * @param {OneTimeTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
633
+ * @example
634
+ * // Ordered by age ascending
635
+ * // Where email contains prisma.io
636
+ * // Limited to the 10 users
637
+ * const aggregations = await prisma.user.aggregate({
638
+ * _avg: {
639
+ * age: true,
640
+ * },
641
+ * where: {
642
+ * email: {
643
+ * contains: "prisma.io",
644
+ * },
645
+ * },
646
+ * orderBy: {
647
+ * age: "asc",
648
+ * },
649
+ * take: 10,
650
+ * })
651
+ **/
652
+ aggregate<T extends OneTimeTokenAggregateArgs>(args: Prisma.Subset<T, OneTimeTokenAggregateArgs>): Prisma.PrismaPromise<GetOneTimeTokenAggregateType<T>>;
653
+ /**
654
+ * Group by OneTimeToken.
655
+ * Note, that providing `undefined` is treated as the value not being there.
656
+ * Read more here: https://pris.ly/d/null-undefined
657
+ * @param {OneTimeTokenGroupByArgs} args - Group by arguments.
658
+ * @example
659
+ * // Group by city, order by createdAt, get count
660
+ * const result = await prisma.user.groupBy({
661
+ * by: ['city', 'createdAt'],
662
+ * orderBy: {
663
+ * createdAt: true
664
+ * },
665
+ * _count: {
666
+ * _all: true
667
+ * },
668
+ * })
669
+ *
670
+ **/
671
+ groupBy<T extends OneTimeTokenGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
672
+ orderBy: OneTimeTokenGroupByArgs['orderBy'];
673
+ } : {
674
+ orderBy?: OneTimeTokenGroupByArgs['orderBy'];
675
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
676
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
677
+ Error,
678
+ 'Field ',
679
+ P,
680
+ ` in "having" needs to be provided in "by"`
681
+ ];
682
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
683
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
684
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
685
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
686
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
687
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
688
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OneTimeTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOneTimeTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
689
+ /**
690
+ * Fields of the OneTimeToken model
691
+ */
692
+ readonly fields: OneTimeTokenFieldRefs;
693
+ }
694
+ /**
695
+ * The delegate class that acts as a "Promise-like" for OneTimeToken.
696
+ * Why is this prefixed with `Prisma__`?
697
+ * Because we want to prevent naming conflicts as mentioned in
698
+ * https://github.com/prisma/prisma-client-js/issues/707
699
+ */
700
+ export interface Prisma__OneTimeTokenClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
701
+ readonly [Symbol.toStringTag]: "PrismaPromise";
702
+ /**
703
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
704
+ * @param onfulfilled The callback to execute when the Promise is resolved.
705
+ * @param onrejected The callback to execute when the Promise is rejected.
706
+ * @returns A Promise for the completion of which ever callback is executed.
707
+ */
708
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
709
+ /**
710
+ * Attaches a callback for only the rejection of the Promise.
711
+ * @param onrejected The callback to execute when the Promise is rejected.
712
+ * @returns A Promise for the completion of the callback.
713
+ */
714
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
715
+ /**
716
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
717
+ * resolved value cannot be modified from the callback.
718
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
719
+ * @returns A Promise for the completion of the callback.
720
+ */
721
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
722
+ }
723
+ /**
724
+ * Fields of the OneTimeToken model
725
+ */
726
+ export interface OneTimeTokenFieldRefs {
727
+ readonly id: Prisma.FieldRef<"OneTimeToken", 'Int'>;
728
+ readonly tokenHash: Prisma.FieldRef<"OneTimeToken", 'String'>;
729
+ readonly purpose: Prisma.FieldRef<"OneTimeToken", 'String'>;
730
+ readonly expiresAt: Prisma.FieldRef<"OneTimeToken", 'DateTime'>;
731
+ readonly data: Prisma.FieldRef<"OneTimeToken", 'Json'>;
732
+ readonly updatedAt: Prisma.FieldRef<"OneTimeToken", 'DateTime'>;
733
+ readonly createdAt: Prisma.FieldRef<"OneTimeToken", 'DateTime'>;
734
+ }
735
+ /**
736
+ * OneTimeToken findUnique
737
+ */
738
+ export type OneTimeTokenFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
739
+ /**
740
+ * Select specific fields to fetch from the OneTimeToken
741
+ */
742
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
743
+ /**
744
+ * Omit specific fields from the OneTimeToken
745
+ */
746
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
747
+ /**
748
+ * Filter, which OneTimeToken to fetch.
749
+ */
750
+ where: Prisma.OneTimeTokenWhereUniqueInput;
751
+ };
752
+ /**
753
+ * OneTimeToken findUniqueOrThrow
754
+ */
755
+ export type OneTimeTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
756
+ /**
757
+ * Select specific fields to fetch from the OneTimeToken
758
+ */
759
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
760
+ /**
761
+ * Omit specific fields from the OneTimeToken
762
+ */
763
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
764
+ /**
765
+ * Filter, which OneTimeToken to fetch.
766
+ */
767
+ where: Prisma.OneTimeTokenWhereUniqueInput;
768
+ };
769
+ /**
770
+ * OneTimeToken findFirst
771
+ */
772
+ export type OneTimeTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
773
+ /**
774
+ * Select specific fields to fetch from the OneTimeToken
775
+ */
776
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
777
+ /**
778
+ * Omit specific fields from the OneTimeToken
779
+ */
780
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
781
+ /**
782
+ * Filter, which OneTimeToken to fetch.
783
+ */
784
+ where?: Prisma.OneTimeTokenWhereInput;
785
+ /**
786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
787
+ *
788
+ * Determine the order of OneTimeTokens to fetch.
789
+ */
790
+ orderBy?: Prisma.OneTimeTokenOrderByWithRelationInput | Prisma.OneTimeTokenOrderByWithRelationInput[];
791
+ /**
792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
793
+ *
794
+ * Sets the position for searching for OneTimeTokens.
795
+ */
796
+ cursor?: Prisma.OneTimeTokenWhereUniqueInput;
797
+ /**
798
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
799
+ *
800
+ * Take `±n` OneTimeTokens from the position of the cursor.
801
+ */
802
+ take?: number;
803
+ /**
804
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
805
+ *
806
+ * Skip the first `n` OneTimeTokens.
807
+ */
808
+ skip?: number;
809
+ /**
810
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
811
+ *
812
+ * Filter by unique combinations of OneTimeTokens.
813
+ */
814
+ distinct?: Prisma.OneTimeTokenScalarFieldEnum | Prisma.OneTimeTokenScalarFieldEnum[];
815
+ };
816
+ /**
817
+ * OneTimeToken findFirstOrThrow
818
+ */
819
+ export type OneTimeTokenFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
820
+ /**
821
+ * Select specific fields to fetch from the OneTimeToken
822
+ */
823
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
824
+ /**
825
+ * Omit specific fields from the OneTimeToken
826
+ */
827
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
828
+ /**
829
+ * Filter, which OneTimeToken to fetch.
830
+ */
831
+ where?: Prisma.OneTimeTokenWhereInput;
832
+ /**
833
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
834
+ *
835
+ * Determine the order of OneTimeTokens to fetch.
836
+ */
837
+ orderBy?: Prisma.OneTimeTokenOrderByWithRelationInput | Prisma.OneTimeTokenOrderByWithRelationInput[];
838
+ /**
839
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
840
+ *
841
+ * Sets the position for searching for OneTimeTokens.
842
+ */
843
+ cursor?: Prisma.OneTimeTokenWhereUniqueInput;
844
+ /**
845
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
846
+ *
847
+ * Take `±n` OneTimeTokens from the position of the cursor.
848
+ */
849
+ take?: number;
850
+ /**
851
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
852
+ *
853
+ * Skip the first `n` OneTimeTokens.
854
+ */
855
+ skip?: number;
856
+ /**
857
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
858
+ *
859
+ * Filter by unique combinations of OneTimeTokens.
860
+ */
861
+ distinct?: Prisma.OneTimeTokenScalarFieldEnum | Prisma.OneTimeTokenScalarFieldEnum[];
862
+ };
863
+ /**
864
+ * OneTimeToken findMany
865
+ */
866
+ export type OneTimeTokenFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
867
+ /**
868
+ * Select specific fields to fetch from the OneTimeToken
869
+ */
870
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
871
+ /**
872
+ * Omit specific fields from the OneTimeToken
873
+ */
874
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
875
+ /**
876
+ * Filter, which OneTimeTokens to fetch.
877
+ */
878
+ where?: Prisma.OneTimeTokenWhereInput;
879
+ /**
880
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
881
+ *
882
+ * Determine the order of OneTimeTokens to fetch.
883
+ */
884
+ orderBy?: Prisma.OneTimeTokenOrderByWithRelationInput | Prisma.OneTimeTokenOrderByWithRelationInput[];
885
+ /**
886
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
887
+ *
888
+ * Sets the position for listing OneTimeTokens.
889
+ */
890
+ cursor?: Prisma.OneTimeTokenWhereUniqueInput;
891
+ /**
892
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
893
+ *
894
+ * Take `±n` OneTimeTokens from the position of the cursor.
895
+ */
896
+ take?: number;
897
+ /**
898
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
899
+ *
900
+ * Skip the first `n` OneTimeTokens.
901
+ */
902
+ skip?: number;
903
+ /**
904
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
905
+ *
906
+ * Filter by unique combinations of OneTimeTokens.
907
+ */
908
+ distinct?: Prisma.OneTimeTokenScalarFieldEnum | Prisma.OneTimeTokenScalarFieldEnum[];
909
+ };
910
+ /**
911
+ * OneTimeToken create
912
+ */
913
+ export type OneTimeTokenCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
914
+ /**
915
+ * Select specific fields to fetch from the OneTimeToken
916
+ */
917
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
918
+ /**
919
+ * Omit specific fields from the OneTimeToken
920
+ */
921
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
922
+ /**
923
+ * The data needed to create a OneTimeToken.
924
+ */
925
+ data: Prisma.XOR<Prisma.OneTimeTokenCreateInput, Prisma.OneTimeTokenUncheckedCreateInput>;
926
+ };
927
+ /**
928
+ * OneTimeToken createMany
929
+ */
930
+ export type OneTimeTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
931
+ /**
932
+ * The data used to create many OneTimeTokens.
933
+ */
934
+ data: Prisma.OneTimeTokenCreateManyInput | Prisma.OneTimeTokenCreateManyInput[];
935
+ };
936
+ /**
937
+ * OneTimeToken createManyAndReturn
938
+ */
939
+ export type OneTimeTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
940
+ /**
941
+ * Select specific fields to fetch from the OneTimeToken
942
+ */
943
+ select?: Prisma.OneTimeTokenSelectCreateManyAndReturn<ExtArgs> | null;
944
+ /**
945
+ * Omit specific fields from the OneTimeToken
946
+ */
947
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
948
+ /**
949
+ * The data used to create many OneTimeTokens.
950
+ */
951
+ data: Prisma.OneTimeTokenCreateManyInput | Prisma.OneTimeTokenCreateManyInput[];
952
+ };
953
+ /**
954
+ * OneTimeToken update
955
+ */
956
+ export type OneTimeTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
957
+ /**
958
+ * Select specific fields to fetch from the OneTimeToken
959
+ */
960
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
961
+ /**
962
+ * Omit specific fields from the OneTimeToken
963
+ */
964
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
965
+ /**
966
+ * The data needed to update a OneTimeToken.
967
+ */
968
+ data: Prisma.XOR<Prisma.OneTimeTokenUpdateInput, Prisma.OneTimeTokenUncheckedUpdateInput>;
969
+ /**
970
+ * Choose, which OneTimeToken to update.
971
+ */
972
+ where: Prisma.OneTimeTokenWhereUniqueInput;
973
+ };
974
+ /**
975
+ * OneTimeToken updateMany
976
+ */
977
+ export type OneTimeTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
978
+ /**
979
+ * The data used to update OneTimeTokens.
980
+ */
981
+ data: Prisma.XOR<Prisma.OneTimeTokenUpdateManyMutationInput, Prisma.OneTimeTokenUncheckedUpdateManyInput>;
982
+ /**
983
+ * Filter which OneTimeTokens to update
984
+ */
985
+ where?: Prisma.OneTimeTokenWhereInput;
986
+ /**
987
+ * Limit how many OneTimeTokens to update.
988
+ */
989
+ limit?: number;
990
+ };
991
+ /**
992
+ * OneTimeToken updateManyAndReturn
993
+ */
994
+ export type OneTimeTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
995
+ /**
996
+ * Select specific fields to fetch from the OneTimeToken
997
+ */
998
+ select?: Prisma.OneTimeTokenSelectUpdateManyAndReturn<ExtArgs> | null;
999
+ /**
1000
+ * Omit specific fields from the OneTimeToken
1001
+ */
1002
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
1003
+ /**
1004
+ * The data used to update OneTimeTokens.
1005
+ */
1006
+ data: Prisma.XOR<Prisma.OneTimeTokenUpdateManyMutationInput, Prisma.OneTimeTokenUncheckedUpdateManyInput>;
1007
+ /**
1008
+ * Filter which OneTimeTokens to update
1009
+ */
1010
+ where?: Prisma.OneTimeTokenWhereInput;
1011
+ /**
1012
+ * Limit how many OneTimeTokens to update.
1013
+ */
1014
+ limit?: number;
1015
+ };
1016
+ /**
1017
+ * OneTimeToken upsert
1018
+ */
1019
+ export type OneTimeTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1020
+ /**
1021
+ * Select specific fields to fetch from the OneTimeToken
1022
+ */
1023
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
1024
+ /**
1025
+ * Omit specific fields from the OneTimeToken
1026
+ */
1027
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
1028
+ /**
1029
+ * The filter to search for the OneTimeToken to update in case it exists.
1030
+ */
1031
+ where: Prisma.OneTimeTokenWhereUniqueInput;
1032
+ /**
1033
+ * In case the OneTimeToken found by the `where` argument doesn't exist, create a new OneTimeToken with this data.
1034
+ */
1035
+ create: Prisma.XOR<Prisma.OneTimeTokenCreateInput, Prisma.OneTimeTokenUncheckedCreateInput>;
1036
+ /**
1037
+ * In case the OneTimeToken was found with the provided `where` argument, update it with this data.
1038
+ */
1039
+ update: Prisma.XOR<Prisma.OneTimeTokenUpdateInput, Prisma.OneTimeTokenUncheckedUpdateInput>;
1040
+ };
1041
+ /**
1042
+ * OneTimeToken delete
1043
+ */
1044
+ export type OneTimeTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1045
+ /**
1046
+ * Select specific fields to fetch from the OneTimeToken
1047
+ */
1048
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
1049
+ /**
1050
+ * Omit specific fields from the OneTimeToken
1051
+ */
1052
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
1053
+ /**
1054
+ * Filter which OneTimeToken to delete.
1055
+ */
1056
+ where: Prisma.OneTimeTokenWhereUniqueInput;
1057
+ };
1058
+ /**
1059
+ * OneTimeToken deleteMany
1060
+ */
1061
+ export type OneTimeTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1062
+ /**
1063
+ * Filter which OneTimeTokens to delete
1064
+ */
1065
+ where?: Prisma.OneTimeTokenWhereInput;
1066
+ /**
1067
+ * Limit how many OneTimeTokens to delete.
1068
+ */
1069
+ limit?: number;
1070
+ };
1071
+ /**
1072
+ * OneTimeToken without action
1073
+ */
1074
+ export type OneTimeTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1075
+ /**
1076
+ * Select specific fields to fetch from the OneTimeToken
1077
+ */
1078
+ select?: Prisma.OneTimeTokenSelect<ExtArgs> | null;
1079
+ /**
1080
+ * Omit specific fields from the OneTimeToken
1081
+ */
1082
+ omit?: Prisma.OneTimeTokenOmit<ExtArgs> | null;
1083
+ };