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