@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,1280 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `TerminalSessionLog` 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 TerminalSessionLog
18
+ *
19
+ */
20
+ export type TerminalSessionLogModel = runtime.Types.Result.DefaultSelection<Prisma.$TerminalSessionLogPayload>
21
+
22
+ export type AggregateTerminalSessionLog = {
23
+ _count: TerminalSessionLogCountAggregateOutputType | null
24
+ _min: TerminalSessionLogMinAggregateOutputType | null
25
+ _max: TerminalSessionLogMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type TerminalSessionLogMinAggregateOutputType = {
29
+ id: string | null
30
+ sessionId: string | null
31
+ content: string | null
32
+ }
33
+
34
+ export type TerminalSessionLogMaxAggregateOutputType = {
35
+ id: string | null
36
+ sessionId: string | null
37
+ content: string | null
38
+ }
39
+
40
+ export type TerminalSessionLogCountAggregateOutputType = {
41
+ id: number
42
+ sessionId: number
43
+ content: number
44
+ _all: number
45
+ }
46
+
47
+
48
+ export type TerminalSessionLogMinAggregateInputType = {
49
+ id?: true
50
+ sessionId?: true
51
+ content?: true
52
+ }
53
+
54
+ export type TerminalSessionLogMaxAggregateInputType = {
55
+ id?: true
56
+ sessionId?: true
57
+ content?: true
58
+ }
59
+
60
+ export type TerminalSessionLogCountAggregateInputType = {
61
+ id?: true
62
+ sessionId?: true
63
+ content?: true
64
+ _all?: true
65
+ }
66
+
67
+ export type TerminalSessionLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
68
+ /**
69
+ * Filter which TerminalSessionLog to aggregate.
70
+ */
71
+ where?: Prisma.TerminalSessionLogWhereInput
72
+ /**
73
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
74
+ *
75
+ * Determine the order of TerminalSessionLogs to fetch.
76
+ */
77
+ orderBy?: Prisma.TerminalSessionLogOrderByWithRelationInput | Prisma.TerminalSessionLogOrderByWithRelationInput[]
78
+ /**
79
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
80
+ *
81
+ * Sets the start position
82
+ */
83
+ cursor?: Prisma.TerminalSessionLogWhereUniqueInput
84
+ /**
85
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
86
+ *
87
+ * Take `±n` TerminalSessionLogs from the position of the cursor.
88
+ */
89
+ take?: number
90
+ /**
91
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
92
+ *
93
+ * Skip the first `n` TerminalSessionLogs.
94
+ */
95
+ skip?: number
96
+ /**
97
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
98
+ *
99
+ * Count returned TerminalSessionLogs
100
+ **/
101
+ _count?: true | TerminalSessionLogCountAggregateInputType
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
104
+ *
105
+ * Select which fields to find the minimum value
106
+ **/
107
+ _min?: TerminalSessionLogMinAggregateInputType
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
110
+ *
111
+ * Select which fields to find the maximum value
112
+ **/
113
+ _max?: TerminalSessionLogMaxAggregateInputType
114
+ }
115
+
116
+ export type GetTerminalSessionLogAggregateType<T extends TerminalSessionLogAggregateArgs> = {
117
+ [P in keyof T & keyof AggregateTerminalSessionLog]: P extends '_count' | 'count'
118
+ ? T[P] extends true
119
+ ? number
120
+ : Prisma.GetScalarType<T[P], AggregateTerminalSessionLog[P]>
121
+ : Prisma.GetScalarType<T[P], AggregateTerminalSessionLog[P]>
122
+ }
123
+
124
+
125
+
126
+
127
+ export type TerminalSessionLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
128
+ where?: Prisma.TerminalSessionLogWhereInput
129
+ orderBy?: Prisma.TerminalSessionLogOrderByWithAggregationInput | Prisma.TerminalSessionLogOrderByWithAggregationInput[]
130
+ by: Prisma.TerminalSessionLogScalarFieldEnum[] | Prisma.TerminalSessionLogScalarFieldEnum
131
+ having?: Prisma.TerminalSessionLogScalarWhereWithAggregatesInput
132
+ take?: number
133
+ skip?: number
134
+ _count?: TerminalSessionLogCountAggregateInputType | true
135
+ _min?: TerminalSessionLogMinAggregateInputType
136
+ _max?: TerminalSessionLogMaxAggregateInputType
137
+ }
138
+
139
+ export type TerminalSessionLogGroupByOutputType = {
140
+ id: string
141
+ sessionId: string
142
+ content: string
143
+ _count: TerminalSessionLogCountAggregateOutputType | null
144
+ _min: TerminalSessionLogMinAggregateOutputType | null
145
+ _max: TerminalSessionLogMaxAggregateOutputType | null
146
+ }
147
+
148
+ type GetTerminalSessionLogGroupByPayload<T extends TerminalSessionLogGroupByArgs> = Prisma.PrismaPromise<
149
+ Array<
150
+ Prisma.PickEnumerable<TerminalSessionLogGroupByOutputType, T['by']> &
151
+ {
152
+ [P in ((keyof T) & (keyof TerminalSessionLogGroupByOutputType))]: P extends '_count'
153
+ ? T[P] extends boolean
154
+ ? number
155
+ : Prisma.GetScalarType<T[P], TerminalSessionLogGroupByOutputType[P]>
156
+ : Prisma.GetScalarType<T[P], TerminalSessionLogGroupByOutputType[P]>
157
+ }
158
+ >
159
+ >
160
+
161
+
162
+
163
+ export type TerminalSessionLogWhereInput = {
164
+ AND?: Prisma.TerminalSessionLogWhereInput | Prisma.TerminalSessionLogWhereInput[]
165
+ OR?: Prisma.TerminalSessionLogWhereInput[]
166
+ NOT?: Prisma.TerminalSessionLogWhereInput | Prisma.TerminalSessionLogWhereInput[]
167
+ id?: Prisma.StringFilter<"TerminalSessionLog"> | string
168
+ sessionId?: Prisma.StringFilter<"TerminalSessionLog"> | string
169
+ content?: Prisma.StringFilter<"TerminalSessionLog"> | string
170
+ session?: Prisma.XOR<Prisma.TerminalSessionScalarRelationFilter, Prisma.TerminalSessionWhereInput>
171
+ }
172
+
173
+ export type TerminalSessionLogOrderByWithRelationInput = {
174
+ id?: Prisma.SortOrder
175
+ sessionId?: Prisma.SortOrder
176
+ content?: Prisma.SortOrder
177
+ session?: Prisma.TerminalSessionOrderByWithRelationInput
178
+ }
179
+
180
+ export type TerminalSessionLogWhereUniqueInput = Prisma.AtLeast<{
181
+ id?: string
182
+ AND?: Prisma.TerminalSessionLogWhereInput | Prisma.TerminalSessionLogWhereInput[]
183
+ OR?: Prisma.TerminalSessionLogWhereInput[]
184
+ NOT?: Prisma.TerminalSessionLogWhereInput | Prisma.TerminalSessionLogWhereInput[]
185
+ sessionId?: Prisma.StringFilter<"TerminalSessionLog"> | string
186
+ content?: Prisma.StringFilter<"TerminalSessionLog"> | string
187
+ session?: Prisma.XOR<Prisma.TerminalSessionScalarRelationFilter, Prisma.TerminalSessionWhereInput>
188
+ }, "id">
189
+
190
+ export type TerminalSessionLogOrderByWithAggregationInput = {
191
+ id?: Prisma.SortOrder
192
+ sessionId?: Prisma.SortOrder
193
+ content?: Prisma.SortOrder
194
+ _count?: Prisma.TerminalSessionLogCountOrderByAggregateInput
195
+ _max?: Prisma.TerminalSessionLogMaxOrderByAggregateInput
196
+ _min?: Prisma.TerminalSessionLogMinOrderByAggregateInput
197
+ }
198
+
199
+ export type TerminalSessionLogScalarWhereWithAggregatesInput = {
200
+ AND?: Prisma.TerminalSessionLogScalarWhereWithAggregatesInput | Prisma.TerminalSessionLogScalarWhereWithAggregatesInput[]
201
+ OR?: Prisma.TerminalSessionLogScalarWhereWithAggregatesInput[]
202
+ NOT?: Prisma.TerminalSessionLogScalarWhereWithAggregatesInput | Prisma.TerminalSessionLogScalarWhereWithAggregatesInput[]
203
+ id?: Prisma.StringWithAggregatesFilter<"TerminalSessionLog"> | string
204
+ sessionId?: Prisma.StringWithAggregatesFilter<"TerminalSessionLog"> | string
205
+ content?: Prisma.StringWithAggregatesFilter<"TerminalSessionLog"> | string
206
+ }
207
+
208
+ export type TerminalSessionLogCreateInput = {
209
+ id: string
210
+ content: string
211
+ session: Prisma.TerminalSessionCreateNestedOneWithoutLogsInput
212
+ }
213
+
214
+ export type TerminalSessionLogUncheckedCreateInput = {
215
+ id: string
216
+ sessionId: string
217
+ content: string
218
+ }
219
+
220
+ export type TerminalSessionLogUpdateInput = {
221
+ id?: Prisma.StringFieldUpdateOperationsInput | string
222
+ content?: Prisma.StringFieldUpdateOperationsInput | string
223
+ session?: Prisma.TerminalSessionUpdateOneRequiredWithoutLogsNestedInput
224
+ }
225
+
226
+ export type TerminalSessionLogUncheckedUpdateInput = {
227
+ id?: Prisma.StringFieldUpdateOperationsInput | string
228
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string
229
+ content?: Prisma.StringFieldUpdateOperationsInput | string
230
+ }
231
+
232
+ export type TerminalSessionLogCreateManyInput = {
233
+ id: string
234
+ sessionId: string
235
+ content: string
236
+ }
237
+
238
+ export type TerminalSessionLogUpdateManyMutationInput = {
239
+ id?: Prisma.StringFieldUpdateOperationsInput | string
240
+ content?: Prisma.StringFieldUpdateOperationsInput | string
241
+ }
242
+
243
+ export type TerminalSessionLogUncheckedUpdateManyInput = {
244
+ id?: Prisma.StringFieldUpdateOperationsInput | string
245
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string
246
+ content?: Prisma.StringFieldUpdateOperationsInput | string
247
+ }
248
+
249
+ export type TerminalSessionLogListRelationFilter = {
250
+ every?: Prisma.TerminalSessionLogWhereInput
251
+ some?: Prisma.TerminalSessionLogWhereInput
252
+ none?: Prisma.TerminalSessionLogWhereInput
253
+ }
254
+
255
+ export type TerminalSessionLogOrderByRelationAggregateInput = {
256
+ _count?: Prisma.SortOrder
257
+ }
258
+
259
+ export type TerminalSessionLogCountOrderByAggregateInput = {
260
+ id?: Prisma.SortOrder
261
+ sessionId?: Prisma.SortOrder
262
+ content?: Prisma.SortOrder
263
+ }
264
+
265
+ export type TerminalSessionLogMaxOrderByAggregateInput = {
266
+ id?: Prisma.SortOrder
267
+ sessionId?: Prisma.SortOrder
268
+ content?: Prisma.SortOrder
269
+ }
270
+
271
+ export type TerminalSessionLogMinOrderByAggregateInput = {
272
+ id?: Prisma.SortOrder
273
+ sessionId?: Prisma.SortOrder
274
+ content?: Prisma.SortOrder
275
+ }
276
+
277
+ export type TerminalSessionLogCreateNestedManyWithoutSessionInput = {
278
+ create?: Prisma.XOR<Prisma.TerminalSessionLogCreateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput> | Prisma.TerminalSessionLogCreateWithoutSessionInput[] | Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput[]
279
+ connectOrCreate?: Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput | Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput[]
280
+ createMany?: Prisma.TerminalSessionLogCreateManySessionInputEnvelope
281
+ connect?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
282
+ }
283
+
284
+ export type TerminalSessionLogUncheckedCreateNestedManyWithoutSessionInput = {
285
+ create?: Prisma.XOR<Prisma.TerminalSessionLogCreateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput> | Prisma.TerminalSessionLogCreateWithoutSessionInput[] | Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput[]
286
+ connectOrCreate?: Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput | Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput[]
287
+ createMany?: Prisma.TerminalSessionLogCreateManySessionInputEnvelope
288
+ connect?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
289
+ }
290
+
291
+ export type TerminalSessionLogUpdateManyWithoutSessionNestedInput = {
292
+ create?: Prisma.XOR<Prisma.TerminalSessionLogCreateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput> | Prisma.TerminalSessionLogCreateWithoutSessionInput[] | Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput[]
293
+ connectOrCreate?: Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput | Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput[]
294
+ upsert?: Prisma.TerminalSessionLogUpsertWithWhereUniqueWithoutSessionInput | Prisma.TerminalSessionLogUpsertWithWhereUniqueWithoutSessionInput[]
295
+ createMany?: Prisma.TerminalSessionLogCreateManySessionInputEnvelope
296
+ set?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
297
+ disconnect?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
298
+ delete?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
299
+ connect?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
300
+ update?: Prisma.TerminalSessionLogUpdateWithWhereUniqueWithoutSessionInput | Prisma.TerminalSessionLogUpdateWithWhereUniqueWithoutSessionInput[]
301
+ updateMany?: Prisma.TerminalSessionLogUpdateManyWithWhereWithoutSessionInput | Prisma.TerminalSessionLogUpdateManyWithWhereWithoutSessionInput[]
302
+ deleteMany?: Prisma.TerminalSessionLogScalarWhereInput | Prisma.TerminalSessionLogScalarWhereInput[]
303
+ }
304
+
305
+ export type TerminalSessionLogUncheckedUpdateManyWithoutSessionNestedInput = {
306
+ create?: Prisma.XOR<Prisma.TerminalSessionLogCreateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput> | Prisma.TerminalSessionLogCreateWithoutSessionInput[] | Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput[]
307
+ connectOrCreate?: Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput | Prisma.TerminalSessionLogCreateOrConnectWithoutSessionInput[]
308
+ upsert?: Prisma.TerminalSessionLogUpsertWithWhereUniqueWithoutSessionInput | Prisma.TerminalSessionLogUpsertWithWhereUniqueWithoutSessionInput[]
309
+ createMany?: Prisma.TerminalSessionLogCreateManySessionInputEnvelope
310
+ set?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
311
+ disconnect?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
312
+ delete?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
313
+ connect?: Prisma.TerminalSessionLogWhereUniqueInput | Prisma.TerminalSessionLogWhereUniqueInput[]
314
+ update?: Prisma.TerminalSessionLogUpdateWithWhereUniqueWithoutSessionInput | Prisma.TerminalSessionLogUpdateWithWhereUniqueWithoutSessionInput[]
315
+ updateMany?: Prisma.TerminalSessionLogUpdateManyWithWhereWithoutSessionInput | Prisma.TerminalSessionLogUpdateManyWithWhereWithoutSessionInput[]
316
+ deleteMany?: Prisma.TerminalSessionLogScalarWhereInput | Prisma.TerminalSessionLogScalarWhereInput[]
317
+ }
318
+
319
+ export type TerminalSessionLogCreateWithoutSessionInput = {
320
+ id: string
321
+ content: string
322
+ }
323
+
324
+ export type TerminalSessionLogUncheckedCreateWithoutSessionInput = {
325
+ id: string
326
+ content: string
327
+ }
328
+
329
+ export type TerminalSessionLogCreateOrConnectWithoutSessionInput = {
330
+ where: Prisma.TerminalSessionLogWhereUniqueInput
331
+ create: Prisma.XOR<Prisma.TerminalSessionLogCreateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput>
332
+ }
333
+
334
+ export type TerminalSessionLogCreateManySessionInputEnvelope = {
335
+ data: Prisma.TerminalSessionLogCreateManySessionInput | Prisma.TerminalSessionLogCreateManySessionInput[]
336
+ }
337
+
338
+ export type TerminalSessionLogUpsertWithWhereUniqueWithoutSessionInput = {
339
+ where: Prisma.TerminalSessionLogWhereUniqueInput
340
+ update: Prisma.XOR<Prisma.TerminalSessionLogUpdateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedUpdateWithoutSessionInput>
341
+ create: Prisma.XOR<Prisma.TerminalSessionLogCreateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedCreateWithoutSessionInput>
342
+ }
343
+
344
+ export type TerminalSessionLogUpdateWithWhereUniqueWithoutSessionInput = {
345
+ where: Prisma.TerminalSessionLogWhereUniqueInput
346
+ data: Prisma.XOR<Prisma.TerminalSessionLogUpdateWithoutSessionInput, Prisma.TerminalSessionLogUncheckedUpdateWithoutSessionInput>
347
+ }
348
+
349
+ export type TerminalSessionLogUpdateManyWithWhereWithoutSessionInput = {
350
+ where: Prisma.TerminalSessionLogScalarWhereInput
351
+ data: Prisma.XOR<Prisma.TerminalSessionLogUpdateManyMutationInput, Prisma.TerminalSessionLogUncheckedUpdateManyWithoutSessionInput>
352
+ }
353
+
354
+ export type TerminalSessionLogScalarWhereInput = {
355
+ AND?: Prisma.TerminalSessionLogScalarWhereInput | Prisma.TerminalSessionLogScalarWhereInput[]
356
+ OR?: Prisma.TerminalSessionLogScalarWhereInput[]
357
+ NOT?: Prisma.TerminalSessionLogScalarWhereInput | Prisma.TerminalSessionLogScalarWhereInput[]
358
+ id?: Prisma.StringFilter<"TerminalSessionLog"> | string
359
+ sessionId?: Prisma.StringFilter<"TerminalSessionLog"> | string
360
+ content?: Prisma.StringFilter<"TerminalSessionLog"> | string
361
+ }
362
+
363
+ export type TerminalSessionLogCreateManySessionInput = {
364
+ id: string
365
+ content: string
366
+ }
367
+
368
+ export type TerminalSessionLogUpdateWithoutSessionInput = {
369
+ id?: Prisma.StringFieldUpdateOperationsInput | string
370
+ content?: Prisma.StringFieldUpdateOperationsInput | string
371
+ }
372
+
373
+ export type TerminalSessionLogUncheckedUpdateWithoutSessionInput = {
374
+ id?: Prisma.StringFieldUpdateOperationsInput | string
375
+ content?: Prisma.StringFieldUpdateOperationsInput | string
376
+ }
377
+
378
+ export type TerminalSessionLogUncheckedUpdateManyWithoutSessionInput = {
379
+ id?: Prisma.StringFieldUpdateOperationsInput | string
380
+ content?: Prisma.StringFieldUpdateOperationsInput | string
381
+ }
382
+
383
+
384
+
385
+ export type TerminalSessionLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
386
+ id?: boolean
387
+ sessionId?: boolean
388
+ content?: boolean
389
+ session?: boolean | Prisma.TerminalSessionDefaultArgs<ExtArgs>
390
+ }, ExtArgs["result"]["terminalSessionLog"]>
391
+
392
+ export type TerminalSessionLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
393
+ id?: boolean
394
+ sessionId?: boolean
395
+ content?: boolean
396
+ session?: boolean | Prisma.TerminalSessionDefaultArgs<ExtArgs>
397
+ }, ExtArgs["result"]["terminalSessionLog"]>
398
+
399
+ export type TerminalSessionLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
400
+ id?: boolean
401
+ sessionId?: boolean
402
+ content?: boolean
403
+ session?: boolean | Prisma.TerminalSessionDefaultArgs<ExtArgs>
404
+ }, ExtArgs["result"]["terminalSessionLog"]>
405
+
406
+ export type TerminalSessionLogSelectScalar = {
407
+ id?: boolean
408
+ sessionId?: boolean
409
+ content?: boolean
410
+ }
411
+
412
+ export type TerminalSessionLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sessionId" | "content", ExtArgs["result"]["terminalSessionLog"]>
413
+ export type TerminalSessionLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
414
+ session?: boolean | Prisma.TerminalSessionDefaultArgs<ExtArgs>
415
+ }
416
+ export type TerminalSessionLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
417
+ session?: boolean | Prisma.TerminalSessionDefaultArgs<ExtArgs>
418
+ }
419
+ export type TerminalSessionLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
420
+ session?: boolean | Prisma.TerminalSessionDefaultArgs<ExtArgs>
421
+ }
422
+
423
+ export type $TerminalSessionLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
424
+ name: "TerminalSessionLog"
425
+ objects: {
426
+ /**
427
+ * The terminal session this log belongs to.
428
+ */
429
+ session: Prisma.$TerminalSessionPayload<ExtArgs>
430
+ }
431
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
432
+ /**
433
+ * The ULID of the session log. Also used to extract the timestamp.
434
+ */
435
+ id: string
436
+ /**
437
+ * The ID of the terminal session this log belongs to.
438
+ */
439
+ sessionId: string
440
+ /**
441
+ * The content of the log.
442
+ */
443
+ content: string
444
+ }, ExtArgs["result"]["terminalSessionLog"]>
445
+ composites: {}
446
+ }
447
+
448
+ export type TerminalSessionLogGetPayload<S extends boolean | null | undefined | TerminalSessionLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload, S>
449
+
450
+ export type TerminalSessionLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
451
+ Omit<TerminalSessionLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
452
+ select?: TerminalSessionLogCountAggregateInputType | true
453
+ }
454
+
455
+ export interface TerminalSessionLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
456
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TerminalSessionLog'], meta: { name: 'TerminalSessionLog' } }
457
+ /**
458
+ * Find zero or one TerminalSessionLog that matches the filter.
459
+ * @param {TerminalSessionLogFindUniqueArgs} args - Arguments to find a TerminalSessionLog
460
+ * @example
461
+ * // Get one TerminalSessionLog
462
+ * const terminalSessionLog = await prisma.terminalSessionLog.findUnique({
463
+ * where: {
464
+ * // ... provide filter here
465
+ * }
466
+ * })
467
+ */
468
+ findUnique<T extends TerminalSessionLogFindUniqueArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
469
+
470
+ /**
471
+ * Find one TerminalSessionLog that matches the filter or throw an error with `error.code='P2025'`
472
+ * if no matches were found.
473
+ * @param {TerminalSessionLogFindUniqueOrThrowArgs} args - Arguments to find a TerminalSessionLog
474
+ * @example
475
+ * // Get one TerminalSessionLog
476
+ * const terminalSessionLog = await prisma.terminalSessionLog.findUniqueOrThrow({
477
+ * where: {
478
+ * // ... provide filter here
479
+ * }
480
+ * })
481
+ */
482
+ findUniqueOrThrow<T extends TerminalSessionLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
483
+
484
+ /**
485
+ * Find the first TerminalSessionLog that matches the filter.
486
+ * Note, that providing `undefined` is treated as the value not being there.
487
+ * Read more here: https://pris.ly/d/null-undefined
488
+ * @param {TerminalSessionLogFindFirstArgs} args - Arguments to find a TerminalSessionLog
489
+ * @example
490
+ * // Get one TerminalSessionLog
491
+ * const terminalSessionLog = await prisma.terminalSessionLog.findFirst({
492
+ * where: {
493
+ * // ... provide filter here
494
+ * }
495
+ * })
496
+ */
497
+ findFirst<T extends TerminalSessionLogFindFirstArgs>(args?: Prisma.SelectSubset<T, TerminalSessionLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
498
+
499
+ /**
500
+ * Find the first TerminalSessionLog that matches the filter or
501
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
502
+ * Note, that providing `undefined` is treated as the value not being there.
503
+ * Read more here: https://pris.ly/d/null-undefined
504
+ * @param {TerminalSessionLogFindFirstOrThrowArgs} args - Arguments to find a TerminalSessionLog
505
+ * @example
506
+ * // Get one TerminalSessionLog
507
+ * const terminalSessionLog = await prisma.terminalSessionLog.findFirstOrThrow({
508
+ * where: {
509
+ * // ... provide filter here
510
+ * }
511
+ * })
512
+ */
513
+ findFirstOrThrow<T extends TerminalSessionLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TerminalSessionLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
514
+
515
+ /**
516
+ * Find zero or more TerminalSessionLogs that matches the filter.
517
+ * Note, that providing `undefined` is treated as the value not being there.
518
+ * Read more here: https://pris.ly/d/null-undefined
519
+ * @param {TerminalSessionLogFindManyArgs} args - Arguments to filter and select certain fields only.
520
+ * @example
521
+ * // Get all TerminalSessionLogs
522
+ * const terminalSessionLogs = await prisma.terminalSessionLog.findMany()
523
+ *
524
+ * // Get first 10 TerminalSessionLogs
525
+ * const terminalSessionLogs = await prisma.terminalSessionLog.findMany({ take: 10 })
526
+ *
527
+ * // Only select the `id`
528
+ * const terminalSessionLogWithIdOnly = await prisma.terminalSessionLog.findMany({ select: { id: true } })
529
+ *
530
+ */
531
+ findMany<T extends TerminalSessionLogFindManyArgs>(args?: Prisma.SelectSubset<T, TerminalSessionLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
532
+
533
+ /**
534
+ * Create a TerminalSessionLog.
535
+ * @param {TerminalSessionLogCreateArgs} args - Arguments to create a TerminalSessionLog.
536
+ * @example
537
+ * // Create one TerminalSessionLog
538
+ * const TerminalSessionLog = await prisma.terminalSessionLog.create({
539
+ * data: {
540
+ * // ... data to create a TerminalSessionLog
541
+ * }
542
+ * })
543
+ *
544
+ */
545
+ create<T extends TerminalSessionLogCreateArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogCreateArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
546
+
547
+ /**
548
+ * Create many TerminalSessionLogs.
549
+ * @param {TerminalSessionLogCreateManyArgs} args - Arguments to create many TerminalSessionLogs.
550
+ * @example
551
+ * // Create many TerminalSessionLogs
552
+ * const terminalSessionLog = await prisma.terminalSessionLog.createMany({
553
+ * data: [
554
+ * // ... provide data here
555
+ * ]
556
+ * })
557
+ *
558
+ */
559
+ createMany<T extends TerminalSessionLogCreateManyArgs>(args?: Prisma.SelectSubset<T, TerminalSessionLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
560
+
561
+ /**
562
+ * Create many TerminalSessionLogs and returns the data saved in the database.
563
+ * @param {TerminalSessionLogCreateManyAndReturnArgs} args - Arguments to create many TerminalSessionLogs.
564
+ * @example
565
+ * // Create many TerminalSessionLogs
566
+ * const terminalSessionLog = await prisma.terminalSessionLog.createManyAndReturn({
567
+ * data: [
568
+ * // ... provide data here
569
+ * ]
570
+ * })
571
+ *
572
+ * // Create many TerminalSessionLogs and only return the `id`
573
+ * const terminalSessionLogWithIdOnly = await prisma.terminalSessionLog.createManyAndReturn({
574
+ * select: { id: true },
575
+ * data: [
576
+ * // ... provide data here
577
+ * ]
578
+ * })
579
+ * Note, that providing `undefined` is treated as the value not being there.
580
+ * Read more here: https://pris.ly/d/null-undefined
581
+ *
582
+ */
583
+ createManyAndReturn<T extends TerminalSessionLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TerminalSessionLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
584
+
585
+ /**
586
+ * Delete a TerminalSessionLog.
587
+ * @param {TerminalSessionLogDeleteArgs} args - Arguments to delete one TerminalSessionLog.
588
+ * @example
589
+ * // Delete one TerminalSessionLog
590
+ * const TerminalSessionLog = await prisma.terminalSessionLog.delete({
591
+ * where: {
592
+ * // ... filter to delete one TerminalSessionLog
593
+ * }
594
+ * })
595
+ *
596
+ */
597
+ delete<T extends TerminalSessionLogDeleteArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogDeleteArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
598
+
599
+ /**
600
+ * Update one TerminalSessionLog.
601
+ * @param {TerminalSessionLogUpdateArgs} args - Arguments to update one TerminalSessionLog.
602
+ * @example
603
+ * // Update one TerminalSessionLog
604
+ * const terminalSessionLog = await prisma.terminalSessionLog.update({
605
+ * where: {
606
+ * // ... provide filter here
607
+ * },
608
+ * data: {
609
+ * // ... provide data here
610
+ * }
611
+ * })
612
+ *
613
+ */
614
+ update<T extends TerminalSessionLogUpdateArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogUpdateArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
615
+
616
+ /**
617
+ * Delete zero or more TerminalSessionLogs.
618
+ * @param {TerminalSessionLogDeleteManyArgs} args - Arguments to filter TerminalSessionLogs to delete.
619
+ * @example
620
+ * // Delete a few TerminalSessionLogs
621
+ * const { count } = await prisma.terminalSessionLog.deleteMany({
622
+ * where: {
623
+ * // ... provide filter here
624
+ * }
625
+ * })
626
+ *
627
+ */
628
+ deleteMany<T extends TerminalSessionLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, TerminalSessionLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
629
+
630
+ /**
631
+ * Update zero or more TerminalSessionLogs.
632
+ * Note, that providing `undefined` is treated as the value not being there.
633
+ * Read more here: https://pris.ly/d/null-undefined
634
+ * @param {TerminalSessionLogUpdateManyArgs} args - Arguments to update one or more rows.
635
+ * @example
636
+ * // Update many TerminalSessionLogs
637
+ * const terminalSessionLog = await prisma.terminalSessionLog.updateMany({
638
+ * where: {
639
+ * // ... provide filter here
640
+ * },
641
+ * data: {
642
+ * // ... provide data here
643
+ * }
644
+ * })
645
+ *
646
+ */
647
+ updateMany<T extends TerminalSessionLogUpdateManyArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
648
+
649
+ /**
650
+ * Update zero or more TerminalSessionLogs and returns the data updated in the database.
651
+ * @param {TerminalSessionLogUpdateManyAndReturnArgs} args - Arguments to update many TerminalSessionLogs.
652
+ * @example
653
+ * // Update many TerminalSessionLogs
654
+ * const terminalSessionLog = await prisma.terminalSessionLog.updateManyAndReturn({
655
+ * where: {
656
+ * // ... provide filter here
657
+ * },
658
+ * data: [
659
+ * // ... provide data here
660
+ * ]
661
+ * })
662
+ *
663
+ * // Update zero or more TerminalSessionLogs and only return the `id`
664
+ * const terminalSessionLogWithIdOnly = await prisma.terminalSessionLog.updateManyAndReturn({
665
+ * select: { id: true },
666
+ * where: {
667
+ * // ... provide filter here
668
+ * },
669
+ * data: [
670
+ * // ... provide data here
671
+ * ]
672
+ * })
673
+ * Note, that providing `undefined` is treated as the value not being there.
674
+ * Read more here: https://pris.ly/d/null-undefined
675
+ *
676
+ */
677
+ updateManyAndReturn<T extends TerminalSessionLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
678
+
679
+ /**
680
+ * Create or update one TerminalSessionLog.
681
+ * @param {TerminalSessionLogUpsertArgs} args - Arguments to update or create a TerminalSessionLog.
682
+ * @example
683
+ * // Update or create a TerminalSessionLog
684
+ * const terminalSessionLog = await prisma.terminalSessionLog.upsert({
685
+ * create: {
686
+ * // ... data to create a TerminalSessionLog
687
+ * },
688
+ * update: {
689
+ * // ... in case it already exists, update
690
+ * },
691
+ * where: {
692
+ * // ... the filter for the TerminalSessionLog we want to update
693
+ * }
694
+ * })
695
+ */
696
+ upsert<T extends TerminalSessionLogUpsertArgs>(args: Prisma.SelectSubset<T, TerminalSessionLogUpsertArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionLogClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
697
+
698
+
699
+ /**
700
+ * Count the number of TerminalSessionLogs.
701
+ * Note, that providing `undefined` is treated as the value not being there.
702
+ * Read more here: https://pris.ly/d/null-undefined
703
+ * @param {TerminalSessionLogCountArgs} args - Arguments to filter TerminalSessionLogs to count.
704
+ * @example
705
+ * // Count the number of TerminalSessionLogs
706
+ * const count = await prisma.terminalSessionLog.count({
707
+ * where: {
708
+ * // ... the filter for the TerminalSessionLogs we want to count
709
+ * }
710
+ * })
711
+ **/
712
+ count<T extends TerminalSessionLogCountArgs>(
713
+ args?: Prisma.Subset<T, TerminalSessionLogCountArgs>,
714
+ ): Prisma.PrismaPromise<
715
+ T extends runtime.Types.Utils.Record<'select', any>
716
+ ? T['select'] extends true
717
+ ? number
718
+ : Prisma.GetScalarType<T['select'], TerminalSessionLogCountAggregateOutputType>
719
+ : number
720
+ >
721
+
722
+ /**
723
+ * Allows you to perform aggregations operations on a TerminalSessionLog.
724
+ * Note, that providing `undefined` is treated as the value not being there.
725
+ * Read more here: https://pris.ly/d/null-undefined
726
+ * @param {TerminalSessionLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
727
+ * @example
728
+ * // Ordered by age ascending
729
+ * // Where email contains prisma.io
730
+ * // Limited to the 10 users
731
+ * const aggregations = await prisma.user.aggregate({
732
+ * _avg: {
733
+ * age: true,
734
+ * },
735
+ * where: {
736
+ * email: {
737
+ * contains: "prisma.io",
738
+ * },
739
+ * },
740
+ * orderBy: {
741
+ * age: "asc",
742
+ * },
743
+ * take: 10,
744
+ * })
745
+ **/
746
+ aggregate<T extends TerminalSessionLogAggregateArgs>(args: Prisma.Subset<T, TerminalSessionLogAggregateArgs>): Prisma.PrismaPromise<GetTerminalSessionLogAggregateType<T>>
747
+
748
+ /**
749
+ * Group by TerminalSessionLog.
750
+ * Note, that providing `undefined` is treated as the value not being there.
751
+ * Read more here: https://pris.ly/d/null-undefined
752
+ * @param {TerminalSessionLogGroupByArgs} args - Group by arguments.
753
+ * @example
754
+ * // Group by city, order by createdAt, get count
755
+ * const result = await prisma.user.groupBy({
756
+ * by: ['city', 'createdAt'],
757
+ * orderBy: {
758
+ * createdAt: true
759
+ * },
760
+ * _count: {
761
+ * _all: true
762
+ * },
763
+ * })
764
+ *
765
+ **/
766
+ groupBy<
767
+ T extends TerminalSessionLogGroupByArgs,
768
+ HasSelectOrTake extends Prisma.Or<
769
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
770
+ Prisma.Extends<'take', Prisma.Keys<T>>
771
+ >,
772
+ OrderByArg extends Prisma.True extends HasSelectOrTake
773
+ ? { orderBy: TerminalSessionLogGroupByArgs['orderBy'] }
774
+ : { orderBy?: TerminalSessionLogGroupByArgs['orderBy'] },
775
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
776
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
777
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
778
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
779
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
780
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
781
+ InputErrors extends ByEmpty extends Prisma.True
782
+ ? `Error: "by" must not be empty.`
783
+ : HavingValid extends Prisma.False
784
+ ? {
785
+ [P in HavingFields]: P extends ByFields
786
+ ? never
787
+ : P extends string
788
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
789
+ : [
790
+ Error,
791
+ 'Field ',
792
+ P,
793
+ ` in "having" needs to be provided in "by"`,
794
+ ]
795
+ }[HavingFields]
796
+ : 'take' extends Prisma.Keys<T>
797
+ ? 'orderBy' extends Prisma.Keys<T>
798
+ ? ByValid extends Prisma.True
799
+ ? {}
800
+ : {
801
+ [P in OrderFields]: P extends ByFields
802
+ ? never
803
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
804
+ }[OrderFields]
805
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
806
+ : 'skip' extends Prisma.Keys<T>
807
+ ? 'orderBy' extends Prisma.Keys<T>
808
+ ? ByValid extends Prisma.True
809
+ ? {}
810
+ : {
811
+ [P in OrderFields]: P extends ByFields
812
+ ? never
813
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
814
+ }[OrderFields]
815
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
816
+ : ByValid extends Prisma.True
817
+ ? {}
818
+ : {
819
+ [P in OrderFields]: P extends ByFields
820
+ ? never
821
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
822
+ }[OrderFields]
823
+ >(args: Prisma.SubsetIntersection<T, TerminalSessionLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTerminalSessionLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
824
+ /**
825
+ * Fields of the TerminalSessionLog model
826
+ */
827
+ readonly fields: TerminalSessionLogFieldRefs;
828
+ }
829
+
830
+ /**
831
+ * The delegate class that acts as a "Promise-like" for TerminalSessionLog.
832
+ * Why is this prefixed with `Prisma__`?
833
+ * Because we want to prevent naming conflicts as mentioned in
834
+ * https://github.com/prisma/prisma-client-js/issues/707
835
+ */
836
+ export interface Prisma__TerminalSessionLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
837
+ readonly [Symbol.toStringTag]: "PrismaPromise"
838
+ session<T extends Prisma.TerminalSessionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TerminalSessionDefaultArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
839
+ /**
840
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
841
+ * @param onfulfilled The callback to execute when the Promise is resolved.
842
+ * @param onrejected The callback to execute when the Promise is rejected.
843
+ * @returns A Promise for the completion of which ever callback is executed.
844
+ */
845
+ 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>
846
+ /**
847
+ * Attaches a callback for only the rejection of the Promise.
848
+ * @param onrejected The callback to execute when the Promise is rejected.
849
+ * @returns A Promise for the completion of the callback.
850
+ */
851
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
852
+ /**
853
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
854
+ * resolved value cannot be modified from the callback.
855
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
856
+ * @returns A Promise for the completion of the callback.
857
+ */
858
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
859
+ }
860
+
861
+
862
+
863
+
864
+ /**
865
+ * Fields of the TerminalSessionLog model
866
+ */
867
+ export interface TerminalSessionLogFieldRefs {
868
+ readonly id: Prisma.FieldRef<"TerminalSessionLog", 'String'>
869
+ readonly sessionId: Prisma.FieldRef<"TerminalSessionLog", 'String'>
870
+ readonly content: Prisma.FieldRef<"TerminalSessionLog", 'String'>
871
+ }
872
+
873
+
874
+ // Custom InputTypes
875
+ /**
876
+ * TerminalSessionLog findUnique
877
+ */
878
+ export type TerminalSessionLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
879
+ /**
880
+ * Select specific fields to fetch from the TerminalSessionLog
881
+ */
882
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
883
+ /**
884
+ * Omit specific fields from the TerminalSessionLog
885
+ */
886
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
887
+ /**
888
+ * Choose, which related nodes to fetch as well
889
+ */
890
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
891
+ /**
892
+ * Filter, which TerminalSessionLog to fetch.
893
+ */
894
+ where: Prisma.TerminalSessionLogWhereUniqueInput
895
+ }
896
+
897
+ /**
898
+ * TerminalSessionLog findUniqueOrThrow
899
+ */
900
+ export type TerminalSessionLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
901
+ /**
902
+ * Select specific fields to fetch from the TerminalSessionLog
903
+ */
904
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
905
+ /**
906
+ * Omit specific fields from the TerminalSessionLog
907
+ */
908
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
909
+ /**
910
+ * Choose, which related nodes to fetch as well
911
+ */
912
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
913
+ /**
914
+ * Filter, which TerminalSessionLog to fetch.
915
+ */
916
+ where: Prisma.TerminalSessionLogWhereUniqueInput
917
+ }
918
+
919
+ /**
920
+ * TerminalSessionLog findFirst
921
+ */
922
+ export type TerminalSessionLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
923
+ /**
924
+ * Select specific fields to fetch from the TerminalSessionLog
925
+ */
926
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
927
+ /**
928
+ * Omit specific fields from the TerminalSessionLog
929
+ */
930
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
931
+ /**
932
+ * Choose, which related nodes to fetch as well
933
+ */
934
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
935
+ /**
936
+ * Filter, which TerminalSessionLog to fetch.
937
+ */
938
+ where?: Prisma.TerminalSessionLogWhereInput
939
+ /**
940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
941
+ *
942
+ * Determine the order of TerminalSessionLogs to fetch.
943
+ */
944
+ orderBy?: Prisma.TerminalSessionLogOrderByWithRelationInput | Prisma.TerminalSessionLogOrderByWithRelationInput[]
945
+ /**
946
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
947
+ *
948
+ * Sets the position for searching for TerminalSessionLogs.
949
+ */
950
+ cursor?: Prisma.TerminalSessionLogWhereUniqueInput
951
+ /**
952
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
953
+ *
954
+ * Take `±n` TerminalSessionLogs from the position of the cursor.
955
+ */
956
+ take?: number
957
+ /**
958
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
959
+ *
960
+ * Skip the first `n` TerminalSessionLogs.
961
+ */
962
+ skip?: number
963
+ /**
964
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
965
+ *
966
+ * Filter by unique combinations of TerminalSessionLogs.
967
+ */
968
+ distinct?: Prisma.TerminalSessionLogScalarFieldEnum | Prisma.TerminalSessionLogScalarFieldEnum[]
969
+ }
970
+
971
+ /**
972
+ * TerminalSessionLog findFirstOrThrow
973
+ */
974
+ export type TerminalSessionLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
975
+ /**
976
+ * Select specific fields to fetch from the TerminalSessionLog
977
+ */
978
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
979
+ /**
980
+ * Omit specific fields from the TerminalSessionLog
981
+ */
982
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
983
+ /**
984
+ * Choose, which related nodes to fetch as well
985
+ */
986
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
987
+ /**
988
+ * Filter, which TerminalSessionLog to fetch.
989
+ */
990
+ where?: Prisma.TerminalSessionLogWhereInput
991
+ /**
992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
993
+ *
994
+ * Determine the order of TerminalSessionLogs to fetch.
995
+ */
996
+ orderBy?: Prisma.TerminalSessionLogOrderByWithRelationInput | Prisma.TerminalSessionLogOrderByWithRelationInput[]
997
+ /**
998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
999
+ *
1000
+ * Sets the position for searching for TerminalSessionLogs.
1001
+ */
1002
+ cursor?: Prisma.TerminalSessionLogWhereUniqueInput
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1005
+ *
1006
+ * Take `±n` TerminalSessionLogs from the position of the cursor.
1007
+ */
1008
+ take?: number
1009
+ /**
1010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1011
+ *
1012
+ * Skip the first `n` TerminalSessionLogs.
1013
+ */
1014
+ skip?: number
1015
+ /**
1016
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1017
+ *
1018
+ * Filter by unique combinations of TerminalSessionLogs.
1019
+ */
1020
+ distinct?: Prisma.TerminalSessionLogScalarFieldEnum | Prisma.TerminalSessionLogScalarFieldEnum[]
1021
+ }
1022
+
1023
+ /**
1024
+ * TerminalSessionLog findMany
1025
+ */
1026
+ export type TerminalSessionLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1027
+ /**
1028
+ * Select specific fields to fetch from the TerminalSessionLog
1029
+ */
1030
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
1031
+ /**
1032
+ * Omit specific fields from the TerminalSessionLog
1033
+ */
1034
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1035
+ /**
1036
+ * Choose, which related nodes to fetch as well
1037
+ */
1038
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
1039
+ /**
1040
+ * Filter, which TerminalSessionLogs to fetch.
1041
+ */
1042
+ where?: Prisma.TerminalSessionLogWhereInput
1043
+ /**
1044
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1045
+ *
1046
+ * Determine the order of TerminalSessionLogs to fetch.
1047
+ */
1048
+ orderBy?: Prisma.TerminalSessionLogOrderByWithRelationInput | Prisma.TerminalSessionLogOrderByWithRelationInput[]
1049
+ /**
1050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1051
+ *
1052
+ * Sets the position for listing TerminalSessionLogs.
1053
+ */
1054
+ cursor?: Prisma.TerminalSessionLogWhereUniqueInput
1055
+ /**
1056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1057
+ *
1058
+ * Take `±n` TerminalSessionLogs from the position of the cursor.
1059
+ */
1060
+ take?: number
1061
+ /**
1062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1063
+ *
1064
+ * Skip the first `n` TerminalSessionLogs.
1065
+ */
1066
+ skip?: number
1067
+ distinct?: Prisma.TerminalSessionLogScalarFieldEnum | Prisma.TerminalSessionLogScalarFieldEnum[]
1068
+ }
1069
+
1070
+ /**
1071
+ * TerminalSessionLog create
1072
+ */
1073
+ export type TerminalSessionLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1074
+ /**
1075
+ * Select specific fields to fetch from the TerminalSessionLog
1076
+ */
1077
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
1078
+ /**
1079
+ * Omit specific fields from the TerminalSessionLog
1080
+ */
1081
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1082
+ /**
1083
+ * Choose, which related nodes to fetch as well
1084
+ */
1085
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
1086
+ /**
1087
+ * The data needed to create a TerminalSessionLog.
1088
+ */
1089
+ data: Prisma.XOR<Prisma.TerminalSessionLogCreateInput, Prisma.TerminalSessionLogUncheckedCreateInput>
1090
+ }
1091
+
1092
+ /**
1093
+ * TerminalSessionLog createMany
1094
+ */
1095
+ export type TerminalSessionLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1096
+ /**
1097
+ * The data used to create many TerminalSessionLogs.
1098
+ */
1099
+ data: Prisma.TerminalSessionLogCreateManyInput | Prisma.TerminalSessionLogCreateManyInput[]
1100
+ }
1101
+
1102
+ /**
1103
+ * TerminalSessionLog createManyAndReturn
1104
+ */
1105
+ export type TerminalSessionLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1106
+ /**
1107
+ * Select specific fields to fetch from the TerminalSessionLog
1108
+ */
1109
+ select?: Prisma.TerminalSessionLogSelectCreateManyAndReturn<ExtArgs> | null
1110
+ /**
1111
+ * Omit specific fields from the TerminalSessionLog
1112
+ */
1113
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1114
+ /**
1115
+ * The data used to create many TerminalSessionLogs.
1116
+ */
1117
+ data: Prisma.TerminalSessionLogCreateManyInput | Prisma.TerminalSessionLogCreateManyInput[]
1118
+ /**
1119
+ * Choose, which related nodes to fetch as well
1120
+ */
1121
+ include?: Prisma.TerminalSessionLogIncludeCreateManyAndReturn<ExtArgs> | null
1122
+ }
1123
+
1124
+ /**
1125
+ * TerminalSessionLog update
1126
+ */
1127
+ export type TerminalSessionLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
+ /**
1129
+ * Select specific fields to fetch from the TerminalSessionLog
1130
+ */
1131
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
1132
+ /**
1133
+ * Omit specific fields from the TerminalSessionLog
1134
+ */
1135
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1136
+ /**
1137
+ * Choose, which related nodes to fetch as well
1138
+ */
1139
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
1140
+ /**
1141
+ * The data needed to update a TerminalSessionLog.
1142
+ */
1143
+ data: Prisma.XOR<Prisma.TerminalSessionLogUpdateInput, Prisma.TerminalSessionLogUncheckedUpdateInput>
1144
+ /**
1145
+ * Choose, which TerminalSessionLog to update.
1146
+ */
1147
+ where: Prisma.TerminalSessionLogWhereUniqueInput
1148
+ }
1149
+
1150
+ /**
1151
+ * TerminalSessionLog updateMany
1152
+ */
1153
+ export type TerminalSessionLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ /**
1155
+ * The data used to update TerminalSessionLogs.
1156
+ */
1157
+ data: Prisma.XOR<Prisma.TerminalSessionLogUpdateManyMutationInput, Prisma.TerminalSessionLogUncheckedUpdateManyInput>
1158
+ /**
1159
+ * Filter which TerminalSessionLogs to update
1160
+ */
1161
+ where?: Prisma.TerminalSessionLogWhereInput
1162
+ /**
1163
+ * Limit how many TerminalSessionLogs to update.
1164
+ */
1165
+ limit?: number
1166
+ }
1167
+
1168
+ /**
1169
+ * TerminalSessionLog updateManyAndReturn
1170
+ */
1171
+ export type TerminalSessionLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1172
+ /**
1173
+ * Select specific fields to fetch from the TerminalSessionLog
1174
+ */
1175
+ select?: Prisma.TerminalSessionLogSelectUpdateManyAndReturn<ExtArgs> | null
1176
+ /**
1177
+ * Omit specific fields from the TerminalSessionLog
1178
+ */
1179
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1180
+ /**
1181
+ * The data used to update TerminalSessionLogs.
1182
+ */
1183
+ data: Prisma.XOR<Prisma.TerminalSessionLogUpdateManyMutationInput, Prisma.TerminalSessionLogUncheckedUpdateManyInput>
1184
+ /**
1185
+ * Filter which TerminalSessionLogs to update
1186
+ */
1187
+ where?: Prisma.TerminalSessionLogWhereInput
1188
+ /**
1189
+ * Limit how many TerminalSessionLogs to update.
1190
+ */
1191
+ limit?: number
1192
+ /**
1193
+ * Choose, which related nodes to fetch as well
1194
+ */
1195
+ include?: Prisma.TerminalSessionLogIncludeUpdateManyAndReturn<ExtArgs> | null
1196
+ }
1197
+
1198
+ /**
1199
+ * TerminalSessionLog upsert
1200
+ */
1201
+ export type TerminalSessionLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1202
+ /**
1203
+ * Select specific fields to fetch from the TerminalSessionLog
1204
+ */
1205
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
1206
+ /**
1207
+ * Omit specific fields from the TerminalSessionLog
1208
+ */
1209
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1210
+ /**
1211
+ * Choose, which related nodes to fetch as well
1212
+ */
1213
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
1214
+ /**
1215
+ * The filter to search for the TerminalSessionLog to update in case it exists.
1216
+ */
1217
+ where: Prisma.TerminalSessionLogWhereUniqueInput
1218
+ /**
1219
+ * In case the TerminalSessionLog found by the `where` argument doesn't exist, create a new TerminalSessionLog with this data.
1220
+ */
1221
+ create: Prisma.XOR<Prisma.TerminalSessionLogCreateInput, Prisma.TerminalSessionLogUncheckedCreateInput>
1222
+ /**
1223
+ * In case the TerminalSessionLog was found with the provided `where` argument, update it with this data.
1224
+ */
1225
+ update: Prisma.XOR<Prisma.TerminalSessionLogUpdateInput, Prisma.TerminalSessionLogUncheckedUpdateInput>
1226
+ }
1227
+
1228
+ /**
1229
+ * TerminalSessionLog delete
1230
+ */
1231
+ export type TerminalSessionLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1232
+ /**
1233
+ * Select specific fields to fetch from the TerminalSessionLog
1234
+ */
1235
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
1236
+ /**
1237
+ * Omit specific fields from the TerminalSessionLog
1238
+ */
1239
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1240
+ /**
1241
+ * Choose, which related nodes to fetch as well
1242
+ */
1243
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
1244
+ /**
1245
+ * Filter which TerminalSessionLog to delete.
1246
+ */
1247
+ where: Prisma.TerminalSessionLogWhereUniqueInput
1248
+ }
1249
+
1250
+ /**
1251
+ * TerminalSessionLog deleteMany
1252
+ */
1253
+ export type TerminalSessionLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
+ /**
1255
+ * Filter which TerminalSessionLogs to delete
1256
+ */
1257
+ where?: Prisma.TerminalSessionLogWhereInput
1258
+ /**
1259
+ * Limit how many TerminalSessionLogs to delete.
1260
+ */
1261
+ limit?: number
1262
+ }
1263
+
1264
+ /**
1265
+ * TerminalSessionLog without action
1266
+ */
1267
+ export type TerminalSessionLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1268
+ /**
1269
+ * Select specific fields to fetch from the TerminalSessionLog
1270
+ */
1271
+ select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
1272
+ /**
1273
+ * Omit specific fields from the TerminalSessionLog
1274
+ */
1275
+ omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
1276
+ /**
1277
+ * Choose, which related nodes to fetch as well
1278
+ */
1279
+ include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
1280
+ }