@highstate/backend 0.9.16 → 0.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/dist/chunk-5WVU2AK4.js +1535 -0
  2. package/dist/chunk-5WVU2AK4.js.map +1 -0
  3. package/dist/chunk-I7BWSAN6.js +49 -0
  4. package/dist/chunk-I7BWSAN6.js.map +1 -0
  5. package/dist/{chunk-RCB4AFGD.js → chunk-VB4YL327.js} +51 -71
  6. package/dist/chunk-VB4YL327.js.map +1 -0
  7. package/dist/database/local/prisma.config.js +26 -0
  8. package/dist/database/local/prisma.config.js.map +1 -0
  9. package/dist/highstate.manifest.json +5 -4
  10. package/dist/index.js +7676 -6634
  11. package/dist/index.js.map +1 -1
  12. package/dist/library/package-resolution-worker.js +8 -6
  13. package/dist/library/package-resolution-worker.js.map +1 -1
  14. package/dist/library/worker/main.js +63 -58
  15. package/dist/library/worker/main.js.map +1 -1
  16. package/dist/shared/index.js +3 -216
  17. package/dist/shared/index.js.map +1 -1
  18. package/package.json +23 -11
  19. package/prisma/backend/_schema/layout.prisma +7 -0
  20. package/prisma/backend/_schema/library.prisma +17 -0
  21. package/prisma/backend/_schema/project.prisma +101 -0
  22. package/prisma/backend/_schema/pulumi.prisma +17 -0
  23. package/prisma/backend/postgresql/main.prisma +17 -0
  24. package/prisma/backend/sqlite/main.prisma +17 -0
  25. package/prisma/backend/sqlite/migrations/20250817070609_initiial/migration.sql +34 -0
  26. package/prisma/backend/sqlite/migrations/20250817104948_add_fields/migration.sql +59 -0
  27. package/prisma/backend/sqlite/migrations/20250818082732_add_models/migration.sql +41 -0
  28. package/prisma/backend/sqlite/migrations/20250818083106_a/migration.sql +19 -0
  29. package/prisma/backend/sqlite/migrations/20250818101945_hi/migration.sql +1 -0
  30. package/prisma/backend/sqlite/migrations/20250819082315_a/migration.sql +5 -0
  31. package/prisma/backend/sqlite/migrations/migration_lock.toml +3 -0
  32. package/prisma/project/api-key.prisma +27 -0
  33. package/prisma/project/artifact.prisma +52 -0
  34. package/prisma/project/custom-status.prisma +46 -0
  35. package/prisma/project/evaluation.prisma +35 -0
  36. package/prisma/project/instance.prisma +160 -0
  37. package/prisma/project/layout.prisma +23 -0
  38. package/prisma/project/lock.prisma +18 -0
  39. package/prisma/project/main.prisma +17 -0
  40. package/prisma/project/migrations/20250816081310_initial/migration.sql +300 -0
  41. package/prisma/project/migrations/20250816082523_test/migration.sql +72 -0
  42. package/prisma/project/migrations/20250818065643_update/migration.sql +42 -0
  43. package/prisma/project/migrations/20250818070758_a/migration.sql +8 -0
  44. package/prisma/project/migrations/20250818070913_a/migration.sql +8 -0
  45. package/prisma/project/migrations/20250818082720_add_motels/migration.sql +11 -0
  46. package/prisma/project/migrations/20250818112523_hello/migration.sql +35 -0
  47. package/prisma/project/migrations/20250819082305_a/migration.sql +14 -0
  48. package/prisma/project/migrations/20250819165004_add_missing_fields/migration.sql +216 -0
  49. package/prisma/project/migrations/20250819171309_a/migration.sql +22 -0
  50. package/prisma/project/migrations/20250820113949_a/migration.sql +66 -0
  51. package/prisma/project/migrations/20250820144256_b/migration.sql +31 -0
  52. package/prisma/project/migrations/20250820145547_a/migration.sql +24 -0
  53. package/prisma/project/migrations/20250820182517_b/migration.sql +2 -0
  54. package/prisma/project/migrations/20250821172324_a/migration.sql +2 -0
  55. package/prisma/project/migrations/20250822081339_a/migration.sql +219 -0
  56. package/prisma/project/migrations/20250822083742_b/migration.sql +1 -0
  57. package/prisma/project/migrations/20250822105134_boom/migration.sql +1 -0
  58. package/prisma/project/migrations/20250822141028_b/migration.sql +1 -0
  59. package/prisma/project/migrations/20250822142342_b/migration.sql +16 -0
  60. package/prisma/project/migrations/20250824072720_a/migration.sql +1 -0
  61. package/prisma/project/migrations/20250824093656_b/migration.sql +21 -0
  62. package/prisma/project/migrations/20250825082518_a/migration.sql +1 -0
  63. package/prisma/project/migrations/20250825085343_b/migration.sql +1 -0
  64. package/prisma/project/migrations/20250825091312_a/migration.sql +1 -0
  65. package/prisma/project/migrations/20250903095431_hi/migration.sql +44 -0
  66. package/prisma/project/migrations/20250903174255_a/migration.sql +24 -0
  67. package/prisma/project/migrations/20250908095205_hi/migration.sql +18 -0
  68. package/prisma/project/migrations/20250909155857_hi/migration.sql +15 -0
  69. package/prisma/project/migrations/migration_lock.toml +3 -0
  70. package/prisma/project/model.prisma +37 -0
  71. package/prisma/project/operation.prisma +148 -0
  72. package/prisma/project/page.prisma +41 -0
  73. package/prisma/project/secret.prisma +42 -0
  74. package/prisma/project/service-account.prisma +36 -0
  75. package/prisma/project/terminal.prisma +90 -0
  76. package/prisma/project/trigger.prisma +31 -0
  77. package/prisma/project/unlock-method.prisma +32 -0
  78. package/prisma/project/worker.prisma +138 -0
  79. package/src/artifact/abstractions.ts +13 -13
  80. package/src/artifact/encryption.ts +31 -15
  81. package/src/artifact/factory.ts +7 -10
  82. package/src/artifact/local.ts +33 -50
  83. package/src/business/api-key.ts +24 -36
  84. package/src/business/artifact.test.ts +978 -0
  85. package/src/business/artifact.ts +136 -215
  86. package/src/business/evaluation.ts +328 -0
  87. package/src/business/index.ts +5 -1
  88. package/src/business/instance-lock.test.ts +1060 -0
  89. package/src/business/instance-lock.ts +387 -77
  90. package/src/business/instance-state.test.ts +735 -0
  91. package/src/business/instance-state.ts +604 -217
  92. package/src/business/operation.test.ts +439 -0
  93. package/src/business/operation.ts +174 -208
  94. package/src/business/project-model.ts +258 -0
  95. package/src/business/project-unlock.ts +172 -112
  96. package/src/business/project.ts +407 -0
  97. package/src/business/secret.test.ts +513 -0
  98. package/src/business/secret.ts +194 -131
  99. package/src/business/settings.test.ts +695 -0
  100. package/src/business/settings.ts +855 -0
  101. package/src/business/terminal-session.ts +90 -0
  102. package/src/business/unit-extra.test.ts +539 -0
  103. package/src/business/unit-extra.ts +160 -0
  104. package/src/business/worker.test.ts +391 -0
  105. package/src/business/worker.ts +250 -114
  106. package/src/common/codebase.ts +65 -0
  107. package/src/common/index.ts +3 -2
  108. package/src/common/logger.ts +5 -0
  109. package/src/common/utils.ts +4 -3
  110. package/src/config.ts +15 -12
  111. package/src/database/_generated/backend/postgresql/client.ts +72 -0
  112. package/src/database/_generated/backend/postgresql/commonInputTypes.ts +350 -0
  113. package/src/database/_generated/backend/postgresql/enums.ts +13 -0
  114. package/src/database/_generated/backend/postgresql/internal/class.ts +320 -0
  115. package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +1238 -0
  116. package/src/database/_generated/backend/postgresql/models/Library.ts +1263 -0
  117. package/src/database/_generated/backend/postgresql/models/Project.ts +2175 -0
  118. package/src/database/_generated/backend/postgresql/models/ProjectModelStorage.ts +1263 -0
  119. package/src/database/_generated/backend/postgresql/models/ProjectSpace.ts +1602 -0
  120. package/src/database/_generated/backend/postgresql/models/PulumiBackend.ts +1263 -0
  121. package/src/database/_generated/backend/postgresql/models/UserWorkspaseLayout.ts +1065 -0
  122. package/src/database/_generated/backend/postgresql/models.ts +16 -0
  123. package/src/database/_generated/backend/postgresql/pjtg.ts +182 -0
  124. package/src/database/_generated/backend/sqlite/client.ts +72 -0
  125. package/src/database/_generated/backend/sqlite/commonInputTypes.ts +331 -0
  126. package/src/database/_generated/backend/sqlite/enums.ts +13 -0
  127. package/src/database/_generated/backend/sqlite/internal/class.ts +318 -0
  128. package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +1207 -0
  129. package/src/database/_generated/backend/sqlite/models/Library.ts +1261 -0
  130. package/src/database/_generated/backend/sqlite/models/Project.ts +2169 -0
  131. package/src/database/_generated/backend/sqlite/models/ProjectModelStorage.ts +1261 -0
  132. package/src/database/_generated/backend/sqlite/models/ProjectSpace.ts +1599 -0
  133. package/src/database/_generated/backend/sqlite/models/PulumiBackend.ts +1261 -0
  134. package/src/database/_generated/backend/sqlite/models/UserWorkspaseLayout.ts +1063 -0
  135. package/src/database/_generated/backend/sqlite/models.ts +16 -0
  136. package/src/database/_generated/backend/sqlite/pjtg.ts +182 -0
  137. package/src/database/_generated/project/client.ts +204 -0
  138. package/src/database/_generated/project/commonInputTypes.ts +827 -0
  139. package/src/database/_generated/project/enums.ts +104 -0
  140. package/src/database/_generated/project/internal/class.ts +479 -0
  141. package/src/database/_generated/project/internal/prismaNamespace.ts +2974 -0
  142. package/src/database/_generated/project/models/ApiKey.ts +1506 -0
  143. package/src/database/_generated/project/models/Artifact.ts +2051 -0
  144. package/src/database/_generated/project/models/HubModel.ts +1125 -0
  145. package/src/database/_generated/project/models/InstanceCustomStatus.ts +1713 -0
  146. package/src/database/_generated/project/models/InstanceEvaluationState.ts +1312 -0
  147. package/src/database/_generated/project/models/InstanceLock.ts +1268 -0
  148. package/src/database/_generated/project/models/InstanceModel.ts +1125 -0
  149. package/src/database/_generated/project/models/InstanceOperationState.ts +1707 -0
  150. package/src/database/_generated/project/models/InstanceState.ts +4613 -0
  151. package/src/database/_generated/project/models/Operation.ts +1647 -0
  152. package/src/database/_generated/project/models/OperationLog.ts +1455 -0
  153. package/src/database/_generated/project/models/Page.ts +1838 -0
  154. package/src/database/_generated/project/models/Secret.ts +1692 -0
  155. package/src/database/_generated/project/models/ServiceAccount.ts +2165 -0
  156. package/src/database/_generated/project/models/Terminal.ts +2038 -0
  157. package/src/database/_generated/project/models/TerminalSession.ts +1454 -0
  158. package/src/database/_generated/project/models/TerminalSessionLog.ts +1280 -0
  159. package/src/database/_generated/project/models/Trigger.ts +1430 -0
  160. package/src/database/_generated/project/models/UnlockMethod.ts +1220 -0
  161. package/src/database/_generated/project/models/UserCompositeViewport.ts +1280 -0
  162. package/src/database/_generated/project/models/UserProjectViewport.ts +1059 -0
  163. package/src/database/_generated/project/models/Worker.ts +1459 -0
  164. package/src/database/_generated/project/models/WorkerUnitRegistration.ts +1524 -0
  165. package/src/database/_generated/project/models/WorkerVersion.ts +1974 -0
  166. package/src/database/_generated/project/models/WorkerVersionLog.ts +1318 -0
  167. package/src/database/_generated/project/models.ts +35 -0
  168. package/src/database/_generated/project/pjtg.ts +182 -0
  169. package/src/database/abstractions.ts +19 -0
  170. package/src/database/factory.ts +37 -0
  171. package/src/database/index.ts +6 -0
  172. package/src/database/local/backend.ts +134 -0
  173. package/src/database/local/index.ts +3 -0
  174. package/src/database/local/meta.ts +46 -0
  175. package/src/database/local/prisma.config.ts +25 -0
  176. package/src/database/local/project.ts +39 -0
  177. package/src/database/manager.ts +181 -0
  178. package/src/database/migrate.ts +35 -0
  179. package/src/database/prisma.ts +56 -0
  180. package/src/database/well-known.ts +38 -0
  181. package/src/index.ts +4 -4
  182. package/src/library/abstractions.ts +21 -14
  183. package/src/library/factory.ts +1 -1
  184. package/src/library/local.ts +86 -38
  185. package/src/library/package-resolution-worker.ts +1 -1
  186. package/src/library/worker/evaluator.ts +61 -48
  187. package/src/library/worker/loader.lite.ts +14 -1
  188. package/src/library/worker/main.ts +9 -16
  189. package/src/library/worker/protocol.ts +0 -12
  190. package/src/lock/manager.ts +12 -7
  191. package/src/orchestrator/manager.ts +198 -131
  192. package/src/orchestrator/operation-context.ts +357 -0
  193. package/src/orchestrator/operation-plan.destroy.test.md +357 -0
  194. package/src/orchestrator/operation-plan.destroy.test.ts +775 -0
  195. package/src/orchestrator/operation-plan.fixtures.ts +213 -0
  196. package/src/orchestrator/operation-plan.md +198 -0
  197. package/src/orchestrator/operation-plan.refresh.test.md +199 -0
  198. package/src/orchestrator/operation-plan.refresh.test.ts +367 -0
  199. package/src/orchestrator/operation-plan.ts +709 -0
  200. package/src/orchestrator/operation-plan.update.test.md +485 -0
  201. package/src/orchestrator/operation-plan.update.test.ts +1066 -0
  202. package/src/orchestrator/operation-workset.ts +235 -583
  203. package/src/orchestrator/operation.ts +446 -904
  204. package/src/orchestrator/plan-test-builder.ts +267 -0
  205. package/src/project-model/abstractions.ts +118 -0
  206. package/src/project-model/backends/codebase.ts +365 -0
  207. package/src/project-model/backends/database.ts +440 -0
  208. package/src/project-model/errors.ts +81 -0
  209. package/src/project-model/factory.ts +24 -0
  210. package/src/project-model/index.ts +4 -0
  211. package/src/project-model/utils.test.ts +544 -0
  212. package/src/project-model/utils.ts +242 -0
  213. package/src/pubsub/abstractions.ts +10 -1
  214. package/src/pubsub/factory.ts +4 -4
  215. package/src/pubsub/index.ts +1 -0
  216. package/src/pubsub/manager.ts +49 -25
  217. package/src/pubsub/memory.ts +31 -0
  218. package/src/runner/abstractions.ts +38 -26
  219. package/src/runner/artifact-env.ts +17 -6
  220. package/src/runner/factory.ts +6 -6
  221. package/src/runner/force-abort.ts +3 -6
  222. package/src/runner/local.ts +79 -72
  223. package/src/runner/pulumi.ts +26 -63
  224. package/src/services.ts +214 -103
  225. package/src/shared/models/backend/index.ts +3 -1
  226. package/src/shared/models/backend/library.ts +12 -4
  227. package/src/shared/models/backend/project.ts +43 -23
  228. package/src/shared/models/backend/pulumi.ts +14 -0
  229. package/src/shared/models/backend/unlock-method.ts +1 -1
  230. package/src/shared/models/backend/well-known.ts +58 -0
  231. package/src/shared/models/base.ts +40 -109
  232. package/src/shared/models/errors.ts +82 -1
  233. package/src/shared/models/index.ts +3 -2
  234. package/src/shared/models/prisma.ts +36 -0
  235. package/src/shared/models/project/api-key.ts +37 -56
  236. package/src/shared/models/project/artifact.ts +15 -105
  237. package/src/shared/models/project/custom-status.ts +12 -0
  238. package/src/shared/models/project/index.ts +9 -9
  239. package/src/shared/models/project/lock.ts +10 -78
  240. package/src/shared/models/project/model.ts +32 -0
  241. package/src/shared/models/project/operation.ts +222 -99
  242. package/src/shared/models/project/page.ts +37 -48
  243. package/src/shared/models/project/secret.ts +29 -103
  244. package/src/shared/models/project/service-account.ts +12 -17
  245. package/src/shared/models/project/state.ts +100 -390
  246. package/src/shared/models/project/terminal.ts +75 -89
  247. package/src/shared/models/project/trigger.ts +13 -49
  248. package/src/shared/models/project/unlock-method.ts +21 -20
  249. package/src/shared/models/project/worker.ts +89 -88
  250. package/src/shared/resolvers/graph-resolver.ts +62 -26
  251. package/src/shared/resolvers/index.ts +1 -1
  252. package/src/shared/resolvers/input-hash.ts +24 -14
  253. package/src/shared/resolvers/input.ts +48 -6
  254. package/src/shared/resolvers/registry.ts +5 -4
  255. package/src/shared/resolvers/state.ts +12 -1
  256. package/src/shared/resolvers/validation.ts +29 -9
  257. package/src/shared/utils/index.ts +1 -1
  258. package/src/shared/utils/promise-tracker.ts +30 -3
  259. package/src/terminal/abstractions.ts +1 -1
  260. package/src/terminal/docker.ts +3 -3
  261. package/src/terminal/manager.ts +102 -118
  262. package/src/test-utils/database.ts +119 -0
  263. package/src/test-utils/index.ts +2 -0
  264. package/src/test-utils/services.ts +134 -0
  265. package/src/unlock/abstractions.ts +31 -0
  266. package/src/unlock/index.ts +2 -0
  267. package/src/unlock/memory.ts +27 -0
  268. package/src/worker/abstractions.ts +7 -4
  269. package/src/worker/docker.ts +14 -19
  270. package/src/worker/manager.ts +376 -79
  271. package/dist/chunk-RCB4AFGD.js.map +0 -1
  272. package/dist/chunk-WHALQHEZ.js +0 -2017
  273. package/dist/chunk-WHALQHEZ.js.map +0 -1
  274. package/src/business/backend-unlock.ts +0 -10
  275. package/src/common/performance.ts +0 -44
  276. package/src/hotstate/abstractions.ts +0 -48
  277. package/src/hotstate/factory.ts +0 -17
  278. package/src/hotstate/index.ts +0 -3
  279. package/src/hotstate/manager.ts +0 -192
  280. package/src/hotstate/memory.ts +0 -100
  281. package/src/hotstate/validation.ts +0 -101
  282. package/src/project/abstractions.ts +0 -102
  283. package/src/project/factory.ts +0 -11
  284. package/src/project/index.ts +0 -3
  285. package/src/project/local.ts +0 -469
  286. package/src/project/manager.ts +0 -574
  287. package/src/pubsub/local.ts +0 -36
  288. package/src/pubsub/validation.ts +0 -33
  289. package/src/shared/models/project/component.ts +0 -45
  290. package/src/shared/models/project/instance.ts +0 -74
  291. package/src/state/abstractions.ts +0 -450
  292. package/src/state/encryption.ts +0 -59
  293. package/src/state/factory.ts +0 -20
  294. package/src/state/index.ts +0 -6
  295. package/src/state/local/backend.ts +0 -299
  296. package/src/state/local/collection.ts +0 -342
  297. package/src/state/local/index.ts +0 -2
  298. package/src/state/manager.ts +0 -819
  299. package/src/state/repository/index.ts +0 -2
  300. package/src/state/repository/repository.index.ts +0 -193
  301. package/src/state/repository/repository.ts +0 -458
  302. /package/src/{state → database/local}/keyring.ts +0 -0
