@highstate/backend 0.9.18 → 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 (331) hide show
  1. package/dist/chunk-5WVU2AK4.js +1535 -0
  2. package/dist/chunk-5WVU2AK4.js.map +1 -0
  3. package/dist/{chunk-OU5OQBLB.js → chunk-I7BWSAN6.js} +3 -28
  4. package/dist/{chunk-OU5OQBLB.js.map → chunk-I7BWSAN6.js.map} +1 -1
  5. package/dist/chunk-VB4YL327.js +139 -0
  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 +2 -1
  10. package/dist/index.js +7587 -7291
  11. package/dist/index.js.map +1 -1
  12. package/dist/library/package-resolution-worker.js +1 -1
  13. package/dist/library/package-resolution-worker.js.map +1 -1
  14. package/dist/library/worker/main.js +35 -29
  15. package/dist/library/worker/main.js.map +1 -1
  16. package/dist/shared/index.js +2 -2
  17. package/package.json +18 -9
  18. package/prisma/backend/_schema/layout.prisma +7 -0
  19. package/prisma/backend/_schema/library.prisma +17 -0
  20. package/prisma/backend/_schema/project.prisma +101 -0
  21. package/prisma/backend/_schema/pulumi.prisma +17 -0
  22. package/prisma/backend/postgresql/main.prisma +17 -0
  23. package/prisma/backend/sqlite/main.prisma +17 -0
  24. package/prisma/backend/sqlite/migrations/20250817070609_initiial/migration.sql +34 -0
  25. package/prisma/backend/sqlite/migrations/20250817104948_add_fields/migration.sql +59 -0
  26. package/prisma/backend/sqlite/migrations/20250818082732_add_models/migration.sql +41 -0
  27. package/prisma/backend/sqlite/migrations/20250818083106_a/migration.sql +19 -0
  28. package/prisma/backend/sqlite/migrations/20250818101945_hi/migration.sql +1 -0
  29. package/prisma/backend/sqlite/migrations/20250819082315_a/migration.sql +5 -0
  30. package/prisma/backend/sqlite/migrations/migration_lock.toml +3 -0
  31. package/prisma/project/api-key.prisma +27 -0
  32. package/prisma/project/artifact.prisma +52 -0
  33. package/prisma/project/custom-status.prisma +46 -0
  34. package/prisma/project/evaluation.prisma +35 -0
  35. package/prisma/project/instance.prisma +160 -0
  36. package/prisma/project/layout.prisma +23 -0
  37. package/prisma/project/lock.prisma +18 -0
  38. package/prisma/project/main.prisma +17 -0
  39. package/prisma/project/migrations/20250816081310_initial/migration.sql +300 -0
  40. package/prisma/project/migrations/20250816082523_test/migration.sql +72 -0
  41. package/prisma/project/migrations/20250818065643_update/migration.sql +42 -0
  42. package/prisma/project/migrations/20250818070758_a/migration.sql +8 -0
  43. package/prisma/project/migrations/20250818070913_a/migration.sql +8 -0
  44. package/prisma/project/migrations/20250818082720_add_motels/migration.sql +11 -0
  45. package/prisma/project/migrations/20250818112523_hello/migration.sql +35 -0
  46. package/prisma/project/migrations/20250819082305_a/migration.sql +14 -0
  47. package/prisma/project/migrations/20250819165004_add_missing_fields/migration.sql +216 -0
  48. package/prisma/project/migrations/20250819171309_a/migration.sql +22 -0
  49. package/prisma/project/migrations/20250820113949_a/migration.sql +66 -0
  50. package/prisma/project/migrations/20250820144256_b/migration.sql +31 -0
  51. package/prisma/project/migrations/20250820145547_a/migration.sql +24 -0
  52. package/prisma/project/migrations/20250820182517_b/migration.sql +2 -0
  53. package/prisma/project/migrations/20250821172324_a/migration.sql +2 -0
  54. package/prisma/project/migrations/20250822081339_a/migration.sql +219 -0
  55. package/prisma/project/migrations/20250822083742_b/migration.sql +1 -0
  56. package/prisma/project/migrations/20250822105134_boom/migration.sql +1 -0
  57. package/prisma/project/migrations/20250822141028_b/migration.sql +1 -0
  58. package/prisma/project/migrations/20250822142342_b/migration.sql +16 -0
  59. package/prisma/project/migrations/20250824072720_a/migration.sql +1 -0
  60. package/prisma/project/migrations/20250824093656_b/migration.sql +21 -0
  61. package/prisma/project/migrations/20250825082518_a/migration.sql +1 -0
  62. package/prisma/project/migrations/20250825085343_b/migration.sql +1 -0
  63. package/prisma/project/migrations/20250825091312_a/migration.sql +1 -0
  64. package/prisma/project/migrations/20250903095431_hi/migration.sql +44 -0
  65. package/prisma/project/migrations/20250903174255_a/migration.sql +24 -0
  66. package/prisma/project/migrations/20250908095205_hi/migration.sql +18 -0
  67. package/prisma/project/migrations/20250909155857_hi/migration.sql +15 -0
  68. package/prisma/project/migrations/migration_lock.toml +3 -0
  69. package/prisma/project/model.prisma +37 -0
  70. package/prisma/project/operation.prisma +148 -0
  71. package/prisma/project/page.prisma +41 -0
  72. package/prisma/project/secret.prisma +42 -0
  73. package/prisma/project/service-account.prisma +36 -0
  74. package/prisma/project/terminal.prisma +90 -0
  75. package/prisma/project/trigger.prisma +31 -0
  76. package/prisma/project/unlock-method.prisma +32 -0
  77. package/prisma/project/worker.prisma +138 -0
  78. package/src/artifact/abstractions.ts +13 -13
  79. package/src/artifact/encryption.ts +30 -54
  80. package/src/artifact/factory.ts +6 -9
  81. package/src/artifact/local.ts +33 -46
  82. package/src/business/api-key.ts +24 -36
  83. package/src/business/artifact.test.ts +978 -0
  84. package/src/business/artifact.ts +136 -216
  85. package/src/business/evaluation.ts +328 -0
  86. package/src/business/index.ts +5 -2
  87. package/src/business/instance-lock.test.ts +1060 -0
  88. package/src/business/instance-lock.ts +387 -78
  89. package/src/business/instance-state.test.ts +735 -0
  90. package/src/business/instance-state.ts +582 -337
  91. package/src/business/operation.test.ts +439 -0
  92. package/src/business/operation.ts +174 -208
  93. package/src/business/project-model.ts +258 -0
  94. package/src/business/project-unlock.ts +168 -126
  95. package/src/business/project.ts +287 -179
  96. package/src/business/secret.test.ts +465 -130
  97. package/src/business/secret.ts +186 -217
  98. package/src/business/settings.test.ts +695 -0
  99. package/src/business/settings.ts +855 -0
  100. package/src/business/terminal-session.ts +90 -0
  101. package/src/business/unit-extra.test.ts +539 -0
  102. package/src/business/unit-extra.ts +160 -0
  103. package/src/business/worker.test.ts +356 -579
  104. package/src/business/worker.ts +238 -339
  105. package/src/common/codebase.ts +65 -0
  106. package/src/common/index.ts +3 -5
  107. package/src/common/logger.ts +5 -0
  108. package/src/common/utils.ts +4 -3
  109. package/src/config.ts +10 -11
  110. package/src/database/_generated/backend/postgresql/client.ts +72 -0
  111. package/src/database/_generated/backend/postgresql/commonInputTypes.ts +350 -0
  112. package/src/database/_generated/backend/postgresql/enums.ts +13 -0
  113. package/src/database/_generated/backend/postgresql/internal/class.ts +320 -0
  114. package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +1238 -0
  115. package/src/database/_generated/backend/postgresql/models/Library.ts +1263 -0
  116. package/src/database/_generated/backend/postgresql/models/Project.ts +2175 -0
  117. package/src/database/_generated/backend/postgresql/models/ProjectModelStorage.ts +1263 -0
  118. package/src/database/_generated/backend/postgresql/models/ProjectSpace.ts +1602 -0
  119. package/src/database/_generated/backend/postgresql/models/PulumiBackend.ts +1263 -0
  120. package/src/database/_generated/backend/postgresql/models/UserWorkspaseLayout.ts +1065 -0
  121. package/src/database/_generated/backend/postgresql/models.ts +16 -0
  122. package/src/database/_generated/backend/postgresql/pjtg.ts +182 -0
  123. package/src/database/_generated/backend/sqlite/client.ts +72 -0
  124. package/src/database/_generated/backend/sqlite/commonInputTypes.ts +331 -0
  125. package/src/database/_generated/backend/sqlite/enums.ts +13 -0
  126. package/src/database/_generated/backend/sqlite/internal/class.ts +318 -0
  127. package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +1207 -0
  128. package/src/database/_generated/backend/sqlite/models/Library.ts +1261 -0
  129. package/src/database/_generated/backend/sqlite/models/Project.ts +2169 -0
  130. package/src/database/_generated/backend/sqlite/models/ProjectModelStorage.ts +1261 -0
  131. package/src/database/_generated/backend/sqlite/models/ProjectSpace.ts +1599 -0
  132. package/src/database/_generated/backend/sqlite/models/PulumiBackend.ts +1261 -0
  133. package/src/database/_generated/backend/sqlite/models/UserWorkspaseLayout.ts +1063 -0
  134. package/src/database/_generated/backend/sqlite/models.ts +16 -0
  135. package/src/database/_generated/backend/sqlite/pjtg.ts +182 -0
  136. package/src/database/_generated/project/client.ts +204 -0
  137. package/src/database/_generated/project/commonInputTypes.ts +827 -0
  138. package/src/database/_generated/project/enums.ts +104 -0
  139. package/src/database/_generated/project/internal/class.ts +479 -0
  140. package/src/database/_generated/project/internal/prismaNamespace.ts +2974 -0
  141. package/src/database/_generated/project/models/ApiKey.ts +1506 -0
  142. package/src/database/_generated/project/models/Artifact.ts +2051 -0
  143. package/src/database/_generated/project/models/HubModel.ts +1125 -0
  144. package/src/database/_generated/project/models/InstanceCustomStatus.ts +1713 -0
  145. package/src/database/_generated/project/models/InstanceEvaluationState.ts +1312 -0
  146. package/src/database/_generated/project/models/InstanceLock.ts +1268 -0
  147. package/src/database/_generated/project/models/InstanceModel.ts +1125 -0
  148. package/src/database/_generated/project/models/InstanceOperationState.ts +1707 -0
  149. package/src/database/_generated/project/models/InstanceState.ts +4613 -0
  150. package/src/database/_generated/project/models/Operation.ts +1647 -0
  151. package/src/database/_generated/project/models/OperationLog.ts +1455 -0
  152. package/src/database/_generated/project/models/Page.ts +1838 -0
  153. package/src/database/_generated/project/models/Secret.ts +1692 -0
  154. package/src/database/_generated/project/models/ServiceAccount.ts +2165 -0
  155. package/src/database/_generated/project/models/Terminal.ts +2038 -0
  156. package/src/database/_generated/project/models/TerminalSession.ts +1454 -0
  157. package/src/database/_generated/project/models/TerminalSessionLog.ts +1280 -0
  158. package/src/database/_generated/project/models/Trigger.ts +1430 -0
  159. package/src/database/_generated/project/models/UnlockMethod.ts +1220 -0
  160. package/src/database/_generated/project/models/UserCompositeViewport.ts +1280 -0
  161. package/src/database/_generated/project/models/UserProjectViewport.ts +1059 -0
  162. package/src/database/_generated/project/models/Worker.ts +1459 -0
  163. package/src/database/_generated/project/models/WorkerUnitRegistration.ts +1524 -0
  164. package/src/database/_generated/project/models/WorkerVersion.ts +1974 -0
  165. package/src/database/_generated/project/models/WorkerVersionLog.ts +1318 -0
  166. package/src/database/_generated/project/models.ts +35 -0
  167. package/src/database/_generated/project/pjtg.ts +182 -0
  168. package/src/database/abstractions.ts +19 -0
  169. package/src/database/factory.ts +37 -0
  170. package/src/database/index.ts +6 -0
  171. package/src/database/local/backend.ts +134 -0
  172. package/src/database/local/index.ts +3 -0
  173. package/src/database/local/meta.ts +46 -0
  174. package/src/database/local/prisma.config.ts +25 -0
  175. package/src/database/local/project.ts +39 -0
  176. package/src/database/manager.ts +181 -0
  177. package/src/database/migrate.ts +35 -0
  178. package/src/database/prisma.ts +56 -0
  179. package/src/database/well-known.ts +38 -0
  180. package/src/index.ts +4 -4
  181. package/src/library/abstractions.ts +3 -5
  182. package/src/library/factory.ts +1 -1
  183. package/src/library/local.ts +81 -26
  184. package/src/library/package-resolution-worker.ts +1 -1
  185. package/src/library/worker/evaluator.ts +40 -23
  186. package/src/library/worker/loader.lite.ts +1 -1
  187. package/src/library/worker/main.ts +3 -10
  188. package/src/library/worker/protocol.ts +0 -1
  189. package/src/lock/index.ts +0 -1
  190. package/src/lock/manager.ts +0 -10
  191. package/src/orchestrator/manager.ts +190 -104
  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 +233 -578
  203. package/src/orchestrator/operation.ts +435 -948
  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 +29 -13
  217. package/src/pubsub/memory.ts +31 -0
  218. package/src/runner/abstractions.ts +33 -41
  219. package/src/runner/artifact-env.ts +19 -8
  220. package/src/runner/factory.ts +6 -6
  221. package/src/runner/force-abort.ts +3 -6
  222. package/src/runner/local.ts +64 -67
  223. package/src/runner/pulumi.ts +23 -63
  224. package/src/services.ts +181 -123
  225. package/src/shared/models/backend/index.ts +3 -1
  226. package/src/shared/models/backend/library.ts +9 -1
  227. package/src/shared/models/backend/project.ts +43 -42
  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 -26
  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 -59
  236. package/src/shared/models/project/artifact.ts +16 -76
  237. package/src/shared/models/project/custom-status.ts +12 -0
  238. package/src/shared/models/project/index.ts +8 -7
  239. package/src/shared/models/project/lock.ts +10 -78
  240. package/src/shared/models/project/model.ts +19 -1
  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 -89
  244. package/src/shared/models/project/service-account.ts +12 -17
  245. package/src/shared/models/project/state.ts +100 -407
  246. package/src/shared/models/project/terminal.ts +75 -88
  247. package/src/shared/models/project/trigger.ts +13 -49
  248. package/src/shared/models/project/unlock-method.ts +20 -26
  249. package/src/shared/models/project/worker.ts +89 -90
  250. package/src/shared/resolvers/graph-resolver.ts +21 -0
  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 +1 -1
  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 +7 -3
  257. package/src/shared/utils/index.ts +1 -2
  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 +5 -23
  266. package/src/unlock/memory.ts +9 -14
  267. package/src/worker/abstractions.ts +7 -4
  268. package/src/worker/docker.ts +14 -19
  269. package/src/worker/manager.ts +366 -97
  270. package/dist/chunk-NAAIDR4U.js +0 -8499
  271. package/dist/chunk-NAAIDR4U.js.map +0 -1
  272. package/dist/chunk-Y7DXREVO.js +0 -1745
  273. package/dist/chunk-Y7DXREVO.js.map +0 -1
  274. package/dist/magic-string.es-5ABAC4JN.js +0 -1292
  275. package/dist/magic-string.es-5ABAC4JN.js.map +0 -1
  276. package/src/business/__traces__/secret/update-instance-secrets/create-and-delete-secrets-simultaneously.md +0 -356
  277. package/src/business/__traces__/secret/update-instance-secrets/create-new-secrets-for-instance.md +0 -274
  278. package/src/business/__traces__/secret/update-instance-secrets/delete-existing-secrets.md +0 -223
  279. package/src/business/__traces__/secret/update-instance-secrets/no-op-when-no-changes.md +0 -147
  280. package/src/business/__traces__/secret/update-instance-secrets/update-existing-secrets.md +0 -280
  281. package/src/business/__traces__/worker/update-unit-registrations/add-new-unit-registration-when-other-exists.md +0 -360
  282. package/src/business/__traces__/worker/update-unit-registrations/add-new-unit-registration.md +0 -215
  283. package/src/business/__traces__/worker/update-unit-registrations/create-multiple-workers-with-different-identities.md +0 -427
  284. package/src/business/__traces__/worker/update-unit-registrations/handle-nonexistent-registration-id-gracefully.md +0 -217
  285. package/src/business/__traces__/worker/update-unit-registrations/no-op-when-no-changes.md +0 -132
  286. package/src/business/__traces__/worker/update-unit-registrations/recreate-worker-when-image-changes.md +0 -454
  287. package/src/business/__traces__/worker/update-unit-registrations/recreate-worker-when-image-version-changes.md +0 -426
  288. package/src/business/__traces__/worker/update-unit-registrations/recreate-worker-with-same-identity-reuses-service-account.md +0 -372
  289. package/src/business/__traces__/worker/update-unit-registrations/remove-one-of-multiple-unit-registrations.md +0 -383
  290. package/src/business/__traces__/worker/update-unit-registrations/remove-unit-registration.md +0 -245
  291. package/src/business/__traces__/worker/update-unit-registrations/update-existing-unit-registration-when-params-change.md +0 -174
  292. package/src/business/__traces__/worker/update-unit-registrations/update-params-and-image-simultaneously.md +0 -432
  293. package/src/business/__traces__/worker/update-unit-registrations/worker-with-multiple-registrations-not-deleted-when-one-removed.md +0 -220
  294. package/src/business/backend-unlock.ts +0 -10
  295. package/src/common/clock.ts +0 -18
  296. package/src/common/performance.ts +0 -44
  297. package/src/common/random.ts +0 -68
  298. package/src/common/test/index.ts +0 -2
  299. package/src/common/test/render.ts +0 -98
  300. package/src/common/test/tracer.ts +0 -359
  301. package/src/hotstate/abstractions.ts +0 -48
  302. package/src/hotstate/factory.ts +0 -17
  303. package/src/hotstate/index.ts +0 -3
  304. package/src/hotstate/manager.ts +0 -192
  305. package/src/hotstate/memory.ts +0 -100
  306. package/src/hotstate/validation.ts +0 -100
  307. package/src/lock/test.ts +0 -108
  308. package/src/project/abstractions.ts +0 -78
  309. package/src/project/evaluation.ts +0 -248
  310. package/src/project/factory.ts +0 -11
  311. package/src/project/index.ts +0 -3
  312. package/src/project/local.ts +0 -417
  313. package/src/pubsub/local.ts +0 -36
  314. package/src/pubsub/validation.ts +0 -33
  315. package/src/shared/utils/args.ts +0 -25
  316. package/src/state/abstractions.ts +0 -289
  317. package/src/state/encryption.ts +0 -98
  318. package/src/state/factory.ts +0 -20
  319. package/src/state/index.ts +0 -7
  320. package/src/state/local/backend.ts +0 -106
  321. package/src/state/local/collection.ts +0 -361
  322. package/src/state/local/index.ts +0 -2
  323. package/src/state/manager.ts +0 -890
  324. package/src/state/memory/backend.ts +0 -70
  325. package/src/state/memory/collection.ts +0 -270
  326. package/src/state/memory/index.ts +0 -2
  327. package/src/state/repository/index.ts +0 -2
  328. package/src/state/repository/repository.index.ts +0 -193
  329. package/src/state/repository/repository.ts +0 -507
  330. package/src/state/test.ts +0 -457
  331. /package/src/{state → database/local}/keyring.ts +0 -0
