@wardby/cli 0.2.0 → 0.3.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 (491) hide show
  1. package/.env.example +34 -4
  2. package/README.md +183 -71
  3. package/dist/claude-coding-worker/driver.d.ts +7 -1
  4. package/dist/claude-coding-worker/driver.js +31 -2
  5. package/dist/claude-coding-worker/main.js +5 -2
  6. package/dist/claude-coding-worker/tool-socket.d.ts +9 -0
  7. package/dist/claude-coding-worker/tool-socket.js +26 -0
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +13 -4
  10. package/dist/cli.d.ts +1 -1
  11. package/dist/cli.js +219 -29
  12. package/dist/coding/collect-exclude.d.ts +25 -0
  13. package/dist/coding/collect-exclude.js +76 -0
  14. package/dist/coding/profile.d.ts +67 -22
  15. package/dist/coding/profile.js +58 -25
  16. package/dist/coding/protected-path-wording.d.ts +24 -0
  17. package/dist/coding/protected-path-wording.js +55 -0
  18. package/dist/coding/protected-paths.d.ts +31 -0
  19. package/dist/coding/protected-paths.js +48 -0
  20. package/dist/coding/protocol.d.ts +99 -3
  21. package/dist/coding/protocol.js +155 -4
  22. package/dist/coding/registry/adapters.d.ts +2 -0
  23. package/dist/coding/registry/adapters.js +9 -0
  24. package/dist/coding/registry/allowlist.d.ts +9 -0
  25. package/dist/coding/registry/allowlist.js +28 -0
  26. package/dist/coding/registry/json-scan.d.ts +55 -0
  27. package/dist/coding/registry/json-scan.js +191 -0
  28. package/dist/coding/registry/lockfiles.d.ts +6 -0
  29. package/dist/coding/registry/lockfiles.js +89 -0
  30. package/dist/coding/registry/npm-lockfile.d.ts +9 -0
  31. package/dist/coding/registry/npm-lockfile.js +73 -0
  32. package/dist/coding/registry/npm-plan.d.ts +29 -0
  33. package/dist/coding/registry/npm-plan.js +289 -0
  34. package/dist/coding/registry/npm.d.ts +7 -0
  35. package/dist/coding/registry/npm.js +252 -0
  36. package/dist/coding/registry/pypi.d.ts +4 -0
  37. package/dist/coding/registry/pypi.js +210 -0
  38. package/dist/coding/registry/report.d.ts +37 -0
  39. package/dist/coding/registry/report.js +31 -0
  40. package/dist/coding/registry/token.d.ts +4 -0
  41. package/dist/coding/registry/token.js +7 -0
  42. package/dist/coding/registry/types.d.ts +286 -0
  43. package/dist/coding/registry/types.js +19 -0
  44. package/dist/coding/registry/worker-config.d.ts +14 -0
  45. package/dist/coding/registry/worker-config.js +31 -0
  46. package/dist/coding/services/builtins.d.ts +22 -0
  47. package/dist/coding/services/builtins.js +85 -0
  48. package/dist/coding/services/catalog.d.ts +443 -0
  49. package/dist/coding/services/catalog.js +159 -0
  50. package/dist/coding/services/declaration.d.ts +11 -0
  51. package/dist/coding/services/declaration.js +114 -0
  52. package/dist/coding/services/note.d.ts +8 -0
  53. package/dist/coding/services/note.js +15 -0
  54. package/dist/coding/services/resolve.d.ts +25 -0
  55. package/dist/coding/services/resolve.js +50 -0
  56. package/dist/coding/services/wording.d.ts +25 -0
  57. package/dist/coding/services/wording.js +70 -0
  58. package/dist/coding-proxy/main.js +24 -4
  59. package/dist/coding-worker/artifact.d.ts +18 -0
  60. package/dist/coding-worker/artifact.js +48 -6
  61. package/dist/coding-worker/debug-trace.d.ts +37 -0
  62. package/dist/coding-worker/debug-trace.js +117 -0
  63. package/dist/coding-worker/driver.d.ts +14 -1
  64. package/dist/coding-worker/driver.js +106 -14
  65. package/dist/coding-worker/errors.d.ts +7 -0
  66. package/dist/coding-worker/errors.js +26 -0
  67. package/dist/coding-worker/main.js +13 -4
  68. package/dist/coding-worker/sdk.d.ts +2 -2
  69. package/dist/coding-worker/sdk.js +7 -2
  70. package/dist/coding-worker/types.d.ts +3 -0
  71. package/dist/config/providers.d.ts +41 -0
  72. package/dist/config/providers.js +66 -0
  73. package/dist/core/budget-groups.d.ts +109 -6
  74. package/dist/core/budget-groups.js +125 -19
  75. package/dist/core/budget-wording.d.ts +22 -0
  76. package/dist/core/budget-wording.js +55 -0
  77. package/dist/core/coding-queue.d.ts +1 -1
  78. package/dist/core/datastores.d.ts +1 -1
  79. package/dist/core/datastores.js +18 -2
  80. package/dist/core/db.d.ts +40 -2
  81. package/dist/core/db.js +75 -2
  82. package/dist/core/dispatch.d.ts +49 -7
  83. package/dist/core/dispatch.js +290 -45
  84. package/dist/core/engine-native.js +27 -10
  85. package/dist/core/grants.d.ts +86 -0
  86. package/dist/core/grants.js +126 -0
  87. package/dist/core/host-events.d.ts +49 -0
  88. package/dist/core/host-events.js +257 -0
  89. package/dist/core/host-identity-links.d.ts +54 -0
  90. package/dist/core/host-identity-links.js +189 -0
  91. package/dist/core/host-status.d.ts +61 -0
  92. package/dist/core/host-status.js +211 -0
  93. package/dist/core/http-runtime.js +3 -4
  94. package/dist/core/in-flight-runs.d.ts +8 -0
  95. package/dist/core/in-flight-runs.js +56 -0
  96. package/dist/core/lease.d.ts +1 -1
  97. package/dist/core/private-directory.d.ts +20 -0
  98. package/dist/core/private-directory.js +36 -0
  99. package/dist/core/provider-wording.d.ts +12 -0
  100. package/dist/core/provider-wording.js +44 -0
  101. package/dist/core/reconciler.d.ts +39 -3
  102. package/dist/core/reconciler.js +86 -2
  103. package/dist/core/repo-access.d.ts +99 -0
  104. package/dist/core/repo-access.js +136 -0
  105. package/dist/core/review-host-checks.d.ts +11 -0
  106. package/dist/core/review-host-checks.js +41 -0
  107. package/dist/core/review-host-tools.d.ts +47 -0
  108. package/dist/core/review-host-tools.js +347 -0
  109. package/dist/core/run-heartbeat.d.ts +27 -0
  110. package/dist/core/run-heartbeat.js +54 -0
  111. package/dist/core/runner.d.ts +31 -9
  112. package/dist/core/runner.js +237 -40
  113. package/dist/core/scheduler.d.ts +1 -1
  114. package/dist/core/secrets.d.ts +12 -3
  115. package/dist/core/secrets.js +25 -6
  116. package/dist/core/subagent-memory-tools.d.ts +2 -2
  117. package/dist/core/subagent-memory-tools.js +16 -3
  118. package/dist/core/tool-admin.d.ts +81 -0
  119. package/dist/core/tool-admin.js +129 -0
  120. package/dist/core/tool-names.d.ts +42 -0
  121. package/dist/core/tool-names.js +64 -0
  122. package/dist/core/untrusted-content.d.ts +32 -0
  123. package/dist/core/untrusted-content.js +72 -0
  124. package/dist/core/webhooks.d.ts +9 -2
  125. package/dist/core/webhooks.js +23 -2
  126. package/dist/generated/prisma/browser.d.ts +328 -0
  127. package/dist/generated/prisma/browser.js +17 -0
  128. package/dist/generated/prisma/client.d.ts +347 -0
  129. package/dist/generated/prisma/client.js +34 -0
  130. package/dist/generated/prisma/commonInputTypes.d.ts +839 -0
  131. package/dist/generated/prisma/commonInputTypes.js +10 -0
  132. package/dist/generated/prisma/enums.d.ts +59 -0
  133. package/dist/generated/prisma/enums.js +59 -0
  134. package/dist/generated/prisma/internal/class.d.ts +605 -0
  135. package/dist/generated/prisma/internal/class.js +49 -0
  136. package/dist/generated/prisma/internal/prismaNamespace.d.ts +4494 -0
  137. package/dist/generated/prisma/internal/prismaNamespace.js +628 -0
  138. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +635 -0
  139. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +599 -0
  140. package/dist/generated/prisma/models/Agent.d.ts +3560 -0
  141. package/dist/generated/prisma/models/Agent.js +1 -0
  142. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  143. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  144. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  145. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  146. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  147. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  148. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  149. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  150. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  151. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  152. package/dist/generated/prisma/models/AgentTool.d.ts +1403 -0
  153. package/dist/generated/prisma/models/AgentTool.js +1 -0
  154. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  155. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  156. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  157. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  158. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  159. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  160. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  161. package/dist/generated/prisma/models/AuthSession.js +1 -0
  162. package/dist/generated/prisma/models/AuthUser.d.ts +1700 -0
  163. package/dist/generated/prisma/models/AuthUser.js +1 -0
  164. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  165. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  166. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1681 -0
  167. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  168. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  169. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  170. package/dist/generated/prisma/models/CodingProxySession.d.ts +1626 -0
  171. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  172. package/dist/generated/prisma/models/CodingRun.d.ts +3583 -0
  173. package/dist/generated/prisma/models/CodingRun.js +1 -0
  174. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  175. package/dist/generated/prisma/models/CodingService.js +1 -0
  176. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  177. package/dist/generated/prisma/models/Datastore.js +1 -0
  178. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  179. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  180. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  181. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  182. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  183. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  184. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  185. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  186. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  187. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  188. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  189. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  190. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  191. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  192. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  193. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  194. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  195. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  196. package/dist/generated/prisma/models/Principal.d.ts +2245 -0
  197. package/dist/generated/prisma/models/Principal.js +1 -0
  198. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  199. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  200. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  201. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  202. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  203. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  204. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  205. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  206. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  207. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  208. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  209. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  210. package/dist/generated/prisma/models/Run.d.ts +2669 -0
  211. package/dist/generated/prisma/models/Run.js +1 -0
  212. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  213. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  214. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  215. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  216. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  217. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  218. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  219. package/dist/generated/prisma/models/Secret.js +1 -0
  220. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  221. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  222. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  223. package/dist/generated/prisma/models/Task.js +1 -0
  224. package/dist/generated/prisma/models/Tool.d.ts +1490 -0
  225. package/dist/generated/prisma/models/Tool.js +1 -0
  226. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  227. package/dist/generated/prisma/models/Webhook.js +1 -0
  228. package/dist/generated/prisma/models.d.ts +45 -0
  229. package/dist/generated/prisma/models.js +1 -0
  230. package/dist/help/build.d.ts +1 -0
  231. package/dist/help/build.js +9 -0
  232. package/dist/help/catalog.d.ts +24 -0
  233. package/dist/help/catalog.js +160 -0
  234. package/dist/help/cli.d.ts +2 -0
  235. package/dist/help/cli.js +65 -0
  236. package/dist/help/runtime.d.ts +3 -0
  237. package/dist/help/runtime.js +44 -0
  238. package/dist/help/search.d.ts +9 -0
  239. package/dist/help/search.js +104 -0
  240. package/dist/help-index.json +660 -0
  241. package/dist/import/cli-args.js +3 -2
  242. package/dist/import/create.d.ts +6 -1
  243. package/dist/import/create.js +68 -14
  244. package/dist/import/index.d.ts +1 -1
  245. package/dist/import/index.js +19 -9
  246. package/dist/import/neutral-schema.d.ts +11 -11
  247. package/dist/mcp/auth/access.d.ts +70 -0
  248. package/dist/mcp/auth/access.js +58 -0
  249. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  250. package/dist/mcp/auth/grants-cli.js +518 -0
  251. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  252. package/dist/mcp/auth/host-account-cli.js +47 -0
  253. package/dist/mcp/auth/ownership.d.ts +37 -63
  254. package/dist/mcp/auth/ownership.js +19 -14
  255. package/dist/mcp/auth/principal.d.ts +1 -1
  256. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  257. package/dist/mcp/auth/repo-authorization.js +51 -0
  258. package/dist/mcp/auth/resource-server.d.ts +32 -3
  259. package/dist/mcp/auth/resource-server.js +84 -3
  260. package/dist/mcp/auth/self-hosted/browser.js +22 -8
  261. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  262. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  263. package/dist/mcp/auth/self-hosted/credentials.d.ts +21 -3
  264. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  265. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  266. package/dist/mcp/auth/self-hosted/session.d.ts +3 -2
  267. package/dist/mcp/context.d.ts +28 -2
  268. package/dist/mcp/errors.d.ts +25 -6
  269. package/dist/mcp/errors.js +98 -0
  270. package/dist/mcp/host-events/github-ingress.d.ts +36 -0
  271. package/dist/mcp/host-events/github-ingress.js +92 -0
  272. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  273. package/dist/mcp/host-events/github-user-callback.js +50 -0
  274. package/dist/mcp/index.d.ts +8 -1
  275. package/dist/mcp/index.js +106 -16
  276. package/dist/mcp/server.d.ts +1 -1
  277. package/dist/mcp/server.js +27 -9
  278. package/dist/mcp/shared/page-style.d.ts +16 -0
  279. package/dist/mcp/shared/page-style.js +129 -0
  280. package/dist/mcp/tasks/manager.d.ts +1 -1
  281. package/dist/mcp/tools/agents.js +447 -49
  282. package/dist/mcp/tools/budget-groups.js +3 -3
  283. package/dist/mcp/tools/datastore.js +23 -16
  284. package/dist/mcp/tools/grants.d.ts +2 -0
  285. package/dist/mcp/tools/grants.js +239 -0
  286. package/dist/mcp/tools/help.d.ts +5 -0
  287. package/dist/mcp/tools/help.js +67 -0
  288. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  289. package/dist/mcp/tools/host-accounts.js +114 -0
  290. package/dist/mcp/tools/memory.d.ts +7 -1
  291. package/dist/mcp/tools/memory.js +5 -5
  292. package/dist/mcp/tools/repositories.d.ts +2 -0
  293. package/dist/mcp/tools/repositories.js +181 -0
  294. package/dist/mcp/tools/runs.d.ts +6 -0
  295. package/dist/mcp/tools/runs.js +60 -6
  296. package/dist/mcp/tools/scheduling.js +4 -7
  297. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  298. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  299. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  300. package/dist/mcp/tools/secrets.js +18 -6
  301. package/dist/mcp/tools/services.d.ts +2 -0
  302. package/dist/mcp/tools/services.js +222 -0
  303. package/dist/mcp/tools/subagents.js +53 -17
  304. package/dist/mcp/tools/tools.d.ts +41 -0
  305. package/dist/mcp/tools/tools.js +202 -41
  306. package/dist/mcp/tools/trigger.js +36 -6
  307. package/dist/mcp/tools/webhooks.js +15 -4
  308. package/dist/mcp/transport/streamable-http.d.ts +11 -1
  309. package/dist/mcp/transport/streamable-http.js +32 -2
  310. package/dist/mcp/unattended-schedules.d.ts +1 -1
  311. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  312. package/dist/providers/auth/delegating.d.ts +19 -0
  313. package/dist/providers/auth/delegating.js +71 -0
  314. package/dist/providers/auth/index.d.ts +3 -1
  315. package/dist/providers/auth/index.js +11 -0
  316. package/dist/providers/auth/self-hosted.d.ts +4 -3
  317. package/dist/providers/auth/self-hosted.js +16 -4
  318. package/dist/providers/auth/types.d.ts +6 -0
  319. package/dist/providers/coding-proxy/memory-ledger.d.ts +3 -0
  320. package/dist/providers/coding-proxy/memory-ledger.js +21 -2
  321. package/dist/providers/coding-proxy/metering.d.ts +4 -0
  322. package/dist/providers/coding-proxy/metering.js +28 -2
  323. package/dist/providers/coding-proxy/prisma-ledger.d.ts +18 -1
  324. package/dist/providers/coding-proxy/prisma-ledger.js +50 -5
  325. package/dist/providers/coding-proxy/proxy.d.ts +13 -0
  326. package/dist/providers/coding-proxy/proxy.js +479 -18
  327. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  328. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  329. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  330. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  331. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  332. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  333. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  334. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  335. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  336. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  337. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  338. package/dist/providers/coding-proxy/registry/store.js +70 -0
  339. package/dist/providers/coding-proxy/runtime.d.ts +18 -1
  340. package/dist/providers/coding-proxy/runtime.js +63 -0
  341. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  342. package/dist/providers/coding-proxy/server.d.ts +11 -0
  343. package/dist/providers/coding-proxy/server.js +163 -0
  344. package/dist/providers/coding-proxy/types.d.ts +15 -0
  345. package/dist/providers/datastore/postgres.d.ts +1 -1
  346. package/dist/providers/engine/types.d.ts +10 -0
  347. package/dist/providers/executor/build.d.ts +3 -3
  348. package/dist/providers/executor/composition.d.ts +4 -1
  349. package/dist/providers/executor/composition.js +19 -0
  350. package/dist/providers/executor/container.d.ts +106 -4
  351. package/dist/providers/executor/container.js +305 -22
  352. package/dist/providers/executor/dbos.d.ts +3 -4
  353. package/dist/providers/executor/in-process.d.ts +2 -3
  354. package/dist/providers/executor/routing.d.ts +7 -0
  355. package/dist/providers/executor/routing.js +13 -0
  356. package/dist/providers/executor/types.d.ts +22 -0
  357. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  358. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  359. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  360. package/dist/providers/jobs/collect-prune.js +27 -0
  361. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  362. package/dist/providers/jobs/docker-isolation.js +213 -22
  363. package/dist/providers/jobs/docker-services.d.ts +35 -0
  364. package/dist/providers/jobs/docker-services.js +191 -0
  365. package/dist/providers/jobs/docker.d.ts +60 -2
  366. package/dist/providers/jobs/docker.js +313 -50
  367. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  368. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  369. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  370. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  371. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  372. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  373. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  374. package/dist/providers/jobs/kubernetes.d.ts +21 -2
  375. package/dist/providers/jobs/kubernetes.js +117 -31
  376. package/dist/providers/jobs/types.d.ts +20 -0
  377. package/dist/providers/llm/anthropic.js +6 -2
  378. package/dist/providers/llm/bedrock.js +2 -1
  379. package/dist/providers/llm/claude-messages.d.ts +5 -1
  380. package/dist/providers/llm/claude-messages.js +1 -0
  381. package/dist/providers/llm/claude-provider.d.ts +3 -1
  382. package/dist/providers/llm/claude-provider.js +5 -1
  383. package/dist/providers/llm/index.d.ts +1 -1
  384. package/dist/providers/llm/index.js +1 -1
  385. package/dist/providers/llm/pricing-anthropic.d.ts +10 -0
  386. package/dist/providers/llm/pricing-anthropic.js +32 -14
  387. package/dist/providers/llm/pricing-bedrock-claude.d.ts +8 -0
  388. package/dist/providers/llm/pricing-bedrock-claude.js +9 -0
  389. package/dist/providers/llm/routing.d.ts +10 -1
  390. package/dist/providers/llm/routing.js +18 -0
  391. package/dist/providers/llm/types.d.ts +12 -0
  392. package/dist/providers/llm/types.js +8 -1
  393. package/dist/providers/memory/postgres.d.ts +1 -1
  394. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  395. package/dist/providers/review-host/diff-lines.js +59 -0
  396. package/dist/providers/review-host/github-events.d.ts +6 -0
  397. package/dist/providers/review-host/github-events.js +180 -0
  398. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  399. package/dist/providers/review-host/github-user-auth.js +128 -0
  400. package/dist/providers/review-host/github.d.ts +57 -0
  401. package/dist/providers/review-host/github.js +567 -0
  402. package/dist/providers/review-host/index.d.ts +12 -0
  403. package/dist/providers/review-host/index.js +30 -0
  404. package/dist/providers/review-host/review-format.d.ts +19 -0
  405. package/dist/providers/review-host/review-format.js +59 -0
  406. package/dist/providers/review-host/types.d.ts +284 -0
  407. package/dist/providers/review-host/types.js +24 -0
  408. package/dist/providers/vcs/git.d.ts +16 -6
  409. package/dist/providers/vcs/git.js +79 -14
  410. package/dist/providers/vcs/github.d.ts +74 -3
  411. package/dist/providers/vcs/github.js +195 -15
  412. package/dist/providers/vcs/types.d.ts +42 -4
  413. package/dist/quickstart/index.js +34 -32
  414. package/dist/quickstart/migrate.d.ts +23 -0
  415. package/dist/quickstart/migrate.js +125 -0
  416. package/dist/sandbox/fetch-policy.d.ts +20 -2
  417. package/dist/sandbox/fetch-policy.js +64 -3
  418. package/dist/sandbox/host-functions.d.ts +9 -1
  419. package/dist/sandbox/host-functions.js +12 -5
  420. package/dist/serve.js +1 -1
  421. package/dist/wardby-bin.js +6 -0
  422. package/docs/README.md +30 -0
  423. package/docs/architecture-runtime.md +90 -0
  424. package/docs/assets/brand/wardby-icon-512.png +0 -0
  425. package/docs/assets/brand/wardby-icon.svg +16 -0
  426. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  427. package/docs/assets/brand/wardby-mascot.png +0 -0
  428. package/docs/assets/brand/wardby-mascot.svg +5 -0
  429. package/docs/assets/wardby-workflow.svg +106 -0
  430. package/docs/code-review-agents.md +481 -0
  431. package/docs/coding-agent-setup.md +172 -0
  432. package/docs/coding-packages.md +455 -0
  433. package/docs/coding-services.md +300 -0
  434. package/docs/coding-worker-byo-images.md +98 -0
  435. package/docs/coding-worker-isolation.md +1061 -0
  436. package/docs/getting-started-gke.md +615 -0
  437. package/docs/getting-started-identity-provider.md +308 -0
  438. package/docs/getting-started.md +133 -0
  439. package/docs/observability.md +53 -0
  440. package/docs/release-verification.md +66 -0
  441. package/docs/security-deployment.md +657 -0
  442. package/help/code-review-agents.md +31 -0
  443. package/help/coding-packages.md +31 -0
  444. package/help/coding-services.md +71 -0
  445. package/help/creating-agents.md +68 -0
  446. package/help/deploy-gke.md +39 -0
  447. package/help/deployment-targets.md +39 -0
  448. package/help/errors/budget-group-exhausted.md +25 -0
  449. package/help/errors/docker-isolation-unsupported.md +26 -0
  450. package/help/errors/protected-path.md +45 -0
  451. package/help/errors/repo-access.md +27 -0
  452. package/help/errors/service-declaration-invalid.md +27 -0
  453. package/help/errors/service-declaration-unavailable.md +25 -0
  454. package/help/errors/service-launcher-unsupported.md +30 -0
  455. package/help/errors/service-not-allowed.md +27 -0
  456. package/help/errors/service-unknown.md +23 -0
  457. package/help/errors/service-unready.md +49 -0
  458. package/help/getting-started.md +31 -0
  459. package/help/github.md +30 -0
  460. package/help/identity-and-access.md +39 -0
  461. package/help/mcp.md +30 -0
  462. package/help/native-capabilities.md +30 -0
  463. package/help/observability.md +41 -0
  464. package/help/operating-agents.md +30 -0
  465. package/help/security.md +27 -0
  466. package/help/troubleshooting/budgets.md +26 -0
  467. package/help/troubleshooting/coding-workers.md +47 -0
  468. package/help/troubleshooting/repository-access.md +27 -0
  469. package/package.json +30 -11
  470. package/prisma/migrate.config.mjs +20 -0
  471. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  472. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  473. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  474. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  475. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  476. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  477. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  478. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  479. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  480. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  481. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  482. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  483. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  484. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  485. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  486. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  487. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  488. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  489. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  490. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  491. package/prisma/schema.prisma +417 -23
