@wardby/cli 0.5.3 → 0.6.0

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 (370) hide show
  1. package/.env.example +33 -0
  2. package/README.md +25 -14
  3. package/dist/claude-coding-worker/context.d.ts +22 -0
  4. package/dist/claude-coding-worker/context.js +92 -0
  5. package/dist/claude-coding-worker/driver.d.ts +7 -1
  6. package/dist/claude-coding-worker/driver.js +38 -5
  7. package/dist/claude-coding-worker/sdk.js +13 -4
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +5 -2
  10. package/dist/cli-native-mode.d.ts +9 -0
  11. package/dist/cli-native-mode.js +20 -0
  12. package/dist/cli.d.ts +3 -1
  13. package/dist/cli.js +141 -5
  14. package/dist/coding/claude-context.d.ts +45 -0
  15. package/dist/coding/claude-context.js +434 -0
  16. package/dist/coding/profile.d.ts +12 -0
  17. package/dist/coding/profile.js +6 -0
  18. package/dist/coding/protocol.d.ts +104 -0
  19. package/dist/coding/protocol.js +87 -3
  20. package/dist/coding-worker/artifact.d.ts +8 -0
  21. package/dist/coding-worker/artifact.js +2 -2
  22. package/dist/coding-worker/driver.js +2 -0
  23. package/dist/coding-worker/sdk.d.ts +6 -0
  24. package/dist/coding-worker/sdk.js +1 -0
  25. package/dist/coding-worker/skills.d.ts +23 -0
  26. package/dist/coding-worker/skills.js +117 -0
  27. package/dist/coding-worker/types.d.ts +2 -0
  28. package/dist/config/github-allowed-accounts.d.ts +15 -0
  29. package/dist/config/github-allowed-accounts.js +36 -0
  30. package/dist/config/low-power.d.ts +12 -0
  31. package/dist/config/low-power.js +18 -0
  32. package/dist/config/mobile.d.ts +12 -0
  33. package/dist/config/mobile.js +18 -0
  34. package/dist/config/providers.d.ts +53 -0
  35. package/dist/config/providers.js +92 -6
  36. package/dist/core/db.d.ts +16 -6
  37. package/dist/core/db.js +12 -10
  38. package/dist/core/dispatch.d.ts +11 -0
  39. package/dist/core/dispatch.js +36 -1
  40. package/dist/core/engine-native.js +9 -5
  41. package/dist/core/host-events.d.ts +49 -3
  42. package/dist/core/host-events.js +289 -15
  43. package/dist/core/issue-bridge.js +42 -2
  44. package/dist/core/issue-events.js +12 -1
  45. package/dist/core/issue-status.js +14 -3
  46. package/dist/core/merge-order-check.d.ts +129 -0
  47. package/dist/core/merge-order-check.js +336 -0
  48. package/dist/core/notification-dispatcher.d.ts +70 -0
  49. package/dist/core/notification-dispatcher.js +368 -0
  50. package/dist/core/notification-templates.d.ts +25 -0
  51. package/dist/core/notification-templates.js +105 -0
  52. package/dist/core/notifications.d.ts +10 -0
  53. package/dist/core/notifications.js +38 -0
  54. package/dist/core/pg-auth.d.ts +22 -0
  55. package/dist/core/pg-auth.js +152 -0
  56. package/dist/core/power-composition.d.ts +16 -0
  57. package/dist/core/power-composition.js +37 -0
  58. package/dist/core/power-idle.d.ts +14 -0
  59. package/dist/core/power-idle.js +30 -0
  60. package/dist/core/power.d.ts +71 -0
  61. package/dist/core/power.js +202 -0
  62. package/dist/core/reconciler.d.ts +4 -2
  63. package/dist/core/reconciler.js +29 -5
  64. package/dist/core/related-pull-requests.d.ts +48 -4
  65. package/dist/core/related-pull-requests.js +113 -11
  66. package/dist/core/repo-access.d.ts +15 -0
  67. package/dist/core/repo-access.js +66 -0
  68. package/dist/core/review-fix.d.ts +37 -0
  69. package/dist/core/review-fix.js +207 -6
  70. package/dist/core/review-host-tools.d.ts +20 -0
  71. package/dist/core/review-host-tools.js +58 -2
  72. package/dist/core/runner.d.ts +336 -3
  73. package/dist/core/runner.js +894 -317
  74. package/dist/core/secret-broker-config.d.ts +103 -0
  75. package/dist/core/secret-broker-config.js +112 -0
  76. package/dist/core/secrets.d.ts +39 -4
  77. package/dist/core/secrets.js +148 -40
  78. package/dist/core/workflow-event-recorder.d.ts +14 -0
  79. package/dist/core/workflow-event-recorder.js +120 -0
  80. package/dist/core/workflow-events.d.ts +82 -0
  81. package/dist/core/workflow-events.js +44 -0
  82. package/dist/core/workflow-run-events.d.ts +16 -0
  83. package/dist/core/workflow-run-events.js +40 -0
  84. package/dist/generated/prisma/browser.d.ts +58 -0
  85. package/dist/generated/prisma/client.d.ts +58 -0
  86. package/dist/generated/prisma/commonInputTypes.d.ts +150 -0
  87. package/dist/generated/prisma/enums.d.ts +27 -0
  88. package/dist/generated/prisma/enums.js +23 -0
  89. package/dist/generated/prisma/internal/class.d.ts +88 -0
  90. package/dist/generated/prisma/internal/class.js +4 -4
  91. package/dist/generated/prisma/internal/prismaNamespace.d.ts +772 -1
  92. package/dist/generated/prisma/internal/prismaNamespace.js +135 -4
  93. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +139 -0
  94. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +135 -4
  95. package/dist/generated/prisma/models/Agent.d.ts +360 -1
  96. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +73 -1
  97. package/dist/generated/prisma/models/CodingRun.d.ts +205 -1
  98. package/dist/generated/prisma/models/DeferredReview.d.ts +78 -1
  99. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +1675 -0
  100. package/dist/generated/prisma/models/NativeGatewayCall.js +1 -0
  101. package/dist/generated/prisma/models/NativeGatewaySession.d.ts +1517 -0
  102. package/dist/generated/prisma/models/NativeGatewaySession.js +1 -0
  103. package/dist/generated/prisma/models/NativeWarmWorker.d.ts +1296 -0
  104. package/dist/generated/prisma/models/NativeWarmWorker.js +1 -0
  105. package/dist/generated/prisma/models/NotificationChannel.d.ts +1543 -0
  106. package/dist/generated/prisma/models/NotificationChannel.js +1 -0
  107. package/dist/generated/prisma/models/NotificationDelivery.d.ts +1502 -0
  108. package/dist/generated/prisma/models/NotificationDelivery.js +1 -0
  109. package/dist/generated/prisma/models/NotificationThread.d.ts +1090 -0
  110. package/dist/generated/prisma/models/NotificationThread.js +1 -0
  111. package/dist/generated/prisma/models/Run.d.ts +826 -1
  112. package/dist/generated/prisma/models/RunHostCheck.d.ts +36 -1
  113. package/dist/generated/prisma/models/Secret.d.ts +37 -1
  114. package/dist/generated/prisma/models/SecretBrokerChange.d.ts +1101 -0
  115. package/dist/generated/prisma/models/SecretBrokerChange.js +1 -0
  116. package/dist/generated/prisma/models/WorkflowEvent.d.ts +1422 -0
  117. package/dist/generated/prisma/models/WorkflowEvent.js +1 -0
  118. package/dist/generated/prisma/models.d.ts +8 -0
  119. package/dist/help/build.js +4 -2
  120. package/dist/help/catalog.d.ts +1 -1
  121. package/dist/help/catalog.js +31 -6
  122. package/dist/help-index.json +1363 -176
  123. package/dist/import/create.js +17 -0
  124. package/dist/import/neutral-schema.d.ts +6 -2
  125. package/dist/import/neutral-schema.js +2 -0
  126. package/dist/mcp/auth/access.d.ts +1 -0
  127. package/dist/mcp/auth/repo-authorization.js +14 -0
  128. package/dist/mcp/auth/resource-server.d.ts +2 -1
  129. package/dist/mcp/auth/resource-server.js +7 -2
  130. package/dist/mcp/auth/self-hosted/browser.d.ts +1 -1
  131. package/dist/mcp/auth/self-hosted/browser.js +19 -6
  132. package/dist/mcp/context.d.ts +6 -0
  133. package/dist/mcp/host-events/github-ingress.d.ts +23 -1
  134. package/dist/mcp/host-events/github-ingress.js +68 -0
  135. package/dist/mcp/index.d.ts +13 -0
  136. package/dist/mcp/index.js +59 -10
  137. package/dist/mcp/tools/agents.js +82 -11
  138. package/dist/mcp/tools/notification-channels.d.ts +2 -0
  139. package/dist/mcp/tools/notification-channels.js +293 -0
  140. package/dist/mcp/tools/power.d.ts +2 -0
  141. package/dist/mcp/tools/power.js +77 -0
  142. package/dist/mcp/tools/runs.d.ts +0 -6
  143. package/dist/mcp/tools/runs.js +7 -2
  144. package/dist/mcp/tools/secret-broker-compat.d.ts +12 -0
  145. package/dist/mcp/tools/secret-broker-compat.js +23 -0
  146. package/dist/mcp/tools/secret-elicitation-form.d.ts +22 -2
  147. package/dist/mcp/tools/secret-elicitation-form.js +200 -10
  148. package/dist/mcp/tools/secret-elicitation-server.js +8 -1
  149. package/dist/mcp/tools/secret-elicitation.d.ts +38 -3
  150. package/dist/mcp/tools/secret-elicitation.js +110 -12
  151. package/dist/mcp/tools/secrets.js +184 -7
  152. package/dist/mcp/tools/tools.d.ts +1 -1
  153. package/dist/mcp/tools/tools.js +22 -2
  154. package/dist/native-worker/composition.d.ts +23 -0
  155. package/dist/native-worker/composition.js +77 -0
  156. package/dist/native-worker/docker-isolation.d.ts +65 -0
  157. package/dist/native-worker/docker-isolation.js +183 -0
  158. package/dist/native-worker/docker-launcher.d.ts +74 -0
  159. package/dist/native-worker/docker-launcher.js +237 -0
  160. package/dist/native-worker/gateway-server.d.ts +39 -0
  161. package/dist/native-worker/gateway-server.js +315 -0
  162. package/dist/native-worker/gateway.d.ts +44 -0
  163. package/dist/native-worker/gateway.js +197 -0
  164. package/dist/native-worker/http-server.d.ts +22 -0
  165. package/dist/native-worker/http-server.js +109 -0
  166. package/dist/native-worker/http-transport.d.ts +17 -0
  167. package/dist/native-worker/http-transport.js +88 -0
  168. package/dist/native-worker/kubernetes-isolation.d.ts +90 -0
  169. package/dist/native-worker/kubernetes-isolation.js +218 -0
  170. package/dist/native-worker/kubernetes-launcher.d.ts +102 -0
  171. package/dist/native-worker/kubernetes-launcher.js +335 -0
  172. package/dist/native-worker/launch.d.ts +45 -0
  173. package/dist/native-worker/launch.js +44 -0
  174. package/dist/native-worker/ledger.d.ts +109 -0
  175. package/dist/native-worker/ledger.js +192 -0
  176. package/dist/native-worker/loopback.d.ts +12 -0
  177. package/dist/native-worker/loopback.js +49 -0
  178. package/dist/native-worker/main.d.ts +7 -0
  179. package/dist/native-worker/main.js +74 -0
  180. package/dist/native-worker/protocol.d.ts +744 -0
  181. package/dist/native-worker/protocol.js +200 -0
  182. package/dist/native-worker/sandbox-executor.d.ts +68 -0
  183. package/dist/native-worker/sandbox-executor.js +210 -0
  184. package/dist/native-worker/stdio.d.ts +29 -0
  185. package/dist/native-worker/stdio.js +188 -0
  186. package/dist/native-worker/warm-delivery.d.ts +16 -0
  187. package/dist/native-worker/warm-delivery.js +33 -0
  188. package/dist/native-worker/warm-pool-ledger.d.ts +39 -0
  189. package/dist/native-worker/warm-pool-ledger.js +73 -0
  190. package/dist/native-worker/warm-pool.d.ts +107 -0
  191. package/dist/native-worker/warm-pool.js +283 -0
  192. package/dist/native-worker/worker.d.ts +17 -0
  193. package/dist/native-worker/worker.js +115 -0
  194. package/dist/providers/auth/authorization-server.d.ts +3 -0
  195. package/dist/providers/auth/index.js +2 -0
  196. package/dist/providers/auth/self-hosted.d.ts +13 -1
  197. package/dist/providers/auth/self-hosted.js +54 -4
  198. package/dist/providers/chat/fake.d.ts +46 -0
  199. package/dist/providers/chat/fake.js +39 -0
  200. package/dist/providers/chat/index.d.ts +4 -0
  201. package/dist/providers/chat/index.js +8 -0
  202. package/dist/providers/chat/slack.d.ts +37 -0
  203. package/dist/providers/chat/slack.js +105 -0
  204. package/dist/providers/chat/types.d.ts +42 -0
  205. package/dist/providers/chat/types.js +19 -0
  206. package/dist/providers/engine/types.d.ts +19 -0
  207. package/dist/providers/engine/types.js +22 -0
  208. package/dist/providers/executor/composition.d.ts +24 -1
  209. package/dist/providers/executor/composition.js +39 -6
  210. package/dist/providers/executor/container.d.ts +24 -1
  211. package/dist/providers/executor/container.js +101 -11
  212. package/dist/providers/executor/dbos.d.ts +42 -0
  213. package/dist/providers/executor/dbos.js +118 -12
  214. package/dist/providers/executor/deferred.d.ts +56 -0
  215. package/dist/providers/executor/deferred.js +119 -0
  216. package/dist/providers/executor/routing.d.ts +37 -10
  217. package/dist/providers/executor/routing.js +73 -32
  218. package/dist/providers/executor/types.d.ts +12 -0
  219. package/dist/providers/jobs/docker.js +3 -3
  220. package/dist/providers/jobs/fake-kubernetes-api.d.ts +21 -2
  221. package/dist/providers/jobs/fake-kubernetes-api.js +42 -1
  222. package/dist/providers/jobs/kubernetes-api.d.ts +17 -1
  223. package/dist/providers/jobs/kubernetes-api.js +7 -0
  224. package/dist/providers/jobs/kubernetes-client.d.ts +10 -1
  225. package/dist/providers/jobs/kubernetes-client.js +52 -3
  226. package/dist/providers/jobs/kubernetes-dry-run-fixture.d.ts +6 -1
  227. package/dist/providers/jobs/kubernetes-dry-run-fixture.js +6 -3
  228. package/dist/providers/jobs/kubernetes-isolation.d.ts +3 -1
  229. package/dist/providers/jobs/kubernetes-isolation.js +6 -0
  230. package/dist/providers/jobs/kubernetes-platform.d.ts +4 -1
  231. package/dist/providers/jobs/kubernetes-platform.js +38 -1
  232. package/dist/providers/jobs/kubernetes-preflight.d.ts +2 -1
  233. package/dist/providers/jobs/kubernetes-preflight.js +4 -2
  234. package/dist/providers/jobs/kubernetes.d.ts +36 -1
  235. package/dist/providers/jobs/kubernetes.js +74 -4
  236. package/dist/providers/jobs/metadata-probes.d.ts +11 -0
  237. package/dist/providers/jobs/metadata-probes.js +13 -0
  238. package/dist/providers/jobs/types.d.ts +9 -0
  239. package/dist/providers/review-host/github.d.ts +11 -1
  240. package/dist/providers/review-host/github.js +50 -0
  241. package/dist/providers/review-host/types.d.ts +23 -0
  242. package/dist/providers/vcs/github.d.ts +32 -6
  243. package/dist/providers/vcs/github.js +74 -16
  244. package/dist/quickstart/coding-seed.d.ts +10 -3
  245. package/dist/quickstart/coding-seed.js +74 -3
  246. package/dist/quickstart/images.d.ts +2 -0
  247. package/dist/quickstart/images.js +7 -1
  248. package/dist/quickstart/reviewer-prompt.d.ts +1 -1
  249. package/dist/quickstart/reviewer-prompt.js +1 -1
  250. package/dist/quickstart-images.json +1 -1
  251. package/dist/sandbox/brokered-fetch.d.ts +23 -0
  252. package/dist/sandbox/brokered-fetch.js +37 -0
  253. package/dist/sandbox/host-functions.d.ts +34 -0
  254. package/dist/sandbox/host-functions.js +144 -80
  255. package/dist/sandbox/prelude.js +7 -1
  256. package/dist/sandbox/run-in-sandbox.d.ts +19 -0
  257. package/dist/sandbox/run-in-sandbox.js +28 -10
  258. package/dist/sandbox/safe-fetch.d.ts +2 -0
  259. package/dist/sandbox/safe-fetch.js +3 -1
  260. package/dist/sandbox/secret-broker-sigv4.d.ts +2 -0
  261. package/dist/sandbox/secret-broker-sigv4.js +49 -0
  262. package/dist/sandbox/secret-broker.d.ts +34 -0
  263. package/dist/sandbox/secret-broker.js +162 -0
  264. package/dist/sandbox/user-tool.d.ts +14 -0
  265. package/dist/sandbox/user-tool.js +32 -0
  266. package/dist/serve.js +18 -0
  267. package/dist/viewer/api-schema.d.ts +210 -14
  268. package/dist/viewer/api-schema.js +22 -0
  269. package/dist/viewer/build-schemas.js +4 -1
  270. package/dist/viewer/event-bus.d.ts +6 -0
  271. package/dist/viewer/event-bus.js +16 -7
  272. package/dist/viewer/graph.d.ts +5 -2
  273. package/dist/viewer/graph.js +7 -2
  274. package/dist/viewer/http.d.ts +0 -1
  275. package/dist/viewer/http.js +2 -2
  276. package/dist/viewer/infra.js +25 -2
  277. package/dist/viewer/limits.d.ts +4 -0
  278. package/dist/viewer/limits.js +4 -0
  279. package/dist/viewer/openapi.d.ts +15 -0
  280. package/dist/viewer/openapi.js +172 -0
  281. package/docs/README.md +7 -0
  282. package/docs/agent-recipes.md +57 -8
  283. package/docs/architecture-runtime.md +16 -1
  284. package/docs/code-review-agents.md +139 -5
  285. package/docs/coding-agent-setup.md +113 -5
  286. package/docs/coding-packages.md +4 -2
  287. package/docs/coding-services.md +3 -1
  288. package/docs/coding-worker-byo-images.md +198 -6
  289. package/docs/coding-worker-isolation.md +68 -14
  290. package/docs/getting-started-gke.md +225 -9
  291. package/docs/getting-started-identity-provider.md +21 -10
  292. package/docs/getting-started.md +5 -4
  293. package/docs/jira-agents.md +5 -1
  294. package/docs/native-sandbox.md +635 -0
  295. package/docs/release-verification.md +9 -0
  296. package/docs/security-deployment.md +113 -12
  297. package/docs/slack-notifications.md +252 -0
  298. package/docs/tool-secrets.md +252 -0
  299. package/docs/viewer-api.md +46 -5
  300. package/docs/viewer-api.openapi.yml +1404 -0
  301. package/help/admin-viewer.md +6 -2
  302. package/help/agent-recipes.md +27 -0
  303. package/help/architecture-agent.md +1 -1
  304. package/help/brokered-secrets.md +79 -0
  305. package/help/build-claude-code-image.md +131 -0
  306. package/help/build-worker-image.md +3 -6
  307. package/help/code-review-agents.md +68 -6
  308. package/help/deploy-gke.md +8 -1
  309. package/help/deployment-targets.md +25 -14
  310. package/help/errors/coding-provider-not-configured.md +2 -2
  311. package/help/errors/database-auth-invalid.md +28 -0
  312. package/help/errors/github-account-not-allowed.md +25 -0
  313. package/help/errors/low-power-disabled.md +29 -0
  314. package/help/errors/low-power-scale-forbidden.md +35 -0
  315. package/help/errors/low-power-wake-timeout.md +30 -0
  316. package/help/errors/mobile-disabled.md +31 -0
  317. package/help/errors/native-sandbox-capacity.md +22 -0
  318. package/help/errors/native-sandbox-deadline-exceeded.md +19 -0
  319. package/help/errors/native-sandbox-docker-failed.md +20 -0
  320. package/help/errors/native-sandbox-gateway-unavailable.md +21 -0
  321. package/help/errors/native-sandbox-image-not-pinned.md +19 -0
  322. package/help/errors/native-sandbox-isolation-mismatch.md +20 -0
  323. package/help/errors/native-sandbox-network-unenforced.md +22 -0
  324. package/help/errors/native-sandbox-requires-catalog.md +31 -0
  325. package/help/errors/native-sandbox-unavailable.md +19 -0
  326. package/help/errors/native-sandbox-warm-delivery-failed.md +21 -0
  327. package/help/errors/native-sandbox-worker-exited.md +20 -0
  328. package/help/errors/native-sandbox-worker-lost.md +20 -0
  329. package/help/errors/native-sandbox-worker-unready.md +22 -0
  330. package/help/errors/secret-broker-body-invalid.md +26 -0
  331. package/help/errors/secret-broker-changed.md +20 -0
  332. package/help/errors/secret-broker-config-invalid.md +30 -0
  333. package/help/errors/secret-broker-conflict.md +27 -0
  334. package/help/errors/secret-broker-destination-denied.md +28 -0
  335. package/help/errors/secret-broker-value-invalid.md +28 -0
  336. package/help/errors/secret-brokered.md +24 -0
  337. package/help/errors/secret-not-brokered.md +25 -0
  338. package/help/errors/slack-auth-failed.md +48 -0
  339. package/help/errors/slack-channel-unreachable.md +39 -0
  340. package/help/errors/slack-not-configured.md +33 -0
  341. package/help/getting-started.md +4 -5
  342. package/help/github.md +18 -1
  343. package/help/identity-and-access.md +5 -1
  344. package/help/local-repositories.md +2 -3
  345. package/help/low-power-mode.md +125 -0
  346. package/help/merge-order-check.md +117 -0
  347. package/help/mobile-app.md +54 -0
  348. package/help/native-sandbox.md +136 -0
  349. package/help/observability.md +8 -0
  350. package/help/related-pull-requests.md +70 -9
  351. package/help/repo-instructions-and-skills.md +91 -0
  352. package/help/review-fix-rounds.md +10 -0
  353. package/help/slack-notifications.md +62 -0
  354. package/help/troubleshooting/coding-workers.md +21 -0
  355. package/package.json +11 -4
  356. package/prisma/migrations/20261009000003_native_execution_mode/migration.sql +12 -0
  357. package/prisma/migrations/20261009000004_native_gateway_ledger/migration.sql +65 -0
  358. package/prisma/migrations/20261009000005_native_gateway_call_child_agent/migration.sql +5 -0
  359. package/prisma/migrations/20261009000006_run_deferred_start_stop/migration.sql +14 -0
  360. package/prisma/migrations/20261009000007_native_gateway_network_ready/migration.sql +5 -0
  361. package/prisma/migrations/20261010000001_workflow_notifications/migration.sql +99 -0
  362. package/prisma/migrations/20261011000001_native_gateway_session_status_index/migration.sql +2 -0
  363. package/prisma/migrations/20261012000001_native_warm_worker/migration.sql +32 -0
  364. package/prisma/migrations/20261013000001_coding_run_merge_order/migration.sql +2 -0
  365. package/prisma/migrations/20261013000001_secret_broker/migration.sql +17 -0
  366. package/prisma/migrations/20261013000002_deferred_review_request/migration.sql +4 -0
  367. package/prisma/migrations/20261014000000_repo_skills/migration.sql +15 -0
  368. package/prisma/migrations/20261015000001_coding_run_merge_order_index/migration.sql +2 -0
  369. package/prisma/migrations/20261015000002_no_change_rereview/migration.sql +2 -0
  370. package/prisma/schema.prisma +362 -91
