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