@wardby/cli 0.6.0 → 0.7.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 (576) hide show
  1. package/deploy/local/docker-compose.quickstart-coding.yml +13 -0
  2. package/dist/claude-coding-worker/driver.d.ts +21 -3
  3. package/dist/claude-coding-worker/driver.js +125 -17
  4. package/dist/claude-coding-worker/main.js +34 -6
  5. package/dist/claude-coding-worker/sdk.js +12 -1
  6. package/dist/claude-coding-worker/tool-socket.d.ts +27 -0
  7. package/dist/claude-coding-worker/tool-socket.js +111 -0
  8. package/dist/claude-coding-worker/transcript.d.ts +18 -0
  9. package/dist/claude-coding-worker/transcript.js +77 -0
  10. package/dist/cli-help.d.ts +1 -1
  11. package/dist/cli-help.js +1 -0
  12. package/dist/cli.js +24 -10
  13. package/dist/coding/continuation-wording.d.ts +35 -0
  14. package/dist/coding/continuation-wording.js +73 -0
  15. package/dist/coding/linked-issue-note.d.ts +23 -0
  16. package/dist/coding/linked-issue-note.js +47 -0
  17. package/dist/coding/merge-wording.d.ts +28 -0
  18. package/dist/coding/merge-wording.js +78 -0
  19. package/dist/coding/pr-description-note.d.ts +9 -0
  20. package/dist/coding/pr-description-note.js +32 -0
  21. package/dist/coding/profile.d.ts +46 -126
  22. package/dist/coding/profile.js +45 -4
  23. package/dist/coding/protected-path-wording.d.ts +8 -0
  24. package/dist/coding/protected-path-wording.js +1 -1
  25. package/dist/coding/protocol.d.ts +264 -346
  26. package/dist/coding/protocol.js +235 -12
  27. package/dist/coding/redact.d.ts +3 -0
  28. package/dist/coding/redact.js +12 -0
  29. package/dist/coding/registry/allowlist.d.ts +12 -0
  30. package/dist/coding/registry/allowlist.js +14 -1
  31. package/dist/coding/registry/audit-mode.d.ts +153 -0
  32. package/dist/coding/registry/audit-mode.js +304 -0
  33. package/dist/coding/registry/lockfile-shared.d.ts +36 -0
  34. package/dist/coding/registry/lockfile-shared.js +128 -0
  35. package/dist/coding/registry/lockfiles.js +1 -1
  36. package/dist/coding/registry/npm-lockfile-formats.d.ts +11 -0
  37. package/dist/coding/registry/npm-lockfile-formats.js +41 -0
  38. package/dist/coding/registry/npm-lockfile.d.ts +8 -4
  39. package/dist/coding/registry/npm-lockfile.js +4 -6
  40. package/dist/coding/registry/npm.js +78 -8
  41. package/dist/coding/registry/pnpm-lockfile.d.ts +17 -0
  42. package/dist/coding/registry/pnpm-lockfile.js +189 -0
  43. package/dist/coding/registry/pypi-plan.d.ts +50 -0
  44. package/dist/coding/registry/pypi-plan.js +406 -0
  45. package/dist/coding/registry/pypi-requirements.d.ts +58 -0
  46. package/dist/coding/registry/pypi-requirements.js +155 -0
  47. package/dist/coding/registry/pypi.d.ts +3 -27
  48. package/dist/coding/registry/pypi.js +40 -154
  49. package/dist/coding/registry/refusal-hints.d.ts +20 -0
  50. package/dist/coding/registry/refusal-hints.js +61 -0
  51. package/dist/coding/registry/refusal-wording.d.ts +11 -0
  52. package/dist/coding/registry/refusal-wording.js +56 -0
  53. package/dist/coding/registry/report.d.ts +70 -8
  54. package/dist/coding/registry/report.js +112 -5
  55. package/dist/coding/registry/types.d.ts +58 -8
  56. package/dist/coding/registry/yarn-lockfile.d.ts +30 -0
  57. package/dist/coding/registry/yarn-lockfile.js +367 -0
  58. package/dist/coding/services/catalog.d.ts +37 -351
  59. package/dist/coding/transcript/claude-code.d.ts +13 -0
  60. package/dist/coding/transcript/claude-code.js +273 -0
  61. package/dist/coding/transcript/download-protocol.d.ts +30 -0
  62. package/dist/coding/transcript/download-protocol.js +18 -0
  63. package/dist/coding/transcript/format.d.ts +20 -0
  64. package/dist/coding/transcript/format.js +32 -0
  65. package/dist/coding/transcript/recorder.d.ts +51 -0
  66. package/dist/coding/transcript/recorder.js +225 -0
  67. package/dist/coding/transcript/resume/checkout.d.ts +31 -0
  68. package/dist/coding/transcript/resume/checkout.js +203 -0
  69. package/dist/coding/transcript/resume/command.d.ts +17 -0
  70. package/dist/coding/transcript/resume/command.js +176 -0
  71. package/dist/coding/transcript/resume/download.d.ts +20 -0
  72. package/dist/coding/transcript/resume/download.js +153 -0
  73. package/dist/coding/transcript/resume/launch.d.ts +38 -0
  74. package/dist/coding/transcript/resume/launch.js +128 -0
  75. package/dist/coding/transcript/resume/session-file.d.ts +13 -0
  76. package/dist/coding/transcript/resume/session-file.js +79 -0
  77. package/dist/coding/transcript/resume/stand-in.d.ts +11 -0
  78. package/dist/coding/transcript/resume/stand-in.js +49 -0
  79. package/dist/coding-worker/artifact.d.ts +8 -3
  80. package/dist/coding-worker/artifact.js +3 -1
  81. package/dist/coding-worker/debug-trace.d.ts +6 -5
  82. package/dist/coding-worker/debug-trace.js +13 -18
  83. package/dist/coding-worker/dependency-cache.d.mts +229 -0
  84. package/dist/coding-worker/dependency-cache.mjs +2123 -0
  85. package/dist/coding-worker/driver.d.ts +4 -3
  86. package/dist/coding-worker/driver.js +116 -38
  87. package/dist/coding-worker/errors.d.ts +1 -0
  88. package/dist/coding-worker/errors.js +32 -0
  89. package/dist/coding-worker/task-note.d.ts +11 -0
  90. package/dist/coding-worker/task-note.js +13 -0
  91. package/dist/coding-worker/types.d.ts +11 -0
  92. package/dist/config/dependency-cache.d.ts +23 -0
  93. package/dist/config/dependency-cache.js +32 -0
  94. package/dist/config/providers.d.ts +12 -3
  95. package/dist/config/providers.js +55 -5
  96. package/dist/config/test-simulators.d.ts +82 -0
  97. package/dist/config/test-simulators.js +305 -0
  98. package/dist/core/async-context.d.ts +2 -0
  99. package/dist/core/async-context.js +12 -0
  100. package/dist/core/budget-events.d.ts +108 -0
  101. package/dist/core/budget-events.js +346 -0
  102. package/dist/core/budget-groups.d.ts +50 -1
  103. package/dist/core/budget-groups.js +236 -27
  104. package/dist/core/budget-stopped-head.d.ts +46 -0
  105. package/dist/core/budget-stopped-head.js +81 -0
  106. package/dist/core/budget-topup.d.ts +51 -0
  107. package/dist/core/budget-topup.js +156 -0
  108. package/dist/core/budget-wording.d.ts +16 -2
  109. package/dist/core/budget-wording.js +40 -2
  110. package/dist/core/coding-queue.d.ts +2 -1
  111. package/dist/core/coding-queue.js +7 -0
  112. package/dist/core/cron.d.ts +19 -1
  113. package/dist/core/cron.js +17 -0
  114. package/dist/core/datastores.js +1 -1
  115. package/dist/core/deferred-coding.d.ts +14 -0
  116. package/dist/core/deferred-coding.js +62 -0
  117. package/dist/core/delegation-child.d.ts +25 -0
  118. package/dist/core/delegation-child.js +37 -0
  119. package/dist/core/dispatch.d.ts +42 -0
  120. package/dist/core/dispatch.js +131 -56
  121. package/dist/core/engine-native.js +1 -1
  122. package/dist/core/error-code.d.ts +38 -0
  123. package/dist/core/error-code.js +168 -0
  124. package/dist/core/grants.d.ts +19 -6
  125. package/dist/core/grants.js +55 -6
  126. package/dist/core/host-events.d.ts +18 -2
  127. package/dist/core/host-events.js +284 -24
  128. package/dist/core/host-status.d.ts +85 -3
  129. package/dist/core/host-status.js +298 -20
  130. package/dist/core/issue-bridge.d.ts +50 -6
  131. package/dist/core/issue-bridge.js +124 -33
  132. package/dist/core/issue-events.d.ts +1 -1
  133. package/dist/core/issue-events.js +4 -10
  134. package/dist/core/issue-status.d.ts +1 -1
  135. package/dist/core/issue-status.js +54 -26
  136. package/dist/core/logger.d.ts +5 -0
  137. package/dist/core/logger.js +14 -1
  138. package/dist/core/lost-run-children.d.ts +6 -0
  139. package/dist/core/lost-run-children.js +32 -0
  140. package/dist/core/mark-ready.d.ts +34 -0
  141. package/dist/core/mark-ready.js +152 -0
  142. package/dist/core/markdown-code.d.ts +8 -0
  143. package/dist/core/markdown-code.js +107 -0
  144. package/dist/core/memory-tools.js +7 -0
  145. package/dist/core/merge-order-check.d.ts +2 -1
  146. package/dist/core/merge-order-check.js +8 -1
  147. package/dist/core/notification-templates.d.ts +1 -7
  148. package/dist/core/notification-templates.js +36 -2
  149. package/dist/core/pull-request-state-sync.js +2 -2
  150. package/dist/core/reconciler.d.ts +4 -3
  151. package/dist/core/reconciler.js +8 -1
  152. package/dist/core/related-pull-requests.d.ts +11 -3
  153. package/dist/core/related-pull-requests.js +27 -14
  154. package/dist/core/reply-parts.d.ts +21 -0
  155. package/dist/core/reply-parts.js +73 -0
  156. package/dist/core/review-fix.d.ts +1 -1
  157. package/dist/core/review-fix.js +2 -1
  158. package/dist/core/review-host-checks.d.ts +1 -1
  159. package/dist/core/review-host-tools.d.ts +3 -0
  160. package/dist/core/review-host-tools.js +99 -13
  161. package/dist/core/review-reads.d.ts +55 -0
  162. package/dist/core/review-reads.js +233 -0
  163. package/dist/core/run-status.d.ts +12 -0
  164. package/dist/core/run-status.js +12 -0
  165. package/dist/core/runner.d.ts +80 -34
  166. package/dist/core/runner.js +439 -144
  167. package/dist/core/schedule-start.d.ts +12 -0
  168. package/dist/core/schedule-start.js +14 -0
  169. package/dist/core/secret-broker-config.d.ts +10 -74
  170. package/dist/core/secret-guard.d.ts +46 -0
  171. package/dist/core/secret-guard.js +104 -0
  172. package/dist/core/secret-guarded-stores.d.ts +12 -0
  173. package/dist/core/secret-guarded-stores.js +41 -0
  174. package/dist/core/secret-spans.d.ts +50 -0
  175. package/dist/core/secret-spans.js +94 -0
  176. package/dist/core/stop-run.d.ts +46 -0
  177. package/dist/core/stop-run.js +61 -0
  178. package/dist/core/workflow-events.d.ts +14 -2
  179. package/dist/core/workflow-events.js +4 -0
  180. package/dist/core/workflow-run-events.d.ts +5 -3
  181. package/dist/core/workflow-run-events.js +43 -8
  182. package/dist/core/zod-json-schema.d.ts +4 -0
  183. package/dist/core/zod-json-schema.js +39 -0
  184. package/dist/core/zod3-window.d.ts +35 -0
  185. package/dist/core/zod3-window.js +124 -0
  186. package/dist/generated/prisma/browser.d.ts +34 -3
  187. package/dist/generated/prisma/client.d.ts +34 -3
  188. package/dist/generated/prisma/commonInputTypes.d.ts +220 -60
  189. package/dist/generated/prisma/enums.d.ts +10 -0
  190. package/dist/generated/prisma/enums.js +8 -0
  191. package/dist/generated/prisma/internal/class.d.ts +44 -0
  192. package/dist/generated/prisma/internal/class.js +4 -4
  193. package/dist/generated/prisma/internal/prismaNamespace.d.ts +428 -9
  194. package/dist/generated/prisma/internal/prismaNamespace.js +92 -1
  195. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +95 -0
  196. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +92 -1
  197. package/dist/generated/prisma/models/Agent.d.ts +106 -8
  198. package/dist/generated/prisma/models/AgentRepository.d.ts +42 -1
  199. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +229 -1
  200. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +207 -3
  201. package/dist/generated/prisma/models/CodingProxySession.d.ts +114 -1
  202. package/dist/generated/prisma/models/CodingRun.d.ts +1637 -1
  203. package/dist/generated/prisma/models/DependencySnapshot.d.ts +1668 -0
  204. package/dist/generated/prisma/models/DependencySnapshot.js +1 -0
  205. package/dist/generated/prisma/models/IssuePullRequest.d.ts +6 -2
  206. package/dist/generated/prisma/models/LocalReview.d.ts +40 -1
  207. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +39 -1
  208. package/dist/generated/prisma/models/NativeGatewaySession.d.ts +35 -1
  209. package/dist/generated/prisma/models/RegistryAllowance.d.ts +41 -1
  210. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +75 -1
  211. package/dist/generated/prisma/models/RegistryAuditRecord.d.ts +1364 -0
  212. package/dist/generated/prisma/models/RegistryAuditRecord.js +1 -0
  213. package/dist/generated/prisma/models/Run.d.ts +738 -2
  214. package/dist/generated/prisma/models/RunBudgetEvent.d.ts +1211 -0
  215. package/dist/generated/prisma/models/RunBudgetEvent.js +1 -0
  216. package/dist/generated/prisma/models/RunTranscript.d.ts +1339 -0
  217. package/dist/generated/prisma/models/RunTranscript.js +1 -0
  218. package/dist/generated/prisma/models.d.ts +4 -0
  219. package/dist/help-index.json +1320 -69
  220. package/dist/import/create.js +32 -3
  221. package/dist/import/neutral-schema.d.ts +50 -281
  222. package/dist/import/neutral-schema.js +5 -4
  223. package/dist/knowledge/check.d.ts +1 -1
  224. package/dist/knowledge/cli.d.ts +11 -1
  225. package/dist/knowledge/cli.js +37 -4
  226. package/dist/knowledge/concept.d.ts +3 -19
  227. package/dist/knowledge/location.d.ts +31 -0
  228. package/dist/knowledge/location.js +78 -0
  229. package/dist/mcp/auth/access.d.ts +10 -2
  230. package/dist/mcp/auth/access.js +15 -1
  231. package/dist/mcp/auth/ownership.d.ts +7 -7
  232. package/dist/mcp/auth/self-hosted/credentials.d.ts +3 -3
  233. package/dist/mcp/auth/self-hosted/session.d.ts +2 -2
  234. package/dist/mcp/host-events/github-ingress.d.ts +2 -0
  235. package/dist/mcp/host-events/github-ingress.js +2 -1
  236. package/dist/mcp/index.d.ts +6 -0
  237. package/dist/mcp/index.js +58 -10
  238. package/dist/mcp/server.d.ts +13 -0
  239. package/dist/mcp/server.js +33 -14
  240. package/dist/mcp/tools/agents.d.ts +4 -0
  241. package/dist/mcp/tools/agents.js +198 -16
  242. package/dist/mcp/tools/datastore.js +17 -8
  243. package/dist/mcp/tools/grants.js +9 -3
  244. package/dist/mcp/tools/memory.js +11 -1
  245. package/dist/mcp/tools/notification-channels.js +2 -2
  246. package/dist/mcp/tools/packages.d.ts +2 -0
  247. package/dist/mcp/tools/packages.js +195 -0
  248. package/dist/mcp/tools/repositories.js +18 -5
  249. package/dist/mcp/tools/run-access.d.ts +16 -0
  250. package/dist/mcp/tools/run-access.js +25 -0
  251. package/dist/mcp/tools/run-transcript-download.d.ts +30 -0
  252. package/dist/mcp/tools/run-transcript-download.js +129 -0
  253. package/dist/mcp/tools/run-transcript.d.ts +19 -0
  254. package/dist/mcp/tools/run-transcript.js +70 -0
  255. package/dist/mcp/tools/runs.js +34 -12
  256. package/dist/mcp/tools/scheduling.js +3 -1
  257. package/dist/mcp/tools/secret-elicitation-form.js +5 -0
  258. package/dist/mcp/tools/secret-elicitation-server.d.ts +6 -0
  259. package/dist/mcp/tools/secret-elicitation-server.js +10 -61
  260. package/dist/mcp/tools/secrets.js +2 -2
  261. package/dist/mcp/tools/stop-run.d.ts +2 -0
  262. package/dist/mcp/tools/stop-run.js +82 -0
  263. package/dist/mcp/tools/subagents.js +2 -2
  264. package/dist/mcp/tools/tools.d.ts +1 -1
  265. package/dist/mcp/tools/tools.js +25 -9
  266. package/dist/mcp/transport/stdio-link-host.d.ts +20 -0
  267. package/dist/mcp/transport/stdio-link-host.js +67 -0
  268. package/dist/mcp/transport/streamable-http.d.ts +13 -0
  269. package/dist/mcp/transport/streamable-http.js +41 -1
  270. package/dist/native-worker/docker-launcher.d.ts +38 -2
  271. package/dist/native-worker/docker-launcher.js +65 -5
  272. package/dist/native-worker/gateway-server.d.ts +41 -3
  273. package/dist/native-worker/gateway-server.js +124 -27
  274. package/dist/native-worker/gateway.d.ts +27 -1
  275. package/dist/native-worker/gateway.js +70 -4
  276. package/dist/native-worker/http-server.d.ts +3 -1
  277. package/dist/native-worker/http-server.js +11 -7
  278. package/dist/native-worker/http-transport.js +1 -1
  279. package/dist/native-worker/kubernetes-launcher.d.ts +7 -3
  280. package/dist/native-worker/kubernetes-launcher.js +43 -3
  281. package/dist/native-worker/launch.d.ts +18 -1
  282. package/dist/native-worker/launch.js +6 -1
  283. package/dist/native-worker/ledger.d.ts +18 -2
  284. package/dist/native-worker/ledger.js +57 -4
  285. package/dist/native-worker/loopback.js +3 -8
  286. package/dist/native-worker/main.d.ts +2 -1
  287. package/dist/native-worker/main.js +14 -3
  288. package/dist/native-worker/protocol.d.ts +129 -577
  289. package/dist/native-worker/protocol.js +47 -1
  290. package/dist/native-worker/sandbox-executor.d.ts +17 -2
  291. package/dist/native-worker/sandbox-executor.js +78 -4
  292. package/dist/native-worker/stderr-redaction.d.ts +77 -0
  293. package/dist/native-worker/stderr-redaction.js +237 -0
  294. package/dist/native-worker/stdio.d.ts +1 -1
  295. package/dist/native-worker/stdio.js +6 -5
  296. package/dist/native-worker/warm-pool.d.ts +2 -2
  297. package/dist/native-worker/warm-pool.js +4 -4
  298. package/dist/native-worker/worker.js +28 -2
  299. package/dist/observability/metrics.js +6 -1
  300. package/dist/providers/auth/self-hosted.d.ts +1 -1
  301. package/dist/providers/coding-proxy/dependency-cache/eviction.d.ts +29 -0
  302. package/dist/providers/coding-proxy/dependency-cache/eviction.js +87 -0
  303. package/dist/providers/coding-proxy/dependency-cache/key.d.ts +33 -0
  304. package/dist/providers/coding-proxy/dependency-cache/key.js +86 -0
  305. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.d.ts +18 -0
  306. package/dist/providers/coding-proxy/dependency-cache/model-request-seal.js +40 -0
  307. package/dist/providers/coding-proxy/dependency-cache/prisma-store.d.ts +25 -0
  308. package/dist/providers/coding-proxy/dependency-cache/prisma-store.js +131 -0
  309. package/dist/providers/coding-proxy/dependency-cache/service.d.ts +70 -0
  310. package/dist/providers/coding-proxy/dependency-cache/service.js +409 -0
  311. package/dist/providers/coding-proxy/dependency-cache/store.d.ts +85 -0
  312. package/dist/providers/coding-proxy/dependency-cache/store.js +95 -0
  313. package/dist/providers/coding-proxy/hold.d.ts +32 -0
  314. package/dist/providers/coding-proxy/hold.js +86 -0
  315. package/dist/providers/coding-proxy/interrupted.d.ts +70 -0
  316. package/dist/providers/coding-proxy/interrupted.js +104 -0
  317. package/dist/providers/coding-proxy/memory-ledger.d.ts +15 -2
  318. package/dist/providers/coding-proxy/memory-ledger.js +84 -8
  319. package/dist/providers/coding-proxy/metering.d.ts +16 -0
  320. package/dist/providers/coding-proxy/metering.js +27 -4
  321. package/dist/providers/coding-proxy/prisma-ledger.d.ts +15 -2
  322. package/dist/providers/coding-proxy/prisma-ledger.js +179 -67
  323. package/dist/providers/coding-proxy/proxy.d.ts +14 -1
  324. package/dist/providers/coding-proxy/proxy.js +166 -14
  325. package/dist/providers/coding-proxy/registry/audit.d.ts +53 -10
  326. package/dist/providers/coding-proxy/registry/audit.js +94 -17
  327. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.d.ts +36 -0
  328. package/dist/providers/coding-proxy/registry/lockfile-parse-worker.js +67 -0
  329. package/dist/providers/coding-proxy/registry/lockfile-parse.d.ts +16 -0
  330. package/dist/providers/coding-proxy/registry/lockfile-parse.js +110 -0
  331. package/dist/providers/coding-proxy/registry/plan.d.ts +9 -0
  332. package/dist/providers/coding-proxy/registry/plan.js +201 -48
  333. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +11 -5
  334. package/dist/providers/coding-proxy/registry/prisma-store.js +120 -17
  335. package/dist/providers/coding-proxy/registry/service.d.ts +97 -16
  336. package/dist/providers/coding-proxy/registry/service.js +579 -112
  337. package/dist/providers/coding-proxy/registry/store.d.ts +84 -9
  338. package/dist/providers/coding-proxy/registry/store.js +54 -1
  339. package/dist/providers/coding-proxy/runtime.d.ts +4 -0
  340. package/dist/providers/coding-proxy/runtime.js +78 -16
  341. package/dist/providers/coding-proxy/server.d.ts +6 -1
  342. package/dist/providers/coding-proxy/server.js +45 -1
  343. package/dist/providers/coding-proxy/types.d.ts +65 -1
  344. package/dist/providers/datastore/types.d.ts +5 -0
  345. package/dist/providers/engine/types.d.ts +17 -2
  346. package/dist/providers/engine/types.js +17 -0
  347. package/dist/providers/executor/composition.d.ts +10 -3
  348. package/dist/providers/executor/composition.js +47 -7
  349. package/dist/providers/executor/container.d.ts +361 -8
  350. package/dist/providers/executor/container.js +1136 -91
  351. package/dist/providers/executor/dbos-status.d.ts +31 -0
  352. package/dist/providers/executor/dbos-status.js +64 -0
  353. package/dist/providers/executor/dbos.d.ts +50 -1
  354. package/dist/providers/executor/dbos.js +207 -20
  355. package/dist/providers/executor/deferred.d.ts +12 -24
  356. package/dist/providers/executor/deferred.js +10 -29
  357. package/dist/providers/executor/in-process.d.ts +9 -1
  358. package/dist/providers/executor/in-process.js +14 -4
  359. package/dist/providers/executor/linked-issue-reader.d.ts +16 -0
  360. package/dist/providers/executor/linked-issue-reader.js +30 -0
  361. package/dist/providers/executor/routing.d.ts +2 -0
  362. package/dist/providers/executor/routing.js +4 -0
  363. package/dist/providers/executor/types.d.ts +13 -0
  364. package/dist/providers/index.d.ts +2 -1
  365. package/dist/providers/issue-tracker/types.d.ts +17 -0
  366. package/dist/providers/issue-tracker/types.js +39 -1
  367. package/dist/providers/jobs/claude-tool-setup.d.ts +4 -0
  368. package/dist/providers/jobs/claude-tool-setup.js +5 -2
  369. package/dist/providers/jobs/docker-isolation.d.ts +8 -0
  370. package/dist/providers/jobs/docker-isolation.js +17 -0
  371. package/dist/providers/jobs/docker.d.ts +1 -0
  372. package/dist/providers/jobs/docker.js +27 -2
  373. package/dist/providers/jobs/fake-kubernetes-api.d.ts +2 -0
  374. package/dist/providers/jobs/fake-kubernetes-api.js +3 -0
  375. package/dist/providers/jobs/kubernetes-api.d.ts +8 -0
  376. package/dist/providers/jobs/kubernetes-api.js +10 -0
  377. package/dist/providers/jobs/kubernetes-client.js +10 -1
  378. package/dist/providers/jobs/kubernetes-isolation.d.ts +2 -0
  379. package/dist/providers/jobs/kubernetes-isolation.js +17 -1
  380. package/dist/providers/jobs/kubernetes.d.ts +6 -1
  381. package/dist/providers/jobs/kubernetes.js +105 -16
  382. package/dist/providers/jobs/types.d.ts +33 -0
  383. package/dist/providers/jobs/types.js +13 -1
  384. package/dist/providers/llm/anthropic.js +5 -1
  385. package/dist/providers/llm/bedrock.d.ts +0 -12
  386. package/dist/providers/llm/bedrock.js +4 -0
  387. package/dist/providers/llm/claude-messages.d.ts +3 -1
  388. package/dist/providers/llm/claude-messages.js +4 -1
  389. package/dist/providers/llm/claude-provider.d.ts +2 -2
  390. package/dist/providers/llm/claude-provider.js +2 -2
  391. package/dist/providers/llm/openai.d.ts +2 -2
  392. package/dist/providers/llm/openai.js +6 -2
  393. package/dist/providers/llm/routing.d.ts +2 -2
  394. package/dist/providers/llm/routing.js +2 -2
  395. package/dist/providers/llm/types.d.ts +12 -2
  396. package/dist/providers/review-host/github-events.d.ts +9 -1
  397. package/dist/providers/review-host/github-events.js +34 -12
  398. package/dist/providers/review-host/github.d.ts +29 -2
  399. package/dist/providers/review-host/github.js +224 -29
  400. package/dist/providers/review-host/local.d.ts +8 -4
  401. package/dist/providers/review-host/local.js +49 -31
  402. package/dist/providers/review-host/patch-pages.d.ts +41 -0
  403. package/dist/providers/review-host/patch-pages.js +176 -0
  404. package/dist/providers/review-host/review-format.d.ts +19 -1
  405. package/dist/providers/review-host/review-format.js +38 -7
  406. package/dist/providers/review-host/types.d.ts +134 -2
  407. package/dist/providers/review-host/types.js +8 -0
  408. package/dist/providers/storage/gcs.d.ts +63 -0
  409. package/dist/providers/storage/gcs.js +69 -0
  410. package/dist/providers/storage/index.d.ts +15 -0
  411. package/dist/providers/storage/index.js +14 -0
  412. package/dist/providers/storage/local.d.ts +24 -0
  413. package/dist/providers/storage/local.js +92 -0
  414. package/dist/providers/storage/meter.d.ts +14 -0
  415. package/dist/providers/storage/meter.js +34 -0
  416. package/dist/providers/storage/s3.d.ts +41 -0
  417. package/dist/providers/storage/s3.js +107 -0
  418. package/dist/providers/storage/types.d.ts +37 -3
  419. package/dist/providers/storage/types.js +21 -4
  420. package/dist/providers/vcs/git.d.ts +33 -2
  421. package/dist/providers/vcs/git.js +324 -22
  422. package/dist/providers/vcs/github-remote.d.ts +26 -3
  423. package/dist/providers/vcs/github-remote.js +124 -14
  424. package/dist/providers/vcs/github.d.ts +214 -6
  425. package/dist/providers/vcs/github.js +447 -45
  426. package/dist/providers/vcs/index.js +8 -1
  427. package/dist/providers/vcs/pr-description.d.ts +127 -0
  428. package/dist/providers/vcs/pr-description.js +270 -0
  429. package/dist/providers/vcs/remote.d.ts +33 -1
  430. package/dist/providers/vcs/routing.d.ts +4 -2
  431. package/dist/providers/vcs/routing.js +6 -0
  432. package/dist/providers/vcs/types.d.ts +80 -3
  433. package/dist/quickstart/coding-seed.d.ts +14 -3
  434. package/dist/quickstart/coding-seed.js +213 -4
  435. package/dist/quickstart/reviewer-prompt.d.ts +1 -1
  436. package/dist/quickstart/reviewer-prompt.js +6 -6
  437. package/dist/quickstart-images.json +1 -1
  438. package/dist/sandbox/generated/zod.bundle.js +62 -1
  439. package/dist/sandbox/generated/zod3.bundle.js +5 -0
  440. package/dist/sandbox/host-functions.d.ts +1 -0
  441. package/dist/sandbox/host-functions.js +6 -11
  442. package/dist/sandbox/secret-broker.js +3 -4
  443. package/dist/sandbox/tool-capabilities.d.ts +10 -30
  444. package/dist/sandbox/zod-params.d.ts +37 -5
  445. package/dist/sandbox/zod-params.js +181 -26
  446. package/dist/serve.js +8 -1
  447. package/dist/viewer/api-schema.d.ts +349 -2627
  448. package/dist/viewer/api-schema.js +7 -0
  449. package/dist/viewer/build-schemas.js +6 -2
  450. package/dist/viewer/openapi.js +2 -4
  451. package/dist/wardby-bin.js +10 -0
  452. package/docs/agent-recipes.md +58 -20
  453. package/docs/code-review-agents.md +551 -41
  454. package/docs/coding-agent-setup.md +489 -7
  455. package/docs/coding-packages.md +1033 -90
  456. package/docs/coding-services.md +27 -12
  457. package/docs/coding-worker-byo-images.md +20 -0
  458. package/docs/coding-worker-isolation.md +105 -30
  459. package/docs/getting-started-gke.md +124 -137
  460. package/docs/getting-started-identity-provider.md +10 -1
  461. package/docs/getting-started.md +9 -0
  462. package/docs/jira-agents.md +17 -8
  463. package/docs/knowledge/blob-not-found-semantics.md +41 -0
  464. package/docs/knowledge/bounded-file-descriptor.md +52 -0
  465. package/docs/knowledge/delegation-admission-slots.md +52 -0
  466. package/docs/knowledge/http-dispatcher-bootstrap.md +61 -0
  467. package/docs/knowledge/import-rename-target.md +52 -0
  468. package/docs/knowledge/index.md +57 -0
  469. package/docs/knowledge/log.md +9 -0
  470. package/docs/knowledge/mcp-cancelled-task-precedence.md +41 -0
  471. package/docs/knowledge/mcp-http-prompt-discovery.md +41 -0
  472. package/docs/knowledge/mcp-schema-module-boundary.md +41 -0
  473. package/docs/knowledge/nullable-tool-uniqueness.md +52 -0
  474. package/docs/knowledge/overview-cli.md +74 -0
  475. package/docs/knowledge/overview-coding-proxy.md +72 -0
  476. package/docs/knowledge/overview-coding.md +72 -0
  477. package/docs/knowledge/overview-config.md +60 -0
  478. package/docs/knowledge/overview-core.md +72 -0
  479. package/docs/knowledge/overview-deploy.md +83 -0
  480. package/docs/knowledge/overview-mcp.md +61 -0
  481. package/docs/knowledge/overview-prisma.md +72 -0
  482. package/docs/knowledge/overview-providers.md +89 -0
  483. package/docs/knowledge/overview-sandbox.md +83 -0
  484. package/docs/knowledge/overview-surfaces.md +83 -0
  485. package/docs/knowledge/private-datastore-shared-boundary.md +54 -0
  486. package/docs/knowledge/proxy-settlement-projections.md +41 -0
  487. package/docs/knowledge/run-pricing-first-writer.md +43 -0
  488. package/docs/knowledge/schedule-claim-transaction.md +41 -0
  489. package/docs/knowledge/secret-entry-replica-contract.md +52 -0
  490. package/docs/knowledge/terminal-run-first-writer.md +41 -0
  491. package/docs/knowledge/transactional-agent-authorization.md +52 -0
  492. package/docs/knowledge/viewer-notify-write-isolation.md +30 -0
  493. package/docs/knowledge/warm-input-publication.md +30 -0
  494. package/docs/knowledge/workspace-staging-failure.md +54 -0
  495. package/docs/knowledge.md +54 -14
  496. package/docs/native-sandbox.md +119 -23
  497. package/docs/observability.md +4 -0
  498. package/docs/security-deployment.md +33 -2
  499. package/docs/slack-notifications.md +35 -19
  500. package/docs/tool-secrets.md +42 -10
  501. package/docs/viewer-api.openapi.yml +1 -1
  502. package/help/admin-viewer.md +24 -2
  503. package/help/architecture-agent.md +11 -6
  504. package/help/build-worker-image.md +3 -1
  505. package/help/builder-agent.md +19 -6
  506. package/help/code-review-agents.md +177 -6
  507. package/help/coding-packages.md +156 -6
  508. package/help/cost-attribution.md +9 -5
  509. package/help/creating-agents.md +14 -1
  510. package/help/dependency-cache.md +143 -0
  511. package/help/deploy-gke.md +15 -8
  512. package/help/errors/budget-exhausted.md +187 -0
  513. package/help/errors/budget-group-exhausted.md +5 -1
  514. package/help/errors/coding-stream-quota-exceeded.md +33 -0
  515. package/help/errors/coding-workspace-disk-exceeds-limit.md +39 -0
  516. package/help/errors/continuation-closed.md +9 -12
  517. package/help/errors/delegation-conflict.md +24 -0
  518. package/help/errors/file-list-truncated.md +45 -0
  519. package/help/errors/full-read-required.md +49 -0
  520. package/help/errors/github-account-not-allowed.md +4 -0
  521. package/help/errors/graph-incomplete.md +43 -0
  522. package/help/errors/graph-limit.md +43 -0
  523. package/help/errors/merge-conflict.md +49 -0
  524. package/help/errors/native-sandbox-gateway-error.md +20 -0
  525. package/help/errors/native-sandbox-launch-abandoned.md +21 -0
  526. package/help/errors/native-sandbox-worker-exited.md +3 -2
  527. package/help/errors/package-not-allowed-pending.md +52 -0
  528. package/help/errors/package-not-allowed.md +51 -0
  529. package/help/errors/package-refusals.md +43 -0
  530. package/help/errors/patch-cursor-malformed.md +31 -0
  531. package/help/errors/run-lost.md +39 -0
  532. package/help/errors/run-transcript-download.md +44 -0
  533. package/help/errors/secret-in-value.md +69 -0
  534. package/help/errors/target-merge.md +40 -0
  535. package/help/fix-merge-conflicts.md +73 -0
  536. package/help/github-app-setup.md +132 -0
  537. package/help/github.md +22 -0
  538. package/help/identity-and-access.md +2 -0
  539. package/help/jira.md +23 -6
  540. package/help/knowledge.md +16 -7
  541. package/help/local-repositories.md +1 -1
  542. package/help/low-power-mode.md +7 -1
  543. package/help/merge-order-check.md +5 -0
  544. package/help/native-capabilities.md +29 -1
  545. package/help/native-sandbox.md +15 -1
  546. package/help/operating-agents.md +5 -0
  547. package/help/package-audit-mode.md +91 -0
  548. package/help/related-pull-requests.md +10 -7
  549. package/help/resume-runs-locally.md +131 -0
  550. package/help/review-fix-rounds.md +33 -1
  551. package/help/sharing-agents.md +59 -0
  552. package/help/slack-notifications.md +19 -5
  553. package/help/status-comments.md +31 -0
  554. package/help/stop-run.md +58 -0
  555. package/help/troubleshooting/budgets.md +28 -0
  556. package/help/troubleshooting/coding-workers.md +78 -7
  557. package/package.json +17 -10
  558. package/prisma/migrations/20261016000000_registry_approved_accepted_advisories/migration.sql +3 -0
  559. package/prisma/migrations/20261016000001_mark_ready_when_passing/migration.sql +3 -0
  560. package/prisma/migrations/20261017000000_debug_trace_max_mb/migration.sql +4 -0
  561. package/prisma/migrations/20261018000000_dependency_cache/migration.sql +53 -0
  562. package/prisma/migrations/20261019000000_claude_max_output_tokens/migration.sql +5 -0
  563. package/prisma/migrations/20261021000000_pr_description_hash/migration.sql +4 -0
  564. package/prisma/migrations/20261022000000_dependency_snapshot_validation_metadata/migration.sql +4 -0
  565. package/prisma/migrations/20261023000000_package_audit_mode/migration.sql +27 -0
  566. package/prisma/migrations/20261024000000_budget_events/migration.sql +26 -0
  567. package/prisma/migrations/20261025000000_cache_aware_holds/migration.sql +9 -0
  568. package/prisma/migrations/20261026000000_budget_overrun/migration.sql +4 -0
  569. package/prisma/migrations/20261027000000_coding_run_request/migration.sql +1 -0
  570. package/prisma/migrations/20261028000000_native_gateway_review_reads/migration.sql +6 -0
  571. package/prisma/migrations/20261029000000_lead_survives_deploy/migration.sql +6 -0
  572. package/prisma/migrations/20261030000000_local_review_covered_sha/migration.sql +2 -0
  573. package/prisma/migrations/20261031000000_coding_run_budget_limit/migration.sql +9 -0
  574. package/prisma/migrations/20261101000000_run_transcripts/migration.sql +22 -0
  575. package/prisma/schema.prisma +311 -97
  576. package/dist/sandbox/generated/zod-to-json-schema.bundle.js +0 -5
