@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,1577 @@
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 `bot_tokens` 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 bot_tokens
17
+ *
18
+ */
19
+ export type bot_tokensModel = runtime.Types.Result.DefaultSelection<Prisma.$bot_tokensPayload>
20
+
21
+ export type AggregateBot_tokens = {
22
+ _count: Bot_tokensCountAggregateOutputType | null
23
+ _min: Bot_tokensMinAggregateOutputType | null
24
+ _max: Bot_tokensMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type Bot_tokensMinAggregateOutputType = {
28
+ app_id: string | null
29
+ token: string | null
30
+ created_at: Date | null
31
+ }
32
+
33
+ export type Bot_tokensMaxAggregateOutputType = {
34
+ app_id: string | null
35
+ token: string | null
36
+ created_at: Date | null
37
+ }
38
+
39
+ export type Bot_tokensCountAggregateOutputType = {
40
+ app_id: number
41
+ token: number
42
+ created_at: number
43
+ _all: number
44
+ }
45
+
46
+
47
+ export type Bot_tokensMinAggregateInputType = {
48
+ app_id?: true
49
+ token?: true
50
+ created_at?: true
51
+ }
52
+
53
+ export type Bot_tokensMaxAggregateInputType = {
54
+ app_id?: true
55
+ token?: true
56
+ created_at?: true
57
+ }
58
+
59
+ export type Bot_tokensCountAggregateInputType = {
60
+ app_id?: true
61
+ token?: true
62
+ created_at?: true
63
+ _all?: true
64
+ }
65
+
66
+ export type Bot_tokensAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
67
+ /**
68
+ * Filter which bot_tokens to aggregate.
69
+ */
70
+ where?: Prisma.bot_tokensWhereInput
71
+ /**
72
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
73
+ *
74
+ * Determine the order of bot_tokens to fetch.
75
+ */
76
+ orderBy?: Prisma.bot_tokensOrderByWithRelationInput | Prisma.bot_tokensOrderByWithRelationInput[]
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.bot_tokensWhereUniqueInput
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
85
+ *
86
+ * Take `±n` bot_tokens 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` bot_tokens.
93
+ */
94
+ skip?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
97
+ *
98
+ * Count returned bot_tokens
99
+ **/
100
+ _count?: true | Bot_tokensCountAggregateInputType
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?: Bot_tokensMinAggregateInputType
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?: Bot_tokensMaxAggregateInputType
113
+ }
114
+
115
+ export type GetBot_tokensAggregateType<T extends Bot_tokensAggregateArgs> = {
116
+ [P in keyof T & keyof AggregateBot_tokens]: P extends '_count' | 'count'
117
+ ? T[P] extends true
118
+ ? number
119
+ : Prisma.GetScalarType<T[P], AggregateBot_tokens[P]>
120
+ : Prisma.GetScalarType<T[P], AggregateBot_tokens[P]>
121
+ }
122
+
123
+
124
+
125
+
126
+ export type bot_tokensGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ where?: Prisma.bot_tokensWhereInput
128
+ orderBy?: Prisma.bot_tokensOrderByWithAggregationInput | Prisma.bot_tokensOrderByWithAggregationInput[]
129
+ by: Prisma.Bot_tokensScalarFieldEnum[] | Prisma.Bot_tokensScalarFieldEnum
130
+ having?: Prisma.bot_tokensScalarWhereWithAggregatesInput
131
+ take?: number
132
+ skip?: number
133
+ _count?: Bot_tokensCountAggregateInputType | true
134
+ _min?: Bot_tokensMinAggregateInputType
135
+ _max?: Bot_tokensMaxAggregateInputType
136
+ }
137
+
138
+ export type Bot_tokensGroupByOutputType = {
139
+ app_id: string
140
+ token: string
141
+ created_at: Date | null
142
+ _count: Bot_tokensCountAggregateOutputType | null
143
+ _min: Bot_tokensMinAggregateOutputType | null
144
+ _max: Bot_tokensMaxAggregateOutputType | null
145
+ }
146
+
147
+ type GetBot_tokensGroupByPayload<T extends bot_tokensGroupByArgs> = Prisma.PrismaPromise<
148
+ Array<
149
+ Prisma.PickEnumerable<Bot_tokensGroupByOutputType, T['by']> &
150
+ {
151
+ [P in ((keyof T) & (keyof Bot_tokensGroupByOutputType))]: P extends '_count'
152
+ ? T[P] extends boolean
153
+ ? number
154
+ : Prisma.GetScalarType<T[P], Bot_tokensGroupByOutputType[P]>
155
+ : Prisma.GetScalarType<T[P], Bot_tokensGroupByOutputType[P]>
156
+ }
157
+ >
158
+ >
159
+
160
+
161
+
162
+ export type bot_tokensWhereInput = {
163
+ AND?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
164
+ OR?: Prisma.bot_tokensWhereInput[]
165
+ NOT?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
166
+ app_id?: Prisma.StringFilter<"bot_tokens"> | string
167
+ token?: Prisma.StringFilter<"bot_tokens"> | string
168
+ created_at?: Prisma.DateTimeNullableFilter<"bot_tokens"> | Date | string | null
169
+ api_keys?: Prisma.XOR<Prisma.Bot_api_keysNullableScalarRelationFilter, Prisma.bot_api_keysWhereInput> | null
170
+ channels?: Prisma.Channel_directoriesListRelationFilter
171
+ forum_sync_configs?: Prisma.Forum_sync_configsListRelationFilter
172
+ global_model?: Prisma.XOR<Prisma.Global_modelsNullableScalarRelationFilter, Prisma.global_modelsWhereInput> | null
173
+ }
174
+
175
+ export type bot_tokensOrderByWithRelationInput = {
176
+ app_id?: Prisma.SortOrder
177
+ token?: Prisma.SortOrder
178
+ created_at?: Prisma.SortOrderInput | Prisma.SortOrder
179
+ api_keys?: Prisma.bot_api_keysOrderByWithRelationInput
180
+ channels?: Prisma.channel_directoriesOrderByRelationAggregateInput
181
+ forum_sync_configs?: Prisma.forum_sync_configsOrderByRelationAggregateInput
182
+ global_model?: Prisma.global_modelsOrderByWithRelationInput
183
+ }
184
+
185
+ export type bot_tokensWhereUniqueInput = Prisma.AtLeast<{
186
+ app_id?: string
187
+ AND?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
188
+ OR?: Prisma.bot_tokensWhereInput[]
189
+ NOT?: Prisma.bot_tokensWhereInput | Prisma.bot_tokensWhereInput[]
190
+ token?: Prisma.StringFilter<"bot_tokens"> | string
191
+ created_at?: Prisma.DateTimeNullableFilter<"bot_tokens"> | Date | string | null
192
+ api_keys?: Prisma.XOR<Prisma.Bot_api_keysNullableScalarRelationFilter, Prisma.bot_api_keysWhereInput> | null
193
+ channels?: Prisma.Channel_directoriesListRelationFilter
194
+ forum_sync_configs?: Prisma.Forum_sync_configsListRelationFilter
195
+ global_model?: Prisma.XOR<Prisma.Global_modelsNullableScalarRelationFilter, Prisma.global_modelsWhereInput> | null
196
+ }, "app_id">
197
+
198
+ export type bot_tokensOrderByWithAggregationInput = {
199
+ app_id?: Prisma.SortOrder
200
+ token?: Prisma.SortOrder
201
+ created_at?: Prisma.SortOrderInput | Prisma.SortOrder
202
+ _count?: Prisma.bot_tokensCountOrderByAggregateInput
203
+ _max?: Prisma.bot_tokensMaxOrderByAggregateInput
204
+ _min?: Prisma.bot_tokensMinOrderByAggregateInput
205
+ }
206
+
207
+ export type bot_tokensScalarWhereWithAggregatesInput = {
208
+ AND?: Prisma.bot_tokensScalarWhereWithAggregatesInput | Prisma.bot_tokensScalarWhereWithAggregatesInput[]
209
+ OR?: Prisma.bot_tokensScalarWhereWithAggregatesInput[]
210
+ NOT?: Prisma.bot_tokensScalarWhereWithAggregatesInput | Prisma.bot_tokensScalarWhereWithAggregatesInput[]
211
+ app_id?: Prisma.StringWithAggregatesFilter<"bot_tokens"> | string
212
+ token?: Prisma.StringWithAggregatesFilter<"bot_tokens"> | string
213
+ created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"bot_tokens"> | Date | string | null
214
+ }
215
+
216
+ export type bot_tokensCreateInput = {
217
+ app_id: string
218
+ token: string
219
+ created_at?: Date | string | null
220
+ api_keys?: Prisma.bot_api_keysCreateNestedOneWithoutBotInput
221
+ channels?: Prisma.channel_directoriesCreateNestedManyWithoutBotInput
222
+ forum_sync_configs?: Prisma.forum_sync_configsCreateNestedManyWithoutBotInput
223
+ global_model?: Prisma.global_modelsCreateNestedOneWithoutBotInput
224
+ }
225
+
226
+ export type bot_tokensUncheckedCreateInput = {
227
+ app_id: string
228
+ token: string
229
+ created_at?: Date | string | null
230
+ api_keys?: Prisma.bot_api_keysUncheckedCreateNestedOneWithoutBotInput
231
+ channels?: Prisma.channel_directoriesUncheckedCreateNestedManyWithoutBotInput
232
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedCreateNestedManyWithoutBotInput
233
+ global_model?: Prisma.global_modelsUncheckedCreateNestedOneWithoutBotInput
234
+ }
235
+
236
+ export type bot_tokensUpdateInput = {
237
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
238
+ token?: Prisma.StringFieldUpdateOperationsInput | string
239
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
240
+ api_keys?: Prisma.bot_api_keysUpdateOneWithoutBotNestedInput
241
+ channels?: Prisma.channel_directoriesUpdateManyWithoutBotNestedInput
242
+ forum_sync_configs?: Prisma.forum_sync_configsUpdateManyWithoutBotNestedInput
243
+ global_model?: Prisma.global_modelsUpdateOneWithoutBotNestedInput
244
+ }
245
+
246
+ export type bot_tokensUncheckedUpdateInput = {
247
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
248
+ token?: Prisma.StringFieldUpdateOperationsInput | string
249
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
250
+ api_keys?: Prisma.bot_api_keysUncheckedUpdateOneWithoutBotNestedInput
251
+ channels?: Prisma.channel_directoriesUncheckedUpdateManyWithoutBotNestedInput
252
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput
253
+ global_model?: Prisma.global_modelsUncheckedUpdateOneWithoutBotNestedInput
254
+ }
255
+
256
+ export type bot_tokensCreateManyInput = {
257
+ app_id: string
258
+ token: string
259
+ created_at?: Date | string | null
260
+ }
261
+
262
+ export type bot_tokensUpdateManyMutationInput = {
263
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
264
+ token?: Prisma.StringFieldUpdateOperationsInput | string
265
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
266
+ }
267
+
268
+ export type bot_tokensUncheckedUpdateManyInput = {
269
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
270
+ token?: Prisma.StringFieldUpdateOperationsInput | string
271
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
272
+ }
273
+
274
+ export type bot_tokensCountOrderByAggregateInput = {
275
+ app_id?: Prisma.SortOrder
276
+ token?: Prisma.SortOrder
277
+ created_at?: Prisma.SortOrder
278
+ }
279
+
280
+ export type bot_tokensMaxOrderByAggregateInput = {
281
+ app_id?: Prisma.SortOrder
282
+ token?: Prisma.SortOrder
283
+ created_at?: Prisma.SortOrder
284
+ }
285
+
286
+ export type bot_tokensMinOrderByAggregateInput = {
287
+ app_id?: Prisma.SortOrder
288
+ token?: Prisma.SortOrder
289
+ created_at?: Prisma.SortOrder
290
+ }
291
+
292
+ export type Bot_tokensNullableScalarRelationFilter = {
293
+ is?: Prisma.bot_tokensWhereInput | null
294
+ isNot?: Prisma.bot_tokensWhereInput | null
295
+ }
296
+
297
+ export type Bot_tokensScalarRelationFilter = {
298
+ is?: Prisma.bot_tokensWhereInput
299
+ isNot?: Prisma.bot_tokensWhereInput
300
+ }
301
+
302
+ export type bot_tokensCreateNestedOneWithoutChannelsInput = {
303
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutChannelsInput, Prisma.bot_tokensUncheckedCreateWithoutChannelsInput>
304
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutChannelsInput
305
+ connect?: Prisma.bot_tokensWhereUniqueInput
306
+ }
307
+
308
+ export type bot_tokensUpdateOneWithoutChannelsNestedInput = {
309
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutChannelsInput, Prisma.bot_tokensUncheckedCreateWithoutChannelsInput>
310
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutChannelsInput
311
+ upsert?: Prisma.bot_tokensUpsertWithoutChannelsInput
312
+ disconnect?: Prisma.bot_tokensWhereInput | boolean
313
+ delete?: Prisma.bot_tokensWhereInput | boolean
314
+ connect?: Prisma.bot_tokensWhereUniqueInput
315
+ update?: Prisma.XOR<Prisma.XOR<Prisma.bot_tokensUpdateToOneWithWhereWithoutChannelsInput, Prisma.bot_tokensUpdateWithoutChannelsInput>, Prisma.bot_tokensUncheckedUpdateWithoutChannelsInput>
316
+ }
317
+
318
+ export type bot_tokensCreateNestedOneWithoutApi_keysInput = {
319
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
320
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutApi_keysInput
321
+ connect?: Prisma.bot_tokensWhereUniqueInput
322
+ }
323
+
324
+ export type bot_tokensUpdateOneRequiredWithoutApi_keysNestedInput = {
325
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
326
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutApi_keysInput
327
+ upsert?: Prisma.bot_tokensUpsertWithoutApi_keysInput
328
+ connect?: Prisma.bot_tokensWhereUniqueInput
329
+ update?: Prisma.XOR<Prisma.XOR<Prisma.bot_tokensUpdateToOneWithWhereWithoutApi_keysInput, Prisma.bot_tokensUpdateWithoutApi_keysInput>, Prisma.bot_tokensUncheckedUpdateWithoutApi_keysInput>
330
+ }
331
+
332
+ export type bot_tokensCreateNestedOneWithoutGlobal_modelInput = {
333
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
334
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutGlobal_modelInput
335
+ connect?: Prisma.bot_tokensWhereUniqueInput
336
+ }
337
+
338
+ export type bot_tokensUpdateOneRequiredWithoutGlobal_modelNestedInput = {
339
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
340
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutGlobal_modelInput
341
+ upsert?: Prisma.bot_tokensUpsertWithoutGlobal_modelInput
342
+ connect?: Prisma.bot_tokensWhereUniqueInput
343
+ update?: Prisma.XOR<Prisma.XOR<Prisma.bot_tokensUpdateToOneWithWhereWithoutGlobal_modelInput, Prisma.bot_tokensUpdateWithoutGlobal_modelInput>, Prisma.bot_tokensUncheckedUpdateWithoutGlobal_modelInput>
344
+ }
345
+
346
+ export type bot_tokensCreateNestedOneWithoutForum_sync_configsInput = {
347
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
348
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutForum_sync_configsInput
349
+ connect?: Prisma.bot_tokensWhereUniqueInput
350
+ }
351
+
352
+ export type bot_tokensUpdateOneRequiredWithoutForum_sync_configsNestedInput = {
353
+ create?: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
354
+ connectOrCreate?: Prisma.bot_tokensCreateOrConnectWithoutForum_sync_configsInput
355
+ upsert?: Prisma.bot_tokensUpsertWithoutForum_sync_configsInput
356
+ connect?: Prisma.bot_tokensWhereUniqueInput
357
+ update?: Prisma.XOR<Prisma.XOR<Prisma.bot_tokensUpdateToOneWithWhereWithoutForum_sync_configsInput, Prisma.bot_tokensUpdateWithoutForum_sync_configsInput>, Prisma.bot_tokensUncheckedUpdateWithoutForum_sync_configsInput>
358
+ }
359
+
360
+ export type bot_tokensCreateWithoutChannelsInput = {
361
+ app_id: string
362
+ token: string
363
+ created_at?: Date | string | null
364
+ api_keys?: Prisma.bot_api_keysCreateNestedOneWithoutBotInput
365
+ forum_sync_configs?: Prisma.forum_sync_configsCreateNestedManyWithoutBotInput
366
+ global_model?: Prisma.global_modelsCreateNestedOneWithoutBotInput
367
+ }
368
+
369
+ export type bot_tokensUncheckedCreateWithoutChannelsInput = {
370
+ app_id: string
371
+ token: string
372
+ created_at?: Date | string | null
373
+ api_keys?: Prisma.bot_api_keysUncheckedCreateNestedOneWithoutBotInput
374
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedCreateNestedManyWithoutBotInput
375
+ global_model?: Prisma.global_modelsUncheckedCreateNestedOneWithoutBotInput
376
+ }
377
+
378
+ export type bot_tokensCreateOrConnectWithoutChannelsInput = {
379
+ where: Prisma.bot_tokensWhereUniqueInput
380
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutChannelsInput, Prisma.bot_tokensUncheckedCreateWithoutChannelsInput>
381
+ }
382
+
383
+ export type bot_tokensUpsertWithoutChannelsInput = {
384
+ update: Prisma.XOR<Prisma.bot_tokensUpdateWithoutChannelsInput, Prisma.bot_tokensUncheckedUpdateWithoutChannelsInput>
385
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutChannelsInput, Prisma.bot_tokensUncheckedCreateWithoutChannelsInput>
386
+ where?: Prisma.bot_tokensWhereInput
387
+ }
388
+
389
+ export type bot_tokensUpdateToOneWithWhereWithoutChannelsInput = {
390
+ where?: Prisma.bot_tokensWhereInput
391
+ data: Prisma.XOR<Prisma.bot_tokensUpdateWithoutChannelsInput, Prisma.bot_tokensUncheckedUpdateWithoutChannelsInput>
392
+ }
393
+
394
+ export type bot_tokensUpdateWithoutChannelsInput = {
395
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
396
+ token?: Prisma.StringFieldUpdateOperationsInput | string
397
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
398
+ api_keys?: Prisma.bot_api_keysUpdateOneWithoutBotNestedInput
399
+ forum_sync_configs?: Prisma.forum_sync_configsUpdateManyWithoutBotNestedInput
400
+ global_model?: Prisma.global_modelsUpdateOneWithoutBotNestedInput
401
+ }
402
+
403
+ export type bot_tokensUncheckedUpdateWithoutChannelsInput = {
404
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
405
+ token?: Prisma.StringFieldUpdateOperationsInput | string
406
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
407
+ api_keys?: Prisma.bot_api_keysUncheckedUpdateOneWithoutBotNestedInput
408
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput
409
+ global_model?: Prisma.global_modelsUncheckedUpdateOneWithoutBotNestedInput
410
+ }
411
+
412
+ export type bot_tokensCreateWithoutApi_keysInput = {
413
+ app_id: string
414
+ token: string
415
+ created_at?: Date | string | null
416
+ channels?: Prisma.channel_directoriesCreateNestedManyWithoutBotInput
417
+ forum_sync_configs?: Prisma.forum_sync_configsCreateNestedManyWithoutBotInput
418
+ global_model?: Prisma.global_modelsCreateNestedOneWithoutBotInput
419
+ }
420
+
421
+ export type bot_tokensUncheckedCreateWithoutApi_keysInput = {
422
+ app_id: string
423
+ token: string
424
+ created_at?: Date | string | null
425
+ channels?: Prisma.channel_directoriesUncheckedCreateNestedManyWithoutBotInput
426
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedCreateNestedManyWithoutBotInput
427
+ global_model?: Prisma.global_modelsUncheckedCreateNestedOneWithoutBotInput
428
+ }
429
+
430
+ export type bot_tokensCreateOrConnectWithoutApi_keysInput = {
431
+ where: Prisma.bot_tokensWhereUniqueInput
432
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
433
+ }
434
+
435
+ export type bot_tokensUpsertWithoutApi_keysInput = {
436
+ update: Prisma.XOR<Prisma.bot_tokensUpdateWithoutApi_keysInput, Prisma.bot_tokensUncheckedUpdateWithoutApi_keysInput>
437
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutApi_keysInput, Prisma.bot_tokensUncheckedCreateWithoutApi_keysInput>
438
+ where?: Prisma.bot_tokensWhereInput
439
+ }
440
+
441
+ export type bot_tokensUpdateToOneWithWhereWithoutApi_keysInput = {
442
+ where?: Prisma.bot_tokensWhereInput
443
+ data: Prisma.XOR<Prisma.bot_tokensUpdateWithoutApi_keysInput, Prisma.bot_tokensUncheckedUpdateWithoutApi_keysInput>
444
+ }
445
+
446
+ export type bot_tokensUpdateWithoutApi_keysInput = {
447
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
448
+ token?: Prisma.StringFieldUpdateOperationsInput | string
449
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
450
+ channels?: Prisma.channel_directoriesUpdateManyWithoutBotNestedInput
451
+ forum_sync_configs?: Prisma.forum_sync_configsUpdateManyWithoutBotNestedInput
452
+ global_model?: Prisma.global_modelsUpdateOneWithoutBotNestedInput
453
+ }
454
+
455
+ export type bot_tokensUncheckedUpdateWithoutApi_keysInput = {
456
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
457
+ token?: Prisma.StringFieldUpdateOperationsInput | string
458
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
459
+ channels?: Prisma.channel_directoriesUncheckedUpdateManyWithoutBotNestedInput
460
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput
461
+ global_model?: Prisma.global_modelsUncheckedUpdateOneWithoutBotNestedInput
462
+ }
463
+
464
+ export type bot_tokensCreateWithoutGlobal_modelInput = {
465
+ app_id: string
466
+ token: string
467
+ created_at?: Date | string | null
468
+ api_keys?: Prisma.bot_api_keysCreateNestedOneWithoutBotInput
469
+ channels?: Prisma.channel_directoriesCreateNestedManyWithoutBotInput
470
+ forum_sync_configs?: Prisma.forum_sync_configsCreateNestedManyWithoutBotInput
471
+ }
472
+
473
+ export type bot_tokensUncheckedCreateWithoutGlobal_modelInput = {
474
+ app_id: string
475
+ token: string
476
+ created_at?: Date | string | null
477
+ api_keys?: Prisma.bot_api_keysUncheckedCreateNestedOneWithoutBotInput
478
+ channels?: Prisma.channel_directoriesUncheckedCreateNestedManyWithoutBotInput
479
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedCreateNestedManyWithoutBotInput
480
+ }
481
+
482
+ export type bot_tokensCreateOrConnectWithoutGlobal_modelInput = {
483
+ where: Prisma.bot_tokensWhereUniqueInput
484
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
485
+ }
486
+
487
+ export type bot_tokensUpsertWithoutGlobal_modelInput = {
488
+ update: Prisma.XOR<Prisma.bot_tokensUpdateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedUpdateWithoutGlobal_modelInput>
489
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedCreateWithoutGlobal_modelInput>
490
+ where?: Prisma.bot_tokensWhereInput
491
+ }
492
+
493
+ export type bot_tokensUpdateToOneWithWhereWithoutGlobal_modelInput = {
494
+ where?: Prisma.bot_tokensWhereInput
495
+ data: Prisma.XOR<Prisma.bot_tokensUpdateWithoutGlobal_modelInput, Prisma.bot_tokensUncheckedUpdateWithoutGlobal_modelInput>
496
+ }
497
+
498
+ export type bot_tokensUpdateWithoutGlobal_modelInput = {
499
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
500
+ token?: Prisma.StringFieldUpdateOperationsInput | string
501
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
502
+ api_keys?: Prisma.bot_api_keysUpdateOneWithoutBotNestedInput
503
+ channels?: Prisma.channel_directoriesUpdateManyWithoutBotNestedInput
504
+ forum_sync_configs?: Prisma.forum_sync_configsUpdateManyWithoutBotNestedInput
505
+ }
506
+
507
+ export type bot_tokensUncheckedUpdateWithoutGlobal_modelInput = {
508
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
509
+ token?: Prisma.StringFieldUpdateOperationsInput | string
510
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
511
+ api_keys?: Prisma.bot_api_keysUncheckedUpdateOneWithoutBotNestedInput
512
+ channels?: Prisma.channel_directoriesUncheckedUpdateManyWithoutBotNestedInput
513
+ forum_sync_configs?: Prisma.forum_sync_configsUncheckedUpdateManyWithoutBotNestedInput
514
+ }
515
+
516
+ export type bot_tokensCreateWithoutForum_sync_configsInput = {
517
+ app_id: string
518
+ token: string
519
+ created_at?: Date | string | null
520
+ api_keys?: Prisma.bot_api_keysCreateNestedOneWithoutBotInput
521
+ channels?: Prisma.channel_directoriesCreateNestedManyWithoutBotInput
522
+ global_model?: Prisma.global_modelsCreateNestedOneWithoutBotInput
523
+ }
524
+
525
+ export type bot_tokensUncheckedCreateWithoutForum_sync_configsInput = {
526
+ app_id: string
527
+ token: string
528
+ created_at?: Date | string | null
529
+ api_keys?: Prisma.bot_api_keysUncheckedCreateNestedOneWithoutBotInput
530
+ channels?: Prisma.channel_directoriesUncheckedCreateNestedManyWithoutBotInput
531
+ global_model?: Prisma.global_modelsUncheckedCreateNestedOneWithoutBotInput
532
+ }
533
+
534
+ export type bot_tokensCreateOrConnectWithoutForum_sync_configsInput = {
535
+ where: Prisma.bot_tokensWhereUniqueInput
536
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
537
+ }
538
+
539
+ export type bot_tokensUpsertWithoutForum_sync_configsInput = {
540
+ update: Prisma.XOR<Prisma.bot_tokensUpdateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedUpdateWithoutForum_sync_configsInput>
541
+ create: Prisma.XOR<Prisma.bot_tokensCreateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedCreateWithoutForum_sync_configsInput>
542
+ where?: Prisma.bot_tokensWhereInput
543
+ }
544
+
545
+ export type bot_tokensUpdateToOneWithWhereWithoutForum_sync_configsInput = {
546
+ where?: Prisma.bot_tokensWhereInput
547
+ data: Prisma.XOR<Prisma.bot_tokensUpdateWithoutForum_sync_configsInput, Prisma.bot_tokensUncheckedUpdateWithoutForum_sync_configsInput>
548
+ }
549
+
550
+ export type bot_tokensUpdateWithoutForum_sync_configsInput = {
551
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
552
+ token?: Prisma.StringFieldUpdateOperationsInput | string
553
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
554
+ api_keys?: Prisma.bot_api_keysUpdateOneWithoutBotNestedInput
555
+ channels?: Prisma.channel_directoriesUpdateManyWithoutBotNestedInput
556
+ global_model?: Prisma.global_modelsUpdateOneWithoutBotNestedInput
557
+ }
558
+
559
+ export type bot_tokensUncheckedUpdateWithoutForum_sync_configsInput = {
560
+ app_id?: Prisma.StringFieldUpdateOperationsInput | string
561
+ token?: Prisma.StringFieldUpdateOperationsInput | string
562
+ created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
563
+ api_keys?: Prisma.bot_api_keysUncheckedUpdateOneWithoutBotNestedInput
564
+ channels?: Prisma.channel_directoriesUncheckedUpdateManyWithoutBotNestedInput
565
+ global_model?: Prisma.global_modelsUncheckedUpdateOneWithoutBotNestedInput
566
+ }
567
+
568
+
569
+ /**
570
+ * Count Type Bot_tokensCountOutputType
571
+ */
572
+
573
+ export type Bot_tokensCountOutputType = {
574
+ channels: number
575
+ forum_sync_configs: number
576
+ }
577
+
578
+ export type Bot_tokensCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
579
+ channels?: boolean | Bot_tokensCountOutputTypeCountChannelsArgs
580
+ forum_sync_configs?: boolean | Bot_tokensCountOutputTypeCountForum_sync_configsArgs
581
+ }
582
+
583
+ /**
584
+ * Bot_tokensCountOutputType without action
585
+ */
586
+ export type Bot_tokensCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
587
+ /**
588
+ * Select specific fields to fetch from the Bot_tokensCountOutputType
589
+ */
590
+ select?: Prisma.Bot_tokensCountOutputTypeSelect<ExtArgs> | null
591
+ }
592
+
593
+ /**
594
+ * Bot_tokensCountOutputType without action
595
+ */
596
+ export type Bot_tokensCountOutputTypeCountChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
597
+ where?: Prisma.channel_directoriesWhereInput
598
+ }
599
+
600
+ /**
601
+ * Bot_tokensCountOutputType without action
602
+ */
603
+ export type Bot_tokensCountOutputTypeCountForum_sync_configsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
604
+ where?: Prisma.forum_sync_configsWhereInput
605
+ }
606
+
607
+
608
+ export type bot_tokensSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
609
+ app_id?: boolean
610
+ token?: boolean
611
+ created_at?: boolean
612
+ api_keys?: boolean | Prisma.bot_tokens$api_keysArgs<ExtArgs>
613
+ channels?: boolean | Prisma.bot_tokens$channelsArgs<ExtArgs>
614
+ forum_sync_configs?: boolean | Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs>
615
+ global_model?: boolean | Prisma.bot_tokens$global_modelArgs<ExtArgs>
616
+ _count?: boolean | Prisma.Bot_tokensCountOutputTypeDefaultArgs<ExtArgs>
617
+ }, ExtArgs["result"]["bot_tokens"]>
618
+
619
+ export type bot_tokensSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
620
+ app_id?: boolean
621
+ token?: boolean
622
+ created_at?: boolean
623
+ }, ExtArgs["result"]["bot_tokens"]>
624
+
625
+ export type bot_tokensSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
626
+ app_id?: boolean
627
+ token?: boolean
628
+ created_at?: boolean
629
+ }, ExtArgs["result"]["bot_tokens"]>
630
+
631
+ export type bot_tokensSelectScalar = {
632
+ app_id?: boolean
633
+ token?: boolean
634
+ created_at?: boolean
635
+ }
636
+
637
+ export type bot_tokensOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"app_id" | "token" | "created_at", ExtArgs["result"]["bot_tokens"]>
638
+ export type bot_tokensInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
639
+ api_keys?: boolean | Prisma.bot_tokens$api_keysArgs<ExtArgs>
640
+ channels?: boolean | Prisma.bot_tokens$channelsArgs<ExtArgs>
641
+ forum_sync_configs?: boolean | Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs>
642
+ global_model?: boolean | Prisma.bot_tokens$global_modelArgs<ExtArgs>
643
+ _count?: boolean | Prisma.Bot_tokensCountOutputTypeDefaultArgs<ExtArgs>
644
+ }
645
+ export type bot_tokensIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
646
+ export type bot_tokensIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
647
+
648
+ export type $bot_tokensPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
649
+ name: "bot_tokens"
650
+ objects: {
651
+ api_keys: Prisma.$bot_api_keysPayload<ExtArgs> | null
652
+ channels: Prisma.$channel_directoriesPayload<ExtArgs>[]
653
+ forum_sync_configs: Prisma.$forum_sync_configsPayload<ExtArgs>[]
654
+ global_model: Prisma.$global_modelsPayload<ExtArgs> | null
655
+ }
656
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
657
+ app_id: string
658
+ token: string
659
+ created_at: Date | null
660
+ }, ExtArgs["result"]["bot_tokens"]>
661
+ composites: {}
662
+ }
663
+
664
+ export type bot_tokensGetPayload<S extends boolean | null | undefined | bot_tokensDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload, S>
665
+
666
+ export type bot_tokensCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
667
+ Omit<bot_tokensFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
668
+ select?: Bot_tokensCountAggregateInputType | true
669
+ }
670
+
671
+ export interface bot_tokensDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
672
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['bot_tokens'], meta: { name: 'bot_tokens' } }
673
+ /**
674
+ * Find zero or one Bot_tokens that matches the filter.
675
+ * @param {bot_tokensFindUniqueArgs} args - Arguments to find a Bot_tokens
676
+ * @example
677
+ * // Get one Bot_tokens
678
+ * const bot_tokens = await prisma.bot_tokens.findUnique({
679
+ * where: {
680
+ * // ... provide filter here
681
+ * }
682
+ * })
683
+ */
684
+ findUnique<T extends bot_tokensFindUniqueArgs>(args: Prisma.SelectSubset<T, bot_tokensFindUniqueArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
685
+
686
+ /**
687
+ * Find one Bot_tokens that matches the filter or throw an error with `error.code='P2025'`
688
+ * if no matches were found.
689
+ * @param {bot_tokensFindUniqueOrThrowArgs} args - Arguments to find a Bot_tokens
690
+ * @example
691
+ * // Get one Bot_tokens
692
+ * const bot_tokens = await prisma.bot_tokens.findUniqueOrThrow({
693
+ * where: {
694
+ * // ... provide filter here
695
+ * }
696
+ * })
697
+ */
698
+ findUniqueOrThrow<T extends bot_tokensFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, bot_tokensFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
699
+
700
+ /**
701
+ * Find the first Bot_tokens that matches the filter.
702
+ * Note, that providing `undefined` is treated as the value not being there.
703
+ * Read more here: https://pris.ly/d/null-undefined
704
+ * @param {bot_tokensFindFirstArgs} args - Arguments to find a Bot_tokens
705
+ * @example
706
+ * // Get one Bot_tokens
707
+ * const bot_tokens = await prisma.bot_tokens.findFirst({
708
+ * where: {
709
+ * // ... provide filter here
710
+ * }
711
+ * })
712
+ */
713
+ findFirst<T extends bot_tokensFindFirstArgs>(args?: Prisma.SelectSubset<T, bot_tokensFindFirstArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
714
+
715
+ /**
716
+ * Find the first Bot_tokens that matches the filter or
717
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
718
+ * Note, that providing `undefined` is treated as the value not being there.
719
+ * Read more here: https://pris.ly/d/null-undefined
720
+ * @param {bot_tokensFindFirstOrThrowArgs} args - Arguments to find a Bot_tokens
721
+ * @example
722
+ * // Get one Bot_tokens
723
+ * const bot_tokens = await prisma.bot_tokens.findFirstOrThrow({
724
+ * where: {
725
+ * // ... provide filter here
726
+ * }
727
+ * })
728
+ */
729
+ findFirstOrThrow<T extends bot_tokensFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, bot_tokensFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
730
+
731
+ /**
732
+ * Find zero or more Bot_tokens that matches the filter.
733
+ * Note, that providing `undefined` is treated as the value not being there.
734
+ * Read more here: https://pris.ly/d/null-undefined
735
+ * @param {bot_tokensFindManyArgs} args - Arguments to filter and select certain fields only.
736
+ * @example
737
+ * // Get all Bot_tokens
738
+ * const bot_tokens = await prisma.bot_tokens.findMany()
739
+ *
740
+ * // Get first 10 Bot_tokens
741
+ * const bot_tokens = await prisma.bot_tokens.findMany({ take: 10 })
742
+ *
743
+ * // Only select the `app_id`
744
+ * const bot_tokensWithApp_idOnly = await prisma.bot_tokens.findMany({ select: { app_id: true } })
745
+ *
746
+ */
747
+ findMany<T extends bot_tokensFindManyArgs>(args?: Prisma.SelectSubset<T, bot_tokensFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
748
+
749
+ /**
750
+ * Create a Bot_tokens.
751
+ * @param {bot_tokensCreateArgs} args - Arguments to create a Bot_tokens.
752
+ * @example
753
+ * // Create one Bot_tokens
754
+ * const Bot_tokens = await prisma.bot_tokens.create({
755
+ * data: {
756
+ * // ... data to create a Bot_tokens
757
+ * }
758
+ * })
759
+ *
760
+ */
761
+ create<T extends bot_tokensCreateArgs>(args: Prisma.SelectSubset<T, bot_tokensCreateArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
762
+
763
+ /**
764
+ * Create many Bot_tokens.
765
+ * @param {bot_tokensCreateManyArgs} args - Arguments to create many Bot_tokens.
766
+ * @example
767
+ * // Create many Bot_tokens
768
+ * const bot_tokens = await prisma.bot_tokens.createMany({
769
+ * data: [
770
+ * // ... provide data here
771
+ * ]
772
+ * })
773
+ *
774
+ */
775
+ createMany<T extends bot_tokensCreateManyArgs>(args?: Prisma.SelectSubset<T, bot_tokensCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
776
+
777
+ /**
778
+ * Create many Bot_tokens and returns the data saved in the database.
779
+ * @param {bot_tokensCreateManyAndReturnArgs} args - Arguments to create many Bot_tokens.
780
+ * @example
781
+ * // Create many Bot_tokens
782
+ * const bot_tokens = await prisma.bot_tokens.createManyAndReturn({
783
+ * data: [
784
+ * // ... provide data here
785
+ * ]
786
+ * })
787
+ *
788
+ * // Create many Bot_tokens and only return the `app_id`
789
+ * const bot_tokensWithApp_idOnly = await prisma.bot_tokens.createManyAndReturn({
790
+ * select: { app_id: true },
791
+ * data: [
792
+ * // ... provide data here
793
+ * ]
794
+ * })
795
+ * Note, that providing `undefined` is treated as the value not being there.
796
+ * Read more here: https://pris.ly/d/null-undefined
797
+ *
798
+ */
799
+ createManyAndReturn<T extends bot_tokensCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, bot_tokensCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
800
+
801
+ /**
802
+ * Delete a Bot_tokens.
803
+ * @param {bot_tokensDeleteArgs} args - Arguments to delete one Bot_tokens.
804
+ * @example
805
+ * // Delete one Bot_tokens
806
+ * const Bot_tokens = await prisma.bot_tokens.delete({
807
+ * where: {
808
+ * // ... filter to delete one Bot_tokens
809
+ * }
810
+ * })
811
+ *
812
+ */
813
+ delete<T extends bot_tokensDeleteArgs>(args: Prisma.SelectSubset<T, bot_tokensDeleteArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
814
+
815
+ /**
816
+ * Update one Bot_tokens.
817
+ * @param {bot_tokensUpdateArgs} args - Arguments to update one Bot_tokens.
818
+ * @example
819
+ * // Update one Bot_tokens
820
+ * const bot_tokens = await prisma.bot_tokens.update({
821
+ * where: {
822
+ * // ... provide filter here
823
+ * },
824
+ * data: {
825
+ * // ... provide data here
826
+ * }
827
+ * })
828
+ *
829
+ */
830
+ update<T extends bot_tokensUpdateArgs>(args: Prisma.SelectSubset<T, bot_tokensUpdateArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
831
+
832
+ /**
833
+ * Delete zero or more Bot_tokens.
834
+ * @param {bot_tokensDeleteManyArgs} args - Arguments to filter Bot_tokens to delete.
835
+ * @example
836
+ * // Delete a few Bot_tokens
837
+ * const { count } = await prisma.bot_tokens.deleteMany({
838
+ * where: {
839
+ * // ... provide filter here
840
+ * }
841
+ * })
842
+ *
843
+ */
844
+ deleteMany<T extends bot_tokensDeleteManyArgs>(args?: Prisma.SelectSubset<T, bot_tokensDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
845
+
846
+ /**
847
+ * Update zero or more Bot_tokens.
848
+ * Note, that providing `undefined` is treated as the value not being there.
849
+ * Read more here: https://pris.ly/d/null-undefined
850
+ * @param {bot_tokensUpdateManyArgs} args - Arguments to update one or more rows.
851
+ * @example
852
+ * // Update many Bot_tokens
853
+ * const bot_tokens = await prisma.bot_tokens.updateMany({
854
+ * where: {
855
+ * // ... provide filter here
856
+ * },
857
+ * data: {
858
+ * // ... provide data here
859
+ * }
860
+ * })
861
+ *
862
+ */
863
+ updateMany<T extends bot_tokensUpdateManyArgs>(args: Prisma.SelectSubset<T, bot_tokensUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
864
+
865
+ /**
866
+ * Update zero or more Bot_tokens and returns the data updated in the database.
867
+ * @param {bot_tokensUpdateManyAndReturnArgs} args - Arguments to update many Bot_tokens.
868
+ * @example
869
+ * // Update many Bot_tokens
870
+ * const bot_tokens = await prisma.bot_tokens.updateManyAndReturn({
871
+ * where: {
872
+ * // ... provide filter here
873
+ * },
874
+ * data: [
875
+ * // ... provide data here
876
+ * ]
877
+ * })
878
+ *
879
+ * // Update zero or more Bot_tokens and only return the `app_id`
880
+ * const bot_tokensWithApp_idOnly = await prisma.bot_tokens.updateManyAndReturn({
881
+ * select: { app_id: true },
882
+ * where: {
883
+ * // ... provide filter here
884
+ * },
885
+ * data: [
886
+ * // ... provide data here
887
+ * ]
888
+ * })
889
+ * Note, that providing `undefined` is treated as the value not being there.
890
+ * Read more here: https://pris.ly/d/null-undefined
891
+ *
892
+ */
893
+ updateManyAndReturn<T extends bot_tokensUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, bot_tokensUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
894
+
895
+ /**
896
+ * Create or update one Bot_tokens.
897
+ * @param {bot_tokensUpsertArgs} args - Arguments to update or create a Bot_tokens.
898
+ * @example
899
+ * // Update or create a Bot_tokens
900
+ * const bot_tokens = await prisma.bot_tokens.upsert({
901
+ * create: {
902
+ * // ... data to create a Bot_tokens
903
+ * },
904
+ * update: {
905
+ * // ... in case it already exists, update
906
+ * },
907
+ * where: {
908
+ * // ... the filter for the Bot_tokens we want to update
909
+ * }
910
+ * })
911
+ */
912
+ upsert<T extends bot_tokensUpsertArgs>(args: Prisma.SelectSubset<T, bot_tokensUpsertArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
913
+
914
+
915
+ /**
916
+ * Count the number of Bot_tokens.
917
+ * Note, that providing `undefined` is treated as the value not being there.
918
+ * Read more here: https://pris.ly/d/null-undefined
919
+ * @param {bot_tokensCountArgs} args - Arguments to filter Bot_tokens to count.
920
+ * @example
921
+ * // Count the number of Bot_tokens
922
+ * const count = await prisma.bot_tokens.count({
923
+ * where: {
924
+ * // ... the filter for the Bot_tokens we want to count
925
+ * }
926
+ * })
927
+ **/
928
+ count<T extends bot_tokensCountArgs>(
929
+ args?: Prisma.Subset<T, bot_tokensCountArgs>,
930
+ ): Prisma.PrismaPromise<
931
+ T extends runtime.Types.Utils.Record<'select', any>
932
+ ? T['select'] extends true
933
+ ? number
934
+ : Prisma.GetScalarType<T['select'], Bot_tokensCountAggregateOutputType>
935
+ : number
936
+ >
937
+
938
+ /**
939
+ * Allows you to perform aggregations operations on a Bot_tokens.
940
+ * Note, that providing `undefined` is treated as the value not being there.
941
+ * Read more here: https://pris.ly/d/null-undefined
942
+ * @param {Bot_tokensAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
943
+ * @example
944
+ * // Ordered by age ascending
945
+ * // Where email contains prisma.io
946
+ * // Limited to the 10 users
947
+ * const aggregations = await prisma.user.aggregate({
948
+ * _avg: {
949
+ * age: true,
950
+ * },
951
+ * where: {
952
+ * email: {
953
+ * contains: "prisma.io",
954
+ * },
955
+ * },
956
+ * orderBy: {
957
+ * age: "asc",
958
+ * },
959
+ * take: 10,
960
+ * })
961
+ **/
962
+ aggregate<T extends Bot_tokensAggregateArgs>(args: Prisma.Subset<T, Bot_tokensAggregateArgs>): Prisma.PrismaPromise<GetBot_tokensAggregateType<T>>
963
+
964
+ /**
965
+ * Group by Bot_tokens.
966
+ * Note, that providing `undefined` is treated as the value not being there.
967
+ * Read more here: https://pris.ly/d/null-undefined
968
+ * @param {bot_tokensGroupByArgs} args - Group by arguments.
969
+ * @example
970
+ * // Group by city, order by createdAt, get count
971
+ * const result = await prisma.user.groupBy({
972
+ * by: ['city', 'createdAt'],
973
+ * orderBy: {
974
+ * createdAt: true
975
+ * },
976
+ * _count: {
977
+ * _all: true
978
+ * },
979
+ * })
980
+ *
981
+ **/
982
+ groupBy<
983
+ T extends bot_tokensGroupByArgs,
984
+ HasSelectOrTake extends Prisma.Or<
985
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
986
+ Prisma.Extends<'take', Prisma.Keys<T>>
987
+ >,
988
+ OrderByArg extends Prisma.True extends HasSelectOrTake
989
+ ? { orderBy: bot_tokensGroupByArgs['orderBy'] }
990
+ : { orderBy?: bot_tokensGroupByArgs['orderBy'] },
991
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
992
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
993
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
994
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
995
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
996
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
997
+ InputErrors extends ByEmpty extends Prisma.True
998
+ ? `Error: "by" must not be empty.`
999
+ : HavingValid extends Prisma.False
1000
+ ? {
1001
+ [P in HavingFields]: P extends ByFields
1002
+ ? never
1003
+ : P extends string
1004
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1005
+ : [
1006
+ Error,
1007
+ 'Field ',
1008
+ P,
1009
+ ` in "having" needs to be provided in "by"`,
1010
+ ]
1011
+ }[HavingFields]
1012
+ : 'take' extends Prisma.Keys<T>
1013
+ ? 'orderBy' extends Prisma.Keys<T>
1014
+ ? ByValid extends Prisma.True
1015
+ ? {}
1016
+ : {
1017
+ [P in OrderFields]: P extends ByFields
1018
+ ? never
1019
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1020
+ }[OrderFields]
1021
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1022
+ : 'skip' extends Prisma.Keys<T>
1023
+ ? 'orderBy' extends Prisma.Keys<T>
1024
+ ? ByValid extends Prisma.True
1025
+ ? {}
1026
+ : {
1027
+ [P in OrderFields]: P extends ByFields
1028
+ ? never
1029
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1030
+ }[OrderFields]
1031
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1032
+ : ByValid extends Prisma.True
1033
+ ? {}
1034
+ : {
1035
+ [P in OrderFields]: P extends ByFields
1036
+ ? never
1037
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1038
+ }[OrderFields]
1039
+ >(args: Prisma.SubsetIntersection<T, bot_tokensGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBot_tokensGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1040
+ /**
1041
+ * Fields of the bot_tokens model
1042
+ */
1043
+ readonly fields: bot_tokensFieldRefs;
1044
+ }
1045
+
1046
+ /**
1047
+ * The delegate class that acts as a "Promise-like" for bot_tokens.
1048
+ * Why is this prefixed with `Prisma__`?
1049
+ * Because we want to prevent naming conflicts as mentioned in
1050
+ * https://github.com/prisma/prisma-client-js/issues/707
1051
+ */
1052
+ export interface Prisma__bot_tokensClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1053
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1054
+ api_keys<T extends Prisma.bot_tokens$api_keysArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokens$api_keysArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1055
+ channels<T extends Prisma.bot_tokens$channelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokens$channelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$channel_directoriesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1056
+ forum_sync_configs<T extends Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokens$forum_sync_configsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$forum_sync_configsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1057
+ global_model<T extends Prisma.bot_tokens$global_modelArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokens$global_modelArgs<ExtArgs>>): Prisma.Prisma__global_modelsClient<runtime.Types.Result.GetResult<Prisma.$global_modelsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1058
+ /**
1059
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1060
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1061
+ * @param onrejected The callback to execute when the Promise is rejected.
1062
+ * @returns A Promise for the completion of which ever callback is executed.
1063
+ */
1064
+ 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>
1065
+ /**
1066
+ * Attaches a callback for only the rejection of the Promise.
1067
+ * @param onrejected The callback to execute when the Promise is rejected.
1068
+ * @returns A Promise for the completion of the callback.
1069
+ */
1070
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1071
+ /**
1072
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1073
+ * resolved value cannot be modified from the callback.
1074
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1075
+ * @returns A Promise for the completion of the callback.
1076
+ */
1077
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1078
+ }
1079
+
1080
+
1081
+
1082
+
1083
+ /**
1084
+ * Fields of the bot_tokens model
1085
+ */
1086
+ export interface bot_tokensFieldRefs {
1087
+ readonly app_id: Prisma.FieldRef<"bot_tokens", 'String'>
1088
+ readonly token: Prisma.FieldRef<"bot_tokens", 'String'>
1089
+ readonly created_at: Prisma.FieldRef<"bot_tokens", 'DateTime'>
1090
+ }
1091
+
1092
+
1093
+ // Custom InputTypes
1094
+ /**
1095
+ * bot_tokens findUnique
1096
+ */
1097
+ export type bot_tokensFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1098
+ /**
1099
+ * Select specific fields to fetch from the bot_tokens
1100
+ */
1101
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1102
+ /**
1103
+ * Omit specific fields from the bot_tokens
1104
+ */
1105
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1106
+ /**
1107
+ * Choose, which related nodes to fetch as well
1108
+ */
1109
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1110
+ /**
1111
+ * Filter, which bot_tokens to fetch.
1112
+ */
1113
+ where: Prisma.bot_tokensWhereUniqueInput
1114
+ }
1115
+
1116
+ /**
1117
+ * bot_tokens findUniqueOrThrow
1118
+ */
1119
+ export type bot_tokensFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1120
+ /**
1121
+ * Select specific fields to fetch from the bot_tokens
1122
+ */
1123
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1124
+ /**
1125
+ * Omit specific fields from the bot_tokens
1126
+ */
1127
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1128
+ /**
1129
+ * Choose, which related nodes to fetch as well
1130
+ */
1131
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1132
+ /**
1133
+ * Filter, which bot_tokens to fetch.
1134
+ */
1135
+ where: Prisma.bot_tokensWhereUniqueInput
1136
+ }
1137
+
1138
+ /**
1139
+ * bot_tokens findFirst
1140
+ */
1141
+ export type bot_tokensFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1142
+ /**
1143
+ * Select specific fields to fetch from the bot_tokens
1144
+ */
1145
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1146
+ /**
1147
+ * Omit specific fields from the bot_tokens
1148
+ */
1149
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1150
+ /**
1151
+ * Choose, which related nodes to fetch as well
1152
+ */
1153
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1154
+ /**
1155
+ * Filter, which bot_tokens to fetch.
1156
+ */
1157
+ where?: Prisma.bot_tokensWhereInput
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1160
+ *
1161
+ * Determine the order of bot_tokens to fetch.
1162
+ */
1163
+ orderBy?: Prisma.bot_tokensOrderByWithRelationInput | Prisma.bot_tokensOrderByWithRelationInput[]
1164
+ /**
1165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1166
+ *
1167
+ * Sets the position for searching for bot_tokens.
1168
+ */
1169
+ cursor?: Prisma.bot_tokensWhereUniqueInput
1170
+ /**
1171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1172
+ *
1173
+ * Take `±n` bot_tokens from the position of the cursor.
1174
+ */
1175
+ take?: number
1176
+ /**
1177
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1178
+ *
1179
+ * Skip the first `n` bot_tokens.
1180
+ */
1181
+ skip?: number
1182
+ /**
1183
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1184
+ *
1185
+ * Filter by unique combinations of bot_tokens.
1186
+ */
1187
+ distinct?: Prisma.Bot_tokensScalarFieldEnum | Prisma.Bot_tokensScalarFieldEnum[]
1188
+ }
1189
+
1190
+ /**
1191
+ * bot_tokens findFirstOrThrow
1192
+ */
1193
+ export type bot_tokensFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1194
+ /**
1195
+ * Select specific fields to fetch from the bot_tokens
1196
+ */
1197
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1198
+ /**
1199
+ * Omit specific fields from the bot_tokens
1200
+ */
1201
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1202
+ /**
1203
+ * Choose, which related nodes to fetch as well
1204
+ */
1205
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1206
+ /**
1207
+ * Filter, which bot_tokens to fetch.
1208
+ */
1209
+ where?: Prisma.bot_tokensWhereInput
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1212
+ *
1213
+ * Determine the order of bot_tokens to fetch.
1214
+ */
1215
+ orderBy?: Prisma.bot_tokensOrderByWithRelationInput | Prisma.bot_tokensOrderByWithRelationInput[]
1216
+ /**
1217
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1218
+ *
1219
+ * Sets the position for searching for bot_tokens.
1220
+ */
1221
+ cursor?: Prisma.bot_tokensWhereUniqueInput
1222
+ /**
1223
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1224
+ *
1225
+ * Take `±n` bot_tokens from the position of the cursor.
1226
+ */
1227
+ take?: number
1228
+ /**
1229
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1230
+ *
1231
+ * Skip the first `n` bot_tokens.
1232
+ */
1233
+ skip?: number
1234
+ /**
1235
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1236
+ *
1237
+ * Filter by unique combinations of bot_tokens.
1238
+ */
1239
+ distinct?: Prisma.Bot_tokensScalarFieldEnum | Prisma.Bot_tokensScalarFieldEnum[]
1240
+ }
1241
+
1242
+ /**
1243
+ * bot_tokens findMany
1244
+ */
1245
+ export type bot_tokensFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1246
+ /**
1247
+ * Select specific fields to fetch from the bot_tokens
1248
+ */
1249
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1250
+ /**
1251
+ * Omit specific fields from the bot_tokens
1252
+ */
1253
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1254
+ /**
1255
+ * Choose, which related nodes to fetch as well
1256
+ */
1257
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1258
+ /**
1259
+ * Filter, which bot_tokens to fetch.
1260
+ */
1261
+ where?: Prisma.bot_tokensWhereInput
1262
+ /**
1263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1264
+ *
1265
+ * Determine the order of bot_tokens to fetch.
1266
+ */
1267
+ orderBy?: Prisma.bot_tokensOrderByWithRelationInput | Prisma.bot_tokensOrderByWithRelationInput[]
1268
+ /**
1269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1270
+ *
1271
+ * Sets the position for listing bot_tokens.
1272
+ */
1273
+ cursor?: Prisma.bot_tokensWhereUniqueInput
1274
+ /**
1275
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1276
+ *
1277
+ * Take `±n` bot_tokens from the position of the cursor.
1278
+ */
1279
+ take?: number
1280
+ /**
1281
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1282
+ *
1283
+ * Skip the first `n` bot_tokens.
1284
+ */
1285
+ skip?: number
1286
+ distinct?: Prisma.Bot_tokensScalarFieldEnum | Prisma.Bot_tokensScalarFieldEnum[]
1287
+ }
1288
+
1289
+ /**
1290
+ * bot_tokens create
1291
+ */
1292
+ export type bot_tokensCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * Select specific fields to fetch from the bot_tokens
1295
+ */
1296
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1297
+ /**
1298
+ * Omit specific fields from the bot_tokens
1299
+ */
1300
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1301
+ /**
1302
+ * Choose, which related nodes to fetch as well
1303
+ */
1304
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1305
+ /**
1306
+ * The data needed to create a bot_tokens.
1307
+ */
1308
+ data: Prisma.XOR<Prisma.bot_tokensCreateInput, Prisma.bot_tokensUncheckedCreateInput>
1309
+ }
1310
+
1311
+ /**
1312
+ * bot_tokens createMany
1313
+ */
1314
+ export type bot_tokensCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1315
+ /**
1316
+ * The data used to create many bot_tokens.
1317
+ */
1318
+ data: Prisma.bot_tokensCreateManyInput | Prisma.bot_tokensCreateManyInput[]
1319
+ }
1320
+
1321
+ /**
1322
+ * bot_tokens createManyAndReturn
1323
+ */
1324
+ export type bot_tokensCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1325
+ /**
1326
+ * Select specific fields to fetch from the bot_tokens
1327
+ */
1328
+ select?: Prisma.bot_tokensSelectCreateManyAndReturn<ExtArgs> | null
1329
+ /**
1330
+ * Omit specific fields from the bot_tokens
1331
+ */
1332
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1333
+ /**
1334
+ * The data used to create many bot_tokens.
1335
+ */
1336
+ data: Prisma.bot_tokensCreateManyInput | Prisma.bot_tokensCreateManyInput[]
1337
+ }
1338
+
1339
+ /**
1340
+ * bot_tokens update
1341
+ */
1342
+ export type bot_tokensUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1343
+ /**
1344
+ * Select specific fields to fetch from the bot_tokens
1345
+ */
1346
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1347
+ /**
1348
+ * Omit specific fields from the bot_tokens
1349
+ */
1350
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1351
+ /**
1352
+ * Choose, which related nodes to fetch as well
1353
+ */
1354
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1355
+ /**
1356
+ * The data needed to update a bot_tokens.
1357
+ */
1358
+ data: Prisma.XOR<Prisma.bot_tokensUpdateInput, Prisma.bot_tokensUncheckedUpdateInput>
1359
+ /**
1360
+ * Choose, which bot_tokens to update.
1361
+ */
1362
+ where: Prisma.bot_tokensWhereUniqueInput
1363
+ }
1364
+
1365
+ /**
1366
+ * bot_tokens updateMany
1367
+ */
1368
+ export type bot_tokensUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1369
+ /**
1370
+ * The data used to update bot_tokens.
1371
+ */
1372
+ data: Prisma.XOR<Prisma.bot_tokensUpdateManyMutationInput, Prisma.bot_tokensUncheckedUpdateManyInput>
1373
+ /**
1374
+ * Filter which bot_tokens to update
1375
+ */
1376
+ where?: Prisma.bot_tokensWhereInput
1377
+ /**
1378
+ * Limit how many bot_tokens to update.
1379
+ */
1380
+ limit?: number
1381
+ }
1382
+
1383
+ /**
1384
+ * bot_tokens updateManyAndReturn
1385
+ */
1386
+ export type bot_tokensUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1387
+ /**
1388
+ * Select specific fields to fetch from the bot_tokens
1389
+ */
1390
+ select?: Prisma.bot_tokensSelectUpdateManyAndReturn<ExtArgs> | null
1391
+ /**
1392
+ * Omit specific fields from the bot_tokens
1393
+ */
1394
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1395
+ /**
1396
+ * The data used to update bot_tokens.
1397
+ */
1398
+ data: Prisma.XOR<Prisma.bot_tokensUpdateManyMutationInput, Prisma.bot_tokensUncheckedUpdateManyInput>
1399
+ /**
1400
+ * Filter which bot_tokens to update
1401
+ */
1402
+ where?: Prisma.bot_tokensWhereInput
1403
+ /**
1404
+ * Limit how many bot_tokens to update.
1405
+ */
1406
+ limit?: number
1407
+ }
1408
+
1409
+ /**
1410
+ * bot_tokens upsert
1411
+ */
1412
+ export type bot_tokensUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1413
+ /**
1414
+ * Select specific fields to fetch from the bot_tokens
1415
+ */
1416
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1417
+ /**
1418
+ * Omit specific fields from the bot_tokens
1419
+ */
1420
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1421
+ /**
1422
+ * Choose, which related nodes to fetch as well
1423
+ */
1424
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1425
+ /**
1426
+ * The filter to search for the bot_tokens to update in case it exists.
1427
+ */
1428
+ where: Prisma.bot_tokensWhereUniqueInput
1429
+ /**
1430
+ * In case the bot_tokens found by the `where` argument doesn't exist, create a new bot_tokens with this data.
1431
+ */
1432
+ create: Prisma.XOR<Prisma.bot_tokensCreateInput, Prisma.bot_tokensUncheckedCreateInput>
1433
+ /**
1434
+ * In case the bot_tokens was found with the provided `where` argument, update it with this data.
1435
+ */
1436
+ update: Prisma.XOR<Prisma.bot_tokensUpdateInput, Prisma.bot_tokensUncheckedUpdateInput>
1437
+ }
1438
+
1439
+ /**
1440
+ * bot_tokens delete
1441
+ */
1442
+ export type bot_tokensDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1443
+ /**
1444
+ * Select specific fields to fetch from the bot_tokens
1445
+ */
1446
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1447
+ /**
1448
+ * Omit specific fields from the bot_tokens
1449
+ */
1450
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1451
+ /**
1452
+ * Choose, which related nodes to fetch as well
1453
+ */
1454
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1455
+ /**
1456
+ * Filter which bot_tokens to delete.
1457
+ */
1458
+ where: Prisma.bot_tokensWhereUniqueInput
1459
+ }
1460
+
1461
+ /**
1462
+ * bot_tokens deleteMany
1463
+ */
1464
+ export type bot_tokensDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1465
+ /**
1466
+ * Filter which bot_tokens to delete
1467
+ */
1468
+ where?: Prisma.bot_tokensWhereInput
1469
+ /**
1470
+ * Limit how many bot_tokens to delete.
1471
+ */
1472
+ limit?: number
1473
+ }
1474
+
1475
+ /**
1476
+ * bot_tokens.api_keys
1477
+ */
1478
+ export type bot_tokens$api_keysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1479
+ /**
1480
+ * Select specific fields to fetch from the bot_api_keys
1481
+ */
1482
+ select?: Prisma.bot_api_keysSelect<ExtArgs> | null
1483
+ /**
1484
+ * Omit specific fields from the bot_api_keys
1485
+ */
1486
+ omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
1487
+ /**
1488
+ * Choose, which related nodes to fetch as well
1489
+ */
1490
+ include?: Prisma.bot_api_keysInclude<ExtArgs> | null
1491
+ where?: Prisma.bot_api_keysWhereInput
1492
+ }
1493
+
1494
+ /**
1495
+ * bot_tokens.channels
1496
+ */
1497
+ export type bot_tokens$channelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
+ /**
1499
+ * Select specific fields to fetch from the channel_directories
1500
+ */
1501
+ select?: Prisma.channel_directoriesSelect<ExtArgs> | null
1502
+ /**
1503
+ * Omit specific fields from the channel_directories
1504
+ */
1505
+ omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
1506
+ /**
1507
+ * Choose, which related nodes to fetch as well
1508
+ */
1509
+ include?: Prisma.channel_directoriesInclude<ExtArgs> | null
1510
+ where?: Prisma.channel_directoriesWhereInput
1511
+ orderBy?: Prisma.channel_directoriesOrderByWithRelationInput | Prisma.channel_directoriesOrderByWithRelationInput[]
1512
+ cursor?: Prisma.channel_directoriesWhereUniqueInput
1513
+ take?: number
1514
+ skip?: number
1515
+ distinct?: Prisma.Channel_directoriesScalarFieldEnum | Prisma.Channel_directoriesScalarFieldEnum[]
1516
+ }
1517
+
1518
+ /**
1519
+ * bot_tokens.forum_sync_configs
1520
+ */
1521
+ export type bot_tokens$forum_sync_configsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1522
+ /**
1523
+ * Select specific fields to fetch from the forum_sync_configs
1524
+ */
1525
+ select?: Prisma.forum_sync_configsSelect<ExtArgs> | null
1526
+ /**
1527
+ * Omit specific fields from the forum_sync_configs
1528
+ */
1529
+ omit?: Prisma.forum_sync_configsOmit<ExtArgs> | null
1530
+ /**
1531
+ * Choose, which related nodes to fetch as well
1532
+ */
1533
+ include?: Prisma.forum_sync_configsInclude<ExtArgs> | null
1534
+ where?: Prisma.forum_sync_configsWhereInput
1535
+ orderBy?: Prisma.forum_sync_configsOrderByWithRelationInput | Prisma.forum_sync_configsOrderByWithRelationInput[]
1536
+ cursor?: Prisma.forum_sync_configsWhereUniqueInput
1537
+ take?: number
1538
+ skip?: number
1539
+ distinct?: Prisma.Forum_sync_configsScalarFieldEnum | Prisma.Forum_sync_configsScalarFieldEnum[]
1540
+ }
1541
+
1542
+ /**
1543
+ * bot_tokens.global_model
1544
+ */
1545
+ export type bot_tokens$global_modelArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1546
+ /**
1547
+ * Select specific fields to fetch from the global_models
1548
+ */
1549
+ select?: Prisma.global_modelsSelect<ExtArgs> | null
1550
+ /**
1551
+ * Omit specific fields from the global_models
1552
+ */
1553
+ omit?: Prisma.global_modelsOmit<ExtArgs> | null
1554
+ /**
1555
+ * Choose, which related nodes to fetch as well
1556
+ */
1557
+ include?: Prisma.global_modelsInclude<ExtArgs> | null
1558
+ where?: Prisma.global_modelsWhereInput
1559
+ }
1560
+
1561
+ /**
1562
+ * bot_tokens without action
1563
+ */
1564
+ export type bot_tokensDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1565
+ /**
1566
+ * Select specific fields to fetch from the bot_tokens
1567
+ */
1568
+ select?: Prisma.bot_tokensSelect<ExtArgs> | null
1569
+ /**
1570
+ * Omit specific fields from the bot_tokens
1571
+ */
1572
+ omit?: Prisma.bot_tokensOmit<ExtArgs> | null
1573
+ /**
1574
+ * Choose, which related nodes to fetch as well
1575
+ */
1576
+ include?: Prisma.bot_tokensInclude<ExtArgs> | null
1577
+ }