@@ -0,0 +1,1838 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `Page` 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 Page
18
+ *
19
+ */
20
+ export type PageModel = runtime.Types.Result.DefaultSelection<Prisma.$PagePayload>
21
+
22
+ export type AggregatePage = {
23
+ _count: PageCountAggregateOutputType | null
24
+ _min: PageMinAggregateOutputType | null
25
+ _max: PageMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type PageMinAggregateOutputType = {
29
+ id: string | null
30
+ stateId: string | null
31
+ name: string | null
32
+ serviceAccountId: string | null
33
+ createdAt: Date | null
34
+ updatedAt: Date | null
35
+ }
36
+
37
+ export type PageMaxAggregateOutputType = {
38
+ id: string | null
39
+ stateId: string | null
40
+ name: string | null
41
+ serviceAccountId: string | null
42
+ createdAt: Date | null
43
+ updatedAt: Date | null
44
+ }
45
+
46
+ export type PageCountAggregateOutputType = {
47
+ id: number
48
+ meta: number
49
+ stateId: number
50
+ name: number
51
+ serviceAccountId: number
52
+ content: number
53
+ createdAt: number
54
+ updatedAt: number
55
+ _all: number
56
+ }
57
+
58
+
59
+ export type PageMinAggregateInputType = {
60
+ id?: true
61
+ stateId?: true
62
+ name?: true
63
+ serviceAccountId?: true
64
+ createdAt?: true
65
+ updatedAt?: true
66
+ }
67
+
68
+ export type PageMaxAggregateInputType = {
69
+ id?: true
70
+ stateId?: true
71
+ name?: true
72
+ serviceAccountId?: true
73
+ createdAt?: true
74
+ updatedAt?: true
75
+ }
76
+
77
+ export type PageCountAggregateInputType = {
78
+ id?: true
79
+ meta?: true
80
+ stateId?: true
81
+ name?: true
82
+ serviceAccountId?: true
83
+ content?: true
84
+ createdAt?: true
85
+ updatedAt?: true
86
+ _all?: true
87
+ }
88
+
89
+ export type PageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
90
+ /**
91
+ * Filter which Page to aggregate.
92
+ */
93
+ where?: Prisma.PageWhereInput
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
96
+ *
97
+ * Determine the order of Pages to fetch.
98
+ */
99
+ orderBy?: Prisma.PageOrderByWithRelationInput | Prisma.PageOrderByWithRelationInput[]
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
102
+ *
103
+ * Sets the start position
104
+ */
105
+ cursor?: Prisma.PageWhereUniqueInput
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
108
+ *
109
+ * Take `±n` Pages from the position of the cursor.
110
+ */
111
+ take?: number
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
114
+ *
115
+ * Skip the first `n` Pages.
116
+ */
117
+ skip?: number
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
120
+ *
121
+ * Count returned Pages
122
+ **/
123
+ _count?: true | PageCountAggregateInputType
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
126
+ *
127
+ * Select which fields to find the minimum value
128
+ **/
129
+ _min?: PageMinAggregateInputType
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
132
+ *
133
+ * Select which fields to find the maximum value
134
+ **/
135
+ _max?: PageMaxAggregateInputType
136
+ }
137
+
138
+ export type GetPageAggregateType<T extends PageAggregateArgs> = {
139
+ [P in keyof T & keyof AggregatePage]: P extends '_count' | 'count'
140
+ ? T[P] extends true
141
+ ? number
142
+ : Prisma.GetScalarType<T[P], AggregatePage[P]>
143
+ : Prisma.GetScalarType<T[P], AggregatePage[P]>
144
+ }
145
+
146
+
147
+
148
+
149
+ export type PageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
150
+ where?: Prisma.PageWhereInput
151
+ orderBy?: Prisma.PageOrderByWithAggregationInput | Prisma.PageOrderByWithAggregationInput[]
152
+ by: Prisma.PageScalarFieldEnum[] | Prisma.PageScalarFieldEnum
153
+ having?: Prisma.PageScalarWhereWithAggregatesInput
154
+ take?: number
155
+ skip?: number
156
+ _count?: PageCountAggregateInputType | true
157
+ _min?: PageMinAggregateInputType
158
+ _max?: PageMaxAggregateInputType
159
+ }
160
+
161
+ export type PageGroupByOutputType = {
162
+ id: string
163
+ meta: PrismaJson.GlobalCommonObjectMeta
164
+ stateId: string | null
165
+ name: string | null
166
+ serviceAccountId: string | null
167
+ content: PrismaJson.PageContent
168
+ createdAt: Date
169
+ updatedAt: Date
170
+ _count: PageCountAggregateOutputType | null
171
+ _min: PageMinAggregateOutputType | null
172
+ _max: PageMaxAggregateOutputType | null
173
+ }
174
+
175
+ type GetPageGroupByPayload<T extends PageGroupByArgs> = Prisma.PrismaPromise<
176
+ Array<
177
+ Prisma.PickEnumerable<PageGroupByOutputType, T['by']> &
178
+ {
179
+ [P in ((keyof T) & (keyof PageGroupByOutputType))]: P extends '_count'
180
+ ? T[P] extends boolean
181
+ ? number
182
+ : Prisma.GetScalarType<T[P], PageGroupByOutputType[P]>
183
+ : Prisma.GetScalarType<T[P], PageGroupByOutputType[P]>
184
+ }
185
+ >
186
+ >
187
+
188
+
189
+
190
+ export type PageWhereInput = {
191
+ AND?: Prisma.PageWhereInput | Prisma.PageWhereInput[]
192
+ OR?: Prisma.PageWhereInput[]
193
+ NOT?: Prisma.PageWhereInput | Prisma.PageWhereInput[]
194
+ id?: Prisma.StringFilter<"Page"> | string
195
+ meta?: Prisma.JsonFilter<"Page">
196
+ stateId?: Prisma.StringNullableFilter<"Page"> | string | null
197
+ name?: Prisma.StringNullableFilter<"Page"> | string | null
198
+ serviceAccountId?: Prisma.StringNullableFilter<"Page"> | string | null
199
+ content?: Prisma.JsonFilter<"Page">
200
+ createdAt?: Prisma.DateTimeFilter<"Page"> | Date | string
201
+ updatedAt?: Prisma.DateTimeFilter<"Page"> | Date | string
202
+ state?: Prisma.XOR<Prisma.InstanceStateNullableScalarRelationFilter, Prisma.InstanceStateWhereInput> | null
203
+ serviceAccount?: Prisma.XOR<Prisma.ServiceAccountNullableScalarRelationFilter, Prisma.ServiceAccountWhereInput> | null
204
+ artifacts?: Prisma.ArtifactListRelationFilter
205
+ }
206
+
207
+ export type PageOrderByWithRelationInput = {
208
+ id?: Prisma.SortOrder
209
+ meta?: Prisma.SortOrder
210
+ stateId?: Prisma.SortOrderInput | Prisma.SortOrder
211
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
212
+ serviceAccountId?: Prisma.SortOrderInput | Prisma.SortOrder
213
+ content?: Prisma.SortOrder
214
+ createdAt?: Prisma.SortOrder
215
+ updatedAt?: Prisma.SortOrder
216
+ state?: Prisma.InstanceStateOrderByWithRelationInput
217
+ serviceAccount?: Prisma.ServiceAccountOrderByWithRelationInput
218
+ artifacts?: Prisma.ArtifactOrderByRelationAggregateInput
219
+ }
220
+
221
+ export type PageWhereUniqueInput = Prisma.AtLeast<{
222
+ id?: string
223
+ stateId_name?: Prisma.PageStateIdNameCompoundUniqueInput
224
+ AND?: Prisma.PageWhereInput | Prisma.PageWhereInput[]
225
+ OR?: Prisma.PageWhereInput[]
226
+ NOT?: Prisma.PageWhereInput | Prisma.PageWhereInput[]
227
+ meta?: Prisma.JsonFilter<"Page">
228
+ stateId?: Prisma.StringNullableFilter<"Page"> | string | null
229
+ name?: Prisma.StringNullableFilter<"Page"> | string | null
230
+ serviceAccountId?: Prisma.StringNullableFilter<"Page"> | string | null
231
+ content?: Prisma.JsonFilter<"Page">
232
+ createdAt?: Prisma.DateTimeFilter<"Page"> | Date | string
233
+ updatedAt?: Prisma.DateTimeFilter<"Page"> | Date | string
234
+ state?: Prisma.XOR<Prisma.InstanceStateNullableScalarRelationFilter, Prisma.InstanceStateWhereInput> | null
235
+ serviceAccount?: Prisma.XOR<Prisma.ServiceAccountNullableScalarRelationFilter, Prisma.ServiceAccountWhereInput> | null
236
+ artifacts?: Prisma.ArtifactListRelationFilter
237
+ }, "id" | "stateId_name">
238
+
239
+ export type PageOrderByWithAggregationInput = {
240
+ id?: Prisma.SortOrder
241
+ meta?: Prisma.SortOrder
242
+ stateId?: Prisma.SortOrderInput | Prisma.SortOrder
243
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
244
+ serviceAccountId?: Prisma.SortOrderInput | Prisma.SortOrder
245
+ content?: Prisma.SortOrder
246
+ createdAt?: Prisma.SortOrder
247
+ updatedAt?: Prisma.SortOrder
248
+ _count?: Prisma.PageCountOrderByAggregateInput
249
+ _max?: Prisma.PageMaxOrderByAggregateInput
250
+ _min?: Prisma.PageMinOrderByAggregateInput
251
+ }
252
+
253
+ export type PageScalarWhereWithAggregatesInput = {
254
+ AND?: Prisma.PageScalarWhereWithAggregatesInput | Prisma.PageScalarWhereWithAggregatesInput[]
255
+ OR?: Prisma.PageScalarWhereWithAggregatesInput[]
256
+ NOT?: Prisma.PageScalarWhereWithAggregatesInput | Prisma.PageScalarWhereWithAggregatesInput[]
257
+ id?: Prisma.StringWithAggregatesFilter<"Page"> | string
258
+ meta?: Prisma.JsonWithAggregatesFilter<"Page">
259
+ stateId?: Prisma.StringNullableWithAggregatesFilter<"Page"> | string | null
260
+ name?: Prisma.StringNullableWithAggregatesFilter<"Page"> | string | null
261
+ serviceAccountId?: Prisma.StringNullableWithAggregatesFilter<"Page"> | string | null
262
+ content?: Prisma.JsonWithAggregatesFilter<"Page">
263
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Page"> | Date | string
264
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Page"> | Date | string
265
+ }
266
+
267
+ export type PageCreateInput = {
268
+ id?: string
269
+ meta: PrismaJson.GlobalCommonObjectMeta
270
+ name?: string | null
271
+ content: PrismaJson.PageContent
272
+ createdAt?: Date | string
273
+ updatedAt?: Date | string
274
+ state?: Prisma.InstanceStateCreateNestedOneWithoutPagesInput
275
+ serviceAccount?: Prisma.ServiceAccountCreateNestedOneWithoutPagesInput
276
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutPagesInput
277
+ }
278
+
279
+ export type PageUncheckedCreateInput = {
280
+ id?: string
281
+ meta: PrismaJson.GlobalCommonObjectMeta
282
+ stateId?: string | null
283
+ name?: string | null
284
+ serviceAccountId?: string | null
285
+ content: PrismaJson.PageContent
286
+ createdAt?: Date | string
287
+ updatedAt?: Date | string
288
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutPagesInput
289
+ }
290
+
291
+ export type PageUpdateInput = {
292
+ id?: Prisma.StringFieldUpdateOperationsInput | string
293
+ meta?: PrismaJson.GlobalCommonObjectMeta
294
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
295
+ content?: PrismaJson.PageContent
296
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
297
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
298
+ state?: Prisma.InstanceStateUpdateOneWithoutPagesNestedInput
299
+ serviceAccount?: Prisma.ServiceAccountUpdateOneWithoutPagesNestedInput
300
+ artifacts?: Prisma.ArtifactUpdateManyWithoutPagesNestedInput
301
+ }
302
+
303
+ export type PageUncheckedUpdateInput = {
304
+ id?: Prisma.StringFieldUpdateOperationsInput | string
305
+ meta?: PrismaJson.GlobalCommonObjectMeta
306
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
307
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
308
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
309
+ content?: PrismaJson.PageContent
310
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
311
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
312
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutPagesNestedInput
313
+ }
314
+
315
+ export type PageCreateManyInput = {
316
+ id?: string
317
+ meta: PrismaJson.GlobalCommonObjectMeta
318
+ stateId?: string | null
319
+ name?: string | null
320
+ serviceAccountId?: string | null
321
+ content: PrismaJson.PageContent
322
+ createdAt?: Date | string
323
+ updatedAt?: Date | string
324
+ }
325
+
326
+ export type PageUpdateManyMutationInput = {
327
+ id?: Prisma.StringFieldUpdateOperationsInput | string
328
+ meta?: PrismaJson.GlobalCommonObjectMeta
329
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
330
+ content?: PrismaJson.PageContent
331
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
332
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
333
+ }
334
+
335
+ export type PageUncheckedUpdateManyInput = {
336
+ id?: Prisma.StringFieldUpdateOperationsInput | string
337
+ meta?: PrismaJson.GlobalCommonObjectMeta
338
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
339
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
340
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
341
+ content?: PrismaJson.PageContent
342
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
343
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
344
+ }
345
+
346
+ export type PageListRelationFilter = {
347
+ every?: Prisma.PageWhereInput
348
+ some?: Prisma.PageWhereInput
349
+ none?: Prisma.PageWhereInput
350
+ }
351
+
352
+ export type PageOrderByRelationAggregateInput = {
353
+ _count?: Prisma.SortOrder
354
+ }
355
+
356
+ export type PageStateIdNameCompoundUniqueInput = {
357
+ stateId: string
358
+ name: string
359
+ }
360
+
361
+ export type PageCountOrderByAggregateInput = {
362
+ id?: Prisma.SortOrder
363
+ meta?: Prisma.SortOrder
364
+ stateId?: Prisma.SortOrder
365
+ name?: Prisma.SortOrder
366
+ serviceAccountId?: Prisma.SortOrder
367
+ content?: Prisma.SortOrder
368
+ createdAt?: Prisma.SortOrder
369
+ updatedAt?: Prisma.SortOrder
370
+ }
371
+
372
+ export type PageMaxOrderByAggregateInput = {
373
+ id?: Prisma.SortOrder
374
+ stateId?: Prisma.SortOrder
375
+ name?: Prisma.SortOrder
376
+ serviceAccountId?: Prisma.SortOrder
377
+ createdAt?: Prisma.SortOrder
378
+ updatedAt?: Prisma.SortOrder
379
+ }
380
+
381
+ export type PageMinOrderByAggregateInput = {
382
+ id?: Prisma.SortOrder
383
+ stateId?: Prisma.SortOrder
384
+ name?: Prisma.SortOrder
385
+ serviceAccountId?: Prisma.SortOrder
386
+ createdAt?: Prisma.SortOrder
387
+ updatedAt?: Prisma.SortOrder
388
+ }
389
+
390
+ export type PageCreateNestedManyWithoutArtifactsInput = {
391
+ create?: Prisma.XOR<Prisma.PageCreateWithoutArtifactsInput, Prisma.PageUncheckedCreateWithoutArtifactsInput> | Prisma.PageCreateWithoutArtifactsInput[] | Prisma.PageUncheckedCreateWithoutArtifactsInput[]
392
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutArtifactsInput | Prisma.PageCreateOrConnectWithoutArtifactsInput[]
393
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
394
+ }
395
+
396
+ export type PageUncheckedCreateNestedManyWithoutArtifactsInput = {
397
+ create?: Prisma.XOR<Prisma.PageCreateWithoutArtifactsInput, Prisma.PageUncheckedCreateWithoutArtifactsInput> | Prisma.PageCreateWithoutArtifactsInput[] | Prisma.PageUncheckedCreateWithoutArtifactsInput[]
398
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutArtifactsInput | Prisma.PageCreateOrConnectWithoutArtifactsInput[]
399
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
400
+ }
401
+
402
+ export type PageUpdateManyWithoutArtifactsNestedInput = {
403
+ create?: Prisma.XOR<Prisma.PageCreateWithoutArtifactsInput, Prisma.PageUncheckedCreateWithoutArtifactsInput> | Prisma.PageCreateWithoutArtifactsInput[] | Prisma.PageUncheckedCreateWithoutArtifactsInput[]
404
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutArtifactsInput | Prisma.PageCreateOrConnectWithoutArtifactsInput[]
405
+ upsert?: Prisma.PageUpsertWithWhereUniqueWithoutArtifactsInput | Prisma.PageUpsertWithWhereUniqueWithoutArtifactsInput[]
406
+ set?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
407
+ disconnect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
408
+ delete?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
409
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
410
+ update?: Prisma.PageUpdateWithWhereUniqueWithoutArtifactsInput | Prisma.PageUpdateWithWhereUniqueWithoutArtifactsInput[]
411
+ updateMany?: Prisma.PageUpdateManyWithWhereWithoutArtifactsInput | Prisma.PageUpdateManyWithWhereWithoutArtifactsInput[]
412
+ deleteMany?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
413
+ }
414
+
415
+ export type PageUncheckedUpdateManyWithoutArtifactsNestedInput = {
416
+ create?: Prisma.XOR<Prisma.PageCreateWithoutArtifactsInput, Prisma.PageUncheckedCreateWithoutArtifactsInput> | Prisma.PageCreateWithoutArtifactsInput[] | Prisma.PageUncheckedCreateWithoutArtifactsInput[]
417
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutArtifactsInput | Prisma.PageCreateOrConnectWithoutArtifactsInput[]
418
+ upsert?: Prisma.PageUpsertWithWhereUniqueWithoutArtifactsInput | Prisma.PageUpsertWithWhereUniqueWithoutArtifactsInput[]
419
+ set?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
420
+ disconnect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
421
+ delete?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
422
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
423
+ update?: Prisma.PageUpdateWithWhereUniqueWithoutArtifactsInput | Prisma.PageUpdateWithWhereUniqueWithoutArtifactsInput[]
424
+ updateMany?: Prisma.PageUpdateManyWithWhereWithoutArtifactsInput | Prisma.PageUpdateManyWithWhereWithoutArtifactsInput[]
425
+ deleteMany?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
426
+ }
427
+
428
+ export type PageCreateNestedManyWithoutStateInput = {
429
+ create?: Prisma.XOR<Prisma.PageCreateWithoutStateInput, Prisma.PageUncheckedCreateWithoutStateInput> | Prisma.PageCreateWithoutStateInput[] | Prisma.PageUncheckedCreateWithoutStateInput[]
430
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutStateInput | Prisma.PageCreateOrConnectWithoutStateInput[]
431
+ createMany?: Prisma.PageCreateManyStateInputEnvelope
432
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
433
+ }
434
+
435
+ export type PageUncheckedCreateNestedManyWithoutStateInput = {
436
+ create?: Prisma.XOR<Prisma.PageCreateWithoutStateInput, Prisma.PageUncheckedCreateWithoutStateInput> | Prisma.PageCreateWithoutStateInput[] | Prisma.PageUncheckedCreateWithoutStateInput[]
437
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutStateInput | Prisma.PageCreateOrConnectWithoutStateInput[]
438
+ createMany?: Prisma.PageCreateManyStateInputEnvelope
439
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
440
+ }
441
+
442
+ export type PageUpdateManyWithoutStateNestedInput = {
443
+ create?: Prisma.XOR<Prisma.PageCreateWithoutStateInput, Prisma.PageUncheckedCreateWithoutStateInput> | Prisma.PageCreateWithoutStateInput[] | Prisma.PageUncheckedCreateWithoutStateInput[]
444
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutStateInput | Prisma.PageCreateOrConnectWithoutStateInput[]
445
+ upsert?: Prisma.PageUpsertWithWhereUniqueWithoutStateInput | Prisma.PageUpsertWithWhereUniqueWithoutStateInput[]
446
+ createMany?: Prisma.PageCreateManyStateInputEnvelope
447
+ set?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
448
+ disconnect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
449
+ delete?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
450
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
451
+ update?: Prisma.PageUpdateWithWhereUniqueWithoutStateInput | Prisma.PageUpdateWithWhereUniqueWithoutStateInput[]
452
+ updateMany?: Prisma.PageUpdateManyWithWhereWithoutStateInput | Prisma.PageUpdateManyWithWhereWithoutStateInput[]
453
+ deleteMany?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
454
+ }
455
+
456
+ export type PageUncheckedUpdateManyWithoutStateNestedInput = {
457
+ create?: Prisma.XOR<Prisma.PageCreateWithoutStateInput, Prisma.PageUncheckedCreateWithoutStateInput> | Prisma.PageCreateWithoutStateInput[] | Prisma.PageUncheckedCreateWithoutStateInput[]
458
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutStateInput | Prisma.PageCreateOrConnectWithoutStateInput[]
459
+ upsert?: Prisma.PageUpsertWithWhereUniqueWithoutStateInput | Prisma.PageUpsertWithWhereUniqueWithoutStateInput[]
460
+ createMany?: Prisma.PageCreateManyStateInputEnvelope
461
+ set?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
462
+ disconnect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
463
+ delete?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
464
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
465
+ update?: Prisma.PageUpdateWithWhereUniqueWithoutStateInput | Prisma.PageUpdateWithWhereUniqueWithoutStateInput[]
466
+ updateMany?: Prisma.PageUpdateManyWithWhereWithoutStateInput | Prisma.PageUpdateManyWithWhereWithoutStateInput[]
467
+ deleteMany?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
468
+ }
469
+
470
+ export type PageCreateNestedManyWithoutServiceAccountInput = {
471
+ create?: Prisma.XOR<Prisma.PageCreateWithoutServiceAccountInput, Prisma.PageUncheckedCreateWithoutServiceAccountInput> | Prisma.PageCreateWithoutServiceAccountInput[] | Prisma.PageUncheckedCreateWithoutServiceAccountInput[]
472
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutServiceAccountInput | Prisma.PageCreateOrConnectWithoutServiceAccountInput[]
473
+ createMany?: Prisma.PageCreateManyServiceAccountInputEnvelope
474
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
475
+ }
476
+
477
+ export type PageUncheckedCreateNestedManyWithoutServiceAccountInput = {
478
+ create?: Prisma.XOR<Prisma.PageCreateWithoutServiceAccountInput, Prisma.PageUncheckedCreateWithoutServiceAccountInput> | Prisma.PageCreateWithoutServiceAccountInput[] | Prisma.PageUncheckedCreateWithoutServiceAccountInput[]
479
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutServiceAccountInput | Prisma.PageCreateOrConnectWithoutServiceAccountInput[]
480
+ createMany?: Prisma.PageCreateManyServiceAccountInputEnvelope
481
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
482
+ }
483
+
484
+ export type PageUpdateManyWithoutServiceAccountNestedInput = {
485
+ create?: Prisma.XOR<Prisma.PageCreateWithoutServiceAccountInput, Prisma.PageUncheckedCreateWithoutServiceAccountInput> | Prisma.PageCreateWithoutServiceAccountInput[] | Prisma.PageUncheckedCreateWithoutServiceAccountInput[]
486
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutServiceAccountInput | Prisma.PageCreateOrConnectWithoutServiceAccountInput[]
487
+ upsert?: Prisma.PageUpsertWithWhereUniqueWithoutServiceAccountInput | Prisma.PageUpsertWithWhereUniqueWithoutServiceAccountInput[]
488
+ createMany?: Prisma.PageCreateManyServiceAccountInputEnvelope
489
+ set?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
490
+ disconnect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
491
+ delete?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
492
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
493
+ update?: Prisma.PageUpdateWithWhereUniqueWithoutServiceAccountInput | Prisma.PageUpdateWithWhereUniqueWithoutServiceAccountInput[]
494
+ updateMany?: Prisma.PageUpdateManyWithWhereWithoutServiceAccountInput | Prisma.PageUpdateManyWithWhereWithoutServiceAccountInput[]
495
+ deleteMany?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
496
+ }
497
+
498
+ export type PageUncheckedUpdateManyWithoutServiceAccountNestedInput = {
499
+ create?: Prisma.XOR<Prisma.PageCreateWithoutServiceAccountInput, Prisma.PageUncheckedCreateWithoutServiceAccountInput> | Prisma.PageCreateWithoutServiceAccountInput[] | Prisma.PageUncheckedCreateWithoutServiceAccountInput[]
500
+ connectOrCreate?: Prisma.PageCreateOrConnectWithoutServiceAccountInput | Prisma.PageCreateOrConnectWithoutServiceAccountInput[]
501
+ upsert?: Prisma.PageUpsertWithWhereUniqueWithoutServiceAccountInput | Prisma.PageUpsertWithWhereUniqueWithoutServiceAccountInput[]
502
+ createMany?: Prisma.PageCreateManyServiceAccountInputEnvelope
503
+ set?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
504
+ disconnect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
505
+ delete?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
506
+ connect?: Prisma.PageWhereUniqueInput | Prisma.PageWhereUniqueInput[]
507
+ update?: Prisma.PageUpdateWithWhereUniqueWithoutServiceAccountInput | Prisma.PageUpdateWithWhereUniqueWithoutServiceAccountInput[]
508
+ updateMany?: Prisma.PageUpdateManyWithWhereWithoutServiceAccountInput | Prisma.PageUpdateManyWithWhereWithoutServiceAccountInput[]
509
+ deleteMany?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
510
+ }
511
+
512
+ export type PageCreateWithoutArtifactsInput = {
513
+ id?: string
514
+ meta: PrismaJson.GlobalCommonObjectMeta
515
+ name?: string | null
516
+ content: PrismaJson.PageContent
517
+ createdAt?: Date | string
518
+ updatedAt?: Date | string
519
+ state?: Prisma.InstanceStateCreateNestedOneWithoutPagesInput
520
+ serviceAccount?: Prisma.ServiceAccountCreateNestedOneWithoutPagesInput
521
+ }
522
+
523
+ export type PageUncheckedCreateWithoutArtifactsInput = {
524
+ id?: string
525
+ meta: PrismaJson.GlobalCommonObjectMeta
526
+ stateId?: string | null
527
+ name?: string | null
528
+ serviceAccountId?: string | null
529
+ content: PrismaJson.PageContent
530
+ createdAt?: Date | string
531
+ updatedAt?: Date | string
532
+ }
533
+
534
+ export type PageCreateOrConnectWithoutArtifactsInput = {
535
+ where: Prisma.PageWhereUniqueInput
536
+ create: Prisma.XOR<Prisma.PageCreateWithoutArtifactsInput, Prisma.PageUncheckedCreateWithoutArtifactsInput>
537
+ }
538
+
539
+ export type PageUpsertWithWhereUniqueWithoutArtifactsInput = {
540
+ where: Prisma.PageWhereUniqueInput
541
+ update: Prisma.XOR<Prisma.PageUpdateWithoutArtifactsInput, Prisma.PageUncheckedUpdateWithoutArtifactsInput>
542
+ create: Prisma.XOR<Prisma.PageCreateWithoutArtifactsInput, Prisma.PageUncheckedCreateWithoutArtifactsInput>
543
+ }
544
+
545
+ export type PageUpdateWithWhereUniqueWithoutArtifactsInput = {
546
+ where: Prisma.PageWhereUniqueInput
547
+ data: Prisma.XOR<Prisma.PageUpdateWithoutArtifactsInput, Prisma.PageUncheckedUpdateWithoutArtifactsInput>
548
+ }
549
+
550
+ export type PageUpdateManyWithWhereWithoutArtifactsInput = {
551
+ where: Prisma.PageScalarWhereInput
552
+ data: Prisma.XOR<Prisma.PageUpdateManyMutationInput, Prisma.PageUncheckedUpdateManyWithoutArtifactsInput>
553
+ }
554
+
555
+ export type PageScalarWhereInput = {
556
+ AND?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
557
+ OR?: Prisma.PageScalarWhereInput[]
558
+ NOT?: Prisma.PageScalarWhereInput | Prisma.PageScalarWhereInput[]
559
+ id?: Prisma.StringFilter<"Page"> | string
560
+ meta?: Prisma.JsonFilter<"Page">
561
+ stateId?: Prisma.StringNullableFilter<"Page"> | string | null
562
+ name?: Prisma.StringNullableFilter<"Page"> | string | null
563
+ serviceAccountId?: Prisma.StringNullableFilter<"Page"> | string | null
564
+ content?: Prisma.JsonFilter<"Page">
565
+ createdAt?: Prisma.DateTimeFilter<"Page"> | Date | string
566
+ updatedAt?: Prisma.DateTimeFilter<"Page"> | Date | string
567
+ }
568
+
569
+ export type PageCreateWithoutStateInput = {
570
+ id?: string
571
+ meta: PrismaJson.GlobalCommonObjectMeta
572
+ name?: string | null
573
+ content: PrismaJson.PageContent
574
+ createdAt?: Date | string
575
+ updatedAt?: Date | string
576
+ serviceAccount?: Prisma.ServiceAccountCreateNestedOneWithoutPagesInput
577
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutPagesInput
578
+ }
579
+
580
+ export type PageUncheckedCreateWithoutStateInput = {
581
+ id?: string
582
+ meta: PrismaJson.GlobalCommonObjectMeta
583
+ name?: string | null
584
+ serviceAccountId?: string | null
585
+ content: PrismaJson.PageContent
586
+ createdAt?: Date | string
587
+ updatedAt?: Date | string
588
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutPagesInput
589
+ }
590
+
591
+ export type PageCreateOrConnectWithoutStateInput = {
592
+ where: Prisma.PageWhereUniqueInput
593
+ create: Prisma.XOR<Prisma.PageCreateWithoutStateInput, Prisma.PageUncheckedCreateWithoutStateInput>
594
+ }
595
+
596
+ export type PageCreateManyStateInputEnvelope = {
597
+ data: Prisma.PageCreateManyStateInput | Prisma.PageCreateManyStateInput[]
598
+ }
599
+
600
+ export type PageUpsertWithWhereUniqueWithoutStateInput = {
601
+ where: Prisma.PageWhereUniqueInput
602
+ update: Prisma.XOR<Prisma.PageUpdateWithoutStateInput, Prisma.PageUncheckedUpdateWithoutStateInput>
603
+ create: Prisma.XOR<Prisma.PageCreateWithoutStateInput, Prisma.PageUncheckedCreateWithoutStateInput>
604
+ }
605
+
606
+ export type PageUpdateWithWhereUniqueWithoutStateInput = {
607
+ where: Prisma.PageWhereUniqueInput
608
+ data: Prisma.XOR<Prisma.PageUpdateWithoutStateInput, Prisma.PageUncheckedUpdateWithoutStateInput>
609
+ }
610
+
611
+ export type PageUpdateManyWithWhereWithoutStateInput = {
612
+ where: Prisma.PageScalarWhereInput
613
+ data: Prisma.XOR<Prisma.PageUpdateManyMutationInput, Prisma.PageUncheckedUpdateManyWithoutStateInput>
614
+ }
615
+
616
+ export type PageCreateWithoutServiceAccountInput = {
617
+ id?: string
618
+ meta: PrismaJson.GlobalCommonObjectMeta
619
+ name?: string | null
620
+ content: PrismaJson.PageContent
621
+ createdAt?: Date | string
622
+ updatedAt?: Date | string
623
+ state?: Prisma.InstanceStateCreateNestedOneWithoutPagesInput
624
+ artifacts?: Prisma.ArtifactCreateNestedManyWithoutPagesInput
625
+ }
626
+
627
+ export type PageUncheckedCreateWithoutServiceAccountInput = {
628
+ id?: string
629
+ meta: PrismaJson.GlobalCommonObjectMeta
630
+ stateId?: string | null
631
+ name?: string | null
632
+ content: PrismaJson.PageContent
633
+ createdAt?: Date | string
634
+ updatedAt?: Date | string
635
+ artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutPagesInput
636
+ }
637
+
638
+ export type PageCreateOrConnectWithoutServiceAccountInput = {
639
+ where: Prisma.PageWhereUniqueInput
640
+ create: Prisma.XOR<Prisma.PageCreateWithoutServiceAccountInput, Prisma.PageUncheckedCreateWithoutServiceAccountInput>
641
+ }
642
+
643
+ export type PageCreateManyServiceAccountInputEnvelope = {
644
+ data: Prisma.PageCreateManyServiceAccountInput | Prisma.PageCreateManyServiceAccountInput[]
645
+ }
646
+
647
+ export type PageUpsertWithWhereUniqueWithoutServiceAccountInput = {
648
+ where: Prisma.PageWhereUniqueInput
649
+ update: Prisma.XOR<Prisma.PageUpdateWithoutServiceAccountInput, Prisma.PageUncheckedUpdateWithoutServiceAccountInput>
650
+ create: Prisma.XOR<Prisma.PageCreateWithoutServiceAccountInput, Prisma.PageUncheckedCreateWithoutServiceAccountInput>
651
+ }
652
+
653
+ export type PageUpdateWithWhereUniqueWithoutServiceAccountInput = {
654
+ where: Prisma.PageWhereUniqueInput
655
+ data: Prisma.XOR<Prisma.PageUpdateWithoutServiceAccountInput, Prisma.PageUncheckedUpdateWithoutServiceAccountInput>
656
+ }
657
+
658
+ export type PageUpdateManyWithWhereWithoutServiceAccountInput = {
659
+ where: Prisma.PageScalarWhereInput
660
+ data: Prisma.XOR<Prisma.PageUpdateManyMutationInput, Prisma.PageUncheckedUpdateManyWithoutServiceAccountInput>
661
+ }
662
+
663
+ export type PageUpdateWithoutArtifactsInput = {
664
+ id?: Prisma.StringFieldUpdateOperationsInput | string
665
+ meta?: PrismaJson.GlobalCommonObjectMeta
666
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
667
+ content?: PrismaJson.PageContent
668
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
669
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
670
+ state?: Prisma.InstanceStateUpdateOneWithoutPagesNestedInput
671
+ serviceAccount?: Prisma.ServiceAccountUpdateOneWithoutPagesNestedInput
672
+ }
673
+
674
+ export type PageUncheckedUpdateWithoutArtifactsInput = {
675
+ id?: Prisma.StringFieldUpdateOperationsInput | string
676
+ meta?: PrismaJson.GlobalCommonObjectMeta
677
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
678
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
679
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
680
+ content?: PrismaJson.PageContent
681
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
682
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
683
+ }
684
+
685
+ export type PageUncheckedUpdateManyWithoutArtifactsInput = {
686
+ id?: Prisma.StringFieldUpdateOperationsInput | string
687
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
688
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
689
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
690
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
691
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
692
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
693
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
694
+ }
695
+
696
+ export type PageCreateManyStateInput = {
697
+ id?: string
698
+ meta: PrismaJson.GlobalCommonObjectMeta
699
+ name?: string | null
700
+ serviceAccountId?: string | null
701
+ content: PrismaJson.PageContent
702
+ createdAt?: Date | string
703
+ updatedAt?: Date | string
704
+ }
705
+
706
+ export type PageUpdateWithoutStateInput = {
707
+ id?: Prisma.StringFieldUpdateOperationsInput | string
708
+ meta?: PrismaJson.GlobalCommonObjectMeta
709
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
710
+ content?: PrismaJson.PageContent
711
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
712
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
713
+ serviceAccount?: Prisma.ServiceAccountUpdateOneWithoutPagesNestedInput
714
+ artifacts?: Prisma.ArtifactUpdateManyWithoutPagesNestedInput
715
+ }
716
+
717
+ export type PageUncheckedUpdateWithoutStateInput = {
718
+ id?: Prisma.StringFieldUpdateOperationsInput | string
719
+ meta?: PrismaJson.GlobalCommonObjectMeta
720
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
721
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
722
+ content?: PrismaJson.PageContent
723
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
724
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
725
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutPagesNestedInput
726
+ }
727
+
728
+ export type PageUncheckedUpdateManyWithoutStateInput = {
729
+ id?: Prisma.StringFieldUpdateOperationsInput | string
730
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
731
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
732
+ serviceAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
733
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
734
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
735
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
736
+ }
737
+
738
+ export type PageCreateManyServiceAccountInput = {
739
+ id?: string
740
+ meta: PrismaJson.GlobalCommonObjectMeta
741
+ stateId?: string | null
742
+ name?: string | null
743
+ content: PrismaJson.PageContent
744
+ createdAt?: Date | string
745
+ updatedAt?: Date | string
746
+ }
747
+
748
+ export type PageUpdateWithoutServiceAccountInput = {
749
+ id?: Prisma.StringFieldUpdateOperationsInput | string
750
+ meta?: PrismaJson.GlobalCommonObjectMeta
751
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
752
+ content?: PrismaJson.PageContent
753
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
754
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
755
+ state?: Prisma.InstanceStateUpdateOneWithoutPagesNestedInput
756
+ artifacts?: Prisma.ArtifactUpdateManyWithoutPagesNestedInput
757
+ }
758
+
759
+ export type PageUncheckedUpdateWithoutServiceAccountInput = {
760
+ id?: Prisma.StringFieldUpdateOperationsInput | string
761
+ meta?: PrismaJson.GlobalCommonObjectMeta
762
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
763
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
764
+ content?: PrismaJson.PageContent
765
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
766
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
767
+ artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutPagesNestedInput
768
+ }
769
+
770
+ export type PageUncheckedUpdateManyWithoutServiceAccountInput = {
771
+ id?: Prisma.StringFieldUpdateOperationsInput | string
772
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
773
+ stateId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
774
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
775
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
776
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
777
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
778
+ }
779
+
780
+
781
+ /**
782
+ * Count Type PageCountOutputType
783
+ */
784
+
785
+ export type PageCountOutputType = {
786
+ artifacts: number
787
+ }
788
+
789
+ export type PageCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
790
+ artifacts?: boolean | PageCountOutputTypeCountArtifactsArgs
791
+ }
792
+
793
+ /**
794
+ * PageCountOutputType without action
795
+ */
796
+ export type PageCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
797
+ /**
798
+ * Select specific fields to fetch from the PageCountOutputType
799
+ */
800
+ select?: Prisma.PageCountOutputTypeSelect<ExtArgs> | null
801
+ }
802
+
803
+ /**
804
+ * PageCountOutputType without action
805
+ */
806
+ export type PageCountOutputTypeCountArtifactsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
807
+ where?: Prisma.ArtifactWhereInput
808
+ }
809
+
810
+
811
+ export type PageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
812
+ id?: boolean
813
+ meta?: boolean
814
+ stateId?: boolean
815
+ name?: boolean
816
+ serviceAccountId?: boolean
817
+ content?: boolean
818
+ createdAt?: boolean
819
+ updatedAt?: boolean
820
+ state?: boolean | Prisma.Page$stateArgs<ExtArgs>
821
+ serviceAccount?: boolean | Prisma.Page$serviceAccountArgs<ExtArgs>
822
+ artifacts?: boolean | Prisma.Page$artifactsArgs<ExtArgs>
823
+ _count?: boolean | Prisma.PageCountOutputTypeDefaultArgs<ExtArgs>
824
+ }, ExtArgs["result"]["page"]>
825
+
826
+ export type PageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
827
+ id?: boolean
828
+ meta?: boolean
829
+ stateId?: boolean
830
+ name?: boolean
831
+ serviceAccountId?: boolean
832
+ content?: boolean
833
+ createdAt?: boolean
834
+ updatedAt?: boolean
835
+ state?: boolean | Prisma.Page$stateArgs<ExtArgs>
836
+ serviceAccount?: boolean | Prisma.Page$serviceAccountArgs<ExtArgs>
837
+ }, ExtArgs["result"]["page"]>
838
+
839
+ export type PageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
840
+ id?: boolean
841
+ meta?: boolean
842
+ stateId?: boolean
843
+ name?: boolean
844
+ serviceAccountId?: boolean
845
+ content?: boolean
846
+ createdAt?: boolean
847
+ updatedAt?: boolean
848
+ state?: boolean | Prisma.Page$stateArgs<ExtArgs>
849
+ serviceAccount?: boolean | Prisma.Page$serviceAccountArgs<ExtArgs>
850
+ }, ExtArgs["result"]["page"]>
851
+
852
+ export type PageSelectScalar = {
853
+ id?: boolean
854
+ meta?: boolean
855
+ stateId?: boolean
856
+ name?: boolean
857
+ serviceAccountId?: boolean
858
+ content?: boolean
859
+ createdAt?: boolean
860
+ updatedAt?: boolean
861
+ }
862
+
863
+ export type PageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "meta" | "stateId" | "name" | "serviceAccountId" | "content" | "createdAt" | "updatedAt", ExtArgs["result"]["page"]>
864
+ export type PageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
865
+ state?: boolean | Prisma.Page$stateArgs<ExtArgs>
866
+ serviceAccount?: boolean | Prisma.Page$serviceAccountArgs<ExtArgs>
867
+ artifacts?: boolean | Prisma.Page$artifactsArgs<ExtArgs>
868
+ _count?: boolean | Prisma.PageCountOutputTypeDefaultArgs<ExtArgs>
869
+ }
870
+ export type PageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
871
+ state?: boolean | Prisma.Page$stateArgs<ExtArgs>
872
+ serviceAccount?: boolean | Prisma.Page$serviceAccountArgs<ExtArgs>
873
+ }
874
+ export type PageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
875
+ state?: boolean | Prisma.Page$stateArgs<ExtArgs>
876
+ serviceAccount?: boolean | Prisma.Page$serviceAccountArgs<ExtArgs>
877
+ }
878
+
879
+ export type $PagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
880
+ name: "Page"
881
+ objects: {
882
+ /**
883
+ * The instance this page belongs to if any.
884
+ */
885
+ state: Prisma.$InstanceStatePayload<ExtArgs> | null
886
+ /**
887
+ * The service account this page belongs to if any.
888
+ */
889
+ serviceAccount: Prisma.$ServiceAccountPayload<ExtArgs> | null
890
+ /**
891
+ * The artifacts used by this page.
892
+ */
893
+ artifacts: Prisma.$ArtifactPayload<ExtArgs>[]
894
+ }
895
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
896
+ /**
897
+ * The CUIDv2 of the page.
898
+ */
899
+ id: string
900
+ /**
901
+ * The metadata of the page managed by the backend.
902
+ *
903
+ * [GlobalCommonObjectMeta]
904
+ */
905
+ meta: PrismaJson.GlobalCommonObjectMeta
906
+ /**
907
+ * The ID of the instance state that owns this page.
908
+ */
909
+ stateId: string | null
910
+ /**
911
+ * The name of the page within the instance.
912
+ * Will be null if the page is not owned by an instance.
913
+ */
914
+ name: string | null
915
+ /**
916
+ * The ID of the service account that owns this page.
917
+ */
918
+ serviceAccountId: string | null
919
+ /**
920
+ * The content of the page managed by the backend.
921
+ *
922
+ * [PageContent]
923
+ */
924
+ content: PrismaJson.PageContent
925
+ /**
926
+ * The time when the page was created.
927
+ */
928
+ createdAt: Date
929
+ /**
930
+ * The time when the page was last updated.
931
+ */
932
+ updatedAt: Date
933
+ }, ExtArgs["result"]["page"]>
934
+ composites: {}
935
+ }
936
+
937
+ export type PageGetPayload<S extends boolean | null | undefined | PageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PagePayload, S>
938
+
939
+ export type PageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
940
+ Omit<PageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
941
+ select?: PageCountAggregateInputType | true
942
+ }
943
+
944
+ export interface PageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
945
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Page'], meta: { name: 'Page' } }
946
+ /**
947
+ * Find zero or one Page that matches the filter.
948
+ * @param {PageFindUniqueArgs} args - Arguments to find a Page
949
+ * @example
950
+ * // Get one Page
951
+ * const page = await prisma.page.findUnique({
952
+ * where: {
953
+ * // ... provide filter here
954
+ * }
955
+ * })
956
+ */
957
+ findUnique<T extends PageFindUniqueArgs>(args: Prisma.SelectSubset<T, PageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
958
+
959
+ /**
960
+ * Find one Page that matches the filter or throw an error with `error.code='P2025'`
961
+ * if no matches were found.
962
+ * @param {PageFindUniqueOrThrowArgs} args - Arguments to find a Page
963
+ * @example
964
+ * // Get one Page
965
+ * const page = await prisma.page.findUniqueOrThrow({
966
+ * where: {
967
+ * // ... provide filter here
968
+ * }
969
+ * })
970
+ */
971
+ findUniqueOrThrow<T extends PageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
972
+
973
+ /**
974
+ * Find the first Page that matches the filter.
975
+ * Note, that providing `undefined` is treated as the value not being there.
976
+ * Read more here: https://pris.ly/d/null-undefined
977
+ * @param {PageFindFirstArgs} args - Arguments to find a Page
978
+ * @example
979
+ * // Get one Page
980
+ * const page = await prisma.page.findFirst({
981
+ * where: {
982
+ * // ... provide filter here
983
+ * }
984
+ * })
985
+ */
986
+ findFirst<T extends PageFindFirstArgs>(args?: Prisma.SelectSubset<T, PageFindFirstArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
987
+
988
+ /**
989
+ * Find the first Page that matches the filter or
990
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
991
+ * Note, that providing `undefined` is treated as the value not being there.
992
+ * Read more here: https://pris.ly/d/null-undefined
993
+ * @param {PageFindFirstOrThrowArgs} args - Arguments to find a Page
994
+ * @example
995
+ * // Get one Page
996
+ * const page = await prisma.page.findFirstOrThrow({
997
+ * where: {
998
+ * // ... provide filter here
999
+ * }
1000
+ * })
1001
+ */
1002
+ findFirstOrThrow<T extends PageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1003
+
1004
+ /**
1005
+ * Find zero or more Pages that matches the filter.
1006
+ * Note, that providing `undefined` is treated as the value not being there.
1007
+ * Read more here: https://pris.ly/d/null-undefined
1008
+ * @param {PageFindManyArgs} args - Arguments to filter and select certain fields only.
1009
+ * @example
1010
+ * // Get all Pages
1011
+ * const pages = await prisma.page.findMany()
1012
+ *
1013
+ * // Get first 10 Pages
1014
+ * const pages = await prisma.page.findMany({ take: 10 })
1015
+ *
1016
+ * // Only select the `id`
1017
+ * const pageWithIdOnly = await prisma.page.findMany({ select: { id: true } })
1018
+ *
1019
+ */
1020
+ findMany<T extends PageFindManyArgs>(args?: Prisma.SelectSubset<T, PageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1021
+
1022
+ /**
1023
+ * Create a Page.
1024
+ * @param {PageCreateArgs} args - Arguments to create a Page.
1025
+ * @example
1026
+ * // Create one Page
1027
+ * const Page = await prisma.page.create({
1028
+ * data: {
1029
+ * // ... data to create a Page
1030
+ * }
1031
+ * })
1032
+ *
1033
+ */
1034
+ create<T extends PageCreateArgs>(args: Prisma.SelectSubset<T, PageCreateArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1035
+
1036
+ /**
1037
+ * Create many Pages.
1038
+ * @param {PageCreateManyArgs} args - Arguments to create many Pages.
1039
+ * @example
1040
+ * // Create many Pages
1041
+ * const page = await prisma.page.createMany({
1042
+ * data: [
1043
+ * // ... provide data here
1044
+ * ]
1045
+ * })
1046
+ *
1047
+ */
1048
+ createMany<T extends PageCreateManyArgs>(args?: Prisma.SelectSubset<T, PageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1049
+
1050
+ /**
1051
+ * Create many Pages and returns the data saved in the database.
1052
+ * @param {PageCreateManyAndReturnArgs} args - Arguments to create many Pages.
1053
+ * @example
1054
+ * // Create many Pages
1055
+ * const page = await prisma.page.createManyAndReturn({
1056
+ * data: [
1057
+ * // ... provide data here
1058
+ * ]
1059
+ * })
1060
+ *
1061
+ * // Create many Pages and only return the `id`
1062
+ * const pageWithIdOnly = await prisma.page.createManyAndReturn({
1063
+ * select: { id: true },
1064
+ * data: [
1065
+ * // ... provide data here
1066
+ * ]
1067
+ * })
1068
+ * Note, that providing `undefined` is treated as the value not being there.
1069
+ * Read more here: https://pris.ly/d/null-undefined
1070
+ *
1071
+ */
1072
+ createManyAndReturn<T extends PageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1073
+
1074
+ /**
1075
+ * Delete a Page.
1076
+ * @param {PageDeleteArgs} args - Arguments to delete one Page.
1077
+ * @example
1078
+ * // Delete one Page
1079
+ * const Page = await prisma.page.delete({
1080
+ * where: {
1081
+ * // ... filter to delete one Page
1082
+ * }
1083
+ * })
1084
+ *
1085
+ */
1086
+ delete<T extends PageDeleteArgs>(args: Prisma.SelectSubset<T, PageDeleteArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1087
+
1088
+ /**
1089
+ * Update one Page.
1090
+ * @param {PageUpdateArgs} args - Arguments to update one Page.
1091
+ * @example
1092
+ * // Update one Page
1093
+ * const page = await prisma.page.update({
1094
+ * where: {
1095
+ * // ... provide filter here
1096
+ * },
1097
+ * data: {
1098
+ * // ... provide data here
1099
+ * }
1100
+ * })
1101
+ *
1102
+ */
1103
+ update<T extends PageUpdateArgs>(args: Prisma.SelectSubset<T, PageUpdateArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1104
+
1105
+ /**
1106
+ * Delete zero or more Pages.
1107
+ * @param {PageDeleteManyArgs} args - Arguments to filter Pages to delete.
1108
+ * @example
1109
+ * // Delete a few Pages
1110
+ * const { count } = await prisma.page.deleteMany({
1111
+ * where: {
1112
+ * // ... provide filter here
1113
+ * }
1114
+ * })
1115
+ *
1116
+ */
1117
+ deleteMany<T extends PageDeleteManyArgs>(args?: Prisma.SelectSubset<T, PageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1118
+
1119
+ /**
1120
+ * Update zero or more Pages.
1121
+ * Note, that providing `undefined` is treated as the value not being there.
1122
+ * Read more here: https://pris.ly/d/null-undefined
1123
+ * @param {PageUpdateManyArgs} args - Arguments to update one or more rows.
1124
+ * @example
1125
+ * // Update many Pages
1126
+ * const page = await prisma.page.updateMany({
1127
+ * where: {
1128
+ * // ... provide filter here
1129
+ * },
1130
+ * data: {
1131
+ * // ... provide data here
1132
+ * }
1133
+ * })
1134
+ *
1135
+ */
1136
+ updateMany<T extends PageUpdateManyArgs>(args: Prisma.SelectSubset<T, PageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1137
+
1138
+ /**
1139
+ * Update zero or more Pages and returns the data updated in the database.
1140
+ * @param {PageUpdateManyAndReturnArgs} args - Arguments to update many Pages.
1141
+ * @example
1142
+ * // Update many Pages
1143
+ * const page = await prisma.page.updateManyAndReturn({
1144
+ * where: {
1145
+ * // ... provide filter here
1146
+ * },
1147
+ * data: [
1148
+ * // ... provide data here
1149
+ * ]
1150
+ * })
1151
+ *
1152
+ * // Update zero or more Pages and only return the `id`
1153
+ * const pageWithIdOnly = await prisma.page.updateManyAndReturn({
1154
+ * select: { id: true },
1155
+ * where: {
1156
+ * // ... provide filter here
1157
+ * },
1158
+ * data: [
1159
+ * // ... provide data here
1160
+ * ]
1161
+ * })
1162
+ * Note, that providing `undefined` is treated as the value not being there.
1163
+ * Read more here: https://pris.ly/d/null-undefined
1164
+ *
1165
+ */
1166
+ updateManyAndReturn<T extends PageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1167
+
1168
+ /**
1169
+ * Create or update one Page.
1170
+ * @param {PageUpsertArgs} args - Arguments to update or create a Page.
1171
+ * @example
1172
+ * // Update or create a Page
1173
+ * const page = await prisma.page.upsert({
1174
+ * create: {
1175
+ * // ... data to create a Page
1176
+ * },
1177
+ * update: {
1178
+ * // ... in case it already exists, update
1179
+ * },
1180
+ * where: {
1181
+ * // ... the filter for the Page we want to update
1182
+ * }
1183
+ * })
1184
+ */
1185
+ upsert<T extends PageUpsertArgs>(args: Prisma.SelectSubset<T, PageUpsertArgs<ExtArgs>>): Prisma.Prisma__PageClient<runtime.Types.Result.GetResult<Prisma.$PagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1186
+
1187
+
1188
+ /**
1189
+ * Count the number of Pages.
1190
+ * Note, that providing `undefined` is treated as the value not being there.
1191
+ * Read more here: https://pris.ly/d/null-undefined
1192
+ * @param {PageCountArgs} args - Arguments to filter Pages to count.
1193
+ * @example
1194
+ * // Count the number of Pages
1195
+ * const count = await prisma.page.count({
1196
+ * where: {
1197
+ * // ... the filter for the Pages we want to count
1198
+ * }
1199
+ * })
1200
+ **/
1201
+ count<T extends PageCountArgs>(
1202
+ args?: Prisma.Subset<T, PageCountArgs>,
1203
+ ): Prisma.PrismaPromise<
1204
+ T extends runtime.Types.Utils.Record<'select', any>
1205
+ ? T['select'] extends true
1206
+ ? number
1207
+ : Prisma.GetScalarType<T['select'], PageCountAggregateOutputType>
1208
+ : number
1209
+ >
1210
+
1211
+ /**
1212
+ * Allows you to perform aggregations operations on a Page.
1213
+ * Note, that providing `undefined` is treated as the value not being there.
1214
+ * Read more here: https://pris.ly/d/null-undefined
1215
+ * @param {PageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1216
+ * @example
1217
+ * // Ordered by age ascending
1218
+ * // Where email contains prisma.io
1219
+ * // Limited to the 10 users
1220
+ * const aggregations = await prisma.user.aggregate({
1221
+ * _avg: {
1222
+ * age: true,
1223
+ * },
1224
+ * where: {
1225
+ * email: {
1226
+ * contains: "prisma.io",
1227
+ * },
1228
+ * },
1229
+ * orderBy: {
1230
+ * age: "asc",
1231
+ * },
1232
+ * take: 10,
1233
+ * })
1234
+ **/
1235
+ aggregate<T extends PageAggregateArgs>(args: Prisma.Subset<T, PageAggregateArgs>): Prisma.PrismaPromise<GetPageAggregateType<T>>
1236
+
1237
+ /**
1238
+ * Group by Page.
1239
+ * Note, that providing `undefined` is treated as the value not being there.
1240
+ * Read more here: https://pris.ly/d/null-undefined
1241
+ * @param {PageGroupByArgs} args - Group by arguments.
1242
+ * @example
1243
+ * // Group by city, order by createdAt, get count
1244
+ * const result = await prisma.user.groupBy({
1245
+ * by: ['city', 'createdAt'],
1246
+ * orderBy: {
1247
+ * createdAt: true
1248
+ * },
1249
+ * _count: {
1250
+ * _all: true
1251
+ * },
1252
+ * })
1253
+ *
1254
+ **/
1255
+ groupBy<
1256
+ T extends PageGroupByArgs,
1257
+ HasSelectOrTake extends Prisma.Or<
1258
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1259
+ Prisma.Extends<'take', Prisma.Keys<T>>
1260
+ >,
1261
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1262
+ ? { orderBy: PageGroupByArgs['orderBy'] }
1263
+ : { orderBy?: PageGroupByArgs['orderBy'] },
1264
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1265
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1266
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1267
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1268
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1269
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1270
+ InputErrors extends ByEmpty extends Prisma.True
1271
+ ? `Error: "by" must not be empty.`
1272
+ : HavingValid extends Prisma.False
1273
+ ? {
1274
+ [P in HavingFields]: P extends ByFields
1275
+ ? never
1276
+ : P extends string
1277
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1278
+ : [
1279
+ Error,
1280
+ 'Field ',
1281
+ P,
1282
+ ` in "having" needs to be provided in "by"`,
1283
+ ]
1284
+ }[HavingFields]
1285
+ : 'take' extends Prisma.Keys<T>
1286
+ ? 'orderBy' extends Prisma.Keys<T>
1287
+ ? ByValid extends Prisma.True
1288
+ ? {}
1289
+ : {
1290
+ [P in OrderFields]: P extends ByFields
1291
+ ? never
1292
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1293
+ }[OrderFields]
1294
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1295
+ : 'skip' extends Prisma.Keys<T>
1296
+ ? 'orderBy' extends Prisma.Keys<T>
1297
+ ? ByValid extends Prisma.True
1298
+ ? {}
1299
+ : {
1300
+ [P in OrderFields]: P extends ByFields
1301
+ ? never
1302
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1303
+ }[OrderFields]
1304
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1305
+ : ByValid extends Prisma.True
1306
+ ? {}
1307
+ : {
1308
+ [P in OrderFields]: P extends ByFields
1309
+ ? never
1310
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1311
+ }[OrderFields]
1312
+ >(args: Prisma.SubsetIntersection<T, PageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1313
+ /**
1314
+ * Fields of the Page model
1315
+ */
1316
+ readonly fields: PageFieldRefs;
1317
+ }
1318
+
1319
+ /**
1320
+ * The delegate class that acts as a "Promise-like" for Page.
1321
+ * Why is this prefixed with `Prisma__`?
1322
+ * Because we want to prevent naming conflicts as mentioned in
1323
+ * https://github.com/prisma/prisma-client-js/issues/707
1324
+ */
1325
+ export interface Prisma__PageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1326
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1327
+ state<T extends Prisma.Page$stateArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Page$stateArgs<ExtArgs>>): Prisma.Prisma__InstanceStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1328
+ serviceAccount<T extends Prisma.Page$serviceAccountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Page$serviceAccountArgs<ExtArgs>>): Prisma.Prisma__ServiceAccountClient<runtime.Types.Result.GetResult<Prisma.$ServiceAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1329
+ artifacts<T extends Prisma.Page$artifactsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Page$artifactsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArtifactPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1330
+ /**
1331
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1332
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1333
+ * @param onrejected The callback to execute when the Promise is rejected.
1334
+ * @returns A Promise for the completion of which ever callback is executed.
1335
+ */
1336
+ 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>
1337
+ /**
1338
+ * Attaches a callback for only the rejection of the Promise.
1339
+ * @param onrejected The callback to execute when the Promise is rejected.
1340
+ * @returns A Promise for the completion of the callback.
1341
+ */
1342
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1343
+ /**
1344
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1345
+ * resolved value cannot be modified from the callback.
1346
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1347
+ * @returns A Promise for the completion of the callback.
1348
+ */
1349
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1350
+ }
1351
+
1352
+
1353
+
1354
+
1355
+ /**
1356
+ * Fields of the Page model
1357
+ */
1358
+ export interface PageFieldRefs {
1359
+ readonly id: Prisma.FieldRef<"Page", 'String'>
1360
+ readonly meta: Prisma.FieldRef<"Page", 'Json'>
1361
+ readonly stateId: Prisma.FieldRef<"Page", 'String'>
1362
+ readonly name: Prisma.FieldRef<"Page", 'String'>
1363
+ readonly serviceAccountId: Prisma.FieldRef<"Page", 'String'>
1364
+ readonly content: Prisma.FieldRef<"Page", 'Json'>
1365
+ readonly createdAt: Prisma.FieldRef<"Page", 'DateTime'>
1366
+ readonly updatedAt: Prisma.FieldRef<"Page", 'DateTime'>
1367
+ }
1368
+
1369
+
1370
+ // Custom InputTypes
1371
+ /**
1372
+ * Page findUnique
1373
+ */
1374
+ export type PageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1375
+ /**
1376
+ * Select specific fields to fetch from the Page
1377
+ */
1378
+ select?: Prisma.PageSelect<ExtArgs> | null
1379
+ /**
1380
+ * Omit specific fields from the Page
1381
+ */
1382
+ omit?: Prisma.PageOmit<ExtArgs> | null
1383
+ /**
1384
+ * Choose, which related nodes to fetch as well
1385
+ */
1386
+ include?: Prisma.PageInclude<ExtArgs> | null
1387
+ /**
1388
+ * Filter, which Page to fetch.
1389
+ */
1390
+ where: Prisma.PageWhereUniqueInput
1391
+ }
1392
+
1393
+ /**
1394
+ * Page findUniqueOrThrow
1395
+ */
1396
+ export type PageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
+ /**
1398
+ * Select specific fields to fetch from the Page
1399
+ */
1400
+ select?: Prisma.PageSelect<ExtArgs> | null
1401
+ /**
1402
+ * Omit specific fields from the Page
1403
+ */
1404
+ omit?: Prisma.PageOmit<ExtArgs> | null
1405
+ /**
1406
+ * Choose, which related nodes to fetch as well
1407
+ */
1408
+ include?: Prisma.PageInclude<ExtArgs> | null
1409
+ /**
1410
+ * Filter, which Page to fetch.
1411
+ */
1412
+ where: Prisma.PageWhereUniqueInput
1413
+ }
1414
+
1415
+ /**
1416
+ * Page findFirst
1417
+ */
1418
+ export type PageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ /**
1420
+ * Select specific fields to fetch from the Page
1421
+ */
1422
+ select?: Prisma.PageSelect<ExtArgs> | null
1423
+ /**
1424
+ * Omit specific fields from the Page
1425
+ */
1426
+ omit?: Prisma.PageOmit<ExtArgs> | null
1427
+ /**
1428
+ * Choose, which related nodes to fetch as well
1429
+ */
1430
+ include?: Prisma.PageInclude<ExtArgs> | null
1431
+ /**
1432
+ * Filter, which Page to fetch.
1433
+ */
1434
+ where?: Prisma.PageWhereInput
1435
+ /**
1436
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1437
+ *
1438
+ * Determine the order of Pages to fetch.
1439
+ */
1440
+ orderBy?: Prisma.PageOrderByWithRelationInput | Prisma.PageOrderByWithRelationInput[]
1441
+ /**
1442
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1443
+ *
1444
+ * Sets the position for searching for Pages.
1445
+ */
1446
+ cursor?: Prisma.PageWhereUniqueInput
1447
+ /**
1448
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1449
+ *
1450
+ * Take `±n` Pages from the position of the cursor.
1451
+ */
1452
+ take?: number
1453
+ /**
1454
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1455
+ *
1456
+ * Skip the first `n` Pages.
1457
+ */
1458
+ skip?: number
1459
+ /**
1460
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1461
+ *
1462
+ * Filter by unique combinations of Pages.
1463
+ */
1464
+ distinct?: Prisma.PageScalarFieldEnum | Prisma.PageScalarFieldEnum[]
1465
+ }
1466
+
1467
+ /**
1468
+ * Page findFirstOrThrow
1469
+ */
1470
+ export type PageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1471
+ /**
1472
+ * Select specific fields to fetch from the Page
1473
+ */
1474
+ select?: Prisma.PageSelect<ExtArgs> | null
1475
+ /**
1476
+ * Omit specific fields from the Page
1477
+ */
1478
+ omit?: Prisma.PageOmit<ExtArgs> | null
1479
+ /**
1480
+ * Choose, which related nodes to fetch as well
1481
+ */
1482
+ include?: Prisma.PageInclude<ExtArgs> | null
1483
+ /**
1484
+ * Filter, which Page to fetch.
1485
+ */
1486
+ where?: Prisma.PageWhereInput
1487
+ /**
1488
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1489
+ *
1490
+ * Determine the order of Pages to fetch.
1491
+ */
1492
+ orderBy?: Prisma.PageOrderByWithRelationInput | Prisma.PageOrderByWithRelationInput[]
1493
+ /**
1494
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1495
+ *
1496
+ * Sets the position for searching for Pages.
1497
+ */
1498
+ cursor?: Prisma.PageWhereUniqueInput
1499
+ /**
1500
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1501
+ *
1502
+ * Take `±n` Pages from the position of the cursor.
1503
+ */
1504
+ take?: number
1505
+ /**
1506
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1507
+ *
1508
+ * Skip the first `n` Pages.
1509
+ */
1510
+ skip?: number
1511
+ /**
1512
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1513
+ *
1514
+ * Filter by unique combinations of Pages.
1515
+ */
1516
+ distinct?: Prisma.PageScalarFieldEnum | Prisma.PageScalarFieldEnum[]
1517
+ }
1518
+
1519
+ /**
1520
+ * Page findMany
1521
+ */
1522
+ export type PageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * Select specific fields to fetch from the Page
1525
+ */
1526
+ select?: Prisma.PageSelect<ExtArgs> | null
1527
+ /**
1528
+ * Omit specific fields from the Page
1529
+ */
1530
+ omit?: Prisma.PageOmit<ExtArgs> | null
1531
+ /**
1532
+ * Choose, which related nodes to fetch as well
1533
+ */
1534
+ include?: Prisma.PageInclude<ExtArgs> | null
1535
+ /**
1536
+ * Filter, which Pages to fetch.
1537
+ */
1538
+ where?: Prisma.PageWhereInput
1539
+ /**
1540
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1541
+ *
1542
+ * Determine the order of Pages to fetch.
1543
+ */
1544
+ orderBy?: Prisma.PageOrderByWithRelationInput | Prisma.PageOrderByWithRelationInput[]
1545
+ /**
1546
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1547
+ *
1548
+ * Sets the position for listing Pages.
1549
+ */
1550
+ cursor?: Prisma.PageWhereUniqueInput
1551
+ /**
1552
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1553
+ *
1554
+ * Take `±n` Pages from the position of the cursor.
1555
+ */
1556
+ take?: number
1557
+ /**
1558
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1559
+ *
1560
+ * Skip the first `n` Pages.
1561
+ */
1562
+ skip?: number
1563
+ distinct?: Prisma.PageScalarFieldEnum | Prisma.PageScalarFieldEnum[]
1564
+ }
1565
+
1566
+ /**
1567
+ * Page create
1568
+ */
1569
+ export type PageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1570
+ /**
1571
+ * Select specific fields to fetch from the Page
1572
+ */
1573
+ select?: Prisma.PageSelect<ExtArgs> | null
1574
+ /**
1575
+ * Omit specific fields from the Page
1576
+ */
1577
+ omit?: Prisma.PageOmit<ExtArgs> | null
1578
+ /**
1579
+ * Choose, which related nodes to fetch as well
1580
+ */
1581
+ include?: Prisma.PageInclude<ExtArgs> | null
1582
+ /**
1583
+ * The data needed to create a Page.
1584
+ */
1585
+ data: Prisma.XOR<Prisma.PageCreateInput, Prisma.PageUncheckedCreateInput>
1586
+ }
1587
+
1588
+ /**
1589
+ * Page createMany
1590
+ */
1591
+ export type PageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1592
+ /**
1593
+ * The data used to create many Pages.
1594
+ */
1595
+ data: Prisma.PageCreateManyInput | Prisma.PageCreateManyInput[]
1596
+ }
1597
+
1598
+ /**
1599
+ * Page createManyAndReturn
1600
+ */
1601
+ export type PageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * Select specific fields to fetch from the Page
1604
+ */
1605
+ select?: Prisma.PageSelectCreateManyAndReturn<ExtArgs> | null
1606
+ /**
1607
+ * Omit specific fields from the Page
1608
+ */
1609
+ omit?: Prisma.PageOmit<ExtArgs> | null
1610
+ /**
1611
+ * The data used to create many Pages.
1612
+ */
1613
+ data: Prisma.PageCreateManyInput | Prisma.PageCreateManyInput[]
1614
+ /**
1615
+ * Choose, which related nodes to fetch as well
1616
+ */
1617
+ include?: Prisma.PageIncludeCreateManyAndReturn<ExtArgs> | null
1618
+ }
1619
+
1620
+ /**
1621
+ * Page update
1622
+ */
1623
+ export type PageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1624
+ /**
1625
+ * Select specific fields to fetch from the Page
1626
+ */
1627
+ select?: Prisma.PageSelect<ExtArgs> | null
1628
+ /**
1629
+ * Omit specific fields from the Page
1630
+ */
1631
+ omit?: Prisma.PageOmit<ExtArgs> | null
1632
+ /**
1633
+ * Choose, which related nodes to fetch as well
1634
+ */
1635
+ include?: Prisma.PageInclude<ExtArgs> | null
1636
+ /**
1637
+ * The data needed to update a Page.
1638
+ */
1639
+ data: Prisma.XOR<Prisma.PageUpdateInput, Prisma.PageUncheckedUpdateInput>
1640
+ /**
1641
+ * Choose, which Page to update.
1642
+ */
1643
+ where: Prisma.PageWhereUniqueInput
1644
+ }
1645
+
1646
+ /**
1647
+ * Page updateMany
1648
+ */
1649
+ export type PageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1650
+ /**
1651
+ * The data used to update Pages.
1652
+ */
1653
+ data: Prisma.XOR<Prisma.PageUpdateManyMutationInput, Prisma.PageUncheckedUpdateManyInput>
1654
+ /**
1655
+ * Filter which Pages to update
1656
+ */
1657
+ where?: Prisma.PageWhereInput
1658
+ /**
1659
+ * Limit how many Pages to update.
1660
+ */
1661
+ limit?: number
1662
+ }
1663
+
1664
+ /**
1665
+ * Page updateManyAndReturn
1666
+ */
1667
+ export type PageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1668
+ /**
1669
+ * Select specific fields to fetch from the Page
1670
+ */
1671
+ select?: Prisma.PageSelectUpdateManyAndReturn<ExtArgs> | null
1672
+ /**
1673
+ * Omit specific fields from the Page
1674
+ */
1675
+ omit?: Prisma.PageOmit<ExtArgs> | null
1676
+ /**
1677
+ * The data used to update Pages.
1678
+ */
1679
+ data: Prisma.XOR<Prisma.PageUpdateManyMutationInput, Prisma.PageUncheckedUpdateManyInput>
1680
+ /**
1681
+ * Filter which Pages to update
1682
+ */
1683
+ where?: Prisma.PageWhereInput
1684
+ /**
1685
+ * Limit how many Pages to update.
1686
+ */
1687
+ limit?: number
1688
+ /**
1689
+ * Choose, which related nodes to fetch as well
1690
+ */
1691
+ include?: Prisma.PageIncludeUpdateManyAndReturn<ExtArgs> | null
1692
+ }
1693
+
1694
+ /**
1695
+ * Page upsert
1696
+ */
1697
+ export type PageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1698
+ /**
1699
+ * Select specific fields to fetch from the Page
1700
+ */
1701
+ select?: Prisma.PageSelect<ExtArgs> | null
1702
+ /**
1703
+ * Omit specific fields from the Page
1704
+ */
1705
+ omit?: Prisma.PageOmit<ExtArgs> | null
1706
+ /**
1707
+ * Choose, which related nodes to fetch as well
1708
+ */
1709
+ include?: Prisma.PageInclude<ExtArgs> | null
1710
+ /**
1711
+ * The filter to search for the Page to update in case it exists.
1712
+ */
1713
+ where: Prisma.PageWhereUniqueInput
1714
+ /**
1715
+ * In case the Page found by the `where` argument doesn't exist, create a new Page with this data.
1716
+ */
1717
+ create: Prisma.XOR<Prisma.PageCreateInput, Prisma.PageUncheckedCreateInput>
1718
+ /**
1719
+ * In case the Page was found with the provided `where` argument, update it with this data.
1720
+ */
1721
+ update: Prisma.XOR<Prisma.PageUpdateInput, Prisma.PageUncheckedUpdateInput>
1722
+ }
1723
+
1724
+ /**
1725
+ * Page delete
1726
+ */
1727
+ export type PageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1728
+ /**
1729
+ * Select specific fields to fetch from the Page
1730
+ */
1731
+ select?: Prisma.PageSelect<ExtArgs> | null
1732
+ /**
1733
+ * Omit specific fields from the Page
1734
+ */
1735
+ omit?: Prisma.PageOmit<ExtArgs> | null
1736
+ /**
1737
+ * Choose, which related nodes to fetch as well
1738
+ */
1739
+ include?: Prisma.PageInclude<ExtArgs> | null
1740
+ /**
1741
+ * Filter which Page to delete.
1742
+ */
1743
+ where: Prisma.PageWhereUniqueInput
1744
+ }
1745
+
1746
+ /**
1747
+ * Page deleteMany
1748
+ */
1749
+ export type PageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1750
+ /**
1751
+ * Filter which Pages to delete
1752
+ */
1753
+ where?: Prisma.PageWhereInput
1754
+ /**
1755
+ * Limit how many Pages to delete.
1756
+ */
1757
+ limit?: number
1758
+ }
1759
+
1760
+ /**
1761
+ * Page.state
1762
+ */
1763
+ export type Page$stateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1764
+ /**
1765
+ * Select specific fields to fetch from the InstanceState
1766
+ */
1767
+ select?: Prisma.InstanceStateSelect<ExtArgs> | null
1768
+ /**
1769
+ * Omit specific fields from the InstanceState
1770
+ */
1771
+ omit?: Prisma.InstanceStateOmit<ExtArgs> | null
1772
+ /**
1773
+ * Choose, which related nodes to fetch as well
1774
+ */
1775
+ include?: Prisma.InstanceStateInclude<ExtArgs> | null
1776
+ where?: Prisma.InstanceStateWhereInput
1777
+ }
1778
+
1779
+ /**
1780
+ * Page.serviceAccount
1781
+ */
1782
+ export type Page$serviceAccountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1783
+ /**
1784
+ * Select specific fields to fetch from the ServiceAccount
1785
+ */
1786
+ select?: Prisma.ServiceAccountSelect<ExtArgs> | null
1787
+ /**
1788
+ * Omit specific fields from the ServiceAccount
1789
+ */
1790
+ omit?: Prisma.ServiceAccountOmit<ExtArgs> | null
1791
+ /**
1792
+ * Choose, which related nodes to fetch as well
1793
+ */
1794
+ include?: Prisma.ServiceAccountInclude<ExtArgs> | null
1795
+ where?: Prisma.ServiceAccountWhereInput
1796
+ }
1797
+
1798
+ /**
1799
+ * Page.artifacts
1800
+ */
1801
+ export type Page$artifactsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1802
+ /**
1803
+ * Select specific fields to fetch from the Artifact
1804
+ */
1805
+ select?: Prisma.ArtifactSelect<ExtArgs> | null
1806
+ /**
1807
+ * Omit specific fields from the Artifact
1808
+ */
1809
+ omit?: Prisma.ArtifactOmit<ExtArgs> | null
1810
+ /**
1811
+ * Choose, which related nodes to fetch as well
1812
+ */
1813
+ include?: Prisma.ArtifactInclude<ExtArgs> | null
1814
+ where?: Prisma.ArtifactWhereInput
1815
+ orderBy?: Prisma.ArtifactOrderByWithRelationInput | Prisma.ArtifactOrderByWithRelationInput[]
1816
+ cursor?: Prisma.ArtifactWhereUniqueInput
1817
+ take?: number
1818
+ skip?: number
1819
+ distinct?: Prisma.ArtifactScalarFieldEnum | Prisma.ArtifactScalarFieldEnum[]
1820
+ }
1821
+
1822
+ /**
1823
+ * Page without action
1824
+ */
1825
+ export type PageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1826
+ /**
1827
+ * Select specific fields to fetch from the Page
1828
+ */
1829
+ select?: Prisma.PageSelect<ExtArgs> | null
1830
+ /**
1831
+ * Omit specific fields from the Page
1832
+ */
1833
+ omit?: Prisma.PageOmit<ExtArgs> | null
1834
+ /**
1835
+ * Choose, which related nodes to fetch as well
1836
+ */
1837
+ include?: Prisma.PageInclude<ExtArgs> | null
1838
+ }