@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,1692 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `Secret` 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 Secret
18
+ *
19
+ */
20
+ export type SecretModel = runtime.Types.Result.DefaultSelection<Prisma.$SecretPayload>
21
+
22
+ export type AggregateSecret = {
23
+ _count: SecretCountAggregateOutputType | null
24
+ _min: SecretMinAggregateOutputType | null
25
+ _max: SecretMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type SecretMinAggregateOutputType = {
29
+ id: string | null
30
+ stateId: string | null
31
+ name: string | null
32
+ systemName: string | null
33
+ serviceAccountId: string | null
34
+ createdAt: Date | null
35
+ updatedAt: Date | null
36
+ }
37
+
38
+ export type SecretMaxAggregateOutputType = {
39
+ id: string | null
40
+ stateId: string | null
41
+ name: string | null
42
+ systemName: string | null
43
+ serviceAccountId: string | null
44
+ createdAt: Date | null
45
+ updatedAt: Date | null
46
+ }
47
+
48
+ export type SecretCountAggregateOutputType = {
49
+ id: number
50
+ meta: number
51
+ stateId: number
52
+ name: number
53
+ systemName: number
54
+ serviceAccountId: number
55
+ content: number
56
+ createdAt: number
57
+ updatedAt: number
58
+ _all: number
59
+ }
60
+
61
+
62
+ export type SecretMinAggregateInputType = {
63
+ id?: true
64
+ stateId?: true
65
+ name?: true
66
+ systemName?: true
67
+ serviceAccountId?: true
68
+ createdAt?: true
69
+ updatedAt?: true
70
+ }
71
+
72
+ export type SecretMaxAggregateInputType = {
73
+ id?: true
74
+ stateId?: true
75
+ name?: true
76
+ systemName?: true
77
+ serviceAccountId?: true
78
+ createdAt?: true
79
+ updatedAt?: true
80
+ }
81
+
82
+ export type SecretCountAggregateInputType = {
83
+ id?: true
84
+ meta?: true
85
+ stateId?: true
86
+ name?: true
87
+ systemName?: true
88
+ serviceAccountId?: true
89
+ content?: true
90
+ createdAt?: true
91
+ updatedAt?: true
92
+ _all?: true
93
+ }
94
+
95
+ export type SecretAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
96
+ /**
97
+ * Filter which Secret to aggregate.
98
+ */
99
+ where?: Prisma.SecretWhereInput
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
102
+ *
103
+ * Determine the order of Secrets to fetch.
104
+ */
105
+ orderBy?: Prisma.SecretOrderByWithRelationInput | Prisma.SecretOrderByWithRelationInput[]
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
108
+ *
109
+ * Sets the start position
110
+ */
111
+ cursor?: Prisma.SecretWhereUniqueInput
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
114
+ *
115
+ * Take `±n` Secrets from the position of the cursor.
116
+ */
117
+ take?: number
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
120
+ *
121
+ * Skip the first `n` Secrets.
122
+ */
123
+ skip?: number
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
126
+ *
127
+ * Count returned Secrets
128
+ **/
129
+ _count?: true | SecretCountAggregateInputType
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
132
+ *
133
+ * Select which fields to find the minimum value
134
+ **/
135
+ _min?: SecretMinAggregateInputType
136
+ /**
137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
138
+ *
139
+ * Select which fields to find the maximum value
140
+ **/
141
+ _max?: SecretMaxAggregateInputType
142
+ }
143
+
144
+ export type GetSecretAggregateType<T extends SecretAggregateArgs> = {
145
+ [P in keyof T & keyof AggregateSecret]: P extends '_count' | 'count'
146
+ ? T[P] extends true
147
+ ? number
148
+ : Prisma.GetScalarType<T[P], AggregateSecret[P]>
149
+ : Prisma.GetScalarType<T[P], AggregateSecret[P]>
150
+ }
151
+
152
+
153
+
154
+
155
+ export type SecretGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
156
+ where?: Prisma.SecretWhereInput
157
+ orderBy?: Prisma.SecretOrderByWithAggregationInput | Prisma.SecretOrderByWithAggregationInput[]
158
+ by: Prisma.SecretScalarFieldEnum[] | Prisma.SecretScalarFieldEnum
159
+ having?: Prisma.SecretScalarWhereWithAggregatesInput
160
+ take?: number
161
+ skip?: number
162
+ _count?: SecretCountAggregateInputType | true
163
+ _min?: SecretMinAggregateInputType
164
+ _max?: SecretMaxAggregateInputType
165
+ }
166
+
167
+ export type SecretGroupByOutputType = {
168
+ id: string
169
+ meta: PrismaJson.GlobalCommonObjectMeta
170
+ stateId: string | null
171
+ name: string | null
172
+ systemName: string | null
173
+ serviceAccountId: string | null
174
+ content: (unknown)
175
+ createdAt: Date
176
+ updatedAt: Date
177
+ _count: SecretCountAggregateOutputType | null
178
+ _min: SecretMinAggregateOutputType | null
179
+ _max: SecretMaxAggregateOutputType | null
180
+ }
181
+
182
+ type GetSecretGroupByPayload<T extends SecretGroupByArgs> = Prisma.PrismaPromise<
183
+ Array<
184
+ Prisma.PickEnumerable<SecretGroupByOutputType, T['by']> &
185
+ {
186
+ [P in ((keyof T) & (keyof SecretGroupByOutputType))]: P extends '_count'
187
+ ? T[P] extends boolean
188
+ ? number
189
+ : Prisma.GetScalarType<T[P], SecretGroupByOutputType[P]>
190
+ : Prisma.GetScalarType<T[P], SecretGroupByOutputType[P]>
191
+ }
192
+ >
193
+ >
194
+
195
+
196
+
197
+ export type SecretWhereInput = {
198
+ AND?: Prisma.SecretWhereInput | Prisma.SecretWhereInput[]
199
+ OR?: Prisma.SecretWhereInput[]
200
+ NOT?: Prisma.SecretWhereInput | Prisma.SecretWhereInput[]
201
+ id?: Prisma.StringFilter<"Secret"> | string
202
+ meta?: Prisma.JsonFilter<"Secret">
203
+ stateId?: Prisma.StringNullableFilter<"Secret"> | string | null
204
+ name?: Prisma.StringNullableFilter<"Secret"> | string | null
205
+ systemName?: Prisma.StringNullableFilter<"Secret"> | string | null
206
+ serviceAccountId?: Prisma.StringNullableFilter<"Secret"> | string | null
207
+ content?: Prisma.JsonFilter<"Secret">
208
+ createdAt?: Prisma.DateTimeFilter<"Secret"> | Date | string
209
+ updatedAt?: Prisma.DateTimeFilter<"Secret"> | Date | string
210
+ state?: Prisma.XOR<Prisma.InstanceStateNullableScalarRelationFilter, Prisma.InstanceStateWhereInput> | null
211
+ serviceAccount?: Prisma.XOR<Prisma.ServiceAccountNullableScalarRelationFilter, Prisma.ServiceAccountWhereInput> | null
212
+ }
213
+
214
+ export type SecretOrderByWithRelationInput = {
215
+ id?: Prisma.SortOrder
216
+ meta?: Prisma.SortOrder
217
+ stateId?: Prisma.SortOrderInput | Prisma.SortOrder
218
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
219
+ systemName?: Prisma.SortOrderInput | Prisma.SortOrder
220
+ serviceAccountId?: Prisma.SortOrderInput | Prisma.SortOrder
221
+ content?: Prisma.SortOrder
222
+ createdAt?: Prisma.SortOrder
223
+ updatedAt?: Prisma.SortOrder
224
+ state?: Prisma.InstanceStateOrderByWithRelationInput
225
+ serviceAccount?: Prisma.ServiceAccountOrderByWithRelationInput
226
+ }
227
+
228
+ export type SecretWhereUniqueInput = Prisma.AtLeast<{
229
+ id?: string
230
+ systemName?: string
231
+ stateId_name?: Prisma.SecretStateIdNameCompoundUniqueInput
232
+ AND?: Prisma.SecretWhereInput | Prisma.SecretWhereInput[]
233
+ OR?: Prisma.SecretWhereInput[]
234
+ NOT?: Prisma.SecretWhereInput | Prisma.SecretWhereInput[]
235
+ meta?: Prisma.JsonFilter<"Secret">
236
+ stateId?: Prisma.StringNullableFilter<"Secret"> | string | null
237
+ name?: Prisma.StringNullableFilter<"Secret"> | string | null
238
+ serviceAccountId?: Prisma.StringNullableFilter<"Secret"> | string | null
239
+ content?: Prisma.JsonFilter<"Secret">
240
+ createdAt?: Prisma.DateTimeFilter<"Secret"> | Date | string
241
+ updatedAt?: Prisma.DateTimeFilter<"Secret"> | Date | string
242
+ state?: Prisma.XOR<Prisma.InstanceStateNullableScalarRelationFilter, Prisma.InstanceStateWhereInput> | null
243
+ serviceAccount?: Prisma.XOR<Prisma.ServiceAccountNullableScalarRelationFilter, Prisma.ServiceAccountWhereInput> | null
244
+ }, "id" | "systemName" | "stateId_name">
245
+
246
+ export type SecretOrderByWithAggregationInput = {
247
+ id?: Prisma.SortOrder
248
+ meta?: Prisma.SortOrder
249
+ stateId?: Prisma.SortOrderInput | Prisma.SortOrder
250
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
251
+ systemName?: Prisma.SortOrderInput | Prisma.SortOrder
252
+ serviceAccountId?: Prisma.SortOrderInput | Prisma.SortOrder
253
+ content?: Prisma.SortOrder
254
+ createdAt?: Prisma.SortOrder
255
+ updatedAt?: Prisma.SortOrder
256
+ _count?: Prisma.SecretCountOrderByAggregateInput
257
+ _max?: Prisma.SecretMaxOrderByAggregateInput
258
+ _min?: Prisma.SecretMinOrderByAggregateInput
259
+ }
260
+
261
+ export type SecretScalarWhereWithAggregatesInput = {
262
+ AND?: Prisma.SecretScalarWhereWithAggregatesInput | Prisma.SecretScalarWhereWithAggregatesInput[]
263
+ OR?: Prisma.SecretScalarWhereWithAggregatesInput[]
264
+ NOT?: Prisma.SecretScalarWhereWithAggregatesInput | Prisma.SecretScalarWhereWithAggregatesInput[]
265
+ id?: Prisma.StringWithAggregatesFilter<"Secret"> | string
266
+ meta?: Prisma.JsonWithAggregatesFilter<"Secret">
267
+ stateId?: Prisma.StringNullableWithAggregatesFilter<"Secret"> | string | null
268
+ name?: Prisma.StringNullableWithAggregatesFilter<"Secret"> | string | null
269
+ systemName?: Prisma.StringNullableWithAggregatesFilter<"Secret"> | string | null
270
+ serviceAccountId?: Prisma.StringNullableWithAggregatesFilter<"Secret"> | string | null
271
+ content?: Prisma.JsonWithAggregatesFilter<"Secret">
272
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Secret"> | Date | string
273
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Secret"> | Date | string
274
+ }
275
+
276
+ export type SecretCreateInput = {
277
+ id?: string
278
+ meta: PrismaJson.GlobalCommonObjectMeta
279
+ name?: string | null
280
+ systemName?: string | null
281
+ content: (unknown)
282
+ createdAt?: Date | string
283
+ updatedAt?: Date | string
284
+ state?: Prisma.InstanceStateCreateNestedOneWithoutSecretsInput
285
+ serviceAccount?: Prisma.ServiceAccountCreateNestedOneWithoutSecretsInput
286
+ }
287
+
288
+ export type SecretUncheckedCreateInput = {
289
+ id?: string
290
+ meta: PrismaJson.GlobalCommonObjectMeta
291
+ stateId?: string | null
292
+ name?: string | null
293
+ systemName?: string | null
294
+ serviceAccountId?: string | null
295
+ content: (unknown)
296
+ createdAt?: Date | string
297
+ updatedAt?: Date | string
298
+ }
299
+
300
+ export type SecretUpdateInput = {
301
+ id?: Prisma.StringFieldUpdateOperationsInput | string
302
+ meta?: PrismaJson.GlobalCommonObjectMeta
303
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
304
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
305
+ content?: (unknown)
306
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
307
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
308
+ state?: Prisma.InstanceStateUpdateOneWithoutSecretsNestedInput
309
+ serviceAccount?: Prisma.ServiceAccountUpdateOneWithoutSecretsNestedInput
310
+ }
311
+
312
+ export type SecretUncheckedUpdateInput = {
313
+ id?: Prisma.StringFieldUpdateOperationsInput | string
314
+ meta?: PrismaJson.GlobalCommonObjectMeta
315
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
316
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
317
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
318
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
319
+ content?: (unknown)
320
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
321
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
322
+ }
323
+
324
+ export type SecretCreateManyInput = {
325
+ id?: string
326
+ meta: PrismaJson.GlobalCommonObjectMeta
327
+ stateId?: string | null
328
+ name?: string | null
329
+ systemName?: string | null
330
+ serviceAccountId?: string | null
331
+ content: (unknown)
332
+ createdAt?: Date | string
333
+ updatedAt?: Date | string
334
+ }
335
+
336
+ export type SecretUpdateManyMutationInput = {
337
+ id?: Prisma.StringFieldUpdateOperationsInput | string
338
+ meta?: PrismaJson.GlobalCommonObjectMeta
339
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
340
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
341
+ content?: (unknown)
342
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
343
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
344
+ }
345
+
346
+ export type SecretUncheckedUpdateManyInput = {
347
+ id?: Prisma.StringFieldUpdateOperationsInput | string
348
+ meta?: PrismaJson.GlobalCommonObjectMeta
349
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
350
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
351
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
352
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
353
+ content?: (unknown)
354
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
355
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
356
+ }
357
+
358
+ export type SecretListRelationFilter = {
359
+ every?: Prisma.SecretWhereInput
360
+ some?: Prisma.SecretWhereInput
361
+ none?: Prisma.SecretWhereInput
362
+ }
363
+
364
+ export type SecretOrderByRelationAggregateInput = {
365
+ _count?: Prisma.SortOrder
366
+ }
367
+
368
+ export type SecretStateIdNameCompoundUniqueInput = {
369
+ stateId: string
370
+ name: string
371
+ }
372
+
373
+ export type SecretCountOrderByAggregateInput = {
374
+ id?: Prisma.SortOrder
375
+ meta?: Prisma.SortOrder
376
+ stateId?: Prisma.SortOrder
377
+ name?: Prisma.SortOrder
378
+ systemName?: Prisma.SortOrder
379
+ serviceAccountId?: Prisma.SortOrder
380
+ content?: Prisma.SortOrder
381
+ createdAt?: Prisma.SortOrder
382
+ updatedAt?: Prisma.SortOrder
383
+ }
384
+
385
+ export type SecretMaxOrderByAggregateInput = {
386
+ id?: Prisma.SortOrder
387
+ stateId?: Prisma.SortOrder
388
+ name?: Prisma.SortOrder
389
+ systemName?: Prisma.SortOrder
390
+ serviceAccountId?: Prisma.SortOrder
391
+ createdAt?: Prisma.SortOrder
392
+ updatedAt?: Prisma.SortOrder
393
+ }
394
+
395
+ export type SecretMinOrderByAggregateInput = {
396
+ id?: Prisma.SortOrder
397
+ stateId?: Prisma.SortOrder
398
+ name?: Prisma.SortOrder
399
+ systemName?: Prisma.SortOrder
400
+ serviceAccountId?: Prisma.SortOrder
401
+ createdAt?: Prisma.SortOrder
402
+ updatedAt?: Prisma.SortOrder
403
+ }
404
+
405
+ export type SecretCreateNestedManyWithoutStateInput = {
406
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutStateInput, Prisma.SecretUncheckedCreateWithoutStateInput> | Prisma.SecretCreateWithoutStateInput[] | Prisma.SecretUncheckedCreateWithoutStateInput[]
407
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutStateInput | Prisma.SecretCreateOrConnectWithoutStateInput[]
408
+ createMany?: Prisma.SecretCreateManyStateInputEnvelope
409
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
410
+ }
411
+
412
+ export type SecretUncheckedCreateNestedManyWithoutStateInput = {
413
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutStateInput, Prisma.SecretUncheckedCreateWithoutStateInput> | Prisma.SecretCreateWithoutStateInput[] | Prisma.SecretUncheckedCreateWithoutStateInput[]
414
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutStateInput | Prisma.SecretCreateOrConnectWithoutStateInput[]
415
+ createMany?: Prisma.SecretCreateManyStateInputEnvelope
416
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
417
+ }
418
+
419
+ export type SecretUpdateManyWithoutStateNestedInput = {
420
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutStateInput, Prisma.SecretUncheckedCreateWithoutStateInput> | Prisma.SecretCreateWithoutStateInput[] | Prisma.SecretUncheckedCreateWithoutStateInput[]
421
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutStateInput | Prisma.SecretCreateOrConnectWithoutStateInput[]
422
+ upsert?: Prisma.SecretUpsertWithWhereUniqueWithoutStateInput | Prisma.SecretUpsertWithWhereUniqueWithoutStateInput[]
423
+ createMany?: Prisma.SecretCreateManyStateInputEnvelope
424
+ set?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
425
+ disconnect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
426
+ delete?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
427
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
428
+ update?: Prisma.SecretUpdateWithWhereUniqueWithoutStateInput | Prisma.SecretUpdateWithWhereUniqueWithoutStateInput[]
429
+ updateMany?: Prisma.SecretUpdateManyWithWhereWithoutStateInput | Prisma.SecretUpdateManyWithWhereWithoutStateInput[]
430
+ deleteMany?: Prisma.SecretScalarWhereInput | Prisma.SecretScalarWhereInput[]
431
+ }
432
+
433
+ export type SecretUncheckedUpdateManyWithoutStateNestedInput = {
434
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutStateInput, Prisma.SecretUncheckedCreateWithoutStateInput> | Prisma.SecretCreateWithoutStateInput[] | Prisma.SecretUncheckedCreateWithoutStateInput[]
435
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutStateInput | Prisma.SecretCreateOrConnectWithoutStateInput[]
436
+ upsert?: Prisma.SecretUpsertWithWhereUniqueWithoutStateInput | Prisma.SecretUpsertWithWhereUniqueWithoutStateInput[]
437
+ createMany?: Prisma.SecretCreateManyStateInputEnvelope
438
+ set?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
439
+ disconnect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
440
+ delete?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
441
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
442
+ update?: Prisma.SecretUpdateWithWhereUniqueWithoutStateInput | Prisma.SecretUpdateWithWhereUniqueWithoutStateInput[]
443
+ updateMany?: Prisma.SecretUpdateManyWithWhereWithoutStateInput | Prisma.SecretUpdateManyWithWhereWithoutStateInput[]
444
+ deleteMany?: Prisma.SecretScalarWhereInput | Prisma.SecretScalarWhereInput[]
445
+ }
446
+
447
+ export type SecretCreateNestedManyWithoutServiceAccountInput = {
448
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutServiceAccountInput, Prisma.SecretUncheckedCreateWithoutServiceAccountInput> | Prisma.SecretCreateWithoutServiceAccountInput[] | Prisma.SecretUncheckedCreateWithoutServiceAccountInput[]
449
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutServiceAccountInput | Prisma.SecretCreateOrConnectWithoutServiceAccountInput[]
450
+ createMany?: Prisma.SecretCreateManyServiceAccountInputEnvelope
451
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
452
+ }
453
+
454
+ export type SecretUncheckedCreateNestedManyWithoutServiceAccountInput = {
455
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutServiceAccountInput, Prisma.SecretUncheckedCreateWithoutServiceAccountInput> | Prisma.SecretCreateWithoutServiceAccountInput[] | Prisma.SecretUncheckedCreateWithoutServiceAccountInput[]
456
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutServiceAccountInput | Prisma.SecretCreateOrConnectWithoutServiceAccountInput[]
457
+ createMany?: Prisma.SecretCreateManyServiceAccountInputEnvelope
458
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
459
+ }
460
+
461
+ export type SecretUpdateManyWithoutServiceAccountNestedInput = {
462
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutServiceAccountInput, Prisma.SecretUncheckedCreateWithoutServiceAccountInput> | Prisma.SecretCreateWithoutServiceAccountInput[] | Prisma.SecretUncheckedCreateWithoutServiceAccountInput[]
463
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutServiceAccountInput | Prisma.SecretCreateOrConnectWithoutServiceAccountInput[]
464
+ upsert?: Prisma.SecretUpsertWithWhereUniqueWithoutServiceAccountInput | Prisma.SecretUpsertWithWhereUniqueWithoutServiceAccountInput[]
465
+ createMany?: Prisma.SecretCreateManyServiceAccountInputEnvelope
466
+ set?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
467
+ disconnect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
468
+ delete?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
469
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
470
+ update?: Prisma.SecretUpdateWithWhereUniqueWithoutServiceAccountInput | Prisma.SecretUpdateWithWhereUniqueWithoutServiceAccountInput[]
471
+ updateMany?: Prisma.SecretUpdateManyWithWhereWithoutServiceAccountInput | Prisma.SecretUpdateManyWithWhereWithoutServiceAccountInput[]
472
+ deleteMany?: Prisma.SecretScalarWhereInput | Prisma.SecretScalarWhereInput[]
473
+ }
474
+
475
+ export type SecretUncheckedUpdateManyWithoutServiceAccountNestedInput = {
476
+ create?: Prisma.XOR<Prisma.SecretCreateWithoutServiceAccountInput, Prisma.SecretUncheckedCreateWithoutServiceAccountInput> | Prisma.SecretCreateWithoutServiceAccountInput[] | Prisma.SecretUncheckedCreateWithoutServiceAccountInput[]
477
+ connectOrCreate?: Prisma.SecretCreateOrConnectWithoutServiceAccountInput | Prisma.SecretCreateOrConnectWithoutServiceAccountInput[]
478
+ upsert?: Prisma.SecretUpsertWithWhereUniqueWithoutServiceAccountInput | Prisma.SecretUpsertWithWhereUniqueWithoutServiceAccountInput[]
479
+ createMany?: Prisma.SecretCreateManyServiceAccountInputEnvelope
480
+ set?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
481
+ disconnect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
482
+ delete?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
483
+ connect?: Prisma.SecretWhereUniqueInput | Prisma.SecretWhereUniqueInput[]
484
+ update?: Prisma.SecretUpdateWithWhereUniqueWithoutServiceAccountInput | Prisma.SecretUpdateWithWhereUniqueWithoutServiceAccountInput[]
485
+ updateMany?: Prisma.SecretUpdateManyWithWhereWithoutServiceAccountInput | Prisma.SecretUpdateManyWithWhereWithoutServiceAccountInput[]
486
+ deleteMany?: Prisma.SecretScalarWhereInput | Prisma.SecretScalarWhereInput[]
487
+ }
488
+
489
+ export type SecretCreateWithoutStateInput = {
490
+ id?: string
491
+ meta: PrismaJson.GlobalCommonObjectMeta
492
+ name?: string | null
493
+ systemName?: string | null
494
+ content: (unknown)
495
+ createdAt?: Date | string
496
+ updatedAt?: Date | string
497
+ serviceAccount?: Prisma.ServiceAccountCreateNestedOneWithoutSecretsInput
498
+ }
499
+
500
+ export type SecretUncheckedCreateWithoutStateInput = {
501
+ id?: string
502
+ meta: PrismaJson.GlobalCommonObjectMeta
503
+ name?: string | null
504
+ systemName?: string | null
505
+ serviceAccountId?: string | null
506
+ content: (unknown)
507
+ createdAt?: Date | string
508
+ updatedAt?: Date | string
509
+ }
510
+
511
+ export type SecretCreateOrConnectWithoutStateInput = {
512
+ where: Prisma.SecretWhereUniqueInput
513
+ create: Prisma.XOR<Prisma.SecretCreateWithoutStateInput, Prisma.SecretUncheckedCreateWithoutStateInput>
514
+ }
515
+
516
+ export type SecretCreateManyStateInputEnvelope = {
517
+ data: Prisma.SecretCreateManyStateInput | Prisma.SecretCreateManyStateInput[]
518
+ }
519
+
520
+ export type SecretUpsertWithWhereUniqueWithoutStateInput = {
521
+ where: Prisma.SecretWhereUniqueInput
522
+ update: Prisma.XOR<Prisma.SecretUpdateWithoutStateInput, Prisma.SecretUncheckedUpdateWithoutStateInput>
523
+ create: Prisma.XOR<Prisma.SecretCreateWithoutStateInput, Prisma.SecretUncheckedCreateWithoutStateInput>
524
+ }
525
+
526
+ export type SecretUpdateWithWhereUniqueWithoutStateInput = {
527
+ where: Prisma.SecretWhereUniqueInput
528
+ data: Prisma.XOR<Prisma.SecretUpdateWithoutStateInput, Prisma.SecretUncheckedUpdateWithoutStateInput>
529
+ }
530
+
531
+ export type SecretUpdateManyWithWhereWithoutStateInput = {
532
+ where: Prisma.SecretScalarWhereInput
533
+ data: Prisma.XOR<Prisma.SecretUpdateManyMutationInput, Prisma.SecretUncheckedUpdateManyWithoutStateInput>
534
+ }
535
+
536
+ export type SecretScalarWhereInput = {
537
+ AND?: Prisma.SecretScalarWhereInput | Prisma.SecretScalarWhereInput[]
538
+ OR?: Prisma.SecretScalarWhereInput[]
539
+ NOT?: Prisma.SecretScalarWhereInput | Prisma.SecretScalarWhereInput[]
540
+ id?: Prisma.StringFilter<"Secret"> | string
541
+ meta?: Prisma.JsonFilter<"Secret">
542
+ stateId?: Prisma.StringNullableFilter<"Secret"> | string | null
543
+ name?: Prisma.StringNullableFilter<"Secret"> | string | null
544
+ systemName?: Prisma.StringNullableFilter<"Secret"> | string | null
545
+ serviceAccountId?: Prisma.StringNullableFilter<"Secret"> | string | null
546
+ content?: Prisma.JsonFilter<"Secret">
547
+ createdAt?: Prisma.DateTimeFilter<"Secret"> | Date | string
548
+ updatedAt?: Prisma.DateTimeFilter<"Secret"> | Date | string
549
+ }
550
+
551
+ export type SecretCreateWithoutServiceAccountInput = {
552
+ id?: string
553
+ meta: PrismaJson.GlobalCommonObjectMeta
554
+ name?: string | null
555
+ systemName?: string | null
556
+ content: (unknown)
557
+ createdAt?: Date | string
558
+ updatedAt?: Date | string
559
+ state?: Prisma.InstanceStateCreateNestedOneWithoutSecretsInput
560
+ }
561
+
562
+ export type SecretUncheckedCreateWithoutServiceAccountInput = {
563
+ id?: string
564
+ meta: PrismaJson.GlobalCommonObjectMeta
565
+ stateId?: string | null
566
+ name?: string | null
567
+ systemName?: string | null
568
+ content: (unknown)
569
+ createdAt?: Date | string
570
+ updatedAt?: Date | string
571
+ }
572
+
573
+ export type SecretCreateOrConnectWithoutServiceAccountInput = {
574
+ where: Prisma.SecretWhereUniqueInput
575
+ create: Prisma.XOR<Prisma.SecretCreateWithoutServiceAccountInput, Prisma.SecretUncheckedCreateWithoutServiceAccountInput>
576
+ }
577
+
578
+ export type SecretCreateManyServiceAccountInputEnvelope = {
579
+ data: Prisma.SecretCreateManyServiceAccountInput | Prisma.SecretCreateManyServiceAccountInput[]
580
+ }
581
+
582
+ export type SecretUpsertWithWhereUniqueWithoutServiceAccountInput = {
583
+ where: Prisma.SecretWhereUniqueInput
584
+ update: Prisma.XOR<Prisma.SecretUpdateWithoutServiceAccountInput, Prisma.SecretUncheckedUpdateWithoutServiceAccountInput>
585
+ create: Prisma.XOR<Prisma.SecretCreateWithoutServiceAccountInput, Prisma.SecretUncheckedCreateWithoutServiceAccountInput>
586
+ }
587
+
588
+ export type SecretUpdateWithWhereUniqueWithoutServiceAccountInput = {
589
+ where: Prisma.SecretWhereUniqueInput
590
+ data: Prisma.XOR<Prisma.SecretUpdateWithoutServiceAccountInput, Prisma.SecretUncheckedUpdateWithoutServiceAccountInput>
591
+ }
592
+
593
+ export type SecretUpdateManyWithWhereWithoutServiceAccountInput = {
594
+ where: Prisma.SecretScalarWhereInput
595
+ data: Prisma.XOR<Prisma.SecretUpdateManyMutationInput, Prisma.SecretUncheckedUpdateManyWithoutServiceAccountInput>
596
+ }
597
+
598
+ export type SecretCreateManyStateInput = {
599
+ id?: string
600
+ meta: PrismaJson.GlobalCommonObjectMeta
601
+ name?: string | null
602
+ systemName?: string | null
603
+ serviceAccountId?: string | null
604
+ content: (unknown)
605
+ createdAt?: Date | string
606
+ updatedAt?: Date | string
607
+ }
608
+
609
+ export type SecretUpdateWithoutStateInput = {
610
+ id?: Prisma.StringFieldUpdateOperationsInput | string
611
+ meta?: PrismaJson.GlobalCommonObjectMeta
612
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
613
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
614
+ content?: (unknown)
615
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
616
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
617
+ serviceAccount?: Prisma.ServiceAccountUpdateOneWithoutSecretsNestedInput
618
+ }
619
+
620
+ export type SecretUncheckedUpdateWithoutStateInput = {
621
+ id?: Prisma.StringFieldUpdateOperationsInput | string
622
+ meta?: PrismaJson.GlobalCommonObjectMeta
623
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
624
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
625
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
626
+ content?: (unknown)
627
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
628
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
629
+ }
630
+
631
+ export type SecretUncheckedUpdateManyWithoutStateInput = {
632
+ id?: Prisma.StringFieldUpdateOperationsInput | string
633
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
634
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
635
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
636
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
637
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
638
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
639
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
640
+ }
641
+
642
+ export type SecretCreateManyServiceAccountInput = {
643
+ id?: string
644
+ meta: PrismaJson.GlobalCommonObjectMeta
645
+ stateId?: string | null
646
+ name?: string | null
647
+ systemName?: string | null
648
+ content: (unknown)
649
+ createdAt?: Date | string
650
+ updatedAt?: Date | string
651
+ }
652
+
653
+ export type SecretUpdateWithoutServiceAccountInput = {
654
+ id?: Prisma.StringFieldUpdateOperationsInput | string
655
+ meta?: PrismaJson.GlobalCommonObjectMeta
656
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
657
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
658
+ content?: (unknown)
659
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
660
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
661
+ state?: Prisma.InstanceStateUpdateOneWithoutSecretsNestedInput
662
+ }
663
+
664
+ export type SecretUncheckedUpdateWithoutServiceAccountInput = {
665
+ id?: Prisma.StringFieldUpdateOperationsInput | string
666
+ meta?: PrismaJson.GlobalCommonObjectMeta
667
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
668
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
669
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
670
+ content?: (unknown)
671
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
672
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
673
+ }
674
+
675
+ export type SecretUncheckedUpdateManyWithoutServiceAccountInput = {
676
+ id?: Prisma.StringFieldUpdateOperationsInput | string
677
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
678
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
679
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
680
+ systemName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
681
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
682
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
683
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
684
+ }
685
+
686
+
687
+
688
+ export type SecretSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
689
+ id?: boolean
690
+ meta?: boolean
691
+ stateId?: boolean
692
+ name?: boolean
693
+ systemName?: boolean
694
+ serviceAccountId?: boolean
695
+ content?: boolean
696
+ createdAt?: boolean
697
+ updatedAt?: boolean
698
+ state?: boolean | Prisma.Secret$stateArgs<ExtArgs>
699
+ serviceAccount?: boolean | Prisma.Secret$serviceAccountArgs<ExtArgs>
700
+ }, ExtArgs["result"]["secret"]>
701
+
702
+ export type SecretSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
703
+ id?: boolean
704
+ meta?: boolean
705
+ stateId?: boolean
706
+ name?: boolean
707
+ systemName?: boolean
708
+ serviceAccountId?: boolean
709
+ content?: boolean
710
+ createdAt?: boolean
711
+ updatedAt?: boolean
712
+ state?: boolean | Prisma.Secret$stateArgs<ExtArgs>
713
+ serviceAccount?: boolean | Prisma.Secret$serviceAccountArgs<ExtArgs>
714
+ }, ExtArgs["result"]["secret"]>
715
+
716
+ export type SecretSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
717
+ id?: boolean
718
+ meta?: boolean
719
+ stateId?: boolean
720
+ name?: boolean
721
+ systemName?: boolean
722
+ serviceAccountId?: boolean
723
+ content?: boolean
724
+ createdAt?: boolean
725
+ updatedAt?: boolean
726
+ state?: boolean | Prisma.Secret$stateArgs<ExtArgs>
727
+ serviceAccount?: boolean | Prisma.Secret$serviceAccountArgs<ExtArgs>
728
+ }, ExtArgs["result"]["secret"]>
729
+
730
+ export type SecretSelectScalar = {
731
+ id?: boolean
732
+ meta?: boolean
733
+ stateId?: boolean
734
+ name?: boolean
735
+ systemName?: boolean
736
+ serviceAccountId?: boolean
737
+ content?: boolean
738
+ createdAt?: boolean
739
+ updatedAt?: boolean
740
+ }
741
+
742
+ export type SecretOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "meta" | "stateId" | "name" | "systemName" | "serviceAccountId" | "content" | "createdAt" | "updatedAt", ExtArgs["result"]["secret"]>
743
+ export type SecretInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
744
+ state?: boolean | Prisma.Secret$stateArgs<ExtArgs>
745
+ serviceAccount?: boolean | Prisma.Secret$serviceAccountArgs<ExtArgs>
746
+ }
747
+ export type SecretIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
748
+ state?: boolean | Prisma.Secret$stateArgs<ExtArgs>
749
+ serviceAccount?: boolean | Prisma.Secret$serviceAccountArgs<ExtArgs>
750
+ }
751
+ export type SecretIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
752
+ state?: boolean | Prisma.Secret$stateArgs<ExtArgs>
753
+ serviceAccount?: boolean | Prisma.Secret$serviceAccountArgs<ExtArgs>
754
+ }
755
+
756
+ export type $SecretPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
757
+ name: "Secret"
758
+ objects: {
759
+ /**
760
+ * The instance this secret belongs to.
761
+ */
762
+ state: Prisma.$InstanceStatePayload<ExtArgs> | null
763
+ /**
764
+ * The service account this secret belongs to.
765
+ */
766
+ serviceAccount: Prisma.$ServiceAccountPayload<ExtArgs> | null
767
+ }
768
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
769
+ /**
770
+ * The CUIDv2 of the secret.
771
+ */
772
+ id: string
773
+ /**
774
+ * The metadata of the secret managed by the backend.
775
+ *
776
+ * [GlobalCommonObjectMeta]
777
+ */
778
+ meta: PrismaJson.GlobalCommonObjectMeta
779
+ /**
780
+ * The ID of the state of the instance owning this secret.
781
+ */
782
+ stateId: string | null
783
+ /**
784
+ * The name of the secret within the instance.
785
+ *
786
+ * Will be null if the secret is not owned by an instance.
787
+ */
788
+ name: string | null
789
+ /**
790
+ * The name of the secret within the project if the secret is a system secret.
791
+ */
792
+ systemName: string | null
793
+ /**
794
+ * The ID of the service account owning this secret.
795
+ */
796
+ serviceAccountId: string | null
797
+ /**
798
+ * The content of the secret.
799
+ *
800
+ * ![unknown]
801
+ */
802
+ content: (unknown)
803
+ /**
804
+ * The time when the secret was created.
805
+ */
806
+ createdAt: Date
807
+ /**
808
+ * The time when the secret was last updated.
809
+ */
810
+ updatedAt: Date
811
+ }, ExtArgs["result"]["secret"]>
812
+ composites: {}
813
+ }
814
+
815
+ export type SecretGetPayload<S extends boolean | null | undefined | SecretDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SecretPayload, S>
816
+
817
+ export type SecretCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
818
+ Omit<SecretFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
819
+ select?: SecretCountAggregateInputType | true
820
+ }
821
+
822
+ export interface SecretDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
823
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Secret'], meta: { name: 'Secret' } }
824
+ /**
825
+ * Find zero or one Secret that matches the filter.
826
+ * @param {SecretFindUniqueArgs} args - Arguments to find a Secret
827
+ * @example
828
+ * // Get one Secret
829
+ * const secret = await prisma.secret.findUnique({
830
+ * where: {
831
+ * // ... provide filter here
832
+ * }
833
+ * })
834
+ */
835
+ findUnique<T extends SecretFindUniqueArgs>(args: Prisma.SelectSubset<T, SecretFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
836
+
837
+ /**
838
+ * Find one Secret that matches the filter or throw an error with `error.code='P2025'`
839
+ * if no matches were found.
840
+ * @param {SecretFindUniqueOrThrowArgs} args - Arguments to find a Secret
841
+ * @example
842
+ * // Get one Secret
843
+ * const secret = await prisma.secret.findUniqueOrThrow({
844
+ * where: {
845
+ * // ... provide filter here
846
+ * }
847
+ * })
848
+ */
849
+ findUniqueOrThrow<T extends SecretFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SecretFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
850
+
851
+ /**
852
+ * Find the first Secret that matches the filter.
853
+ * Note, that providing `undefined` is treated as the value not being there.
854
+ * Read more here: https://pris.ly/d/null-undefined
855
+ * @param {SecretFindFirstArgs} args - Arguments to find a Secret
856
+ * @example
857
+ * // Get one Secret
858
+ * const secret = await prisma.secret.findFirst({
859
+ * where: {
860
+ * // ... provide filter here
861
+ * }
862
+ * })
863
+ */
864
+ findFirst<T extends SecretFindFirstArgs>(args?: Prisma.SelectSubset<T, SecretFindFirstArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
865
+
866
+ /**
867
+ * Find the first Secret that matches the filter or
868
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
869
+ * Note, that providing `undefined` is treated as the value not being there.
870
+ * Read more here: https://pris.ly/d/null-undefined
871
+ * @param {SecretFindFirstOrThrowArgs} args - Arguments to find a Secret
872
+ * @example
873
+ * // Get one Secret
874
+ * const secret = await prisma.secret.findFirstOrThrow({
875
+ * where: {
876
+ * // ... provide filter here
877
+ * }
878
+ * })
879
+ */
880
+ findFirstOrThrow<T extends SecretFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SecretFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
881
+
882
+ /**
883
+ * Find zero or more Secrets that matches the filter.
884
+ * Note, that providing `undefined` is treated as the value not being there.
885
+ * Read more here: https://pris.ly/d/null-undefined
886
+ * @param {SecretFindManyArgs} args - Arguments to filter and select certain fields only.
887
+ * @example
888
+ * // Get all Secrets
889
+ * const secrets = await prisma.secret.findMany()
890
+ *
891
+ * // Get first 10 Secrets
892
+ * const secrets = await prisma.secret.findMany({ take: 10 })
893
+ *
894
+ * // Only select the `id`
895
+ * const secretWithIdOnly = await prisma.secret.findMany({ select: { id: true } })
896
+ *
897
+ */
898
+ findMany<T extends SecretFindManyArgs>(args?: Prisma.SelectSubset<T, SecretFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
899
+
900
+ /**
901
+ * Create a Secret.
902
+ * @param {SecretCreateArgs} args - Arguments to create a Secret.
903
+ * @example
904
+ * // Create one Secret
905
+ * const Secret = await prisma.secret.create({
906
+ * data: {
907
+ * // ... data to create a Secret
908
+ * }
909
+ * })
910
+ *
911
+ */
912
+ create<T extends SecretCreateArgs>(args: Prisma.SelectSubset<T, SecretCreateArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
913
+
914
+ /**
915
+ * Create many Secrets.
916
+ * @param {SecretCreateManyArgs} args - Arguments to create many Secrets.
917
+ * @example
918
+ * // Create many Secrets
919
+ * const secret = await prisma.secret.createMany({
920
+ * data: [
921
+ * // ... provide data here
922
+ * ]
923
+ * })
924
+ *
925
+ */
926
+ createMany<T extends SecretCreateManyArgs>(args?: Prisma.SelectSubset<T, SecretCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
927
+
928
+ /**
929
+ * Create many Secrets and returns the data saved in the database.
930
+ * @param {SecretCreateManyAndReturnArgs} args - Arguments to create many Secrets.
931
+ * @example
932
+ * // Create many Secrets
933
+ * const secret = await prisma.secret.createManyAndReturn({
934
+ * data: [
935
+ * // ... provide data here
936
+ * ]
937
+ * })
938
+ *
939
+ * // Create many Secrets and only return the `id`
940
+ * const secretWithIdOnly = await prisma.secret.createManyAndReturn({
941
+ * select: { id: true },
942
+ * data: [
943
+ * // ... provide data here
944
+ * ]
945
+ * })
946
+ * Note, that providing `undefined` is treated as the value not being there.
947
+ * Read more here: https://pris.ly/d/null-undefined
948
+ *
949
+ */
950
+ createManyAndReturn<T extends SecretCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SecretCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
951
+
952
+ /**
953
+ * Delete a Secret.
954
+ * @param {SecretDeleteArgs} args - Arguments to delete one Secret.
955
+ * @example
956
+ * // Delete one Secret
957
+ * const Secret = await prisma.secret.delete({
958
+ * where: {
959
+ * // ... filter to delete one Secret
960
+ * }
961
+ * })
962
+ *
963
+ */
964
+ delete<T extends SecretDeleteArgs>(args: Prisma.SelectSubset<T, SecretDeleteArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
965
+
966
+ /**
967
+ * Update one Secret.
968
+ * @param {SecretUpdateArgs} args - Arguments to update one Secret.
969
+ * @example
970
+ * // Update one Secret
971
+ * const secret = await prisma.secret.update({
972
+ * where: {
973
+ * // ... provide filter here
974
+ * },
975
+ * data: {
976
+ * // ... provide data here
977
+ * }
978
+ * })
979
+ *
980
+ */
981
+ update<T extends SecretUpdateArgs>(args: Prisma.SelectSubset<T, SecretUpdateArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
982
+
983
+ /**
984
+ * Delete zero or more Secrets.
985
+ * @param {SecretDeleteManyArgs} args - Arguments to filter Secrets to delete.
986
+ * @example
987
+ * // Delete a few Secrets
988
+ * const { count } = await prisma.secret.deleteMany({
989
+ * where: {
990
+ * // ... provide filter here
991
+ * }
992
+ * })
993
+ *
994
+ */
995
+ deleteMany<T extends SecretDeleteManyArgs>(args?: Prisma.SelectSubset<T, SecretDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
996
+
997
+ /**
998
+ * Update zero or more Secrets.
999
+ * Note, that providing `undefined` is treated as the value not being there.
1000
+ * Read more here: https://pris.ly/d/null-undefined
1001
+ * @param {SecretUpdateManyArgs} args - Arguments to update one or more rows.
1002
+ * @example
1003
+ * // Update many Secrets
1004
+ * const secret = await prisma.secret.updateMany({
1005
+ * where: {
1006
+ * // ... provide filter here
1007
+ * },
1008
+ * data: {
1009
+ * // ... provide data here
1010
+ * }
1011
+ * })
1012
+ *
1013
+ */
1014
+ updateMany<T extends SecretUpdateManyArgs>(args: Prisma.SelectSubset<T, SecretUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1015
+
1016
+ /**
1017
+ * Update zero or more Secrets and returns the data updated in the database.
1018
+ * @param {SecretUpdateManyAndReturnArgs} args - Arguments to update many Secrets.
1019
+ * @example
1020
+ * // Update many Secrets
1021
+ * const secret = await prisma.secret.updateManyAndReturn({
1022
+ * where: {
1023
+ * // ... provide filter here
1024
+ * },
1025
+ * data: [
1026
+ * // ... provide data here
1027
+ * ]
1028
+ * })
1029
+ *
1030
+ * // Update zero or more Secrets and only return the `id`
1031
+ * const secretWithIdOnly = await prisma.secret.updateManyAndReturn({
1032
+ * select: { id: true },
1033
+ * where: {
1034
+ * // ... provide filter here
1035
+ * },
1036
+ * data: [
1037
+ * // ... provide data here
1038
+ * ]
1039
+ * })
1040
+ * Note, that providing `undefined` is treated as the value not being there.
1041
+ * Read more here: https://pris.ly/d/null-undefined
1042
+ *
1043
+ */
1044
+ updateManyAndReturn<T extends SecretUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SecretUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1045
+
1046
+ /**
1047
+ * Create or update one Secret.
1048
+ * @param {SecretUpsertArgs} args - Arguments to update or create a Secret.
1049
+ * @example
1050
+ * // Update or create a Secret
1051
+ * const secret = await prisma.secret.upsert({
1052
+ * create: {
1053
+ * // ... data to create a Secret
1054
+ * },
1055
+ * update: {
1056
+ * // ... in case it already exists, update
1057
+ * },
1058
+ * where: {
1059
+ * // ... the filter for the Secret we want to update
1060
+ * }
1061
+ * })
1062
+ */
1063
+ upsert<T extends SecretUpsertArgs>(args: Prisma.SelectSubset<T, SecretUpsertArgs<ExtArgs>>): Prisma.Prisma__SecretClient<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1064
+
1065
+
1066
+ /**
1067
+ * Count the number of Secrets.
1068
+ * Note, that providing `undefined` is treated as the value not being there.
1069
+ * Read more here: https://pris.ly/d/null-undefined
1070
+ * @param {SecretCountArgs} args - Arguments to filter Secrets to count.
1071
+ * @example
1072
+ * // Count the number of Secrets
1073
+ * const count = await prisma.secret.count({
1074
+ * where: {
1075
+ * // ... the filter for the Secrets we want to count
1076
+ * }
1077
+ * })
1078
+ **/
1079
+ count<T extends SecretCountArgs>(
1080
+ args?: Prisma.Subset<T, SecretCountArgs>,
1081
+ ): Prisma.PrismaPromise<
1082
+ T extends runtime.Types.Utils.Record<'select', any>
1083
+ ? T['select'] extends true
1084
+ ? number
1085
+ : Prisma.GetScalarType<T['select'], SecretCountAggregateOutputType>
1086
+ : number
1087
+ >
1088
+
1089
+ /**
1090
+ * Allows you to perform aggregations operations on a Secret.
1091
+ * Note, that providing `undefined` is treated as the value not being there.
1092
+ * Read more here: https://pris.ly/d/null-undefined
1093
+ * @param {SecretAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1094
+ * @example
1095
+ * // Ordered by age ascending
1096
+ * // Where email contains prisma.io
1097
+ * // Limited to the 10 users
1098
+ * const aggregations = await prisma.user.aggregate({
1099
+ * _avg: {
1100
+ * age: true,
1101
+ * },
1102
+ * where: {
1103
+ * email: {
1104
+ * contains: "prisma.io",
1105
+ * },
1106
+ * },
1107
+ * orderBy: {
1108
+ * age: "asc",
1109
+ * },
1110
+ * take: 10,
1111
+ * })
1112
+ **/
1113
+ aggregate<T extends SecretAggregateArgs>(args: Prisma.Subset<T, SecretAggregateArgs>): Prisma.PrismaPromise<GetSecretAggregateType<T>>
1114
+
1115
+ /**
1116
+ * Group by Secret.
1117
+ * Note, that providing `undefined` is treated as the value not being there.
1118
+ * Read more here: https://pris.ly/d/null-undefined
1119
+ * @param {SecretGroupByArgs} args - Group by arguments.
1120
+ * @example
1121
+ * // Group by city, order by createdAt, get count
1122
+ * const result = await prisma.user.groupBy({
1123
+ * by: ['city', 'createdAt'],
1124
+ * orderBy: {
1125
+ * createdAt: true
1126
+ * },
1127
+ * _count: {
1128
+ * _all: true
1129
+ * },
1130
+ * })
1131
+ *
1132
+ **/
1133
+ groupBy<
1134
+ T extends SecretGroupByArgs,
1135
+ HasSelectOrTake extends Prisma.Or<
1136
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1137
+ Prisma.Extends<'take', Prisma.Keys<T>>
1138
+ >,
1139
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1140
+ ? { orderBy: SecretGroupByArgs['orderBy'] }
1141
+ : { orderBy?: SecretGroupByArgs['orderBy'] },
1142
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1143
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1144
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1145
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1146
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1147
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1148
+ InputErrors extends ByEmpty extends Prisma.True
1149
+ ? `Error: "by" must not be empty.`
1150
+ : HavingValid extends Prisma.False
1151
+ ? {
1152
+ [P in HavingFields]: P extends ByFields
1153
+ ? never
1154
+ : P extends string
1155
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1156
+ : [
1157
+ Error,
1158
+ 'Field ',
1159
+ P,
1160
+ ` in "having" needs to be provided in "by"`,
1161
+ ]
1162
+ }[HavingFields]
1163
+ : 'take' extends Prisma.Keys<T>
1164
+ ? 'orderBy' extends Prisma.Keys<T>
1165
+ ? ByValid extends Prisma.True
1166
+ ? {}
1167
+ : {
1168
+ [P in OrderFields]: P extends ByFields
1169
+ ? never
1170
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1171
+ }[OrderFields]
1172
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1173
+ : 'skip' extends Prisma.Keys<T>
1174
+ ? 'orderBy' extends Prisma.Keys<T>
1175
+ ? ByValid extends Prisma.True
1176
+ ? {}
1177
+ : {
1178
+ [P in OrderFields]: P extends ByFields
1179
+ ? never
1180
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1181
+ }[OrderFields]
1182
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1183
+ : ByValid extends Prisma.True
1184
+ ? {}
1185
+ : {
1186
+ [P in OrderFields]: P extends ByFields
1187
+ ? never
1188
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1189
+ }[OrderFields]
1190
+ >(args: Prisma.SubsetIntersection<T, SecretGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSecretGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1191
+ /**
1192
+ * Fields of the Secret model
1193
+ */
1194
+ readonly fields: SecretFieldRefs;
1195
+ }
1196
+
1197
+ /**
1198
+ * The delegate class that acts as a "Promise-like" for Secret.
1199
+ * Why is this prefixed with `Prisma__`?
1200
+ * Because we want to prevent naming conflicts as mentioned in
1201
+ * https://github.com/prisma/prisma-client-js/issues/707
1202
+ */
1203
+ export interface Prisma__SecretClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1204
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1205
+ state<T extends Prisma.Secret$stateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Secret$stateArgs<ExtArgs>>): Prisma.Prisma__InstanceStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1206
+ serviceAccount<T extends Prisma.Secret$serviceAccountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Secret$serviceAccountArgs<ExtArgs>>): Prisma.Prisma__ServiceAccountClient<runtime.Types.Result.GetResult<Prisma.$ServiceAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1207
+ /**
1208
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1209
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1210
+ * @param onrejected The callback to execute when the Promise is rejected.
1211
+ * @returns A Promise for the completion of which ever callback is executed.
1212
+ */
1213
+ 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>
1214
+ /**
1215
+ * Attaches a callback for only the rejection of the Promise.
1216
+ * @param onrejected The callback to execute when the Promise is rejected.
1217
+ * @returns A Promise for the completion of the callback.
1218
+ */
1219
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1220
+ /**
1221
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1222
+ * resolved value cannot be modified from the callback.
1223
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1224
+ * @returns A Promise for the completion of the callback.
1225
+ */
1226
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1227
+ }
1228
+
1229
+
1230
+
1231
+
1232
+ /**
1233
+ * Fields of the Secret model
1234
+ */
1235
+ export interface SecretFieldRefs {
1236
+ readonly id: Prisma.FieldRef<"Secret", 'String'>
1237
+ readonly meta: Prisma.FieldRef<"Secret", 'Json'>
1238
+ readonly stateId: Prisma.FieldRef<"Secret", 'String'>
1239
+ readonly name: Prisma.FieldRef<"Secret", 'String'>
1240
+ readonly systemName: Prisma.FieldRef<"Secret", 'String'>
1241
+ readonly serviceAccountId: Prisma.FieldRef<"Secret", 'String'>
1242
+ readonly content: Prisma.FieldRef<"Secret", 'Json'>
1243
+ readonly createdAt: Prisma.FieldRef<"Secret", 'DateTime'>
1244
+ readonly updatedAt: Prisma.FieldRef<"Secret", 'DateTime'>
1245
+ }
1246
+
1247
+
1248
+ // Custom InputTypes
1249
+ /**
1250
+ * Secret findUnique
1251
+ */
1252
+ export type SecretFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1253
+ /**
1254
+ * Select specific fields to fetch from the Secret
1255
+ */
1256
+ select?: Prisma.SecretSelect<ExtArgs> | null
1257
+ /**
1258
+ * Omit specific fields from the Secret
1259
+ */
1260
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1261
+ /**
1262
+ * Choose, which related nodes to fetch as well
1263
+ */
1264
+ include?: Prisma.SecretInclude<ExtArgs> | null
1265
+ /**
1266
+ * Filter, which Secret to fetch.
1267
+ */
1268
+ where: Prisma.SecretWhereUniqueInput
1269
+ }
1270
+
1271
+ /**
1272
+ * Secret findUniqueOrThrow
1273
+ */
1274
+ export type SecretFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
+ /**
1276
+ * Select specific fields to fetch from the Secret
1277
+ */
1278
+ select?: Prisma.SecretSelect<ExtArgs> | null
1279
+ /**
1280
+ * Omit specific fields from the Secret
1281
+ */
1282
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1283
+ /**
1284
+ * Choose, which related nodes to fetch as well
1285
+ */
1286
+ include?: Prisma.SecretInclude<ExtArgs> | null
1287
+ /**
1288
+ * Filter, which Secret to fetch.
1289
+ */
1290
+ where: Prisma.SecretWhereUniqueInput
1291
+ }
1292
+
1293
+ /**
1294
+ * Secret findFirst
1295
+ */
1296
+ export type SecretFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1297
+ /**
1298
+ * Select specific fields to fetch from the Secret
1299
+ */
1300
+ select?: Prisma.SecretSelect<ExtArgs> | null
1301
+ /**
1302
+ * Omit specific fields from the Secret
1303
+ */
1304
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1305
+ /**
1306
+ * Choose, which related nodes to fetch as well
1307
+ */
1308
+ include?: Prisma.SecretInclude<ExtArgs> | null
1309
+ /**
1310
+ * Filter, which Secret to fetch.
1311
+ */
1312
+ where?: Prisma.SecretWhereInput
1313
+ /**
1314
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1315
+ *
1316
+ * Determine the order of Secrets to fetch.
1317
+ */
1318
+ orderBy?: Prisma.SecretOrderByWithRelationInput | Prisma.SecretOrderByWithRelationInput[]
1319
+ /**
1320
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1321
+ *
1322
+ * Sets the position for searching for Secrets.
1323
+ */
1324
+ cursor?: Prisma.SecretWhereUniqueInput
1325
+ /**
1326
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1327
+ *
1328
+ * Take `±n` Secrets from the position of the cursor.
1329
+ */
1330
+ take?: number
1331
+ /**
1332
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1333
+ *
1334
+ * Skip the first `n` Secrets.
1335
+ */
1336
+ skip?: number
1337
+ /**
1338
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1339
+ *
1340
+ * Filter by unique combinations of Secrets.
1341
+ */
1342
+ distinct?: Prisma.SecretScalarFieldEnum | Prisma.SecretScalarFieldEnum[]
1343
+ }
1344
+
1345
+ /**
1346
+ * Secret findFirstOrThrow
1347
+ */
1348
+ export type SecretFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * Select specific fields to fetch from the Secret
1351
+ */
1352
+ select?: Prisma.SecretSelect<ExtArgs> | null
1353
+ /**
1354
+ * Omit specific fields from the Secret
1355
+ */
1356
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1357
+ /**
1358
+ * Choose, which related nodes to fetch as well
1359
+ */
1360
+ include?: Prisma.SecretInclude<ExtArgs> | null
1361
+ /**
1362
+ * Filter, which Secret to fetch.
1363
+ */
1364
+ where?: Prisma.SecretWhereInput
1365
+ /**
1366
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1367
+ *
1368
+ * Determine the order of Secrets to fetch.
1369
+ */
1370
+ orderBy?: Prisma.SecretOrderByWithRelationInput | Prisma.SecretOrderByWithRelationInput[]
1371
+ /**
1372
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1373
+ *
1374
+ * Sets the position for searching for Secrets.
1375
+ */
1376
+ cursor?: Prisma.SecretWhereUniqueInput
1377
+ /**
1378
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1379
+ *
1380
+ * Take `±n` Secrets from the position of the cursor.
1381
+ */
1382
+ take?: number
1383
+ /**
1384
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1385
+ *
1386
+ * Skip the first `n` Secrets.
1387
+ */
1388
+ skip?: number
1389
+ /**
1390
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1391
+ *
1392
+ * Filter by unique combinations of Secrets.
1393
+ */
1394
+ distinct?: Prisma.SecretScalarFieldEnum | Prisma.SecretScalarFieldEnum[]
1395
+ }
1396
+
1397
+ /**
1398
+ * Secret findMany
1399
+ */
1400
+ export type SecretFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1401
+ /**
1402
+ * Select specific fields to fetch from the Secret
1403
+ */
1404
+ select?: Prisma.SecretSelect<ExtArgs> | null
1405
+ /**
1406
+ * Omit specific fields from the Secret
1407
+ */
1408
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1409
+ /**
1410
+ * Choose, which related nodes to fetch as well
1411
+ */
1412
+ include?: Prisma.SecretInclude<ExtArgs> | null
1413
+ /**
1414
+ * Filter, which Secrets to fetch.
1415
+ */
1416
+ where?: Prisma.SecretWhereInput
1417
+ /**
1418
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1419
+ *
1420
+ * Determine the order of Secrets to fetch.
1421
+ */
1422
+ orderBy?: Prisma.SecretOrderByWithRelationInput | Prisma.SecretOrderByWithRelationInput[]
1423
+ /**
1424
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1425
+ *
1426
+ * Sets the position for listing Secrets.
1427
+ */
1428
+ cursor?: Prisma.SecretWhereUniqueInput
1429
+ /**
1430
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1431
+ *
1432
+ * Take `±n` Secrets from the position of the cursor.
1433
+ */
1434
+ take?: number
1435
+ /**
1436
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1437
+ *
1438
+ * Skip the first `n` Secrets.
1439
+ */
1440
+ skip?: number
1441
+ distinct?: Prisma.SecretScalarFieldEnum | Prisma.SecretScalarFieldEnum[]
1442
+ }
1443
+
1444
+ /**
1445
+ * Secret create
1446
+ */
1447
+ export type SecretCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1448
+ /**
1449
+ * Select specific fields to fetch from the Secret
1450
+ */
1451
+ select?: Prisma.SecretSelect<ExtArgs> | null
1452
+ /**
1453
+ * Omit specific fields from the Secret
1454
+ */
1455
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1456
+ /**
1457
+ * Choose, which related nodes to fetch as well
1458
+ */
1459
+ include?: Prisma.SecretInclude<ExtArgs> | null
1460
+ /**
1461
+ * The data needed to create a Secret.
1462
+ */
1463
+ data: Prisma.XOR<Prisma.SecretCreateInput, Prisma.SecretUncheckedCreateInput>
1464
+ }
1465
+
1466
+ /**
1467
+ * Secret createMany
1468
+ */
1469
+ export type SecretCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1470
+ /**
1471
+ * The data used to create many Secrets.
1472
+ */
1473
+ data: Prisma.SecretCreateManyInput | Prisma.SecretCreateManyInput[]
1474
+ }
1475
+
1476
+ /**
1477
+ * Secret createManyAndReturn
1478
+ */
1479
+ export type SecretCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1480
+ /**
1481
+ * Select specific fields to fetch from the Secret
1482
+ */
1483
+ select?: Prisma.SecretSelectCreateManyAndReturn<ExtArgs> | null
1484
+ /**
1485
+ * Omit specific fields from the Secret
1486
+ */
1487
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1488
+ /**
1489
+ * The data used to create many Secrets.
1490
+ */
1491
+ data: Prisma.SecretCreateManyInput | Prisma.SecretCreateManyInput[]
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
1495
+ include?: Prisma.SecretIncludeCreateManyAndReturn<ExtArgs> | null
1496
+ }
1497
+
1498
+ /**
1499
+ * Secret update
1500
+ */
1501
+ export type SecretUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * Select specific fields to fetch from the Secret
1504
+ */
1505
+ select?: Prisma.SecretSelect<ExtArgs> | null
1506
+ /**
1507
+ * Omit specific fields from the Secret
1508
+ */
1509
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1510
+ /**
1511
+ * Choose, which related nodes to fetch as well
1512
+ */
1513
+ include?: Prisma.SecretInclude<ExtArgs> | null
1514
+ /**
1515
+ * The data needed to update a Secret.
1516
+ */
1517
+ data: Prisma.XOR<Prisma.SecretUpdateInput, Prisma.SecretUncheckedUpdateInput>
1518
+ /**
1519
+ * Choose, which Secret to update.
1520
+ */
1521
+ where: Prisma.SecretWhereUniqueInput
1522
+ }
1523
+
1524
+ /**
1525
+ * Secret updateMany
1526
+ */
1527
+ export type SecretUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1528
+ /**
1529
+ * The data used to update Secrets.
1530
+ */
1531
+ data: Prisma.XOR<Prisma.SecretUpdateManyMutationInput, Prisma.SecretUncheckedUpdateManyInput>
1532
+ /**
1533
+ * Filter which Secrets to update
1534
+ */
1535
+ where?: Prisma.SecretWhereInput
1536
+ /**
1537
+ * Limit how many Secrets to update.
1538
+ */
1539
+ limit?: number
1540
+ }
1541
+
1542
+ /**
1543
+ * Secret updateManyAndReturn
1544
+ */
1545
+ export type SecretUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1546
+ /**
1547
+ * Select specific fields to fetch from the Secret
1548
+ */
1549
+ select?: Prisma.SecretSelectUpdateManyAndReturn<ExtArgs> | null
1550
+ /**
1551
+ * Omit specific fields from the Secret
1552
+ */
1553
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1554
+ /**
1555
+ * The data used to update Secrets.
1556
+ */
1557
+ data: Prisma.XOR<Prisma.SecretUpdateManyMutationInput, Prisma.SecretUncheckedUpdateManyInput>
1558
+ /**
1559
+ * Filter which Secrets to update
1560
+ */
1561
+ where?: Prisma.SecretWhereInput
1562
+ /**
1563
+ * Limit how many Secrets to update.
1564
+ */
1565
+ limit?: number
1566
+ /**
1567
+ * Choose, which related nodes to fetch as well
1568
+ */
1569
+ include?: Prisma.SecretIncludeUpdateManyAndReturn<ExtArgs> | null
1570
+ }
1571
+
1572
+ /**
1573
+ * Secret upsert
1574
+ */
1575
+ export type SecretUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1576
+ /**
1577
+ * Select specific fields to fetch from the Secret
1578
+ */
1579
+ select?: Prisma.SecretSelect<ExtArgs> | null
1580
+ /**
1581
+ * Omit specific fields from the Secret
1582
+ */
1583
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1584
+ /**
1585
+ * Choose, which related nodes to fetch as well
1586
+ */
1587
+ include?: Prisma.SecretInclude<ExtArgs> | null
1588
+ /**
1589
+ * The filter to search for the Secret to update in case it exists.
1590
+ */
1591
+ where: Prisma.SecretWhereUniqueInput
1592
+ /**
1593
+ * In case the Secret found by the `where` argument doesn't exist, create a new Secret with this data.
1594
+ */
1595
+ create: Prisma.XOR<Prisma.SecretCreateInput, Prisma.SecretUncheckedCreateInput>
1596
+ /**
1597
+ * In case the Secret was found with the provided `where` argument, update it with this data.
1598
+ */
1599
+ update: Prisma.XOR<Prisma.SecretUpdateInput, Prisma.SecretUncheckedUpdateInput>
1600
+ }
1601
+
1602
+ /**
1603
+ * Secret delete
1604
+ */
1605
+ export type SecretDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1606
+ /**
1607
+ * Select specific fields to fetch from the Secret
1608
+ */
1609
+ select?: Prisma.SecretSelect<ExtArgs> | null
1610
+ /**
1611
+ * Omit specific fields from the Secret
1612
+ */
1613
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1614
+ /**
1615
+ * Choose, which related nodes to fetch as well
1616
+ */
1617
+ include?: Prisma.SecretInclude<ExtArgs> | null
1618
+ /**
1619
+ * Filter which Secret to delete.
1620
+ */
1621
+ where: Prisma.SecretWhereUniqueInput
1622
+ }
1623
+
1624
+ /**
1625
+ * Secret deleteMany
1626
+ */
1627
+ export type SecretDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1628
+ /**
1629
+ * Filter which Secrets to delete
1630
+ */
1631
+ where?: Prisma.SecretWhereInput
1632
+ /**
1633
+ * Limit how many Secrets to delete.
1634
+ */
1635
+ limit?: number
1636
+ }
1637
+
1638
+ /**
1639
+ * Secret.state
1640
+ */
1641
+ export type Secret$stateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1642
+ /**
1643
+ * Select specific fields to fetch from the InstanceState
1644
+ */
1645
+ select?: Prisma.InstanceStateSelect<ExtArgs> | null
1646
+ /**
1647
+ * Omit specific fields from the InstanceState
1648
+ */
1649
+ omit?: Prisma.InstanceStateOmit<ExtArgs> | null
1650
+ /**
1651
+ * Choose, which related nodes to fetch as well
1652
+ */
1653
+ include?: Prisma.InstanceStateInclude<ExtArgs> | null
1654
+ where?: Prisma.InstanceStateWhereInput
1655
+ }
1656
+
1657
+ /**
1658
+ * Secret.serviceAccount
1659
+ */
1660
+ export type Secret$serviceAccountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1661
+ /**
1662
+ * Select specific fields to fetch from the ServiceAccount
1663
+ */
1664
+ select?: Prisma.ServiceAccountSelect<ExtArgs> | null
1665
+ /**
1666
+ * Omit specific fields from the ServiceAccount
1667
+ */
1668
+ omit?: Prisma.ServiceAccountOmit<ExtArgs> | null
1669
+ /**
1670
+ * Choose, which related nodes to fetch as well
1671
+ */
1672
+ include?: Prisma.ServiceAccountInclude<ExtArgs> | null
1673
+ where?: Prisma.ServiceAccountWhereInput
1674
+ }
1675
+
1676
+ /**
1677
+ * Secret without action
1678
+ */
1679
+ export type SecretDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1680
+ /**
1681
+ * Select specific fields to fetch from the Secret
1682
+ */
1683
+ select?: Prisma.SecretSelect<ExtArgs> | null
1684
+ /**
1685
+ * Omit specific fields from the Secret
1686
+ */
1687
+ omit?: Prisma.SecretOmit<ExtArgs> | null
1688
+ /**
1689
+ * Choose, which related nodes to fetch as well
1690
+ */
1691
+ include?: Prisma.SecretInclude<ExtArgs> | null
1692
+ }