@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,1974 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `WorkerVersion` 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 WorkerVersion
18
+ *
19
+ */
20
+ export type WorkerVersionModel = runtime.Types.Result.DefaultSelection<Prisma.$WorkerVersionPayload>
21
+
22
+ export type AggregateWorkerVersion = {
23
+ _count: WorkerVersionCountAggregateOutputType | null
24
+ _min: WorkerVersionMinAggregateOutputType | null
25
+ _max: WorkerVersionMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type WorkerVersionMinAggregateOutputType = {
29
+ id: string | null
30
+ status: $Enums.WorkerVersionStatus | null
31
+ enabled: boolean | null
32
+ runtimeId: string | null
33
+ workerId: string | null
34
+ digest: string | null
35
+ apiKeyId: string | null
36
+ createdAt: Date | null
37
+ updatedAt: Date | null
38
+ }
39
+
40
+ export type WorkerVersionMaxAggregateOutputType = {
41
+ id: string | null
42
+ status: $Enums.WorkerVersionStatus | null
43
+ enabled: boolean | null
44
+ runtimeId: string | null
45
+ workerId: string | null
46
+ digest: string | null
47
+ apiKeyId: string | null
48
+ createdAt: Date | null
49
+ updatedAt: Date | null
50
+ }
51
+
52
+ export type WorkerVersionCountAggregateOutputType = {
53
+ id: number
54
+ meta: number
55
+ status: number
56
+ enabled: number
57
+ runtimeId: number
58
+ workerId: number
59
+ digest: number
60
+ apiKeyId: number
61
+ createdAt: number
62
+ updatedAt: number
63
+ _all: number
64
+ }
65
+
66
+
67
+ export type WorkerVersionMinAggregateInputType = {
68
+ id?: true
69
+ status?: true
70
+ enabled?: true
71
+ runtimeId?: true
72
+ workerId?: true
73
+ digest?: true
74
+ apiKeyId?: true
75
+ createdAt?: true
76
+ updatedAt?: true
77
+ }
78
+
79
+ export type WorkerVersionMaxAggregateInputType = {
80
+ id?: true
81
+ status?: true
82
+ enabled?: true
83
+ runtimeId?: true
84
+ workerId?: true
85
+ digest?: true
86
+ apiKeyId?: true
87
+ createdAt?: true
88
+ updatedAt?: true
89
+ }
90
+
91
+ export type WorkerVersionCountAggregateInputType = {
92
+ id?: true
93
+ meta?: true
94
+ status?: true
95
+ enabled?: true
96
+ runtimeId?: true
97
+ workerId?: true
98
+ digest?: true
99
+ apiKeyId?: true
100
+ createdAt?: true
101
+ updatedAt?: true
102
+ _all?: true
103
+ }
104
+
105
+ export type WorkerVersionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
106
+ /**
107
+ * Filter which WorkerVersion to aggregate.
108
+ */
109
+ where?: Prisma.WorkerVersionWhereInput
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
112
+ *
113
+ * Determine the order of WorkerVersions to fetch.
114
+ */
115
+ orderBy?: Prisma.WorkerVersionOrderByWithRelationInput | Prisma.WorkerVersionOrderByWithRelationInput[]
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
118
+ *
119
+ * Sets the start position
120
+ */
121
+ cursor?: Prisma.WorkerVersionWhereUniqueInput
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
124
+ *
125
+ * Take `±n` WorkerVersions from the position of the cursor.
126
+ */
127
+ take?: number
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
130
+ *
131
+ * Skip the first `n` WorkerVersions.
132
+ */
133
+ skip?: number
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Count returned WorkerVersions
138
+ **/
139
+ _count?: true | WorkerVersionCountAggregateInputType
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
142
+ *
143
+ * Select which fields to find the minimum value
144
+ **/
145
+ _min?: WorkerVersionMinAggregateInputType
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
148
+ *
149
+ * Select which fields to find the maximum value
150
+ **/
151
+ _max?: WorkerVersionMaxAggregateInputType
152
+ }
153
+
154
+ export type GetWorkerVersionAggregateType<T extends WorkerVersionAggregateArgs> = {
155
+ [P in keyof T & keyof AggregateWorkerVersion]: P extends '_count' | 'count'
156
+ ? T[P] extends true
157
+ ? number
158
+ : Prisma.GetScalarType<T[P], AggregateWorkerVersion[P]>
159
+ : Prisma.GetScalarType<T[P], AggregateWorkerVersion[P]>
160
+ }
161
+
162
+
163
+
164
+
165
+ export type WorkerVersionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
166
+ where?: Prisma.WorkerVersionWhereInput
167
+ orderBy?: Prisma.WorkerVersionOrderByWithAggregationInput | Prisma.WorkerVersionOrderByWithAggregationInput[]
168
+ by: Prisma.WorkerVersionScalarFieldEnum[] | Prisma.WorkerVersionScalarFieldEnum
169
+ having?: Prisma.WorkerVersionScalarWhereWithAggregatesInput
170
+ take?: number
171
+ skip?: number
172
+ _count?: WorkerVersionCountAggregateInputType | true
173
+ _min?: WorkerVersionMinAggregateInputType
174
+ _max?: WorkerVersionMaxAggregateInputType
175
+ }
176
+
177
+ export type WorkerVersionGroupByOutputType = {
178
+ id: string
179
+ meta: PrismaJson.CommonObjectMeta
180
+ status: $Enums.WorkerVersionStatus
181
+ enabled: boolean
182
+ runtimeId: string | null
183
+ workerId: string
184
+ digest: string
185
+ apiKeyId: string
186
+ createdAt: Date
187
+ updatedAt: Date
188
+ _count: WorkerVersionCountAggregateOutputType | null
189
+ _min: WorkerVersionMinAggregateOutputType | null
190
+ _max: WorkerVersionMaxAggregateOutputType | null
191
+ }
192
+
193
+ type GetWorkerVersionGroupByPayload<T extends WorkerVersionGroupByArgs> = Prisma.PrismaPromise<
194
+ Array<
195
+ Prisma.PickEnumerable<WorkerVersionGroupByOutputType, T['by']> &
196
+ {
197
+ [P in ((keyof T) & (keyof WorkerVersionGroupByOutputType))]: P extends '_count'
198
+ ? T[P] extends boolean
199
+ ? number
200
+ : Prisma.GetScalarType<T[P], WorkerVersionGroupByOutputType[P]>
201
+ : Prisma.GetScalarType<T[P], WorkerVersionGroupByOutputType[P]>
202
+ }
203
+ >
204
+ >
205
+
206
+
207
+
208
+ export type WorkerVersionWhereInput = {
209
+ AND?: Prisma.WorkerVersionWhereInput | Prisma.WorkerVersionWhereInput[]
210
+ OR?: Prisma.WorkerVersionWhereInput[]
211
+ NOT?: Prisma.WorkerVersionWhereInput | Prisma.WorkerVersionWhereInput[]
212
+ id?: Prisma.StringFilter<"WorkerVersion"> | string
213
+ meta?: Prisma.JsonFilter<"WorkerVersion">
214
+ status?: Prisma.EnumWorkerVersionStatusFilter<"WorkerVersion"> | $Enums.WorkerVersionStatus
215
+ enabled?: Prisma.BoolFilter<"WorkerVersion"> | boolean
216
+ runtimeId?: Prisma.StringNullableFilter<"WorkerVersion"> | string | null
217
+ workerId?: Prisma.StringFilter<"WorkerVersion"> | string
218
+ digest?: Prisma.StringFilter<"WorkerVersion"> | string
219
+ apiKeyId?: Prisma.StringFilter<"WorkerVersion"> | string
220
+ createdAt?: Prisma.DateTimeFilter<"WorkerVersion"> | Date | string
221
+ updatedAt?: Prisma.DateTimeFilter<"WorkerVersion"> | Date | string
222
+ worker?: Prisma.XOR<Prisma.WorkerScalarRelationFilter, Prisma.WorkerWhereInput>
223
+ apiKey?: Prisma.XOR<Prisma.ApiKeyScalarRelationFilter, Prisma.ApiKeyWhereInput>
224
+ unitRegistrations?: Prisma.WorkerUnitRegistrationListRelationFilter
225
+ logs?: Prisma.WorkerVersionLogListRelationFilter
226
+ }
227
+
228
+ export type WorkerVersionOrderByWithRelationInput = {
229
+ id?: Prisma.SortOrder
230
+ meta?: Prisma.SortOrder
231
+ status?: Prisma.SortOrder
232
+ enabled?: Prisma.SortOrder
233
+ runtimeId?: Prisma.SortOrderInput | Prisma.SortOrder
234
+ workerId?: Prisma.SortOrder
235
+ digest?: Prisma.SortOrder
236
+ apiKeyId?: Prisma.SortOrder
237
+ createdAt?: Prisma.SortOrder
238
+ updatedAt?: Prisma.SortOrder
239
+ worker?: Prisma.WorkerOrderByWithRelationInput
240
+ apiKey?: Prisma.ApiKeyOrderByWithRelationInput
241
+ unitRegistrations?: Prisma.WorkerUnitRegistrationOrderByRelationAggregateInput
242
+ logs?: Prisma.WorkerVersionLogOrderByRelationAggregateInput
243
+ }
244
+
245
+ export type WorkerVersionWhereUniqueInput = Prisma.AtLeast<{
246
+ id?: string
247
+ digest?: string
248
+ apiKeyId?: string
249
+ AND?: Prisma.WorkerVersionWhereInput | Prisma.WorkerVersionWhereInput[]
250
+ OR?: Prisma.WorkerVersionWhereInput[]
251
+ NOT?: Prisma.WorkerVersionWhereInput | Prisma.WorkerVersionWhereInput[]
252
+ meta?: Prisma.JsonFilter<"WorkerVersion">
253
+ status?: Prisma.EnumWorkerVersionStatusFilter<"WorkerVersion"> | $Enums.WorkerVersionStatus
254
+ enabled?: Prisma.BoolFilter<"WorkerVersion"> | boolean
255
+ runtimeId?: Prisma.StringNullableFilter<"WorkerVersion"> | string | null
256
+ workerId?: Prisma.StringFilter<"WorkerVersion"> | string
257
+ createdAt?: Prisma.DateTimeFilter<"WorkerVersion"> | Date | string
258
+ updatedAt?: Prisma.DateTimeFilter<"WorkerVersion"> | Date | string
259
+ worker?: Prisma.XOR<Prisma.WorkerScalarRelationFilter, Prisma.WorkerWhereInput>
260
+ apiKey?: Prisma.XOR<Prisma.ApiKeyScalarRelationFilter, Prisma.ApiKeyWhereInput>
261
+ unitRegistrations?: Prisma.WorkerUnitRegistrationListRelationFilter
262
+ logs?: Prisma.WorkerVersionLogListRelationFilter
263
+ }, "id" | "digest" | "apiKeyId">
264
+
265
+ export type WorkerVersionOrderByWithAggregationInput = {
266
+ id?: Prisma.SortOrder
267
+ meta?: Prisma.SortOrder
268
+ status?: Prisma.SortOrder
269
+ enabled?: Prisma.SortOrder
270
+ runtimeId?: Prisma.SortOrderInput | Prisma.SortOrder
271
+ workerId?: Prisma.SortOrder
272
+ digest?: Prisma.SortOrder
273
+ apiKeyId?: Prisma.SortOrder
274
+ createdAt?: Prisma.SortOrder
275
+ updatedAt?: Prisma.SortOrder
276
+ _count?: Prisma.WorkerVersionCountOrderByAggregateInput
277
+ _max?: Prisma.WorkerVersionMaxOrderByAggregateInput
278
+ _min?: Prisma.WorkerVersionMinOrderByAggregateInput
279
+ }
280
+
281
+ export type WorkerVersionScalarWhereWithAggregatesInput = {
282
+ AND?: Prisma.WorkerVersionScalarWhereWithAggregatesInput | Prisma.WorkerVersionScalarWhereWithAggregatesInput[]
283
+ OR?: Prisma.WorkerVersionScalarWhereWithAggregatesInput[]
284
+ NOT?: Prisma.WorkerVersionScalarWhereWithAggregatesInput | Prisma.WorkerVersionScalarWhereWithAggregatesInput[]
285
+ id?: Prisma.StringWithAggregatesFilter<"WorkerVersion"> | string
286
+ meta?: Prisma.JsonWithAggregatesFilter<"WorkerVersion">
287
+ status?: Prisma.EnumWorkerVersionStatusWithAggregatesFilter<"WorkerVersion"> | $Enums.WorkerVersionStatus
288
+ enabled?: Prisma.BoolWithAggregatesFilter<"WorkerVersion"> | boolean
289
+ runtimeId?: Prisma.StringNullableWithAggregatesFilter<"WorkerVersion"> | string | null
290
+ workerId?: Prisma.StringWithAggregatesFilter<"WorkerVersion"> | string
291
+ digest?: Prisma.StringWithAggregatesFilter<"WorkerVersion"> | string
292
+ apiKeyId?: Prisma.StringWithAggregatesFilter<"WorkerVersion"> | string
293
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"WorkerVersion"> | Date | string
294
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"WorkerVersion"> | Date | string
295
+ }
296
+
297
+ export type WorkerVersionCreateInput = {
298
+ id?: string
299
+ meta: PrismaJson.CommonObjectMeta
300
+ status?: $Enums.WorkerVersionStatus
301
+ enabled?: boolean
302
+ runtimeId?: string | null
303
+ digest: string
304
+ createdAt?: Date | string
305
+ updatedAt?: Date | string
306
+ worker: Prisma.WorkerCreateNestedOneWithoutVersionsInput
307
+ apiKey: Prisma.ApiKeyCreateNestedOneWithoutWorkerInput
308
+ unitRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutWorkerVersionInput
309
+ logs?: Prisma.WorkerVersionLogCreateNestedManyWithoutWorkerVersionInput
310
+ }
311
+
312
+ export type WorkerVersionUncheckedCreateInput = {
313
+ id?: string
314
+ meta: PrismaJson.CommonObjectMeta
315
+ status?: $Enums.WorkerVersionStatus
316
+ enabled?: boolean
317
+ runtimeId?: string | null
318
+ workerId: string
319
+ digest: string
320
+ apiKeyId: string
321
+ createdAt?: Date | string
322
+ updatedAt?: Date | string
323
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutWorkerVersionInput
324
+ logs?: Prisma.WorkerVersionLogUncheckedCreateNestedManyWithoutWorkerVersionInput
325
+ }
326
+
327
+ export type WorkerVersionUpdateInput = {
328
+ id?: Prisma.StringFieldUpdateOperationsInput | string
329
+ meta?: PrismaJson.CommonObjectMeta
330
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
331
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
332
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
333
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
334
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
335
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
336
+ worker?: Prisma.WorkerUpdateOneRequiredWithoutVersionsNestedInput
337
+ apiKey?: Prisma.ApiKeyUpdateOneRequiredWithoutWorkerNestedInput
338
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutWorkerVersionNestedInput
339
+ logs?: Prisma.WorkerVersionLogUpdateManyWithoutWorkerVersionNestedInput
340
+ }
341
+
342
+ export type WorkerVersionUncheckedUpdateInput = {
343
+ id?: Prisma.StringFieldUpdateOperationsInput | string
344
+ meta?: PrismaJson.CommonObjectMeta
345
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
346
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
347
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
348
+ workerId?: Prisma.StringFieldUpdateOperationsInput | string
349
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
350
+ apiKeyId?: Prisma.StringFieldUpdateOperationsInput | string
351
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
352
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
353
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutWorkerVersionNestedInput
354
+ logs?: Prisma.WorkerVersionLogUncheckedUpdateManyWithoutWorkerVersionNestedInput
355
+ }
356
+
357
+ export type WorkerVersionCreateManyInput = {
358
+ id?: string
359
+ meta: PrismaJson.CommonObjectMeta
360
+ status?: $Enums.WorkerVersionStatus
361
+ enabled?: boolean
362
+ runtimeId?: string | null
363
+ workerId: string
364
+ digest: string
365
+ apiKeyId: string
366
+ createdAt?: Date | string
367
+ updatedAt?: Date | string
368
+ }
369
+
370
+ export type WorkerVersionUpdateManyMutationInput = {
371
+ id?: Prisma.StringFieldUpdateOperationsInput | string
372
+ meta?: PrismaJson.CommonObjectMeta
373
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
374
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
375
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
376
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
377
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
378
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
+ }
380
+
381
+ export type WorkerVersionUncheckedUpdateManyInput = {
382
+ id?: Prisma.StringFieldUpdateOperationsInput | string
383
+ meta?: PrismaJson.CommonObjectMeta
384
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
385
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
386
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
387
+ workerId?: Prisma.StringFieldUpdateOperationsInput | string
388
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
389
+ apiKeyId?: Prisma.StringFieldUpdateOperationsInput | string
390
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
391
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
392
+ }
393
+
394
+ export type WorkerVersionNullableScalarRelationFilter = {
395
+ is?: Prisma.WorkerVersionWhereInput | null
396
+ isNot?: Prisma.WorkerVersionWhereInput | null
397
+ }
398
+
399
+ export type WorkerVersionListRelationFilter = {
400
+ every?: Prisma.WorkerVersionWhereInput
401
+ some?: Prisma.WorkerVersionWhereInput
402
+ none?: Prisma.WorkerVersionWhereInput
403
+ }
404
+
405
+ export type WorkerVersionOrderByRelationAggregateInput = {
406
+ _count?: Prisma.SortOrder
407
+ }
408
+
409
+ export type WorkerVersionCountOrderByAggregateInput = {
410
+ id?: Prisma.SortOrder
411
+ meta?: Prisma.SortOrder
412
+ status?: Prisma.SortOrder
413
+ enabled?: Prisma.SortOrder
414
+ runtimeId?: Prisma.SortOrder
415
+ workerId?: Prisma.SortOrder
416
+ digest?: Prisma.SortOrder
417
+ apiKeyId?: Prisma.SortOrder
418
+ createdAt?: Prisma.SortOrder
419
+ updatedAt?: Prisma.SortOrder
420
+ }
421
+
422
+ export type WorkerVersionMaxOrderByAggregateInput = {
423
+ id?: Prisma.SortOrder
424
+ status?: Prisma.SortOrder
425
+ enabled?: Prisma.SortOrder
426
+ runtimeId?: Prisma.SortOrder
427
+ workerId?: Prisma.SortOrder
428
+ digest?: Prisma.SortOrder
429
+ apiKeyId?: Prisma.SortOrder
430
+ createdAt?: Prisma.SortOrder
431
+ updatedAt?: Prisma.SortOrder
432
+ }
433
+
434
+ export type WorkerVersionMinOrderByAggregateInput = {
435
+ id?: Prisma.SortOrder
436
+ status?: Prisma.SortOrder
437
+ enabled?: Prisma.SortOrder
438
+ runtimeId?: Prisma.SortOrder
439
+ workerId?: Prisma.SortOrder
440
+ digest?: Prisma.SortOrder
441
+ apiKeyId?: Prisma.SortOrder
442
+ createdAt?: Prisma.SortOrder
443
+ updatedAt?: Prisma.SortOrder
444
+ }
445
+
446
+ export type WorkerVersionScalarRelationFilter = {
447
+ is?: Prisma.WorkerVersionWhereInput
448
+ isNot?: Prisma.WorkerVersionWhereInput
449
+ }
450
+
451
+ export type WorkerVersionCreateNestedOneWithoutApiKeyInput = {
452
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedCreateWithoutApiKeyInput>
453
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutApiKeyInput
454
+ connect?: Prisma.WorkerVersionWhereUniqueInput
455
+ }
456
+
457
+ export type WorkerVersionUncheckedCreateNestedOneWithoutApiKeyInput = {
458
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedCreateWithoutApiKeyInput>
459
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutApiKeyInput
460
+ connect?: Prisma.WorkerVersionWhereUniqueInput
461
+ }
462
+
463
+ export type WorkerVersionUpdateOneWithoutApiKeyNestedInput = {
464
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedCreateWithoutApiKeyInput>
465
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutApiKeyInput
466
+ upsert?: Prisma.WorkerVersionUpsertWithoutApiKeyInput
467
+ disconnect?: Prisma.WorkerVersionWhereInput | boolean
468
+ delete?: Prisma.WorkerVersionWhereInput | boolean
469
+ connect?: Prisma.WorkerVersionWhereUniqueInput
470
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkerVersionUpdateToOneWithWhereWithoutApiKeyInput, Prisma.WorkerVersionUpdateWithoutApiKeyInput>, Prisma.WorkerVersionUncheckedUpdateWithoutApiKeyInput>
471
+ }
472
+
473
+ export type WorkerVersionUncheckedUpdateOneWithoutApiKeyNestedInput = {
474
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedCreateWithoutApiKeyInput>
475
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutApiKeyInput
476
+ upsert?: Prisma.WorkerVersionUpsertWithoutApiKeyInput
477
+ disconnect?: Prisma.WorkerVersionWhereInput | boolean
478
+ delete?: Prisma.WorkerVersionWhereInput | boolean
479
+ connect?: Prisma.WorkerVersionWhereUniqueInput
480
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkerVersionUpdateToOneWithWhereWithoutApiKeyInput, Prisma.WorkerVersionUpdateWithoutApiKeyInput>, Prisma.WorkerVersionUncheckedUpdateWithoutApiKeyInput>
481
+ }
482
+
483
+ export type WorkerVersionCreateNestedManyWithoutWorkerInput = {
484
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutWorkerInput, Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput> | Prisma.WorkerVersionCreateWithoutWorkerInput[] | Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput[]
485
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput | Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput[]
486
+ createMany?: Prisma.WorkerVersionCreateManyWorkerInputEnvelope
487
+ connect?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
488
+ }
489
+
490
+ export type WorkerVersionUncheckedCreateNestedManyWithoutWorkerInput = {
491
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutWorkerInput, Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput> | Prisma.WorkerVersionCreateWithoutWorkerInput[] | Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput[]
492
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput | Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput[]
493
+ createMany?: Prisma.WorkerVersionCreateManyWorkerInputEnvelope
494
+ connect?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
495
+ }
496
+
497
+ export type WorkerVersionUpdateManyWithoutWorkerNestedInput = {
498
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutWorkerInput, Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput> | Prisma.WorkerVersionCreateWithoutWorkerInput[] | Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput[]
499
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput | Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput[]
500
+ upsert?: Prisma.WorkerVersionUpsertWithWhereUniqueWithoutWorkerInput | Prisma.WorkerVersionUpsertWithWhereUniqueWithoutWorkerInput[]
501
+ createMany?: Prisma.WorkerVersionCreateManyWorkerInputEnvelope
502
+ set?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
503
+ disconnect?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
504
+ delete?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
505
+ connect?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
506
+ update?: Prisma.WorkerVersionUpdateWithWhereUniqueWithoutWorkerInput | Prisma.WorkerVersionUpdateWithWhereUniqueWithoutWorkerInput[]
507
+ updateMany?: Prisma.WorkerVersionUpdateManyWithWhereWithoutWorkerInput | Prisma.WorkerVersionUpdateManyWithWhereWithoutWorkerInput[]
508
+ deleteMany?: Prisma.WorkerVersionScalarWhereInput | Prisma.WorkerVersionScalarWhereInput[]
509
+ }
510
+
511
+ export type WorkerVersionUncheckedUpdateManyWithoutWorkerNestedInput = {
512
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutWorkerInput, Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput> | Prisma.WorkerVersionCreateWithoutWorkerInput[] | Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput[]
513
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput | Prisma.WorkerVersionCreateOrConnectWithoutWorkerInput[]
514
+ upsert?: Prisma.WorkerVersionUpsertWithWhereUniqueWithoutWorkerInput | Prisma.WorkerVersionUpsertWithWhereUniqueWithoutWorkerInput[]
515
+ createMany?: Prisma.WorkerVersionCreateManyWorkerInputEnvelope
516
+ set?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
517
+ disconnect?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
518
+ delete?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
519
+ connect?: Prisma.WorkerVersionWhereUniqueInput | Prisma.WorkerVersionWhereUniqueInput[]
520
+ update?: Prisma.WorkerVersionUpdateWithWhereUniqueWithoutWorkerInput | Prisma.WorkerVersionUpdateWithWhereUniqueWithoutWorkerInput[]
521
+ updateMany?: Prisma.WorkerVersionUpdateManyWithWhereWithoutWorkerInput | Prisma.WorkerVersionUpdateManyWithWhereWithoutWorkerInput[]
522
+ deleteMany?: Prisma.WorkerVersionScalarWhereInput | Prisma.WorkerVersionScalarWhereInput[]
523
+ }
524
+
525
+ export type EnumWorkerVersionStatusFieldUpdateOperationsInput = {
526
+ set?: $Enums.WorkerVersionStatus
527
+ }
528
+
529
+ export type BoolFieldUpdateOperationsInput = {
530
+ set?: boolean
531
+ }
532
+
533
+ export type WorkerVersionCreateNestedOneWithoutUnitRegistrationsInput = {
534
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutUnitRegistrationsInput, Prisma.WorkerVersionUncheckedCreateWithoutUnitRegistrationsInput>
535
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutUnitRegistrationsInput
536
+ connect?: Prisma.WorkerVersionWhereUniqueInput
537
+ }
538
+
539
+ export type WorkerVersionUpdateOneRequiredWithoutUnitRegistrationsNestedInput = {
540
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutUnitRegistrationsInput, Prisma.WorkerVersionUncheckedCreateWithoutUnitRegistrationsInput>
541
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutUnitRegistrationsInput
542
+ upsert?: Prisma.WorkerVersionUpsertWithoutUnitRegistrationsInput
543
+ connect?: Prisma.WorkerVersionWhereUniqueInput
544
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkerVersionUpdateToOneWithWhereWithoutUnitRegistrationsInput, Prisma.WorkerVersionUpdateWithoutUnitRegistrationsInput>, Prisma.WorkerVersionUncheckedUpdateWithoutUnitRegistrationsInput>
545
+ }
546
+
547
+ export type WorkerVersionCreateNestedOneWithoutLogsInput = {
548
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutLogsInput, Prisma.WorkerVersionUncheckedCreateWithoutLogsInput>
549
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutLogsInput
550
+ connect?: Prisma.WorkerVersionWhereUniqueInput
551
+ }
552
+
553
+ export type WorkerVersionUpdateOneRequiredWithoutLogsNestedInput = {
554
+ create?: Prisma.XOR<Prisma.WorkerVersionCreateWithoutLogsInput, Prisma.WorkerVersionUncheckedCreateWithoutLogsInput>
555
+ connectOrCreate?: Prisma.WorkerVersionCreateOrConnectWithoutLogsInput
556
+ upsert?: Prisma.WorkerVersionUpsertWithoutLogsInput
557
+ connect?: Prisma.WorkerVersionWhereUniqueInput
558
+ update?: Prisma.XOR<Prisma.XOR<Prisma.WorkerVersionUpdateToOneWithWhereWithoutLogsInput, Prisma.WorkerVersionUpdateWithoutLogsInput>, Prisma.WorkerVersionUncheckedUpdateWithoutLogsInput>
559
+ }
560
+
561
+ export type WorkerVersionCreateWithoutApiKeyInput = {
562
+ id?: string
563
+ meta: PrismaJson.CommonObjectMeta
564
+ status?: $Enums.WorkerVersionStatus
565
+ enabled?: boolean
566
+ runtimeId?: string | null
567
+ digest: string
568
+ createdAt?: Date | string
569
+ updatedAt?: Date | string
570
+ worker: Prisma.WorkerCreateNestedOneWithoutVersionsInput
571
+ unitRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutWorkerVersionInput
572
+ logs?: Prisma.WorkerVersionLogCreateNestedManyWithoutWorkerVersionInput
573
+ }
574
+
575
+ export type WorkerVersionUncheckedCreateWithoutApiKeyInput = {
576
+ id?: string
577
+ meta: PrismaJson.CommonObjectMeta
578
+ status?: $Enums.WorkerVersionStatus
579
+ enabled?: boolean
580
+ runtimeId?: string | null
581
+ workerId: string
582
+ digest: string
583
+ createdAt?: Date | string
584
+ updatedAt?: Date | string
585
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutWorkerVersionInput
586
+ logs?: Prisma.WorkerVersionLogUncheckedCreateNestedManyWithoutWorkerVersionInput
587
+ }
588
+
589
+ export type WorkerVersionCreateOrConnectWithoutApiKeyInput = {
590
+ where: Prisma.WorkerVersionWhereUniqueInput
591
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedCreateWithoutApiKeyInput>
592
+ }
593
+
594
+ export type WorkerVersionUpsertWithoutApiKeyInput = {
595
+ update: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedUpdateWithoutApiKeyInput>
596
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedCreateWithoutApiKeyInput>
597
+ where?: Prisma.WorkerVersionWhereInput
598
+ }
599
+
600
+ export type WorkerVersionUpdateToOneWithWhereWithoutApiKeyInput = {
601
+ where?: Prisma.WorkerVersionWhereInput
602
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutApiKeyInput, Prisma.WorkerVersionUncheckedUpdateWithoutApiKeyInput>
603
+ }
604
+
605
+ export type WorkerVersionUpdateWithoutApiKeyInput = {
606
+ id?: Prisma.StringFieldUpdateOperationsInput | string
607
+ meta?: PrismaJson.CommonObjectMeta
608
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
609
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
610
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
611
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
612
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
613
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
614
+ worker?: Prisma.WorkerUpdateOneRequiredWithoutVersionsNestedInput
615
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutWorkerVersionNestedInput
616
+ logs?: Prisma.WorkerVersionLogUpdateManyWithoutWorkerVersionNestedInput
617
+ }
618
+
619
+ export type WorkerVersionUncheckedUpdateWithoutApiKeyInput = {
620
+ id?: Prisma.StringFieldUpdateOperationsInput | string
621
+ meta?: PrismaJson.CommonObjectMeta
622
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
623
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
624
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
625
+ workerId?: Prisma.StringFieldUpdateOperationsInput | string
626
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
627
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
628
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
629
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutWorkerVersionNestedInput
630
+ logs?: Prisma.WorkerVersionLogUncheckedUpdateManyWithoutWorkerVersionNestedInput
631
+ }
632
+
633
+ export type WorkerVersionCreateWithoutWorkerInput = {
634
+ id?: string
635
+ meta: PrismaJson.CommonObjectMeta
636
+ status?: $Enums.WorkerVersionStatus
637
+ enabled?: boolean
638
+ runtimeId?: string | null
639
+ digest: string
640
+ createdAt?: Date | string
641
+ updatedAt?: Date | string
642
+ apiKey: Prisma.ApiKeyCreateNestedOneWithoutWorkerInput
643
+ unitRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutWorkerVersionInput
644
+ logs?: Prisma.WorkerVersionLogCreateNestedManyWithoutWorkerVersionInput
645
+ }
646
+
647
+ export type WorkerVersionUncheckedCreateWithoutWorkerInput = {
648
+ id?: string
649
+ meta: PrismaJson.CommonObjectMeta
650
+ status?: $Enums.WorkerVersionStatus
651
+ enabled?: boolean
652
+ runtimeId?: string | null
653
+ digest: string
654
+ apiKeyId: string
655
+ createdAt?: Date | string
656
+ updatedAt?: Date | string
657
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutWorkerVersionInput
658
+ logs?: Prisma.WorkerVersionLogUncheckedCreateNestedManyWithoutWorkerVersionInput
659
+ }
660
+
661
+ export type WorkerVersionCreateOrConnectWithoutWorkerInput = {
662
+ where: Prisma.WorkerVersionWhereUniqueInput
663
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutWorkerInput, Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput>
664
+ }
665
+
666
+ export type WorkerVersionCreateManyWorkerInputEnvelope = {
667
+ data: Prisma.WorkerVersionCreateManyWorkerInput | Prisma.WorkerVersionCreateManyWorkerInput[]
668
+ }
669
+
670
+ export type WorkerVersionUpsertWithWhereUniqueWithoutWorkerInput = {
671
+ where: Prisma.WorkerVersionWhereUniqueInput
672
+ update: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutWorkerInput, Prisma.WorkerVersionUncheckedUpdateWithoutWorkerInput>
673
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutWorkerInput, Prisma.WorkerVersionUncheckedCreateWithoutWorkerInput>
674
+ }
675
+
676
+ export type WorkerVersionUpdateWithWhereUniqueWithoutWorkerInput = {
677
+ where: Prisma.WorkerVersionWhereUniqueInput
678
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutWorkerInput, Prisma.WorkerVersionUncheckedUpdateWithoutWorkerInput>
679
+ }
680
+
681
+ export type WorkerVersionUpdateManyWithWhereWithoutWorkerInput = {
682
+ where: Prisma.WorkerVersionScalarWhereInput
683
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateManyMutationInput, Prisma.WorkerVersionUncheckedUpdateManyWithoutWorkerInput>
684
+ }
685
+
686
+ export type WorkerVersionScalarWhereInput = {
687
+ AND?: Prisma.WorkerVersionScalarWhereInput | Prisma.WorkerVersionScalarWhereInput[]
688
+ OR?: Prisma.WorkerVersionScalarWhereInput[]
689
+ NOT?: Prisma.WorkerVersionScalarWhereInput | Prisma.WorkerVersionScalarWhereInput[]
690
+ id?: Prisma.StringFilter<"WorkerVersion"> | string
691
+ meta?: Prisma.JsonFilter<"WorkerVersion">
692
+ status?: Prisma.EnumWorkerVersionStatusFilter<"WorkerVersion"> | $Enums.WorkerVersionStatus
693
+ enabled?: Prisma.BoolFilter<"WorkerVersion"> | boolean
694
+ runtimeId?: Prisma.StringNullableFilter<"WorkerVersion"> | string | null
695
+ workerId?: Prisma.StringFilter<"WorkerVersion"> | string
696
+ digest?: Prisma.StringFilter<"WorkerVersion"> | string
697
+ apiKeyId?: Prisma.StringFilter<"WorkerVersion"> | string
698
+ createdAt?: Prisma.DateTimeFilter<"WorkerVersion"> | Date | string
699
+ updatedAt?: Prisma.DateTimeFilter<"WorkerVersion"> | Date | string
700
+ }
701
+
702
+ export type WorkerVersionCreateWithoutUnitRegistrationsInput = {
703
+ id?: string
704
+ meta: PrismaJson.CommonObjectMeta
705
+ status?: $Enums.WorkerVersionStatus
706
+ enabled?: boolean
707
+ runtimeId?: string | null
708
+ digest: string
709
+ createdAt?: Date | string
710
+ updatedAt?: Date | string
711
+ worker: Prisma.WorkerCreateNestedOneWithoutVersionsInput
712
+ apiKey: Prisma.ApiKeyCreateNestedOneWithoutWorkerInput
713
+ logs?: Prisma.WorkerVersionLogCreateNestedManyWithoutWorkerVersionInput
714
+ }
715
+
716
+ export type WorkerVersionUncheckedCreateWithoutUnitRegistrationsInput = {
717
+ id?: string
718
+ meta: PrismaJson.CommonObjectMeta
719
+ status?: $Enums.WorkerVersionStatus
720
+ enabled?: boolean
721
+ runtimeId?: string | null
722
+ workerId: string
723
+ digest: string
724
+ apiKeyId: string
725
+ createdAt?: Date | string
726
+ updatedAt?: Date | string
727
+ logs?: Prisma.WorkerVersionLogUncheckedCreateNestedManyWithoutWorkerVersionInput
728
+ }
729
+
730
+ export type WorkerVersionCreateOrConnectWithoutUnitRegistrationsInput = {
731
+ where: Prisma.WorkerVersionWhereUniqueInput
732
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutUnitRegistrationsInput, Prisma.WorkerVersionUncheckedCreateWithoutUnitRegistrationsInput>
733
+ }
734
+
735
+ export type WorkerVersionUpsertWithoutUnitRegistrationsInput = {
736
+ update: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutUnitRegistrationsInput, Prisma.WorkerVersionUncheckedUpdateWithoutUnitRegistrationsInput>
737
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutUnitRegistrationsInput, Prisma.WorkerVersionUncheckedCreateWithoutUnitRegistrationsInput>
738
+ where?: Prisma.WorkerVersionWhereInput
739
+ }
740
+
741
+ export type WorkerVersionUpdateToOneWithWhereWithoutUnitRegistrationsInput = {
742
+ where?: Prisma.WorkerVersionWhereInput
743
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutUnitRegistrationsInput, Prisma.WorkerVersionUncheckedUpdateWithoutUnitRegistrationsInput>
744
+ }
745
+
746
+ export type WorkerVersionUpdateWithoutUnitRegistrationsInput = {
747
+ id?: Prisma.StringFieldUpdateOperationsInput | string
748
+ meta?: PrismaJson.CommonObjectMeta
749
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
750
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
751
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
752
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
753
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
754
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
755
+ worker?: Prisma.WorkerUpdateOneRequiredWithoutVersionsNestedInput
756
+ apiKey?: Prisma.ApiKeyUpdateOneRequiredWithoutWorkerNestedInput
757
+ logs?: Prisma.WorkerVersionLogUpdateManyWithoutWorkerVersionNestedInput
758
+ }
759
+
760
+ export type WorkerVersionUncheckedUpdateWithoutUnitRegistrationsInput = {
761
+ id?: Prisma.StringFieldUpdateOperationsInput | string
762
+ meta?: PrismaJson.CommonObjectMeta
763
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
764
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
765
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
766
+ workerId?: Prisma.StringFieldUpdateOperationsInput | string
767
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
768
+ apiKeyId?: Prisma.StringFieldUpdateOperationsInput | string
769
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
770
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
771
+ logs?: Prisma.WorkerVersionLogUncheckedUpdateManyWithoutWorkerVersionNestedInput
772
+ }
773
+
774
+ export type WorkerVersionCreateWithoutLogsInput = {
775
+ id?: string
776
+ meta: PrismaJson.CommonObjectMeta
777
+ status?: $Enums.WorkerVersionStatus
778
+ enabled?: boolean
779
+ runtimeId?: string | null
780
+ digest: string
781
+ createdAt?: Date | string
782
+ updatedAt?: Date | string
783
+ worker: Prisma.WorkerCreateNestedOneWithoutVersionsInput
784
+ apiKey: Prisma.ApiKeyCreateNestedOneWithoutWorkerInput
785
+ unitRegistrations?: Prisma.WorkerUnitRegistrationCreateNestedManyWithoutWorkerVersionInput
786
+ }
787
+
788
+ export type WorkerVersionUncheckedCreateWithoutLogsInput = {
789
+ id?: string
790
+ meta: PrismaJson.CommonObjectMeta
791
+ status?: $Enums.WorkerVersionStatus
792
+ enabled?: boolean
793
+ runtimeId?: string | null
794
+ workerId: string
795
+ digest: string
796
+ apiKeyId: string
797
+ createdAt?: Date | string
798
+ updatedAt?: Date | string
799
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedCreateNestedManyWithoutWorkerVersionInput
800
+ }
801
+
802
+ export type WorkerVersionCreateOrConnectWithoutLogsInput = {
803
+ where: Prisma.WorkerVersionWhereUniqueInput
804
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutLogsInput, Prisma.WorkerVersionUncheckedCreateWithoutLogsInput>
805
+ }
806
+
807
+ export type WorkerVersionUpsertWithoutLogsInput = {
808
+ update: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutLogsInput, Prisma.WorkerVersionUncheckedUpdateWithoutLogsInput>
809
+ create: Prisma.XOR<Prisma.WorkerVersionCreateWithoutLogsInput, Prisma.WorkerVersionUncheckedCreateWithoutLogsInput>
810
+ where?: Prisma.WorkerVersionWhereInput
811
+ }
812
+
813
+ export type WorkerVersionUpdateToOneWithWhereWithoutLogsInput = {
814
+ where?: Prisma.WorkerVersionWhereInput
815
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateWithoutLogsInput, Prisma.WorkerVersionUncheckedUpdateWithoutLogsInput>
816
+ }
817
+
818
+ export type WorkerVersionUpdateWithoutLogsInput = {
819
+ id?: Prisma.StringFieldUpdateOperationsInput | string
820
+ meta?: PrismaJson.CommonObjectMeta
821
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
822
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
823
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
824
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
825
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
826
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
827
+ worker?: Prisma.WorkerUpdateOneRequiredWithoutVersionsNestedInput
828
+ apiKey?: Prisma.ApiKeyUpdateOneRequiredWithoutWorkerNestedInput
829
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutWorkerVersionNestedInput
830
+ }
831
+
832
+ export type WorkerVersionUncheckedUpdateWithoutLogsInput = {
833
+ id?: Prisma.StringFieldUpdateOperationsInput | string
834
+ meta?: PrismaJson.CommonObjectMeta
835
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
836
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
837
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
838
+ workerId?: Prisma.StringFieldUpdateOperationsInput | string
839
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
840
+ apiKeyId?: Prisma.StringFieldUpdateOperationsInput | string
841
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
842
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
843
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutWorkerVersionNestedInput
844
+ }
845
+
846
+ export type WorkerVersionCreateManyWorkerInput = {
847
+ id?: string
848
+ meta: PrismaJson.CommonObjectMeta
849
+ status?: $Enums.WorkerVersionStatus
850
+ enabled?: boolean
851
+ runtimeId?: string | null
852
+ digest: string
853
+ apiKeyId: string
854
+ createdAt?: Date | string
855
+ updatedAt?: Date | string
856
+ }
857
+
858
+ export type WorkerVersionUpdateWithoutWorkerInput = {
859
+ id?: Prisma.StringFieldUpdateOperationsInput | string
860
+ meta?: PrismaJson.CommonObjectMeta
861
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
862
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
863
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
864
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
865
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
866
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
867
+ apiKey?: Prisma.ApiKeyUpdateOneRequiredWithoutWorkerNestedInput
868
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUpdateManyWithoutWorkerVersionNestedInput
869
+ logs?: Prisma.WorkerVersionLogUpdateManyWithoutWorkerVersionNestedInput
870
+ }
871
+
872
+ export type WorkerVersionUncheckedUpdateWithoutWorkerInput = {
873
+ id?: Prisma.StringFieldUpdateOperationsInput | string
874
+ meta?: PrismaJson.CommonObjectMeta
875
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
876
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
877
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
878
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
879
+ apiKeyId?: Prisma.StringFieldUpdateOperationsInput | string
880
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
881
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
882
+ unitRegistrations?: Prisma.WorkerUnitRegistrationUncheckedUpdateManyWithoutWorkerVersionNestedInput
883
+ logs?: Prisma.WorkerVersionLogUncheckedUpdateManyWithoutWorkerVersionNestedInput
884
+ }
885
+
886
+ export type WorkerVersionUncheckedUpdateManyWithoutWorkerInput = {
887
+ id?: Prisma.StringFieldUpdateOperationsInput | string
888
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
889
+ status?: Prisma.EnumWorkerVersionStatusFieldUpdateOperationsInput | $Enums.WorkerVersionStatus
890
+ enabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
891
+ runtimeId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
892
+ digest?: Prisma.StringFieldUpdateOperationsInput | string
893
+ apiKeyId?: Prisma.StringFieldUpdateOperationsInput | string
894
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
895
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
896
+ }
897
+
898
+
899
+ /**
900
+ * Count Type WorkerVersionCountOutputType
901
+ */
902
+
903
+ export type WorkerVersionCountOutputType = {
904
+ unitRegistrations: number
905
+ logs: number
906
+ }
907
+
908
+ export type WorkerVersionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
909
+ unitRegistrations?: boolean | WorkerVersionCountOutputTypeCountUnitRegistrationsArgs
910
+ logs?: boolean | WorkerVersionCountOutputTypeCountLogsArgs
911
+ }
912
+
913
+ /**
914
+ * WorkerVersionCountOutputType without action
915
+ */
916
+ export type WorkerVersionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
917
+ /**
918
+ * Select specific fields to fetch from the WorkerVersionCountOutputType
919
+ */
920
+ select?: Prisma.WorkerVersionCountOutputTypeSelect<ExtArgs> | null
921
+ }
922
+
923
+ /**
924
+ * WorkerVersionCountOutputType without action
925
+ */
926
+ export type WorkerVersionCountOutputTypeCountUnitRegistrationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
927
+ where?: Prisma.WorkerUnitRegistrationWhereInput
928
+ }
929
+
930
+ /**
931
+ * WorkerVersionCountOutputType without action
932
+ */
933
+ export type WorkerVersionCountOutputTypeCountLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
934
+ where?: Prisma.WorkerVersionLogWhereInput
935
+ }
936
+
937
+
938
+ export type WorkerVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
939
+ id?: boolean
940
+ meta?: boolean
941
+ status?: boolean
942
+ enabled?: boolean
943
+ runtimeId?: boolean
944
+ workerId?: boolean
945
+ digest?: boolean
946
+ apiKeyId?: boolean
947
+ createdAt?: boolean
948
+ updatedAt?: boolean
949
+ worker?: boolean | Prisma.WorkerDefaultArgs<ExtArgs>
950
+ apiKey?: boolean | Prisma.ApiKeyDefaultArgs<ExtArgs>
951
+ unitRegistrations?: boolean | Prisma.WorkerVersion$unitRegistrationsArgs<ExtArgs>
952
+ logs?: boolean | Prisma.WorkerVersion$logsArgs<ExtArgs>
953
+ _count?: boolean | Prisma.WorkerVersionCountOutputTypeDefaultArgs<ExtArgs>
954
+ }, ExtArgs["result"]["workerVersion"]>
955
+
956
+ export type WorkerVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
957
+ id?: boolean
958
+ meta?: boolean
959
+ status?: boolean
960
+ enabled?: boolean
961
+ runtimeId?: boolean
962
+ workerId?: boolean
963
+ digest?: boolean
964
+ apiKeyId?: boolean
965
+ createdAt?: boolean
966
+ updatedAt?: boolean
967
+ worker?: boolean | Prisma.WorkerDefaultArgs<ExtArgs>
968
+ apiKey?: boolean | Prisma.ApiKeyDefaultArgs<ExtArgs>
969
+ }, ExtArgs["result"]["workerVersion"]>
970
+
971
+ export type WorkerVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
972
+ id?: boolean
973
+ meta?: boolean
974
+ status?: boolean
975
+ enabled?: boolean
976
+ runtimeId?: boolean
977
+ workerId?: boolean
978
+ digest?: boolean
979
+ apiKeyId?: boolean
980
+ createdAt?: boolean
981
+ updatedAt?: boolean
982
+ worker?: boolean | Prisma.WorkerDefaultArgs<ExtArgs>
983
+ apiKey?: boolean | Prisma.ApiKeyDefaultArgs<ExtArgs>
984
+ }, ExtArgs["result"]["workerVersion"]>
985
+
986
+ export type WorkerVersionSelectScalar = {
987
+ id?: boolean
988
+ meta?: boolean
989
+ status?: boolean
990
+ enabled?: boolean
991
+ runtimeId?: boolean
992
+ workerId?: boolean
993
+ digest?: boolean
994
+ apiKeyId?: boolean
995
+ createdAt?: boolean
996
+ updatedAt?: boolean
997
+ }
998
+
999
+ export type WorkerVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "meta" | "status" | "enabled" | "runtimeId" | "workerId" | "digest" | "apiKeyId" | "createdAt" | "updatedAt", ExtArgs["result"]["workerVersion"]>
1000
+ export type WorkerVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1001
+ worker?: boolean | Prisma.WorkerDefaultArgs<ExtArgs>
1002
+ apiKey?: boolean | Prisma.ApiKeyDefaultArgs<ExtArgs>
1003
+ unitRegistrations?: boolean | Prisma.WorkerVersion$unitRegistrationsArgs<ExtArgs>
1004
+ logs?: boolean | Prisma.WorkerVersion$logsArgs<ExtArgs>
1005
+ _count?: boolean | Prisma.WorkerVersionCountOutputTypeDefaultArgs<ExtArgs>
1006
+ }
1007
+ export type WorkerVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1008
+ worker?: boolean | Prisma.WorkerDefaultArgs<ExtArgs>
1009
+ apiKey?: boolean | Prisma.ApiKeyDefaultArgs<ExtArgs>
1010
+ }
1011
+ export type WorkerVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1012
+ worker?: boolean | Prisma.WorkerDefaultArgs<ExtArgs>
1013
+ apiKey?: boolean | Prisma.ApiKeyDefaultArgs<ExtArgs>
1014
+ }
1015
+
1016
+ export type $WorkerVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1017
+ name: "WorkerVersion"
1018
+ objects: {
1019
+ /**
1020
+ * The worker this version belongs to.
1021
+ */
1022
+ worker: Prisma.$WorkerPayload<ExtArgs>
1023
+ /**
1024
+ * The API key this worker version uses.
1025
+ */
1026
+ apiKey: Prisma.$ApiKeyPayload<ExtArgs>
1027
+ /**
1028
+ * The unit registrations for this worker version.
1029
+ */
1030
+ unitRegistrations: Prisma.$WorkerUnitRegistrationPayload<ExtArgs>[]
1031
+ /**
1032
+ * The logs produced by this worker version.
1033
+ */
1034
+ logs: Prisma.$WorkerVersionLogPayload<ExtArgs>[]
1035
+ }
1036
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1037
+ /**
1038
+ * The CUIDv2 of the worker version.
1039
+ */
1040
+ id: string
1041
+ /**
1042
+ * The metadata of the worker version managed by the backend.
1043
+ *
1044
+ * [CommonObjectMeta]
1045
+ */
1046
+ meta: PrismaJson.CommonObjectMeta
1047
+ /**
1048
+ * The current status of the worker version reported by the runtime.
1049
+ */
1050
+ status: $Enums.WorkerVersionStatus
1051
+ /**
1052
+ * Whether this worker version is enabled and will be launched when project is unclocked.
1053
+ */
1054
+ enabled: boolean
1055
+ /**
1056
+ * The ID of the runtime where this worker version currently runs.
1057
+ */
1058
+ runtimeId: string | null
1059
+ /**
1060
+ * The ID of the worker this version belongs to.
1061
+ */
1062
+ workerId: string
1063
+ /**
1064
+ * The digest of the worker version used to identify it.
1065
+ * The format is raw SHA256 digest without the `sha256:` prefix.
1066
+ */
1067
+ digest: string
1068
+ /**
1069
+ * The ID of the API key this worker version uses.
1070
+ */
1071
+ apiKeyId: string
1072
+ /**
1073
+ * The time this worker version was created.
1074
+ */
1075
+ createdAt: Date
1076
+ /**
1077
+ * The time this worker version was last updated.
1078
+ */
1079
+ updatedAt: Date
1080
+ }, ExtArgs["result"]["workerVersion"]>
1081
+ composites: {}
1082
+ }
1083
+
1084
+ export type WorkerVersionGetPayload<S extends boolean | null | undefined | WorkerVersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload, S>
1085
+
1086
+ export type WorkerVersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1087
+ Omit<WorkerVersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1088
+ select?: WorkerVersionCountAggregateInputType | true
1089
+ }
1090
+
1091
+ export interface WorkerVersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1092
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WorkerVersion'], meta: { name: 'WorkerVersion' } }
1093
+ /**
1094
+ * Find zero or one WorkerVersion that matches the filter.
1095
+ * @param {WorkerVersionFindUniqueArgs} args - Arguments to find a WorkerVersion
1096
+ * @example
1097
+ * // Get one WorkerVersion
1098
+ * const workerVersion = await prisma.workerVersion.findUnique({
1099
+ * where: {
1100
+ * // ... provide filter here
1101
+ * }
1102
+ * })
1103
+ */
1104
+ findUnique<T extends WorkerVersionFindUniqueArgs>(args: Prisma.SelectSubset<T, WorkerVersionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1105
+
1106
+ /**
1107
+ * Find one WorkerVersion that matches the filter or throw an error with `error.code='P2025'`
1108
+ * if no matches were found.
1109
+ * @param {WorkerVersionFindUniqueOrThrowArgs} args - Arguments to find a WorkerVersion
1110
+ * @example
1111
+ * // Get one WorkerVersion
1112
+ * const workerVersion = await prisma.workerVersion.findUniqueOrThrow({
1113
+ * where: {
1114
+ * // ... provide filter here
1115
+ * }
1116
+ * })
1117
+ */
1118
+ findUniqueOrThrow<T extends WorkerVersionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WorkerVersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1119
+
1120
+ /**
1121
+ * Find the first WorkerVersion that matches the filter.
1122
+ * Note, that providing `undefined` is treated as the value not being there.
1123
+ * Read more here: https://pris.ly/d/null-undefined
1124
+ * @param {WorkerVersionFindFirstArgs} args - Arguments to find a WorkerVersion
1125
+ * @example
1126
+ * // Get one WorkerVersion
1127
+ * const workerVersion = await prisma.workerVersion.findFirst({
1128
+ * where: {
1129
+ * // ... provide filter here
1130
+ * }
1131
+ * })
1132
+ */
1133
+ findFirst<T extends WorkerVersionFindFirstArgs>(args?: Prisma.SelectSubset<T, WorkerVersionFindFirstArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1134
+
1135
+ /**
1136
+ * Find the first WorkerVersion that matches the filter or
1137
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1138
+ * Note, that providing `undefined` is treated as the value not being there.
1139
+ * Read more here: https://pris.ly/d/null-undefined
1140
+ * @param {WorkerVersionFindFirstOrThrowArgs} args - Arguments to find a WorkerVersion
1141
+ * @example
1142
+ * // Get one WorkerVersion
1143
+ * const workerVersion = await prisma.workerVersion.findFirstOrThrow({
1144
+ * where: {
1145
+ * // ... provide filter here
1146
+ * }
1147
+ * })
1148
+ */
1149
+ findFirstOrThrow<T extends WorkerVersionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WorkerVersionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1150
+
1151
+ /**
1152
+ * Find zero or more WorkerVersions that matches the filter.
1153
+ * Note, that providing `undefined` is treated as the value not being there.
1154
+ * Read more here: https://pris.ly/d/null-undefined
1155
+ * @param {WorkerVersionFindManyArgs} args - Arguments to filter and select certain fields only.
1156
+ * @example
1157
+ * // Get all WorkerVersions
1158
+ * const workerVersions = await prisma.workerVersion.findMany()
1159
+ *
1160
+ * // Get first 10 WorkerVersions
1161
+ * const workerVersions = await prisma.workerVersion.findMany({ take: 10 })
1162
+ *
1163
+ * // Only select the `id`
1164
+ * const workerVersionWithIdOnly = await prisma.workerVersion.findMany({ select: { id: true } })
1165
+ *
1166
+ */
1167
+ findMany<T extends WorkerVersionFindManyArgs>(args?: Prisma.SelectSubset<T, WorkerVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1168
+
1169
+ /**
1170
+ * Create a WorkerVersion.
1171
+ * @param {WorkerVersionCreateArgs} args - Arguments to create a WorkerVersion.
1172
+ * @example
1173
+ * // Create one WorkerVersion
1174
+ * const WorkerVersion = await prisma.workerVersion.create({
1175
+ * data: {
1176
+ * // ... data to create a WorkerVersion
1177
+ * }
1178
+ * })
1179
+ *
1180
+ */
1181
+ create<T extends WorkerVersionCreateArgs>(args: Prisma.SelectSubset<T, WorkerVersionCreateArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1182
+
1183
+ /**
1184
+ * Create many WorkerVersions.
1185
+ * @param {WorkerVersionCreateManyArgs} args - Arguments to create many WorkerVersions.
1186
+ * @example
1187
+ * // Create many WorkerVersions
1188
+ * const workerVersion = await prisma.workerVersion.createMany({
1189
+ * data: [
1190
+ * // ... provide data here
1191
+ * ]
1192
+ * })
1193
+ *
1194
+ */
1195
+ createMany<T extends WorkerVersionCreateManyArgs>(args?: Prisma.SelectSubset<T, WorkerVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1196
+
1197
+ /**
1198
+ * Create many WorkerVersions and returns the data saved in the database.
1199
+ * @param {WorkerVersionCreateManyAndReturnArgs} args - Arguments to create many WorkerVersions.
1200
+ * @example
1201
+ * // Create many WorkerVersions
1202
+ * const workerVersion = await prisma.workerVersion.createManyAndReturn({
1203
+ * data: [
1204
+ * // ... provide data here
1205
+ * ]
1206
+ * })
1207
+ *
1208
+ * // Create many WorkerVersions and only return the `id`
1209
+ * const workerVersionWithIdOnly = await prisma.workerVersion.createManyAndReturn({
1210
+ * select: { id: true },
1211
+ * data: [
1212
+ * // ... provide data here
1213
+ * ]
1214
+ * })
1215
+ * Note, that providing `undefined` is treated as the value not being there.
1216
+ * Read more here: https://pris.ly/d/null-undefined
1217
+ *
1218
+ */
1219
+ createManyAndReturn<T extends WorkerVersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WorkerVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1220
+
1221
+ /**
1222
+ * Delete a WorkerVersion.
1223
+ * @param {WorkerVersionDeleteArgs} args - Arguments to delete one WorkerVersion.
1224
+ * @example
1225
+ * // Delete one WorkerVersion
1226
+ * const WorkerVersion = await prisma.workerVersion.delete({
1227
+ * where: {
1228
+ * // ... filter to delete one WorkerVersion
1229
+ * }
1230
+ * })
1231
+ *
1232
+ */
1233
+ delete<T extends WorkerVersionDeleteArgs>(args: Prisma.SelectSubset<T, WorkerVersionDeleteArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1234
+
1235
+ /**
1236
+ * Update one WorkerVersion.
1237
+ * @param {WorkerVersionUpdateArgs} args - Arguments to update one WorkerVersion.
1238
+ * @example
1239
+ * // Update one WorkerVersion
1240
+ * const workerVersion = await prisma.workerVersion.update({
1241
+ * where: {
1242
+ * // ... provide filter here
1243
+ * },
1244
+ * data: {
1245
+ * // ... provide data here
1246
+ * }
1247
+ * })
1248
+ *
1249
+ */
1250
+ update<T extends WorkerVersionUpdateArgs>(args: Prisma.SelectSubset<T, WorkerVersionUpdateArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1251
+
1252
+ /**
1253
+ * Delete zero or more WorkerVersions.
1254
+ * @param {WorkerVersionDeleteManyArgs} args - Arguments to filter WorkerVersions to delete.
1255
+ * @example
1256
+ * // Delete a few WorkerVersions
1257
+ * const { count } = await prisma.workerVersion.deleteMany({
1258
+ * where: {
1259
+ * // ... provide filter here
1260
+ * }
1261
+ * })
1262
+ *
1263
+ */
1264
+ deleteMany<T extends WorkerVersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, WorkerVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1265
+
1266
+ /**
1267
+ * Update zero or more WorkerVersions.
1268
+ * Note, that providing `undefined` is treated as the value not being there.
1269
+ * Read more here: https://pris.ly/d/null-undefined
1270
+ * @param {WorkerVersionUpdateManyArgs} args - Arguments to update one or more rows.
1271
+ * @example
1272
+ * // Update many WorkerVersions
1273
+ * const workerVersion = await prisma.workerVersion.updateMany({
1274
+ * where: {
1275
+ * // ... provide filter here
1276
+ * },
1277
+ * data: {
1278
+ * // ... provide data here
1279
+ * }
1280
+ * })
1281
+ *
1282
+ */
1283
+ updateMany<T extends WorkerVersionUpdateManyArgs>(args: Prisma.SelectSubset<T, WorkerVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1284
+
1285
+ /**
1286
+ * Update zero or more WorkerVersions and returns the data updated in the database.
1287
+ * @param {WorkerVersionUpdateManyAndReturnArgs} args - Arguments to update many WorkerVersions.
1288
+ * @example
1289
+ * // Update many WorkerVersions
1290
+ * const workerVersion = await prisma.workerVersion.updateManyAndReturn({
1291
+ * where: {
1292
+ * // ... provide filter here
1293
+ * },
1294
+ * data: [
1295
+ * // ... provide data here
1296
+ * ]
1297
+ * })
1298
+ *
1299
+ * // Update zero or more WorkerVersions and only return the `id`
1300
+ * const workerVersionWithIdOnly = await prisma.workerVersion.updateManyAndReturn({
1301
+ * select: { id: true },
1302
+ * where: {
1303
+ * // ... provide filter here
1304
+ * },
1305
+ * data: [
1306
+ * // ... provide data here
1307
+ * ]
1308
+ * })
1309
+ * Note, that providing `undefined` is treated as the value not being there.
1310
+ * Read more here: https://pris.ly/d/null-undefined
1311
+ *
1312
+ */
1313
+ updateManyAndReturn<T extends WorkerVersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WorkerVersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1314
+
1315
+ /**
1316
+ * Create or update one WorkerVersion.
1317
+ * @param {WorkerVersionUpsertArgs} args - Arguments to update or create a WorkerVersion.
1318
+ * @example
1319
+ * // Update or create a WorkerVersion
1320
+ * const workerVersion = await prisma.workerVersion.upsert({
1321
+ * create: {
1322
+ * // ... data to create a WorkerVersion
1323
+ * },
1324
+ * update: {
1325
+ * // ... in case it already exists, update
1326
+ * },
1327
+ * where: {
1328
+ * // ... the filter for the WorkerVersion we want to update
1329
+ * }
1330
+ * })
1331
+ */
1332
+ upsert<T extends WorkerVersionUpsertArgs>(args: Prisma.SelectSubset<T, WorkerVersionUpsertArgs<ExtArgs>>): Prisma.Prisma__WorkerVersionClient<runtime.Types.Result.GetResult<Prisma.$WorkerVersionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1333
+
1334
+
1335
+ /**
1336
+ * Count the number of WorkerVersions.
1337
+ * Note, that providing `undefined` is treated as the value not being there.
1338
+ * Read more here: https://pris.ly/d/null-undefined
1339
+ * @param {WorkerVersionCountArgs} args - Arguments to filter WorkerVersions to count.
1340
+ * @example
1341
+ * // Count the number of WorkerVersions
1342
+ * const count = await prisma.workerVersion.count({
1343
+ * where: {
1344
+ * // ... the filter for the WorkerVersions we want to count
1345
+ * }
1346
+ * })
1347
+ **/
1348
+ count<T extends WorkerVersionCountArgs>(
1349
+ args?: Prisma.Subset<T, WorkerVersionCountArgs>,
1350
+ ): Prisma.PrismaPromise<
1351
+ T extends runtime.Types.Utils.Record<'select', any>
1352
+ ? T['select'] extends true
1353
+ ? number
1354
+ : Prisma.GetScalarType<T['select'], WorkerVersionCountAggregateOutputType>
1355
+ : number
1356
+ >
1357
+
1358
+ /**
1359
+ * Allows you to perform aggregations operations on a WorkerVersion.
1360
+ * Note, that providing `undefined` is treated as the value not being there.
1361
+ * Read more here: https://pris.ly/d/null-undefined
1362
+ * @param {WorkerVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1363
+ * @example
1364
+ * // Ordered by age ascending
1365
+ * // Where email contains prisma.io
1366
+ * // Limited to the 10 users
1367
+ * const aggregations = await prisma.user.aggregate({
1368
+ * _avg: {
1369
+ * age: true,
1370
+ * },
1371
+ * where: {
1372
+ * email: {
1373
+ * contains: "prisma.io",
1374
+ * },
1375
+ * },
1376
+ * orderBy: {
1377
+ * age: "asc",
1378
+ * },
1379
+ * take: 10,
1380
+ * })
1381
+ **/
1382
+ aggregate<T extends WorkerVersionAggregateArgs>(args: Prisma.Subset<T, WorkerVersionAggregateArgs>): Prisma.PrismaPromise<GetWorkerVersionAggregateType<T>>
1383
+
1384
+ /**
1385
+ * Group by WorkerVersion.
1386
+ * Note, that providing `undefined` is treated as the value not being there.
1387
+ * Read more here: https://pris.ly/d/null-undefined
1388
+ * @param {WorkerVersionGroupByArgs} args - Group by arguments.
1389
+ * @example
1390
+ * // Group by city, order by createdAt, get count
1391
+ * const result = await prisma.user.groupBy({
1392
+ * by: ['city', 'createdAt'],
1393
+ * orderBy: {
1394
+ * createdAt: true
1395
+ * },
1396
+ * _count: {
1397
+ * _all: true
1398
+ * },
1399
+ * })
1400
+ *
1401
+ **/
1402
+ groupBy<
1403
+ T extends WorkerVersionGroupByArgs,
1404
+ HasSelectOrTake extends Prisma.Or<
1405
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1406
+ Prisma.Extends<'take', Prisma.Keys<T>>
1407
+ >,
1408
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1409
+ ? { orderBy: WorkerVersionGroupByArgs['orderBy'] }
1410
+ : { orderBy?: WorkerVersionGroupByArgs['orderBy'] },
1411
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1412
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1413
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1414
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1415
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1416
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1417
+ InputErrors extends ByEmpty extends Prisma.True
1418
+ ? `Error: "by" must not be empty.`
1419
+ : HavingValid extends Prisma.False
1420
+ ? {
1421
+ [P in HavingFields]: P extends ByFields
1422
+ ? never
1423
+ : P extends string
1424
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1425
+ : [
1426
+ Error,
1427
+ 'Field ',
1428
+ P,
1429
+ ` in "having" needs to be provided in "by"`,
1430
+ ]
1431
+ }[HavingFields]
1432
+ : 'take' extends Prisma.Keys<T>
1433
+ ? 'orderBy' extends Prisma.Keys<T>
1434
+ ? ByValid extends Prisma.True
1435
+ ? {}
1436
+ : {
1437
+ [P in OrderFields]: P extends ByFields
1438
+ ? never
1439
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1440
+ }[OrderFields]
1441
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1442
+ : 'skip' extends Prisma.Keys<T>
1443
+ ? 'orderBy' extends Prisma.Keys<T>
1444
+ ? ByValid extends Prisma.True
1445
+ ? {}
1446
+ : {
1447
+ [P in OrderFields]: P extends ByFields
1448
+ ? never
1449
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1450
+ }[OrderFields]
1451
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1452
+ : ByValid extends Prisma.True
1453
+ ? {}
1454
+ : {
1455
+ [P in OrderFields]: P extends ByFields
1456
+ ? never
1457
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1458
+ }[OrderFields]
1459
+ >(args: Prisma.SubsetIntersection<T, WorkerVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkerVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1460
+ /**
1461
+ * Fields of the WorkerVersion model
1462
+ */
1463
+ readonly fields: WorkerVersionFieldRefs;
1464
+ }
1465
+
1466
+ /**
1467
+ * The delegate class that acts as a "Promise-like" for WorkerVersion.
1468
+ * Why is this prefixed with `Prisma__`?
1469
+ * Because we want to prevent naming conflicts as mentioned in
1470
+ * https://github.com/prisma/prisma-client-js/issues/707
1471
+ */
1472
+ export interface Prisma__WorkerVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1473
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1474
+ worker<T extends Prisma.WorkerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkerDefaultArgs<ExtArgs>>): Prisma.Prisma__WorkerClient<runtime.Types.Result.GetResult<Prisma.$WorkerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1475
+ apiKey<T extends Prisma.ApiKeyDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApiKeyDefaultArgs<ExtArgs>>): Prisma.Prisma__ApiKeyClient<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1476
+ unitRegistrations<T extends Prisma.WorkerVersion$unitRegistrationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkerVersion$unitRegistrationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkerUnitRegistrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1477
+ logs<T extends Prisma.WorkerVersion$logsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkerVersion$logsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkerVersionLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1478
+ /**
1479
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1480
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1481
+ * @param onrejected The callback to execute when the Promise is rejected.
1482
+ * @returns A Promise for the completion of which ever callback is executed.
1483
+ */
1484
+ 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>
1485
+ /**
1486
+ * Attaches a callback for only the rejection of the Promise.
1487
+ * @param onrejected The callback to execute when the Promise is rejected.
1488
+ * @returns A Promise for the completion of the callback.
1489
+ */
1490
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1491
+ /**
1492
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1493
+ * resolved value cannot be modified from the callback.
1494
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1495
+ * @returns A Promise for the completion of the callback.
1496
+ */
1497
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1498
+ }
1499
+
1500
+
1501
+
1502
+
1503
+ /**
1504
+ * Fields of the WorkerVersion model
1505
+ */
1506
+ export interface WorkerVersionFieldRefs {
1507
+ readonly id: Prisma.FieldRef<"WorkerVersion", 'String'>
1508
+ readonly meta: Prisma.FieldRef<"WorkerVersion", 'Json'>
1509
+ readonly status: Prisma.FieldRef<"WorkerVersion", 'WorkerVersionStatus'>
1510
+ readonly enabled: Prisma.FieldRef<"WorkerVersion", 'Boolean'>
1511
+ readonly runtimeId: Prisma.FieldRef<"WorkerVersion", 'String'>
1512
+ readonly workerId: Prisma.FieldRef<"WorkerVersion", 'String'>
1513
+ readonly digest: Prisma.FieldRef<"WorkerVersion", 'String'>
1514
+ readonly apiKeyId: Prisma.FieldRef<"WorkerVersion", 'String'>
1515
+ readonly createdAt: Prisma.FieldRef<"WorkerVersion", 'DateTime'>
1516
+ readonly updatedAt: Prisma.FieldRef<"WorkerVersion", 'DateTime'>
1517
+ }
1518
+
1519
+
1520
+ // Custom InputTypes
1521
+ /**
1522
+ * WorkerVersion findUnique
1523
+ */
1524
+ export type WorkerVersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1525
+ /**
1526
+ * Select specific fields to fetch from the WorkerVersion
1527
+ */
1528
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1529
+ /**
1530
+ * Omit specific fields from the WorkerVersion
1531
+ */
1532
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1533
+ /**
1534
+ * Choose, which related nodes to fetch as well
1535
+ */
1536
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1537
+ /**
1538
+ * Filter, which WorkerVersion to fetch.
1539
+ */
1540
+ where: Prisma.WorkerVersionWhereUniqueInput
1541
+ }
1542
+
1543
+ /**
1544
+ * WorkerVersion findUniqueOrThrow
1545
+ */
1546
+ export type WorkerVersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1547
+ /**
1548
+ * Select specific fields to fetch from the WorkerVersion
1549
+ */
1550
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1551
+ /**
1552
+ * Omit specific fields from the WorkerVersion
1553
+ */
1554
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1555
+ /**
1556
+ * Choose, which related nodes to fetch as well
1557
+ */
1558
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1559
+ /**
1560
+ * Filter, which WorkerVersion to fetch.
1561
+ */
1562
+ where: Prisma.WorkerVersionWhereUniqueInput
1563
+ }
1564
+
1565
+ /**
1566
+ * WorkerVersion findFirst
1567
+ */
1568
+ export type WorkerVersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1569
+ /**
1570
+ * Select specific fields to fetch from the WorkerVersion
1571
+ */
1572
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1573
+ /**
1574
+ * Omit specific fields from the WorkerVersion
1575
+ */
1576
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1577
+ /**
1578
+ * Choose, which related nodes to fetch as well
1579
+ */
1580
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1581
+ /**
1582
+ * Filter, which WorkerVersion to fetch.
1583
+ */
1584
+ where?: Prisma.WorkerVersionWhereInput
1585
+ /**
1586
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1587
+ *
1588
+ * Determine the order of WorkerVersions to fetch.
1589
+ */
1590
+ orderBy?: Prisma.WorkerVersionOrderByWithRelationInput | Prisma.WorkerVersionOrderByWithRelationInput[]
1591
+ /**
1592
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1593
+ *
1594
+ * Sets the position for searching for WorkerVersions.
1595
+ */
1596
+ cursor?: Prisma.WorkerVersionWhereUniqueInput
1597
+ /**
1598
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1599
+ *
1600
+ * Take `±n` WorkerVersions from the position of the cursor.
1601
+ */
1602
+ take?: number
1603
+ /**
1604
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1605
+ *
1606
+ * Skip the first `n` WorkerVersions.
1607
+ */
1608
+ skip?: number
1609
+ /**
1610
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1611
+ *
1612
+ * Filter by unique combinations of WorkerVersions.
1613
+ */
1614
+ distinct?: Prisma.WorkerVersionScalarFieldEnum | Prisma.WorkerVersionScalarFieldEnum[]
1615
+ }
1616
+
1617
+ /**
1618
+ * WorkerVersion findFirstOrThrow
1619
+ */
1620
+ export type WorkerVersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1621
+ /**
1622
+ * Select specific fields to fetch from the WorkerVersion
1623
+ */
1624
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1625
+ /**
1626
+ * Omit specific fields from the WorkerVersion
1627
+ */
1628
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1629
+ /**
1630
+ * Choose, which related nodes to fetch as well
1631
+ */
1632
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1633
+ /**
1634
+ * Filter, which WorkerVersion to fetch.
1635
+ */
1636
+ where?: Prisma.WorkerVersionWhereInput
1637
+ /**
1638
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1639
+ *
1640
+ * Determine the order of WorkerVersions to fetch.
1641
+ */
1642
+ orderBy?: Prisma.WorkerVersionOrderByWithRelationInput | Prisma.WorkerVersionOrderByWithRelationInput[]
1643
+ /**
1644
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1645
+ *
1646
+ * Sets the position for searching for WorkerVersions.
1647
+ */
1648
+ cursor?: Prisma.WorkerVersionWhereUniqueInput
1649
+ /**
1650
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1651
+ *
1652
+ * Take `±n` WorkerVersions from the position of the cursor.
1653
+ */
1654
+ take?: number
1655
+ /**
1656
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1657
+ *
1658
+ * Skip the first `n` WorkerVersions.
1659
+ */
1660
+ skip?: number
1661
+ /**
1662
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1663
+ *
1664
+ * Filter by unique combinations of WorkerVersions.
1665
+ */
1666
+ distinct?: Prisma.WorkerVersionScalarFieldEnum | Prisma.WorkerVersionScalarFieldEnum[]
1667
+ }
1668
+
1669
+ /**
1670
+ * WorkerVersion findMany
1671
+ */
1672
+ export type WorkerVersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1673
+ /**
1674
+ * Select specific fields to fetch from the WorkerVersion
1675
+ */
1676
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1677
+ /**
1678
+ * Omit specific fields from the WorkerVersion
1679
+ */
1680
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1681
+ /**
1682
+ * Choose, which related nodes to fetch as well
1683
+ */
1684
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1685
+ /**
1686
+ * Filter, which WorkerVersions to fetch.
1687
+ */
1688
+ where?: Prisma.WorkerVersionWhereInput
1689
+ /**
1690
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1691
+ *
1692
+ * Determine the order of WorkerVersions to fetch.
1693
+ */
1694
+ orderBy?: Prisma.WorkerVersionOrderByWithRelationInput | Prisma.WorkerVersionOrderByWithRelationInput[]
1695
+ /**
1696
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1697
+ *
1698
+ * Sets the position for listing WorkerVersions.
1699
+ */
1700
+ cursor?: Prisma.WorkerVersionWhereUniqueInput
1701
+ /**
1702
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1703
+ *
1704
+ * Take `±n` WorkerVersions from the position of the cursor.
1705
+ */
1706
+ take?: number
1707
+ /**
1708
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1709
+ *
1710
+ * Skip the first `n` WorkerVersions.
1711
+ */
1712
+ skip?: number
1713
+ distinct?: Prisma.WorkerVersionScalarFieldEnum | Prisma.WorkerVersionScalarFieldEnum[]
1714
+ }
1715
+
1716
+ /**
1717
+ * WorkerVersion create
1718
+ */
1719
+ export type WorkerVersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1720
+ /**
1721
+ * Select specific fields to fetch from the WorkerVersion
1722
+ */
1723
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1724
+ /**
1725
+ * Omit specific fields from the WorkerVersion
1726
+ */
1727
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1728
+ /**
1729
+ * Choose, which related nodes to fetch as well
1730
+ */
1731
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1732
+ /**
1733
+ * The data needed to create a WorkerVersion.
1734
+ */
1735
+ data: Prisma.XOR<Prisma.WorkerVersionCreateInput, Prisma.WorkerVersionUncheckedCreateInput>
1736
+ }
1737
+
1738
+ /**
1739
+ * WorkerVersion createMany
1740
+ */
1741
+ export type WorkerVersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1742
+ /**
1743
+ * The data used to create many WorkerVersions.
1744
+ */
1745
+ data: Prisma.WorkerVersionCreateManyInput | Prisma.WorkerVersionCreateManyInput[]
1746
+ }
1747
+
1748
+ /**
1749
+ * WorkerVersion createManyAndReturn
1750
+ */
1751
+ export type WorkerVersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1752
+ /**
1753
+ * Select specific fields to fetch from the WorkerVersion
1754
+ */
1755
+ select?: Prisma.WorkerVersionSelectCreateManyAndReturn<ExtArgs> | null
1756
+ /**
1757
+ * Omit specific fields from the WorkerVersion
1758
+ */
1759
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1760
+ /**
1761
+ * The data used to create many WorkerVersions.
1762
+ */
1763
+ data: Prisma.WorkerVersionCreateManyInput | Prisma.WorkerVersionCreateManyInput[]
1764
+ /**
1765
+ * Choose, which related nodes to fetch as well
1766
+ */
1767
+ include?: Prisma.WorkerVersionIncludeCreateManyAndReturn<ExtArgs> | null
1768
+ }
1769
+
1770
+ /**
1771
+ * WorkerVersion update
1772
+ */
1773
+ export type WorkerVersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1774
+ /**
1775
+ * Select specific fields to fetch from the WorkerVersion
1776
+ */
1777
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1778
+ /**
1779
+ * Omit specific fields from the WorkerVersion
1780
+ */
1781
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1782
+ /**
1783
+ * Choose, which related nodes to fetch as well
1784
+ */
1785
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1786
+ /**
1787
+ * The data needed to update a WorkerVersion.
1788
+ */
1789
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateInput, Prisma.WorkerVersionUncheckedUpdateInput>
1790
+ /**
1791
+ * Choose, which WorkerVersion to update.
1792
+ */
1793
+ where: Prisma.WorkerVersionWhereUniqueInput
1794
+ }
1795
+
1796
+ /**
1797
+ * WorkerVersion updateMany
1798
+ */
1799
+ export type WorkerVersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1800
+ /**
1801
+ * The data used to update WorkerVersions.
1802
+ */
1803
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateManyMutationInput, Prisma.WorkerVersionUncheckedUpdateManyInput>
1804
+ /**
1805
+ * Filter which WorkerVersions to update
1806
+ */
1807
+ where?: Prisma.WorkerVersionWhereInput
1808
+ /**
1809
+ * Limit how many WorkerVersions to update.
1810
+ */
1811
+ limit?: number
1812
+ }
1813
+
1814
+ /**
1815
+ * WorkerVersion updateManyAndReturn
1816
+ */
1817
+ export type WorkerVersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1818
+ /**
1819
+ * Select specific fields to fetch from the WorkerVersion
1820
+ */
1821
+ select?: Prisma.WorkerVersionSelectUpdateManyAndReturn<ExtArgs> | null
1822
+ /**
1823
+ * Omit specific fields from the WorkerVersion
1824
+ */
1825
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1826
+ /**
1827
+ * The data used to update WorkerVersions.
1828
+ */
1829
+ data: Prisma.XOR<Prisma.WorkerVersionUpdateManyMutationInput, Prisma.WorkerVersionUncheckedUpdateManyInput>
1830
+ /**
1831
+ * Filter which WorkerVersions to update
1832
+ */
1833
+ where?: Prisma.WorkerVersionWhereInput
1834
+ /**
1835
+ * Limit how many WorkerVersions to update.
1836
+ */
1837
+ limit?: number
1838
+ /**
1839
+ * Choose, which related nodes to fetch as well
1840
+ */
1841
+ include?: Prisma.WorkerVersionIncludeUpdateManyAndReturn<ExtArgs> | null
1842
+ }
1843
+
1844
+ /**
1845
+ * WorkerVersion upsert
1846
+ */
1847
+ export type WorkerVersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1848
+ /**
1849
+ * Select specific fields to fetch from the WorkerVersion
1850
+ */
1851
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1852
+ /**
1853
+ * Omit specific fields from the WorkerVersion
1854
+ */
1855
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1856
+ /**
1857
+ * Choose, which related nodes to fetch as well
1858
+ */
1859
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1860
+ /**
1861
+ * The filter to search for the WorkerVersion to update in case it exists.
1862
+ */
1863
+ where: Prisma.WorkerVersionWhereUniqueInput
1864
+ /**
1865
+ * In case the WorkerVersion found by the `where` argument doesn't exist, create a new WorkerVersion with this data.
1866
+ */
1867
+ create: Prisma.XOR<Prisma.WorkerVersionCreateInput, Prisma.WorkerVersionUncheckedCreateInput>
1868
+ /**
1869
+ * In case the WorkerVersion was found with the provided `where` argument, update it with this data.
1870
+ */
1871
+ update: Prisma.XOR<Prisma.WorkerVersionUpdateInput, Prisma.WorkerVersionUncheckedUpdateInput>
1872
+ }
1873
+
1874
+ /**
1875
+ * WorkerVersion delete
1876
+ */
1877
+ export type WorkerVersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1878
+ /**
1879
+ * Select specific fields to fetch from the WorkerVersion
1880
+ */
1881
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1882
+ /**
1883
+ * Omit specific fields from the WorkerVersion
1884
+ */
1885
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1886
+ /**
1887
+ * Choose, which related nodes to fetch as well
1888
+ */
1889
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1890
+ /**
1891
+ * Filter which WorkerVersion to delete.
1892
+ */
1893
+ where: Prisma.WorkerVersionWhereUniqueInput
1894
+ }
1895
+
1896
+ /**
1897
+ * WorkerVersion deleteMany
1898
+ */
1899
+ export type WorkerVersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1900
+ /**
1901
+ * Filter which WorkerVersions to delete
1902
+ */
1903
+ where?: Prisma.WorkerVersionWhereInput
1904
+ /**
1905
+ * Limit how many WorkerVersions to delete.
1906
+ */
1907
+ limit?: number
1908
+ }
1909
+
1910
+ /**
1911
+ * WorkerVersion.unitRegistrations
1912
+ */
1913
+ export type WorkerVersion$unitRegistrationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1914
+ /**
1915
+ * Select specific fields to fetch from the WorkerUnitRegistration
1916
+ */
1917
+ select?: Prisma.WorkerUnitRegistrationSelect<ExtArgs> | null
1918
+ /**
1919
+ * Omit specific fields from the WorkerUnitRegistration
1920
+ */
1921
+ omit?: Prisma.WorkerUnitRegistrationOmit<ExtArgs> | null
1922
+ /**
1923
+ * Choose, which related nodes to fetch as well
1924
+ */
1925
+ include?: Prisma.WorkerUnitRegistrationInclude<ExtArgs> | null
1926
+ where?: Prisma.WorkerUnitRegistrationWhereInput
1927
+ orderBy?: Prisma.WorkerUnitRegistrationOrderByWithRelationInput | Prisma.WorkerUnitRegistrationOrderByWithRelationInput[]
1928
+ cursor?: Prisma.WorkerUnitRegistrationWhereUniqueInput
1929
+ take?: number
1930
+ skip?: number
1931
+ distinct?: Prisma.WorkerUnitRegistrationScalarFieldEnum | Prisma.WorkerUnitRegistrationScalarFieldEnum[]
1932
+ }
1933
+
1934
+ /**
1935
+ * WorkerVersion.logs
1936
+ */
1937
+ export type WorkerVersion$logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1938
+ /**
1939
+ * Select specific fields to fetch from the WorkerVersionLog
1940
+ */
1941
+ select?: Prisma.WorkerVersionLogSelect<ExtArgs> | null
1942
+ /**
1943
+ * Omit specific fields from the WorkerVersionLog
1944
+ */
1945
+ omit?: Prisma.WorkerVersionLogOmit<ExtArgs> | null
1946
+ /**
1947
+ * Choose, which related nodes to fetch as well
1948
+ */
1949
+ include?: Prisma.WorkerVersionLogInclude<ExtArgs> | null
1950
+ where?: Prisma.WorkerVersionLogWhereInput
1951
+ orderBy?: Prisma.WorkerVersionLogOrderByWithRelationInput | Prisma.WorkerVersionLogOrderByWithRelationInput[]
1952
+ cursor?: Prisma.WorkerVersionLogWhereUniqueInput
1953
+ take?: number
1954
+ skip?: number
1955
+ distinct?: Prisma.WorkerVersionLogScalarFieldEnum | Prisma.WorkerVersionLogScalarFieldEnum[]
1956
+ }
1957
+
1958
+ /**
1959
+ * WorkerVersion without action
1960
+ */
1961
+ export type WorkerVersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1962
+ /**
1963
+ * Select specific fields to fetch from the WorkerVersion
1964
+ */
1965
+ select?: Prisma.WorkerVersionSelect<ExtArgs> | null
1966
+ /**
1967
+ * Omit specific fields from the WorkerVersion
1968
+ */
1969
+ omit?: Prisma.WorkerVersionOmit<ExtArgs> | null
1970
+ /**
1971
+ * Choose, which related nodes to fetch as well
1972
+ */
1973
+ include?: Prisma.WorkerVersionInclude<ExtArgs> | null
1974
+ }