@@ -0,0 +1,1626 @@
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 CodingProxySession
6
+ * Trusted-boundary state for one coding run. Only a capability digest and an
7
+ * upstream credential reference are persisted; neither secret value enters the DB.
8
+ */
9
+ export type CodingProxySessionModel = runtime.Types.Result.DefaultSelection<Prisma.$CodingProxySessionPayload>;
10
+ export type AggregateCodingProxySession = {
11
+ _count: CodingProxySessionCountAggregateOutputType | null;
12
+ _avg: CodingProxySessionAvgAggregateOutputType | null;
13
+ _sum: CodingProxySessionSumAggregateOutputType | null;
14
+ _min: CodingProxySessionMinAggregateOutputType | null;
15
+ _max: CodingProxySessionMaxAggregateOutputType | null;
16
+ };
17
+ export type CodingProxySessionAvgAggregateOutputType = {
18
+ budgetUsd: runtime.Decimal | null;
19
+ };
20
+ export type CodingProxySessionSumAggregateOutputType = {
21
+ budgetUsd: runtime.Decimal | null;
22
+ };
23
+ export type CodingProxySessionMinAggregateOutputType = {
24
+ id: string | null;
25
+ runId: string | null;
26
+ capabilityHash: string | null;
27
+ credentialRef: string | null;
28
+ protocol: string | null;
29
+ deadlineAt: Date | null;
30
+ budgetUsd: runtime.Decimal | null;
31
+ status: $Enums.CodingProxySessionStatus | null;
32
+ createdAt: Date | null;
33
+ updatedAt: Date | null;
34
+ registryTokenHash: string | null;
35
+ budgetExhaustedAt: Date | null;
36
+ upstreamFailure: string | null;
37
+ };
38
+ export type CodingProxySessionMaxAggregateOutputType = {
39
+ id: string | null;
40
+ runId: string | null;
41
+ capabilityHash: string | null;
42
+ credentialRef: string | null;
43
+ protocol: string | null;
44
+ deadlineAt: Date | null;
45
+ budgetUsd: runtime.Decimal | null;
46
+ status: $Enums.CodingProxySessionStatus | null;
47
+ createdAt: Date | null;
48
+ updatedAt: Date | null;
49
+ registryTokenHash: string | null;
50
+ budgetExhaustedAt: Date | null;
51
+ upstreamFailure: string | null;
52
+ };
53
+ export type CodingProxySessionCountAggregateOutputType = {
54
+ id: number;
55
+ runId: number;
56
+ capabilityHash: number;
57
+ credentialRef: number;
58
+ protocol: number;
59
+ allowedModels: number;
60
+ deadlineAt: number;
61
+ budgetUsd: number;
62
+ status: number;
63
+ createdAt: number;
64
+ updatedAt: number;
65
+ registryTokenHash: number;
66
+ budgetExhaustedAt: number;
67
+ upstreamFailure: number;
68
+ _all: number;
69
+ };
70
+ export type CodingProxySessionAvgAggregateInputType = {
71
+ budgetUsd?: true;
72
+ };
73
+ export type CodingProxySessionSumAggregateInputType = {
74
+ budgetUsd?: true;
75
+ };
76
+ export type CodingProxySessionMinAggregateInputType = {
77
+ id?: true;
78
+ runId?: true;
79
+ capabilityHash?: true;
80
+ credentialRef?: true;
81
+ protocol?: true;
82
+ deadlineAt?: true;
83
+ budgetUsd?: true;
84
+ status?: true;
85
+ createdAt?: true;
86
+ updatedAt?: true;
87
+ registryTokenHash?: true;
88
+ budgetExhaustedAt?: true;
89
+ upstreamFailure?: true;
90
+ };
91
+ export type CodingProxySessionMaxAggregateInputType = {
92
+ id?: true;
93
+ runId?: true;
94
+ capabilityHash?: true;
95
+ credentialRef?: true;
96
+ protocol?: true;
97
+ deadlineAt?: true;
98
+ budgetUsd?: true;
99
+ status?: true;
100
+ createdAt?: true;
101
+ updatedAt?: true;
102
+ registryTokenHash?: true;
103
+ budgetExhaustedAt?: true;
104
+ upstreamFailure?: true;
105
+ };
106
+ export type CodingProxySessionCountAggregateInputType = {
107
+ id?: true;
108
+ runId?: true;
109
+ capabilityHash?: true;
110
+ credentialRef?: true;
111
+ protocol?: true;
112
+ allowedModels?: true;
113
+ deadlineAt?: true;
114
+ budgetUsd?: true;
115
+ status?: true;
116
+ createdAt?: true;
117
+ updatedAt?: true;
118
+ registryTokenHash?: true;
119
+ budgetExhaustedAt?: true;
120
+ upstreamFailure?: true;
121
+ _all?: true;
122
+ };
123
+ export type CodingProxySessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
124
+ /**
125
+ * Filter which CodingProxySession to aggregate.
126
+ */
127
+ where?: Prisma.CodingProxySessionWhereInput;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
130
+ *
131
+ * Determine the order of CodingProxySessions to fetch.
132
+ */
133
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
136
+ *
137
+ * Sets the start position
138
+ */
139
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
142
+ *
143
+ * Take `±n` CodingProxySessions from the position of the cursor.
144
+ */
145
+ take?: number;
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
148
+ *
149
+ * Skip the first `n` CodingProxySessions.
150
+ */
151
+ skip?: number;
152
+ /**
153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
154
+ *
155
+ * Count returned CodingProxySessions
156
+ **/
157
+ _count?: true | CodingProxySessionCountAggregateInputType;
158
+ /**
159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
160
+ *
161
+ * Select which fields to average
162
+ **/
163
+ _avg?: CodingProxySessionAvgAggregateInputType;
164
+ /**
165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
166
+ *
167
+ * Select which fields to sum
168
+ **/
169
+ _sum?: CodingProxySessionSumAggregateInputType;
170
+ /**
171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
172
+ *
173
+ * Select which fields to find the minimum value
174
+ **/
175
+ _min?: CodingProxySessionMinAggregateInputType;
176
+ /**
177
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
178
+ *
179
+ * Select which fields to find the maximum value
180
+ **/
181
+ _max?: CodingProxySessionMaxAggregateInputType;
182
+ };
183
+ export type GetCodingProxySessionAggregateType<T extends CodingProxySessionAggregateArgs> = {
184
+ [P in keyof T & keyof AggregateCodingProxySession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCodingProxySession[P]> : Prisma.GetScalarType<T[P], AggregateCodingProxySession[P]>;
185
+ };
186
+ export type CodingProxySessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
187
+ where?: Prisma.CodingProxySessionWhereInput;
188
+ orderBy?: Prisma.CodingProxySessionOrderByWithAggregationInput | Prisma.CodingProxySessionOrderByWithAggregationInput[];
189
+ by: Prisma.CodingProxySessionScalarFieldEnum[] | Prisma.CodingProxySessionScalarFieldEnum;
190
+ having?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput;
191
+ take?: number;
192
+ skip?: number;
193
+ _count?: CodingProxySessionCountAggregateInputType | true;
194
+ _avg?: CodingProxySessionAvgAggregateInputType;
195
+ _sum?: CodingProxySessionSumAggregateInputType;
196
+ _min?: CodingProxySessionMinAggregateInputType;
197
+ _max?: CodingProxySessionMaxAggregateInputType;
198
+ };
199
+ export type CodingProxySessionGroupByOutputType = {
200
+ id: string;
201
+ runId: string;
202
+ capabilityHash: string;
203
+ credentialRef: string;
204
+ protocol: string;
205
+ allowedModels: runtime.JsonValue;
206
+ deadlineAt: Date;
207
+ budgetUsd: runtime.Decimal;
208
+ status: $Enums.CodingProxySessionStatus;
209
+ createdAt: Date;
210
+ updatedAt: Date;
211
+ registryTokenHash: string | null;
212
+ budgetExhaustedAt: Date | null;
213
+ upstreamFailure: string | null;
214
+ _count: CodingProxySessionCountAggregateOutputType | null;
215
+ _avg: CodingProxySessionAvgAggregateOutputType | null;
216
+ _sum: CodingProxySessionSumAggregateOutputType | null;
217
+ _min: CodingProxySessionMinAggregateOutputType | null;
218
+ _max: CodingProxySessionMaxAggregateOutputType | null;
219
+ };
220
+ export type GetCodingProxySessionGroupByPayload<T extends CodingProxySessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CodingProxySessionGroupByOutputType, T['by']> & {
221
+ [P in ((keyof T) & (keyof CodingProxySessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CodingProxySessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CodingProxySessionGroupByOutputType[P]>;
222
+ }>>;
223
+ export type CodingProxySessionWhereInput = {
224
+ AND?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
225
+ OR?: Prisma.CodingProxySessionWhereInput[];
226
+ NOT?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
227
+ id?: Prisma.StringFilter<"CodingProxySession"> | string;
228
+ runId?: Prisma.StringFilter<"CodingProxySession"> | string;
229
+ capabilityHash?: Prisma.StringFilter<"CodingProxySession"> | string;
230
+ credentialRef?: Prisma.StringFilter<"CodingProxySession"> | string;
231
+ protocol?: Prisma.StringFilter<"CodingProxySession"> | string;
232
+ allowedModels?: Prisma.JsonFilter<"CodingProxySession">;
233
+ deadlineAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
234
+ budgetUsd?: Prisma.DecimalFilter<"CodingProxySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
235
+ status?: Prisma.EnumCodingProxySessionStatusFilter<"CodingProxySession"> | $Enums.CodingProxySessionStatus;
236
+ createdAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
237
+ updatedAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
238
+ registryTokenHash?: Prisma.StringNullableFilter<"CodingProxySession"> | string | null;
239
+ budgetExhaustedAt?: Prisma.DateTimeNullableFilter<"CodingProxySession"> | Date | string | null;
240
+ upstreamFailure?: Prisma.StringNullableFilter<"CodingProxySession"> | string | null;
241
+ run?: Prisma.XOR<Prisma.CodingRunScalarRelationFilter, Prisma.CodingRunWhereInput>;
242
+ requests?: Prisma.CodingProxyRequestListRelationFilter;
243
+ };
244
+ export type CodingProxySessionOrderByWithRelationInput = {
245
+ id?: Prisma.SortOrder;
246
+ runId?: Prisma.SortOrder;
247
+ capabilityHash?: Prisma.SortOrder;
248
+ credentialRef?: Prisma.SortOrder;
249
+ protocol?: Prisma.SortOrder;
250
+ allowedModels?: Prisma.SortOrder;
251
+ deadlineAt?: Prisma.SortOrder;
252
+ budgetUsd?: Prisma.SortOrder;
253
+ status?: Prisma.SortOrder;
254
+ createdAt?: Prisma.SortOrder;
255
+ updatedAt?: Prisma.SortOrder;
256
+ registryTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder;
257
+ budgetExhaustedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
258
+ upstreamFailure?: Prisma.SortOrderInput | Prisma.SortOrder;
259
+ run?: Prisma.CodingRunOrderByWithRelationInput;
260
+ requests?: Prisma.CodingProxyRequestOrderByRelationAggregateInput;
261
+ };
262
+ export type CodingProxySessionWhereUniqueInput = Prisma.AtLeast<{
263
+ id?: string;
264
+ runId?: string;
265
+ capabilityHash?: string;
266
+ registryTokenHash?: string;
267
+ AND?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
268
+ OR?: Prisma.CodingProxySessionWhereInput[];
269
+ NOT?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
270
+ credentialRef?: Prisma.StringFilter<"CodingProxySession"> | string;
271
+ protocol?: Prisma.StringFilter<"CodingProxySession"> | string;
272
+ allowedModels?: Prisma.JsonFilter<"CodingProxySession">;
273
+ deadlineAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
274
+ budgetUsd?: Prisma.DecimalFilter<"CodingProxySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
275
+ status?: Prisma.EnumCodingProxySessionStatusFilter<"CodingProxySession"> | $Enums.CodingProxySessionStatus;
276
+ createdAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
277
+ updatedAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
278
+ budgetExhaustedAt?: Prisma.DateTimeNullableFilter<"CodingProxySession"> | Date | string | null;
279
+ upstreamFailure?: Prisma.StringNullableFilter<"CodingProxySession"> | string | null;
280
+ run?: Prisma.XOR<Prisma.CodingRunScalarRelationFilter, Prisma.CodingRunWhereInput>;
281
+ requests?: Prisma.CodingProxyRequestListRelationFilter;
282
+ }, "id" | "runId" | "capabilityHash" | "registryTokenHash">;
283
+ export type CodingProxySessionOrderByWithAggregationInput = {
284
+ id?: Prisma.SortOrder;
285
+ runId?: Prisma.SortOrder;
286
+ capabilityHash?: Prisma.SortOrder;
287
+ credentialRef?: Prisma.SortOrder;
288
+ protocol?: Prisma.SortOrder;
289
+ allowedModels?: Prisma.SortOrder;
290
+ deadlineAt?: Prisma.SortOrder;
291
+ budgetUsd?: Prisma.SortOrder;
292
+ status?: Prisma.SortOrder;
293
+ createdAt?: Prisma.SortOrder;
294
+ updatedAt?: Prisma.SortOrder;
295
+ registryTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder;
296
+ budgetExhaustedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
297
+ upstreamFailure?: Prisma.SortOrderInput | Prisma.SortOrder;
298
+ _count?: Prisma.CodingProxySessionCountOrderByAggregateInput;
299
+ _avg?: Prisma.CodingProxySessionAvgOrderByAggregateInput;
300
+ _max?: Prisma.CodingProxySessionMaxOrderByAggregateInput;
301
+ _min?: Prisma.CodingProxySessionMinOrderByAggregateInput;
302
+ _sum?: Prisma.CodingProxySessionSumOrderByAggregateInput;
303
+ };
304
+ export type CodingProxySessionScalarWhereWithAggregatesInput = {
305
+ AND?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput | Prisma.CodingProxySessionScalarWhereWithAggregatesInput[];
306
+ OR?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput[];
307
+ NOT?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput | Prisma.CodingProxySessionScalarWhereWithAggregatesInput[];
308
+ id?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
309
+ runId?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
310
+ capabilityHash?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
311
+ credentialRef?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
312
+ protocol?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
313
+ allowedModels?: Prisma.JsonWithAggregatesFilter<"CodingProxySession">;
314
+ deadlineAt?: Prisma.DateTimeWithAggregatesFilter<"CodingProxySession"> | Date | string;
315
+ budgetUsd?: Prisma.DecimalWithAggregatesFilter<"CodingProxySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
316
+ status?: Prisma.EnumCodingProxySessionStatusWithAggregatesFilter<"CodingProxySession"> | $Enums.CodingProxySessionStatus;
317
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"CodingProxySession"> | Date | string;
318
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CodingProxySession"> | Date | string;
319
+ registryTokenHash?: Prisma.StringNullableWithAggregatesFilter<"CodingProxySession"> | string | null;
320
+ budgetExhaustedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"CodingProxySession"> | Date | string | null;
321
+ upstreamFailure?: Prisma.StringNullableWithAggregatesFilter<"CodingProxySession"> | string | null;
322
+ };
323
+ export type CodingProxySessionCreateInput = {
324
+ id?: string;
325
+ capabilityHash: string;
326
+ credentialRef: string;
327
+ protocol?: string;
328
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
329
+ deadlineAt: Date | string;
330
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
331
+ status?: $Enums.CodingProxySessionStatus;
332
+ createdAt?: Date | string;
333
+ updatedAt?: Date | string;
334
+ registryTokenHash?: string | null;
335
+ budgetExhaustedAt?: Date | string | null;
336
+ upstreamFailure?: string | null;
337
+ run: Prisma.CodingRunCreateNestedOneWithoutProxySessionInput;
338
+ requests?: Prisma.CodingProxyRequestCreateNestedManyWithoutSessionInput;
339
+ };
340
+ export type CodingProxySessionUncheckedCreateInput = {
341
+ id?: string;
342
+ runId: string;
343
+ capabilityHash: string;
344
+ credentialRef: string;
345
+ protocol?: string;
346
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
347
+ deadlineAt: Date | string;
348
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
349
+ status?: $Enums.CodingProxySessionStatus;
350
+ createdAt?: Date | string;
351
+ updatedAt?: Date | string;
352
+ registryTokenHash?: string | null;
353
+ budgetExhaustedAt?: Date | string | null;
354
+ upstreamFailure?: string | null;
355
+ requests?: Prisma.CodingProxyRequestUncheckedCreateNestedManyWithoutSessionInput;
356
+ };
357
+ export type CodingProxySessionUpdateInput = {
358
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
359
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
360
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
361
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
362
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
363
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
364
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
365
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
366
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
367
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
368
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
369
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
370
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
371
+ run?: Prisma.CodingRunUpdateOneRequiredWithoutProxySessionNestedInput;
372
+ requests?: Prisma.CodingProxyRequestUpdateManyWithoutSessionNestedInput;
373
+ };
374
+ export type CodingProxySessionUncheckedUpdateInput = {
375
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
376
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
377
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
378
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
379
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
380
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
381
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
382
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
383
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
384
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
385
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
386
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
387
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
388
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
389
+ requests?: Prisma.CodingProxyRequestUncheckedUpdateManyWithoutSessionNestedInput;
390
+ };
391
+ export type CodingProxySessionCreateManyInput = {
392
+ id?: string;
393
+ runId: string;
394
+ capabilityHash: string;
395
+ credentialRef: string;
396
+ protocol?: string;
397
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
398
+ deadlineAt: Date | string;
399
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
400
+ status?: $Enums.CodingProxySessionStatus;
401
+ createdAt?: Date | string;
402
+ updatedAt?: Date | string;
403
+ registryTokenHash?: string | null;
404
+ budgetExhaustedAt?: Date | string | null;
405
+ upstreamFailure?: string | null;
406
+ };
407
+ export type CodingProxySessionUpdateManyMutationInput = {
408
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
409
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
410
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
411
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
412
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
413
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
414
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
415
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
416
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
417
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
418
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
419
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
420
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
421
+ };
422
+ export type CodingProxySessionUncheckedUpdateManyInput = {
423
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
424
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
425
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
426
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
427
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
428
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
429
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
430
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
431
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
432
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
433
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
434
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
436
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
437
+ };
438
+ export type CodingProxySessionNullableScalarRelationFilter = {
439
+ is?: Prisma.CodingProxySessionWhereInput | null;
440
+ isNot?: Prisma.CodingProxySessionWhereInput | null;
441
+ };
442
+ export type CodingProxySessionCountOrderByAggregateInput = {
443
+ id?: Prisma.SortOrder;
444
+ runId?: Prisma.SortOrder;
445
+ capabilityHash?: Prisma.SortOrder;
446
+ credentialRef?: Prisma.SortOrder;
447
+ protocol?: Prisma.SortOrder;
448
+ allowedModels?: Prisma.SortOrder;
449
+ deadlineAt?: Prisma.SortOrder;
450
+ budgetUsd?: Prisma.SortOrder;
451
+ status?: Prisma.SortOrder;
452
+ createdAt?: Prisma.SortOrder;
453
+ updatedAt?: Prisma.SortOrder;
454
+ registryTokenHash?: Prisma.SortOrder;
455
+ budgetExhaustedAt?: Prisma.SortOrder;
456
+ upstreamFailure?: Prisma.SortOrder;
457
+ };
458
+ export type CodingProxySessionAvgOrderByAggregateInput = {
459
+ budgetUsd?: Prisma.SortOrder;
460
+ };
461
+ export type CodingProxySessionMaxOrderByAggregateInput = {
462
+ id?: Prisma.SortOrder;
463
+ runId?: Prisma.SortOrder;
464
+ capabilityHash?: Prisma.SortOrder;
465
+ credentialRef?: Prisma.SortOrder;
466
+ protocol?: Prisma.SortOrder;
467
+ deadlineAt?: Prisma.SortOrder;
468
+ budgetUsd?: Prisma.SortOrder;
469
+ status?: Prisma.SortOrder;
470
+ createdAt?: Prisma.SortOrder;
471
+ updatedAt?: Prisma.SortOrder;
472
+ registryTokenHash?: Prisma.SortOrder;
473
+ budgetExhaustedAt?: Prisma.SortOrder;
474
+ upstreamFailure?: Prisma.SortOrder;
475
+ };
476
+ export type CodingProxySessionMinOrderByAggregateInput = {
477
+ id?: Prisma.SortOrder;
478
+ runId?: Prisma.SortOrder;
479
+ capabilityHash?: Prisma.SortOrder;
480
+ credentialRef?: Prisma.SortOrder;
481
+ protocol?: Prisma.SortOrder;
482
+ deadlineAt?: Prisma.SortOrder;
483
+ budgetUsd?: Prisma.SortOrder;
484
+ status?: Prisma.SortOrder;
485
+ createdAt?: Prisma.SortOrder;
486
+ updatedAt?: Prisma.SortOrder;
487
+ registryTokenHash?: Prisma.SortOrder;
488
+ budgetExhaustedAt?: Prisma.SortOrder;
489
+ upstreamFailure?: Prisma.SortOrder;
490
+ };
491
+ export type CodingProxySessionSumOrderByAggregateInput = {
492
+ budgetUsd?: Prisma.SortOrder;
493
+ };
494
+ export type CodingProxySessionScalarRelationFilter = {
495
+ is?: Prisma.CodingProxySessionWhereInput;
496
+ isNot?: Prisma.CodingProxySessionWhereInput;
497
+ };
498
+ export type CodingProxySessionCreateNestedOneWithoutRunInput = {
499
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
500
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
501
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
502
+ };
503
+ export type CodingProxySessionUncheckedCreateNestedOneWithoutRunInput = {
504
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
505
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
506
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
507
+ };
508
+ export type CodingProxySessionUpdateOneWithoutRunNestedInput = {
509
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
510
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
511
+ upsert?: Prisma.CodingProxySessionUpsertWithoutRunInput;
512
+ disconnect?: Prisma.CodingProxySessionWhereInput | boolean;
513
+ delete?: Prisma.CodingProxySessionWhereInput | boolean;
514
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
515
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingProxySessionUpdateToOneWithWhereWithoutRunInput, Prisma.CodingProxySessionUpdateWithoutRunInput>, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
516
+ };
517
+ export type CodingProxySessionUncheckedUpdateOneWithoutRunNestedInput = {
518
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
519
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
520
+ upsert?: Prisma.CodingProxySessionUpsertWithoutRunInput;
521
+ disconnect?: Prisma.CodingProxySessionWhereInput | boolean;
522
+ delete?: Prisma.CodingProxySessionWhereInput | boolean;
523
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
524
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingProxySessionUpdateToOneWithWhereWithoutRunInput, Prisma.CodingProxySessionUpdateWithoutRunInput>, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
525
+ };
526
+ export type EnumCodingProxySessionStatusFieldUpdateOperationsInput = {
527
+ set?: $Enums.CodingProxySessionStatus;
528
+ };
529
+ export type CodingProxySessionCreateNestedOneWithoutRequestsInput = {
530
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
531
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRequestsInput;
532
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
533
+ };
534
+ export type CodingProxySessionUpdateOneRequiredWithoutRequestsNestedInput = {
535
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
536
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRequestsInput;
537
+ upsert?: Prisma.CodingProxySessionUpsertWithoutRequestsInput;
538
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
539
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingProxySessionUpdateToOneWithWhereWithoutRequestsInput, Prisma.CodingProxySessionUpdateWithoutRequestsInput>, Prisma.CodingProxySessionUncheckedUpdateWithoutRequestsInput>;
540
+ };
541
+ export type CodingProxySessionCreateWithoutRunInput = {
542
+ id?: string;
543
+ capabilityHash: string;
544
+ credentialRef: string;
545
+ protocol?: string;
546
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
547
+ deadlineAt: Date | string;
548
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
549
+ status?: $Enums.CodingProxySessionStatus;
550
+ createdAt?: Date | string;
551
+ updatedAt?: Date | string;
552
+ registryTokenHash?: string | null;
553
+ budgetExhaustedAt?: Date | string | null;
554
+ upstreamFailure?: string | null;
555
+ requests?: Prisma.CodingProxyRequestCreateNestedManyWithoutSessionInput;
556
+ };
557
+ export type CodingProxySessionUncheckedCreateWithoutRunInput = {
558
+ id?: string;
559
+ capabilityHash: string;
560
+ credentialRef: string;
561
+ protocol?: string;
562
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
563
+ deadlineAt: Date | string;
564
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
565
+ status?: $Enums.CodingProxySessionStatus;
566
+ createdAt?: Date | string;
567
+ updatedAt?: Date | string;
568
+ registryTokenHash?: string | null;
569
+ budgetExhaustedAt?: Date | string | null;
570
+ upstreamFailure?: string | null;
571
+ requests?: Prisma.CodingProxyRequestUncheckedCreateNestedManyWithoutSessionInput;
572
+ };
573
+ export type CodingProxySessionCreateOrConnectWithoutRunInput = {
574
+ where: Prisma.CodingProxySessionWhereUniqueInput;
575
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
576
+ };
577
+ export type CodingProxySessionUpsertWithoutRunInput = {
578
+ update: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRunInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
579
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
580
+ where?: Prisma.CodingProxySessionWhereInput;
581
+ };
582
+ export type CodingProxySessionUpdateToOneWithWhereWithoutRunInput = {
583
+ where?: Prisma.CodingProxySessionWhereInput;
584
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRunInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
585
+ };
586
+ export type CodingProxySessionUpdateWithoutRunInput = {
587
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
588
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
589
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
590
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
591
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
592
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
593
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
594
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
595
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
596
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
597
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
598
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
599
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
600
+ requests?: Prisma.CodingProxyRequestUpdateManyWithoutSessionNestedInput;
601
+ };
602
+ export type CodingProxySessionUncheckedUpdateWithoutRunInput = {
603
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
604
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
605
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
606
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
607
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
608
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
609
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
610
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
611
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
612
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
613
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
614
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
615
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
616
+ requests?: Prisma.CodingProxyRequestUncheckedUpdateManyWithoutSessionNestedInput;
617
+ };
618
+ export type CodingProxySessionCreateWithoutRequestsInput = {
619
+ id?: string;
620
+ capabilityHash: string;
621
+ credentialRef: string;
622
+ protocol?: string;
623
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
624
+ deadlineAt: Date | string;
625
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
626
+ status?: $Enums.CodingProxySessionStatus;
627
+ createdAt?: Date | string;
628
+ updatedAt?: Date | string;
629
+ registryTokenHash?: string | null;
630
+ budgetExhaustedAt?: Date | string | null;
631
+ upstreamFailure?: string | null;
632
+ run: Prisma.CodingRunCreateNestedOneWithoutProxySessionInput;
633
+ };
634
+ export type CodingProxySessionUncheckedCreateWithoutRequestsInput = {
635
+ id?: string;
636
+ runId: string;
637
+ capabilityHash: string;
638
+ credentialRef: string;
639
+ protocol?: string;
640
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
641
+ deadlineAt: Date | string;
642
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
643
+ status?: $Enums.CodingProxySessionStatus;
644
+ createdAt?: Date | string;
645
+ updatedAt?: Date | string;
646
+ registryTokenHash?: string | null;
647
+ budgetExhaustedAt?: Date | string | null;
648
+ upstreamFailure?: string | null;
649
+ };
650
+ export type CodingProxySessionCreateOrConnectWithoutRequestsInput = {
651
+ where: Prisma.CodingProxySessionWhereUniqueInput;
652
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
653
+ };
654
+ export type CodingProxySessionUpsertWithoutRequestsInput = {
655
+ update: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRequestsInput>;
656
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
657
+ where?: Prisma.CodingProxySessionWhereInput;
658
+ };
659
+ export type CodingProxySessionUpdateToOneWithWhereWithoutRequestsInput = {
660
+ where?: Prisma.CodingProxySessionWhereInput;
661
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRequestsInput>;
662
+ };
663
+ export type CodingProxySessionUpdateWithoutRequestsInput = {
664
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
665
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
666
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
667
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
668
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
669
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
670
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
671
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
672
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
673
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
674
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
675
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
676
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
677
+ run?: Prisma.CodingRunUpdateOneRequiredWithoutProxySessionNestedInput;
678
+ };
679
+ export type CodingProxySessionUncheckedUpdateWithoutRequestsInput = {
680
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
681
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
682
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
683
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
684
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
685
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
686
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
687
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
688
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
689
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
690
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
691
+ registryTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
692
+ budgetExhaustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
693
+ upstreamFailure?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
694
+ };
695
+ /**
696
+ * Count Type CodingProxySessionCountOutputType
697
+ */
698
+ export type CodingProxySessionCountOutputType = {
699
+ requests: number;
700
+ };
701
+ export type CodingProxySessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
702
+ requests?: boolean | CodingProxySessionCountOutputTypeCountRequestsArgs;
703
+ };
704
+ /**
705
+ * CodingProxySessionCountOutputType without action
706
+ */
707
+ export type CodingProxySessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
708
+ /**
709
+ * Select specific fields to fetch from the CodingProxySessionCountOutputType
710
+ */
711
+ select?: Prisma.CodingProxySessionCountOutputTypeSelect<ExtArgs> | null;
712
+ };
713
+ /**
714
+ * CodingProxySessionCountOutputType without action
715
+ */
716
+ export type CodingProxySessionCountOutputTypeCountRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
717
+ where?: Prisma.CodingProxyRequestWhereInput;
718
+ };
719
+ export type CodingProxySessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
720
+ id?: boolean;
721
+ runId?: boolean;
722
+ capabilityHash?: boolean;
723
+ credentialRef?: boolean;
724
+ protocol?: boolean;
725
+ allowedModels?: boolean;
726
+ deadlineAt?: boolean;
727
+ budgetUsd?: boolean;
728
+ status?: boolean;
729
+ createdAt?: boolean;
730
+ updatedAt?: boolean;
731
+ registryTokenHash?: boolean;
732
+ budgetExhaustedAt?: boolean;
733
+ upstreamFailure?: boolean;
734
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
735
+ requests?: boolean | Prisma.CodingProxySession$requestsArgs<ExtArgs>;
736
+ _count?: boolean | Prisma.CodingProxySessionCountOutputTypeDefaultArgs<ExtArgs>;
737
+ }, ExtArgs["result"]["codingProxySession"]>;
738
+ export type CodingProxySessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
739
+ id?: boolean;
740
+ runId?: boolean;
741
+ capabilityHash?: boolean;
742
+ credentialRef?: boolean;
743
+ protocol?: boolean;
744
+ allowedModels?: boolean;
745
+ deadlineAt?: boolean;
746
+ budgetUsd?: boolean;
747
+ status?: boolean;
748
+ createdAt?: boolean;
749
+ updatedAt?: boolean;
750
+ registryTokenHash?: boolean;
751
+ budgetExhaustedAt?: boolean;
752
+ upstreamFailure?: boolean;
753
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
754
+ }, ExtArgs["result"]["codingProxySession"]>;
755
+ export type CodingProxySessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
756
+ id?: boolean;
757
+ runId?: boolean;
758
+ capabilityHash?: boolean;
759
+ credentialRef?: boolean;
760
+ protocol?: boolean;
761
+ allowedModels?: boolean;
762
+ deadlineAt?: boolean;
763
+ budgetUsd?: boolean;
764
+ status?: boolean;
765
+ createdAt?: boolean;
766
+ updatedAt?: boolean;
767
+ registryTokenHash?: boolean;
768
+ budgetExhaustedAt?: boolean;
769
+ upstreamFailure?: boolean;
770
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
771
+ }, ExtArgs["result"]["codingProxySession"]>;
772
+ export type CodingProxySessionSelectScalar = {
773
+ id?: boolean;
774
+ runId?: boolean;
775
+ capabilityHash?: boolean;
776
+ credentialRef?: boolean;
777
+ protocol?: boolean;
778
+ allowedModels?: boolean;
779
+ deadlineAt?: boolean;
780
+ budgetUsd?: boolean;
781
+ status?: boolean;
782
+ createdAt?: boolean;
783
+ updatedAt?: boolean;
784
+ registryTokenHash?: boolean;
785
+ budgetExhaustedAt?: boolean;
786
+ upstreamFailure?: boolean;
787
+ };
788
+ export type CodingProxySessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "runId" | "capabilityHash" | "credentialRef" | "protocol" | "allowedModels" | "deadlineAt" | "budgetUsd" | "status" | "createdAt" | "updatedAt" | "registryTokenHash" | "budgetExhaustedAt" | "upstreamFailure", ExtArgs["result"]["codingProxySession"]>;
789
+ export type CodingProxySessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
790
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
791
+ requests?: boolean | Prisma.CodingProxySession$requestsArgs<ExtArgs>;
792
+ _count?: boolean | Prisma.CodingProxySessionCountOutputTypeDefaultArgs<ExtArgs>;
793
+ };
794
+ export type CodingProxySessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
795
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
796
+ };
797
+ export type CodingProxySessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
798
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
799
+ };
800
+ export type $CodingProxySessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
801
+ name: "CodingProxySession";
802
+ objects: {
803
+ run: Prisma.$CodingRunPayload<ExtArgs>;
804
+ requests: Prisma.$CodingProxyRequestPayload<ExtArgs>[];
805
+ };
806
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
807
+ id: string;
808
+ runId: string;
809
+ capabilityHash: string;
810
+ credentialRef: string;
811
+ protocol: string;
812
+ allowedModels: runtime.JsonValue;
813
+ deadlineAt: Date;
814
+ budgetUsd: runtime.Decimal;
815
+ status: $Enums.CodingProxySessionStatus;
816
+ createdAt: Date;
817
+ updatedAt: Date;
818
+ /**
819
+ * Hash of the derived registry-only token (see deriveRegistryToken); the
820
+ * token itself is never persisted.
821
+ */
822
+ registryTokenHash: string | null;
823
+ /**
824
+ * Set the first time the proxy refuses a request of this session for
825
+ * budget; lets the executor report the run as out of budget.
826
+ */
827
+ budgetExhaustedAt: Date | null;
828
+ /**
829
+ * The upstream error code (a fixed identifier, never a message) of the
830
+ * first provider failure the proxy relayed for this session; lets the
831
+ * executor say the model provider refused the run.
832
+ */
833
+ upstreamFailure: string | null;
834
+ }, ExtArgs["result"]["codingProxySession"]>;
835
+ composites: {};
836
+ };
837
+ export type CodingProxySessionGetPayload<S extends boolean | null | undefined | CodingProxySessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload, S>;
838
+ export type CodingProxySessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CodingProxySessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
839
+ select?: CodingProxySessionCountAggregateInputType | true;
840
+ };
841
+ export interface CodingProxySessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
842
+ [K: symbol]: {
843
+ types: Prisma.TypeMap<ExtArgs>['model']['CodingProxySession'];
844
+ meta: {
845
+ name: 'CodingProxySession';
846
+ };
847
+ };
848
+ /**
849
+ * Find zero or one CodingProxySession that matches the filter.
850
+ * @param {CodingProxySessionFindUniqueArgs} args - Arguments to find a CodingProxySession
851
+ * @example
852
+ * // Get one CodingProxySession
853
+ * const codingProxySession = await prisma.codingProxySession.findUnique({
854
+ * where: {
855
+ * // ... provide filter here
856
+ * }
857
+ * })
858
+ */
859
+ findUnique<T extends CodingProxySessionFindUniqueArgs>(args: Prisma.SelectSubset<T, CodingProxySessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
860
+ /**
861
+ * Find one CodingProxySession that matches the filter or throw an error with `error.code='P2025'`
862
+ * if no matches were found.
863
+ * @param {CodingProxySessionFindUniqueOrThrowArgs} args - Arguments to find a CodingProxySession
864
+ * @example
865
+ * // Get one CodingProxySession
866
+ * const codingProxySession = await prisma.codingProxySession.findUniqueOrThrow({
867
+ * where: {
868
+ * // ... provide filter here
869
+ * }
870
+ * })
871
+ */
872
+ findUniqueOrThrow<T extends CodingProxySessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CodingProxySessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
873
+ /**
874
+ * Find the first CodingProxySession that matches the filter.
875
+ * Note, that providing `undefined` is treated as the value not being there.
876
+ * Read more here: https://pris.ly/d/null-undefined
877
+ * @param {CodingProxySessionFindFirstArgs} args - Arguments to find a CodingProxySession
878
+ * @example
879
+ * // Get one CodingProxySession
880
+ * const codingProxySession = await prisma.codingProxySession.findFirst({
881
+ * where: {
882
+ * // ... provide filter here
883
+ * }
884
+ * })
885
+ */
886
+ findFirst<T extends CodingProxySessionFindFirstArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
887
+ /**
888
+ * Find the first CodingProxySession that matches the filter or
889
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
890
+ * Note, that providing `undefined` is treated as the value not being there.
891
+ * Read more here: https://pris.ly/d/null-undefined
892
+ * @param {CodingProxySessionFindFirstOrThrowArgs} args - Arguments to find a CodingProxySession
893
+ * @example
894
+ * // Get one CodingProxySession
895
+ * const codingProxySession = await prisma.codingProxySession.findFirstOrThrow({
896
+ * where: {
897
+ * // ... provide filter here
898
+ * }
899
+ * })
900
+ */
901
+ findFirstOrThrow<T extends CodingProxySessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
902
+ /**
903
+ * Find zero or more CodingProxySessions that matches the filter.
904
+ * Note, that providing `undefined` is treated as the value not being there.
905
+ * Read more here: https://pris.ly/d/null-undefined
906
+ * @param {CodingProxySessionFindManyArgs} args - Arguments to filter and select certain fields only.
907
+ * @example
908
+ * // Get all CodingProxySessions
909
+ * const codingProxySessions = await prisma.codingProxySession.findMany()
910
+ *
911
+ * // Get first 10 CodingProxySessions
912
+ * const codingProxySessions = await prisma.codingProxySession.findMany({ take: 10 })
913
+ *
914
+ * // Only select the `id`
915
+ * const codingProxySessionWithIdOnly = await prisma.codingProxySession.findMany({ select: { id: true } })
916
+ *
917
+ */
918
+ findMany<T extends CodingProxySessionFindManyArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
919
+ /**
920
+ * Create a CodingProxySession.
921
+ * @param {CodingProxySessionCreateArgs} args - Arguments to create a CodingProxySession.
922
+ * @example
923
+ * // Create one CodingProxySession
924
+ * const CodingProxySession = await prisma.codingProxySession.create({
925
+ * data: {
926
+ * // ... data to create a CodingProxySession
927
+ * }
928
+ * })
929
+ *
930
+ */
931
+ create<T extends CodingProxySessionCreateArgs>(args: Prisma.SelectSubset<T, CodingProxySessionCreateArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
932
+ /**
933
+ * Create many CodingProxySessions.
934
+ * @param {CodingProxySessionCreateManyArgs} args - Arguments to create many CodingProxySessions.
935
+ * @example
936
+ * // Create many CodingProxySessions
937
+ * const codingProxySession = await prisma.codingProxySession.createMany({
938
+ * data: [
939
+ * // ... provide data here
940
+ * ]
941
+ * })
942
+ *
943
+ */
944
+ createMany<T extends CodingProxySessionCreateManyArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
945
+ /**
946
+ * Create many CodingProxySessions and returns the data saved in the database.
947
+ * @param {CodingProxySessionCreateManyAndReturnArgs} args - Arguments to create many CodingProxySessions.
948
+ * @example
949
+ * // Create many CodingProxySessions
950
+ * const codingProxySession = await prisma.codingProxySession.createManyAndReturn({
951
+ * data: [
952
+ * // ... provide data here
953
+ * ]
954
+ * })
955
+ *
956
+ * // Create many CodingProxySessions and only return the `id`
957
+ * const codingProxySessionWithIdOnly = await prisma.codingProxySession.createManyAndReturn({
958
+ * select: { id: true },
959
+ * data: [
960
+ * // ... provide data here
961
+ * ]
962
+ * })
963
+ * Note, that providing `undefined` is treated as the value not being there.
964
+ * Read more here: https://pris.ly/d/null-undefined
965
+ *
966
+ */
967
+ createManyAndReturn<T extends CodingProxySessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
968
+ /**
969
+ * Delete a CodingProxySession.
970
+ * @param {CodingProxySessionDeleteArgs} args - Arguments to delete one CodingProxySession.
971
+ * @example
972
+ * // Delete one CodingProxySession
973
+ * const CodingProxySession = await prisma.codingProxySession.delete({
974
+ * where: {
975
+ * // ... filter to delete one CodingProxySession
976
+ * }
977
+ * })
978
+ *
979
+ */
980
+ delete<T extends CodingProxySessionDeleteArgs>(args: Prisma.SelectSubset<T, CodingProxySessionDeleteArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
981
+ /**
982
+ * Update one CodingProxySession.
983
+ * @param {CodingProxySessionUpdateArgs} args - Arguments to update one CodingProxySession.
984
+ * @example
985
+ * // Update one CodingProxySession
986
+ * const codingProxySession = await prisma.codingProxySession.update({
987
+ * where: {
988
+ * // ... provide filter here
989
+ * },
990
+ * data: {
991
+ * // ... provide data here
992
+ * }
993
+ * })
994
+ *
995
+ */
996
+ update<T extends CodingProxySessionUpdateArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpdateArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
997
+ /**
998
+ * Delete zero or more CodingProxySessions.
999
+ * @param {CodingProxySessionDeleteManyArgs} args - Arguments to filter CodingProxySessions to delete.
1000
+ * @example
1001
+ * // Delete a few CodingProxySessions
1002
+ * const { count } = await prisma.codingProxySession.deleteMany({
1003
+ * where: {
1004
+ * // ... provide filter here
1005
+ * }
1006
+ * })
1007
+ *
1008
+ */
1009
+ deleteMany<T extends CodingProxySessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1010
+ /**
1011
+ * Update zero or more CodingProxySessions.
1012
+ * Note, that providing `undefined` is treated as the value not being there.
1013
+ * Read more here: https://pris.ly/d/null-undefined
1014
+ * @param {CodingProxySessionUpdateManyArgs} args - Arguments to update one or more rows.
1015
+ * @example
1016
+ * // Update many CodingProxySessions
1017
+ * const codingProxySession = await prisma.codingProxySession.updateMany({
1018
+ * where: {
1019
+ * // ... provide filter here
1020
+ * },
1021
+ * data: {
1022
+ * // ... provide data here
1023
+ * }
1024
+ * })
1025
+ *
1026
+ */
1027
+ updateMany<T extends CodingProxySessionUpdateManyArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1028
+ /**
1029
+ * Update zero or more CodingProxySessions and returns the data updated in the database.
1030
+ * @param {CodingProxySessionUpdateManyAndReturnArgs} args - Arguments to update many CodingProxySessions.
1031
+ * @example
1032
+ * // Update many CodingProxySessions
1033
+ * const codingProxySession = await prisma.codingProxySession.updateManyAndReturn({
1034
+ * where: {
1035
+ * // ... provide filter here
1036
+ * },
1037
+ * data: [
1038
+ * // ... provide data here
1039
+ * ]
1040
+ * })
1041
+ *
1042
+ * // Update zero or more CodingProxySessions and only return the `id`
1043
+ * const codingProxySessionWithIdOnly = await prisma.codingProxySession.updateManyAndReturn({
1044
+ * select: { id: true },
1045
+ * where: {
1046
+ * // ... provide filter here
1047
+ * },
1048
+ * data: [
1049
+ * // ... provide data here
1050
+ * ]
1051
+ * })
1052
+ * Note, that providing `undefined` is treated as the value not being there.
1053
+ * Read more here: https://pris.ly/d/null-undefined
1054
+ *
1055
+ */
1056
+ updateManyAndReturn<T extends CodingProxySessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1057
+ /**
1058
+ * Create or update one CodingProxySession.
1059
+ * @param {CodingProxySessionUpsertArgs} args - Arguments to update or create a CodingProxySession.
1060
+ * @example
1061
+ * // Update or create a CodingProxySession
1062
+ * const codingProxySession = await prisma.codingProxySession.upsert({
1063
+ * create: {
1064
+ * // ... data to create a CodingProxySession
1065
+ * },
1066
+ * update: {
1067
+ * // ... in case it already exists, update
1068
+ * },
1069
+ * where: {
1070
+ * // ... the filter for the CodingProxySession we want to update
1071
+ * }
1072
+ * })
1073
+ */
1074
+ upsert<T extends CodingProxySessionUpsertArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpsertArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1075
+ /**
1076
+ * Count the number of CodingProxySessions.
1077
+ * Note, that providing `undefined` is treated as the value not being there.
1078
+ * Read more here: https://pris.ly/d/null-undefined
1079
+ * @param {CodingProxySessionCountArgs} args - Arguments to filter CodingProxySessions to count.
1080
+ * @example
1081
+ * // Count the number of CodingProxySessions
1082
+ * const count = await prisma.codingProxySession.count({
1083
+ * where: {
1084
+ * // ... the filter for the CodingProxySessions we want to count
1085
+ * }
1086
+ * })
1087
+ **/
1088
+ count<T extends CodingProxySessionCountArgs>(args?: Prisma.Subset<T, CodingProxySessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CodingProxySessionCountAggregateOutputType> : number>;
1089
+ /**
1090
+ * Allows you to perform aggregations operations on a CodingProxySession.
1091
+ * Note, that providing `undefined` is treated as the value not being there.
1092
+ * Read more here: https://pris.ly/d/null-undefined
1093
+ * @param {CodingProxySessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1094
+ * @example
1095
+ * // Ordered by age ascending
1096
+ * // Where email contains prisma.io
1097
+ * // Limited to the 10 users
1098
+ * const aggregations = await prisma.user.aggregate({
1099
+ * _avg: {
1100
+ * age: true,
1101
+ * },
1102
+ * where: {
1103
+ * email: {
1104
+ * contains: "prisma.io",
1105
+ * },
1106
+ * },
1107
+ * orderBy: {
1108
+ * age: "asc",
1109
+ * },
1110
+ * take: 10,
1111
+ * })
1112
+ **/
1113
+ aggregate<T extends CodingProxySessionAggregateArgs>(args: Prisma.Subset<T, CodingProxySessionAggregateArgs>): Prisma.PrismaPromise<GetCodingProxySessionAggregateType<T>>;
1114
+ /**
1115
+ * Group by CodingProxySession.
1116
+ * Note, that providing `undefined` is treated as the value not being there.
1117
+ * Read more here: https://pris.ly/d/null-undefined
1118
+ * @param {CodingProxySessionGroupByArgs} args - Group by arguments.
1119
+ * @example
1120
+ * // Group by city, order by createdAt, get count
1121
+ * const result = await prisma.user.groupBy({
1122
+ * by: ['city', 'createdAt'],
1123
+ * orderBy: {
1124
+ * createdAt: true
1125
+ * },
1126
+ * _count: {
1127
+ * _all: true
1128
+ * },
1129
+ * })
1130
+ *
1131
+ **/
1132
+ groupBy<T extends CodingProxySessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1133
+ orderBy: CodingProxySessionGroupByArgs['orderBy'];
1134
+ } : {
1135
+ orderBy?: CodingProxySessionGroupByArgs['orderBy'];
1136
+ }, 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 ? {
1137
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1138
+ Error,
1139
+ 'Field ',
1140
+ P,
1141
+ ` in "having" needs to be provided in "by"`
1142
+ ];
1143
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1144
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1145
+ }[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 ? {} : {
1146
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1147
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1148
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1149
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, CodingProxySessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCodingProxySessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1150
+ /**
1151
+ * Fields of the CodingProxySession model
1152
+ */
1153
+ readonly fields: CodingProxySessionFieldRefs;
1154
+ }
1155
+ /**
1156
+ * The delegate class that acts as a "Promise-like" for CodingProxySession.
1157
+ * Why is this prefixed with `Prisma__`?
1158
+ * Because we want to prevent naming conflicts as mentioned in
1159
+ * https://github.com/prisma/prisma-client-js/issues/707
1160
+ */
1161
+ export interface Prisma__CodingProxySessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1162
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1163
+ run<T extends Prisma.CodingRunDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CodingRunDefaultArgs<ExtArgs>>): Prisma.Prisma__CodingRunClient<runtime.Types.Result.GetResult<Prisma.$CodingRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1164
+ requests<T extends Prisma.CodingProxySession$requestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CodingProxySession$requestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxyRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1165
+ /**
1166
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1167
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1168
+ * @param onrejected The callback to execute when the Promise is rejected.
1169
+ * @returns A Promise for the completion of which ever callback is executed.
1170
+ */
1171
+ 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>;
1172
+ /**
1173
+ * Attaches a callback for only the rejection of the Promise.
1174
+ * @param onrejected The callback to execute when the Promise is rejected.
1175
+ * @returns A Promise for the completion of the callback.
1176
+ */
1177
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1178
+ /**
1179
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1180
+ * resolved value cannot be modified from the callback.
1181
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1182
+ * @returns A Promise for the completion of the callback.
1183
+ */
1184
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1185
+ }
1186
+ /**
1187
+ * Fields of the CodingProxySession model
1188
+ */
1189
+ export interface CodingProxySessionFieldRefs {
1190
+ readonly id: Prisma.FieldRef<"CodingProxySession", 'String'>;
1191
+ readonly runId: Prisma.FieldRef<"CodingProxySession", 'String'>;
1192
+ readonly capabilityHash: Prisma.FieldRef<"CodingProxySession", 'String'>;
1193
+ readonly credentialRef: Prisma.FieldRef<"CodingProxySession", 'String'>;
1194
+ readonly protocol: Prisma.FieldRef<"CodingProxySession", 'String'>;
1195
+ readonly allowedModels: Prisma.FieldRef<"CodingProxySession", 'Json'>;
1196
+ readonly deadlineAt: Prisma.FieldRef<"CodingProxySession", 'DateTime'>;
1197
+ readonly budgetUsd: Prisma.FieldRef<"CodingProxySession", 'Decimal'>;
1198
+ readonly status: Prisma.FieldRef<"CodingProxySession", 'CodingProxySessionStatus'>;
1199
+ readonly createdAt: Prisma.FieldRef<"CodingProxySession", 'DateTime'>;
1200
+ readonly updatedAt: Prisma.FieldRef<"CodingProxySession", 'DateTime'>;
1201
+ readonly registryTokenHash: Prisma.FieldRef<"CodingProxySession", 'String'>;
1202
+ readonly budgetExhaustedAt: Prisma.FieldRef<"CodingProxySession", 'DateTime'>;
1203
+ readonly upstreamFailure: Prisma.FieldRef<"CodingProxySession", 'String'>;
1204
+ }
1205
+ /**
1206
+ * CodingProxySession findUnique
1207
+ */
1208
+ export type CodingProxySessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1209
+ /**
1210
+ * Select specific fields to fetch from the CodingProxySession
1211
+ */
1212
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1213
+ /**
1214
+ * Omit specific fields from the CodingProxySession
1215
+ */
1216
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1217
+ /**
1218
+ * Choose, which related nodes to fetch as well
1219
+ */
1220
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1221
+ /**
1222
+ * Filter, which CodingProxySession to fetch.
1223
+ */
1224
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1225
+ };
1226
+ /**
1227
+ * CodingProxySession findUniqueOrThrow
1228
+ */
1229
+ export type CodingProxySessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1230
+ /**
1231
+ * Select specific fields to fetch from the CodingProxySession
1232
+ */
1233
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1234
+ /**
1235
+ * Omit specific fields from the CodingProxySession
1236
+ */
1237
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1238
+ /**
1239
+ * Choose, which related nodes to fetch as well
1240
+ */
1241
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1242
+ /**
1243
+ * Filter, which CodingProxySession to fetch.
1244
+ */
1245
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1246
+ };
1247
+ /**
1248
+ * CodingProxySession findFirst
1249
+ */
1250
+ export type CodingProxySessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1251
+ /**
1252
+ * Select specific fields to fetch from the CodingProxySession
1253
+ */
1254
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1255
+ /**
1256
+ * Omit specific fields from the CodingProxySession
1257
+ */
1258
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1259
+ /**
1260
+ * Choose, which related nodes to fetch as well
1261
+ */
1262
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1263
+ /**
1264
+ * Filter, which CodingProxySession to fetch.
1265
+ */
1266
+ where?: Prisma.CodingProxySessionWhereInput;
1267
+ /**
1268
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1269
+ *
1270
+ * Determine the order of CodingProxySessions to fetch.
1271
+ */
1272
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
1273
+ /**
1274
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1275
+ *
1276
+ * Sets the position for searching for CodingProxySessions.
1277
+ */
1278
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
1279
+ /**
1280
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1281
+ *
1282
+ * Take `±n` CodingProxySessions from the position of the cursor.
1283
+ */
1284
+ take?: number;
1285
+ /**
1286
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1287
+ *
1288
+ * Skip the first `n` CodingProxySessions.
1289
+ */
1290
+ skip?: number;
1291
+ /**
1292
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1293
+ *
1294
+ * Filter by unique combinations of CodingProxySessions.
1295
+ */
1296
+ distinct?: Prisma.CodingProxySessionScalarFieldEnum | Prisma.CodingProxySessionScalarFieldEnum[];
1297
+ };
1298
+ /**
1299
+ * CodingProxySession findFirstOrThrow
1300
+ */
1301
+ export type CodingProxySessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1302
+ /**
1303
+ * Select specific fields to fetch from the CodingProxySession
1304
+ */
1305
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1306
+ /**
1307
+ * Omit specific fields from the CodingProxySession
1308
+ */
1309
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1310
+ /**
1311
+ * Choose, which related nodes to fetch as well
1312
+ */
1313
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1314
+ /**
1315
+ * Filter, which CodingProxySession to fetch.
1316
+ */
1317
+ where?: Prisma.CodingProxySessionWhereInput;
1318
+ /**
1319
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1320
+ *
1321
+ * Determine the order of CodingProxySessions to fetch.
1322
+ */
1323
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
1324
+ /**
1325
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1326
+ *
1327
+ * Sets the position for searching for CodingProxySessions.
1328
+ */
1329
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
1330
+ /**
1331
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1332
+ *
1333
+ * Take `±n` CodingProxySessions from the position of the cursor.
1334
+ */
1335
+ take?: number;
1336
+ /**
1337
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1338
+ *
1339
+ * Skip the first `n` CodingProxySessions.
1340
+ */
1341
+ skip?: number;
1342
+ /**
1343
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1344
+ *
1345
+ * Filter by unique combinations of CodingProxySessions.
1346
+ */
1347
+ distinct?: Prisma.CodingProxySessionScalarFieldEnum | Prisma.CodingProxySessionScalarFieldEnum[];
1348
+ };
1349
+ /**
1350
+ * CodingProxySession findMany
1351
+ */
1352
+ export type CodingProxySessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1353
+ /**
1354
+ * Select specific fields to fetch from the CodingProxySession
1355
+ */
1356
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1357
+ /**
1358
+ * Omit specific fields from the CodingProxySession
1359
+ */
1360
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1361
+ /**
1362
+ * Choose, which related nodes to fetch as well
1363
+ */
1364
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1365
+ /**
1366
+ * Filter, which CodingProxySessions to fetch.
1367
+ */
1368
+ where?: Prisma.CodingProxySessionWhereInput;
1369
+ /**
1370
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1371
+ *
1372
+ * Determine the order of CodingProxySessions to fetch.
1373
+ */
1374
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
1375
+ /**
1376
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1377
+ *
1378
+ * Sets the position for listing CodingProxySessions.
1379
+ */
1380
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
1381
+ /**
1382
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1383
+ *
1384
+ * Take `±n` CodingProxySessions from the position of the cursor.
1385
+ */
1386
+ take?: number;
1387
+ /**
1388
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1389
+ *
1390
+ * Skip the first `n` CodingProxySessions.
1391
+ */
1392
+ skip?: number;
1393
+ /**
1394
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1395
+ *
1396
+ * Filter by unique combinations of CodingProxySessions.
1397
+ */
1398
+ distinct?: Prisma.CodingProxySessionScalarFieldEnum | Prisma.CodingProxySessionScalarFieldEnum[];
1399
+ };
1400
+ /**
1401
+ * CodingProxySession create
1402
+ */
1403
+ export type CodingProxySessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
+ /**
1405
+ * Select specific fields to fetch from the CodingProxySession
1406
+ */
1407
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1408
+ /**
1409
+ * Omit specific fields from the CodingProxySession
1410
+ */
1411
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1412
+ /**
1413
+ * Choose, which related nodes to fetch as well
1414
+ */
1415
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1416
+ /**
1417
+ * The data needed to create a CodingProxySession.
1418
+ */
1419
+ data: Prisma.XOR<Prisma.CodingProxySessionCreateInput, Prisma.CodingProxySessionUncheckedCreateInput>;
1420
+ };
1421
+ /**
1422
+ * CodingProxySession createMany
1423
+ */
1424
+ export type CodingProxySessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1425
+ /**
1426
+ * The data used to create many CodingProxySessions.
1427
+ */
1428
+ data: Prisma.CodingProxySessionCreateManyInput | Prisma.CodingProxySessionCreateManyInput[];
1429
+ skipDuplicates?: boolean;
1430
+ };
1431
+ /**
1432
+ * CodingProxySession createManyAndReturn
1433
+ */
1434
+ export type CodingProxySessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1435
+ /**
1436
+ * Select specific fields to fetch from the CodingProxySession
1437
+ */
1438
+ select?: Prisma.CodingProxySessionSelectCreateManyAndReturn<ExtArgs> | null;
1439
+ /**
1440
+ * Omit specific fields from the CodingProxySession
1441
+ */
1442
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1443
+ /**
1444
+ * The data used to create many CodingProxySessions.
1445
+ */
1446
+ data: Prisma.CodingProxySessionCreateManyInput | Prisma.CodingProxySessionCreateManyInput[];
1447
+ skipDuplicates?: boolean;
1448
+ /**
1449
+ * Choose, which related nodes to fetch as well
1450
+ */
1451
+ include?: Prisma.CodingProxySessionIncludeCreateManyAndReturn<ExtArgs> | null;
1452
+ };
1453
+ /**
1454
+ * CodingProxySession update
1455
+ */
1456
+ export type CodingProxySessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1457
+ /**
1458
+ * Select specific fields to fetch from the CodingProxySession
1459
+ */
1460
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1461
+ /**
1462
+ * Omit specific fields from the CodingProxySession
1463
+ */
1464
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1465
+ /**
1466
+ * Choose, which related nodes to fetch as well
1467
+ */
1468
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1469
+ /**
1470
+ * The data needed to update a CodingProxySession.
1471
+ */
1472
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateInput, Prisma.CodingProxySessionUncheckedUpdateInput>;
1473
+ /**
1474
+ * Choose, which CodingProxySession to update.
1475
+ */
1476
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1477
+ };
1478
+ /**
1479
+ * CodingProxySession updateMany
1480
+ */
1481
+ export type CodingProxySessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ /**
1483
+ * The data used to update CodingProxySessions.
1484
+ */
1485
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateManyMutationInput, Prisma.CodingProxySessionUncheckedUpdateManyInput>;
1486
+ /**
1487
+ * Filter which CodingProxySessions to update
1488
+ */
1489
+ where?: Prisma.CodingProxySessionWhereInput;
1490
+ /**
1491
+ * Limit how many CodingProxySessions to update.
1492
+ */
1493
+ limit?: number;
1494
+ };
1495
+ /**
1496
+ * CodingProxySession updateManyAndReturn
1497
+ */
1498
+ export type CodingProxySessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1499
+ /**
1500
+ * Select specific fields to fetch from the CodingProxySession
1501
+ */
1502
+ select?: Prisma.CodingProxySessionSelectUpdateManyAndReturn<ExtArgs> | null;
1503
+ /**
1504
+ * Omit specific fields from the CodingProxySession
1505
+ */
1506
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1507
+ /**
1508
+ * The data used to update CodingProxySessions.
1509
+ */
1510
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateManyMutationInput, Prisma.CodingProxySessionUncheckedUpdateManyInput>;
1511
+ /**
1512
+ * Filter which CodingProxySessions to update
1513
+ */
1514
+ where?: Prisma.CodingProxySessionWhereInput;
1515
+ /**
1516
+ * Limit how many CodingProxySessions to update.
1517
+ */
1518
+ limit?: number;
1519
+ /**
1520
+ * Choose, which related nodes to fetch as well
1521
+ */
1522
+ include?: Prisma.CodingProxySessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1523
+ };
1524
+ /**
1525
+ * CodingProxySession upsert
1526
+ */
1527
+ export type CodingProxySessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1528
+ /**
1529
+ * Select specific fields to fetch from the CodingProxySession
1530
+ */
1531
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1532
+ /**
1533
+ * Omit specific fields from the CodingProxySession
1534
+ */
1535
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1536
+ /**
1537
+ * Choose, which related nodes to fetch as well
1538
+ */
1539
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1540
+ /**
1541
+ * The filter to search for the CodingProxySession to update in case it exists.
1542
+ */
1543
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1544
+ /**
1545
+ * In case the CodingProxySession found by the `where` argument doesn't exist, create a new CodingProxySession with this data.
1546
+ */
1547
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateInput, Prisma.CodingProxySessionUncheckedCreateInput>;
1548
+ /**
1549
+ * In case the CodingProxySession was found with the provided `where` argument, update it with this data.
1550
+ */
1551
+ update: Prisma.XOR<Prisma.CodingProxySessionUpdateInput, Prisma.CodingProxySessionUncheckedUpdateInput>;
1552
+ };
1553
+ /**
1554
+ * CodingProxySession delete
1555
+ */
1556
+ export type CodingProxySessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1557
+ /**
1558
+ * Select specific fields to fetch from the CodingProxySession
1559
+ */
1560
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1561
+ /**
1562
+ * Omit specific fields from the CodingProxySession
1563
+ */
1564
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1565
+ /**
1566
+ * Choose, which related nodes to fetch as well
1567
+ */
1568
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1569
+ /**
1570
+ * Filter which CodingProxySession to delete.
1571
+ */
1572
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1573
+ };
1574
+ /**
1575
+ * CodingProxySession deleteMany
1576
+ */
1577
+ export type CodingProxySessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1578
+ /**
1579
+ * Filter which CodingProxySessions to delete
1580
+ */
1581
+ where?: Prisma.CodingProxySessionWhereInput;
1582
+ /**
1583
+ * Limit how many CodingProxySessions to delete.
1584
+ */
1585
+ limit?: number;
1586
+ };
1587
+ /**
1588
+ * CodingProxySession.requests
1589
+ */
1590
+ export type CodingProxySession$requestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1591
+ /**
1592
+ * Select specific fields to fetch from the CodingProxyRequest
1593
+ */
1594
+ select?: Prisma.CodingProxyRequestSelect<ExtArgs> | null;
1595
+ /**
1596
+ * Omit specific fields from the CodingProxyRequest
1597
+ */
1598
+ omit?: Prisma.CodingProxyRequestOmit<ExtArgs> | null;
1599
+ /**
1600
+ * Choose, which related nodes to fetch as well
1601
+ */
1602
+ include?: Prisma.CodingProxyRequestInclude<ExtArgs> | null;
1603
+ where?: Prisma.CodingProxyRequestWhereInput;
1604
+ orderBy?: Prisma.CodingProxyRequestOrderByWithRelationInput | Prisma.CodingProxyRequestOrderByWithRelationInput[];
1605
+ cursor?: Prisma.CodingProxyRequestWhereUniqueInput;
1606
+ take?: number;
1607
+ skip?: number;
1608
+ distinct?: Prisma.CodingProxyRequestScalarFieldEnum | Prisma.CodingProxyRequestScalarFieldEnum[];
1609
+ };
1610
+ /**
1611
+ * CodingProxySession without action
1612
+ */
1613
+ export type CodingProxySessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1614
+ /**
1615
+ * Select specific fields to fetch from the CodingProxySession
1616
+ */
1617
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1618
+ /**
1619
+ * Omit specific fields from the CodingProxySession
1620
+ */
1621
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1622
+ /**
1623
+ * Choose, which related nodes to fetch as well
1624
+ */
1625
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1626
+ };