@@ -0,0 +1,1211 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model RunBudgetEvent
6
+ * One budget decision about a run: a refusal by the coding proxy or at
7
+ * dispatch, or an overrun top-up with no room, with the numbers behind it.
8
+ * `limit` names what refused it: run, run-tree, day, week or month. `details`
9
+ * holds amounts, the model and the turn; never secrets or message text.
10
+ */
11
+ export type RunBudgetEventModel = runtime.Types.Result.DefaultSelection<Prisma.$RunBudgetEventPayload>;
12
+ export type AggregateRunBudgetEvent = {
13
+ _count: RunBudgetEventCountAggregateOutputType | null;
14
+ _min: RunBudgetEventMinAggregateOutputType | null;
15
+ _max: RunBudgetEventMaxAggregateOutputType | null;
16
+ };
17
+ export type RunBudgetEventMinAggregateOutputType = {
18
+ id: string | null;
19
+ runId: string | null;
20
+ kind: $Enums.RunBudgetEventKind | null;
21
+ limit: string | null;
22
+ at: Date | null;
23
+ };
24
+ export type RunBudgetEventMaxAggregateOutputType = {
25
+ id: string | null;
26
+ runId: string | null;
27
+ kind: $Enums.RunBudgetEventKind | null;
28
+ limit: string | null;
29
+ at: Date | null;
30
+ };
31
+ export type RunBudgetEventCountAggregateOutputType = {
32
+ id: number;
33
+ runId: number;
34
+ kind: number;
35
+ limit: number;
36
+ at: number;
37
+ details: number;
38
+ _all: number;
39
+ };
40
+ export type RunBudgetEventMinAggregateInputType = {
41
+ id?: true;
42
+ runId?: true;
43
+ kind?: true;
44
+ limit?: true;
45
+ at?: true;
46
+ };
47
+ export type RunBudgetEventMaxAggregateInputType = {
48
+ id?: true;
49
+ runId?: true;
50
+ kind?: true;
51
+ limit?: true;
52
+ at?: true;
53
+ };
54
+ export type RunBudgetEventCountAggregateInputType = {
55
+ id?: true;
56
+ runId?: true;
57
+ kind?: true;
58
+ limit?: true;
59
+ at?: true;
60
+ details?: true;
61
+ _all?: true;
62
+ };
63
+ export type RunBudgetEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
64
+ /**
65
+ * Filter which RunBudgetEvent to aggregate.
66
+ */
67
+ where?: Prisma.RunBudgetEventWhereInput;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
70
+ *
71
+ * Determine the order of RunBudgetEvents to fetch.
72
+ */
73
+ orderBy?: Prisma.RunBudgetEventOrderByWithRelationInput | Prisma.RunBudgetEventOrderByWithRelationInput[];
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
76
+ *
77
+ * Sets the start position
78
+ */
79
+ cursor?: Prisma.RunBudgetEventWhereUniqueInput;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
82
+ *
83
+ * Take `±n` RunBudgetEvents from the position of the cursor.
84
+ */
85
+ take?: number;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
+ *
89
+ * Skip the first `n` RunBudgetEvents.
90
+ */
91
+ skip?: number;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
94
+ *
95
+ * Count returned RunBudgetEvents
96
+ **/
97
+ _count?: true | RunBudgetEventCountAggregateInputType;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Select which fields to find the minimum value
102
+ **/
103
+ _min?: RunBudgetEventMinAggregateInputType;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Select which fields to find the maximum value
108
+ **/
109
+ _max?: RunBudgetEventMaxAggregateInputType;
110
+ };
111
+ export type GetRunBudgetEventAggregateType<T extends RunBudgetEventAggregateArgs> = {
112
+ [P in keyof T & keyof AggregateRunBudgetEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRunBudgetEvent[P]> : Prisma.GetScalarType<T[P], AggregateRunBudgetEvent[P]>;
113
+ };
114
+ export type RunBudgetEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
115
+ where?: Prisma.RunBudgetEventWhereInput;
116
+ orderBy?: Prisma.RunBudgetEventOrderByWithAggregationInput | Prisma.RunBudgetEventOrderByWithAggregationInput[];
117
+ by: Prisma.RunBudgetEventScalarFieldEnum[] | Prisma.RunBudgetEventScalarFieldEnum;
118
+ having?: Prisma.RunBudgetEventScalarWhereWithAggregatesInput;
119
+ take?: number;
120
+ skip?: number;
121
+ _count?: RunBudgetEventCountAggregateInputType | true;
122
+ _min?: RunBudgetEventMinAggregateInputType;
123
+ _max?: RunBudgetEventMaxAggregateInputType;
124
+ };
125
+ export type RunBudgetEventGroupByOutputType = {
126
+ id: string;
127
+ runId: string;
128
+ kind: $Enums.RunBudgetEventKind;
129
+ limit: string;
130
+ at: Date;
131
+ details: runtime.JsonValue;
132
+ _count: RunBudgetEventCountAggregateOutputType | null;
133
+ _min: RunBudgetEventMinAggregateOutputType | null;
134
+ _max: RunBudgetEventMaxAggregateOutputType | null;
135
+ };
136
+ export type GetRunBudgetEventGroupByPayload<T extends RunBudgetEventGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RunBudgetEventGroupByOutputType, T['by']> & {
137
+ [P in ((keyof T) & (keyof RunBudgetEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RunBudgetEventGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RunBudgetEventGroupByOutputType[P]>;
138
+ }>>;
139
+ export type RunBudgetEventWhereInput = {
140
+ AND?: Prisma.RunBudgetEventWhereInput | Prisma.RunBudgetEventWhereInput[];
141
+ OR?: Prisma.RunBudgetEventWhereInput[];
142
+ NOT?: Prisma.RunBudgetEventWhereInput | Prisma.RunBudgetEventWhereInput[];
143
+ id?: Prisma.StringFilter<"RunBudgetEvent"> | string;
144
+ runId?: Prisma.StringFilter<"RunBudgetEvent"> | string;
145
+ kind?: Prisma.EnumRunBudgetEventKindFilter<"RunBudgetEvent"> | $Enums.RunBudgetEventKind;
146
+ limit?: Prisma.StringFilter<"RunBudgetEvent"> | string;
147
+ at?: Prisma.DateTimeFilter<"RunBudgetEvent"> | Date | string;
148
+ details?: Prisma.JsonFilter<"RunBudgetEvent">;
149
+ run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
150
+ };
151
+ export type RunBudgetEventOrderByWithRelationInput = {
152
+ id?: Prisma.SortOrder;
153
+ runId?: Prisma.SortOrder;
154
+ kind?: Prisma.SortOrder;
155
+ limit?: Prisma.SortOrder;
156
+ at?: Prisma.SortOrder;
157
+ details?: Prisma.SortOrder;
158
+ run?: Prisma.RunOrderByWithRelationInput;
159
+ };
160
+ export type RunBudgetEventWhereUniqueInput = Prisma.AtLeast<{
161
+ id?: string;
162
+ AND?: Prisma.RunBudgetEventWhereInput | Prisma.RunBudgetEventWhereInput[];
163
+ OR?: Prisma.RunBudgetEventWhereInput[];
164
+ NOT?: Prisma.RunBudgetEventWhereInput | Prisma.RunBudgetEventWhereInput[];
165
+ runId?: Prisma.StringFilter<"RunBudgetEvent"> | string;
166
+ kind?: Prisma.EnumRunBudgetEventKindFilter<"RunBudgetEvent"> | $Enums.RunBudgetEventKind;
167
+ limit?: Prisma.StringFilter<"RunBudgetEvent"> | string;
168
+ at?: Prisma.DateTimeFilter<"RunBudgetEvent"> | Date | string;
169
+ details?: Prisma.JsonFilter<"RunBudgetEvent">;
170
+ run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
171
+ }, "id">;
172
+ export type RunBudgetEventOrderByWithAggregationInput = {
173
+ id?: Prisma.SortOrder;
174
+ runId?: Prisma.SortOrder;
175
+ kind?: Prisma.SortOrder;
176
+ limit?: Prisma.SortOrder;
177
+ at?: Prisma.SortOrder;
178
+ details?: Prisma.SortOrder;
179
+ _count?: Prisma.RunBudgetEventCountOrderByAggregateInput;
180
+ _max?: Prisma.RunBudgetEventMaxOrderByAggregateInput;
181
+ _min?: Prisma.RunBudgetEventMinOrderByAggregateInput;
182
+ };
183
+ export type RunBudgetEventScalarWhereWithAggregatesInput = {
184
+ AND?: Prisma.RunBudgetEventScalarWhereWithAggregatesInput | Prisma.RunBudgetEventScalarWhereWithAggregatesInput[];
185
+ OR?: Prisma.RunBudgetEventScalarWhereWithAggregatesInput[];
186
+ NOT?: Prisma.RunBudgetEventScalarWhereWithAggregatesInput | Prisma.RunBudgetEventScalarWhereWithAggregatesInput[];
187
+ id?: Prisma.StringWithAggregatesFilter<"RunBudgetEvent"> | string;
188
+ runId?: Prisma.StringWithAggregatesFilter<"RunBudgetEvent"> | string;
189
+ kind?: Prisma.EnumRunBudgetEventKindWithAggregatesFilter<"RunBudgetEvent"> | $Enums.RunBudgetEventKind;
190
+ limit?: Prisma.StringWithAggregatesFilter<"RunBudgetEvent"> | string;
191
+ at?: Prisma.DateTimeWithAggregatesFilter<"RunBudgetEvent"> | Date | string;
192
+ details?: Prisma.JsonWithAggregatesFilter<"RunBudgetEvent">;
193
+ };
194
+ export type RunBudgetEventCreateInput = {
195
+ id?: string;
196
+ kind: $Enums.RunBudgetEventKind;
197
+ limit: string;
198
+ at?: Date | string;
199
+ details: Prisma.JsonNullValueInput | runtime.InputJsonValue;
200
+ run: Prisma.RunCreateNestedOneWithoutBudgetEventsInput;
201
+ };
202
+ export type RunBudgetEventUncheckedCreateInput = {
203
+ id?: string;
204
+ runId: string;
205
+ kind: $Enums.RunBudgetEventKind;
206
+ limit: string;
207
+ at?: Date | string;
208
+ details: Prisma.JsonNullValueInput | runtime.InputJsonValue;
209
+ };
210
+ export type RunBudgetEventUpdateInput = {
211
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
212
+ kind?: Prisma.EnumRunBudgetEventKindFieldUpdateOperationsInput | $Enums.RunBudgetEventKind;
213
+ limit?: Prisma.StringFieldUpdateOperationsInput | string;
214
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
215
+ details?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
216
+ run?: Prisma.RunUpdateOneRequiredWithoutBudgetEventsNestedInput;
217
+ };
218
+ export type RunBudgetEventUncheckedUpdateInput = {
219
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
220
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
221
+ kind?: Prisma.EnumRunBudgetEventKindFieldUpdateOperationsInput | $Enums.RunBudgetEventKind;
222
+ limit?: Prisma.StringFieldUpdateOperationsInput | string;
223
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
224
+ details?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
225
+ };
226
+ export type RunBudgetEventCreateManyInput = {
227
+ id?: string;
228
+ runId: string;
229
+ kind: $Enums.RunBudgetEventKind;
230
+ limit: string;
231
+ at?: Date | string;
232
+ details: Prisma.JsonNullValueInput | runtime.InputJsonValue;
233
+ };
234
+ export type RunBudgetEventUpdateManyMutationInput = {
235
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
236
+ kind?: Prisma.EnumRunBudgetEventKindFieldUpdateOperationsInput | $Enums.RunBudgetEventKind;
237
+ limit?: Prisma.StringFieldUpdateOperationsInput | string;
238
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
239
+ details?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
240
+ };
241
+ export type RunBudgetEventUncheckedUpdateManyInput = {
242
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
243
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
244
+ kind?: Prisma.EnumRunBudgetEventKindFieldUpdateOperationsInput | $Enums.RunBudgetEventKind;
245
+ limit?: Prisma.StringFieldUpdateOperationsInput | string;
246
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
247
+ details?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
248
+ };
249
+ export type RunBudgetEventListRelationFilter = {
250
+ every?: Prisma.RunBudgetEventWhereInput;
251
+ some?: Prisma.RunBudgetEventWhereInput;
252
+ none?: Prisma.RunBudgetEventWhereInput;
253
+ };
254
+ export type RunBudgetEventOrderByRelationAggregateInput = {
255
+ _count?: Prisma.SortOrder;
256
+ };
257
+ export type RunBudgetEventCountOrderByAggregateInput = {
258
+ id?: Prisma.SortOrder;
259
+ runId?: Prisma.SortOrder;
260
+ kind?: Prisma.SortOrder;
261
+ limit?: Prisma.SortOrder;
262
+ at?: Prisma.SortOrder;
263
+ details?: Prisma.SortOrder;
264
+ };
265
+ export type RunBudgetEventMaxOrderByAggregateInput = {
266
+ id?: Prisma.SortOrder;
267
+ runId?: Prisma.SortOrder;
268
+ kind?: Prisma.SortOrder;
269
+ limit?: Prisma.SortOrder;
270
+ at?: Prisma.SortOrder;
271
+ };
272
+ export type RunBudgetEventMinOrderByAggregateInput = {
273
+ id?: Prisma.SortOrder;
274
+ runId?: Prisma.SortOrder;
275
+ kind?: Prisma.SortOrder;
276
+ limit?: Prisma.SortOrder;
277
+ at?: Prisma.SortOrder;
278
+ };
279
+ export type RunBudgetEventCreateNestedManyWithoutRunInput = {
280
+ create?: Prisma.XOR<Prisma.RunBudgetEventCreateWithoutRunInput, Prisma.RunBudgetEventUncheckedCreateWithoutRunInput> | Prisma.RunBudgetEventCreateWithoutRunInput[] | Prisma.RunBudgetEventUncheckedCreateWithoutRunInput[];
281
+ connectOrCreate?: Prisma.RunBudgetEventCreateOrConnectWithoutRunInput | Prisma.RunBudgetEventCreateOrConnectWithoutRunInput[];
282
+ createMany?: Prisma.RunBudgetEventCreateManyRunInputEnvelope;
283
+ connect?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
284
+ };
285
+ export type RunBudgetEventUncheckedCreateNestedManyWithoutRunInput = {
286
+ create?: Prisma.XOR<Prisma.RunBudgetEventCreateWithoutRunInput, Prisma.RunBudgetEventUncheckedCreateWithoutRunInput> | Prisma.RunBudgetEventCreateWithoutRunInput[] | Prisma.RunBudgetEventUncheckedCreateWithoutRunInput[];
287
+ connectOrCreate?: Prisma.RunBudgetEventCreateOrConnectWithoutRunInput | Prisma.RunBudgetEventCreateOrConnectWithoutRunInput[];
288
+ createMany?: Prisma.RunBudgetEventCreateManyRunInputEnvelope;
289
+ connect?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
290
+ };
291
+ export type RunBudgetEventUpdateManyWithoutRunNestedInput = {
292
+ create?: Prisma.XOR<Prisma.RunBudgetEventCreateWithoutRunInput, Prisma.RunBudgetEventUncheckedCreateWithoutRunInput> | Prisma.RunBudgetEventCreateWithoutRunInput[] | Prisma.RunBudgetEventUncheckedCreateWithoutRunInput[];
293
+ connectOrCreate?: Prisma.RunBudgetEventCreateOrConnectWithoutRunInput | Prisma.RunBudgetEventCreateOrConnectWithoutRunInput[];
294
+ upsert?: Prisma.RunBudgetEventUpsertWithWhereUniqueWithoutRunInput | Prisma.RunBudgetEventUpsertWithWhereUniqueWithoutRunInput[];
295
+ createMany?: Prisma.RunBudgetEventCreateManyRunInputEnvelope;
296
+ set?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
297
+ disconnect?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
298
+ delete?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
299
+ connect?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
300
+ update?: Prisma.RunBudgetEventUpdateWithWhereUniqueWithoutRunInput | Prisma.RunBudgetEventUpdateWithWhereUniqueWithoutRunInput[];
301
+ updateMany?: Prisma.RunBudgetEventUpdateManyWithWhereWithoutRunInput | Prisma.RunBudgetEventUpdateManyWithWhereWithoutRunInput[];
302
+ deleteMany?: Prisma.RunBudgetEventScalarWhereInput | Prisma.RunBudgetEventScalarWhereInput[];
303
+ };
304
+ export type RunBudgetEventUncheckedUpdateManyWithoutRunNestedInput = {
305
+ create?: Prisma.XOR<Prisma.RunBudgetEventCreateWithoutRunInput, Prisma.RunBudgetEventUncheckedCreateWithoutRunInput> | Prisma.RunBudgetEventCreateWithoutRunInput[] | Prisma.RunBudgetEventUncheckedCreateWithoutRunInput[];
306
+ connectOrCreate?: Prisma.RunBudgetEventCreateOrConnectWithoutRunInput | Prisma.RunBudgetEventCreateOrConnectWithoutRunInput[];
307
+ upsert?: Prisma.RunBudgetEventUpsertWithWhereUniqueWithoutRunInput | Prisma.RunBudgetEventUpsertWithWhereUniqueWithoutRunInput[];
308
+ createMany?: Prisma.RunBudgetEventCreateManyRunInputEnvelope;
309
+ set?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
310
+ disconnect?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
311
+ delete?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
312
+ connect?: Prisma.RunBudgetEventWhereUniqueInput | Prisma.RunBudgetEventWhereUniqueInput[];
313
+ update?: Prisma.RunBudgetEventUpdateWithWhereUniqueWithoutRunInput | Prisma.RunBudgetEventUpdateWithWhereUniqueWithoutRunInput[];
314
+ updateMany?: Prisma.RunBudgetEventUpdateManyWithWhereWithoutRunInput | Prisma.RunBudgetEventUpdateManyWithWhereWithoutRunInput[];
315
+ deleteMany?: Prisma.RunBudgetEventScalarWhereInput | Prisma.RunBudgetEventScalarWhereInput[];
316
+ };
317
+ export type EnumRunBudgetEventKindFieldUpdateOperationsInput = {
318
+ set?: $Enums.RunBudgetEventKind;
319
+ };
320
+ export type RunBudgetEventCreateWithoutRunInput = {
321
+ id?: string;
322
+ kind: $Enums.RunBudgetEventKind;
323
+ limit: string;
324
+ at?: Date | string;
325
+ details: Prisma.JsonNullValueInput | runtime.InputJsonValue;
326
+ };
327
+ export type RunBudgetEventUncheckedCreateWithoutRunInput = {
328
+ id?: string;
329
+ kind: $Enums.RunBudgetEventKind;
330
+ limit: string;
331
+ at?: Date | string;
332
+ details: Prisma.JsonNullValueInput | runtime.InputJsonValue;
333
+ };
334
+ export type RunBudgetEventCreateOrConnectWithoutRunInput = {
335
+ where: Prisma.RunBudgetEventWhereUniqueInput;
336
+ create: Prisma.XOR<Prisma.RunBudgetEventCreateWithoutRunInput, Prisma.RunBudgetEventUncheckedCreateWithoutRunInput>;
337
+ };
338
+ export type RunBudgetEventCreateManyRunInputEnvelope = {
339
+ data: Prisma.RunBudgetEventCreateManyRunInput | Prisma.RunBudgetEventCreateManyRunInput[];
340
+ skipDuplicates?: boolean;
341
+ };
342
+ export type RunBudgetEventUpsertWithWhereUniqueWithoutRunInput = {
343
+ where: Prisma.RunBudgetEventWhereUniqueInput;
344
+ update: Prisma.XOR<Prisma.RunBudgetEventUpdateWithoutRunInput, Prisma.RunBudgetEventUncheckedUpdateWithoutRunInput>;
345
+ create: Prisma.XOR<Prisma.RunBudgetEventCreateWithoutRunInput, Prisma.RunBudgetEventUncheckedCreateWithoutRunInput>;
346
+ };
347
+ export type RunBudgetEventUpdateWithWhereUniqueWithoutRunInput = {
348
+ where: Prisma.RunBudgetEventWhereUniqueInput;
349
+ data: Prisma.XOR<Prisma.RunBudgetEventUpdateWithoutRunInput, Prisma.RunBudgetEventUncheckedUpdateWithoutRunInput>;
350
+ };
351
+ export type RunBudgetEventUpdateManyWithWhereWithoutRunInput = {
352
+ where: Prisma.RunBudgetEventScalarWhereInput;
353
+ data: Prisma.XOR<Prisma.RunBudgetEventUpdateManyMutationInput, Prisma.RunBudgetEventUncheckedUpdateManyWithoutRunInput>;
354
+ };
355
+ export type RunBudgetEventScalarWhereInput = {
356
+ AND?: Prisma.RunBudgetEventScalarWhereInput | Prisma.RunBudgetEventScalarWhereInput[];
357
+ OR?: Prisma.RunBudgetEventScalarWhereInput[];
358
+ NOT?: Prisma.RunBudgetEventScalarWhereInput | Prisma.RunBudgetEventScalarWhereInput[];
359
+ id?: Prisma.StringFilter<"RunBudgetEvent"> | string;
360
+ runId?: Prisma.StringFilter<"RunBudgetEvent"> | string;
361
+ kind?: Prisma.EnumRunBudgetEventKindFilter<"RunBudgetEvent"> | $Enums.RunBudgetEventKind;
362
+ limit?: Prisma.StringFilter<"RunBudgetEvent"> | string;
363
+ at?: Prisma.DateTimeFilter<"RunBudgetEvent"> | Date | string;
364
+ details?: Prisma.JsonFilter<"RunBudgetEvent">;
365
+ };
366
+ export type RunBudgetEventCreateManyRunInput = {
367
+ id?: string;
368
+ kind: $Enums.RunBudgetEventKind;
369
+ limit: string;
370
+ at?: Date | string;
371
+ details: Prisma.JsonNullValueInput | runtime.InputJsonValue;
372
+ };
373
+ export type RunBudgetEventUpdateWithoutRunInput = {
374
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ kind?: Prisma.EnumRunBudgetEventKindFieldUpdateOperationsInput | $Enums.RunBudgetEventKind;
376
+ limit?: Prisma.StringFieldUpdateOperationsInput | string;
377
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
378
+ details?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
379
+ };
380
+ export type RunBudgetEventUncheckedUpdateWithoutRunInput = {
381
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
382
+ kind?: Prisma.EnumRunBudgetEventKindFieldUpdateOperationsInput | $Enums.RunBudgetEventKind;
383
+ limit?: Prisma.StringFieldUpdateOperationsInput | string;
384
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
385
+ details?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
386
+ };
387
+ export type RunBudgetEventUncheckedUpdateManyWithoutRunInput = {
388
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
389
+ kind?: Prisma.EnumRunBudgetEventKindFieldUpdateOperationsInput | $Enums.RunBudgetEventKind;
390
+ limit?: Prisma.StringFieldUpdateOperationsInput | string;
391
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
392
+ details?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
393
+ };
394
+ export type RunBudgetEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
395
+ id?: boolean;
396
+ runId?: boolean;
397
+ kind?: boolean;
398
+ limit?: boolean;
399
+ at?: boolean;
400
+ details?: boolean;
401
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
402
+ }, ExtArgs["result"]["runBudgetEvent"]>;
403
+ export type RunBudgetEventSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
404
+ id?: boolean;
405
+ runId?: boolean;
406
+ kind?: boolean;
407
+ limit?: boolean;
408
+ at?: boolean;
409
+ details?: boolean;
410
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
411
+ }, ExtArgs["result"]["runBudgetEvent"]>;
412
+ export type RunBudgetEventSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
413
+ id?: boolean;
414
+ runId?: boolean;
415
+ kind?: boolean;
416
+ limit?: boolean;
417
+ at?: boolean;
418
+ details?: boolean;
419
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
420
+ }, ExtArgs["result"]["runBudgetEvent"]>;
421
+ export type RunBudgetEventSelectScalar = {
422
+ id?: boolean;
423
+ runId?: boolean;
424
+ kind?: boolean;
425
+ limit?: boolean;
426
+ at?: boolean;
427
+ details?: boolean;
428
+ };
429
+ export type RunBudgetEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "runId" | "kind" | "limit" | "at" | "details", ExtArgs["result"]["runBudgetEvent"]>;
430
+ export type RunBudgetEventInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
431
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
432
+ };
433
+ export type RunBudgetEventIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
434
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
435
+ };
436
+ export type RunBudgetEventIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
437
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
438
+ };
439
+ export type $RunBudgetEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
440
+ name: "RunBudgetEvent";
441
+ objects: {
442
+ run: Prisma.$RunPayload<ExtArgs>;
443
+ };
444
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
445
+ id: string;
446
+ runId: string;
447
+ kind: $Enums.RunBudgetEventKind;
448
+ limit: string;
449
+ at: Date;
450
+ details: runtime.JsonValue;
451
+ }, ExtArgs["result"]["runBudgetEvent"]>;
452
+ composites: {};
453
+ };
454
+ export type RunBudgetEventGetPayload<S extends boolean | null | undefined | RunBudgetEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload, S>;
455
+ export type RunBudgetEventCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RunBudgetEventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
456
+ select?: RunBudgetEventCountAggregateInputType | true;
457
+ };
458
+ export interface RunBudgetEventDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
459
+ [K: symbol]: {
460
+ types: Prisma.TypeMap<ExtArgs>['model']['RunBudgetEvent'];
461
+ meta: {
462
+ name: 'RunBudgetEvent';
463
+ };
464
+ };
465
+ /**
466
+ * Find zero or one RunBudgetEvent that matches the filter.
467
+ * @param {RunBudgetEventFindUniqueArgs} args - Arguments to find a RunBudgetEvent
468
+ * @example
469
+ * // Get one RunBudgetEvent
470
+ * const runBudgetEvent = await prisma.runBudgetEvent.findUnique({
471
+ * where: {
472
+ * // ... provide filter here
473
+ * }
474
+ * })
475
+ */
476
+ findUnique<T extends RunBudgetEventFindUniqueArgs>(args: Prisma.SelectSubset<T, RunBudgetEventFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
477
+ /**
478
+ * Find one RunBudgetEvent that matches the filter or throw an error with `error.code='P2025'`
479
+ * if no matches were found.
480
+ * @param {RunBudgetEventFindUniqueOrThrowArgs} args - Arguments to find a RunBudgetEvent
481
+ * @example
482
+ * // Get one RunBudgetEvent
483
+ * const runBudgetEvent = await prisma.runBudgetEvent.findUniqueOrThrow({
484
+ * where: {
485
+ * // ... provide filter here
486
+ * }
487
+ * })
488
+ */
489
+ findUniqueOrThrow<T extends RunBudgetEventFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RunBudgetEventFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
490
+ /**
491
+ * Find the first RunBudgetEvent that matches the filter.
492
+ * Note, that providing `undefined` is treated as the value not being there.
493
+ * Read more here: https://pris.ly/d/null-undefined
494
+ * @param {RunBudgetEventFindFirstArgs} args - Arguments to find a RunBudgetEvent
495
+ * @example
496
+ * // Get one RunBudgetEvent
497
+ * const runBudgetEvent = await prisma.runBudgetEvent.findFirst({
498
+ * where: {
499
+ * // ... provide filter here
500
+ * }
501
+ * })
502
+ */
503
+ findFirst<T extends RunBudgetEventFindFirstArgs>(args?: Prisma.SelectSubset<T, RunBudgetEventFindFirstArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
504
+ /**
505
+ * Find the first RunBudgetEvent that matches the filter or
506
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
507
+ * Note, that providing `undefined` is treated as the value not being there.
508
+ * Read more here: https://pris.ly/d/null-undefined
509
+ * @param {RunBudgetEventFindFirstOrThrowArgs} args - Arguments to find a RunBudgetEvent
510
+ * @example
511
+ * // Get one RunBudgetEvent
512
+ * const runBudgetEvent = await prisma.runBudgetEvent.findFirstOrThrow({
513
+ * where: {
514
+ * // ... provide filter here
515
+ * }
516
+ * })
517
+ */
518
+ findFirstOrThrow<T extends RunBudgetEventFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RunBudgetEventFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
519
+ /**
520
+ * Find zero or more RunBudgetEvents that matches the filter.
521
+ * Note, that providing `undefined` is treated as the value not being there.
522
+ * Read more here: https://pris.ly/d/null-undefined
523
+ * @param {RunBudgetEventFindManyArgs} args - Arguments to filter and select certain fields only.
524
+ * @example
525
+ * // Get all RunBudgetEvents
526
+ * const runBudgetEvents = await prisma.runBudgetEvent.findMany()
527
+ *
528
+ * // Get first 10 RunBudgetEvents
529
+ * const runBudgetEvents = await prisma.runBudgetEvent.findMany({ take: 10 })
530
+ *
531
+ * // Only select the `id`
532
+ * const runBudgetEventWithIdOnly = await prisma.runBudgetEvent.findMany({ select: { id: true } })
533
+ *
534
+ */
535
+ findMany<T extends RunBudgetEventFindManyArgs>(args?: Prisma.SelectSubset<T, RunBudgetEventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
536
+ /**
537
+ * Create a RunBudgetEvent.
538
+ * @param {RunBudgetEventCreateArgs} args - Arguments to create a RunBudgetEvent.
539
+ * @example
540
+ * // Create one RunBudgetEvent
541
+ * const RunBudgetEvent = await prisma.runBudgetEvent.create({
542
+ * data: {
543
+ * // ... data to create a RunBudgetEvent
544
+ * }
545
+ * })
546
+ *
547
+ */
548
+ create<T extends RunBudgetEventCreateArgs>(args: Prisma.SelectSubset<T, RunBudgetEventCreateArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
549
+ /**
550
+ * Create many RunBudgetEvents.
551
+ * @param {RunBudgetEventCreateManyArgs} args - Arguments to create many RunBudgetEvents.
552
+ * @example
553
+ * // Create many RunBudgetEvents
554
+ * const runBudgetEvent = await prisma.runBudgetEvent.createMany({
555
+ * data: [
556
+ * // ... provide data here
557
+ * ]
558
+ * })
559
+ *
560
+ */
561
+ createMany<T extends RunBudgetEventCreateManyArgs>(args?: Prisma.SelectSubset<T, RunBudgetEventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
562
+ /**
563
+ * Create many RunBudgetEvents and returns the data saved in the database.
564
+ * @param {RunBudgetEventCreateManyAndReturnArgs} args - Arguments to create many RunBudgetEvents.
565
+ * @example
566
+ * // Create many RunBudgetEvents
567
+ * const runBudgetEvent = await prisma.runBudgetEvent.createManyAndReturn({
568
+ * data: [
569
+ * // ... provide data here
570
+ * ]
571
+ * })
572
+ *
573
+ * // Create many RunBudgetEvents and only return the `id`
574
+ * const runBudgetEventWithIdOnly = await prisma.runBudgetEvent.createManyAndReturn({
575
+ * select: { id: true },
576
+ * data: [
577
+ * // ... provide data here
578
+ * ]
579
+ * })
580
+ * Note, that providing `undefined` is treated as the value not being there.
581
+ * Read more here: https://pris.ly/d/null-undefined
582
+ *
583
+ */
584
+ createManyAndReturn<T extends RunBudgetEventCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RunBudgetEventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
585
+ /**
586
+ * Delete a RunBudgetEvent.
587
+ * @param {RunBudgetEventDeleteArgs} args - Arguments to delete one RunBudgetEvent.
588
+ * @example
589
+ * // Delete one RunBudgetEvent
590
+ * const RunBudgetEvent = await prisma.runBudgetEvent.delete({
591
+ * where: {
592
+ * // ... filter to delete one RunBudgetEvent
593
+ * }
594
+ * })
595
+ *
596
+ */
597
+ delete<T extends RunBudgetEventDeleteArgs>(args: Prisma.SelectSubset<T, RunBudgetEventDeleteArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
598
+ /**
599
+ * Update one RunBudgetEvent.
600
+ * @param {RunBudgetEventUpdateArgs} args - Arguments to update one RunBudgetEvent.
601
+ * @example
602
+ * // Update one RunBudgetEvent
603
+ * const runBudgetEvent = await prisma.runBudgetEvent.update({
604
+ * where: {
605
+ * // ... provide filter here
606
+ * },
607
+ * data: {
608
+ * // ... provide data here
609
+ * }
610
+ * })
611
+ *
612
+ */
613
+ update<T extends RunBudgetEventUpdateArgs>(args: Prisma.SelectSubset<T, RunBudgetEventUpdateArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
614
+ /**
615
+ * Delete zero or more RunBudgetEvents.
616
+ * @param {RunBudgetEventDeleteManyArgs} args - Arguments to filter RunBudgetEvents to delete.
617
+ * @example
618
+ * // Delete a few RunBudgetEvents
619
+ * const { count } = await prisma.runBudgetEvent.deleteMany({
620
+ * where: {
621
+ * // ... provide filter here
622
+ * }
623
+ * })
624
+ *
625
+ */
626
+ deleteMany<T extends RunBudgetEventDeleteManyArgs>(args?: Prisma.SelectSubset<T, RunBudgetEventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
627
+ /**
628
+ * Update zero or more RunBudgetEvents.
629
+ * Note, that providing `undefined` is treated as the value not being there.
630
+ * Read more here: https://pris.ly/d/null-undefined
631
+ * @param {RunBudgetEventUpdateManyArgs} args - Arguments to update one or more rows.
632
+ * @example
633
+ * // Update many RunBudgetEvents
634
+ * const runBudgetEvent = await prisma.runBudgetEvent.updateMany({
635
+ * where: {
636
+ * // ... provide filter here
637
+ * },
638
+ * data: {
639
+ * // ... provide data here
640
+ * }
641
+ * })
642
+ *
643
+ */
644
+ updateMany<T extends RunBudgetEventUpdateManyArgs>(args: Prisma.SelectSubset<T, RunBudgetEventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
645
+ /**
646
+ * Update zero or more RunBudgetEvents and returns the data updated in the database.
647
+ * @param {RunBudgetEventUpdateManyAndReturnArgs} args - Arguments to update many RunBudgetEvents.
648
+ * @example
649
+ * // Update many RunBudgetEvents
650
+ * const runBudgetEvent = await prisma.runBudgetEvent.updateManyAndReturn({
651
+ * where: {
652
+ * // ... provide filter here
653
+ * },
654
+ * data: [
655
+ * // ... provide data here
656
+ * ]
657
+ * })
658
+ *
659
+ * // Update zero or more RunBudgetEvents and only return the `id`
660
+ * const runBudgetEventWithIdOnly = await prisma.runBudgetEvent.updateManyAndReturn({
661
+ * select: { id: true },
662
+ * where: {
663
+ * // ... provide filter here
664
+ * },
665
+ * data: [
666
+ * // ... provide data here
667
+ * ]
668
+ * })
669
+ * Note, that providing `undefined` is treated as the value not being there.
670
+ * Read more here: https://pris.ly/d/null-undefined
671
+ *
672
+ */
673
+ updateManyAndReturn<T extends RunBudgetEventUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RunBudgetEventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
674
+ /**
675
+ * Create or update one RunBudgetEvent.
676
+ * @param {RunBudgetEventUpsertArgs} args - Arguments to update or create a RunBudgetEvent.
677
+ * @example
678
+ * // Update or create a RunBudgetEvent
679
+ * const runBudgetEvent = await prisma.runBudgetEvent.upsert({
680
+ * create: {
681
+ * // ... data to create a RunBudgetEvent
682
+ * },
683
+ * update: {
684
+ * // ... in case it already exists, update
685
+ * },
686
+ * where: {
687
+ * // ... the filter for the RunBudgetEvent we want to update
688
+ * }
689
+ * })
690
+ */
691
+ upsert<T extends RunBudgetEventUpsertArgs>(args: Prisma.SelectSubset<T, RunBudgetEventUpsertArgs<ExtArgs>>): Prisma.Prisma__RunBudgetEventClient<runtime.Types.Result.GetResult<Prisma.$RunBudgetEventPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
692
+ /**
693
+ * Count the number of RunBudgetEvents.
694
+ * Note, that providing `undefined` is treated as the value not being there.
695
+ * Read more here: https://pris.ly/d/null-undefined
696
+ * @param {RunBudgetEventCountArgs} args - Arguments to filter RunBudgetEvents to count.
697
+ * @example
698
+ * // Count the number of RunBudgetEvents
699
+ * const count = await prisma.runBudgetEvent.count({
700
+ * where: {
701
+ * // ... the filter for the RunBudgetEvents we want to count
702
+ * }
703
+ * })
704
+ **/
705
+ count<T extends RunBudgetEventCountArgs>(args?: Prisma.Subset<T, RunBudgetEventCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RunBudgetEventCountAggregateOutputType> : number>;
706
+ /**
707
+ * Allows you to perform aggregations operations on a RunBudgetEvent.
708
+ * Note, that providing `undefined` is treated as the value not being there.
709
+ * Read more here: https://pris.ly/d/null-undefined
710
+ * @param {RunBudgetEventAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
711
+ * @example
712
+ * // Ordered by age ascending
713
+ * // Where email contains prisma.io
714
+ * // Limited to the 10 users
715
+ * const aggregations = await prisma.user.aggregate({
716
+ * _avg: {
717
+ * age: true,
718
+ * },
719
+ * where: {
720
+ * email: {
721
+ * contains: "prisma.io",
722
+ * },
723
+ * },
724
+ * orderBy: {
725
+ * age: "asc",
726
+ * },
727
+ * take: 10,
728
+ * })
729
+ **/
730
+ aggregate<T extends RunBudgetEventAggregateArgs>(args: Prisma.Subset<T, RunBudgetEventAggregateArgs>): Prisma.PrismaPromise<GetRunBudgetEventAggregateType<T>>;
731
+ /**
732
+ * Group by RunBudgetEvent.
733
+ * Note, that providing `undefined` is treated as the value not being there.
734
+ * Read more here: https://pris.ly/d/null-undefined
735
+ * @param {RunBudgetEventGroupByArgs} args - Group by arguments.
736
+ * @example
737
+ * // Group by city, order by createdAt, get count
738
+ * const result = await prisma.user.groupBy({
739
+ * by: ['city', 'createdAt'],
740
+ * orderBy: {
741
+ * createdAt: true
742
+ * },
743
+ * _count: {
744
+ * _all: true
745
+ * },
746
+ * })
747
+ *
748
+ **/
749
+ groupBy<T extends RunBudgetEventGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
750
+ orderBy: RunBudgetEventGroupByArgs['orderBy'];
751
+ } : {
752
+ orderBy?: RunBudgetEventGroupByArgs['orderBy'];
753
+ }, 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 ? {
754
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
755
+ Error,
756
+ 'Field ',
757
+ P,
758
+ ` in "having" needs to be provided in "by"`
759
+ ];
760
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
761
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
762
+ }[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 ? {} : {
763
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
764
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
765
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
766
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, RunBudgetEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRunBudgetEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
767
+ /**
768
+ * Fields of the RunBudgetEvent model
769
+ */
770
+ readonly fields: RunBudgetEventFieldRefs;
771
+ }
772
+ /**
773
+ * The delegate class that acts as a "Promise-like" for RunBudgetEvent.
774
+ * Why is this prefixed with `Prisma__`?
775
+ * Because we want to prevent naming conflicts as mentioned in
776
+ * https://github.com/prisma/prisma-client-js/issues/707
777
+ */
778
+ export interface Prisma__RunBudgetEventClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
779
+ readonly [Symbol.toStringTag]: "PrismaPromise";
780
+ run<T extends Prisma.RunDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RunDefaultArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
781
+ /**
782
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
783
+ * @param onfulfilled The callback to execute when the Promise is resolved.
784
+ * @param onrejected The callback to execute when the Promise is rejected.
785
+ * @returns A Promise for the completion of which ever callback is executed.
786
+ */
787
+ 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>;
788
+ /**
789
+ * Attaches a callback for only the rejection of the Promise.
790
+ * @param onrejected The callback to execute when the Promise is rejected.
791
+ * @returns A Promise for the completion of the callback.
792
+ */
793
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
794
+ /**
795
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
796
+ * resolved value cannot be modified from the callback.
797
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
798
+ * @returns A Promise for the completion of the callback.
799
+ */
800
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
801
+ }
802
+ /**
803
+ * Fields of the RunBudgetEvent model
804
+ */
805
+ export interface RunBudgetEventFieldRefs {
806
+ readonly id: Prisma.FieldRef<"RunBudgetEvent", 'String'>;
807
+ readonly runId: Prisma.FieldRef<"RunBudgetEvent", 'String'>;
808
+ readonly kind: Prisma.FieldRef<"RunBudgetEvent", 'RunBudgetEventKind'>;
809
+ readonly limit: Prisma.FieldRef<"RunBudgetEvent", 'String'>;
810
+ readonly at: Prisma.FieldRef<"RunBudgetEvent", 'DateTime'>;
811
+ readonly details: Prisma.FieldRef<"RunBudgetEvent", 'Json'>;
812
+ }
813
+ /**
814
+ * RunBudgetEvent findUnique
815
+ */
816
+ export type RunBudgetEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
817
+ /**
818
+ * Select specific fields to fetch from the RunBudgetEvent
819
+ */
820
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
821
+ /**
822
+ * Omit specific fields from the RunBudgetEvent
823
+ */
824
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
825
+ /**
826
+ * Choose, which related nodes to fetch as well
827
+ */
828
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
829
+ /**
830
+ * Filter, which RunBudgetEvent to fetch.
831
+ */
832
+ where: Prisma.RunBudgetEventWhereUniqueInput;
833
+ };
834
+ /**
835
+ * RunBudgetEvent findUniqueOrThrow
836
+ */
837
+ export type RunBudgetEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
838
+ /**
839
+ * Select specific fields to fetch from the RunBudgetEvent
840
+ */
841
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
842
+ /**
843
+ * Omit specific fields from the RunBudgetEvent
844
+ */
845
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
846
+ /**
847
+ * Choose, which related nodes to fetch as well
848
+ */
849
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
850
+ /**
851
+ * Filter, which RunBudgetEvent to fetch.
852
+ */
853
+ where: Prisma.RunBudgetEventWhereUniqueInput;
854
+ };
855
+ /**
856
+ * RunBudgetEvent findFirst
857
+ */
858
+ export type RunBudgetEventFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
859
+ /**
860
+ * Select specific fields to fetch from the RunBudgetEvent
861
+ */
862
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
863
+ /**
864
+ * Omit specific fields from the RunBudgetEvent
865
+ */
866
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
867
+ /**
868
+ * Choose, which related nodes to fetch as well
869
+ */
870
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
871
+ /**
872
+ * Filter, which RunBudgetEvent to fetch.
873
+ */
874
+ where?: Prisma.RunBudgetEventWhereInput;
875
+ /**
876
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
877
+ *
878
+ * Determine the order of RunBudgetEvents to fetch.
879
+ */
880
+ orderBy?: Prisma.RunBudgetEventOrderByWithRelationInput | Prisma.RunBudgetEventOrderByWithRelationInput[];
881
+ /**
882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
883
+ *
884
+ * Sets the position for searching for RunBudgetEvents.
885
+ */
886
+ cursor?: Prisma.RunBudgetEventWhereUniqueInput;
887
+ /**
888
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
889
+ *
890
+ * Take `±n` RunBudgetEvents from the position of the cursor.
891
+ */
892
+ take?: number;
893
+ /**
894
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
895
+ *
896
+ * Skip the first `n` RunBudgetEvents.
897
+ */
898
+ skip?: number;
899
+ /**
900
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
901
+ *
902
+ * Filter by unique combinations of RunBudgetEvents.
903
+ */
904
+ distinct?: Prisma.RunBudgetEventScalarFieldEnum | Prisma.RunBudgetEventScalarFieldEnum[];
905
+ };
906
+ /**
907
+ * RunBudgetEvent findFirstOrThrow
908
+ */
909
+ export type RunBudgetEventFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
910
+ /**
911
+ * Select specific fields to fetch from the RunBudgetEvent
912
+ */
913
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
914
+ /**
915
+ * Omit specific fields from the RunBudgetEvent
916
+ */
917
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
918
+ /**
919
+ * Choose, which related nodes to fetch as well
920
+ */
921
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
922
+ /**
923
+ * Filter, which RunBudgetEvent to fetch.
924
+ */
925
+ where?: Prisma.RunBudgetEventWhereInput;
926
+ /**
927
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
928
+ *
929
+ * Determine the order of RunBudgetEvents to fetch.
930
+ */
931
+ orderBy?: Prisma.RunBudgetEventOrderByWithRelationInput | Prisma.RunBudgetEventOrderByWithRelationInput[];
932
+ /**
933
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
934
+ *
935
+ * Sets the position for searching for RunBudgetEvents.
936
+ */
937
+ cursor?: Prisma.RunBudgetEventWhereUniqueInput;
938
+ /**
939
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
940
+ *
941
+ * Take `±n` RunBudgetEvents from the position of the cursor.
942
+ */
943
+ take?: number;
944
+ /**
945
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
946
+ *
947
+ * Skip the first `n` RunBudgetEvents.
948
+ */
949
+ skip?: number;
950
+ /**
951
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
952
+ *
953
+ * Filter by unique combinations of RunBudgetEvents.
954
+ */
955
+ distinct?: Prisma.RunBudgetEventScalarFieldEnum | Prisma.RunBudgetEventScalarFieldEnum[];
956
+ };
957
+ /**
958
+ * RunBudgetEvent findMany
959
+ */
960
+ export type RunBudgetEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
961
+ /**
962
+ * Select specific fields to fetch from the RunBudgetEvent
963
+ */
964
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
965
+ /**
966
+ * Omit specific fields from the RunBudgetEvent
967
+ */
968
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
969
+ /**
970
+ * Choose, which related nodes to fetch as well
971
+ */
972
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
973
+ /**
974
+ * Filter, which RunBudgetEvents to fetch.
975
+ */
976
+ where?: Prisma.RunBudgetEventWhereInput;
977
+ /**
978
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
979
+ *
980
+ * Determine the order of RunBudgetEvents to fetch.
981
+ */
982
+ orderBy?: Prisma.RunBudgetEventOrderByWithRelationInput | Prisma.RunBudgetEventOrderByWithRelationInput[];
983
+ /**
984
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
985
+ *
986
+ * Sets the position for listing RunBudgetEvents.
987
+ */
988
+ cursor?: Prisma.RunBudgetEventWhereUniqueInput;
989
+ /**
990
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
991
+ *
992
+ * Take `±n` RunBudgetEvents from the position of the cursor.
993
+ */
994
+ take?: number;
995
+ /**
996
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
997
+ *
998
+ * Skip the first `n` RunBudgetEvents.
999
+ */
1000
+ skip?: number;
1001
+ /**
1002
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1003
+ *
1004
+ * Filter by unique combinations of RunBudgetEvents.
1005
+ */
1006
+ distinct?: Prisma.RunBudgetEventScalarFieldEnum | Prisma.RunBudgetEventScalarFieldEnum[];
1007
+ };
1008
+ /**
1009
+ * RunBudgetEvent create
1010
+ */
1011
+ export type RunBudgetEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1012
+ /**
1013
+ * Select specific fields to fetch from the RunBudgetEvent
1014
+ */
1015
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
1016
+ /**
1017
+ * Omit specific fields from the RunBudgetEvent
1018
+ */
1019
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
1020
+ /**
1021
+ * Choose, which related nodes to fetch as well
1022
+ */
1023
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
1024
+ /**
1025
+ * The data needed to create a RunBudgetEvent.
1026
+ */
1027
+ data: Prisma.XOR<Prisma.RunBudgetEventCreateInput, Prisma.RunBudgetEventUncheckedCreateInput>;
1028
+ };
1029
+ /**
1030
+ * RunBudgetEvent createMany
1031
+ */
1032
+ export type RunBudgetEventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
+ /**
1034
+ * The data used to create many RunBudgetEvents.
1035
+ */
1036
+ data: Prisma.RunBudgetEventCreateManyInput | Prisma.RunBudgetEventCreateManyInput[];
1037
+ skipDuplicates?: boolean;
1038
+ };
1039
+ /**
1040
+ * RunBudgetEvent createManyAndReturn
1041
+ */
1042
+ export type RunBudgetEventCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1043
+ /**
1044
+ * Select specific fields to fetch from the RunBudgetEvent
1045
+ */
1046
+ select?: Prisma.RunBudgetEventSelectCreateManyAndReturn<ExtArgs> | null;
1047
+ /**
1048
+ * Omit specific fields from the RunBudgetEvent
1049
+ */
1050
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
1051
+ /**
1052
+ * The data used to create many RunBudgetEvents.
1053
+ */
1054
+ data: Prisma.RunBudgetEventCreateManyInput | Prisma.RunBudgetEventCreateManyInput[];
1055
+ skipDuplicates?: boolean;
1056
+ /**
1057
+ * Choose, which related nodes to fetch as well
1058
+ */
1059
+ include?: Prisma.RunBudgetEventIncludeCreateManyAndReturn<ExtArgs> | null;
1060
+ };
1061
+ /**
1062
+ * RunBudgetEvent update
1063
+ */
1064
+ export type RunBudgetEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1065
+ /**
1066
+ * Select specific fields to fetch from the RunBudgetEvent
1067
+ */
1068
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
1069
+ /**
1070
+ * Omit specific fields from the RunBudgetEvent
1071
+ */
1072
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
1073
+ /**
1074
+ * Choose, which related nodes to fetch as well
1075
+ */
1076
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
1077
+ /**
1078
+ * The data needed to update a RunBudgetEvent.
1079
+ */
1080
+ data: Prisma.XOR<Prisma.RunBudgetEventUpdateInput, Prisma.RunBudgetEventUncheckedUpdateInput>;
1081
+ /**
1082
+ * Choose, which RunBudgetEvent to update.
1083
+ */
1084
+ where: Prisma.RunBudgetEventWhereUniqueInput;
1085
+ };
1086
+ /**
1087
+ * RunBudgetEvent updateMany
1088
+ */
1089
+ export type RunBudgetEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1090
+ /**
1091
+ * The data used to update RunBudgetEvents.
1092
+ */
1093
+ data: Prisma.XOR<Prisma.RunBudgetEventUpdateManyMutationInput, Prisma.RunBudgetEventUncheckedUpdateManyInput>;
1094
+ /**
1095
+ * Filter which RunBudgetEvents to update
1096
+ */
1097
+ where?: Prisma.RunBudgetEventWhereInput;
1098
+ /**
1099
+ * Limit how many RunBudgetEvents to update.
1100
+ */
1101
+ limit?: number;
1102
+ };
1103
+ /**
1104
+ * RunBudgetEvent updateManyAndReturn
1105
+ */
1106
+ export type RunBudgetEventUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1107
+ /**
1108
+ * Select specific fields to fetch from the RunBudgetEvent
1109
+ */
1110
+ select?: Prisma.RunBudgetEventSelectUpdateManyAndReturn<ExtArgs> | null;
1111
+ /**
1112
+ * Omit specific fields from the RunBudgetEvent
1113
+ */
1114
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
1115
+ /**
1116
+ * The data used to update RunBudgetEvents.
1117
+ */
1118
+ data: Prisma.XOR<Prisma.RunBudgetEventUpdateManyMutationInput, Prisma.RunBudgetEventUncheckedUpdateManyInput>;
1119
+ /**
1120
+ * Filter which RunBudgetEvents to update
1121
+ */
1122
+ where?: Prisma.RunBudgetEventWhereInput;
1123
+ /**
1124
+ * Limit how many RunBudgetEvents to update.
1125
+ */
1126
+ limit?: number;
1127
+ /**
1128
+ * Choose, which related nodes to fetch as well
1129
+ */
1130
+ include?: Prisma.RunBudgetEventIncludeUpdateManyAndReturn<ExtArgs> | null;
1131
+ };
1132
+ /**
1133
+ * RunBudgetEvent upsert
1134
+ */
1135
+ export type RunBudgetEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1136
+ /**
1137
+ * Select specific fields to fetch from the RunBudgetEvent
1138
+ */
1139
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
1140
+ /**
1141
+ * Omit specific fields from the RunBudgetEvent
1142
+ */
1143
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
1144
+ /**
1145
+ * Choose, which related nodes to fetch as well
1146
+ */
1147
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
1148
+ /**
1149
+ * The filter to search for the RunBudgetEvent to update in case it exists.
1150
+ */
1151
+ where: Prisma.RunBudgetEventWhereUniqueInput;
1152
+ /**
1153
+ * In case the RunBudgetEvent found by the `where` argument doesn't exist, create a new RunBudgetEvent with this data.
1154
+ */
1155
+ create: Prisma.XOR<Prisma.RunBudgetEventCreateInput, Prisma.RunBudgetEventUncheckedCreateInput>;
1156
+ /**
1157
+ * In case the RunBudgetEvent was found with the provided `where` argument, update it with this data.
1158
+ */
1159
+ update: Prisma.XOR<Prisma.RunBudgetEventUpdateInput, Prisma.RunBudgetEventUncheckedUpdateInput>;
1160
+ };
1161
+ /**
1162
+ * RunBudgetEvent delete
1163
+ */
1164
+ export type RunBudgetEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
+ /**
1166
+ * Select specific fields to fetch from the RunBudgetEvent
1167
+ */
1168
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
1169
+ /**
1170
+ * Omit specific fields from the RunBudgetEvent
1171
+ */
1172
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
1173
+ /**
1174
+ * Choose, which related nodes to fetch as well
1175
+ */
1176
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
1177
+ /**
1178
+ * Filter which RunBudgetEvent to delete.
1179
+ */
1180
+ where: Prisma.RunBudgetEventWhereUniqueInput;
1181
+ };
1182
+ /**
1183
+ * RunBudgetEvent deleteMany
1184
+ */
1185
+ export type RunBudgetEventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1186
+ /**
1187
+ * Filter which RunBudgetEvents to delete
1188
+ */
1189
+ where?: Prisma.RunBudgetEventWhereInput;
1190
+ /**
1191
+ * Limit how many RunBudgetEvents to delete.
1192
+ */
1193
+ limit?: number;
1194
+ };
1195
+ /**
1196
+ * RunBudgetEvent without action
1197
+ */
1198
+ export type RunBudgetEventDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1199
+ /**
1200
+ * Select specific fields to fetch from the RunBudgetEvent
1201
+ */
1202
+ select?: Prisma.RunBudgetEventSelect<ExtArgs> | null;
1203
+ /**
1204
+ * Omit specific fields from the RunBudgetEvent
1205
+ */
1206
+ omit?: Prisma.RunBudgetEventOmit<ExtArgs> | null;
1207
+ /**
1208
+ * Choose, which related nodes to fetch as well
1209
+ */
1210
+ include?: Prisma.RunBudgetEventInclude<ExtArgs> | null;
1211
+ };