@highstate/backend 0.9.16 → 0.9.19

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 (302) hide show
  1. package/dist/chunk-5WVU2AK4.js +1535 -0
  2. package/dist/chunk-5WVU2AK4.js.map +1 -0
  3. package/dist/chunk-I7BWSAN6.js +49 -0
  4. package/dist/chunk-I7BWSAN6.js.map +1 -0
  5. package/dist/{chunk-RCB4AFGD.js → chunk-VB4YL327.js} +51 -71
  6. package/dist/chunk-VB4YL327.js.map +1 -0
  7. package/dist/database/local/prisma.config.js +26 -0
  8. package/dist/database/local/prisma.config.js.map +1 -0
  9. package/dist/highstate.manifest.json +5 -4
  10. package/dist/index.js +7676 -6634
  11. package/dist/index.js.map +1 -1
  12. package/dist/library/package-resolution-worker.js +8 -6
  13. package/dist/library/package-resolution-worker.js.map +1 -1
  14. package/dist/library/worker/main.js +63 -58
  15. package/dist/library/worker/main.js.map +1 -1
  16. package/dist/shared/index.js +3 -216
  17. package/dist/shared/index.js.map +1 -1
  18. package/package.json +23 -11
  19. package/prisma/backend/_schema/layout.prisma +7 -0
  20. package/prisma/backend/_schema/library.prisma +17 -0
  21. package/prisma/backend/_schema/project.prisma +101 -0
  22. package/prisma/backend/_schema/pulumi.prisma +17 -0
  23. package/prisma/backend/postgresql/main.prisma +17 -0
  24. package/prisma/backend/sqlite/main.prisma +17 -0
  25. package/prisma/backend/sqlite/migrations/20250817070609_initiial/migration.sql +34 -0
  26. package/prisma/backend/sqlite/migrations/20250817104948_add_fields/migration.sql +59 -0
  27. package/prisma/backend/sqlite/migrations/20250818082732_add_models/migration.sql +41 -0
  28. package/prisma/backend/sqlite/migrations/20250818083106_a/migration.sql +19 -0
  29. package/prisma/backend/sqlite/migrations/20250818101945_hi/migration.sql +1 -0
  30. package/prisma/backend/sqlite/migrations/20250819082315_a/migration.sql +5 -0
  31. package/prisma/backend/sqlite/migrations/migration_lock.toml +3 -0
  32. package/prisma/project/api-key.prisma +27 -0
  33. package/prisma/project/artifact.prisma +52 -0
  34. package/prisma/project/custom-status.prisma +46 -0
  35. package/prisma/project/evaluation.prisma +35 -0
  36. package/prisma/project/instance.prisma +160 -0
  37. package/prisma/project/layout.prisma +23 -0
  38. package/prisma/project/lock.prisma +18 -0
  39. package/prisma/project/main.prisma +17 -0
  40. package/prisma/project/migrations/20250816081310_initial/migration.sql +300 -0
  41. package/prisma/project/migrations/20250816082523_test/migration.sql +72 -0
  42. package/prisma/project/migrations/20250818065643_update/migration.sql +42 -0
  43. package/prisma/project/migrations/20250818070758_a/migration.sql +8 -0
  44. package/prisma/project/migrations/20250818070913_a/migration.sql +8 -0
  45. package/prisma/project/migrations/20250818082720_add_motels/migration.sql +11 -0
  46. package/prisma/project/migrations/20250818112523_hello/migration.sql +35 -0
  47. package/prisma/project/migrations/20250819082305_a/migration.sql +14 -0
  48. package/prisma/project/migrations/20250819165004_add_missing_fields/migration.sql +216 -0
  49. package/prisma/project/migrations/20250819171309_a/migration.sql +22 -0
  50. package/prisma/project/migrations/20250820113949_a/migration.sql +66 -0
  51. package/prisma/project/migrations/20250820144256_b/migration.sql +31 -0
  52. package/prisma/project/migrations/20250820145547_a/migration.sql +24 -0
  53. package/prisma/project/migrations/20250820182517_b/migration.sql +2 -0
  54. package/prisma/project/migrations/20250821172324_a/migration.sql +2 -0
  55. package/prisma/project/migrations/20250822081339_a/migration.sql +219 -0
  56. package/prisma/project/migrations/20250822083742_b/migration.sql +1 -0
  57. package/prisma/project/migrations/20250822105134_boom/migration.sql +1 -0
  58. package/prisma/project/migrations/20250822141028_b/migration.sql +1 -0
  59. package/prisma/project/migrations/20250822142342_b/migration.sql +16 -0
  60. package/prisma/project/migrations/20250824072720_a/migration.sql +1 -0
  61. package/prisma/project/migrations/20250824093656_b/migration.sql +21 -0
  62. package/prisma/project/migrations/20250825082518_a/migration.sql +1 -0
  63. package/prisma/project/migrations/20250825085343_b/migration.sql +1 -0
  64. package/prisma/project/migrations/20250825091312_a/migration.sql +1 -0
  65. package/prisma/project/migrations/20250903095431_hi/migration.sql +44 -0
  66. package/prisma/project/migrations/20250903174255_a/migration.sql +24 -0
  67. package/prisma/project/migrations/20250908095205_hi/migration.sql +18 -0
  68. package/prisma/project/migrations/20250909155857_hi/migration.sql +15 -0
  69. package/prisma/project/migrations/migration_lock.toml +3 -0
  70. package/prisma/project/model.prisma +37 -0
  71. package/prisma/project/operation.prisma +148 -0
  72. package/prisma/project/page.prisma +41 -0
  73. package/prisma/project/secret.prisma +42 -0
  74. package/prisma/project/service-account.prisma +36 -0
  75. package/prisma/project/terminal.prisma +90 -0
  76. package/prisma/project/trigger.prisma +31 -0
  77. package/prisma/project/unlock-method.prisma +32 -0
  78. package/prisma/project/worker.prisma +138 -0
  79. package/src/artifact/abstractions.ts +13 -13
  80. package/src/artifact/encryption.ts +31 -15
  81. package/src/artifact/factory.ts +7 -10
  82. package/src/artifact/local.ts +33 -50
  83. package/src/business/api-key.ts +24 -36
  84. package/src/business/artifact.test.ts +978 -0
  85. package/src/business/artifact.ts +136 -215
  86. package/src/business/evaluation.ts +328 -0
  87. package/src/business/index.ts +5 -1
  88. package/src/business/instance-lock.test.ts +1060 -0
  89. package/src/business/instance-lock.ts +387 -77
  90. package/src/business/instance-state.test.ts +735 -0
  91. package/src/business/instance-state.ts +604 -217
  92. package/src/business/operation.test.ts +439 -0
  93. package/src/business/operation.ts +174 -208
  94. package/src/business/project-model.ts +258 -0
  95. package/src/business/project-unlock.ts +172 -112
  96. package/src/business/project.ts +407 -0
  97. package/src/business/secret.test.ts +513 -0
  98. package/src/business/secret.ts +194 -131
  99. package/src/business/settings.test.ts +695 -0
  100. package/src/business/settings.ts +855 -0
  101. package/src/business/terminal-session.ts +90 -0
  102. package/src/business/unit-extra.test.ts +539 -0
  103. package/src/business/unit-extra.ts +160 -0
  104. package/src/business/worker.test.ts +391 -0
  105. package/src/business/worker.ts +250 -114
  106. package/src/common/codebase.ts +65 -0
  107. package/src/common/index.ts +3 -2
  108. package/src/common/logger.ts +5 -0
  109. package/src/common/utils.ts +4 -3
  110. package/src/config.ts +15 -12
  111. package/src/database/_generated/backend/postgresql/client.ts +72 -0
  112. package/src/database/_generated/backend/postgresql/commonInputTypes.ts +350 -0
  113. package/src/database/_generated/backend/postgresql/enums.ts +13 -0
  114. package/src/database/_generated/backend/postgresql/internal/class.ts +320 -0
  115. package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +1238 -0
  116. package/src/database/_generated/backend/postgresql/models/Library.ts +1263 -0
  117. package/src/database/_generated/backend/postgresql/models/Project.ts +2175 -0
  118. package/src/database/_generated/backend/postgresql/models/ProjectModelStorage.ts +1263 -0
  119. package/src/database/_generated/backend/postgresql/models/ProjectSpace.ts +1602 -0
  120. package/src/database/_generated/backend/postgresql/models/PulumiBackend.ts +1263 -0
  121. package/src/database/_generated/backend/postgresql/models/UserWorkspaseLayout.ts +1065 -0
  122. package/src/database/_generated/backend/postgresql/models.ts +16 -0
  123. package/src/database/_generated/backend/postgresql/pjtg.ts +182 -0
  124. package/src/database/_generated/backend/sqlite/client.ts +72 -0
  125. package/src/database/_generated/backend/sqlite/commonInputTypes.ts +331 -0
  126. package/src/database/_generated/backend/sqlite/enums.ts +13 -0
  127. package/src/database/_generated/backend/sqlite/internal/class.ts +318 -0
  128. package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +1207 -0
  129. package/src/database/_generated/backend/sqlite/models/Library.ts +1261 -0
  130. package/src/database/_generated/backend/sqlite/models/Project.ts +2169 -0
  131. package/src/database/_generated/backend/sqlite/models/ProjectModelStorage.ts +1261 -0
  132. package/src/database/_generated/backend/sqlite/models/ProjectSpace.ts +1599 -0
  133. package/src/database/_generated/backend/sqlite/models/PulumiBackend.ts +1261 -0
  134. package/src/database/_generated/backend/sqlite/models/UserWorkspaseLayout.ts +1063 -0
  135. package/src/database/_generated/backend/sqlite/models.ts +16 -0
  136. package/src/database/_generated/backend/sqlite/pjtg.ts +182 -0
  137. package/src/database/_generated/project/client.ts +204 -0
  138. package/src/database/_generated/project/commonInputTypes.ts +827 -0
  139. package/src/database/_generated/project/enums.ts +104 -0
  140. package/src/database/_generated/project/internal/class.ts +479 -0
  141. package/src/database/_generated/project/internal/prismaNamespace.ts +2974 -0
  142. package/src/database/_generated/project/models/ApiKey.ts +1506 -0
  143. package/src/database/_generated/project/models/Artifact.ts +2051 -0
  144. package/src/database/_generated/project/models/HubModel.ts +1125 -0
  145. package/src/database/_generated/project/models/InstanceCustomStatus.ts +1713 -0
  146. package/src/database/_generated/project/models/InstanceEvaluationState.ts +1312 -0
  147. package/src/database/_generated/project/models/InstanceLock.ts +1268 -0
  148. package/src/database/_generated/project/models/InstanceModel.ts +1125 -0
  149. package/src/database/_generated/project/models/InstanceOperationState.ts +1707 -0
  150. package/src/database/_generated/project/models/InstanceState.ts +4613 -0
  151. package/src/database/_generated/project/models/Operation.ts +1647 -0
  152. package/src/database/_generated/project/models/OperationLog.ts +1455 -0
  153. package/src/database/_generated/project/models/Page.ts +1838 -0
  154. package/src/database/_generated/project/models/Secret.ts +1692 -0
  155. package/src/database/_generated/project/models/ServiceAccount.ts +2165 -0
  156. package/src/database/_generated/project/models/Terminal.ts +2038 -0
  157. package/src/database/_generated/project/models/TerminalSession.ts +1454 -0
  158. package/src/database/_generated/project/models/TerminalSessionLog.ts +1280 -0
  159. package/src/database/_generated/project/models/Trigger.ts +1430 -0
  160. package/src/database/_generated/project/models/UnlockMethod.ts +1220 -0
  161. package/src/database/_generated/project/models/UserCompositeViewport.ts +1280 -0
  162. package/src/database/_generated/project/models/UserProjectViewport.ts +1059 -0
  163. package/src/database/_generated/project/models/Worker.ts +1459 -0
  164. package/src/database/_generated/project/models/WorkerUnitRegistration.ts +1524 -0
  165. package/src/database/_generated/project/models/WorkerVersion.ts +1974 -0
  166. package/src/database/_generated/project/models/WorkerVersionLog.ts +1318 -0
  167. package/src/database/_generated/project/models.ts +35 -0
  168. package/src/database/_generated/project/pjtg.ts +182 -0
  169. package/src/database/abstractions.ts +19 -0
  170. package/src/database/factory.ts +37 -0
  171. package/src/database/index.ts +6 -0
  172. package/src/database/local/backend.ts +134 -0
  173. package/src/database/local/index.ts +3 -0
  174. package/src/database/local/meta.ts +46 -0
  175. package/src/database/local/prisma.config.ts +25 -0
  176. package/src/database/local/project.ts +39 -0
  177. package/src/database/manager.ts +181 -0
  178. package/src/database/migrate.ts +35 -0
  179. package/src/database/prisma.ts +56 -0
  180. package/src/database/well-known.ts +38 -0
  181. package/src/index.ts +4 -4
  182. package/src/library/abstractions.ts +21 -14
  183. package/src/library/factory.ts +1 -1
  184. package/src/library/local.ts +86 -38
  185. package/src/library/package-resolution-worker.ts +1 -1
  186. package/src/library/worker/evaluator.ts +61 -48
  187. package/src/library/worker/loader.lite.ts +14 -1
  188. package/src/library/worker/main.ts +9 -16
  189. package/src/library/worker/protocol.ts +0 -12
  190. package/src/lock/manager.ts +12 -7
  191. package/src/orchestrator/manager.ts +198 -131
  192. package/src/orchestrator/operation-context.ts +357 -0
  193. package/src/orchestrator/operation-plan.destroy.test.md +357 -0
  194. package/src/orchestrator/operation-plan.destroy.test.ts +775 -0
  195. package/src/orchestrator/operation-plan.fixtures.ts +213 -0
  196. package/src/orchestrator/operation-plan.md +198 -0
  197. package/src/orchestrator/operation-plan.refresh.test.md +199 -0
  198. package/src/orchestrator/operation-plan.refresh.test.ts +367 -0
  199. package/src/orchestrator/operation-plan.ts +709 -0
  200. package/src/orchestrator/operation-plan.update.test.md +485 -0
  201. package/src/orchestrator/operation-plan.update.test.ts +1066 -0
  202. package/src/orchestrator/operation-workset.ts +235 -583
  203. package/src/orchestrator/operation.ts +446 -904
  204. package/src/orchestrator/plan-test-builder.ts +267 -0
  205. package/src/project-model/abstractions.ts +118 -0
  206. package/src/project-model/backends/codebase.ts +365 -0
  207. package/src/project-model/backends/database.ts +440 -0
  208. package/src/project-model/errors.ts +81 -0
  209. package/src/project-model/factory.ts +24 -0
  210. package/src/project-model/index.ts +4 -0
  211. package/src/project-model/utils.test.ts +544 -0
  212. package/src/project-model/utils.ts +242 -0
  213. package/src/pubsub/abstractions.ts +10 -1
  214. package/src/pubsub/factory.ts +4 -4
  215. package/src/pubsub/index.ts +1 -0
  216. package/src/pubsub/manager.ts +49 -25
  217. package/src/pubsub/memory.ts +31 -0
  218. package/src/runner/abstractions.ts +38 -26
  219. package/src/runner/artifact-env.ts +17 -6
  220. package/src/runner/factory.ts +6 -6
  221. package/src/runner/force-abort.ts +3 -6
  222. package/src/runner/local.ts +79 -72
  223. package/src/runner/pulumi.ts +26 -63
  224. package/src/services.ts +214 -103
  225. package/src/shared/models/backend/index.ts +3 -1
  226. package/src/shared/models/backend/library.ts +12 -4
  227. package/src/shared/models/backend/project.ts +43 -23
  228. package/src/shared/models/backend/pulumi.ts +14 -0
  229. package/src/shared/models/backend/unlock-method.ts +1 -1
  230. package/src/shared/models/backend/well-known.ts +58 -0
  231. package/src/shared/models/base.ts +40 -109
  232. package/src/shared/models/errors.ts +82 -1
  233. package/src/shared/models/index.ts +3 -2
  234. package/src/shared/models/prisma.ts +36 -0
  235. package/src/shared/models/project/api-key.ts +37 -56
  236. package/src/shared/models/project/artifact.ts +15 -105
  237. package/src/shared/models/project/custom-status.ts +12 -0
  238. package/src/shared/models/project/index.ts +9 -9
  239. package/src/shared/models/project/lock.ts +10 -78
  240. package/src/shared/models/project/model.ts +32 -0
  241. package/src/shared/models/project/operation.ts +222 -99
  242. package/src/shared/models/project/page.ts +37 -48
  243. package/src/shared/models/project/secret.ts +29 -103
  244. package/src/shared/models/project/service-account.ts +12 -17
  245. package/src/shared/models/project/state.ts +100 -390
  246. package/src/shared/models/project/terminal.ts +75 -89
  247. package/src/shared/models/project/trigger.ts +13 -49
  248. package/src/shared/models/project/unlock-method.ts +21 -20
  249. package/src/shared/models/project/worker.ts +89 -88
  250. package/src/shared/resolvers/graph-resolver.ts +62 -26
  251. package/src/shared/resolvers/index.ts +1 -1
  252. package/src/shared/resolvers/input-hash.ts +24 -14
  253. package/src/shared/resolvers/input.ts +48 -6
  254. package/src/shared/resolvers/registry.ts +5 -4
  255. package/src/shared/resolvers/state.ts +12 -1
  256. package/src/shared/resolvers/validation.ts +29 -9
  257. package/src/shared/utils/index.ts +1 -1
  258. package/src/shared/utils/promise-tracker.ts +30 -3
  259. package/src/terminal/abstractions.ts +1 -1
  260. package/src/terminal/docker.ts +3 -3
  261. package/src/terminal/manager.ts +102 -118
  262. package/src/test-utils/database.ts +119 -0
  263. package/src/test-utils/index.ts +2 -0
  264. package/src/test-utils/services.ts +134 -0
  265. package/src/unlock/abstractions.ts +31 -0
  266. package/src/unlock/index.ts +2 -0
  267. package/src/unlock/memory.ts +27 -0
  268. package/src/worker/abstractions.ts +7 -4
  269. package/src/worker/docker.ts +14 -19
  270. package/src/worker/manager.ts +376 -79
  271. package/dist/chunk-RCB4AFGD.js.map +0 -1
  272. package/dist/chunk-WHALQHEZ.js +0 -2017
  273. package/dist/chunk-WHALQHEZ.js.map +0 -1
  274. package/src/business/backend-unlock.ts +0 -10
  275. package/src/common/performance.ts +0 -44
  276. package/src/hotstate/abstractions.ts +0 -48
  277. package/src/hotstate/factory.ts +0 -17
  278. package/src/hotstate/index.ts +0 -3
  279. package/src/hotstate/manager.ts +0 -192
  280. package/src/hotstate/memory.ts +0 -100
  281. package/src/hotstate/validation.ts +0 -101
  282. package/src/project/abstractions.ts +0 -102
  283. package/src/project/factory.ts +0 -11
  284. package/src/project/index.ts +0 -3
  285. package/src/project/local.ts +0 -469
  286. package/src/project/manager.ts +0 -574
  287. package/src/pubsub/local.ts +0 -36
  288. package/src/pubsub/validation.ts +0 -33
  289. package/src/shared/models/project/component.ts +0 -45
  290. package/src/shared/models/project/instance.ts +0 -74
  291. package/src/state/abstractions.ts +0 -450
  292. package/src/state/encryption.ts +0 -59
  293. package/src/state/factory.ts +0 -20
  294. package/src/state/index.ts +0 -6
  295. package/src/state/local/backend.ts +0 -299
  296. package/src/state/local/collection.ts +0 -342
  297. package/src/state/local/index.ts +0 -2
  298. package/src/state/manager.ts +0 -819
  299. package/src/state/repository/index.ts +0 -2
  300. package/src/state/repository/repository.index.ts +0 -193
  301. package/src/state/repository/repository.ts +0 -458
  302. /package/src/{state → database/local}/keyring.ts +0 -0
