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