@brianli/kimaki 0.4.72-brianli.1

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 (328) hide show
  1. package/bin.js +2 -0
  2. package/dist/ai-tool-to-genai.js +233 -0
  3. package/dist/ai-tool-to-genai.test.js +267 -0
  4. package/dist/ai-tool.js +6 -0
  5. package/dist/bin.js +87 -0
  6. package/dist/bot-token.js +121 -0
  7. package/dist/bot-token.test.js +134 -0
  8. package/dist/channel-management.js +101 -0
  9. package/dist/cli-parsing.test.js +89 -0
  10. package/dist/cli.js +2529 -0
  11. package/dist/commands/abort.js +82 -0
  12. package/dist/commands/action-buttons.js +257 -0
  13. package/dist/commands/add-project.js +114 -0
  14. package/dist/commands/agent.js +291 -0
  15. package/dist/commands/ask-question.js +223 -0
  16. package/dist/commands/compact.js +120 -0
  17. package/dist/commands/context-usage.js +140 -0
  18. package/dist/commands/create-new-project.js +118 -0
  19. package/dist/commands/diff.js +128 -0
  20. package/dist/commands/file-upload.js +275 -0
  21. package/dist/commands/fork.js +217 -0
  22. package/dist/commands/gemini-apikey.js +70 -0
  23. package/dist/commands/login.js +490 -0
  24. package/dist/commands/mention-mode.js +51 -0
  25. package/dist/commands/merge-worktree.js +124 -0
  26. package/dist/commands/model.js +694 -0
  27. package/dist/commands/permissions.js +163 -0
  28. package/dist/commands/queue.js +217 -0
  29. package/dist/commands/remove-project.js +115 -0
  30. package/dist/commands/restart-opencode-server.js +116 -0
  31. package/dist/commands/resume.js +159 -0
  32. package/dist/commands/run-command.js +79 -0
  33. package/dist/commands/session-id.js +78 -0
  34. package/dist/commands/session.js +192 -0
  35. package/dist/commands/share.js +80 -0
  36. package/dist/commands/types.js +2 -0
  37. package/dist/commands/undo-redo.js +159 -0
  38. package/dist/commands/unset-model.js +152 -0
  39. package/dist/commands/upgrade.js +42 -0
  40. package/dist/commands/user-command.js +148 -0
  41. package/dist/commands/verbosity.js +60 -0
  42. package/dist/commands/worktree-settings.js +50 -0
  43. package/dist/commands/worktree.js +299 -0
  44. package/dist/condense-memory.js +33 -0
  45. package/dist/config.js +110 -0
  46. package/dist/database.js +1050 -0
  47. package/dist/db.js +159 -0
  48. package/dist/db.test.js +49 -0
  49. package/dist/discord-api.js +28 -0
  50. package/dist/discord-auth.js +231 -0
  51. package/dist/discord-auth.test.js +80 -0
  52. package/dist/discord-bot.js +997 -0
  53. package/dist/discord-utils.js +560 -0
  54. package/dist/discord-utils.test.js +115 -0
  55. package/dist/errors.js +167 -0
  56. package/dist/escape-backticks.test.js +429 -0
  57. package/dist/format-tables.js +122 -0
  58. package/dist/format-tables.test.js +199 -0
  59. package/dist/forum-sync/config.js +79 -0
  60. package/dist/forum-sync/discord-operations.js +154 -0
  61. package/dist/forum-sync/index.js +5 -0
  62. package/dist/forum-sync/markdown.js +117 -0
  63. package/dist/forum-sync/sync-to-discord.js +417 -0
  64. package/dist/forum-sync/sync-to-files.js +190 -0
  65. package/dist/forum-sync/types.js +53 -0
  66. package/dist/forum-sync/watchers.js +307 -0
  67. package/dist/gateway-consumer.js +232 -0
  68. package/dist/gateway-consumer.test.js +18 -0
  69. package/dist/genai-worker-wrapper.js +111 -0
  70. package/dist/genai-worker.js +311 -0
  71. package/dist/genai.js +232 -0
  72. package/dist/generated/browser.js +17 -0
  73. package/dist/generated/client.js +35 -0
  74. package/dist/generated/commonInputTypes.js +10 -0
  75. package/dist/generated/enums.js +30 -0
  76. package/dist/generated/internal/class.js +41 -0
  77. package/dist/generated/internal/prismaNamespace.js +239 -0
  78. package/dist/generated/internal/prismaNamespaceBrowser.js +209 -0
  79. package/dist/generated/models/bot_api_keys.js +1 -0
  80. package/dist/generated/models/bot_tokens.js +1 -0
  81. package/dist/generated/models/channel_agents.js +1 -0
  82. package/dist/generated/models/channel_directories.js +1 -0
  83. package/dist/generated/models/channel_mention_mode.js +1 -0
  84. package/dist/generated/models/channel_models.js +1 -0
  85. package/dist/generated/models/channel_verbosity.js +1 -0
  86. package/dist/generated/models/channel_worktrees.js +1 -0
  87. package/dist/generated/models/forum_sync_configs.js +1 -0
  88. package/dist/generated/models/global_models.js +1 -0
  89. package/dist/generated/models/ipc_requests.js +1 -0
  90. package/dist/generated/models/part_messages.js +1 -0
  91. package/dist/generated/models/scheduled_tasks.js +1 -0
  92. package/dist/generated/models/session_agents.js +1 -0
  93. package/dist/generated/models/session_models.js +1 -0
  94. package/dist/generated/models/session_start_sources.js +1 -0
  95. package/dist/generated/models/thread_sessions.js +1 -0
  96. package/dist/generated/models/thread_worktrees.js +1 -0
  97. package/dist/generated/models.js +1 -0
  98. package/dist/heap-monitor.js +95 -0
  99. package/dist/hrana-server.js +416 -0
  100. package/dist/hrana-server.test.js +368 -0
  101. package/dist/image-utils.js +112 -0
  102. package/dist/interaction-handler.js +327 -0
  103. package/dist/ipc-polling.js +251 -0
  104. package/dist/kimaki-digital-twin.e2e.test.js +165 -0
  105. package/dist/limit-heading-depth.js +25 -0
  106. package/dist/limit-heading-depth.test.js +105 -0
  107. package/dist/logger.js +160 -0
  108. package/dist/markdown.js +342 -0
  109. package/dist/markdown.test.js +253 -0
  110. package/dist/message-formatting.js +433 -0
  111. package/dist/message-formatting.test.js +73 -0
  112. package/dist/openai-realtime.js +228 -0
  113. package/dist/opencode-plugin-loading.e2e.test.js +91 -0
  114. package/dist/opencode-plugin.js +536 -0
  115. package/dist/opencode-plugin.test.js +98 -0
  116. package/dist/opencode.js +409 -0
  117. package/dist/privacy-sanitizer.js +105 -0
  118. package/dist/runtime-mode.js +51 -0
  119. package/dist/runtime-mode.test.js +115 -0
  120. package/dist/sentry.js +127 -0
  121. package/dist/session-handler/state.js +151 -0
  122. package/dist/session-handler.js +1874 -0
  123. package/dist/session-search.js +100 -0
  124. package/dist/session-search.test.js +40 -0
  125. package/dist/startup-service.js +153 -0
  126. package/dist/system-message.js +499 -0
  127. package/dist/task-runner.js +282 -0
  128. package/dist/task-schedule.js +191 -0
  129. package/dist/task-schedule.test.js +71 -0
  130. package/dist/thinking-utils.js +35 -0
  131. package/dist/thread-message-queue.e2e.test.js +781 -0
  132. package/dist/tools.js +359 -0
  133. package/dist/unnest-code-blocks.js +136 -0
  134. package/dist/unnest-code-blocks.test.js +641 -0
  135. package/dist/upgrade.js +114 -0
  136. package/dist/utils.js +109 -0
  137. package/dist/voice-handler.js +606 -0
  138. package/dist/voice.js +304 -0
  139. package/dist/voice.test.js +187 -0
  140. package/dist/wait-session.js +94 -0
  141. package/dist/worker-types.js +4 -0
  142. package/dist/worktree-utils.js +727 -0
  143. package/dist/xml.js +92 -0
  144. package/dist/xml.test.js +32 -0
  145. package/package.json +82 -0
  146. package/schema.prisma +246 -0
  147. package/skills/batch/SKILL.md +87 -0
  148. package/skills/critique/SKILL.md +129 -0
  149. package/skills/errore/SKILL.md +589 -0
  150. package/skills/goke/.prettierrc +5 -0
  151. package/skills/goke/CHANGELOG.md +40 -0
  152. package/skills/goke/LICENSE +21 -0
  153. package/skills/goke/README.md +666 -0
  154. package/skills/goke/SKILL.md +458 -0
  155. package/skills/goke/package.json +43 -0
  156. package/skills/goke/src/__test__/coerce.test.ts +411 -0
  157. package/skills/goke/src/__test__/index.test.ts +1798 -0
  158. package/skills/goke/src/__test__/types.test-d.ts +111 -0
  159. package/skills/goke/src/coerce.ts +547 -0
  160. package/skills/goke/src/goke.ts +1362 -0
  161. package/skills/goke/src/index.ts +16 -0
  162. package/skills/goke/src/mri.ts +164 -0
  163. package/skills/goke/tsconfig.json +15 -0
  164. package/skills/jitter/EDITOR.md +219 -0
  165. package/skills/jitter/EXPORT-INTERNALS.md +309 -0
  166. package/skills/jitter/SKILL.md +158 -0
  167. package/skills/jitter/jitter-clipboard.json +1042 -0
  168. package/skills/jitter/package.json +14 -0
  169. package/skills/jitter/tsconfig.json +15 -0
  170. package/skills/jitter/utils/actions.ts +212 -0
  171. package/skills/jitter/utils/export.ts +114 -0
  172. package/skills/jitter/utils/index.ts +141 -0
  173. package/skills/jitter/utils/snapshot.ts +154 -0
  174. package/skills/jitter/utils/traverse.ts +246 -0
  175. package/skills/jitter/utils/types.ts +279 -0
  176. package/skills/jitter/utils/wait.ts +133 -0
  177. package/skills/playwriter/SKILL.md +31 -0
  178. package/skills/security-review/SKILL.md +208 -0
  179. package/skills/simplify/SKILL.md +58 -0
  180. package/skills/termcast/SKILL.md +945 -0
  181. package/skills/tuistory/SKILL.md +250 -0
  182. package/skills/zustand-centralized-state/SKILL.md +582 -0
  183. package/src/__snapshots__/compact-session-context-no-system.md +35 -0
  184. package/src/__snapshots__/compact-session-context.md +41 -0
  185. package/src/__snapshots__/first-session-no-info.md +17 -0
  186. package/src/__snapshots__/first-session-with-info.md +23 -0
  187. package/src/__snapshots__/session-1.md +17 -0
  188. package/src/__snapshots__/session-2.md +5871 -0
  189. package/src/__snapshots__/session-3.md +17 -0
  190. package/src/__snapshots__/session-with-tools.md +5871 -0
  191. package/src/ai-tool-to-genai.test.ts +296 -0
  192. package/src/ai-tool-to-genai.ts +282 -0
  193. package/src/ai-tool.ts +39 -0
  194. package/src/bin.ts +108 -0
  195. package/src/bot-token.test.ts +171 -0
  196. package/src/bot-token.ts +159 -0
  197. package/src/channel-management.ts +172 -0
  198. package/src/cli-parsing.test.ts +132 -0
  199. package/src/cli.ts +3605 -0
  200. package/src/commands/abort.ts +112 -0
  201. package/src/commands/action-buttons.ts +376 -0
  202. package/src/commands/add-project.ts +152 -0
  203. package/src/commands/agent.ts +404 -0
  204. package/src/commands/ask-question.ts +330 -0
  205. package/src/commands/compact.ts +157 -0
  206. package/src/commands/context-usage.ts +199 -0
  207. package/src/commands/create-new-project.ts +179 -0
  208. package/src/commands/diff.ts +165 -0
  209. package/src/commands/file-upload.ts +389 -0
  210. package/src/commands/fork.ts +320 -0
  211. package/src/commands/gemini-apikey.ts +104 -0
  212. package/src/commands/login.ts +634 -0
  213. package/src/commands/mention-mode.ts +77 -0
  214. package/src/commands/merge-worktree.ts +177 -0
  215. package/src/commands/model.ts +961 -0
  216. package/src/commands/permissions.ts +261 -0
  217. package/src/commands/queue.ts +296 -0
  218. package/src/commands/remove-project.ts +155 -0
  219. package/src/commands/restart-opencode-server.ts +162 -0
  220. package/src/commands/resume.ts +242 -0
  221. package/src/commands/run-command.ts +123 -0
  222. package/src/commands/session-id.ts +109 -0
  223. package/src/commands/session.ts +250 -0
  224. package/src/commands/share.ts +106 -0
  225. package/src/commands/types.ts +25 -0
  226. package/src/commands/undo-redo.ts +221 -0
  227. package/src/commands/unset-model.ts +189 -0
  228. package/src/commands/upgrade.ts +52 -0
  229. package/src/commands/user-command.ts +193 -0
  230. package/src/commands/verbosity.ts +88 -0
  231. package/src/commands/worktree-settings.ts +79 -0
  232. package/src/commands/worktree.ts +431 -0
  233. package/src/condense-memory.ts +36 -0
  234. package/src/config.ts +148 -0
  235. package/src/database.ts +1530 -0
  236. package/src/db.test.ts +60 -0
  237. package/src/db.ts +190 -0
  238. package/src/discord-api.ts +35 -0
  239. package/src/discord-bot.ts +1316 -0
  240. package/src/discord-utils.test.ts +132 -0
  241. package/src/discord-utils.ts +767 -0
  242. package/src/errors.ts +213 -0
  243. package/src/escape-backticks.test.ts +469 -0
  244. package/src/format-tables.test.ts +223 -0
  245. package/src/format-tables.ts +145 -0
  246. package/src/forum-sync/config.ts +92 -0
  247. package/src/forum-sync/discord-operations.ts +241 -0
  248. package/src/forum-sync/index.ts +9 -0
  249. package/src/forum-sync/markdown.ts +176 -0
  250. package/src/forum-sync/sync-to-discord.ts +595 -0
  251. package/src/forum-sync/sync-to-files.ts +294 -0
  252. package/src/forum-sync/types.ts +175 -0
  253. package/src/forum-sync/watchers.ts +454 -0
  254. package/src/genai-worker-wrapper.ts +164 -0
  255. package/src/genai-worker.ts +386 -0
  256. package/src/genai.ts +321 -0
  257. package/src/generated/browser.ts +109 -0
  258. package/src/generated/client.ts +131 -0
  259. package/src/generated/commonInputTypes.ts +512 -0
  260. package/src/generated/enums.ts +46 -0
  261. package/src/generated/internal/class.ts +362 -0
  262. package/src/generated/internal/prismaNamespace.ts +2251 -0
  263. package/src/generated/internal/prismaNamespaceBrowser.ts +308 -0
  264. package/src/generated/models/bot_api_keys.ts +1288 -0
  265. package/src/generated/models/bot_tokens.ts +1577 -0
  266. package/src/generated/models/channel_agents.ts +1256 -0
  267. package/src/generated/models/channel_directories.ts +2104 -0
  268. package/src/generated/models/channel_mention_mode.ts +1300 -0
  269. package/src/generated/models/channel_models.ts +1288 -0
  270. package/src/generated/models/channel_verbosity.ts +1224 -0
  271. package/src/generated/models/channel_worktrees.ts +1308 -0
  272. package/src/generated/models/forum_sync_configs.ts +1452 -0
  273. package/src/generated/models/global_models.ts +1288 -0
  274. package/src/generated/models/ipc_requests.ts +1485 -0
  275. package/src/generated/models/part_messages.ts +1302 -0
  276. package/src/generated/models/scheduled_tasks.ts +2320 -0
  277. package/src/generated/models/session_agents.ts +1086 -0
  278. package/src/generated/models/session_models.ts +1114 -0
  279. package/src/generated/models/session_start_sources.ts +1408 -0
  280. package/src/generated/models/thread_sessions.ts +1599 -0
  281. package/src/generated/models/thread_worktrees.ts +1352 -0
  282. package/src/generated/models.ts +29 -0
  283. package/src/heap-monitor.ts +121 -0
  284. package/src/hrana-server.test.ts +428 -0
  285. package/src/hrana-server.ts +547 -0
  286. package/src/image-utils.ts +149 -0
  287. package/src/interaction-handler.ts +461 -0
  288. package/src/ipc-polling.ts +325 -0
  289. package/src/kimaki-digital-twin.e2e.test.ts +201 -0
  290. package/src/limit-heading-depth.test.ts +116 -0
  291. package/src/limit-heading-depth.ts +26 -0
  292. package/src/logger.ts +203 -0
  293. package/src/markdown.test.ts +360 -0
  294. package/src/markdown.ts +410 -0
  295. package/src/message-formatting.test.ts +81 -0
  296. package/src/message-formatting.ts +549 -0
  297. package/src/openai-realtime.ts +362 -0
  298. package/src/opencode-plugin-loading.e2e.test.ts +112 -0
  299. package/src/opencode-plugin.test.ts +108 -0
  300. package/src/opencode-plugin.ts +652 -0
  301. package/src/opencode.ts +554 -0
  302. package/src/privacy-sanitizer.ts +142 -0
  303. package/src/schema.sql +158 -0
  304. package/src/sentry.ts +137 -0
  305. package/src/session-handler/state.ts +232 -0
  306. package/src/session-handler.ts +2668 -0
  307. package/src/session-search.test.ts +50 -0
  308. package/src/session-search.ts +148 -0
  309. package/src/startup-service.ts +200 -0
  310. package/src/system-message.ts +568 -0
  311. package/src/task-runner.ts +425 -0
  312. package/src/task-schedule.test.ts +84 -0
  313. package/src/task-schedule.ts +287 -0
  314. package/src/thinking-utils.ts +61 -0
  315. package/src/thread-message-queue.e2e.test.ts +997 -0
  316. package/src/tools.ts +432 -0
  317. package/src/unnest-code-blocks.test.ts +679 -0
  318. package/src/unnest-code-blocks.ts +168 -0
  319. package/src/upgrade.ts +127 -0
  320. package/src/utils.ts +145 -0
  321. package/src/voice-handler.ts +852 -0
  322. package/src/voice.test.ts +219 -0
  323. package/src/voice.ts +444 -0
  324. package/src/wait-session.ts +147 -0
  325. package/src/worker-types.ts +64 -0
  326. package/src/worktree-utils.ts +988 -0
  327. package/src/xml.test.ts +38 -0
  328. package/src/xml.ts +121 -0