@@ -0,0 +1,1220 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `UnlockMethod` 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 UnlockMethod
18
+ *
19
+ */
20
+ export type UnlockMethodModel = runtime.Types.Result.DefaultSelection<Prisma.$UnlockMethodPayload>
21
+
22
+ export type AggregateUnlockMethod = {
23
+ _count: UnlockMethodCountAggregateOutputType | null
24
+ _min: UnlockMethodMinAggregateOutputType | null
25
+ _max: UnlockMethodMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type UnlockMethodMinAggregateOutputType = {
29
+ id: string | null
30
+ type: $Enums.UnlockMethodType | null
31
+ encryptedIdentity: string | null
32
+ recipient: string | null
33
+ createdAt: Date | null
34
+ updatedAt: Date | null
35
+ }
36
+
37
+ export type UnlockMethodMaxAggregateOutputType = {
38
+ id: string | null
39
+ type: $Enums.UnlockMethodType | null
40
+ encryptedIdentity: string | null
41
+ recipient: string | null
42
+ createdAt: Date | null
43
+ updatedAt: Date | null
44
+ }
45
+
46
+ export type UnlockMethodCountAggregateOutputType = {
47
+ id: number
48
+ meta: number
49
+ type: number
50
+ encryptedIdentity: number
51
+ recipient: number
52
+ createdAt: number
53
+ updatedAt: number
54
+ _all: number
55
+ }
56
+
57
+
58
+ export type UnlockMethodMinAggregateInputType = {
59
+ id?: true
60
+ type?: true
61
+ encryptedIdentity?: true
62
+ recipient?: true
63
+ createdAt?: true
64
+ updatedAt?: true
65
+ }
66
+
67
+ export type UnlockMethodMaxAggregateInputType = {
68
+ id?: true
69
+ type?: true
70
+ encryptedIdentity?: true
71
+ recipient?: true
72
+ createdAt?: true
73
+ updatedAt?: true
74
+ }
75
+
76
+ export type UnlockMethodCountAggregateInputType = {
77
+ id?: true
78
+ meta?: true
79
+ type?: true
80
+ encryptedIdentity?: true
81
+ recipient?: true
82
+ createdAt?: true
83
+ updatedAt?: true
84
+ _all?: true
85
+ }
86
+
87
+ export type UnlockMethodAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
88
+ /**
89
+ * Filter which UnlockMethod to aggregate.
90
+ */
91
+ where?: Prisma.UnlockMethodWhereInput
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
94
+ *
95
+ * Determine the order of UnlockMethods to fetch.
96
+ */
97
+ orderBy?: Prisma.UnlockMethodOrderByWithRelationInput | Prisma.UnlockMethodOrderByWithRelationInput[]
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
100
+ *
101
+ * Sets the start position
102
+ */
103
+ cursor?: Prisma.UnlockMethodWhereUniqueInput
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
106
+ *
107
+ * Take `±n` UnlockMethods from the position of the cursor.
108
+ */
109
+ take?: number
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
112
+ *
113
+ * Skip the first `n` UnlockMethods.
114
+ */
115
+ skip?: number
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Count returned UnlockMethods
120
+ **/
121
+ _count?: true | UnlockMethodCountAggregateInputType
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
124
+ *
125
+ * Select which fields to find the minimum value
126
+ **/
127
+ _min?: UnlockMethodMinAggregateInputType
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
130
+ *
131
+ * Select which fields to find the maximum value
132
+ **/
133
+ _max?: UnlockMethodMaxAggregateInputType
134
+ }
135
+
136
+ export type GetUnlockMethodAggregateType<T extends UnlockMethodAggregateArgs> = {
137
+ [P in keyof T & keyof AggregateUnlockMethod]: P extends '_count' | 'count'
138
+ ? T[P] extends true
139
+ ? number
140
+ : Prisma.GetScalarType<T[P], AggregateUnlockMethod[P]>
141
+ : Prisma.GetScalarType<T[P], AggregateUnlockMethod[P]>
142
+ }
143
+
144
+
145
+
146
+
147
+ export type UnlockMethodGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
148
+ where?: Prisma.UnlockMethodWhereInput
149
+ orderBy?: Prisma.UnlockMethodOrderByWithAggregationInput | Prisma.UnlockMethodOrderByWithAggregationInput[]
150
+ by: Prisma.UnlockMethodScalarFieldEnum[] | Prisma.UnlockMethodScalarFieldEnum
151
+ having?: Prisma.UnlockMethodScalarWhereWithAggregatesInput
152
+ take?: number
153
+ skip?: number
154
+ _count?: UnlockMethodCountAggregateInputType | true
155
+ _min?: UnlockMethodMinAggregateInputType
156
+ _max?: UnlockMethodMaxAggregateInputType
157
+ }
158
+
159
+ export type UnlockMethodGroupByOutputType = {
160
+ id: string
161
+ meta: PrismaJson.UnlockMethodMeta
162
+ type: $Enums.UnlockMethodType
163
+ encryptedIdentity: string
164
+ recipient: string
165
+ createdAt: Date
166
+ updatedAt: Date
167
+ _count: UnlockMethodCountAggregateOutputType | null
168
+ _min: UnlockMethodMinAggregateOutputType | null
169
+ _max: UnlockMethodMaxAggregateOutputType | null
170
+ }
171
+
172
+ type GetUnlockMethodGroupByPayload<T extends UnlockMethodGroupByArgs> = Prisma.PrismaPromise<
173
+ Array<
174
+ Prisma.PickEnumerable<UnlockMethodGroupByOutputType, T['by']> &
175
+ {
176
+ [P in ((keyof T) & (keyof UnlockMethodGroupByOutputType))]: P extends '_count'
177
+ ? T[P] extends boolean
178
+ ? number
179
+ : Prisma.GetScalarType<T[P], UnlockMethodGroupByOutputType[P]>
180
+ : Prisma.GetScalarType<T[P], UnlockMethodGroupByOutputType[P]>
181
+ }
182
+ >
183
+ >
184
+
185
+
186
+
187
+ export type UnlockMethodWhereInput = {
188
+ AND?: Prisma.UnlockMethodWhereInput | Prisma.UnlockMethodWhereInput[]
189
+ OR?: Prisma.UnlockMethodWhereInput[]
190
+ NOT?: Prisma.UnlockMethodWhereInput | Prisma.UnlockMethodWhereInput[]
191
+ id?: Prisma.StringFilter<"UnlockMethod"> | string
192
+ meta?: Prisma.JsonFilter<"UnlockMethod">
193
+ type?: Prisma.EnumUnlockMethodTypeFilter<"UnlockMethod"> | $Enums.UnlockMethodType
194
+ encryptedIdentity?: Prisma.StringFilter<"UnlockMethod"> | string
195
+ recipient?: Prisma.StringFilter<"UnlockMethod"> | string
196
+ createdAt?: Prisma.DateTimeFilter<"UnlockMethod"> | Date | string
197
+ updatedAt?: Prisma.DateTimeFilter<"UnlockMethod"> | Date | string
198
+ }
199
+
200
+ export type UnlockMethodOrderByWithRelationInput = {
201
+ id?: Prisma.SortOrder
202
+ meta?: Prisma.SortOrder
203
+ type?: Prisma.SortOrder
204
+ encryptedIdentity?: Prisma.SortOrder
205
+ recipient?: Prisma.SortOrder
206
+ createdAt?: Prisma.SortOrder
207
+ updatedAt?: Prisma.SortOrder
208
+ }
209
+
210
+ export type UnlockMethodWhereUniqueInput = Prisma.AtLeast<{
211
+ id?: string
212
+ AND?: Prisma.UnlockMethodWhereInput | Prisma.UnlockMethodWhereInput[]
213
+ OR?: Prisma.UnlockMethodWhereInput[]
214
+ NOT?: Prisma.UnlockMethodWhereInput | Prisma.UnlockMethodWhereInput[]
215
+ meta?: Prisma.JsonFilter<"UnlockMethod">
216
+ type?: Prisma.EnumUnlockMethodTypeFilter<"UnlockMethod"> | $Enums.UnlockMethodType
217
+ encryptedIdentity?: Prisma.StringFilter<"UnlockMethod"> | string
218
+ recipient?: Prisma.StringFilter<"UnlockMethod"> | string
219
+ createdAt?: Prisma.DateTimeFilter<"UnlockMethod"> | Date | string
220
+ updatedAt?: Prisma.DateTimeFilter<"UnlockMethod"> | Date | string
221
+ }, "id">
222
+
223
+ export type UnlockMethodOrderByWithAggregationInput = {
224
+ id?: Prisma.SortOrder
225
+ meta?: Prisma.SortOrder
226
+ type?: Prisma.SortOrder
227
+ encryptedIdentity?: Prisma.SortOrder
228
+ recipient?: Prisma.SortOrder
229
+ createdAt?: Prisma.SortOrder
230
+ updatedAt?: Prisma.SortOrder
231
+ _count?: Prisma.UnlockMethodCountOrderByAggregateInput
232
+ _max?: Prisma.UnlockMethodMaxOrderByAggregateInput
233
+ _min?: Prisma.UnlockMethodMinOrderByAggregateInput
234
+ }
235
+
236
+ export type UnlockMethodScalarWhereWithAggregatesInput = {
237
+ AND?: Prisma.UnlockMethodScalarWhereWithAggregatesInput | Prisma.UnlockMethodScalarWhereWithAggregatesInput[]
238
+ OR?: Prisma.UnlockMethodScalarWhereWithAggregatesInput[]
239
+ NOT?: Prisma.UnlockMethodScalarWhereWithAggregatesInput | Prisma.UnlockMethodScalarWhereWithAggregatesInput[]
240
+ id?: Prisma.StringWithAggregatesFilter<"UnlockMethod"> | string
241
+ meta?: Prisma.JsonWithAggregatesFilter<"UnlockMethod">
242
+ type?: Prisma.EnumUnlockMethodTypeWithAggregatesFilter<"UnlockMethod"> | $Enums.UnlockMethodType
243
+ encryptedIdentity?: Prisma.StringWithAggregatesFilter<"UnlockMethod"> | string
244
+ recipient?: Prisma.StringWithAggregatesFilter<"UnlockMethod"> | string
245
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"UnlockMethod"> | Date | string
246
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UnlockMethod"> | Date | string
247
+ }
248
+
249
+ export type UnlockMethodCreateInput = {
250
+ id?: string
251
+ meta: PrismaJson.UnlockMethodMeta
252
+ type: $Enums.UnlockMethodType
253
+ encryptedIdentity: string
254
+ recipient: string
255
+ createdAt?: Date | string
256
+ updatedAt?: Date | string
257
+ }
258
+
259
+ export type UnlockMethodUncheckedCreateInput = {
260
+ id?: string
261
+ meta: PrismaJson.UnlockMethodMeta
262
+ type: $Enums.UnlockMethodType
263
+ encryptedIdentity: string
264
+ recipient: string
265
+ createdAt?: Date | string
266
+ updatedAt?: Date | string
267
+ }
268
+
269
+ export type UnlockMethodUpdateInput = {
270
+ id?: Prisma.StringFieldUpdateOperationsInput | string
271
+ meta?: PrismaJson.UnlockMethodMeta
272
+ type?: Prisma.EnumUnlockMethodTypeFieldUpdateOperationsInput | $Enums.UnlockMethodType
273
+ encryptedIdentity?: Prisma.StringFieldUpdateOperationsInput | string
274
+ recipient?: Prisma.StringFieldUpdateOperationsInput | string
275
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
276
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
277
+ }
278
+
279
+ export type UnlockMethodUncheckedUpdateInput = {
280
+ id?: Prisma.StringFieldUpdateOperationsInput | string
281
+ meta?: PrismaJson.UnlockMethodMeta
282
+ type?: Prisma.EnumUnlockMethodTypeFieldUpdateOperationsInput | $Enums.UnlockMethodType
283
+ encryptedIdentity?: Prisma.StringFieldUpdateOperationsInput | string
284
+ recipient?: Prisma.StringFieldUpdateOperationsInput | string
285
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
286
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
287
+ }
288
+
289
+ export type UnlockMethodCreateManyInput = {
290
+ id?: string
291
+ meta: PrismaJson.UnlockMethodMeta
292
+ type: $Enums.UnlockMethodType
293
+ encryptedIdentity: string
294
+ recipient: string
295
+ createdAt?: Date | string
296
+ updatedAt?: Date | string
297
+ }
298
+
299
+ export type UnlockMethodUpdateManyMutationInput = {
300
+ id?: Prisma.StringFieldUpdateOperationsInput | string
301
+ meta?: PrismaJson.UnlockMethodMeta
302
+ type?: Prisma.EnumUnlockMethodTypeFieldUpdateOperationsInput | $Enums.UnlockMethodType
303
+ encryptedIdentity?: Prisma.StringFieldUpdateOperationsInput | string
304
+ recipient?: Prisma.StringFieldUpdateOperationsInput | string
305
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
306
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
307
+ }
308
+
309
+ export type UnlockMethodUncheckedUpdateManyInput = {
310
+ id?: Prisma.StringFieldUpdateOperationsInput | string
311
+ meta?: PrismaJson.UnlockMethodMeta
312
+ type?: Prisma.EnumUnlockMethodTypeFieldUpdateOperationsInput | $Enums.UnlockMethodType
313
+ encryptedIdentity?: Prisma.StringFieldUpdateOperationsInput | string
314
+ recipient?: Prisma.StringFieldUpdateOperationsInput | string
315
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
316
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
317
+ }
318
+
319
+ export type UnlockMethodCountOrderByAggregateInput = {
320
+ id?: Prisma.SortOrder
321
+ meta?: Prisma.SortOrder
322
+ type?: Prisma.SortOrder
323
+ encryptedIdentity?: Prisma.SortOrder
324
+ recipient?: Prisma.SortOrder
325
+ createdAt?: Prisma.SortOrder
326
+ updatedAt?: Prisma.SortOrder
327
+ }
328
+
329
+ export type UnlockMethodMaxOrderByAggregateInput = {
330
+ id?: Prisma.SortOrder
331
+ type?: Prisma.SortOrder
332
+ encryptedIdentity?: Prisma.SortOrder
333
+ recipient?: Prisma.SortOrder
334
+ createdAt?: Prisma.SortOrder
335
+ updatedAt?: Prisma.SortOrder
336
+ }
337
+
338
+ export type UnlockMethodMinOrderByAggregateInput = {
339
+ id?: Prisma.SortOrder
340
+ type?: Prisma.SortOrder
341
+ encryptedIdentity?: Prisma.SortOrder
342
+ recipient?: Prisma.SortOrder
343
+ createdAt?: Prisma.SortOrder
344
+ updatedAt?: Prisma.SortOrder
345
+ }
346
+
347
+ export type EnumUnlockMethodTypeFieldUpdateOperationsInput = {
348
+ set?: $Enums.UnlockMethodType
349
+ }
350
+
351
+
352
+
353
+ export type UnlockMethodSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
354
+ id?: boolean
355
+ meta?: boolean
356
+ type?: boolean
357
+ encryptedIdentity?: boolean
358
+ recipient?: boolean
359
+ createdAt?: boolean
360
+ updatedAt?: boolean
361
+ }, ExtArgs["result"]["unlockMethod"]>
362
+
363
+ export type UnlockMethodSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
364
+ id?: boolean
365
+ meta?: boolean
366
+ type?: boolean
367
+ encryptedIdentity?: boolean
368
+ recipient?: boolean
369
+ createdAt?: boolean
370
+ updatedAt?: boolean
371
+ }, ExtArgs["result"]["unlockMethod"]>
372
+
373
+ export type UnlockMethodSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
374
+ id?: boolean
375
+ meta?: boolean
376
+ type?: boolean
377
+ encryptedIdentity?: boolean
378
+ recipient?: boolean
379
+ createdAt?: boolean
380
+ updatedAt?: boolean
381
+ }, ExtArgs["result"]["unlockMethod"]>
382
+
383
+ export type UnlockMethodSelectScalar = {
384
+ id?: boolean
385
+ meta?: boolean
386
+ type?: boolean
387
+ encryptedIdentity?: boolean
388
+ recipient?: boolean
389
+ createdAt?: boolean
390
+ updatedAt?: boolean
391
+ }
392
+
393
+ export type UnlockMethodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "meta" | "type" | "encryptedIdentity" | "recipient" | "createdAt" | "updatedAt", ExtArgs["result"]["unlockMethod"]>
394
+
395
+ export type $UnlockMethodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
396
+ name: "UnlockMethod"
397
+ objects: {}
398
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
399
+ /**
400
+ * The CUIDv2 of the unlock method.
401
+ */
402
+ id: string
403
+ /**
404
+ * The metadata of the unlock method managed by the backend.
405
+ *
406
+ * [UnlockMethodMeta]
407
+ */
408
+ meta: PrismaJson.UnlockMethodMeta
409
+ /**
410
+ * The type of unlock method.
411
+ */
412
+ type: $Enums.UnlockMethodType
413
+ /**
414
+ * The AGE identity encrypted and armored also with AGE.
415
+ */
416
+ encryptedIdentity: string
417
+ /**
418
+ * The AGE recipient for this unlock method.
419
+ */
420
+ recipient: string
421
+ /**
422
+ * The time when the unlock method was created.
423
+ */
424
+ createdAt: Date
425
+ /**
426
+ * The time when the unlock method was last updated.
427
+ */
428
+ updatedAt: Date
429
+ }, ExtArgs["result"]["unlockMethod"]>
430
+ composites: {}
431
+ }
432
+
433
+ export type UnlockMethodGetPayload<S extends boolean | null | undefined | UnlockMethodDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload, S>
434
+
435
+ export type UnlockMethodCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
436
+ Omit<UnlockMethodFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
437
+ select?: UnlockMethodCountAggregateInputType | true
438
+ }
439
+
440
+ export interface UnlockMethodDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
441
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UnlockMethod'], meta: { name: 'UnlockMethod' } }
442
+ /**
443
+ * Find zero or one UnlockMethod that matches the filter.
444
+ * @param {UnlockMethodFindUniqueArgs} args - Arguments to find a UnlockMethod
445
+ * @example
446
+ * // Get one UnlockMethod
447
+ * const unlockMethod = await prisma.unlockMethod.findUnique({
448
+ * where: {
449
+ * // ... provide filter here
450
+ * }
451
+ * })
452
+ */
453
+ findUnique<T extends UnlockMethodFindUniqueArgs>(args: Prisma.SelectSubset<T, UnlockMethodFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
454
+
455
+ /**
456
+ * Find one UnlockMethod that matches the filter or throw an error with `error.code='P2025'`
457
+ * if no matches were found.
458
+ * @param {UnlockMethodFindUniqueOrThrowArgs} args - Arguments to find a UnlockMethod
459
+ * @example
460
+ * // Get one UnlockMethod
461
+ * const unlockMethod = await prisma.unlockMethod.findUniqueOrThrow({
462
+ * where: {
463
+ * // ... provide filter here
464
+ * }
465
+ * })
466
+ */
467
+ findUniqueOrThrow<T extends UnlockMethodFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UnlockMethodFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
468
+
469
+ /**
470
+ * Find the first UnlockMethod that matches the filter.
471
+ * Note, that providing `undefined` is treated as the value not being there.
472
+ * Read more here: https://pris.ly/d/null-undefined
473
+ * @param {UnlockMethodFindFirstArgs} args - Arguments to find a UnlockMethod
474
+ * @example
475
+ * // Get one UnlockMethod
476
+ * const unlockMethod = await prisma.unlockMethod.findFirst({
477
+ * where: {
478
+ * // ... provide filter here
479
+ * }
480
+ * })
481
+ */
482
+ findFirst<T extends UnlockMethodFindFirstArgs>(args?: Prisma.SelectSubset<T, UnlockMethodFindFirstArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
483
+
484
+ /**
485
+ * Find the first UnlockMethod that matches the filter or
486
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
487
+ * Note, that providing `undefined` is treated as the value not being there.
488
+ * Read more here: https://pris.ly/d/null-undefined
489
+ * @param {UnlockMethodFindFirstOrThrowArgs} args - Arguments to find a UnlockMethod
490
+ * @example
491
+ * // Get one UnlockMethod
492
+ * const unlockMethod = await prisma.unlockMethod.findFirstOrThrow({
493
+ * where: {
494
+ * // ... provide filter here
495
+ * }
496
+ * })
497
+ */
498
+ findFirstOrThrow<T extends UnlockMethodFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UnlockMethodFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
499
+
500
+ /**
501
+ * Find zero or more UnlockMethods that matches the filter.
502
+ * Note, that providing `undefined` is treated as the value not being there.
503
+ * Read more here: https://pris.ly/d/null-undefined
504
+ * @param {UnlockMethodFindManyArgs} args - Arguments to filter and select certain fields only.
505
+ * @example
506
+ * // Get all UnlockMethods
507
+ * const unlockMethods = await prisma.unlockMethod.findMany()
508
+ *
509
+ * // Get first 10 UnlockMethods
510
+ * const unlockMethods = await prisma.unlockMethod.findMany({ take: 10 })
511
+ *
512
+ * // Only select the `id`
513
+ * const unlockMethodWithIdOnly = await prisma.unlockMethod.findMany({ select: { id: true } })
514
+ *
515
+ */
516
+ findMany<T extends UnlockMethodFindManyArgs>(args?: Prisma.SelectSubset<T, UnlockMethodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
517
+
518
+ /**
519
+ * Create a UnlockMethod.
520
+ * @param {UnlockMethodCreateArgs} args - Arguments to create a UnlockMethod.
521
+ * @example
522
+ * // Create one UnlockMethod
523
+ * const UnlockMethod = await prisma.unlockMethod.create({
524
+ * data: {
525
+ * // ... data to create a UnlockMethod
526
+ * }
527
+ * })
528
+ *
529
+ */
530
+ create<T extends UnlockMethodCreateArgs>(args: Prisma.SelectSubset<T, UnlockMethodCreateArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
531
+
532
+ /**
533
+ * Create many UnlockMethods.
534
+ * @param {UnlockMethodCreateManyArgs} args - Arguments to create many UnlockMethods.
535
+ * @example
536
+ * // Create many UnlockMethods
537
+ * const unlockMethod = await prisma.unlockMethod.createMany({
538
+ * data: [
539
+ * // ... provide data here
540
+ * ]
541
+ * })
542
+ *
543
+ */
544
+ createMany<T extends UnlockMethodCreateManyArgs>(args?: Prisma.SelectSubset<T, UnlockMethodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
545
+
546
+ /**
547
+ * Create many UnlockMethods and returns the data saved in the database.
548
+ * @param {UnlockMethodCreateManyAndReturnArgs} args - Arguments to create many UnlockMethods.
549
+ * @example
550
+ * // Create many UnlockMethods
551
+ * const unlockMethod = await prisma.unlockMethod.createManyAndReturn({
552
+ * data: [
553
+ * // ... provide data here
554
+ * ]
555
+ * })
556
+ *
557
+ * // Create many UnlockMethods and only return the `id`
558
+ * const unlockMethodWithIdOnly = await prisma.unlockMethod.createManyAndReturn({
559
+ * select: { id: true },
560
+ * data: [
561
+ * // ... provide data here
562
+ * ]
563
+ * })
564
+ * Note, that providing `undefined` is treated as the value not being there.
565
+ * Read more here: https://pris.ly/d/null-undefined
566
+ *
567
+ */
568
+ createManyAndReturn<T extends UnlockMethodCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UnlockMethodCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
569
+
570
+ /**
571
+ * Delete a UnlockMethod.
572
+ * @param {UnlockMethodDeleteArgs} args - Arguments to delete one UnlockMethod.
573
+ * @example
574
+ * // Delete one UnlockMethod
575
+ * const UnlockMethod = await prisma.unlockMethod.delete({
576
+ * where: {
577
+ * // ... filter to delete one UnlockMethod
578
+ * }
579
+ * })
580
+ *
581
+ */
582
+ delete<T extends UnlockMethodDeleteArgs>(args: Prisma.SelectSubset<T, UnlockMethodDeleteArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
583
+
584
+ /**
585
+ * Update one UnlockMethod.
586
+ * @param {UnlockMethodUpdateArgs} args - Arguments to update one UnlockMethod.
587
+ * @example
588
+ * // Update one UnlockMethod
589
+ * const unlockMethod = await prisma.unlockMethod.update({
590
+ * where: {
591
+ * // ... provide filter here
592
+ * },
593
+ * data: {
594
+ * // ... provide data here
595
+ * }
596
+ * })
597
+ *
598
+ */
599
+ update<T extends UnlockMethodUpdateArgs>(args: Prisma.SelectSubset<T, UnlockMethodUpdateArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
600
+
601
+ /**
602
+ * Delete zero or more UnlockMethods.
603
+ * @param {UnlockMethodDeleteManyArgs} args - Arguments to filter UnlockMethods to delete.
604
+ * @example
605
+ * // Delete a few UnlockMethods
606
+ * const { count } = await prisma.unlockMethod.deleteMany({
607
+ * where: {
608
+ * // ... provide filter here
609
+ * }
610
+ * })
611
+ *
612
+ */
613
+ deleteMany<T extends UnlockMethodDeleteManyArgs>(args?: Prisma.SelectSubset<T, UnlockMethodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
614
+
615
+ /**
616
+ * Update zero or more UnlockMethods.
617
+ * Note, that providing `undefined` is treated as the value not being there.
618
+ * Read more here: https://pris.ly/d/null-undefined
619
+ * @param {UnlockMethodUpdateManyArgs} args - Arguments to update one or more rows.
620
+ * @example
621
+ * // Update many UnlockMethods
622
+ * const unlockMethod = await prisma.unlockMethod.updateMany({
623
+ * where: {
624
+ * // ... provide filter here
625
+ * },
626
+ * data: {
627
+ * // ... provide data here
628
+ * }
629
+ * })
630
+ *
631
+ */
632
+ updateMany<T extends UnlockMethodUpdateManyArgs>(args: Prisma.SelectSubset<T, UnlockMethodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
633
+
634
+ /**
635
+ * Update zero or more UnlockMethods and returns the data updated in the database.
636
+ * @param {UnlockMethodUpdateManyAndReturnArgs} args - Arguments to update many UnlockMethods.
637
+ * @example
638
+ * // Update many UnlockMethods
639
+ * const unlockMethod = await prisma.unlockMethod.updateManyAndReturn({
640
+ * where: {
641
+ * // ... provide filter here
642
+ * },
643
+ * data: [
644
+ * // ... provide data here
645
+ * ]
646
+ * })
647
+ *
648
+ * // Update zero or more UnlockMethods and only return the `id`
649
+ * const unlockMethodWithIdOnly = await prisma.unlockMethod.updateManyAndReturn({
650
+ * select: { id: true },
651
+ * where: {
652
+ * // ... provide filter here
653
+ * },
654
+ * data: [
655
+ * // ... provide data here
656
+ * ]
657
+ * })
658
+ * Note, that providing `undefined` is treated as the value not being there.
659
+ * Read more here: https://pris.ly/d/null-undefined
660
+ *
661
+ */
662
+ updateManyAndReturn<T extends UnlockMethodUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UnlockMethodUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
663
+
664
+ /**
665
+ * Create or update one UnlockMethod.
666
+ * @param {UnlockMethodUpsertArgs} args - Arguments to update or create a UnlockMethod.
667
+ * @example
668
+ * // Update or create a UnlockMethod
669
+ * const unlockMethod = await prisma.unlockMethod.upsert({
670
+ * create: {
671
+ * // ... data to create a UnlockMethod
672
+ * },
673
+ * update: {
674
+ * // ... in case it already exists, update
675
+ * },
676
+ * where: {
677
+ * // ... the filter for the UnlockMethod we want to update
678
+ * }
679
+ * })
680
+ */
681
+ upsert<T extends UnlockMethodUpsertArgs>(args: Prisma.SelectSubset<T, UnlockMethodUpsertArgs<ExtArgs>>): Prisma.Prisma__UnlockMethodClient<runtime.Types.Result.GetResult<Prisma.$UnlockMethodPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
682
+
683
+
684
+ /**
685
+ * Count the number of UnlockMethods.
686
+ * Note, that providing `undefined` is treated as the value not being there.
687
+ * Read more here: https://pris.ly/d/null-undefined
688
+ * @param {UnlockMethodCountArgs} args - Arguments to filter UnlockMethods to count.
689
+ * @example
690
+ * // Count the number of UnlockMethods
691
+ * const count = await prisma.unlockMethod.count({
692
+ * where: {
693
+ * // ... the filter for the UnlockMethods we want to count
694
+ * }
695
+ * })
696
+ **/
697
+ count<T extends UnlockMethodCountArgs>(
698
+ args?: Prisma.Subset<T, UnlockMethodCountArgs>,
699
+ ): Prisma.PrismaPromise<
700
+ T extends runtime.Types.Utils.Record<'select', any>
701
+ ? T['select'] extends true
702
+ ? number
703
+ : Prisma.GetScalarType<T['select'], UnlockMethodCountAggregateOutputType>
704
+ : number
705
+ >
706
+
707
+ /**
708
+ * Allows you to perform aggregations operations on a UnlockMethod.
709
+ * Note, that providing `undefined` is treated as the value not being there.
710
+ * Read more here: https://pris.ly/d/null-undefined
711
+ * @param {UnlockMethodAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
712
+ * @example
713
+ * // Ordered by age ascending
714
+ * // Where email contains prisma.io
715
+ * // Limited to the 10 users
716
+ * const aggregations = await prisma.user.aggregate({
717
+ * _avg: {
718
+ * age: true,
719
+ * },
720
+ * where: {
721
+ * email: {
722
+ * contains: "prisma.io",
723
+ * },
724
+ * },
725
+ * orderBy: {
726
+ * age: "asc",
727
+ * },
728
+ * take: 10,
729
+ * })
730
+ **/
731
+ aggregate<T extends UnlockMethodAggregateArgs>(args: Prisma.Subset<T, UnlockMethodAggregateArgs>): Prisma.PrismaPromise<GetUnlockMethodAggregateType<T>>
732
+
733
+ /**
734
+ * Group by UnlockMethod.
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ * @param {UnlockMethodGroupByArgs} args - Group by arguments.
738
+ * @example
739
+ * // Group by city, order by createdAt, get count
740
+ * const result = await prisma.user.groupBy({
741
+ * by: ['city', 'createdAt'],
742
+ * orderBy: {
743
+ * createdAt: true
744
+ * },
745
+ * _count: {
746
+ * _all: true
747
+ * },
748
+ * })
749
+ *
750
+ **/
751
+ groupBy<
752
+ T extends UnlockMethodGroupByArgs,
753
+ HasSelectOrTake extends Prisma.Or<
754
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
755
+ Prisma.Extends<'take', Prisma.Keys<T>>
756
+ >,
757
+ OrderByArg extends Prisma.True extends HasSelectOrTake
758
+ ? { orderBy: UnlockMethodGroupByArgs['orderBy'] }
759
+ : { orderBy?: UnlockMethodGroupByArgs['orderBy'] },
760
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
761
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
762
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
763
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
764
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
765
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
766
+ InputErrors extends ByEmpty extends Prisma.True
767
+ ? `Error: "by" must not be empty.`
768
+ : HavingValid extends Prisma.False
769
+ ? {
770
+ [P in HavingFields]: P extends ByFields
771
+ ? never
772
+ : P extends string
773
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
774
+ : [
775
+ Error,
776
+ 'Field ',
777
+ P,
778
+ ` in "having" needs to be provided in "by"`,
779
+ ]
780
+ }[HavingFields]
781
+ : 'take' extends Prisma.Keys<T>
782
+ ? 'orderBy' extends Prisma.Keys<T>
783
+ ? ByValid extends Prisma.True
784
+ ? {}
785
+ : {
786
+ [P in OrderFields]: P extends ByFields
787
+ ? never
788
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
789
+ }[OrderFields]
790
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
791
+ : 'skip' extends Prisma.Keys<T>
792
+ ? 'orderBy' extends Prisma.Keys<T>
793
+ ? ByValid extends Prisma.True
794
+ ? {}
795
+ : {
796
+ [P in OrderFields]: P extends ByFields
797
+ ? never
798
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
799
+ }[OrderFields]
800
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
801
+ : ByValid extends Prisma.True
802
+ ? {}
803
+ : {
804
+ [P in OrderFields]: P extends ByFields
805
+ ? never
806
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
807
+ }[OrderFields]
808
+ >(args: Prisma.SubsetIntersection<T, UnlockMethodGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUnlockMethodGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
809
+ /**
810
+ * Fields of the UnlockMethod model
811
+ */
812
+ readonly fields: UnlockMethodFieldRefs;
813
+ }
814
+
815
+ /**
816
+ * The delegate class that acts as a "Promise-like" for UnlockMethod.
817
+ * Why is this prefixed with `Prisma__`?
818
+ * Because we want to prevent naming conflicts as mentioned in
819
+ * https://github.com/prisma/prisma-client-js/issues/707
820
+ */
821
+ export interface Prisma__UnlockMethodClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
822
+ readonly [Symbol.toStringTag]: "PrismaPromise"
823
+ /**
824
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
825
+ * @param onfulfilled The callback to execute when the Promise is resolved.
826
+ * @param onrejected The callback to execute when the Promise is rejected.
827
+ * @returns A Promise for the completion of which ever callback is executed.
828
+ */
829
+ 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>
830
+ /**
831
+ * Attaches a callback for only the rejection of the Promise.
832
+ * @param onrejected The callback to execute when the Promise is rejected.
833
+ * @returns A Promise for the completion of the callback.
834
+ */
835
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
836
+ /**
837
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
838
+ * resolved value cannot be modified from the callback.
839
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
840
+ * @returns A Promise for the completion of the callback.
841
+ */
842
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
843
+ }
844
+
845
+
846
+
847
+
848
+ /**
849
+ * Fields of the UnlockMethod model
850
+ */
851
+ export interface UnlockMethodFieldRefs {
852
+ readonly id: Prisma.FieldRef<"UnlockMethod", 'String'>
853
+ readonly meta: Prisma.FieldRef<"UnlockMethod", 'Json'>
854
+ readonly type: Prisma.FieldRef<"UnlockMethod", 'UnlockMethodType'>
855
+ readonly encryptedIdentity: Prisma.FieldRef<"UnlockMethod", 'String'>
856
+ readonly recipient: Prisma.FieldRef<"UnlockMethod", 'String'>
857
+ readonly createdAt: Prisma.FieldRef<"UnlockMethod", 'DateTime'>
858
+ readonly updatedAt: Prisma.FieldRef<"UnlockMethod", 'DateTime'>
859
+ }
860
+
861
+
862
+ // Custom InputTypes
863
+ /**
864
+ * UnlockMethod findUnique
865
+ */
866
+ export type UnlockMethodFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
867
+ /**
868
+ * Select specific fields to fetch from the UnlockMethod
869
+ */
870
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
871
+ /**
872
+ * Omit specific fields from the UnlockMethod
873
+ */
874
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
875
+ /**
876
+ * Filter, which UnlockMethod to fetch.
877
+ */
878
+ where: Prisma.UnlockMethodWhereUniqueInput
879
+ }
880
+
881
+ /**
882
+ * UnlockMethod findUniqueOrThrow
883
+ */
884
+ export type UnlockMethodFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
885
+ /**
886
+ * Select specific fields to fetch from the UnlockMethod
887
+ */
888
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
889
+ /**
890
+ * Omit specific fields from the UnlockMethod
891
+ */
892
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
893
+ /**
894
+ * Filter, which UnlockMethod to fetch.
895
+ */
896
+ where: Prisma.UnlockMethodWhereUniqueInput
897
+ }
898
+
899
+ /**
900
+ * UnlockMethod findFirst
901
+ */
902
+ export type UnlockMethodFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ /**
904
+ * Select specific fields to fetch from the UnlockMethod
905
+ */
906
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
907
+ /**
908
+ * Omit specific fields from the UnlockMethod
909
+ */
910
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
911
+ /**
912
+ * Filter, which UnlockMethod to fetch.
913
+ */
914
+ where?: Prisma.UnlockMethodWhereInput
915
+ /**
916
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
917
+ *
918
+ * Determine the order of UnlockMethods to fetch.
919
+ */
920
+ orderBy?: Prisma.UnlockMethodOrderByWithRelationInput | Prisma.UnlockMethodOrderByWithRelationInput[]
921
+ /**
922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
923
+ *
924
+ * Sets the position for searching for UnlockMethods.
925
+ */
926
+ cursor?: Prisma.UnlockMethodWhereUniqueInput
927
+ /**
928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
929
+ *
930
+ * Take `±n` UnlockMethods from the position of the cursor.
931
+ */
932
+ take?: number
933
+ /**
934
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
935
+ *
936
+ * Skip the first `n` UnlockMethods.
937
+ */
938
+ skip?: number
939
+ /**
940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
941
+ *
942
+ * Filter by unique combinations of UnlockMethods.
943
+ */
944
+ distinct?: Prisma.UnlockMethodScalarFieldEnum | Prisma.UnlockMethodScalarFieldEnum[]
945
+ }
946
+
947
+ /**
948
+ * UnlockMethod findFirstOrThrow
949
+ */
950
+ export type UnlockMethodFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
951
+ /**
952
+ * Select specific fields to fetch from the UnlockMethod
953
+ */
954
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
955
+ /**
956
+ * Omit specific fields from the UnlockMethod
957
+ */
958
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
959
+ /**
960
+ * Filter, which UnlockMethod to fetch.
961
+ */
962
+ where?: Prisma.UnlockMethodWhereInput
963
+ /**
964
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
965
+ *
966
+ * Determine the order of UnlockMethods to fetch.
967
+ */
968
+ orderBy?: Prisma.UnlockMethodOrderByWithRelationInput | Prisma.UnlockMethodOrderByWithRelationInput[]
969
+ /**
970
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
971
+ *
972
+ * Sets the position for searching for UnlockMethods.
973
+ */
974
+ cursor?: Prisma.UnlockMethodWhereUniqueInput
975
+ /**
976
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
977
+ *
978
+ * Take `±n` UnlockMethods from the position of the cursor.
979
+ */
980
+ take?: number
981
+ /**
982
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
983
+ *
984
+ * Skip the first `n` UnlockMethods.
985
+ */
986
+ skip?: number
987
+ /**
988
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
989
+ *
990
+ * Filter by unique combinations of UnlockMethods.
991
+ */
992
+ distinct?: Prisma.UnlockMethodScalarFieldEnum | Prisma.UnlockMethodScalarFieldEnum[]
993
+ }
994
+
995
+ /**
996
+ * UnlockMethod findMany
997
+ */
998
+ export type UnlockMethodFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
999
+ /**
1000
+ * Select specific fields to fetch from the UnlockMethod
1001
+ */
1002
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
1003
+ /**
1004
+ * Omit specific fields from the UnlockMethod
1005
+ */
1006
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1007
+ /**
1008
+ * Filter, which UnlockMethods to fetch.
1009
+ */
1010
+ where?: Prisma.UnlockMethodWhereInput
1011
+ /**
1012
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1013
+ *
1014
+ * Determine the order of UnlockMethods to fetch.
1015
+ */
1016
+ orderBy?: Prisma.UnlockMethodOrderByWithRelationInput | Prisma.UnlockMethodOrderByWithRelationInput[]
1017
+ /**
1018
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1019
+ *
1020
+ * Sets the position for listing UnlockMethods.
1021
+ */
1022
+ cursor?: Prisma.UnlockMethodWhereUniqueInput
1023
+ /**
1024
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1025
+ *
1026
+ * Take `±n` UnlockMethods from the position of the cursor.
1027
+ */
1028
+ take?: number
1029
+ /**
1030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1031
+ *
1032
+ * Skip the first `n` UnlockMethods.
1033
+ */
1034
+ skip?: number
1035
+ distinct?: Prisma.UnlockMethodScalarFieldEnum | Prisma.UnlockMethodScalarFieldEnum[]
1036
+ }
1037
+
1038
+ /**
1039
+ * UnlockMethod create
1040
+ */
1041
+ export type UnlockMethodCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1042
+ /**
1043
+ * Select specific fields to fetch from the UnlockMethod
1044
+ */
1045
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
1046
+ /**
1047
+ * Omit specific fields from the UnlockMethod
1048
+ */
1049
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1050
+ /**
1051
+ * The data needed to create a UnlockMethod.
1052
+ */
1053
+ data: Prisma.XOR<Prisma.UnlockMethodCreateInput, Prisma.UnlockMethodUncheckedCreateInput>
1054
+ }
1055
+
1056
+ /**
1057
+ * UnlockMethod createMany
1058
+ */
1059
+ export type UnlockMethodCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1060
+ /**
1061
+ * The data used to create many UnlockMethods.
1062
+ */
1063
+ data: Prisma.UnlockMethodCreateManyInput | Prisma.UnlockMethodCreateManyInput[]
1064
+ }
1065
+
1066
+ /**
1067
+ * UnlockMethod createManyAndReturn
1068
+ */
1069
+ export type UnlockMethodCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1070
+ /**
1071
+ * Select specific fields to fetch from the UnlockMethod
1072
+ */
1073
+ select?: Prisma.UnlockMethodSelectCreateManyAndReturn<ExtArgs> | null
1074
+ /**
1075
+ * Omit specific fields from the UnlockMethod
1076
+ */
1077
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1078
+ /**
1079
+ * The data used to create many UnlockMethods.
1080
+ */
1081
+ data: Prisma.UnlockMethodCreateManyInput | Prisma.UnlockMethodCreateManyInput[]
1082
+ }
1083
+
1084
+ /**
1085
+ * UnlockMethod update
1086
+ */
1087
+ export type UnlockMethodUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1088
+ /**
1089
+ * Select specific fields to fetch from the UnlockMethod
1090
+ */
1091
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
1092
+ /**
1093
+ * Omit specific fields from the UnlockMethod
1094
+ */
1095
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1096
+ /**
1097
+ * The data needed to update a UnlockMethod.
1098
+ */
1099
+ data: Prisma.XOR<Prisma.UnlockMethodUpdateInput, Prisma.UnlockMethodUncheckedUpdateInput>
1100
+ /**
1101
+ * Choose, which UnlockMethod to update.
1102
+ */
1103
+ where: Prisma.UnlockMethodWhereUniqueInput
1104
+ }
1105
+
1106
+ /**
1107
+ * UnlockMethod updateMany
1108
+ */
1109
+ export type UnlockMethodUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
+ /**
1111
+ * The data used to update UnlockMethods.
1112
+ */
1113
+ data: Prisma.XOR<Prisma.UnlockMethodUpdateManyMutationInput, Prisma.UnlockMethodUncheckedUpdateManyInput>
1114
+ /**
1115
+ * Filter which UnlockMethods to update
1116
+ */
1117
+ where?: Prisma.UnlockMethodWhereInput
1118
+ /**
1119
+ * Limit how many UnlockMethods to update.
1120
+ */
1121
+ limit?: number
1122
+ }
1123
+
1124
+ /**
1125
+ * UnlockMethod updateManyAndReturn
1126
+ */
1127
+ export type UnlockMethodUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
+ /**
1129
+ * Select specific fields to fetch from the UnlockMethod
1130
+ */
1131
+ select?: Prisma.UnlockMethodSelectUpdateManyAndReturn<ExtArgs> | null
1132
+ /**
1133
+ * Omit specific fields from the UnlockMethod
1134
+ */
1135
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1136
+ /**
1137
+ * The data used to update UnlockMethods.
1138
+ */
1139
+ data: Prisma.XOR<Prisma.UnlockMethodUpdateManyMutationInput, Prisma.UnlockMethodUncheckedUpdateManyInput>
1140
+ /**
1141
+ * Filter which UnlockMethods to update
1142
+ */
1143
+ where?: Prisma.UnlockMethodWhereInput
1144
+ /**
1145
+ * Limit how many UnlockMethods to update.
1146
+ */
1147
+ limit?: number
1148
+ }
1149
+
1150
+ /**
1151
+ * UnlockMethod upsert
1152
+ */
1153
+ export type UnlockMethodUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ /**
1155
+ * Select specific fields to fetch from the UnlockMethod
1156
+ */
1157
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
1158
+ /**
1159
+ * Omit specific fields from the UnlockMethod
1160
+ */
1161
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1162
+ /**
1163
+ * The filter to search for the UnlockMethod to update in case it exists.
1164
+ */
1165
+ where: Prisma.UnlockMethodWhereUniqueInput
1166
+ /**
1167
+ * In case the UnlockMethod found by the `where` argument doesn't exist, create a new UnlockMethod with this data.
1168
+ */
1169
+ create: Prisma.XOR<Prisma.UnlockMethodCreateInput, Prisma.UnlockMethodUncheckedCreateInput>
1170
+ /**
1171
+ * In case the UnlockMethod was found with the provided `where` argument, update it with this data.
1172
+ */
1173
+ update: Prisma.XOR<Prisma.UnlockMethodUpdateInput, Prisma.UnlockMethodUncheckedUpdateInput>
1174
+ }
1175
+
1176
+ /**
1177
+ * UnlockMethod delete
1178
+ */
1179
+ export type UnlockMethodDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1180
+ /**
1181
+ * Select specific fields to fetch from the UnlockMethod
1182
+ */
1183
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
1184
+ /**
1185
+ * Omit specific fields from the UnlockMethod
1186
+ */
1187
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1188
+ /**
1189
+ * Filter which UnlockMethod to delete.
1190
+ */
1191
+ where: Prisma.UnlockMethodWhereUniqueInput
1192
+ }
1193
+
1194
+ /**
1195
+ * UnlockMethod deleteMany
1196
+ */
1197
+ export type UnlockMethodDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1198
+ /**
1199
+ * Filter which UnlockMethods to delete
1200
+ */
1201
+ where?: Prisma.UnlockMethodWhereInput
1202
+ /**
1203
+ * Limit how many UnlockMethods to delete.
1204
+ */
1205
+ limit?: number
1206
+ }
1207
+
1208
+ /**
1209
+ * UnlockMethod without action
1210
+ */
1211
+ export type UnlockMethodDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1212
+ /**
1213
+ * Select specific fields to fetch from the UnlockMethod
1214
+ */
1215
+ select?: Prisma.UnlockMethodSelect<ExtArgs> | null
1216
+ /**
1217
+ * Omit specific fields from the UnlockMethod
1218
+ */
1219
+ omit?: Prisma.UnlockMethodOmit<ExtArgs> | null
1220
+ }