@@ -0,0 +1,1543 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model NotificationChannel
5
+ * A Slack (chat) channel that receives workflow notifications for a Jira
6
+ * project or for one agent. Exactly one subject: (issueProvider, projectKey)
7
+ * or agentId (enforced in code and by a CHECK constraint). Admin-approved.
8
+ * See docs/slack-notifications.md.
9
+ */
10
+ export type NotificationChannelModel = runtime.Types.Result.DefaultSelection<Prisma.$NotificationChannelPayload>;
11
+ export type AggregateNotificationChannel = {
12
+ _count: NotificationChannelCountAggregateOutputType | null;
13
+ _min: NotificationChannelMinAggregateOutputType | null;
14
+ _max: NotificationChannelMaxAggregateOutputType | null;
15
+ };
16
+ export type NotificationChannelMinAggregateOutputType = {
17
+ id: string | null;
18
+ provider: string | null;
19
+ channelId: string | null;
20
+ channelName: string | null;
21
+ issueProvider: string | null;
22
+ projectKey: string | null;
23
+ agentId: string | null;
24
+ includeCost: boolean | null;
25
+ lastError: string | null;
26
+ lastErrorAt: Date | null;
27
+ authorizedById: string | null;
28
+ authorizedAt: Date | null;
29
+ createdAt: Date | null;
30
+ };
31
+ export type NotificationChannelMaxAggregateOutputType = {
32
+ id: string | null;
33
+ provider: string | null;
34
+ channelId: string | null;
35
+ channelName: string | null;
36
+ issueProvider: string | null;
37
+ projectKey: string | null;
38
+ agentId: string | null;
39
+ includeCost: boolean | null;
40
+ lastError: string | null;
41
+ lastErrorAt: Date | null;
42
+ authorizedById: string | null;
43
+ authorizedAt: Date | null;
44
+ createdAt: Date | null;
45
+ };
46
+ export type NotificationChannelCountAggregateOutputType = {
47
+ id: number;
48
+ provider: number;
49
+ channelId: number;
50
+ channelName: number;
51
+ issueProvider: number;
52
+ projectKey: number;
53
+ agentId: number;
54
+ events: number;
55
+ includeCost: number;
56
+ lastError: number;
57
+ lastErrorAt: number;
58
+ authorizedById: number;
59
+ authorizedAt: number;
60
+ createdAt: number;
61
+ _all: number;
62
+ };
63
+ export type NotificationChannelMinAggregateInputType = {
64
+ id?: true;
65
+ provider?: true;
66
+ channelId?: true;
67
+ channelName?: true;
68
+ issueProvider?: true;
69
+ projectKey?: true;
70
+ agentId?: true;
71
+ includeCost?: true;
72
+ lastError?: true;
73
+ lastErrorAt?: true;
74
+ authorizedById?: true;
75
+ authorizedAt?: true;
76
+ createdAt?: true;
77
+ };
78
+ export type NotificationChannelMaxAggregateInputType = {
79
+ id?: true;
80
+ provider?: true;
81
+ channelId?: true;
82
+ channelName?: true;
83
+ issueProvider?: true;
84
+ projectKey?: true;
85
+ agentId?: true;
86
+ includeCost?: true;
87
+ lastError?: true;
88
+ lastErrorAt?: true;
89
+ authorizedById?: true;
90
+ authorizedAt?: true;
91
+ createdAt?: true;
92
+ };
93
+ export type NotificationChannelCountAggregateInputType = {
94
+ id?: true;
95
+ provider?: true;
96
+ channelId?: true;
97
+ channelName?: true;
98
+ issueProvider?: true;
99
+ projectKey?: true;
100
+ agentId?: true;
101
+ events?: true;
102
+ includeCost?: true;
103
+ lastError?: true;
104
+ lastErrorAt?: true;
105
+ authorizedById?: true;
106
+ authorizedAt?: true;
107
+ createdAt?: true;
108
+ _all?: true;
109
+ };
110
+ export type NotificationChannelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
111
+ /**
112
+ * Filter which NotificationChannel to aggregate.
113
+ */
114
+ where?: Prisma.NotificationChannelWhereInput;
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
117
+ *
118
+ * Determine the order of NotificationChannels to fetch.
119
+ */
120
+ orderBy?: Prisma.NotificationChannelOrderByWithRelationInput | Prisma.NotificationChannelOrderByWithRelationInput[];
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
123
+ *
124
+ * Sets the start position
125
+ */
126
+ cursor?: Prisma.NotificationChannelWhereUniqueInput;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Take `±n` NotificationChannels from the position of the cursor.
131
+ */
132
+ take?: number;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Skip the first `n` NotificationChannels.
137
+ */
138
+ skip?: number;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Count returned NotificationChannels
143
+ **/
144
+ _count?: true | NotificationChannelCountAggregateInputType;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the minimum value
149
+ **/
150
+ _min?: NotificationChannelMinAggregateInputType;
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to find the maximum value
155
+ **/
156
+ _max?: NotificationChannelMaxAggregateInputType;
157
+ };
158
+ export type GetNotificationChannelAggregateType<T extends NotificationChannelAggregateArgs> = {
159
+ [P in keyof T & keyof AggregateNotificationChannel]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateNotificationChannel[P]> : Prisma.GetScalarType<T[P], AggregateNotificationChannel[P]>;
160
+ };
161
+ export type NotificationChannelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
162
+ where?: Prisma.NotificationChannelWhereInput;
163
+ orderBy?: Prisma.NotificationChannelOrderByWithAggregationInput | Prisma.NotificationChannelOrderByWithAggregationInput[];
164
+ by: Prisma.NotificationChannelScalarFieldEnum[] | Prisma.NotificationChannelScalarFieldEnum;
165
+ having?: Prisma.NotificationChannelScalarWhereWithAggregatesInput;
166
+ take?: number;
167
+ skip?: number;
168
+ _count?: NotificationChannelCountAggregateInputType | true;
169
+ _min?: NotificationChannelMinAggregateInputType;
170
+ _max?: NotificationChannelMaxAggregateInputType;
171
+ };
172
+ export type NotificationChannelGroupByOutputType = {
173
+ id: string;
174
+ provider: string;
175
+ channelId: string;
176
+ channelName: string | null;
177
+ issueProvider: string | null;
178
+ projectKey: string | null;
179
+ agentId: string | null;
180
+ events: string[];
181
+ includeCost: boolean;
182
+ lastError: string | null;
183
+ lastErrorAt: Date | null;
184
+ authorizedById: string;
185
+ authorizedAt: Date;
186
+ createdAt: Date;
187
+ _count: NotificationChannelCountAggregateOutputType | null;
188
+ _min: NotificationChannelMinAggregateOutputType | null;
189
+ _max: NotificationChannelMaxAggregateOutputType | null;
190
+ };
191
+ export type GetNotificationChannelGroupByPayload<T extends NotificationChannelGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<NotificationChannelGroupByOutputType, T['by']> & {
192
+ [P in ((keyof T) & (keyof NotificationChannelGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], NotificationChannelGroupByOutputType[P]> : Prisma.GetScalarType<T[P], NotificationChannelGroupByOutputType[P]>;
193
+ }>>;
194
+ export type NotificationChannelWhereInput = {
195
+ AND?: Prisma.NotificationChannelWhereInput | Prisma.NotificationChannelWhereInput[];
196
+ OR?: Prisma.NotificationChannelWhereInput[];
197
+ NOT?: Prisma.NotificationChannelWhereInput | Prisma.NotificationChannelWhereInput[];
198
+ id?: Prisma.StringFilter<"NotificationChannel"> | string;
199
+ provider?: Prisma.StringFilter<"NotificationChannel"> | string;
200
+ channelId?: Prisma.StringFilter<"NotificationChannel"> | string;
201
+ channelName?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
202
+ issueProvider?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
203
+ projectKey?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
204
+ agentId?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
205
+ events?: Prisma.StringNullableListFilter<"NotificationChannel">;
206
+ includeCost?: Prisma.BoolFilter<"NotificationChannel"> | boolean;
207
+ lastError?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
208
+ lastErrorAt?: Prisma.DateTimeNullableFilter<"NotificationChannel"> | Date | string | null;
209
+ authorizedById?: Prisma.StringFilter<"NotificationChannel"> | string;
210
+ authorizedAt?: Prisma.DateTimeFilter<"NotificationChannel"> | Date | string;
211
+ createdAt?: Prisma.DateTimeFilter<"NotificationChannel"> | Date | string;
212
+ agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null;
213
+ };
214
+ export type NotificationChannelOrderByWithRelationInput = {
215
+ id?: Prisma.SortOrder;
216
+ provider?: Prisma.SortOrder;
217
+ channelId?: Prisma.SortOrder;
218
+ channelName?: Prisma.SortOrderInput | Prisma.SortOrder;
219
+ issueProvider?: Prisma.SortOrderInput | Prisma.SortOrder;
220
+ projectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
221
+ agentId?: Prisma.SortOrderInput | Prisma.SortOrder;
222
+ events?: Prisma.SortOrder;
223
+ includeCost?: Prisma.SortOrder;
224
+ lastError?: Prisma.SortOrderInput | Prisma.SortOrder;
225
+ lastErrorAt?: Prisma.SortOrderInput | Prisma.SortOrder;
226
+ authorizedById?: Prisma.SortOrder;
227
+ authorizedAt?: Prisma.SortOrder;
228
+ createdAt?: Prisma.SortOrder;
229
+ agent?: Prisma.AgentOrderByWithRelationInput;
230
+ };
231
+ export type NotificationChannelWhereUniqueInput = Prisma.AtLeast<{
232
+ id?: string;
233
+ provider_channelId_issueProvider_projectKey?: Prisma.NotificationChannelProviderChannelIdIssueProviderProjectKeyCompoundUniqueInput;
234
+ provider_channelId_agentId?: Prisma.NotificationChannelProviderChannelIdAgentIdCompoundUniqueInput;
235
+ AND?: Prisma.NotificationChannelWhereInput | Prisma.NotificationChannelWhereInput[];
236
+ OR?: Prisma.NotificationChannelWhereInput[];
237
+ NOT?: Prisma.NotificationChannelWhereInput | Prisma.NotificationChannelWhereInput[];
238
+ provider?: Prisma.StringFilter<"NotificationChannel"> | string;
239
+ channelId?: Prisma.StringFilter<"NotificationChannel"> | string;
240
+ channelName?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
241
+ issueProvider?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
242
+ projectKey?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
243
+ agentId?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
244
+ events?: Prisma.StringNullableListFilter<"NotificationChannel">;
245
+ includeCost?: Prisma.BoolFilter<"NotificationChannel"> | boolean;
246
+ lastError?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
247
+ lastErrorAt?: Prisma.DateTimeNullableFilter<"NotificationChannel"> | Date | string | null;
248
+ authorizedById?: Prisma.StringFilter<"NotificationChannel"> | string;
249
+ authorizedAt?: Prisma.DateTimeFilter<"NotificationChannel"> | Date | string;
250
+ createdAt?: Prisma.DateTimeFilter<"NotificationChannel"> | Date | string;
251
+ agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null;
252
+ }, "id" | "provider_channelId_issueProvider_projectKey" | "provider_channelId_agentId">;
253
+ export type NotificationChannelOrderByWithAggregationInput = {
254
+ id?: Prisma.SortOrder;
255
+ provider?: Prisma.SortOrder;
256
+ channelId?: Prisma.SortOrder;
257
+ channelName?: Prisma.SortOrderInput | Prisma.SortOrder;
258
+ issueProvider?: Prisma.SortOrderInput | Prisma.SortOrder;
259
+ projectKey?: Prisma.SortOrderInput | Prisma.SortOrder;
260
+ agentId?: Prisma.SortOrderInput | Prisma.SortOrder;
261
+ events?: Prisma.SortOrder;
262
+ includeCost?: Prisma.SortOrder;
263
+ lastError?: Prisma.SortOrderInput | Prisma.SortOrder;
264
+ lastErrorAt?: Prisma.SortOrderInput | Prisma.SortOrder;
265
+ authorizedById?: Prisma.SortOrder;
266
+ authorizedAt?: Prisma.SortOrder;
267
+ createdAt?: Prisma.SortOrder;
268
+ _count?: Prisma.NotificationChannelCountOrderByAggregateInput;
269
+ _max?: Prisma.NotificationChannelMaxOrderByAggregateInput;
270
+ _min?: Prisma.NotificationChannelMinOrderByAggregateInput;
271
+ };
272
+ export type NotificationChannelScalarWhereWithAggregatesInput = {
273
+ AND?: Prisma.NotificationChannelScalarWhereWithAggregatesInput | Prisma.NotificationChannelScalarWhereWithAggregatesInput[];
274
+ OR?: Prisma.NotificationChannelScalarWhereWithAggregatesInput[];
275
+ NOT?: Prisma.NotificationChannelScalarWhereWithAggregatesInput | Prisma.NotificationChannelScalarWhereWithAggregatesInput[];
276
+ id?: Prisma.StringWithAggregatesFilter<"NotificationChannel"> | string;
277
+ provider?: Prisma.StringWithAggregatesFilter<"NotificationChannel"> | string;
278
+ channelId?: Prisma.StringWithAggregatesFilter<"NotificationChannel"> | string;
279
+ channelName?: Prisma.StringNullableWithAggregatesFilter<"NotificationChannel"> | string | null;
280
+ issueProvider?: Prisma.StringNullableWithAggregatesFilter<"NotificationChannel"> | string | null;
281
+ projectKey?: Prisma.StringNullableWithAggregatesFilter<"NotificationChannel"> | string | null;
282
+ agentId?: Prisma.StringNullableWithAggregatesFilter<"NotificationChannel"> | string | null;
283
+ events?: Prisma.StringNullableListFilter<"NotificationChannel">;
284
+ includeCost?: Prisma.BoolWithAggregatesFilter<"NotificationChannel"> | boolean;
285
+ lastError?: Prisma.StringNullableWithAggregatesFilter<"NotificationChannel"> | string | null;
286
+ lastErrorAt?: Prisma.DateTimeNullableWithAggregatesFilter<"NotificationChannel"> | Date | string | null;
287
+ authorizedById?: Prisma.StringWithAggregatesFilter<"NotificationChannel"> | string;
288
+ authorizedAt?: Prisma.DateTimeWithAggregatesFilter<"NotificationChannel"> | Date | string;
289
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"NotificationChannel"> | Date | string;
290
+ };
291
+ export type NotificationChannelCreateInput = {
292
+ id?: string;
293
+ provider: string;
294
+ channelId: string;
295
+ channelName?: string | null;
296
+ issueProvider?: string | null;
297
+ projectKey?: string | null;
298
+ events?: Prisma.NotificationChannelCreateeventsInput | string[];
299
+ includeCost?: boolean;
300
+ lastError?: string | null;
301
+ lastErrorAt?: Date | string | null;
302
+ authorizedById: string;
303
+ authorizedAt?: Date | string;
304
+ createdAt?: Date | string;
305
+ agent?: Prisma.AgentCreateNestedOneWithoutNotificationChannelsInput;
306
+ };
307
+ export type NotificationChannelUncheckedCreateInput = {
308
+ id?: string;
309
+ provider: string;
310
+ channelId: string;
311
+ channelName?: string | null;
312
+ issueProvider?: string | null;
313
+ projectKey?: string | null;
314
+ agentId?: string | null;
315
+ events?: Prisma.NotificationChannelCreateeventsInput | string[];
316
+ includeCost?: boolean;
317
+ lastError?: string | null;
318
+ lastErrorAt?: Date | string | null;
319
+ authorizedById: string;
320
+ authorizedAt?: Date | string;
321
+ createdAt?: Date | string;
322
+ };
323
+ export type NotificationChannelUpdateInput = {
324
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
325
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ channelId?: Prisma.StringFieldUpdateOperationsInput | string;
327
+ channelName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
328
+ issueProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
329
+ projectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
330
+ events?: Prisma.NotificationChannelUpdateeventsInput | string[];
331
+ includeCost?: Prisma.BoolFieldUpdateOperationsInput | boolean;
332
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
333
+ lastErrorAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
334
+ authorizedById?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ authorizedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
336
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
337
+ agent?: Prisma.AgentUpdateOneWithoutNotificationChannelsNestedInput;
338
+ };
339
+ export type NotificationChannelUncheckedUpdateInput = {
340
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
341
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
342
+ channelId?: Prisma.StringFieldUpdateOperationsInput | string;
343
+ channelName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
344
+ issueProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
345
+ projectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
346
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
347
+ events?: Prisma.NotificationChannelUpdateeventsInput | string[];
348
+ includeCost?: Prisma.BoolFieldUpdateOperationsInput | boolean;
349
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
350
+ lastErrorAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
351
+ authorizedById?: Prisma.StringFieldUpdateOperationsInput | string;
352
+ authorizedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
353
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
354
+ };
355
+ export type NotificationChannelCreateManyInput = {
356
+ id?: string;
357
+ provider: string;
358
+ channelId: string;
359
+ channelName?: string | null;
360
+ issueProvider?: string | null;
361
+ projectKey?: string | null;
362
+ agentId?: string | null;
363
+ events?: Prisma.NotificationChannelCreateeventsInput | string[];
364
+ includeCost?: boolean;
365
+ lastError?: string | null;
366
+ lastErrorAt?: Date | string | null;
367
+ authorizedById: string;
368
+ authorizedAt?: Date | string;
369
+ createdAt?: Date | string;
370
+ };
371
+ export type NotificationChannelUpdateManyMutationInput = {
372
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ channelId?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ channelName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
376
+ issueProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
377
+ projectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
378
+ events?: Prisma.NotificationChannelUpdateeventsInput | string[];
379
+ includeCost?: Prisma.BoolFieldUpdateOperationsInput | boolean;
380
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
381
+ lastErrorAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
382
+ authorizedById?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ authorizedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
384
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
385
+ };
386
+ export type NotificationChannelUncheckedUpdateManyInput = {
387
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
388
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
389
+ channelId?: Prisma.StringFieldUpdateOperationsInput | string;
390
+ channelName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
391
+ issueProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
392
+ projectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
393
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
394
+ events?: Prisma.NotificationChannelUpdateeventsInput | string[];
395
+ includeCost?: Prisma.BoolFieldUpdateOperationsInput | boolean;
396
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
397
+ lastErrorAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
398
+ authorizedById?: Prisma.StringFieldUpdateOperationsInput | string;
399
+ authorizedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
400
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
401
+ };
402
+ export type NotificationChannelListRelationFilter = {
403
+ every?: Prisma.NotificationChannelWhereInput;
404
+ some?: Prisma.NotificationChannelWhereInput;
405
+ none?: Prisma.NotificationChannelWhereInput;
406
+ };
407
+ export type NotificationChannelOrderByRelationAggregateInput = {
408
+ _count?: Prisma.SortOrder;
409
+ };
410
+ export type NotificationChannelProviderChannelIdIssueProviderProjectKeyCompoundUniqueInput = {
411
+ provider: string;
412
+ channelId: string;
413
+ issueProvider: string;
414
+ projectKey: string;
415
+ };
416
+ export type NotificationChannelProviderChannelIdAgentIdCompoundUniqueInput = {
417
+ provider: string;
418
+ channelId: string;
419
+ agentId: string;
420
+ };
421
+ export type NotificationChannelCountOrderByAggregateInput = {
422
+ id?: Prisma.SortOrder;
423
+ provider?: Prisma.SortOrder;
424
+ channelId?: Prisma.SortOrder;
425
+ channelName?: Prisma.SortOrder;
426
+ issueProvider?: Prisma.SortOrder;
427
+ projectKey?: Prisma.SortOrder;
428
+ agentId?: Prisma.SortOrder;
429
+ events?: Prisma.SortOrder;
430
+ includeCost?: Prisma.SortOrder;
431
+ lastError?: Prisma.SortOrder;
432
+ lastErrorAt?: Prisma.SortOrder;
433
+ authorizedById?: Prisma.SortOrder;
434
+ authorizedAt?: Prisma.SortOrder;
435
+ createdAt?: Prisma.SortOrder;
436
+ };
437
+ export type NotificationChannelMaxOrderByAggregateInput = {
438
+ id?: Prisma.SortOrder;
439
+ provider?: Prisma.SortOrder;
440
+ channelId?: Prisma.SortOrder;
441
+ channelName?: Prisma.SortOrder;
442
+ issueProvider?: Prisma.SortOrder;
443
+ projectKey?: Prisma.SortOrder;
444
+ agentId?: Prisma.SortOrder;
445
+ includeCost?: Prisma.SortOrder;
446
+ lastError?: Prisma.SortOrder;
447
+ lastErrorAt?: Prisma.SortOrder;
448
+ authorizedById?: Prisma.SortOrder;
449
+ authorizedAt?: Prisma.SortOrder;
450
+ createdAt?: Prisma.SortOrder;
451
+ };
452
+ export type NotificationChannelMinOrderByAggregateInput = {
453
+ id?: Prisma.SortOrder;
454
+ provider?: Prisma.SortOrder;
455
+ channelId?: Prisma.SortOrder;
456
+ channelName?: Prisma.SortOrder;
457
+ issueProvider?: Prisma.SortOrder;
458
+ projectKey?: Prisma.SortOrder;
459
+ agentId?: Prisma.SortOrder;
460
+ includeCost?: Prisma.SortOrder;
461
+ lastError?: Prisma.SortOrder;
462
+ lastErrorAt?: Prisma.SortOrder;
463
+ authorizedById?: Prisma.SortOrder;
464
+ authorizedAt?: Prisma.SortOrder;
465
+ createdAt?: Prisma.SortOrder;
466
+ };
467
+ export type NotificationChannelCreateNestedManyWithoutAgentInput = {
468
+ create?: Prisma.XOR<Prisma.NotificationChannelCreateWithoutAgentInput, Prisma.NotificationChannelUncheckedCreateWithoutAgentInput> | Prisma.NotificationChannelCreateWithoutAgentInput[] | Prisma.NotificationChannelUncheckedCreateWithoutAgentInput[];
469
+ connectOrCreate?: Prisma.NotificationChannelCreateOrConnectWithoutAgentInput | Prisma.NotificationChannelCreateOrConnectWithoutAgentInput[];
470
+ createMany?: Prisma.NotificationChannelCreateManyAgentInputEnvelope;
471
+ connect?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
472
+ };
473
+ export type NotificationChannelUncheckedCreateNestedManyWithoutAgentInput = {
474
+ create?: Prisma.XOR<Prisma.NotificationChannelCreateWithoutAgentInput, Prisma.NotificationChannelUncheckedCreateWithoutAgentInput> | Prisma.NotificationChannelCreateWithoutAgentInput[] | Prisma.NotificationChannelUncheckedCreateWithoutAgentInput[];
475
+ connectOrCreate?: Prisma.NotificationChannelCreateOrConnectWithoutAgentInput | Prisma.NotificationChannelCreateOrConnectWithoutAgentInput[];
476
+ createMany?: Prisma.NotificationChannelCreateManyAgentInputEnvelope;
477
+ connect?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
478
+ };
479
+ export type NotificationChannelUpdateManyWithoutAgentNestedInput = {
480
+ create?: Prisma.XOR<Prisma.NotificationChannelCreateWithoutAgentInput, Prisma.NotificationChannelUncheckedCreateWithoutAgentInput> | Prisma.NotificationChannelCreateWithoutAgentInput[] | Prisma.NotificationChannelUncheckedCreateWithoutAgentInput[];
481
+ connectOrCreate?: Prisma.NotificationChannelCreateOrConnectWithoutAgentInput | Prisma.NotificationChannelCreateOrConnectWithoutAgentInput[];
482
+ upsert?: Prisma.NotificationChannelUpsertWithWhereUniqueWithoutAgentInput | Prisma.NotificationChannelUpsertWithWhereUniqueWithoutAgentInput[];
483
+ createMany?: Prisma.NotificationChannelCreateManyAgentInputEnvelope;
484
+ set?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
485
+ disconnect?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
486
+ delete?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
487
+ connect?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
488
+ update?: Prisma.NotificationChannelUpdateWithWhereUniqueWithoutAgentInput | Prisma.NotificationChannelUpdateWithWhereUniqueWithoutAgentInput[];
489
+ updateMany?: Prisma.NotificationChannelUpdateManyWithWhereWithoutAgentInput | Prisma.NotificationChannelUpdateManyWithWhereWithoutAgentInput[];
490
+ deleteMany?: Prisma.NotificationChannelScalarWhereInput | Prisma.NotificationChannelScalarWhereInput[];
491
+ };
492
+ export type NotificationChannelUncheckedUpdateManyWithoutAgentNestedInput = {
493
+ create?: Prisma.XOR<Prisma.NotificationChannelCreateWithoutAgentInput, Prisma.NotificationChannelUncheckedCreateWithoutAgentInput> | Prisma.NotificationChannelCreateWithoutAgentInput[] | Prisma.NotificationChannelUncheckedCreateWithoutAgentInput[];
494
+ connectOrCreate?: Prisma.NotificationChannelCreateOrConnectWithoutAgentInput | Prisma.NotificationChannelCreateOrConnectWithoutAgentInput[];
495
+ upsert?: Prisma.NotificationChannelUpsertWithWhereUniqueWithoutAgentInput | Prisma.NotificationChannelUpsertWithWhereUniqueWithoutAgentInput[];
496
+ createMany?: Prisma.NotificationChannelCreateManyAgentInputEnvelope;
497
+ set?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
498
+ disconnect?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
499
+ delete?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
500
+ connect?: Prisma.NotificationChannelWhereUniqueInput | Prisma.NotificationChannelWhereUniqueInput[];
501
+ update?: Prisma.NotificationChannelUpdateWithWhereUniqueWithoutAgentInput | Prisma.NotificationChannelUpdateWithWhereUniqueWithoutAgentInput[];
502
+ updateMany?: Prisma.NotificationChannelUpdateManyWithWhereWithoutAgentInput | Prisma.NotificationChannelUpdateManyWithWhereWithoutAgentInput[];
503
+ deleteMany?: Prisma.NotificationChannelScalarWhereInput | Prisma.NotificationChannelScalarWhereInput[];
504
+ };
505
+ export type NotificationChannelCreateeventsInput = {
506
+ set: string[];
507
+ };
508
+ export type NotificationChannelUpdateeventsInput = {
509
+ set?: string[];
510
+ push?: string | string[];
511
+ };
512
+ export type NotificationChannelCreateWithoutAgentInput = {
513
+ id?: string;
514
+ provider: string;
515
+ channelId: string;
516
+ channelName?: string | null;
517
+ issueProvider?: string | null;
518
+ projectKey?: string | null;
519
+ events?: Prisma.NotificationChannelCreateeventsInput | string[];
520
+ includeCost?: boolean;
521
+ lastError?: string | null;
522
+ lastErrorAt?: Date | string | null;
523
+ authorizedById: string;
524
+ authorizedAt?: Date | string;
525
+ createdAt?: Date | string;
526
+ };
527
+ export type NotificationChannelUncheckedCreateWithoutAgentInput = {
528
+ id?: string;
529
+ provider: string;
530
+ channelId: string;
531
+ channelName?: string | null;
532
+ issueProvider?: string | null;
533
+ projectKey?: string | null;
534
+ events?: Prisma.NotificationChannelCreateeventsInput | string[];
535
+ includeCost?: boolean;
536
+ lastError?: string | null;
537
+ lastErrorAt?: Date | string | null;
538
+ authorizedById: string;
539
+ authorizedAt?: Date | string;
540
+ createdAt?: Date | string;
541
+ };
542
+ export type NotificationChannelCreateOrConnectWithoutAgentInput = {
543
+ where: Prisma.NotificationChannelWhereUniqueInput;
544
+ create: Prisma.XOR<Prisma.NotificationChannelCreateWithoutAgentInput, Prisma.NotificationChannelUncheckedCreateWithoutAgentInput>;
545
+ };
546
+ export type NotificationChannelCreateManyAgentInputEnvelope = {
547
+ data: Prisma.NotificationChannelCreateManyAgentInput | Prisma.NotificationChannelCreateManyAgentInput[];
548
+ skipDuplicates?: boolean;
549
+ };
550
+ export type NotificationChannelUpsertWithWhereUniqueWithoutAgentInput = {
551
+ where: Prisma.NotificationChannelWhereUniqueInput;
552
+ update: Prisma.XOR<Prisma.NotificationChannelUpdateWithoutAgentInput, Prisma.NotificationChannelUncheckedUpdateWithoutAgentInput>;
553
+ create: Prisma.XOR<Prisma.NotificationChannelCreateWithoutAgentInput, Prisma.NotificationChannelUncheckedCreateWithoutAgentInput>;
554
+ };
555
+ export type NotificationChannelUpdateWithWhereUniqueWithoutAgentInput = {
556
+ where: Prisma.NotificationChannelWhereUniqueInput;
557
+ data: Prisma.XOR<Prisma.NotificationChannelUpdateWithoutAgentInput, Prisma.NotificationChannelUncheckedUpdateWithoutAgentInput>;
558
+ };
559
+ export type NotificationChannelUpdateManyWithWhereWithoutAgentInput = {
560
+ where: Prisma.NotificationChannelScalarWhereInput;
561
+ data: Prisma.XOR<Prisma.NotificationChannelUpdateManyMutationInput, Prisma.NotificationChannelUncheckedUpdateManyWithoutAgentInput>;
562
+ };
563
+ export type NotificationChannelScalarWhereInput = {
564
+ AND?: Prisma.NotificationChannelScalarWhereInput | Prisma.NotificationChannelScalarWhereInput[];
565
+ OR?: Prisma.NotificationChannelScalarWhereInput[];
566
+ NOT?: Prisma.NotificationChannelScalarWhereInput | Prisma.NotificationChannelScalarWhereInput[];
567
+ id?: Prisma.StringFilter<"NotificationChannel"> | string;
568
+ provider?: Prisma.StringFilter<"NotificationChannel"> | string;
569
+ channelId?: Prisma.StringFilter<"NotificationChannel"> | string;
570
+ channelName?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
571
+ issueProvider?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
572
+ projectKey?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
573
+ agentId?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
574
+ events?: Prisma.StringNullableListFilter<"NotificationChannel">;
575
+ includeCost?: Prisma.BoolFilter<"NotificationChannel"> | boolean;
576
+ lastError?: Prisma.StringNullableFilter<"NotificationChannel"> | string | null;
577
+ lastErrorAt?: Prisma.DateTimeNullableFilter<"NotificationChannel"> | Date | string | null;
578
+ authorizedById?: Prisma.StringFilter<"NotificationChannel"> | string;
579
+ authorizedAt?: Prisma.DateTimeFilter<"NotificationChannel"> | Date | string;
580
+ createdAt?: Prisma.DateTimeFilter<"NotificationChannel"> | Date | string;
581
+ };
582
+ export type NotificationChannelCreateManyAgentInput = {
583
+ id?: string;
584
+ provider: string;
585
+ channelId: string;
586
+ channelName?: string | null;
587
+ issueProvider?: string | null;
588
+ projectKey?: string | null;
589
+ events?: Prisma.NotificationChannelCreateeventsInput | string[];
590
+ includeCost?: boolean;
591
+ lastError?: string | null;
592
+ lastErrorAt?: Date | string | null;
593
+ authorizedById: string;
594
+ authorizedAt?: Date | string;
595
+ createdAt?: Date | string;
596
+ };
597
+ export type NotificationChannelUpdateWithoutAgentInput = {
598
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
599
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
600
+ channelId?: Prisma.StringFieldUpdateOperationsInput | string;
601
+ channelName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
602
+ issueProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
603
+ projectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
604
+ events?: Prisma.NotificationChannelUpdateeventsInput | string[];
605
+ includeCost?: Prisma.BoolFieldUpdateOperationsInput | boolean;
606
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
607
+ lastErrorAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
608
+ authorizedById?: Prisma.StringFieldUpdateOperationsInput | string;
609
+ authorizedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
610
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
611
+ };
612
+ export type NotificationChannelUncheckedUpdateWithoutAgentInput = {
613
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
614
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
615
+ channelId?: Prisma.StringFieldUpdateOperationsInput | string;
616
+ channelName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
617
+ issueProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
618
+ projectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
619
+ events?: Prisma.NotificationChannelUpdateeventsInput | string[];
620
+ includeCost?: Prisma.BoolFieldUpdateOperationsInput | boolean;
621
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
622
+ lastErrorAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
623
+ authorizedById?: Prisma.StringFieldUpdateOperationsInput | string;
624
+ authorizedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
625
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
626
+ };
627
+ export type NotificationChannelUncheckedUpdateManyWithoutAgentInput = {
628
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
629
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
630
+ channelId?: Prisma.StringFieldUpdateOperationsInput | string;
631
+ channelName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
632
+ issueProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
633
+ projectKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
634
+ events?: Prisma.NotificationChannelUpdateeventsInput | string[];
635
+ includeCost?: Prisma.BoolFieldUpdateOperationsInput | boolean;
636
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
637
+ lastErrorAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
638
+ authorizedById?: Prisma.StringFieldUpdateOperationsInput | string;
639
+ authorizedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
640
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
641
+ };
642
+ export type NotificationChannelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
643
+ id?: boolean;
644
+ provider?: boolean;
645
+ channelId?: boolean;
646
+ channelName?: boolean;
647
+ issueProvider?: boolean;
648
+ projectKey?: boolean;
649
+ agentId?: boolean;
650
+ events?: boolean;
651
+ includeCost?: boolean;
652
+ lastError?: boolean;
653
+ lastErrorAt?: boolean;
654
+ authorizedById?: boolean;
655
+ authorizedAt?: boolean;
656
+ createdAt?: boolean;
657
+ agent?: boolean | Prisma.NotificationChannel$agentArgs<ExtArgs>;
658
+ }, ExtArgs["result"]["notificationChannel"]>;
659
+ export type NotificationChannelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
660
+ id?: boolean;
661
+ provider?: boolean;
662
+ channelId?: boolean;
663
+ channelName?: boolean;
664
+ issueProvider?: boolean;
665
+ projectKey?: boolean;
666
+ agentId?: boolean;
667
+ events?: boolean;
668
+ includeCost?: boolean;
669
+ lastError?: boolean;
670
+ lastErrorAt?: boolean;
671
+ authorizedById?: boolean;
672
+ authorizedAt?: boolean;
673
+ createdAt?: boolean;
674
+ agent?: boolean | Prisma.NotificationChannel$agentArgs<ExtArgs>;
675
+ }, ExtArgs["result"]["notificationChannel"]>;
676
+ export type NotificationChannelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
677
+ id?: boolean;
678
+ provider?: boolean;
679
+ channelId?: boolean;
680
+ channelName?: boolean;
681
+ issueProvider?: boolean;
682
+ projectKey?: boolean;
683
+ agentId?: boolean;
684
+ events?: boolean;
685
+ includeCost?: boolean;
686
+ lastError?: boolean;
687
+ lastErrorAt?: boolean;
688
+ authorizedById?: boolean;
689
+ authorizedAt?: boolean;
690
+ createdAt?: boolean;
691
+ agent?: boolean | Prisma.NotificationChannel$agentArgs<ExtArgs>;
692
+ }, ExtArgs["result"]["notificationChannel"]>;
693
+ export type NotificationChannelSelectScalar = {
694
+ id?: boolean;
695
+ provider?: boolean;
696
+ channelId?: boolean;
697
+ channelName?: boolean;
698
+ issueProvider?: boolean;
699
+ projectKey?: boolean;
700
+ agentId?: boolean;
701
+ events?: boolean;
702
+ includeCost?: boolean;
703
+ lastError?: boolean;
704
+ lastErrorAt?: boolean;
705
+ authorizedById?: boolean;
706
+ authorizedAt?: boolean;
707
+ createdAt?: boolean;
708
+ };
709
+ export type NotificationChannelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "provider" | "channelId" | "channelName" | "issueProvider" | "projectKey" | "agentId" | "events" | "includeCost" | "lastError" | "lastErrorAt" | "authorizedById" | "authorizedAt" | "createdAt", ExtArgs["result"]["notificationChannel"]>;
710
+ export type NotificationChannelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
711
+ agent?: boolean | Prisma.NotificationChannel$agentArgs<ExtArgs>;
712
+ };
713
+ export type NotificationChannelIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
714
+ agent?: boolean | Prisma.NotificationChannel$agentArgs<ExtArgs>;
715
+ };
716
+ export type NotificationChannelIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
717
+ agent?: boolean | Prisma.NotificationChannel$agentArgs<ExtArgs>;
718
+ };
719
+ export type $NotificationChannelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
720
+ name: "NotificationChannel";
721
+ objects: {
722
+ agent: Prisma.$AgentPayload<ExtArgs> | null;
723
+ };
724
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
725
+ id: string;
726
+ /**
727
+ * "slack" today; validated in code.
728
+ */
729
+ provider: string;
730
+ /**
731
+ * Slack channel id (C…/G…), upper-case.
732
+ */
733
+ channelId: string;
734
+ /**
735
+ * Last known channel name, display only.
736
+ */
737
+ channelName: string | null;
738
+ issueProvider: string | null;
739
+ projectKey: string | null;
740
+ agentId: string | null;
741
+ /**
742
+ * Subset of the workflow event kinds; empty = all.
743
+ */
744
+ events: string[];
745
+ /**
746
+ * Append the run's spend line to messages.
747
+ */
748
+ includeCost: boolean;
749
+ /**
750
+ * Set by the dispatcher on a permanent channel error; cleared by re-linking.
751
+ */
752
+ lastError: string | null;
753
+ lastErrorAt: Date | null;
754
+ authorizedById: string;
755
+ authorizedAt: Date;
756
+ createdAt: Date;
757
+ }, ExtArgs["result"]["notificationChannel"]>;
758
+ composites: {};
759
+ };
760
+ export type NotificationChannelGetPayload<S extends boolean | null | undefined | NotificationChannelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload, S>;
761
+ export type NotificationChannelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<NotificationChannelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
762
+ select?: NotificationChannelCountAggregateInputType | true;
763
+ };
764
+ export interface NotificationChannelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
765
+ [K: symbol]: {
766
+ types: Prisma.TypeMap<ExtArgs>['model']['NotificationChannel'];
767
+ meta: {
768
+ name: 'NotificationChannel';
769
+ };
770
+ };
771
+ /**
772
+ * Find zero or one NotificationChannel that matches the filter.
773
+ * @param {NotificationChannelFindUniqueArgs} args - Arguments to find a NotificationChannel
774
+ * @example
775
+ * // Get one NotificationChannel
776
+ * const notificationChannel = await prisma.notificationChannel.findUnique({
777
+ * where: {
778
+ * // ... provide filter here
779
+ * }
780
+ * })
781
+ */
782
+ findUnique<T extends NotificationChannelFindUniqueArgs>(args: Prisma.SelectSubset<T, NotificationChannelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
783
+ /**
784
+ * Find one NotificationChannel that matches the filter or throw an error with `error.code='P2025'`
785
+ * if no matches were found.
786
+ * @param {NotificationChannelFindUniqueOrThrowArgs} args - Arguments to find a NotificationChannel
787
+ * @example
788
+ * // Get one NotificationChannel
789
+ * const notificationChannel = await prisma.notificationChannel.findUniqueOrThrow({
790
+ * where: {
791
+ * // ... provide filter here
792
+ * }
793
+ * })
794
+ */
795
+ findUniqueOrThrow<T extends NotificationChannelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, NotificationChannelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
796
+ /**
797
+ * Find the first NotificationChannel that matches the filter.
798
+ * Note, that providing `undefined` is treated as the value not being there.
799
+ * Read more here: https://pris.ly/d/null-undefined
800
+ * @param {NotificationChannelFindFirstArgs} args - Arguments to find a NotificationChannel
801
+ * @example
802
+ * // Get one NotificationChannel
803
+ * const notificationChannel = await prisma.notificationChannel.findFirst({
804
+ * where: {
805
+ * // ... provide filter here
806
+ * }
807
+ * })
808
+ */
809
+ findFirst<T extends NotificationChannelFindFirstArgs>(args?: Prisma.SelectSubset<T, NotificationChannelFindFirstArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
810
+ /**
811
+ * Find the first NotificationChannel that matches the filter or
812
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
813
+ * Note, that providing `undefined` is treated as the value not being there.
814
+ * Read more here: https://pris.ly/d/null-undefined
815
+ * @param {NotificationChannelFindFirstOrThrowArgs} args - Arguments to find a NotificationChannel
816
+ * @example
817
+ * // Get one NotificationChannel
818
+ * const notificationChannel = await prisma.notificationChannel.findFirstOrThrow({
819
+ * where: {
820
+ * // ... provide filter here
821
+ * }
822
+ * })
823
+ */
824
+ findFirstOrThrow<T extends NotificationChannelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, NotificationChannelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
825
+ /**
826
+ * Find zero or more NotificationChannels that matches the filter.
827
+ * Note, that providing `undefined` is treated as the value not being there.
828
+ * Read more here: https://pris.ly/d/null-undefined
829
+ * @param {NotificationChannelFindManyArgs} args - Arguments to filter and select certain fields only.
830
+ * @example
831
+ * // Get all NotificationChannels
832
+ * const notificationChannels = await prisma.notificationChannel.findMany()
833
+ *
834
+ * // Get first 10 NotificationChannels
835
+ * const notificationChannels = await prisma.notificationChannel.findMany({ take: 10 })
836
+ *
837
+ * // Only select the `id`
838
+ * const notificationChannelWithIdOnly = await prisma.notificationChannel.findMany({ select: { id: true } })
839
+ *
840
+ */
841
+ findMany<T extends NotificationChannelFindManyArgs>(args?: Prisma.SelectSubset<T, NotificationChannelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
842
+ /**
843
+ * Create a NotificationChannel.
844
+ * @param {NotificationChannelCreateArgs} args - Arguments to create a NotificationChannel.
845
+ * @example
846
+ * // Create one NotificationChannel
847
+ * const NotificationChannel = await prisma.notificationChannel.create({
848
+ * data: {
849
+ * // ... data to create a NotificationChannel
850
+ * }
851
+ * })
852
+ *
853
+ */
854
+ create<T extends NotificationChannelCreateArgs>(args: Prisma.SelectSubset<T, NotificationChannelCreateArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
855
+ /**
856
+ * Create many NotificationChannels.
857
+ * @param {NotificationChannelCreateManyArgs} args - Arguments to create many NotificationChannels.
858
+ * @example
859
+ * // Create many NotificationChannels
860
+ * const notificationChannel = await prisma.notificationChannel.createMany({
861
+ * data: [
862
+ * // ... provide data here
863
+ * ]
864
+ * })
865
+ *
866
+ */
867
+ createMany<T extends NotificationChannelCreateManyArgs>(args?: Prisma.SelectSubset<T, NotificationChannelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
868
+ /**
869
+ * Create many NotificationChannels and returns the data saved in the database.
870
+ * @param {NotificationChannelCreateManyAndReturnArgs} args - Arguments to create many NotificationChannels.
871
+ * @example
872
+ * // Create many NotificationChannels
873
+ * const notificationChannel = await prisma.notificationChannel.createManyAndReturn({
874
+ * data: [
875
+ * // ... provide data here
876
+ * ]
877
+ * })
878
+ *
879
+ * // Create many NotificationChannels and only return the `id`
880
+ * const notificationChannelWithIdOnly = await prisma.notificationChannel.createManyAndReturn({
881
+ * select: { id: true },
882
+ * data: [
883
+ * // ... provide data here
884
+ * ]
885
+ * })
886
+ * Note, that providing `undefined` is treated as the value not being there.
887
+ * Read more here: https://pris.ly/d/null-undefined
888
+ *
889
+ */
890
+ createManyAndReturn<T extends NotificationChannelCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, NotificationChannelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
891
+ /**
892
+ * Delete a NotificationChannel.
893
+ * @param {NotificationChannelDeleteArgs} args - Arguments to delete one NotificationChannel.
894
+ * @example
895
+ * // Delete one NotificationChannel
896
+ * const NotificationChannel = await prisma.notificationChannel.delete({
897
+ * where: {
898
+ * // ... filter to delete one NotificationChannel
899
+ * }
900
+ * })
901
+ *
902
+ */
903
+ delete<T extends NotificationChannelDeleteArgs>(args: Prisma.SelectSubset<T, NotificationChannelDeleteArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
904
+ /**
905
+ * Update one NotificationChannel.
906
+ * @param {NotificationChannelUpdateArgs} args - Arguments to update one NotificationChannel.
907
+ * @example
908
+ * // Update one NotificationChannel
909
+ * const notificationChannel = await prisma.notificationChannel.update({
910
+ * where: {
911
+ * // ... provide filter here
912
+ * },
913
+ * data: {
914
+ * // ... provide data here
915
+ * }
916
+ * })
917
+ *
918
+ */
919
+ update<T extends NotificationChannelUpdateArgs>(args: Prisma.SelectSubset<T, NotificationChannelUpdateArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
920
+ /**
921
+ * Delete zero or more NotificationChannels.
922
+ * @param {NotificationChannelDeleteManyArgs} args - Arguments to filter NotificationChannels to delete.
923
+ * @example
924
+ * // Delete a few NotificationChannels
925
+ * const { count } = await prisma.notificationChannel.deleteMany({
926
+ * where: {
927
+ * // ... provide filter here
928
+ * }
929
+ * })
930
+ *
931
+ */
932
+ deleteMany<T extends NotificationChannelDeleteManyArgs>(args?: Prisma.SelectSubset<T, NotificationChannelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
933
+ /**
934
+ * Update zero or more NotificationChannels.
935
+ * Note, that providing `undefined` is treated as the value not being there.
936
+ * Read more here: https://pris.ly/d/null-undefined
937
+ * @param {NotificationChannelUpdateManyArgs} args - Arguments to update one or more rows.
938
+ * @example
939
+ * // Update many NotificationChannels
940
+ * const notificationChannel = await prisma.notificationChannel.updateMany({
941
+ * where: {
942
+ * // ... provide filter here
943
+ * },
944
+ * data: {
945
+ * // ... provide data here
946
+ * }
947
+ * })
948
+ *
949
+ */
950
+ updateMany<T extends NotificationChannelUpdateManyArgs>(args: Prisma.SelectSubset<T, NotificationChannelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
951
+ /**
952
+ * Update zero or more NotificationChannels and returns the data updated in the database.
953
+ * @param {NotificationChannelUpdateManyAndReturnArgs} args - Arguments to update many NotificationChannels.
954
+ * @example
955
+ * // Update many NotificationChannels
956
+ * const notificationChannel = await prisma.notificationChannel.updateManyAndReturn({
957
+ * where: {
958
+ * // ... provide filter here
959
+ * },
960
+ * data: [
961
+ * // ... provide data here
962
+ * ]
963
+ * })
964
+ *
965
+ * // Update zero or more NotificationChannels and only return the `id`
966
+ * const notificationChannelWithIdOnly = await prisma.notificationChannel.updateManyAndReturn({
967
+ * select: { id: true },
968
+ * where: {
969
+ * // ... provide filter here
970
+ * },
971
+ * data: [
972
+ * // ... provide data here
973
+ * ]
974
+ * })
975
+ * Note, that providing `undefined` is treated as the value not being there.
976
+ * Read more here: https://pris.ly/d/null-undefined
977
+ *
978
+ */
979
+ updateManyAndReturn<T extends NotificationChannelUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, NotificationChannelUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
980
+ /**
981
+ * Create or update one NotificationChannel.
982
+ * @param {NotificationChannelUpsertArgs} args - Arguments to update or create a NotificationChannel.
983
+ * @example
984
+ * // Update or create a NotificationChannel
985
+ * const notificationChannel = await prisma.notificationChannel.upsert({
986
+ * create: {
987
+ * // ... data to create a NotificationChannel
988
+ * },
989
+ * update: {
990
+ * // ... in case it already exists, update
991
+ * },
992
+ * where: {
993
+ * // ... the filter for the NotificationChannel we want to update
994
+ * }
995
+ * })
996
+ */
997
+ upsert<T extends NotificationChannelUpsertArgs>(args: Prisma.SelectSubset<T, NotificationChannelUpsertArgs<ExtArgs>>): Prisma.Prisma__NotificationChannelClient<runtime.Types.Result.GetResult<Prisma.$NotificationChannelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
998
+ /**
999
+ * Count the number of NotificationChannels.
1000
+ * Note, that providing `undefined` is treated as the value not being there.
1001
+ * Read more here: https://pris.ly/d/null-undefined
1002
+ * @param {NotificationChannelCountArgs} args - Arguments to filter NotificationChannels to count.
1003
+ * @example
1004
+ * // Count the number of NotificationChannels
1005
+ * const count = await prisma.notificationChannel.count({
1006
+ * where: {
1007
+ * // ... the filter for the NotificationChannels we want to count
1008
+ * }
1009
+ * })
1010
+ **/
1011
+ count<T extends NotificationChannelCountArgs>(args?: Prisma.Subset<T, NotificationChannelCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], NotificationChannelCountAggregateOutputType> : number>;
1012
+ /**
1013
+ * Allows you to perform aggregations operations on a NotificationChannel.
1014
+ * Note, that providing `undefined` is treated as the value not being there.
1015
+ * Read more here: https://pris.ly/d/null-undefined
1016
+ * @param {NotificationChannelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1017
+ * @example
1018
+ * // Ordered by age ascending
1019
+ * // Where email contains prisma.io
1020
+ * // Limited to the 10 users
1021
+ * const aggregations = await prisma.user.aggregate({
1022
+ * _avg: {
1023
+ * age: true,
1024
+ * },
1025
+ * where: {
1026
+ * email: {
1027
+ * contains: "prisma.io",
1028
+ * },
1029
+ * },
1030
+ * orderBy: {
1031
+ * age: "asc",
1032
+ * },
1033
+ * take: 10,
1034
+ * })
1035
+ **/
1036
+ aggregate<T extends NotificationChannelAggregateArgs>(args: Prisma.Subset<T, NotificationChannelAggregateArgs>): Prisma.PrismaPromise<GetNotificationChannelAggregateType<T>>;
1037
+ /**
1038
+ * Group by NotificationChannel.
1039
+ * Note, that providing `undefined` is treated as the value not being there.
1040
+ * Read more here: https://pris.ly/d/null-undefined
1041
+ * @param {NotificationChannelGroupByArgs} args - Group by arguments.
1042
+ * @example
1043
+ * // Group by city, order by createdAt, get count
1044
+ * const result = await prisma.user.groupBy({
1045
+ * by: ['city', 'createdAt'],
1046
+ * orderBy: {
1047
+ * createdAt: true
1048
+ * },
1049
+ * _count: {
1050
+ * _all: true
1051
+ * },
1052
+ * })
1053
+ *
1054
+ **/
1055
+ groupBy<T extends NotificationChannelGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1056
+ orderBy: NotificationChannelGroupByArgs['orderBy'];
1057
+ } : {
1058
+ orderBy?: NotificationChannelGroupByArgs['orderBy'];
1059
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1060
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1061
+ Error,
1062
+ 'Field ',
1063
+ P,
1064
+ ` in "having" needs to be provided in "by"`
1065
+ ];
1066
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1067
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1068
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1069
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1070
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1071
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1072
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, NotificationChannelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotificationChannelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1073
+ /**
1074
+ * Fields of the NotificationChannel model
1075
+ */
1076
+ readonly fields: NotificationChannelFieldRefs;
1077
+ }
1078
+ /**
1079
+ * The delegate class that acts as a "Promise-like" for NotificationChannel.
1080
+ * Why is this prefixed with `Prisma__`?
1081
+ * Because we want to prevent naming conflicts as mentioned in
1082
+ * https://github.com/prisma/prisma-client-js/issues/707
1083
+ */
1084
+ export interface Prisma__NotificationChannelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1085
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1086
+ agent<T extends Prisma.NotificationChannel$agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.NotificationChannel$agentArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1087
+ /**
1088
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1089
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1090
+ * @param onrejected The callback to execute when the Promise is rejected.
1091
+ * @returns A Promise for the completion of which ever callback is executed.
1092
+ */
1093
+ 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>;
1094
+ /**
1095
+ * Attaches a callback for only the rejection of the Promise.
1096
+ * @param onrejected The callback to execute when the Promise is rejected.
1097
+ * @returns A Promise for the completion of the callback.
1098
+ */
1099
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1100
+ /**
1101
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1102
+ * resolved value cannot be modified from the callback.
1103
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1104
+ * @returns A Promise for the completion of the callback.
1105
+ */
1106
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1107
+ }
1108
+ /**
1109
+ * Fields of the NotificationChannel model
1110
+ */
1111
+ export interface NotificationChannelFieldRefs {
1112
+ readonly id: Prisma.FieldRef<"NotificationChannel", 'String'>;
1113
+ readonly provider: Prisma.FieldRef<"NotificationChannel", 'String'>;
1114
+ readonly channelId: Prisma.FieldRef<"NotificationChannel", 'String'>;
1115
+ readonly channelName: Prisma.FieldRef<"NotificationChannel", 'String'>;
1116
+ readonly issueProvider: Prisma.FieldRef<"NotificationChannel", 'String'>;
1117
+ readonly projectKey: Prisma.FieldRef<"NotificationChannel", 'String'>;
1118
+ readonly agentId: Prisma.FieldRef<"NotificationChannel", 'String'>;
1119
+ readonly events: Prisma.FieldRef<"NotificationChannel", 'String[]'>;
1120
+ readonly includeCost: Prisma.FieldRef<"NotificationChannel", 'Boolean'>;
1121
+ readonly lastError: Prisma.FieldRef<"NotificationChannel", 'String'>;
1122
+ readonly lastErrorAt: Prisma.FieldRef<"NotificationChannel", 'DateTime'>;
1123
+ readonly authorizedById: Prisma.FieldRef<"NotificationChannel", 'String'>;
1124
+ readonly authorizedAt: Prisma.FieldRef<"NotificationChannel", 'DateTime'>;
1125
+ readonly createdAt: Prisma.FieldRef<"NotificationChannel", 'DateTime'>;
1126
+ }
1127
+ /**
1128
+ * NotificationChannel findUnique
1129
+ */
1130
+ export type NotificationChannelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
+ /**
1132
+ * Select specific fields to fetch from the NotificationChannel
1133
+ */
1134
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1135
+ /**
1136
+ * Omit specific fields from the NotificationChannel
1137
+ */
1138
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1139
+ /**
1140
+ * Choose, which related nodes to fetch as well
1141
+ */
1142
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1143
+ /**
1144
+ * Filter, which NotificationChannel to fetch.
1145
+ */
1146
+ where: Prisma.NotificationChannelWhereUniqueInput;
1147
+ };
1148
+ /**
1149
+ * NotificationChannel findUniqueOrThrow
1150
+ */
1151
+ export type NotificationChannelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1152
+ /**
1153
+ * Select specific fields to fetch from the NotificationChannel
1154
+ */
1155
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1156
+ /**
1157
+ * Omit specific fields from the NotificationChannel
1158
+ */
1159
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1160
+ /**
1161
+ * Choose, which related nodes to fetch as well
1162
+ */
1163
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1164
+ /**
1165
+ * Filter, which NotificationChannel to fetch.
1166
+ */
1167
+ where: Prisma.NotificationChannelWhereUniqueInput;
1168
+ };
1169
+ /**
1170
+ * NotificationChannel findFirst
1171
+ */
1172
+ export type NotificationChannelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1173
+ /**
1174
+ * Select specific fields to fetch from the NotificationChannel
1175
+ */
1176
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1177
+ /**
1178
+ * Omit specific fields from the NotificationChannel
1179
+ */
1180
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1181
+ /**
1182
+ * Choose, which related nodes to fetch as well
1183
+ */
1184
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1185
+ /**
1186
+ * Filter, which NotificationChannel to fetch.
1187
+ */
1188
+ where?: Prisma.NotificationChannelWhereInput;
1189
+ /**
1190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1191
+ *
1192
+ * Determine the order of NotificationChannels to fetch.
1193
+ */
1194
+ orderBy?: Prisma.NotificationChannelOrderByWithRelationInput | Prisma.NotificationChannelOrderByWithRelationInput[];
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1197
+ *
1198
+ * Sets the position for searching for NotificationChannels.
1199
+ */
1200
+ cursor?: Prisma.NotificationChannelWhereUniqueInput;
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1203
+ *
1204
+ * Take `±n` NotificationChannels from the position of the cursor.
1205
+ */
1206
+ take?: number;
1207
+ /**
1208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1209
+ *
1210
+ * Skip the first `n` NotificationChannels.
1211
+ */
1212
+ skip?: number;
1213
+ /**
1214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1215
+ *
1216
+ * Filter by unique combinations of NotificationChannels.
1217
+ */
1218
+ distinct?: Prisma.NotificationChannelScalarFieldEnum | Prisma.NotificationChannelScalarFieldEnum[];
1219
+ };
1220
+ /**
1221
+ * NotificationChannel findFirstOrThrow
1222
+ */
1223
+ export type NotificationChannelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1224
+ /**
1225
+ * Select specific fields to fetch from the NotificationChannel
1226
+ */
1227
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1228
+ /**
1229
+ * Omit specific fields from the NotificationChannel
1230
+ */
1231
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1232
+ /**
1233
+ * Choose, which related nodes to fetch as well
1234
+ */
1235
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1236
+ /**
1237
+ * Filter, which NotificationChannel to fetch.
1238
+ */
1239
+ where?: Prisma.NotificationChannelWhereInput;
1240
+ /**
1241
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1242
+ *
1243
+ * Determine the order of NotificationChannels to fetch.
1244
+ */
1245
+ orderBy?: Prisma.NotificationChannelOrderByWithRelationInput | Prisma.NotificationChannelOrderByWithRelationInput[];
1246
+ /**
1247
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1248
+ *
1249
+ * Sets the position for searching for NotificationChannels.
1250
+ */
1251
+ cursor?: Prisma.NotificationChannelWhereUniqueInput;
1252
+ /**
1253
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1254
+ *
1255
+ * Take `±n` NotificationChannels from the position of the cursor.
1256
+ */
1257
+ take?: number;
1258
+ /**
1259
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1260
+ *
1261
+ * Skip the first `n` NotificationChannels.
1262
+ */
1263
+ skip?: number;
1264
+ /**
1265
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1266
+ *
1267
+ * Filter by unique combinations of NotificationChannels.
1268
+ */
1269
+ distinct?: Prisma.NotificationChannelScalarFieldEnum | Prisma.NotificationChannelScalarFieldEnum[];
1270
+ };
1271
+ /**
1272
+ * NotificationChannel findMany
1273
+ */
1274
+ export type NotificationChannelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
+ /**
1276
+ * Select specific fields to fetch from the NotificationChannel
1277
+ */
1278
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1279
+ /**
1280
+ * Omit specific fields from the NotificationChannel
1281
+ */
1282
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1283
+ /**
1284
+ * Choose, which related nodes to fetch as well
1285
+ */
1286
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1287
+ /**
1288
+ * Filter, which NotificationChannels to fetch.
1289
+ */
1290
+ where?: Prisma.NotificationChannelWhereInput;
1291
+ /**
1292
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1293
+ *
1294
+ * Determine the order of NotificationChannels to fetch.
1295
+ */
1296
+ orderBy?: Prisma.NotificationChannelOrderByWithRelationInput | Prisma.NotificationChannelOrderByWithRelationInput[];
1297
+ /**
1298
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1299
+ *
1300
+ * Sets the position for listing NotificationChannels.
1301
+ */
1302
+ cursor?: Prisma.NotificationChannelWhereUniqueInput;
1303
+ /**
1304
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1305
+ *
1306
+ * Take `±n` NotificationChannels from the position of the cursor.
1307
+ */
1308
+ take?: number;
1309
+ /**
1310
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1311
+ *
1312
+ * Skip the first `n` NotificationChannels.
1313
+ */
1314
+ skip?: number;
1315
+ /**
1316
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1317
+ *
1318
+ * Filter by unique combinations of NotificationChannels.
1319
+ */
1320
+ distinct?: Prisma.NotificationChannelScalarFieldEnum | Prisma.NotificationChannelScalarFieldEnum[];
1321
+ };
1322
+ /**
1323
+ * NotificationChannel create
1324
+ */
1325
+ export type NotificationChannelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * Select specific fields to fetch from the NotificationChannel
1328
+ */
1329
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1330
+ /**
1331
+ * Omit specific fields from the NotificationChannel
1332
+ */
1333
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1334
+ /**
1335
+ * Choose, which related nodes to fetch as well
1336
+ */
1337
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1338
+ /**
1339
+ * The data needed to create a NotificationChannel.
1340
+ */
1341
+ data: Prisma.XOR<Prisma.NotificationChannelCreateInput, Prisma.NotificationChannelUncheckedCreateInput>;
1342
+ };
1343
+ /**
1344
+ * NotificationChannel createMany
1345
+ */
1346
+ export type NotificationChannelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1347
+ /**
1348
+ * The data used to create many NotificationChannels.
1349
+ */
1350
+ data: Prisma.NotificationChannelCreateManyInput | Prisma.NotificationChannelCreateManyInput[];
1351
+ skipDuplicates?: boolean;
1352
+ };
1353
+ /**
1354
+ * NotificationChannel createManyAndReturn
1355
+ */
1356
+ export type NotificationChannelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1357
+ /**
1358
+ * Select specific fields to fetch from the NotificationChannel
1359
+ */
1360
+ select?: Prisma.NotificationChannelSelectCreateManyAndReturn<ExtArgs> | null;
1361
+ /**
1362
+ * Omit specific fields from the NotificationChannel
1363
+ */
1364
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1365
+ /**
1366
+ * The data used to create many NotificationChannels.
1367
+ */
1368
+ data: Prisma.NotificationChannelCreateManyInput | Prisma.NotificationChannelCreateManyInput[];
1369
+ skipDuplicates?: boolean;
1370
+ /**
1371
+ * Choose, which related nodes to fetch as well
1372
+ */
1373
+ include?: Prisma.NotificationChannelIncludeCreateManyAndReturn<ExtArgs> | null;
1374
+ };
1375
+ /**
1376
+ * NotificationChannel update
1377
+ */
1378
+ export type NotificationChannelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1379
+ /**
1380
+ * Select specific fields to fetch from the NotificationChannel
1381
+ */
1382
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1383
+ /**
1384
+ * Omit specific fields from the NotificationChannel
1385
+ */
1386
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1387
+ /**
1388
+ * Choose, which related nodes to fetch as well
1389
+ */
1390
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1391
+ /**
1392
+ * The data needed to update a NotificationChannel.
1393
+ */
1394
+ data: Prisma.XOR<Prisma.NotificationChannelUpdateInput, Prisma.NotificationChannelUncheckedUpdateInput>;
1395
+ /**
1396
+ * Choose, which NotificationChannel to update.
1397
+ */
1398
+ where: Prisma.NotificationChannelWhereUniqueInput;
1399
+ };
1400
+ /**
1401
+ * NotificationChannel updateMany
1402
+ */
1403
+ export type NotificationChannelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
+ /**
1405
+ * The data used to update NotificationChannels.
1406
+ */
1407
+ data: Prisma.XOR<Prisma.NotificationChannelUpdateManyMutationInput, Prisma.NotificationChannelUncheckedUpdateManyInput>;
1408
+ /**
1409
+ * Filter which NotificationChannels to update
1410
+ */
1411
+ where?: Prisma.NotificationChannelWhereInput;
1412
+ /**
1413
+ * Limit how many NotificationChannels to update.
1414
+ */
1415
+ limit?: number;
1416
+ };
1417
+ /**
1418
+ * NotificationChannel updateManyAndReturn
1419
+ */
1420
+ export type NotificationChannelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1421
+ /**
1422
+ * Select specific fields to fetch from the NotificationChannel
1423
+ */
1424
+ select?: Prisma.NotificationChannelSelectUpdateManyAndReturn<ExtArgs> | null;
1425
+ /**
1426
+ * Omit specific fields from the NotificationChannel
1427
+ */
1428
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1429
+ /**
1430
+ * The data used to update NotificationChannels.
1431
+ */
1432
+ data: Prisma.XOR<Prisma.NotificationChannelUpdateManyMutationInput, Prisma.NotificationChannelUncheckedUpdateManyInput>;
1433
+ /**
1434
+ * Filter which NotificationChannels to update
1435
+ */
1436
+ where?: Prisma.NotificationChannelWhereInput;
1437
+ /**
1438
+ * Limit how many NotificationChannels to update.
1439
+ */
1440
+ limit?: number;
1441
+ /**
1442
+ * Choose, which related nodes to fetch as well
1443
+ */
1444
+ include?: Prisma.NotificationChannelIncludeUpdateManyAndReturn<ExtArgs> | null;
1445
+ };
1446
+ /**
1447
+ * NotificationChannel upsert
1448
+ */
1449
+ export type NotificationChannelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1450
+ /**
1451
+ * Select specific fields to fetch from the NotificationChannel
1452
+ */
1453
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1454
+ /**
1455
+ * Omit specific fields from the NotificationChannel
1456
+ */
1457
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1458
+ /**
1459
+ * Choose, which related nodes to fetch as well
1460
+ */
1461
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1462
+ /**
1463
+ * The filter to search for the NotificationChannel to update in case it exists.
1464
+ */
1465
+ where: Prisma.NotificationChannelWhereUniqueInput;
1466
+ /**
1467
+ * In case the NotificationChannel found by the `where` argument doesn't exist, create a new NotificationChannel with this data.
1468
+ */
1469
+ create: Prisma.XOR<Prisma.NotificationChannelCreateInput, Prisma.NotificationChannelUncheckedCreateInput>;
1470
+ /**
1471
+ * In case the NotificationChannel was found with the provided `where` argument, update it with this data.
1472
+ */
1473
+ update: Prisma.XOR<Prisma.NotificationChannelUpdateInput, Prisma.NotificationChannelUncheckedUpdateInput>;
1474
+ };
1475
+ /**
1476
+ * NotificationChannel delete
1477
+ */
1478
+ export type NotificationChannelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1479
+ /**
1480
+ * Select specific fields to fetch from the NotificationChannel
1481
+ */
1482
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1483
+ /**
1484
+ * Omit specific fields from the NotificationChannel
1485
+ */
1486
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1487
+ /**
1488
+ * Choose, which related nodes to fetch as well
1489
+ */
1490
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1491
+ /**
1492
+ * Filter which NotificationChannel to delete.
1493
+ */
1494
+ where: Prisma.NotificationChannelWhereUniqueInput;
1495
+ };
1496
+ /**
1497
+ * NotificationChannel deleteMany
1498
+ */
1499
+ export type NotificationChannelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1500
+ /**
1501
+ * Filter which NotificationChannels to delete
1502
+ */
1503
+ where?: Prisma.NotificationChannelWhereInput;
1504
+ /**
1505
+ * Limit how many NotificationChannels to delete.
1506
+ */
1507
+ limit?: number;
1508
+ };
1509
+ /**
1510
+ * NotificationChannel.agent
1511
+ */
1512
+ export type NotificationChannel$agentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1513
+ /**
1514
+ * Select specific fields to fetch from the Agent
1515
+ */
1516
+ select?: Prisma.AgentSelect<ExtArgs> | null;
1517
+ /**
1518
+ * Omit specific fields from the Agent
1519
+ */
1520
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
1521
+ /**
1522
+ * Choose, which related nodes to fetch as well
1523
+ */
1524
+ include?: Prisma.AgentInclude<ExtArgs> | null;
1525
+ where?: Prisma.AgentWhereInput;
1526
+ };
1527
+ /**
1528
+ * NotificationChannel without action
1529
+ */
1530
+ export type NotificationChannelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
+ /**
1532
+ * Select specific fields to fetch from the NotificationChannel
1533
+ */
1534
+ select?: Prisma.NotificationChannelSelect<ExtArgs> | null;
1535
+ /**
1536
+ * Omit specific fields from the NotificationChannel
1537
+ */
1538
+ omit?: Prisma.NotificationChannelOmit<ExtArgs> | null;
1539
+ /**
1540
+ * Choose, which related nodes to fetch as well
1541
+ */
1542
+ include?: Prisma.NotificationChannelInclude<ExtArgs> | null;
1543
+ };