@@ -0,0 +1,1506 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `ApiKey` model and its related types.
7
+ *
8
+ * 🟢 You can import this file directly.
9
+ */
10
+
11
+ import type * as PJTG from '../pjtg.ts';
12
+ import * as runtime from "@prisma/client/runtime/client"
13
+ import type * as $Enums from "../enums.ts"
14
+ import type * as Prisma from "../internal/prismaNamespace.ts"
15
+
16
+ /**
17
+ * Model ApiKey
18
+ *
19
+ */
20
+ export type ApiKeyModel = runtime.Types.Result.DefaultSelection<Prisma.$ApiKeyPayload>
21
+
22
+ export type AggregateApiKey = {
23
+ _count: ApiKeyCountAggregateOutputType | null
24
+ _min: ApiKeyMinAggregateOutputType | null
25
+ _max: ApiKeyMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type ApiKeyMinAggregateOutputType = {
29
+ id: string | null
30
+ serviceAccountId: string | null
31
+ token: string | null
32
+ createdAt: Date | null
33
+ updatedAt: Date | null
34
+ }
35
+
36
+ export type ApiKeyMaxAggregateOutputType = {
37
+ id: string | null
38
+ serviceAccountId: string | null
39
+ token: string | null
40
+ createdAt: Date | null
41
+ updatedAt: Date | null
42
+ }
43
+
44
+ export type ApiKeyCountAggregateOutputType = {
45
+ id: number
46
+ meta: number
47
+ serviceAccountId: number
48
+ token: number
49
+ createdAt: number
50
+ updatedAt: number
51
+ _all: number
52
+ }
53
+
54
+
55
+ export type ApiKeyMinAggregateInputType = {
56
+ id?: true
57
+ serviceAccountId?: true
58
+ token?: true
59
+ createdAt?: true
60
+ updatedAt?: true
61
+ }
62
+
63
+ export type ApiKeyMaxAggregateInputType = {
64
+ id?: true
65
+ serviceAccountId?: true
66
+ token?: true
67
+ createdAt?: true
68
+ updatedAt?: true
69
+ }
70
+
71
+ export type ApiKeyCountAggregateInputType = {
72
+ id?: true
73
+ meta?: true
74
+ serviceAccountId?: true
75
+ token?: true
76
+ createdAt?: true
77
+ updatedAt?: true
78
+ _all?: true
79
+ }
80
+
81
+ export type ApiKeyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
82
+ /**
83
+ * Filter which ApiKey to aggregate.
84
+ */
85
+ where?: Prisma.ApiKeyWhereInput
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
88
+ *
89
+ * Determine the order of ApiKeys to fetch.
90
+ */
91
+ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[]
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
94
+ *
95
+ * Sets the start position
96
+ */
97
+ cursor?: Prisma.ApiKeyWhereUniqueInput
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Take `±n` ApiKeys from the position of the cursor.
102
+ */
103
+ take?: number
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
106
+ *
107
+ * Skip the first `n` ApiKeys.
108
+ */
109
+ skip?: number
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Count returned ApiKeys
114
+ **/
115
+ _count?: true | ApiKeyCountAggregateInputType
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to find the minimum value
120
+ **/
121
+ _min?: ApiKeyMinAggregateInputType
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Select which fields to find the maximum value
126
+ **/
127
+ _max?: ApiKeyMaxAggregateInputType
128
+ }
129
+
130
+ export type GetApiKeyAggregateType<T extends ApiKeyAggregateArgs> = {
131
+ [P in keyof T & keyof AggregateApiKey]: P extends '_count' | 'count'
132
+ ? T[P] extends true
133
+ ? number
134
+ : Prisma.GetScalarType<T[P], AggregateApiKey[P]>
135
+ : Prisma.GetScalarType<T[P], AggregateApiKey[P]>
136
+ }
137
+
138
+
139
+
140
+
141
+ export type ApiKeyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
142
+ where?: Prisma.ApiKeyWhereInput
143
+ orderBy?: Prisma.ApiKeyOrderByWithAggregationInput | Prisma.ApiKeyOrderByWithAggregationInput[]
144
+ by: Prisma.ApiKeyScalarFieldEnum[] | Prisma.ApiKeyScalarFieldEnum
145
+ having?: Prisma.ApiKeyScalarWhereWithAggregatesInput
146
+ take?: number
147
+ skip?: number
148
+ _count?: ApiKeyCountAggregateInputType | true
149
+ _min?: ApiKeyMinAggregateInputType
150
+ _max?: ApiKeyMaxAggregateInputType
151
+ }
152
+
153
+ export type ApiKeyGroupByOutputType = {
154
+ id: string
155
+ meta: PrismaJson.ApiKeyMeta
156
+ serviceAccountId: string
157
+ token: string
158
+ createdAt: Date
159
+ updatedAt: Date
160
+ _count: ApiKeyCountAggregateOutputType | null
161
+ _min: ApiKeyMinAggregateOutputType | null
162
+ _max: ApiKeyMaxAggregateOutputType | null
163
+ }
164
+
165
+ type GetApiKeyGroupByPayload<T extends ApiKeyGroupByArgs> = Prisma.PrismaPromise<
166
+ Array<
167
+ Prisma.PickEnumerable<ApiKeyGroupByOutputType, T['by']> &
168
+ {
169
+ [P in ((keyof T) & (keyof ApiKeyGroupByOutputType))]: P extends '_count'
170
+ ? T[P] extends boolean
171
+ ? number
172
+ : Prisma.GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
173
+ : Prisma.GetScalarType<T[P], ApiKeyGroupByOutputType[P]>
174
+ }
175
+ >
176
+ >
177
+
178
+
179
+
180
+ export type ApiKeyWhereInput = {
181
+ AND?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[]
182
+ OR?: Prisma.ApiKeyWhereInput[]
183
+ NOT?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[]
184
+ id?: Prisma.StringFilter<"ApiKey"> | string
185
+ meta?: Prisma.JsonFilter<"ApiKey">
186
+ serviceAccountId?: Prisma.StringFilter<"ApiKey"> | string
187
+ token?: Prisma.StringFilter<"ApiKey"> | string
188
+ createdAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string
189
+ updatedAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string
190
+ worker?: Prisma.XOR<Prisma.WorkerVersionNullableScalarRelationFilter, Prisma.WorkerVersionWhereInput> | null
191
+ serviceAccount?: Prisma.XOR<Prisma.ServiceAccountScalarRelationFilter, Prisma.ServiceAccountWhereInput>
192
+ }
193
+
194
+ export type ApiKeyOrderByWithRelationInput = {
195
+ id?: Prisma.SortOrder
196
+ meta?: Prisma.SortOrder
197
+ serviceAccountId?: Prisma.SortOrder
198
+ token?: Prisma.SortOrder
199
+ createdAt?: Prisma.SortOrder
200
+ updatedAt?: Prisma.SortOrder
201
+ worker?: Prisma.WorkerVersionOrderByWithRelationInput
202
+ serviceAccount?: Prisma.ServiceAccountOrderByWithRelationInput
203
+ }
204
+
205
+ export type ApiKeyWhereUniqueInput = Prisma.AtLeast<{
206
+ id?: string
207
+ token?: string
208
+ AND?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[]
209
+ OR?: Prisma.ApiKeyWhereInput[]
210
+ NOT?: Prisma.ApiKeyWhereInput | Prisma.ApiKeyWhereInput[]
211
+ meta?: Prisma.JsonFilter<"ApiKey">
212
+ serviceAccountId?: Prisma.StringFilter<"ApiKey"> | string
213
+ createdAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string
214
+ updatedAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string
215
+ worker?: Prisma.XOR<Prisma.WorkerVersionNullableScalarRelationFilter, Prisma.WorkerVersionWhereInput> | null
216
+ serviceAccount?: Prisma.XOR<Prisma.ServiceAccountScalarRelationFilter, Prisma.ServiceAccountWhereInput>
217
+ }, "id" | "token">
218
+
219
+ export type ApiKeyOrderByWithAggregationInput = {
220
+ id?: Prisma.SortOrder
221
+ meta?: Prisma.SortOrder
222
+ serviceAccountId?: Prisma.SortOrder
223
+ token?: Prisma.SortOrder
224
+ createdAt?: Prisma.SortOrder
225
+ updatedAt?: Prisma.SortOrder
226
+ _count?: Prisma.ApiKeyCountOrderByAggregateInput
227
+ _max?: Prisma.ApiKeyMaxOrderByAggregateInput
228
+ _min?: Prisma.ApiKeyMinOrderByAggregateInput
229
+ }
230
+
231
+ export type ApiKeyScalarWhereWithAggregatesInput = {
232
+ AND?: Prisma.ApiKeyScalarWhereWithAggregatesInput | Prisma.ApiKeyScalarWhereWithAggregatesInput[]
233
+ OR?: Prisma.ApiKeyScalarWhereWithAggregatesInput[]
234
+ NOT?: Prisma.ApiKeyScalarWhereWithAggregatesInput | Prisma.ApiKeyScalarWhereWithAggregatesInput[]
235
+ id?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string
236
+ meta?: Prisma.JsonWithAggregatesFilter<"ApiKey">
237
+ serviceAccountId?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string
238
+ token?: Prisma.StringWithAggregatesFilter<"ApiKey"> | string
239
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
240
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
241
+ }
242
+
243
+ export type ApiKeyCreateInput = {
244
+ id?: string
245
+ meta: PrismaJson.ApiKeyMeta
246
+ token: string
247
+ createdAt?: Date | string
248
+ updatedAt?: Date | string
249
+ worker?: Prisma.WorkerVersionCreateNestedOneWithoutApiKeyInput
250
+ serviceAccount: Prisma.ServiceAccountCreateNestedOneWithoutApiKeysInput
251
+ }
252
+
253
+ export type ApiKeyUncheckedCreateInput = {
254
+ id?: string
255
+ meta: PrismaJson.ApiKeyMeta
256
+ serviceAccountId: string
257
+ token: string
258
+ createdAt?: Date | string
259
+ updatedAt?: Date | string
260
+ worker?: Prisma.WorkerVersionUncheckedCreateNestedOneWithoutApiKeyInput
261
+ }
262
+
263
+ export type ApiKeyUpdateInput = {
264
+ id?: Prisma.StringFieldUpdateOperationsInput | string
265
+ meta?: PrismaJson.ApiKeyMeta
266
+ token?: Prisma.StringFieldUpdateOperationsInput | string
267
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
268
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
269
+ worker?: Prisma.WorkerVersionUpdateOneWithoutApiKeyNestedInput
270
+ serviceAccount?: Prisma.ServiceAccountUpdateOneRequiredWithoutApiKeysNestedInput
271
+ }
272
+
273
+ export type ApiKeyUncheckedUpdateInput = {
274
+ id?: Prisma.StringFieldUpdateOperationsInput | string
275
+ meta?: PrismaJson.ApiKeyMeta
276
+ serviceAccountId?: Prisma.StringFieldUpdateOperationsInput | string
277
+ token?: Prisma.StringFieldUpdateOperationsInput | string
278
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
279
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
280
+ worker?: Prisma.WorkerVersionUncheckedUpdateOneWithoutApiKeyNestedInput
281
+ }
282
+
283
+ export type ApiKeyCreateManyInput = {
284
+ id?: string
285
+ meta: PrismaJson.ApiKeyMeta
286
+ serviceAccountId: string
287
+ token: string
288
+ createdAt?: Date | string
289
+ updatedAt?: Date | string
290
+ }
291
+
292
+ export type ApiKeyUpdateManyMutationInput = {
293
+ id?: Prisma.StringFieldUpdateOperationsInput | string
294
+ meta?: PrismaJson.ApiKeyMeta
295
+ token?: Prisma.StringFieldUpdateOperationsInput | string
296
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
297
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
298
+ }
299
+
300
+ export type ApiKeyUncheckedUpdateManyInput = {
301
+ id?: Prisma.StringFieldUpdateOperationsInput | string
302
+ meta?: PrismaJson.ApiKeyMeta
303
+ serviceAccountId?: Prisma.StringFieldUpdateOperationsInput | string
304
+ token?: Prisma.StringFieldUpdateOperationsInput | string
305
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
306
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
307
+ }
308
+
309
+ export type ApiKeyCountOrderByAggregateInput = {
310
+ id?: Prisma.SortOrder
311
+ meta?: Prisma.SortOrder
312
+ serviceAccountId?: Prisma.SortOrder
313
+ token?: Prisma.SortOrder
314
+ createdAt?: Prisma.SortOrder
315
+ updatedAt?: Prisma.SortOrder
316
+ }
317
+
318
+ export type ApiKeyMaxOrderByAggregateInput = {
319
+ id?: Prisma.SortOrder
320
+ serviceAccountId?: Prisma.SortOrder
321
+ token?: Prisma.SortOrder
322
+ createdAt?: Prisma.SortOrder
323
+ updatedAt?: Prisma.SortOrder
324
+ }
325
+
326
+ export type ApiKeyMinOrderByAggregateInput = {
327
+ id?: Prisma.SortOrder
328
+ serviceAccountId?: Prisma.SortOrder
329
+ token?: Prisma.SortOrder
330
+ createdAt?: Prisma.SortOrder
331
+ updatedAt?: Prisma.SortOrder
332
+ }
333
+
334
+ export type ApiKeyListRelationFilter = {
335
+ every?: Prisma.ApiKeyWhereInput
336
+ some?: Prisma.ApiKeyWhereInput
337
+ none?: Prisma.ApiKeyWhereInput
338
+ }
339
+
340
+ export type ApiKeyOrderByRelationAggregateInput = {
341
+ _count?: Prisma.SortOrder
342
+ }
343
+
344
+ export type ApiKeyScalarRelationFilter = {
345
+ is?: Prisma.ApiKeyWhereInput
346
+ isNot?: Prisma.ApiKeyWhereInput
347
+ }
348
+
349
+ export type StringFieldUpdateOperationsInput = {
350
+ set?: string
351
+ }
352
+
353
+ export type DateTimeFieldUpdateOperationsInput = {
354
+ set?: Date | string
355
+ }
356
+
357
+ export type ApiKeyCreateNestedManyWithoutServiceAccountInput = {
358
+ create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput> | Prisma.ApiKeyCreateWithoutServiceAccountInput[] | Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput[]
359
+ connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput | Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput[]
360
+ createMany?: Prisma.ApiKeyCreateManyServiceAccountInputEnvelope
361
+ connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
362
+ }
363
+
364
+ export type ApiKeyUncheckedCreateNestedManyWithoutServiceAccountInput = {
365
+ create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput> | Prisma.ApiKeyCreateWithoutServiceAccountInput[] | Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput[]
366
+ connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput | Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput[]
367
+ createMany?: Prisma.ApiKeyCreateManyServiceAccountInputEnvelope
368
+ connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
369
+ }
370
+
371
+ export type ApiKeyUpdateManyWithoutServiceAccountNestedInput = {
372
+ create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput> | Prisma.ApiKeyCreateWithoutServiceAccountInput[] | Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput[]
373
+ connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput | Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput[]
374
+ upsert?: Prisma.ApiKeyUpsertWithWhereUniqueWithoutServiceAccountInput | Prisma.ApiKeyUpsertWithWhereUniqueWithoutServiceAccountInput[]
375
+ createMany?: Prisma.ApiKeyCreateManyServiceAccountInputEnvelope
376
+ set?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
377
+ disconnect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
378
+ delete?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
379
+ connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
380
+ update?: Prisma.ApiKeyUpdateWithWhereUniqueWithoutServiceAccountInput | Prisma.ApiKeyUpdateWithWhereUniqueWithoutServiceAccountInput[]
381
+ updateMany?: Prisma.ApiKeyUpdateManyWithWhereWithoutServiceAccountInput | Prisma.ApiKeyUpdateManyWithWhereWithoutServiceAccountInput[]
382
+ deleteMany?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[]
383
+ }
384
+
385
+ export type ApiKeyUncheckedUpdateManyWithoutServiceAccountNestedInput = {
386
+ create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput> | Prisma.ApiKeyCreateWithoutServiceAccountInput[] | Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput[]
387
+ connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput | Prisma.ApiKeyCreateOrConnectWithoutServiceAccountInput[]
388
+ upsert?: Prisma.ApiKeyUpsertWithWhereUniqueWithoutServiceAccountInput | Prisma.ApiKeyUpsertWithWhereUniqueWithoutServiceAccountInput[]
389
+ createMany?: Prisma.ApiKeyCreateManyServiceAccountInputEnvelope
390
+ set?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
391
+ disconnect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
392
+ delete?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
393
+ connect?: Prisma.ApiKeyWhereUniqueInput | Prisma.ApiKeyWhereUniqueInput[]
394
+ update?: Prisma.ApiKeyUpdateWithWhereUniqueWithoutServiceAccountInput | Prisma.ApiKeyUpdateWithWhereUniqueWithoutServiceAccountInput[]
395
+ updateMany?: Prisma.ApiKeyUpdateManyWithWhereWithoutServiceAccountInput | Prisma.ApiKeyUpdateManyWithWhereWithoutServiceAccountInput[]
396
+ deleteMany?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[]
397
+ }
398
+
399
+ export type ApiKeyCreateNestedOneWithoutWorkerInput = {
400
+ create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutWorkerInput, Prisma.ApiKeyUncheckedCreateWithoutWorkerInput>
401
+ connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutWorkerInput
402
+ connect?: Prisma.ApiKeyWhereUniqueInput
403
+ }
404
+
405
+ export type ApiKeyUpdateOneRequiredWithoutWorkerNestedInput = {
406
+ create?: Prisma.XOR<Prisma.ApiKeyCreateWithoutWorkerInput, Prisma.ApiKeyUncheckedCreateWithoutWorkerInput>
407
+ connectOrCreate?: Prisma.ApiKeyCreateOrConnectWithoutWorkerInput
408
+ upsert?: Prisma.ApiKeyUpsertWithoutWorkerInput
409
+ connect?: Prisma.ApiKeyWhereUniqueInput
410
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ApiKeyUpdateToOneWithWhereWithoutWorkerInput, Prisma.ApiKeyUpdateWithoutWorkerInput>, Prisma.ApiKeyUncheckedUpdateWithoutWorkerInput>
411
+ }
412
+
413
+ export type ApiKeyCreateWithoutServiceAccountInput = {
414
+ id?: string
415
+ meta: PrismaJson.ApiKeyMeta
416
+ token: string
417
+ createdAt?: Date | string
418
+ updatedAt?: Date | string
419
+ worker?: Prisma.WorkerVersionCreateNestedOneWithoutApiKeyInput
420
+ }
421
+
422
+ export type ApiKeyUncheckedCreateWithoutServiceAccountInput = {
423
+ id?: string
424
+ meta: PrismaJson.ApiKeyMeta
425
+ token: string
426
+ createdAt?: Date | string
427
+ updatedAt?: Date | string
428
+ worker?: Prisma.WorkerVersionUncheckedCreateNestedOneWithoutApiKeyInput
429
+ }
430
+
431
+ export type ApiKeyCreateOrConnectWithoutServiceAccountInput = {
432
+ where: Prisma.ApiKeyWhereUniqueInput
433
+ create: Prisma.XOR<Prisma.ApiKeyCreateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput>
434
+ }
435
+
436
+ export type ApiKeyCreateManyServiceAccountInputEnvelope = {
437
+ data: Prisma.ApiKeyCreateManyServiceAccountInput | Prisma.ApiKeyCreateManyServiceAccountInput[]
438
+ }
439
+
440
+ export type ApiKeyUpsertWithWhereUniqueWithoutServiceAccountInput = {
441
+ where: Prisma.ApiKeyWhereUniqueInput
442
+ update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedUpdateWithoutServiceAccountInput>
443
+ create: Prisma.XOR<Prisma.ApiKeyCreateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedCreateWithoutServiceAccountInput>
444
+ }
445
+
446
+ export type ApiKeyUpdateWithWhereUniqueWithoutServiceAccountInput = {
447
+ where: Prisma.ApiKeyWhereUniqueInput
448
+ data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutServiceAccountInput, Prisma.ApiKeyUncheckedUpdateWithoutServiceAccountInput>
449
+ }
450
+
451
+ export type ApiKeyUpdateManyWithWhereWithoutServiceAccountInput = {
452
+ where: Prisma.ApiKeyScalarWhereInput
453
+ data: Prisma.XOR<Prisma.ApiKeyUpdateManyMutationInput, Prisma.ApiKeyUncheckedUpdateManyWithoutServiceAccountInput>
454
+ }
455
+
456
+ export type ApiKeyScalarWhereInput = {
457
+ AND?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[]
458
+ OR?: Prisma.ApiKeyScalarWhereInput[]
459
+ NOT?: Prisma.ApiKeyScalarWhereInput | Prisma.ApiKeyScalarWhereInput[]
460
+ id?: Prisma.StringFilter<"ApiKey"> | string
461
+ meta?: Prisma.JsonFilter<"ApiKey">
462
+ serviceAccountId?: Prisma.StringFilter<"ApiKey"> | string
463
+ token?: Prisma.StringFilter<"ApiKey"> | string
464
+ createdAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string
465
+ updatedAt?: Prisma.DateTimeFilter<"ApiKey"> | Date | string
466
+ }
467
+
468
+ export type ApiKeyCreateWithoutWorkerInput = {
469
+ id?: string
470
+ meta: PrismaJson.ApiKeyMeta
471
+ token: string
472
+ createdAt?: Date | string
473
+ updatedAt?: Date | string
474
+ serviceAccount: Prisma.ServiceAccountCreateNestedOneWithoutApiKeysInput
475
+ }
476
+
477
+ export type ApiKeyUncheckedCreateWithoutWorkerInput = {
478
+ id?: string
479
+ meta: PrismaJson.ApiKeyMeta
480
+ serviceAccountId: string
481
+ token: string
482
+ createdAt?: Date | string
483
+ updatedAt?: Date | string
484
+ }
485
+
486
+ export type ApiKeyCreateOrConnectWithoutWorkerInput = {
487
+ where: Prisma.ApiKeyWhereUniqueInput
488
+ create: Prisma.XOR<Prisma.ApiKeyCreateWithoutWorkerInput, Prisma.ApiKeyUncheckedCreateWithoutWorkerInput>
489
+ }
490
+
491
+ export type ApiKeyUpsertWithoutWorkerInput = {
492
+ update: Prisma.XOR<Prisma.ApiKeyUpdateWithoutWorkerInput, Prisma.ApiKeyUncheckedUpdateWithoutWorkerInput>
493
+ create: Prisma.XOR<Prisma.ApiKeyCreateWithoutWorkerInput, Prisma.ApiKeyUncheckedCreateWithoutWorkerInput>
494
+ where?: Prisma.ApiKeyWhereInput
495
+ }
496
+
497
+ export type ApiKeyUpdateToOneWithWhereWithoutWorkerInput = {
498
+ where?: Prisma.ApiKeyWhereInput
499
+ data: Prisma.XOR<Prisma.ApiKeyUpdateWithoutWorkerInput, Prisma.ApiKeyUncheckedUpdateWithoutWorkerInput>
500
+ }
501
+
502
+ export type ApiKeyUpdateWithoutWorkerInput = {
503
+ id?: Prisma.StringFieldUpdateOperationsInput | string
504
+ meta?: PrismaJson.ApiKeyMeta
505
+ token?: Prisma.StringFieldUpdateOperationsInput | string
506
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
507
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
508
+ serviceAccount?: Prisma.ServiceAccountUpdateOneRequiredWithoutApiKeysNestedInput
509
+ }
510
+
511
+ export type ApiKeyUncheckedUpdateWithoutWorkerInput = {
512
+ id?: Prisma.StringFieldUpdateOperationsInput | string
513
+ meta?: PrismaJson.ApiKeyMeta
514
+ serviceAccountId?: Prisma.StringFieldUpdateOperationsInput | string
515
+ token?: Prisma.StringFieldUpdateOperationsInput | string
516
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
517
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
518
+ }
519
+
520
+ export type ApiKeyCreateManyServiceAccountInput = {
521
+ id?: string
522
+ meta: PrismaJson.ApiKeyMeta
523
+ token: string
524
+ createdAt?: Date | string
525
+ updatedAt?: Date | string
526
+ }
527
+
528
+ export type ApiKeyUpdateWithoutServiceAccountInput = {
529
+ id?: Prisma.StringFieldUpdateOperationsInput | string
530
+ meta?: PrismaJson.ApiKeyMeta
531
+ token?: Prisma.StringFieldUpdateOperationsInput | string
532
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
533
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
534
+ worker?: Prisma.WorkerVersionUpdateOneWithoutApiKeyNestedInput
535
+ }
536
+
537
+ export type ApiKeyUncheckedUpdateWithoutServiceAccountInput = {
538
+ id?: Prisma.StringFieldUpdateOperationsInput | string
539
+ meta?: PrismaJson.ApiKeyMeta
540
+ token?: Prisma.StringFieldUpdateOperationsInput | string
541
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
542
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
543
+ worker?: Prisma.WorkerVersionUncheckedUpdateOneWithoutApiKeyNestedInput
544
+ }
545
+
546
+ export type ApiKeyUncheckedUpdateManyWithoutServiceAccountInput = {
547
+ id?: Prisma.StringFieldUpdateOperationsInput | string
548
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
549
+ token?: Prisma.StringFieldUpdateOperationsInput | string
550
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
551
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
552
+ }
553
+
554
+
555
+
556
+ export type ApiKeySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
557
+ id?: boolean
558
+ meta?: boolean
559
+ serviceAccountId?: boolean
560
+ token?: boolean
561
+ createdAt?: boolean
562
+ updatedAt?: boolean
563
+ worker?: boolean | Prisma.ApiKey$workerArgs<ExtArgs>
564
+ serviceAccount?: boolean | Prisma.ServiceAccountDefaultArgs<ExtArgs>
565
+ }, ExtArgs["result"]["apiKey"]>
566
+
567
+ export type ApiKeySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
568
+ id?: boolean
569
+ meta?: boolean
570
+ serviceAccountId?: boolean
571
+ token?: boolean
572
+ createdAt?: boolean
573
+ updatedAt?: boolean
574
+ serviceAccount?: boolean | Prisma.ServiceAccountDefaultArgs<ExtArgs>
575
+ }, ExtArgs["result"]["apiKey"]>
576
+
577
+ export type ApiKeySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
578
+ id?: boolean
579
+ meta?: boolean
580
+ serviceAccountId?: boolean
581
+ token?: boolean
582
+ createdAt?: boolean
583
+ updatedAt?: boolean
584
+ serviceAccount?: boolean | Prisma.ServiceAccountDefaultArgs<ExtArgs>
585
+ }, ExtArgs["result"]["apiKey"]>
586
+
587
+ export type ApiKeySelectScalar = {
588
+ id?: boolean
589
+ meta?: boolean
590
+ serviceAccountId?: boolean
591
+ token?: boolean
592
+ createdAt?: boolean
593
+ updatedAt?: boolean
594
+ }
595
+
596
+ export type ApiKeyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "meta" | "serviceAccountId" | "token" | "createdAt" | "updatedAt", ExtArgs["result"]["apiKey"]>
597
+ export type ApiKeyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
598
+ worker?: boolean | Prisma.ApiKey$workerArgs<ExtArgs>
599
+ serviceAccount?: boolean | Prisma.ServiceAccountDefaultArgs<ExtArgs>
600
+ }
601
+ export type ApiKeyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
602
+ serviceAccount?: boolean | Prisma.ServiceAccountDefaultArgs<ExtArgs>
603
+ }
604
+ export type ApiKeyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
605
+ serviceAccount?: boolean | Prisma.ServiceAccountDefaultArgs<ExtArgs>
606
+ }
607
+
608
+ export type $ApiKeyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
609
+ name: "ApiKey"
610
+ objects: {
611
+ /**
612
+ * The worker version that owns this API key.
613
+ */
614
+ worker: Prisma.$WorkerVersionPayload<ExtArgs> | null
615
+ /**
616
+ * The service account which this API key impersonates.
617
+ */
618
+ serviceAccount: Prisma.$ServiceAccountPayload<ExtArgs>
619
+ }
620
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
621
+ /**
622
+ * The CUIDv2 of the API key.
623
+ */
624
+ id: string
625
+ /**
626
+ * The metadata of the API key managed by the backend.
627
+ *
628
+ * [ApiKeyMeta]
629
+ */
630
+ meta: PrismaJson.ApiKeyMeta
631
+ /**
632
+ * The ID of the service account impersonated by this API key.
633
+ */
634
+ serviceAccountId: string
635
+ /**
636
+ * The API token for authentication.
637
+ */
638
+ token: string
639
+ /**
640
+ * The time when the API key was created.
641
+ */
642
+ createdAt: Date
643
+ /**
644
+ * The time when the API key was last updated.
645
+ */
646
+ updatedAt: Date
647
+ }, ExtArgs["result"]["apiKey"]>
648
+ composites: {}
649
+ }
650
+
651
+ export type ApiKeyGetPayload<S extends boolean | null | undefined | ApiKeyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload, S>
652
+
653
+ export type ApiKeyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
654
+ Omit<ApiKeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
655
+ select?: ApiKeyCountAggregateInputType | true
656
+ }
657
+
658
+ export interface ApiKeyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
659
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ApiKey'], meta: { name: 'ApiKey' } }
660
+ /**
661
+ * Find zero or one ApiKey that matches the filter.
662
+ * @param {ApiKeyFindUniqueArgs} args - Arguments to find a ApiKey
663
+ * @example
664
+ * // Get one ApiKey
665
+ * const apiKey = await prisma.apiKey.findUnique({
666
+ * where: {
667
+ * // ... provide filter here
668
+ * }
669
+ * })
670
+ */
671
+ 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>
672
+
673
+ /**
674
+ * Find one ApiKey that matches the filter or throw an error with `error.code='P2025'`
675
+ * if no matches were found.
676
+ * @param {ApiKeyFindUniqueOrThrowArgs} args - Arguments to find a ApiKey
677
+ * @example
678
+ * // Get one ApiKey
679
+ * const apiKey = await prisma.apiKey.findUniqueOrThrow({
680
+ * where: {
681
+ * // ... provide filter here
682
+ * }
683
+ * })
684
+ */
685
+ 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>
686
+
687
+ /**
688
+ * Find the first ApiKey that matches the filter.
689
+ * Note, that providing `undefined` is treated as the value not being there.
690
+ * Read more here: https://pris.ly/d/null-undefined
691
+ * @param {ApiKeyFindFirstArgs} args - Arguments to find a ApiKey
692
+ * @example
693
+ * // Get one ApiKey
694
+ * const apiKey = await prisma.apiKey.findFirst({
695
+ * where: {
696
+ * // ... provide filter here
697
+ * }
698
+ * })
699
+ */
700
+ 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>
701
+
702
+ /**
703
+ * Find the first ApiKey that matches the filter or
704
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
705
+ * Note, that providing `undefined` is treated as the value not being there.
706
+ * Read more here: https://pris.ly/d/null-undefined
707
+ * @param {ApiKeyFindFirstOrThrowArgs} args - Arguments to find a ApiKey
708
+ * @example
709
+ * // Get one ApiKey
710
+ * const apiKey = await prisma.apiKey.findFirstOrThrow({
711
+ * where: {
712
+ * // ... provide filter here
713
+ * }
714
+ * })
715
+ */
716
+ 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>
717
+
718
+ /**
719
+ * Find zero or more ApiKeys that matches the filter.
720
+ * Note, that providing `undefined` is treated as the value not being there.
721
+ * Read more here: https://pris.ly/d/null-undefined
722
+ * @param {ApiKeyFindManyArgs} args - Arguments to filter and select certain fields only.
723
+ * @example
724
+ * // Get all ApiKeys
725
+ * const apiKeys = await prisma.apiKey.findMany()
726
+ *
727
+ * // Get first 10 ApiKeys
728
+ * const apiKeys = await prisma.apiKey.findMany({ take: 10 })
729
+ *
730
+ * // Only select the `id`
731
+ * const apiKeyWithIdOnly = await prisma.apiKey.findMany({ select: { id: true } })
732
+ *
733
+ */
734
+ findMany<T extends ApiKeyFindManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
735
+
736
+ /**
737
+ * Create a ApiKey.
738
+ * @param {ApiKeyCreateArgs} args - Arguments to create a ApiKey.
739
+ * @example
740
+ * // Create one ApiKey
741
+ * const ApiKey = await prisma.apiKey.create({
742
+ * data: {
743
+ * // ... data to create a ApiKey
744
+ * }
745
+ * })
746
+ *
747
+ */
748
+ 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>
749
+
750
+ /**
751
+ * Create many ApiKeys.
752
+ * @param {ApiKeyCreateManyArgs} args - Arguments to create many ApiKeys.
753
+ * @example
754
+ * // Create many ApiKeys
755
+ * const apiKey = await prisma.apiKey.createMany({
756
+ * data: [
757
+ * // ... provide data here
758
+ * ]
759
+ * })
760
+ *
761
+ */
762
+ createMany<T extends ApiKeyCreateManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
763
+
764
+ /**
765
+ * Create many ApiKeys and returns the data saved in the database.
766
+ * @param {ApiKeyCreateManyAndReturnArgs} args - Arguments to create many ApiKeys.
767
+ * @example
768
+ * // Create many ApiKeys
769
+ * const apiKey = await prisma.apiKey.createManyAndReturn({
770
+ * data: [
771
+ * // ... provide data here
772
+ * ]
773
+ * })
774
+ *
775
+ * // Create many ApiKeys and only return the `id`
776
+ * const apiKeyWithIdOnly = await prisma.apiKey.createManyAndReturn({
777
+ * select: { id: true },
778
+ * data: [
779
+ * // ... provide data here
780
+ * ]
781
+ * })
782
+ * Note, that providing `undefined` is treated as the value not being there.
783
+ * Read more here: https://pris.ly/d/null-undefined
784
+ *
785
+ */
786
+ createManyAndReturn<T extends ApiKeyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ApiKeyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
787
+
788
+ /**
789
+ * Delete a ApiKey.
790
+ * @param {ApiKeyDeleteArgs} args - Arguments to delete one ApiKey.
791
+ * @example
792
+ * // Delete one ApiKey
793
+ * const ApiKey = await prisma.apiKey.delete({
794
+ * where: {
795
+ * // ... filter to delete one ApiKey
796
+ * }
797
+ * })
798
+ *
799
+ */
800
+ 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>
801
+
802
+ /**
803
+ * Update one ApiKey.
804
+ * @param {ApiKeyUpdateArgs} args - Arguments to update one ApiKey.
805
+ * @example
806
+ * // Update one ApiKey
807
+ * const apiKey = await prisma.apiKey.update({
808
+ * where: {
809
+ * // ... provide filter here
810
+ * },
811
+ * data: {
812
+ * // ... provide data here
813
+ * }
814
+ * })
815
+ *
816
+ */
817
+ 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>
818
+
819
+ /**
820
+ * Delete zero or more ApiKeys.
821
+ * @param {ApiKeyDeleteManyArgs} args - Arguments to filter ApiKeys to delete.
822
+ * @example
823
+ * // Delete a few ApiKeys
824
+ * const { count } = await prisma.apiKey.deleteMany({
825
+ * where: {
826
+ * // ... provide filter here
827
+ * }
828
+ * })
829
+ *
830
+ */
831
+ deleteMany<T extends ApiKeyDeleteManyArgs>(args?: Prisma.SelectSubset<T, ApiKeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
832
+
833
+ /**
834
+ * Update zero or more ApiKeys.
835
+ * Note, that providing `undefined` is treated as the value not being there.
836
+ * Read more here: https://pris.ly/d/null-undefined
837
+ * @param {ApiKeyUpdateManyArgs} args - Arguments to update one or more rows.
838
+ * @example
839
+ * // Update many ApiKeys
840
+ * const apiKey = await prisma.apiKey.updateMany({
841
+ * where: {
842
+ * // ... provide filter here
843
+ * },
844
+ * data: {
845
+ * // ... provide data here
846
+ * }
847
+ * })
848
+ *
849
+ */
850
+ updateMany<T extends ApiKeyUpdateManyArgs>(args: Prisma.SelectSubset<T, ApiKeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
851
+
852
+ /**
853
+ * Update zero or more ApiKeys and returns the data updated in the database.
854
+ * @param {ApiKeyUpdateManyAndReturnArgs} args - Arguments to update many ApiKeys.
855
+ * @example
856
+ * // Update many ApiKeys
857
+ * const apiKey = await prisma.apiKey.updateManyAndReturn({
858
+ * where: {
859
+ * // ... provide filter here
860
+ * },
861
+ * data: [
862
+ * // ... provide data here
863
+ * ]
864
+ * })
865
+ *
866
+ * // Update zero or more ApiKeys and only return the `id`
867
+ * const apiKeyWithIdOnly = await prisma.apiKey.updateManyAndReturn({
868
+ * select: { id: true },
869
+ * where: {
870
+ * // ... provide filter here
871
+ * },
872
+ * data: [
873
+ * // ... provide data here
874
+ * ]
875
+ * })
876
+ * Note, that providing `undefined` is treated as the value not being there.
877
+ * Read more here: https://pris.ly/d/null-undefined
878
+ *
879
+ */
880
+ updateManyAndReturn<T extends ApiKeyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ApiKeyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
881
+
882
+ /**
883
+ * Create or update one ApiKey.
884
+ * @param {ApiKeyUpsertArgs} args - Arguments to update or create a ApiKey.
885
+ * @example
886
+ * // Update or create a ApiKey
887
+ * const apiKey = await prisma.apiKey.upsert({
888
+ * create: {
889
+ * // ... data to create a ApiKey
890
+ * },
891
+ * update: {
892
+ * // ... in case it already exists, update
893
+ * },
894
+ * where: {
895
+ * // ... the filter for the ApiKey we want to update
896
+ * }
897
+ * })
898
+ */
899
+ 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>
900
+
901
+
902
+ /**
903
+ * Count the number of ApiKeys.
904
+ * Note, that providing `undefined` is treated as the value not being there.
905
+ * Read more here: https://pris.ly/d/null-undefined
906
+ * @param {ApiKeyCountArgs} args - Arguments to filter ApiKeys to count.
907
+ * @example
908
+ * // Count the number of ApiKeys
909
+ * const count = await prisma.apiKey.count({
910
+ * where: {
911
+ * // ... the filter for the ApiKeys we want to count
912
+ * }
913
+ * })
914
+ **/
915
+ count<T extends ApiKeyCountArgs>(
916
+ args?: Prisma.Subset<T, ApiKeyCountArgs>,
917
+ ): Prisma.PrismaPromise<
918
+ T extends runtime.Types.Utils.Record<'select', any>
919
+ ? T['select'] extends true
920
+ ? number
921
+ : Prisma.GetScalarType<T['select'], ApiKeyCountAggregateOutputType>
922
+ : number
923
+ >
924
+
925
+ /**
926
+ * Allows you to perform aggregations operations on a ApiKey.
927
+ * Note, that providing `undefined` is treated as the value not being there.
928
+ * Read more here: https://pris.ly/d/null-undefined
929
+ * @param {ApiKeyAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
930
+ * @example
931
+ * // Ordered by age ascending
932
+ * // Where email contains prisma.io
933
+ * // Limited to the 10 users
934
+ * const aggregations = await prisma.user.aggregate({
935
+ * _avg: {
936
+ * age: true,
937
+ * },
938
+ * where: {
939
+ * email: {
940
+ * contains: "prisma.io",
941
+ * },
942
+ * },
943
+ * orderBy: {
944
+ * age: "asc",
945
+ * },
946
+ * take: 10,
947
+ * })
948
+ **/
949
+ aggregate<T extends ApiKeyAggregateArgs>(args: Prisma.Subset<T, ApiKeyAggregateArgs>): Prisma.PrismaPromise<GetApiKeyAggregateType<T>>
950
+
951
+ /**
952
+ * Group by ApiKey.
953
+ * Note, that providing `undefined` is treated as the value not being there.
954
+ * Read more here: https://pris.ly/d/null-undefined
955
+ * @param {ApiKeyGroupByArgs} args - Group by arguments.
956
+ * @example
957
+ * // Group by city, order by createdAt, get count
958
+ * const result = await prisma.user.groupBy({
959
+ * by: ['city', 'createdAt'],
960
+ * orderBy: {
961
+ * createdAt: true
962
+ * },
963
+ * _count: {
964
+ * _all: true
965
+ * },
966
+ * })
967
+ *
968
+ **/
969
+ groupBy<
970
+ T extends ApiKeyGroupByArgs,
971
+ HasSelectOrTake extends Prisma.Or<
972
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
973
+ Prisma.Extends<'take', Prisma.Keys<T>>
974
+ >,
975
+ OrderByArg extends Prisma.True extends HasSelectOrTake
976
+ ? { orderBy: ApiKeyGroupByArgs['orderBy'] }
977
+ : { orderBy?: ApiKeyGroupByArgs['orderBy'] },
978
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
979
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
980
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
981
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
982
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
983
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
984
+ InputErrors extends ByEmpty extends Prisma.True
985
+ ? `Error: "by" must not be empty.`
986
+ : HavingValid extends Prisma.False
987
+ ? {
988
+ [P in HavingFields]: P extends ByFields
989
+ ? never
990
+ : P extends string
991
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
992
+ : [
993
+ Error,
994
+ 'Field ',
995
+ P,
996
+ ` in "having" needs to be provided in "by"`,
997
+ ]
998
+ }[HavingFields]
999
+ : 'take' extends Prisma.Keys<T>
1000
+ ? 'orderBy' extends Prisma.Keys<T>
1001
+ ? ByValid extends Prisma.True
1002
+ ? {}
1003
+ : {
1004
+ [P in OrderFields]: P extends ByFields
1005
+ ? never
1006
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1007
+ }[OrderFields]
1008
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1009
+ : 'skip' extends Prisma.Keys<T>
1010
+ ? 'orderBy' extends Prisma.Keys<T>
1011
+ ? ByValid extends Prisma.True
1012
+ ? {}
1013
+ : {
1014
+ [P in OrderFields]: P extends ByFields
1015
+ ? never
1016
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1017
+ }[OrderFields]
1018
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1019
+ : ByValid extends Prisma.True
1020
+ ? {}
1021
+ : {
1022
+ [P in OrderFields]: P extends ByFields
1023
+ ? never
1024
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1025
+ }[OrderFields]
1026
+ >(args: Prisma.SubsetIntersection<T, ApiKeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApiKeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1027
+ /**
1028
+ * Fields of the ApiKey model
1029
+ */
1030
+ readonly fields: ApiKeyFieldRefs;
1031
+ }
1032
+
1033
+ /**
1034
+ * The delegate class that acts as a "Promise-like" for ApiKey.
1035
+ * Why is this prefixed with `Prisma__`?
1036
+ * Because we want to prevent naming conflicts as mentioned in
1037
+ * https://github.com/prisma/prisma-client-js/issues/707
1038
+ */
1039
+ export interface Prisma__ApiKeyClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1040
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1041
+ worker<T extends Prisma.ApiKey$workerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKey$workerArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1042
+ serviceAccount<T extends Prisma.ServiceAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ServiceAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__ServiceAccountClient<runtime.Types.Result.GetResult<Prisma.$ServiceAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1043
+ /**
1044
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1045
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1046
+ * @param onrejected The callback to execute when the Promise is rejected.
1047
+ * @returns A Promise for the completion of which ever callback is executed.
1048
+ */
1049
+ 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>
1050
+ /**
1051
+ * Attaches a callback for only the rejection of the Promise.
1052
+ * @param onrejected The callback to execute when the Promise is rejected.
1053
+ * @returns A Promise for the completion of the callback.
1054
+ */
1055
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1056
+ /**
1057
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1058
+ * resolved value cannot be modified from the callback.
1059
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1060
+ * @returns A Promise for the completion of the callback.
1061
+ */
1062
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1063
+ }
1064
+
1065
+
1066
+
1067
+
1068
+ /**
1069
+ * Fields of the ApiKey model
1070
+ */
1071
+ export interface ApiKeyFieldRefs {
1072
+ readonly id: Prisma.FieldRef<"ApiKey", 'String'>
1073
+ readonly meta: Prisma.FieldRef<"ApiKey", 'Json'>
1074
+ readonly serviceAccountId: Prisma.FieldRef<"ApiKey", 'String'>
1075
+ readonly token: Prisma.FieldRef<"ApiKey", 'String'>
1076
+ readonly createdAt: Prisma.FieldRef<"ApiKey", 'DateTime'>
1077
+ readonly updatedAt: Prisma.FieldRef<"ApiKey", 'DateTime'>
1078
+ }
1079
+
1080
+
1081
+ // Custom InputTypes
1082
+ /**
1083
+ * ApiKey findUnique
1084
+ */
1085
+ export type ApiKeyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1086
+ /**
1087
+ * Select specific fields to fetch from the ApiKey
1088
+ */
1089
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1090
+ /**
1091
+ * Omit specific fields from the ApiKey
1092
+ */
1093
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1094
+ /**
1095
+ * Choose, which related nodes to fetch as well
1096
+ */
1097
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1098
+ /**
1099
+ * Filter, which ApiKey to fetch.
1100
+ */
1101
+ where: Prisma.ApiKeyWhereUniqueInput
1102
+ }
1103
+
1104
+ /**
1105
+ * ApiKey findUniqueOrThrow
1106
+ */
1107
+ export type ApiKeyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1108
+ /**
1109
+ * Select specific fields to fetch from the ApiKey
1110
+ */
1111
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1112
+ /**
1113
+ * Omit specific fields from the ApiKey
1114
+ */
1115
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1116
+ /**
1117
+ * Choose, which related nodes to fetch as well
1118
+ */
1119
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1120
+ /**
1121
+ * Filter, which ApiKey to fetch.
1122
+ */
1123
+ where: Prisma.ApiKeyWhereUniqueInput
1124
+ }
1125
+
1126
+ /**
1127
+ * ApiKey findFirst
1128
+ */
1129
+ export type ApiKeyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1130
+ /**
1131
+ * Select specific fields to fetch from the ApiKey
1132
+ */
1133
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1134
+ /**
1135
+ * Omit specific fields from the ApiKey
1136
+ */
1137
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1138
+ /**
1139
+ * Choose, which related nodes to fetch as well
1140
+ */
1141
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1142
+ /**
1143
+ * Filter, which ApiKey to fetch.
1144
+ */
1145
+ where?: Prisma.ApiKeyWhereInput
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1148
+ *
1149
+ * Determine the order of ApiKeys to fetch.
1150
+ */
1151
+ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[]
1152
+ /**
1153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1154
+ *
1155
+ * Sets the position for searching for ApiKeys.
1156
+ */
1157
+ cursor?: Prisma.ApiKeyWhereUniqueInput
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1160
+ *
1161
+ * Take `±n` ApiKeys from the position of the cursor.
1162
+ */
1163
+ take?: number
1164
+ /**
1165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1166
+ *
1167
+ * Skip the first `n` ApiKeys.
1168
+ */
1169
+ skip?: number
1170
+ /**
1171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1172
+ *
1173
+ * Filter by unique combinations of ApiKeys.
1174
+ */
1175
+ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[]
1176
+ }
1177
+
1178
+ /**
1179
+ * ApiKey findFirstOrThrow
1180
+ */
1181
+ export type ApiKeyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1182
+ /**
1183
+ * Select specific fields to fetch from the ApiKey
1184
+ */
1185
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1186
+ /**
1187
+ * Omit specific fields from the ApiKey
1188
+ */
1189
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1190
+ /**
1191
+ * Choose, which related nodes to fetch as well
1192
+ */
1193
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1194
+ /**
1195
+ * Filter, which ApiKey to fetch.
1196
+ */
1197
+ where?: Prisma.ApiKeyWhereInput
1198
+ /**
1199
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1200
+ *
1201
+ * Determine the order of ApiKeys to fetch.
1202
+ */
1203
+ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[]
1204
+ /**
1205
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1206
+ *
1207
+ * Sets the position for searching for ApiKeys.
1208
+ */
1209
+ cursor?: Prisma.ApiKeyWhereUniqueInput
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1212
+ *
1213
+ * Take `±n` ApiKeys from the position of the cursor.
1214
+ */
1215
+ take?: number
1216
+ /**
1217
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1218
+ *
1219
+ * Skip the first `n` ApiKeys.
1220
+ */
1221
+ skip?: number
1222
+ /**
1223
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1224
+ *
1225
+ * Filter by unique combinations of ApiKeys.
1226
+ */
1227
+ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[]
1228
+ }
1229
+
1230
+ /**
1231
+ * ApiKey findMany
1232
+ */
1233
+ export type ApiKeyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1234
+ /**
1235
+ * Select specific fields to fetch from the ApiKey
1236
+ */
1237
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1238
+ /**
1239
+ * Omit specific fields from the ApiKey
1240
+ */
1241
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1242
+ /**
1243
+ * Choose, which related nodes to fetch as well
1244
+ */
1245
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1246
+ /**
1247
+ * Filter, which ApiKeys to fetch.
1248
+ */
1249
+ where?: Prisma.ApiKeyWhereInput
1250
+ /**
1251
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1252
+ *
1253
+ * Determine the order of ApiKeys to fetch.
1254
+ */
1255
+ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[]
1256
+ /**
1257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1258
+ *
1259
+ * Sets the position for listing ApiKeys.
1260
+ */
1261
+ cursor?: Prisma.ApiKeyWhereUniqueInput
1262
+ /**
1263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1264
+ *
1265
+ * Take `±n` ApiKeys from the position of the cursor.
1266
+ */
1267
+ take?: number
1268
+ /**
1269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1270
+ *
1271
+ * Skip the first `n` ApiKeys.
1272
+ */
1273
+ skip?: number
1274
+ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[]
1275
+ }
1276
+
1277
+ /**
1278
+ * ApiKey create
1279
+ */
1280
+ export type ApiKeyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1281
+ /**
1282
+ * Select specific fields to fetch from the ApiKey
1283
+ */
1284
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1285
+ /**
1286
+ * Omit specific fields from the ApiKey
1287
+ */
1288
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1289
+ /**
1290
+ * Choose, which related nodes to fetch as well
1291
+ */
1292
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1293
+ /**
1294
+ * The data needed to create a ApiKey.
1295
+ */
1296
+ data: Prisma.XOR<Prisma.ApiKeyCreateInput, Prisma.ApiKeyUncheckedCreateInput>
1297
+ }
1298
+
1299
+ /**
1300
+ * ApiKey createMany
1301
+ */
1302
+ export type ApiKeyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1303
+ /**
1304
+ * The data used to create many ApiKeys.
1305
+ */
1306
+ data: Prisma.ApiKeyCreateManyInput | Prisma.ApiKeyCreateManyInput[]
1307
+ }
1308
+
1309
+ /**
1310
+ * ApiKey createManyAndReturn
1311
+ */
1312
+ export type ApiKeyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1313
+ /**
1314
+ * Select specific fields to fetch from the ApiKey
1315
+ */
1316
+ select?: Prisma.ApiKeySelectCreateManyAndReturn<ExtArgs> | null
1317
+ /**
1318
+ * Omit specific fields from the ApiKey
1319
+ */
1320
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1321
+ /**
1322
+ * The data used to create many ApiKeys.
1323
+ */
1324
+ data: Prisma.ApiKeyCreateManyInput | Prisma.ApiKeyCreateManyInput[]
1325
+ /**
1326
+ * Choose, which related nodes to fetch as well
1327
+ */
1328
+ include?: Prisma.ApiKeyIncludeCreateManyAndReturn<ExtArgs> | null
1329
+ }
1330
+
1331
+ /**
1332
+ * ApiKey update
1333
+ */
1334
+ export type ApiKeyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1335
+ /**
1336
+ * Select specific fields to fetch from the ApiKey
1337
+ */
1338
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1339
+ /**
1340
+ * Omit specific fields from the ApiKey
1341
+ */
1342
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1343
+ /**
1344
+ * Choose, which related nodes to fetch as well
1345
+ */
1346
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1347
+ /**
1348
+ * The data needed to update a ApiKey.
1349
+ */
1350
+ data: Prisma.XOR<Prisma.ApiKeyUpdateInput, Prisma.ApiKeyUncheckedUpdateInput>
1351
+ /**
1352
+ * Choose, which ApiKey to update.
1353
+ */
1354
+ where: Prisma.ApiKeyWhereUniqueInput
1355
+ }
1356
+
1357
+ /**
1358
+ * ApiKey updateMany
1359
+ */
1360
+ export type ApiKeyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1361
+ /**
1362
+ * The data used to update ApiKeys.
1363
+ */
1364
+ data: Prisma.XOR<Prisma.ApiKeyUpdateManyMutationInput, Prisma.ApiKeyUncheckedUpdateManyInput>
1365
+ /**
1366
+ * Filter which ApiKeys to update
1367
+ */
1368
+ where?: Prisma.ApiKeyWhereInput
1369
+ /**
1370
+ * Limit how many ApiKeys to update.
1371
+ */
1372
+ limit?: number
1373
+ }
1374
+
1375
+ /**
1376
+ * ApiKey updateManyAndReturn
1377
+ */
1378
+ export type ApiKeyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1379
+ /**
1380
+ * Select specific fields to fetch from the ApiKey
1381
+ */
1382
+ select?: Prisma.ApiKeySelectUpdateManyAndReturn<ExtArgs> | null
1383
+ /**
1384
+ * Omit specific fields from the ApiKey
1385
+ */
1386
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1387
+ /**
1388
+ * The data used to update ApiKeys.
1389
+ */
1390
+ data: Prisma.XOR<Prisma.ApiKeyUpdateManyMutationInput, Prisma.ApiKeyUncheckedUpdateManyInput>
1391
+ /**
1392
+ * Filter which ApiKeys to update
1393
+ */
1394
+ where?: Prisma.ApiKeyWhereInput
1395
+ /**
1396
+ * Limit how many ApiKeys to update.
1397
+ */
1398
+ limit?: number
1399
+ /**
1400
+ * Choose, which related nodes to fetch as well
1401
+ */
1402
+ include?: Prisma.ApiKeyIncludeUpdateManyAndReturn<ExtArgs> | null
1403
+ }
1404
+
1405
+ /**
1406
+ * ApiKey upsert
1407
+ */
1408
+ export type ApiKeyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1409
+ /**
1410
+ * Select specific fields to fetch from the ApiKey
1411
+ */
1412
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1413
+ /**
1414
+ * Omit specific fields from the ApiKey
1415
+ */
1416
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1417
+ /**
1418
+ * Choose, which related nodes to fetch as well
1419
+ */
1420
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1421
+ /**
1422
+ * The filter to search for the ApiKey to update in case it exists.
1423
+ */
1424
+ where: Prisma.ApiKeyWhereUniqueInput
1425
+ /**
1426
+ * In case the ApiKey found by the `where` argument doesn't exist, create a new ApiKey with this data.
1427
+ */
1428
+ create: Prisma.XOR<Prisma.ApiKeyCreateInput, Prisma.ApiKeyUncheckedCreateInput>
1429
+ /**
1430
+ * In case the ApiKey was found with the provided `where` argument, update it with this data.
1431
+ */
1432
+ update: Prisma.XOR<Prisma.ApiKeyUpdateInput, Prisma.ApiKeyUncheckedUpdateInput>
1433
+ }
1434
+
1435
+ /**
1436
+ * ApiKey delete
1437
+ */
1438
+ export type ApiKeyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1439
+ /**
1440
+ * Select specific fields to fetch from the ApiKey
1441
+ */
1442
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1443
+ /**
1444
+ * Omit specific fields from the ApiKey
1445
+ */
1446
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1447
+ /**
1448
+ * Choose, which related nodes to fetch as well
1449
+ */
1450
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1451
+ /**
1452
+ * Filter which ApiKey to delete.
1453
+ */
1454
+ where: Prisma.ApiKeyWhereUniqueInput
1455
+ }
1456
+
1457
+ /**
1458
+ * ApiKey deleteMany
1459
+ */
1460
+ export type ApiKeyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1461
+ /**
1462
+ * Filter which ApiKeys to delete
1463
+ */
1464
+ where?: Prisma.ApiKeyWhereInput
1465
+ /**
1466
+ * Limit how many ApiKeys to delete.
1467
+ */
1468
+ limit?: number
1469
+ }
1470
+
1471
+ /**
1472
+ * ApiKey.worker
1473
+ */
1474
+ export type ApiKey$workerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1475
+ /**
1476
+ * Select specific fields to fetch from the WorkerVersion
1477
+ */
1478
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1479
+ /**
1480
+ * Omit specific fields from the WorkerVersion
1481
+ */
1482
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1483
+ /**
1484
+ * Choose, which related nodes to fetch as well
1485
+ */
1486
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1487
+ where?: Prisma.WorkerVersionWhereInput
1488
+ }
1489
+
1490
+ /**
1491
+ * ApiKey without action
1492
+ */
1493
+ export type ApiKeyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1494
+ /**
1495
+ * Select specific fields to fetch from the ApiKey
1496
+ */
1497
+ select?: Prisma.ApiKeySelect<ExtArgs> | null
1498
+ /**
1499
+ * Omit specific fields from the ApiKey
1500
+ */
1501
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null
1502
+ /**
1503
+ * Choose, which related nodes to fetch as well
1504
+ */
1505
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null
1506
+ }