@@ -0,0 +1,1599 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `thread_sessions` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
14
+
15
+ /**
16
+ * Model thread_sessions
17
+ *
18
+ */
19
+ export type thread_sessionsModel = runtime.Types.Result.DefaultSelection<Prisma.$thread_sessionsPayload>
20
+
21
+ export type AggregateThread_sessions = {
22
+ _count: Thread_sessionsCountAggregateOutputType | null
23
+ _min: Thread_sessionsMinAggregateOutputType | null
24
+ _max: Thread_sessionsMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type Thread_sessionsMinAggregateOutputType = {
28
+ thread_id: string | null
29
+ session_id: string | null
30
+ created_at: Date | null
31
+ }
32
+
33
+ export type Thread_sessionsMaxAggregateOutputType = {
34
+ thread_id: string | null
35
+ session_id: string | null
36
+ created_at: Date | null
37
+ }
38
+
39
+ export type Thread_sessionsCountAggregateOutputType = {
40
+ thread_id: number
41
+ session_id: number
42
+ created_at: number
43
+ _all: number
44
+ }
45
+
46
+
47
+ export type Thread_sessionsMinAggregateInputType = {
48
+ thread_id?: true
49
+ session_id?: true
50
+ created_at?: true
51
+ }
52
+
53
+ export type Thread_sessionsMaxAggregateInputType = {
54
+ thread_id?: true
55
+ session_id?: true
56
+ created_at?: true
57
+ }
58
+
59
+ export type Thread_sessionsCountAggregateInputType = {
60
+ thread_id?: true
61
+ session_id?: true
62
+ created_at?: true
63
+ _all?: true
64
+ }
65
+
66
+ export type Thread_sessionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
67
+ /**
68
+ * Filter which thread_sessions to aggregate.
69
+ */
70
+ where?: Prisma.thread_sessionsWhereInput
71
+ /**
72
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
73
+ *
74
+ * Determine the order of thread_sessions to fetch.
75
+ */
76
+ orderBy?: Prisma.thread_sessionsOrderByWithRelationInput | Prisma.thread_sessionsOrderByWithRelationInput[]
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
79
+ *
80
+ * Sets the start position
81
+ */
82
+ cursor?: Prisma.thread_sessionsWhereUniqueInput
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
85
+ *
86
+ * Take `±n` thread_sessions from the position of the cursor.
87
+ */
88
+ take?: number
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Skip the first `n` thread_sessions.
93
+ */
94
+ skip?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
97
+ *
98
+ * Count returned thread_sessions
99
+ **/
100
+ _count?: true | Thread_sessionsCountAggregateInputType
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Select which fields to find the minimum value
105
+ **/
106
+ _min?: Thread_sessionsMinAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the maximum value
111
+ **/
112
+ _max?: Thread_sessionsMaxAggregateInputType
113
+ }
114
+
115
+ export type GetThread_sessionsAggregateType<T extends Thread_sessionsAggregateArgs> = {
116
+ [P in keyof T & keyof AggregateThread_sessions]: P extends '_count' | 'count'
117
+ ? T[P] extends true
118
+ ? number
119
+ : Prisma.GetScalarType<T[P], AggregateThread_sessions[P]>
120
+ : Prisma.GetScalarType<T[P], AggregateThread_sessions[P]>
121
+ }
122
+
123
+
124
+
125
+
126
+ export type thread_sessionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ where?: Prisma.thread_sessionsWhereInput
128
+ orderBy?: Prisma.thread_sessionsOrderByWithAggregationInput | Prisma.thread_sessionsOrderByWithAggregationInput[]
129
+ by: Prisma.Thread_sessionsScalarFieldEnum[] | Prisma.Thread_sessionsScalarFieldEnum
130
+ having?: Prisma.thread_sessionsScalarWhereWithAggregatesInput
131
+ take?: number
132
+ skip?: number
133
+ _count?: Thread_sessionsCountAggregateInputType | true
134
+ _min?: Thread_sessionsMinAggregateInputType
135
+ _max?: Thread_sessionsMaxAggregateInputType
136
+ }
137
+
138
+ export type Thread_sessionsGroupByOutputType = {
139
+ thread_id: string
140
+ session_id: string
141
+ created_at: Date | null
142
+ _count: Thread_sessionsCountAggregateOutputType | null
143
+ _min: Thread_sessionsMinAggregateOutputType | null
144
+ _max: Thread_sessionsMaxAggregateOutputType | null
145
+ }
146
+
147
+ type GetThread_sessionsGroupByPayload<T extends thread_sessionsGroupByArgs> = Prisma.PrismaPromise<
148
+ Array<
149
+ Prisma.PickEnumerable<Thread_sessionsGroupByOutputType, T['by']> &
150
+ {
151
+ [P in ((keyof T) & (keyof Thread_sessionsGroupByOutputType))]: P extends '_count'
152
+ ? T[P] extends boolean
153
+ ? number
154
+ : Prisma.GetScalarType<T[P], Thread_sessionsGroupByOutputType[P]>
155
+ : Prisma.GetScalarType<T[P], Thread_sessionsGroupByOutputType[P]>
156
+ }
157
+ >
158
+ >
159
+
160
+
161
+
162
+ export type thread_sessionsWhereInput = {
163
+ AND?: Prisma.thread_sessionsWhereInput | Prisma.thread_sessionsWhereInput[]
164
+ OR?: Prisma.thread_sessionsWhereInput[]
165
+ NOT?: Prisma.thread_sessionsWhereInput | Prisma.thread_sessionsWhereInput[]
166
+ thread_id?: Prisma.StringFilter<"thread_sessions"> | string
167
+ session_id?: Prisma.StringFilter<"thread_sessions"> | string
168
+ created_at?: Prisma.DateTimeNullableFilter<"thread_sessions"> | Date | string | null
169
+ part_messages?: Prisma.Part_messagesListRelationFilter
170
+ scheduled_tasks?: Prisma.Scheduled_tasksListRelationFilter
171
+ thread_worktree?: Prisma.XOR<Prisma.Thread_worktreesNullableScalarRelationFilter, Prisma.thread_worktreesWhereInput> | null
172
+ ipc_requests?: Prisma.Ipc_requestsListRelationFilter
173
+ }
174
+
175
+ export type thread_sessionsOrderByWithRelationInput = {
176
+ thread_id?: Prisma.SortOrder
177
+ session_id?: Prisma.SortOrder
178
+ created_at?: Prisma.SortOrderInput | Prisma.SortOrder
179
+ part_messages?: Prisma.part_messagesOrderByRelationAggregateInput
180
+ scheduled_tasks?: Prisma.scheduled_tasksOrderByRelationAggregateInput
181
+ thread_worktree?: Prisma.thread_worktreesOrderByWithRelationInput
182
+ ipc_requests?: Prisma.ipc_requestsOrderByRelationAggregateInput
183
+ }
184
+
185
+ export type thread_sessionsWhereUniqueInput = Prisma.AtLeast<{
186
+ thread_id?: string
187
+ AND?: Prisma.thread_sessionsWhereInput | Prisma.thread_sessionsWhereInput[]
188
+ OR?: Prisma.thread_sessionsWhereInput[]
189
+ NOT?: Prisma.thread_sessionsWhereInput | Prisma.thread_sessionsWhereInput[]
190
+ session_id?: Prisma.StringFilter<"thread_sessions"> | string
191
+ created_at?: Prisma.DateTimeNullableFilter<"thread_sessions"> | Date | string | null
192
+ part_messages?: Prisma.Part_messagesListRelationFilter
193
+ scheduled_tasks?: Prisma.Scheduled_tasksListRelationFilter
194
+ thread_worktree?: Prisma.XOR<Prisma.Thread_worktreesNullableScalarRelationFilter, Prisma.thread_worktreesWhereInput> | null
195
+ ipc_requests?: Prisma.Ipc_requestsListRelationFilter
196
+ }, "thread_id">
197
+
198
+ export type thread_sessionsOrderByWithAggregationInput = {
199
+ thread_id?: Prisma.SortOrder
200
+ session_id?: Prisma.SortOrder
201
+ created_at?: Prisma.SortOrderInput | Prisma.SortOrder
202
+ _count?: Prisma.thread_sessionsCountOrderByAggregateInput
203
+ _max?: Prisma.thread_sessionsMaxOrderByAggregateInput
204
+ _min?: Prisma.thread_sessionsMinOrderByAggregateInput
205
+ }
206
+
207
+ export type thread_sessionsScalarWhereWithAggregatesInput = {
208
+ AND?: Prisma.thread_sessionsScalarWhereWithAggregatesInput | Prisma.thread_sessionsScalarWhereWithAggregatesInput[]
209
+ OR?: Prisma.thread_sessionsScalarWhereWithAggregatesInput[]
210
+ NOT?: Prisma.thread_sessionsScalarWhereWithAggregatesInput | Prisma.thread_sessionsScalarWhereWithAggregatesInput[]
211
+ thread_id?: Prisma.StringWithAggregatesFilter<"thread_sessions"> | string
212
+ session_id?: Prisma.StringWithAggregatesFilter<"thread_sessions"> | string
213
+ created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"thread_sessions"> | Date | string | null
214
+ }
215
+
216
+ export type thread_sessionsCreateInput = {
217
+ thread_id: string
218
+ session_id: string
219
+ created_at?: Date | string | null
220
+ part_messages?: Prisma.part_messagesCreateNestedManyWithoutThreadInput
221
+ scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutThreadInput
222
+ thread_worktree?: Prisma.thread_worktreesCreateNestedOneWithoutThreadInput
223
+ ipc_requests?: Prisma.ipc_requestsCreateNestedManyWithoutThreadInput
224
+ }
225
+
226
+ export type thread_sessionsUncheckedCreateInput = {
227
+ thread_id: string
228
+ session_id: string
229
+ created_at?: Date | string | null
230
+ part_messages?: Prisma.part_messagesUncheckedCreateNestedManyWithoutThreadInput
231
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutThreadInput
232
+ thread_worktree?: Prisma.thread_worktreesUncheckedCreateNestedOneWithoutThreadInput
233
+ ipc_requests?: Prisma.ipc_requestsUncheckedCreateNestedManyWithoutThreadInput
234
+ }
235
+
236
+ export type thread_sessionsUpdateInput = {
237
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
238
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
239
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
240
+ part_messages?: Prisma.part_messagesUpdateManyWithoutThreadNestedInput
241
+ scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutThreadNestedInput
242
+ thread_worktree?: Prisma.thread_worktreesUpdateOneWithoutThreadNestedInput
243
+ ipc_requests?: Prisma.ipc_requestsUpdateManyWithoutThreadNestedInput
244
+ }
245
+
246
+ export type thread_sessionsUncheckedUpdateInput = {
247
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
248
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
249
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
250
+ part_messages?: Prisma.part_messagesUncheckedUpdateManyWithoutThreadNestedInput
251
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutThreadNestedInput
252
+ thread_worktree?: Prisma.thread_worktreesUncheckedUpdateOneWithoutThreadNestedInput
253
+ ipc_requests?: Prisma.ipc_requestsUncheckedUpdateManyWithoutThreadNestedInput
254
+ }
255
+
256
+ export type thread_sessionsCreateManyInput = {
257
+ thread_id: string
258
+ session_id: string
259
+ created_at?: Date | string | null
260
+ }
261
+
262
+ export type thread_sessionsUpdateManyMutationInput = {
263
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
264
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
265
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
266
+ }
267
+
268
+ export type thread_sessionsUncheckedUpdateManyInput = {
269
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
270
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
271
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
272
+ }
273
+
274
+ export type thread_sessionsCountOrderByAggregateInput = {
275
+ thread_id?: Prisma.SortOrder
276
+ session_id?: Prisma.SortOrder
277
+ created_at?: Prisma.SortOrder
278
+ }
279
+
280
+ export type thread_sessionsMaxOrderByAggregateInput = {
281
+ thread_id?: Prisma.SortOrder
282
+ session_id?: Prisma.SortOrder
283
+ created_at?: Prisma.SortOrder
284
+ }
285
+
286
+ export type thread_sessionsMinOrderByAggregateInput = {
287
+ thread_id?: Prisma.SortOrder
288
+ session_id?: Prisma.SortOrder
289
+ created_at?: Prisma.SortOrder
290
+ }
291
+
292
+ export type Thread_sessionsScalarRelationFilter = {
293
+ is?: Prisma.thread_sessionsWhereInput
294
+ isNot?: Prisma.thread_sessionsWhereInput
295
+ }
296
+
297
+ export type Thread_sessionsNullableScalarRelationFilter = {
298
+ is?: Prisma.thread_sessionsWhereInput | null
299
+ isNot?: Prisma.thread_sessionsWhereInput | null
300
+ }
301
+
302
+ export type StringFieldUpdateOperationsInput = {
303
+ set?: string
304
+ }
305
+
306
+ export type NullableDateTimeFieldUpdateOperationsInput = {
307
+ set?: Date | string | null
308
+ }
309
+
310
+ export type thread_sessionsCreateNestedOneWithoutPart_messagesInput = {
311
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutPart_messagesInput, Prisma.thread_sessionsUncheckedCreateWithoutPart_messagesInput>
312
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutPart_messagesInput
313
+ connect?: Prisma.thread_sessionsWhereUniqueInput
314
+ }
315
+
316
+ export type thread_sessionsUpdateOneRequiredWithoutPart_messagesNestedInput = {
317
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutPart_messagesInput, Prisma.thread_sessionsUncheckedCreateWithoutPart_messagesInput>
318
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutPart_messagesInput
319
+ upsert?: Prisma.thread_sessionsUpsertWithoutPart_messagesInput
320
+ connect?: Prisma.thread_sessionsWhereUniqueInput
321
+ update?: Prisma.XOR<Prisma.XOR<Prisma.thread_sessionsUpdateToOneWithWhereWithoutPart_messagesInput, Prisma.thread_sessionsUpdateWithoutPart_messagesInput>, Prisma.thread_sessionsUncheckedUpdateWithoutPart_messagesInput>
322
+ }
323
+
324
+ export type thread_sessionsCreateNestedOneWithoutThread_worktreeInput = {
325
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutThread_worktreeInput, Prisma.thread_sessionsUncheckedCreateWithoutThread_worktreeInput>
326
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutThread_worktreeInput
327
+ connect?: Prisma.thread_sessionsWhereUniqueInput
328
+ }
329
+
330
+ export type thread_sessionsUpdateOneRequiredWithoutThread_worktreeNestedInput = {
331
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutThread_worktreeInput, Prisma.thread_sessionsUncheckedCreateWithoutThread_worktreeInput>
332
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutThread_worktreeInput
333
+ upsert?: Prisma.thread_sessionsUpsertWithoutThread_worktreeInput
334
+ connect?: Prisma.thread_sessionsWhereUniqueInput
335
+ update?: Prisma.XOR<Prisma.XOR<Prisma.thread_sessionsUpdateToOneWithWhereWithoutThread_worktreeInput, Prisma.thread_sessionsUpdateWithoutThread_worktreeInput>, Prisma.thread_sessionsUncheckedUpdateWithoutThread_worktreeInput>
336
+ }
337
+
338
+ export type thread_sessionsCreateNestedOneWithoutScheduled_tasksInput = {
339
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutScheduled_tasksInput, Prisma.thread_sessionsUncheckedCreateWithoutScheduled_tasksInput>
340
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutScheduled_tasksInput
341
+ connect?: Prisma.thread_sessionsWhereUniqueInput
342
+ }
343
+
344
+ export type thread_sessionsUpdateOneWithoutScheduled_tasksNestedInput = {
345
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutScheduled_tasksInput, Prisma.thread_sessionsUncheckedCreateWithoutScheduled_tasksInput>
346
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutScheduled_tasksInput
347
+ upsert?: Prisma.thread_sessionsUpsertWithoutScheduled_tasksInput
348
+ disconnect?: Prisma.thread_sessionsWhereInput | boolean
349
+ delete?: Prisma.thread_sessionsWhereInput | boolean
350
+ connect?: Prisma.thread_sessionsWhereUniqueInput
351
+ update?: Prisma.XOR<Prisma.XOR<Prisma.thread_sessionsUpdateToOneWithWhereWithoutScheduled_tasksInput, Prisma.thread_sessionsUpdateWithoutScheduled_tasksInput>, Prisma.thread_sessionsUncheckedUpdateWithoutScheduled_tasksInput>
352
+ }
353
+
354
+ export type thread_sessionsCreateNestedOneWithoutIpc_requestsInput = {
355
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutIpc_requestsInput, Prisma.thread_sessionsUncheckedCreateWithoutIpc_requestsInput>
356
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutIpc_requestsInput
357
+ connect?: Prisma.thread_sessionsWhereUniqueInput
358
+ }
359
+
360
+ export type thread_sessionsUpdateOneRequiredWithoutIpc_requestsNestedInput = {
361
+ create?: Prisma.XOR<Prisma.thread_sessionsCreateWithoutIpc_requestsInput, Prisma.thread_sessionsUncheckedCreateWithoutIpc_requestsInput>
362
+ connectOrCreate?: Prisma.thread_sessionsCreateOrConnectWithoutIpc_requestsInput
363
+ upsert?: Prisma.thread_sessionsUpsertWithoutIpc_requestsInput
364
+ connect?: Prisma.thread_sessionsWhereUniqueInput
365
+ update?: Prisma.XOR<Prisma.XOR<Prisma.thread_sessionsUpdateToOneWithWhereWithoutIpc_requestsInput, Prisma.thread_sessionsUpdateWithoutIpc_requestsInput>, Prisma.thread_sessionsUncheckedUpdateWithoutIpc_requestsInput>
366
+ }
367
+
368
+ export type thread_sessionsCreateWithoutPart_messagesInput = {
369
+ thread_id: string
370
+ session_id: string
371
+ created_at?: Date | string | null
372
+ scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutThreadInput
373
+ thread_worktree?: Prisma.thread_worktreesCreateNestedOneWithoutThreadInput
374
+ ipc_requests?: Prisma.ipc_requestsCreateNestedManyWithoutThreadInput
375
+ }
376
+
377
+ export type thread_sessionsUncheckedCreateWithoutPart_messagesInput = {
378
+ thread_id: string
379
+ session_id: string
380
+ created_at?: Date | string | null
381
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutThreadInput
382
+ thread_worktree?: Prisma.thread_worktreesUncheckedCreateNestedOneWithoutThreadInput
383
+ ipc_requests?: Prisma.ipc_requestsUncheckedCreateNestedManyWithoutThreadInput
384
+ }
385
+
386
+ export type thread_sessionsCreateOrConnectWithoutPart_messagesInput = {
387
+ where: Prisma.thread_sessionsWhereUniqueInput
388
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutPart_messagesInput, Prisma.thread_sessionsUncheckedCreateWithoutPart_messagesInput>
389
+ }
390
+
391
+ export type thread_sessionsUpsertWithoutPart_messagesInput = {
392
+ update: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutPart_messagesInput, Prisma.thread_sessionsUncheckedUpdateWithoutPart_messagesInput>
393
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutPart_messagesInput, Prisma.thread_sessionsUncheckedCreateWithoutPart_messagesInput>
394
+ where?: Prisma.thread_sessionsWhereInput
395
+ }
396
+
397
+ export type thread_sessionsUpdateToOneWithWhereWithoutPart_messagesInput = {
398
+ where?: Prisma.thread_sessionsWhereInput
399
+ data: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutPart_messagesInput, Prisma.thread_sessionsUncheckedUpdateWithoutPart_messagesInput>
400
+ }
401
+
402
+ export type thread_sessionsUpdateWithoutPart_messagesInput = {
403
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
404
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
405
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
406
+ scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutThreadNestedInput
407
+ thread_worktree?: Prisma.thread_worktreesUpdateOneWithoutThreadNestedInput
408
+ ipc_requests?: Prisma.ipc_requestsUpdateManyWithoutThreadNestedInput
409
+ }
410
+
411
+ export type thread_sessionsUncheckedUpdateWithoutPart_messagesInput = {
412
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
413
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
414
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
415
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutThreadNestedInput
416
+ thread_worktree?: Prisma.thread_worktreesUncheckedUpdateOneWithoutThreadNestedInput
417
+ ipc_requests?: Prisma.ipc_requestsUncheckedUpdateManyWithoutThreadNestedInput
418
+ }
419
+
420
+ export type thread_sessionsCreateWithoutThread_worktreeInput = {
421
+ thread_id: string
422
+ session_id: string
423
+ created_at?: Date | string | null
424
+ part_messages?: Prisma.part_messagesCreateNestedManyWithoutThreadInput
425
+ scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutThreadInput
426
+ ipc_requests?: Prisma.ipc_requestsCreateNestedManyWithoutThreadInput
427
+ }
428
+
429
+ export type thread_sessionsUncheckedCreateWithoutThread_worktreeInput = {
430
+ thread_id: string
431
+ session_id: string
432
+ created_at?: Date | string | null
433
+ part_messages?: Prisma.part_messagesUncheckedCreateNestedManyWithoutThreadInput
434
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutThreadInput
435
+ ipc_requests?: Prisma.ipc_requestsUncheckedCreateNestedManyWithoutThreadInput
436
+ }
437
+
438
+ export type thread_sessionsCreateOrConnectWithoutThread_worktreeInput = {
439
+ where: Prisma.thread_sessionsWhereUniqueInput
440
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutThread_worktreeInput, Prisma.thread_sessionsUncheckedCreateWithoutThread_worktreeInput>
441
+ }
442
+
443
+ export type thread_sessionsUpsertWithoutThread_worktreeInput = {
444
+ update: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutThread_worktreeInput, Prisma.thread_sessionsUncheckedUpdateWithoutThread_worktreeInput>
445
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutThread_worktreeInput, Prisma.thread_sessionsUncheckedCreateWithoutThread_worktreeInput>
446
+ where?: Prisma.thread_sessionsWhereInput
447
+ }
448
+
449
+ export type thread_sessionsUpdateToOneWithWhereWithoutThread_worktreeInput = {
450
+ where?: Prisma.thread_sessionsWhereInput
451
+ data: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutThread_worktreeInput, Prisma.thread_sessionsUncheckedUpdateWithoutThread_worktreeInput>
452
+ }
453
+
454
+ export type thread_sessionsUpdateWithoutThread_worktreeInput = {
455
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
456
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
457
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
458
+ part_messages?: Prisma.part_messagesUpdateManyWithoutThreadNestedInput
459
+ scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutThreadNestedInput
460
+ ipc_requests?: Prisma.ipc_requestsUpdateManyWithoutThreadNestedInput
461
+ }
462
+
463
+ export type thread_sessionsUncheckedUpdateWithoutThread_worktreeInput = {
464
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
465
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
466
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
467
+ part_messages?: Prisma.part_messagesUncheckedUpdateManyWithoutThreadNestedInput
468
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutThreadNestedInput
469
+ ipc_requests?: Prisma.ipc_requestsUncheckedUpdateManyWithoutThreadNestedInput
470
+ }
471
+
472
+ export type thread_sessionsCreateWithoutScheduled_tasksInput = {
473
+ thread_id: string
474
+ session_id: string
475
+ created_at?: Date | string | null
476
+ part_messages?: Prisma.part_messagesCreateNestedManyWithoutThreadInput
477
+ thread_worktree?: Prisma.thread_worktreesCreateNestedOneWithoutThreadInput
478
+ ipc_requests?: Prisma.ipc_requestsCreateNestedManyWithoutThreadInput
479
+ }
480
+
481
+ export type thread_sessionsUncheckedCreateWithoutScheduled_tasksInput = {
482
+ thread_id: string
483
+ session_id: string
484
+ created_at?: Date | string | null
485
+ part_messages?: Prisma.part_messagesUncheckedCreateNestedManyWithoutThreadInput
486
+ thread_worktree?: Prisma.thread_worktreesUncheckedCreateNestedOneWithoutThreadInput
487
+ ipc_requests?: Prisma.ipc_requestsUncheckedCreateNestedManyWithoutThreadInput
488
+ }
489
+
490
+ export type thread_sessionsCreateOrConnectWithoutScheduled_tasksInput = {
491
+ where: Prisma.thread_sessionsWhereUniqueInput
492
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutScheduled_tasksInput, Prisma.thread_sessionsUncheckedCreateWithoutScheduled_tasksInput>
493
+ }
494
+
495
+ export type thread_sessionsUpsertWithoutScheduled_tasksInput = {
496
+ update: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutScheduled_tasksInput, Prisma.thread_sessionsUncheckedUpdateWithoutScheduled_tasksInput>
497
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutScheduled_tasksInput, Prisma.thread_sessionsUncheckedCreateWithoutScheduled_tasksInput>
498
+ where?: Prisma.thread_sessionsWhereInput
499
+ }
500
+
501
+ export type thread_sessionsUpdateToOneWithWhereWithoutScheduled_tasksInput = {
502
+ where?: Prisma.thread_sessionsWhereInput
503
+ data: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutScheduled_tasksInput, Prisma.thread_sessionsUncheckedUpdateWithoutScheduled_tasksInput>
504
+ }
505
+
506
+ export type thread_sessionsUpdateWithoutScheduled_tasksInput = {
507
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
508
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
509
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
510
+ part_messages?: Prisma.part_messagesUpdateManyWithoutThreadNestedInput
511
+ thread_worktree?: Prisma.thread_worktreesUpdateOneWithoutThreadNestedInput
512
+ ipc_requests?: Prisma.ipc_requestsUpdateManyWithoutThreadNestedInput
513
+ }
514
+
515
+ export type thread_sessionsUncheckedUpdateWithoutScheduled_tasksInput = {
516
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
517
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
518
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
519
+ part_messages?: Prisma.part_messagesUncheckedUpdateManyWithoutThreadNestedInput
520
+ thread_worktree?: Prisma.thread_worktreesUncheckedUpdateOneWithoutThreadNestedInput
521
+ ipc_requests?: Prisma.ipc_requestsUncheckedUpdateManyWithoutThreadNestedInput
522
+ }
523
+
524
+ export type thread_sessionsCreateWithoutIpc_requestsInput = {
525
+ thread_id: string
526
+ session_id: string
527
+ created_at?: Date | string | null
528
+ part_messages?: Prisma.part_messagesCreateNestedManyWithoutThreadInput
529
+ scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutThreadInput
530
+ thread_worktree?: Prisma.thread_worktreesCreateNestedOneWithoutThreadInput
531
+ }
532
+
533
+ export type thread_sessionsUncheckedCreateWithoutIpc_requestsInput = {
534
+ thread_id: string
535
+ session_id: string
536
+ created_at?: Date | string | null
537
+ part_messages?: Prisma.part_messagesUncheckedCreateNestedManyWithoutThreadInput
538
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutThreadInput
539
+ thread_worktree?: Prisma.thread_worktreesUncheckedCreateNestedOneWithoutThreadInput
540
+ }
541
+
542
+ export type thread_sessionsCreateOrConnectWithoutIpc_requestsInput = {
543
+ where: Prisma.thread_sessionsWhereUniqueInput
544
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutIpc_requestsInput, Prisma.thread_sessionsUncheckedCreateWithoutIpc_requestsInput>
545
+ }
546
+
547
+ export type thread_sessionsUpsertWithoutIpc_requestsInput = {
548
+ update: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutIpc_requestsInput, Prisma.thread_sessionsUncheckedUpdateWithoutIpc_requestsInput>
549
+ create: Prisma.XOR<Prisma.thread_sessionsCreateWithoutIpc_requestsInput, Prisma.thread_sessionsUncheckedCreateWithoutIpc_requestsInput>
550
+ where?: Prisma.thread_sessionsWhereInput
551
+ }
552
+
553
+ export type thread_sessionsUpdateToOneWithWhereWithoutIpc_requestsInput = {
554
+ where?: Prisma.thread_sessionsWhereInput
555
+ data: Prisma.XOR<Prisma.thread_sessionsUpdateWithoutIpc_requestsInput, Prisma.thread_sessionsUncheckedUpdateWithoutIpc_requestsInput>
556
+ }
557
+
558
+ export type thread_sessionsUpdateWithoutIpc_requestsInput = {
559
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
560
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
561
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
562
+ part_messages?: Prisma.part_messagesUpdateManyWithoutThreadNestedInput
563
+ scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutThreadNestedInput
564
+ thread_worktree?: Prisma.thread_worktreesUpdateOneWithoutThreadNestedInput
565
+ }
566
+
567
+ export type thread_sessionsUncheckedUpdateWithoutIpc_requestsInput = {
568
+ thread_id?: Prisma.StringFieldUpdateOperationsInput | string
569
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
570
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
571
+ part_messages?: Prisma.part_messagesUncheckedUpdateManyWithoutThreadNestedInput
572
+ scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutThreadNestedInput
573
+ thread_worktree?: Prisma.thread_worktreesUncheckedUpdateOneWithoutThreadNestedInput
574
+ }
575
+
576
+
577
+ /**
578
+ * Count Type Thread_sessionsCountOutputType
579
+ */
580
+
581
+ export type Thread_sessionsCountOutputType = {
582
+ part_messages: number
583
+ scheduled_tasks: number
584
+ ipc_requests: number
585
+ }
586
+
587
+ export type Thread_sessionsCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
588
+ part_messages?: boolean | Thread_sessionsCountOutputTypeCountPart_messagesArgs
589
+ scheduled_tasks?: boolean | Thread_sessionsCountOutputTypeCountScheduled_tasksArgs
590
+ ipc_requests?: boolean | Thread_sessionsCountOutputTypeCountIpc_requestsArgs
591
+ }
592
+
593
+ /**
594
+ * Thread_sessionsCountOutputType without action
595
+ */
596
+ export type Thread_sessionsCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
597
+ /**
598
+ * Select specific fields to fetch from the Thread_sessionsCountOutputType
599
+ */
600
+ select?: Prisma.Thread_sessionsCountOutputTypeSelect<ExtArgs> | null
601
+ }
602
+
603
+ /**
604
+ * Thread_sessionsCountOutputType without action
605
+ */
606
+ export type Thread_sessionsCountOutputTypeCountPart_messagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
607
+ where?: Prisma.part_messagesWhereInput
608
+ }
609
+
610
+ /**
611
+ * Thread_sessionsCountOutputType without action
612
+ */
613
+ export type Thread_sessionsCountOutputTypeCountScheduled_tasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
614
+ where?: Prisma.scheduled_tasksWhereInput
615
+ }
616
+
617
+ /**
618
+ * Thread_sessionsCountOutputType without action
619
+ */
620
+ export type Thread_sessionsCountOutputTypeCountIpc_requestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
621
+ where?: Prisma.ipc_requestsWhereInput
622
+ }
623
+
624
+
625
+ export type thread_sessionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
626
+ thread_id?: boolean
627
+ session_id?: boolean
628
+ created_at?: boolean
629
+ part_messages?: boolean | Prisma.thread_sessions$part_messagesArgs<ExtArgs>
630
+ scheduled_tasks?: boolean | Prisma.thread_sessions$scheduled_tasksArgs<ExtArgs>
631
+ thread_worktree?: boolean | Prisma.thread_sessions$thread_worktreeArgs<ExtArgs>
632
+ ipc_requests?: boolean | Prisma.thread_sessions$ipc_requestsArgs<ExtArgs>
633
+ _count?: boolean | Prisma.Thread_sessionsCountOutputTypeDefaultArgs<ExtArgs>
634
+ }, ExtArgs["result"]["thread_sessions"]>
635
+
636
+ export type thread_sessionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
637
+ thread_id?: boolean
638
+ session_id?: boolean
639
+ created_at?: boolean
640
+ }, ExtArgs["result"]["thread_sessions"]>
641
+
642
+ export type thread_sessionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
643
+ thread_id?: boolean
644
+ session_id?: boolean
645
+ created_at?: boolean
646
+ }, ExtArgs["result"]["thread_sessions"]>
647
+
648
+ export type thread_sessionsSelectScalar = {
649
+ thread_id?: boolean
650
+ session_id?: boolean
651
+ created_at?: boolean
652
+ }
653
+
654
+ export type thread_sessionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"thread_id" | "session_id" | "created_at", ExtArgs["result"]["thread_sessions"]>
655
+ export type thread_sessionsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
656
+ part_messages?: boolean | Prisma.thread_sessions$part_messagesArgs<ExtArgs>
657
+ scheduled_tasks?: boolean | Prisma.thread_sessions$scheduled_tasksArgs<ExtArgs>
658
+ thread_worktree?: boolean | Prisma.thread_sessions$thread_worktreeArgs<ExtArgs>
659
+ ipc_requests?: boolean | Prisma.thread_sessions$ipc_requestsArgs<ExtArgs>
660
+ _count?: boolean | Prisma.Thread_sessionsCountOutputTypeDefaultArgs<ExtArgs>
661
+ }
662
+ export type thread_sessionsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
663
+ export type thread_sessionsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
664
+
665
+ export type $thread_sessionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
666
+ name: "thread_sessions"
667
+ objects: {
668
+ part_messages: Prisma.$part_messagesPayload<ExtArgs>[]
669
+ scheduled_tasks: Prisma.$scheduled_tasksPayload<ExtArgs>[]
670
+ thread_worktree: Prisma.$thread_worktreesPayload<ExtArgs> | null
671
+ ipc_requests: Prisma.$ipc_requestsPayload<ExtArgs>[]
672
+ }
673
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
674
+ thread_id: string
675
+ session_id: string
676
+ created_at: Date | null
677
+ }, ExtArgs["result"]["thread_sessions"]>
678
+ composites: {}
679
+ }
680
+
681
+ export type thread_sessionsGetPayload<S extends boolean | null | undefined | thread_sessionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload, S>
682
+
683
+ export type thread_sessionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
684
+ Omit<thread_sessionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
685
+ select?: Thread_sessionsCountAggregateInputType | true
686
+ }
687
+
688
+ export interface thread_sessionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
689
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['thread_sessions'], meta: { name: 'thread_sessions' } }
690
+ /**
691
+ * Find zero or one Thread_sessions that matches the filter.
692
+ * @param {thread_sessionsFindUniqueArgs} args - Arguments to find a Thread_sessions
693
+ * @example
694
+ * // Get one Thread_sessions
695
+ * const thread_sessions = await prisma.thread_sessions.findUnique({
696
+ * where: {
697
+ * // ... provide filter here
698
+ * }
699
+ * })
700
+ */
701
+ findUnique<T extends thread_sessionsFindUniqueArgs>(args: Prisma.SelectSubset<T, thread_sessionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
702
+
703
+ /**
704
+ * Find one Thread_sessions that matches the filter or throw an error with `error.code='P2025'`
705
+ * if no matches were found.
706
+ * @param {thread_sessionsFindUniqueOrThrowArgs} args - Arguments to find a Thread_sessions
707
+ * @example
708
+ * // Get one Thread_sessions
709
+ * const thread_sessions = await prisma.thread_sessions.findUniqueOrThrow({
710
+ * where: {
711
+ * // ... provide filter here
712
+ * }
713
+ * })
714
+ */
715
+ findUniqueOrThrow<T extends thread_sessionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, thread_sessionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
716
+
717
+ /**
718
+ * Find the first Thread_sessions that matches the filter.
719
+ * Note, that providing `undefined` is treated as the value not being there.
720
+ * Read more here: https://pris.ly/d/null-undefined
721
+ * @param {thread_sessionsFindFirstArgs} args - Arguments to find a Thread_sessions
722
+ * @example
723
+ * // Get one Thread_sessions
724
+ * const thread_sessions = await prisma.thread_sessions.findFirst({
725
+ * where: {
726
+ * // ... provide filter here
727
+ * }
728
+ * })
729
+ */
730
+ findFirst<T extends thread_sessionsFindFirstArgs>(args?: Prisma.SelectSubset<T, thread_sessionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
731
+
732
+ /**
733
+ * Find the first Thread_sessions that matches the filter or
734
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ * @param {thread_sessionsFindFirstOrThrowArgs} args - Arguments to find a Thread_sessions
738
+ * @example
739
+ * // Get one Thread_sessions
740
+ * const thread_sessions = await prisma.thread_sessions.findFirstOrThrow({
741
+ * where: {
742
+ * // ... provide filter here
743
+ * }
744
+ * })
745
+ */
746
+ findFirstOrThrow<T extends thread_sessionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, thread_sessionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
747
+
748
+ /**
749
+ * Find zero or more Thread_sessions that matches the filter.
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 {thread_sessionsFindManyArgs} args - Arguments to filter and select certain fields only.
753
+ * @example
754
+ * // Get all Thread_sessions
755
+ * const thread_sessions = await prisma.thread_sessions.findMany()
756
+ *
757
+ * // Get first 10 Thread_sessions
758
+ * const thread_sessions = await prisma.thread_sessions.findMany({ take: 10 })
759
+ *
760
+ * // Only select the `thread_id`
761
+ * const thread_sessionsWithThread_idOnly = await prisma.thread_sessions.findMany({ select: { thread_id: true } })
762
+ *
763
+ */
764
+ findMany<T extends thread_sessionsFindManyArgs>(args?: Prisma.SelectSubset<T, thread_sessionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
765
+
766
+ /**
767
+ * Create a Thread_sessions.
768
+ * @param {thread_sessionsCreateArgs} args - Arguments to create a Thread_sessions.
769
+ * @example
770
+ * // Create one Thread_sessions
771
+ * const Thread_sessions = await prisma.thread_sessions.create({
772
+ * data: {
773
+ * // ... data to create a Thread_sessions
774
+ * }
775
+ * })
776
+ *
777
+ */
778
+ create<T extends thread_sessionsCreateArgs>(args: Prisma.SelectSubset<T, thread_sessionsCreateArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
779
+
780
+ /**
781
+ * Create many Thread_sessions.
782
+ * @param {thread_sessionsCreateManyArgs} args - Arguments to create many Thread_sessions.
783
+ * @example
784
+ * // Create many Thread_sessions
785
+ * const thread_sessions = await prisma.thread_sessions.createMany({
786
+ * data: [
787
+ * // ... provide data here
788
+ * ]
789
+ * })
790
+ *
791
+ */
792
+ createMany<T extends thread_sessionsCreateManyArgs>(args?: Prisma.SelectSubset<T, thread_sessionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
793
+
794
+ /**
795
+ * Create many Thread_sessions and returns the data saved in the database.
796
+ * @param {thread_sessionsCreateManyAndReturnArgs} args - Arguments to create many Thread_sessions.
797
+ * @example
798
+ * // Create many Thread_sessions
799
+ * const thread_sessions = await prisma.thread_sessions.createManyAndReturn({
800
+ * data: [
801
+ * // ... provide data here
802
+ * ]
803
+ * })
804
+ *
805
+ * // Create many Thread_sessions and only return the `thread_id`
806
+ * const thread_sessionsWithThread_idOnly = await prisma.thread_sessions.createManyAndReturn({
807
+ * select: { thread_id: true },
808
+ * data: [
809
+ * // ... provide data here
810
+ * ]
811
+ * })
812
+ * Note, that providing `undefined` is treated as the value not being there.
813
+ * Read more here: https://pris.ly/d/null-undefined
814
+ *
815
+ */
816
+ createManyAndReturn<T extends thread_sessionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, thread_sessionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
817
+
818
+ /**
819
+ * Delete a Thread_sessions.
820
+ * @param {thread_sessionsDeleteArgs} args - Arguments to delete one Thread_sessions.
821
+ * @example
822
+ * // Delete one Thread_sessions
823
+ * const Thread_sessions = await prisma.thread_sessions.delete({
824
+ * where: {
825
+ * // ... filter to delete one Thread_sessions
826
+ * }
827
+ * })
828
+ *
829
+ */
830
+ delete<T extends thread_sessionsDeleteArgs>(args: Prisma.SelectSubset<T, thread_sessionsDeleteArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
831
+
832
+ /**
833
+ * Update one Thread_sessions.
834
+ * @param {thread_sessionsUpdateArgs} args - Arguments to update one Thread_sessions.
835
+ * @example
836
+ * // Update one Thread_sessions
837
+ * const thread_sessions = await prisma.thread_sessions.update({
838
+ * where: {
839
+ * // ... provide filter here
840
+ * },
841
+ * data: {
842
+ * // ... provide data here
843
+ * }
844
+ * })
845
+ *
846
+ */
847
+ update<T extends thread_sessionsUpdateArgs>(args: Prisma.SelectSubset<T, thread_sessionsUpdateArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
848
+
849
+ /**
850
+ * Delete zero or more Thread_sessions.
851
+ * @param {thread_sessionsDeleteManyArgs} args - Arguments to filter Thread_sessions to delete.
852
+ * @example
853
+ * // Delete a few Thread_sessions
854
+ * const { count } = await prisma.thread_sessions.deleteMany({
855
+ * where: {
856
+ * // ... provide filter here
857
+ * }
858
+ * })
859
+ *
860
+ */
861
+ deleteMany<T extends thread_sessionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, thread_sessionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
862
+
863
+ /**
864
+ * Update zero or more Thread_sessions.
865
+ * Note, that providing `undefined` is treated as the value not being there.
866
+ * Read more here: https://pris.ly/d/null-undefined
867
+ * @param {thread_sessionsUpdateManyArgs} args - Arguments to update one or more rows.
868
+ * @example
869
+ * // Update many Thread_sessions
870
+ * const thread_sessions = await prisma.thread_sessions.updateMany({
871
+ * where: {
872
+ * // ... provide filter here
873
+ * },
874
+ * data: {
875
+ * // ... provide data here
876
+ * }
877
+ * })
878
+ *
879
+ */
880
+ updateMany<T extends thread_sessionsUpdateManyArgs>(args: Prisma.SelectSubset<T, thread_sessionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
881
+
882
+ /**
883
+ * Update zero or more Thread_sessions and returns the data updated in the database.
884
+ * @param {thread_sessionsUpdateManyAndReturnArgs} args - Arguments to update many Thread_sessions.
885
+ * @example
886
+ * // Update many Thread_sessions
887
+ * const thread_sessions = await prisma.thread_sessions.updateManyAndReturn({
888
+ * where: {
889
+ * // ... provide filter here
890
+ * },
891
+ * data: [
892
+ * // ... provide data here
893
+ * ]
894
+ * })
895
+ *
896
+ * // Update zero or more Thread_sessions and only return the `thread_id`
897
+ * const thread_sessionsWithThread_idOnly = await prisma.thread_sessions.updateManyAndReturn({
898
+ * select: { thread_id: true },
899
+ * where: {
900
+ * // ... provide filter here
901
+ * },
902
+ * data: [
903
+ * // ... provide data here
904
+ * ]
905
+ * })
906
+ * Note, that providing `undefined` is treated as the value not being there.
907
+ * Read more here: https://pris.ly/d/null-undefined
908
+ *
909
+ */
910
+ updateManyAndReturn<T extends thread_sessionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, thread_sessionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
911
+
912
+ /**
913
+ * Create or update one Thread_sessions.
914
+ * @param {thread_sessionsUpsertArgs} args - Arguments to update or create a Thread_sessions.
915
+ * @example
916
+ * // Update or create a Thread_sessions
917
+ * const thread_sessions = await prisma.thread_sessions.upsert({
918
+ * create: {
919
+ * // ... data to create a Thread_sessions
920
+ * },
921
+ * update: {
922
+ * // ... in case it already exists, update
923
+ * },
924
+ * where: {
925
+ * // ... the filter for the Thread_sessions we want to update
926
+ * }
927
+ * })
928
+ */
929
+ upsert<T extends thread_sessionsUpsertArgs>(args: Prisma.SelectSubset<T, thread_sessionsUpsertArgs<ExtArgs>>): Prisma.Prisma__thread_sessionsClient<runtime.Types.Result.GetResult<Prisma.$thread_sessionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
930
+
931
+
932
+ /**
933
+ * Count the number of Thread_sessions.
934
+ * Note, that providing `undefined` is treated as the value not being there.
935
+ * Read more here: https://pris.ly/d/null-undefined
936
+ * @param {thread_sessionsCountArgs} args - Arguments to filter Thread_sessions to count.
937
+ * @example
938
+ * // Count the number of Thread_sessions
939
+ * const count = await prisma.thread_sessions.count({
940
+ * where: {
941
+ * // ... the filter for the Thread_sessions we want to count
942
+ * }
943
+ * })
944
+ **/
945
+ count<T extends thread_sessionsCountArgs>(
946
+ args?: Prisma.Subset<T, thread_sessionsCountArgs>,
947
+ ): Prisma.PrismaPromise<
948
+ T extends runtime.Types.Utils.Record<'select', any>
949
+ ? T['select'] extends true
950
+ ? number
951
+ : Prisma.GetScalarType<T['select'], Thread_sessionsCountAggregateOutputType>
952
+ : number
953
+ >
954
+
955
+ /**
956
+ * Allows you to perform aggregations operations on a Thread_sessions.
957
+ * Note, that providing `undefined` is treated as the value not being there.
958
+ * Read more here: https://pris.ly/d/null-undefined
959
+ * @param {Thread_sessionsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
960
+ * @example
961
+ * // Ordered by age ascending
962
+ * // Where email contains prisma.io
963
+ * // Limited to the 10 users
964
+ * const aggregations = await prisma.user.aggregate({
965
+ * _avg: {
966
+ * age: true,
967
+ * },
968
+ * where: {
969
+ * email: {
970
+ * contains: "prisma.io",
971
+ * },
972
+ * },
973
+ * orderBy: {
974
+ * age: "asc",
975
+ * },
976
+ * take: 10,
977
+ * })
978
+ **/
979
+ aggregate<T extends Thread_sessionsAggregateArgs>(args: Prisma.Subset<T, Thread_sessionsAggregateArgs>): Prisma.PrismaPromise<GetThread_sessionsAggregateType<T>>
980
+
981
+ /**
982
+ * Group by Thread_sessions.
983
+ * Note, that providing `undefined` is treated as the value not being there.
984
+ * Read more here: https://pris.ly/d/null-undefined
985
+ * @param {thread_sessionsGroupByArgs} args - Group by arguments.
986
+ * @example
987
+ * // Group by city, order by createdAt, get count
988
+ * const result = await prisma.user.groupBy({
989
+ * by: ['city', 'createdAt'],
990
+ * orderBy: {
991
+ * createdAt: true
992
+ * },
993
+ * _count: {
994
+ * _all: true
995
+ * },
996
+ * })
997
+ *
998
+ **/
999
+ groupBy<
1000
+ T extends thread_sessionsGroupByArgs,
1001
+ HasSelectOrTake extends Prisma.Or<
1002
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1003
+ Prisma.Extends<'take', Prisma.Keys<T>>
1004
+ >,
1005
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1006
+ ? { orderBy: thread_sessionsGroupByArgs['orderBy'] }
1007
+ : { orderBy?: thread_sessionsGroupByArgs['orderBy'] },
1008
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1009
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1010
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1011
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1012
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1013
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1014
+ InputErrors extends ByEmpty extends Prisma.True
1015
+ ? `Error: "by" must not be empty.`
1016
+ : HavingValid extends Prisma.False
1017
+ ? {
1018
+ [P in HavingFields]: P extends ByFields
1019
+ ? never
1020
+ : P extends string
1021
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1022
+ : [
1023
+ Error,
1024
+ 'Field ',
1025
+ P,
1026
+ ` in "having" needs to be provided in "by"`,
1027
+ ]
1028
+ }[HavingFields]
1029
+ : 'take' extends Prisma.Keys<T>
1030
+ ? 'orderBy' extends Prisma.Keys<T>
1031
+ ? ByValid extends Prisma.True
1032
+ ? {}
1033
+ : {
1034
+ [P in OrderFields]: P extends ByFields
1035
+ ? never
1036
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1037
+ }[OrderFields]
1038
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1039
+ : 'skip' extends Prisma.Keys<T>
1040
+ ? 'orderBy' extends Prisma.Keys<T>
1041
+ ? ByValid extends Prisma.True
1042
+ ? {}
1043
+ : {
1044
+ [P in OrderFields]: P extends ByFields
1045
+ ? never
1046
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1047
+ }[OrderFields]
1048
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1049
+ : ByValid extends Prisma.True
1050
+ ? {}
1051
+ : {
1052
+ [P in OrderFields]: P extends ByFields
1053
+ ? never
1054
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1055
+ }[OrderFields]
1056
+ >(args: Prisma.SubsetIntersection<T, thread_sessionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetThread_sessionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1057
+ /**
1058
+ * Fields of the thread_sessions model
1059
+ */
1060
+ readonly fields: thread_sessionsFieldRefs;
1061
+ }
1062
+
1063
+ /**
1064
+ * The delegate class that acts as a "Promise-like" for thread_sessions.
1065
+ * Why is this prefixed with `Prisma__`?
1066
+ * Because we want to prevent naming conflicts as mentioned in
1067
+ * https://github.com/prisma/prisma-client-js/issues/707
1068
+ */
1069
+ export interface Prisma__thread_sessionsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1070
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1071
+ part_messages<T extends Prisma.thread_sessions$part_messagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessions$part_messagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$part_messagesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1072
+ scheduled_tasks<T extends Prisma.thread_sessions$scheduled_tasksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessions$scheduled_tasksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$scheduled_tasksPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1073
+ thread_worktree<T extends Prisma.thread_sessions$thread_worktreeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessions$thread_worktreeArgs<ExtArgs>>): Prisma.Prisma__thread_worktreesClient<runtime.Types.Result.GetResult<Prisma.$thread_worktreesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1074
+ ipc_requests<T extends Prisma.thread_sessions$ipc_requestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.thread_sessions$ipc_requestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ipc_requestsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1075
+ /**
1076
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1077
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1078
+ * @param onrejected The callback to execute when the Promise is rejected.
1079
+ * @returns A Promise for the completion of which ever callback is executed.
1080
+ */
1081
+ 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>
1082
+ /**
1083
+ * Attaches a callback for only the rejection of the Promise.
1084
+ * @param onrejected The callback to execute when the Promise is rejected.
1085
+ * @returns A Promise for the completion of the callback.
1086
+ */
1087
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1088
+ /**
1089
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1090
+ * resolved value cannot be modified from the callback.
1091
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1092
+ * @returns A Promise for the completion of the callback.
1093
+ */
1094
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1095
+ }
1096
+
1097
+
1098
+
1099
+
1100
+ /**
1101
+ * Fields of the thread_sessions model
1102
+ */
1103
+ export interface thread_sessionsFieldRefs {
1104
+ readonly thread_id: Prisma.FieldRef<"thread_sessions", 'String'>
1105
+ readonly session_id: Prisma.FieldRef<"thread_sessions", 'String'>
1106
+ readonly created_at: Prisma.FieldRef<"thread_sessions", 'DateTime'>
1107
+ }
1108
+
1109
+
1110
+ // Custom InputTypes
1111
+ /**
1112
+ * thread_sessions findUnique
1113
+ */
1114
+ export type thread_sessionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ /**
1116
+ * Select specific fields to fetch from the thread_sessions
1117
+ */
1118
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1119
+ /**
1120
+ * Omit specific fields from the thread_sessions
1121
+ */
1122
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1123
+ /**
1124
+ * Choose, which related nodes to fetch as well
1125
+ */
1126
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1127
+ /**
1128
+ * Filter, which thread_sessions to fetch.
1129
+ */
1130
+ where: Prisma.thread_sessionsWhereUniqueInput
1131
+ }
1132
+
1133
+ /**
1134
+ * thread_sessions findUniqueOrThrow
1135
+ */
1136
+ export type thread_sessionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
+ /**
1138
+ * Select specific fields to fetch from the thread_sessions
1139
+ */
1140
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1141
+ /**
1142
+ * Omit specific fields from the thread_sessions
1143
+ */
1144
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1145
+ /**
1146
+ * Choose, which related nodes to fetch as well
1147
+ */
1148
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1149
+ /**
1150
+ * Filter, which thread_sessions to fetch.
1151
+ */
1152
+ where: Prisma.thread_sessionsWhereUniqueInput
1153
+ }
1154
+
1155
+ /**
1156
+ * thread_sessions findFirst
1157
+ */
1158
+ export type thread_sessionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ /**
1160
+ * Select specific fields to fetch from the thread_sessions
1161
+ */
1162
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1163
+ /**
1164
+ * Omit specific fields from the thread_sessions
1165
+ */
1166
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1167
+ /**
1168
+ * Choose, which related nodes to fetch as well
1169
+ */
1170
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1171
+ /**
1172
+ * Filter, which thread_sessions to fetch.
1173
+ */
1174
+ where?: Prisma.thread_sessionsWhereInput
1175
+ /**
1176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1177
+ *
1178
+ * Determine the order of thread_sessions to fetch.
1179
+ */
1180
+ orderBy?: Prisma.thread_sessionsOrderByWithRelationInput | Prisma.thread_sessionsOrderByWithRelationInput[]
1181
+ /**
1182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1183
+ *
1184
+ * Sets the position for searching for thread_sessions.
1185
+ */
1186
+ cursor?: Prisma.thread_sessionsWhereUniqueInput
1187
+ /**
1188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1189
+ *
1190
+ * Take `±n` thread_sessions from the position of the cursor.
1191
+ */
1192
+ take?: number
1193
+ /**
1194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1195
+ *
1196
+ * Skip the first `n` thread_sessions.
1197
+ */
1198
+ skip?: number
1199
+ /**
1200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1201
+ *
1202
+ * Filter by unique combinations of thread_sessions.
1203
+ */
1204
+ distinct?: Prisma.Thread_sessionsScalarFieldEnum | Prisma.Thread_sessionsScalarFieldEnum[]
1205
+ }
1206
+
1207
+ /**
1208
+ * thread_sessions findFirstOrThrow
1209
+ */
1210
+ export type thread_sessionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Select specific fields to fetch from the thread_sessions
1213
+ */
1214
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1215
+ /**
1216
+ * Omit specific fields from the thread_sessions
1217
+ */
1218
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1219
+ /**
1220
+ * Choose, which related nodes to fetch as well
1221
+ */
1222
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1223
+ /**
1224
+ * Filter, which thread_sessions to fetch.
1225
+ */
1226
+ where?: Prisma.thread_sessionsWhereInput
1227
+ /**
1228
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1229
+ *
1230
+ * Determine the order of thread_sessions to fetch.
1231
+ */
1232
+ orderBy?: Prisma.thread_sessionsOrderByWithRelationInput | Prisma.thread_sessionsOrderByWithRelationInput[]
1233
+ /**
1234
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1235
+ *
1236
+ * Sets the position for searching for thread_sessions.
1237
+ */
1238
+ cursor?: Prisma.thread_sessionsWhereUniqueInput
1239
+ /**
1240
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1241
+ *
1242
+ * Take `±n` thread_sessions from the position of the cursor.
1243
+ */
1244
+ take?: number
1245
+ /**
1246
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1247
+ *
1248
+ * Skip the first `n` thread_sessions.
1249
+ */
1250
+ skip?: number
1251
+ /**
1252
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1253
+ *
1254
+ * Filter by unique combinations of thread_sessions.
1255
+ */
1256
+ distinct?: Prisma.Thread_sessionsScalarFieldEnum | Prisma.Thread_sessionsScalarFieldEnum[]
1257
+ }
1258
+
1259
+ /**
1260
+ * thread_sessions findMany
1261
+ */
1262
+ export type thread_sessionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the thread_sessions
1265
+ */
1266
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1267
+ /**
1268
+ * Omit specific fields from the thread_sessions
1269
+ */
1270
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1271
+ /**
1272
+ * Choose, which related nodes to fetch as well
1273
+ */
1274
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1275
+ /**
1276
+ * Filter, which thread_sessions to fetch.
1277
+ */
1278
+ where?: Prisma.thread_sessionsWhereInput
1279
+ /**
1280
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1281
+ *
1282
+ * Determine the order of thread_sessions to fetch.
1283
+ */
1284
+ orderBy?: Prisma.thread_sessionsOrderByWithRelationInput | Prisma.thread_sessionsOrderByWithRelationInput[]
1285
+ /**
1286
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1287
+ *
1288
+ * Sets the position for listing thread_sessions.
1289
+ */
1290
+ cursor?: Prisma.thread_sessionsWhereUniqueInput
1291
+ /**
1292
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1293
+ *
1294
+ * Take `±n` thread_sessions from the position of the cursor.
1295
+ */
1296
+ take?: number
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1299
+ *
1300
+ * Skip the first `n` thread_sessions.
1301
+ */
1302
+ skip?: number
1303
+ distinct?: Prisma.Thread_sessionsScalarFieldEnum | Prisma.Thread_sessionsScalarFieldEnum[]
1304
+ }
1305
+
1306
+ /**
1307
+ * thread_sessions create
1308
+ */
1309
+ export type thread_sessionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1310
+ /**
1311
+ * Select specific fields to fetch from the thread_sessions
1312
+ */
1313
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1314
+ /**
1315
+ * Omit specific fields from the thread_sessions
1316
+ */
1317
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1318
+ /**
1319
+ * Choose, which related nodes to fetch as well
1320
+ */
1321
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1322
+ /**
1323
+ * The data needed to create a thread_sessions.
1324
+ */
1325
+ data: Prisma.XOR<Prisma.thread_sessionsCreateInput, Prisma.thread_sessionsUncheckedCreateInput>
1326
+ }
1327
+
1328
+ /**
1329
+ * thread_sessions createMany
1330
+ */
1331
+ export type thread_sessionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
+ /**
1333
+ * The data used to create many thread_sessions.
1334
+ */
1335
+ data: Prisma.thread_sessionsCreateManyInput | Prisma.thread_sessionsCreateManyInput[]
1336
+ }
1337
+
1338
+ /**
1339
+ * thread_sessions createManyAndReturn
1340
+ */
1341
+ export type thread_sessionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1342
+ /**
1343
+ * Select specific fields to fetch from the thread_sessions
1344
+ */
1345
+ select?: Prisma.thread_sessionsSelectCreateManyAndReturn<ExtArgs> | null
1346
+ /**
1347
+ * Omit specific fields from the thread_sessions
1348
+ */
1349
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1350
+ /**
1351
+ * The data used to create many thread_sessions.
1352
+ */
1353
+ data: Prisma.thread_sessionsCreateManyInput | Prisma.thread_sessionsCreateManyInput[]
1354
+ }
1355
+
1356
+ /**
1357
+ * thread_sessions update
1358
+ */
1359
+ export type thread_sessionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1360
+ /**
1361
+ * Select specific fields to fetch from the thread_sessions
1362
+ */
1363
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1364
+ /**
1365
+ * Omit specific fields from the thread_sessions
1366
+ */
1367
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1368
+ /**
1369
+ * Choose, which related nodes to fetch as well
1370
+ */
1371
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1372
+ /**
1373
+ * The data needed to update a thread_sessions.
1374
+ */
1375
+ data: Prisma.XOR<Prisma.thread_sessionsUpdateInput, Prisma.thread_sessionsUncheckedUpdateInput>
1376
+ /**
1377
+ * Choose, which thread_sessions to update.
1378
+ */
1379
+ where: Prisma.thread_sessionsWhereUniqueInput
1380
+ }
1381
+
1382
+ /**
1383
+ * thread_sessions updateMany
1384
+ */
1385
+ export type thread_sessionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1386
+ /**
1387
+ * The data used to update thread_sessions.
1388
+ */
1389
+ data: Prisma.XOR<Prisma.thread_sessionsUpdateManyMutationInput, Prisma.thread_sessionsUncheckedUpdateManyInput>
1390
+ /**
1391
+ * Filter which thread_sessions to update
1392
+ */
1393
+ where?: Prisma.thread_sessionsWhereInput
1394
+ /**
1395
+ * Limit how many thread_sessions to update.
1396
+ */
1397
+ limit?: number
1398
+ }
1399
+
1400
+ /**
1401
+ * thread_sessions updateManyAndReturn
1402
+ */
1403
+ export type thread_sessionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
+ /**
1405
+ * Select specific fields to fetch from the thread_sessions
1406
+ */
1407
+ select?: Prisma.thread_sessionsSelectUpdateManyAndReturn<ExtArgs> | null
1408
+ /**
1409
+ * Omit specific fields from the thread_sessions
1410
+ */
1411
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1412
+ /**
1413
+ * The data used to update thread_sessions.
1414
+ */
1415
+ data: Prisma.XOR<Prisma.thread_sessionsUpdateManyMutationInput, Prisma.thread_sessionsUncheckedUpdateManyInput>
1416
+ /**
1417
+ * Filter which thread_sessions to update
1418
+ */
1419
+ where?: Prisma.thread_sessionsWhereInput
1420
+ /**
1421
+ * Limit how many thread_sessions to update.
1422
+ */
1423
+ limit?: number
1424
+ }
1425
+
1426
+ /**
1427
+ * thread_sessions upsert
1428
+ */
1429
+ export type thread_sessionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1430
+ /**
1431
+ * Select specific fields to fetch from the thread_sessions
1432
+ */
1433
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1434
+ /**
1435
+ * Omit specific fields from the thread_sessions
1436
+ */
1437
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1438
+ /**
1439
+ * Choose, which related nodes to fetch as well
1440
+ */
1441
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1442
+ /**
1443
+ * The filter to search for the thread_sessions to update in case it exists.
1444
+ */
1445
+ where: Prisma.thread_sessionsWhereUniqueInput
1446
+ /**
1447
+ * In case the thread_sessions found by the `where` argument doesn't exist, create a new thread_sessions with this data.
1448
+ */
1449
+ create: Prisma.XOR<Prisma.thread_sessionsCreateInput, Prisma.thread_sessionsUncheckedCreateInput>
1450
+ /**
1451
+ * In case the thread_sessions was found with the provided `where` argument, update it with this data.
1452
+ */
1453
+ update: Prisma.XOR<Prisma.thread_sessionsUpdateInput, Prisma.thread_sessionsUncheckedUpdateInput>
1454
+ }
1455
+
1456
+ /**
1457
+ * thread_sessions delete
1458
+ */
1459
+ export type thread_sessionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1460
+ /**
1461
+ * Select specific fields to fetch from the thread_sessions
1462
+ */
1463
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1464
+ /**
1465
+ * Omit specific fields from the thread_sessions
1466
+ */
1467
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1468
+ /**
1469
+ * Choose, which related nodes to fetch as well
1470
+ */
1471
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1472
+ /**
1473
+ * Filter which thread_sessions to delete.
1474
+ */
1475
+ where: Prisma.thread_sessionsWhereUniqueInput
1476
+ }
1477
+
1478
+ /**
1479
+ * thread_sessions deleteMany
1480
+ */
1481
+ export type thread_sessionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * Filter which thread_sessions to delete
1484
+ */
1485
+ where?: Prisma.thread_sessionsWhereInput
1486
+ /**
1487
+ * Limit how many thread_sessions to delete.
1488
+ */
1489
+ limit?: number
1490
+ }
1491
+
1492
+ /**
1493
+ * thread_sessions.part_messages
1494
+ */
1495
+ export type thread_sessions$part_messagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1496
+ /**
1497
+ * Select specific fields to fetch from the part_messages
1498
+ */
1499
+ select?: Prisma.part_messagesSelect<ExtArgs> | null
1500
+ /**
1501
+ * Omit specific fields from the part_messages
1502
+ */
1503
+ omit?: Prisma.part_messagesOmit<ExtArgs> | null
1504
+ /**
1505
+ * Choose, which related nodes to fetch as well
1506
+ */
1507
+ include?: Prisma.part_messagesInclude<ExtArgs> | null
1508
+ where?: Prisma.part_messagesWhereInput
1509
+ orderBy?: Prisma.part_messagesOrderByWithRelationInput | Prisma.part_messagesOrderByWithRelationInput[]
1510
+ cursor?: Prisma.part_messagesWhereUniqueInput
1511
+ take?: number
1512
+ skip?: number
1513
+ distinct?: Prisma.Part_messagesScalarFieldEnum | Prisma.Part_messagesScalarFieldEnum[]
1514
+ }
1515
+
1516
+ /**
1517
+ * thread_sessions.scheduled_tasks
1518
+ */
1519
+ export type thread_sessions$scheduled_tasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
+ /**
1521
+ * Select specific fields to fetch from the scheduled_tasks
1522
+ */
1523
+ select?: Prisma.scheduled_tasksSelect<ExtArgs> | null
1524
+ /**
1525
+ * Omit specific fields from the scheduled_tasks
1526
+ */
1527
+ omit?: Prisma.scheduled_tasksOmit<ExtArgs> | null
1528
+ /**
1529
+ * Choose, which related nodes to fetch as well
1530
+ */
1531
+ include?: Prisma.scheduled_tasksInclude<ExtArgs> | null
1532
+ where?: Prisma.scheduled_tasksWhereInput
1533
+ orderBy?: Prisma.scheduled_tasksOrderByWithRelationInput | Prisma.scheduled_tasksOrderByWithRelationInput[]
1534
+ cursor?: Prisma.scheduled_tasksWhereUniqueInput
1535
+ take?: number
1536
+ skip?: number
1537
+ distinct?: Prisma.Scheduled_tasksScalarFieldEnum | Prisma.Scheduled_tasksScalarFieldEnum[]
1538
+ }
1539
+
1540
+ /**
1541
+ * thread_sessions.thread_worktree
1542
+ */
1543
+ export type thread_sessions$thread_worktreeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1544
+ /**
1545
+ * Select specific fields to fetch from the thread_worktrees
1546
+ */
1547
+ select?: Prisma.thread_worktreesSelect<ExtArgs> | null
1548
+ /**
1549
+ * Omit specific fields from the thread_worktrees
1550
+ */
1551
+ omit?: Prisma.thread_worktreesOmit<ExtArgs> | null
1552
+ /**
1553
+ * Choose, which related nodes to fetch as well
1554
+ */
1555
+ include?: Prisma.thread_worktreesInclude<ExtArgs> | null
1556
+ where?: Prisma.thread_worktreesWhereInput
1557
+ }
1558
+
1559
+ /**
1560
+ * thread_sessions.ipc_requests
1561
+ */
1562
+ export type thread_sessions$ipc_requestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1563
+ /**
1564
+ * Select specific fields to fetch from the ipc_requests
1565
+ */
1566
+ select?: Prisma.ipc_requestsSelect<ExtArgs> | null
1567
+ /**
1568
+ * Omit specific fields from the ipc_requests
1569
+ */
1570
+ omit?: Prisma.ipc_requestsOmit<ExtArgs> | null
1571
+ /**
1572
+ * Choose, which related nodes to fetch as well
1573
+ */
1574
+ include?: Prisma.ipc_requestsInclude<ExtArgs> | null
1575
+ where?: Prisma.ipc_requestsWhereInput
1576
+ orderBy?: Prisma.ipc_requestsOrderByWithRelationInput | Prisma.ipc_requestsOrderByWithRelationInput[]
1577
+ cursor?: Prisma.ipc_requestsWhereUniqueInput
1578
+ take?: number
1579
+ skip?: number
1580
+ distinct?: Prisma.Ipc_requestsScalarFieldEnum | Prisma.Ipc_requestsScalarFieldEnum[]
1581
+ }
1582
+
1583
+ /**
1584
+ * thread_sessions without action
1585
+ */
1586
+ export type thread_sessionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1587
+ /**
1588
+ * Select specific fields to fetch from the thread_sessions
1589
+ */
1590
+ select?: Prisma.thread_sessionsSelect<ExtArgs> | null
1591
+ /**
1592
+ * Omit specific fields from the thread_sessions
1593
+ */
1594
+ omit?: Prisma.thread_sessionsOmit<ExtArgs> | null
1595
+ /**
1596
+ * Choose, which related nodes to fetch as well
1597
+ */
1598
+ include?: Prisma.thread_sessionsInclude<ExtArgs> | null
1599
+ }