@wardby/cli 0.2.1 → 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 (407) hide show
  1. package/.env.example +34 -4
  2. package/README.md +41 -4
  3. package/dist/claude-coding-worker/driver.d.ts +6 -1
  4. package/dist/claude-coding-worker/driver.js +27 -1
  5. package/dist/claude-coding-worker/main.js +2 -0
  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 +75 -4
  21. package/dist/coding/protocol.js +107 -7
  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 +6 -0
  60. package/dist/coding-worker/debug-trace.d.ts +37 -0
  61. package/dist/coding-worker/debug-trace.js +117 -0
  62. package/dist/coding-worker/driver.d.ts +13 -1
  63. package/dist/coding-worker/driver.js +102 -13
  64. package/dist/coding-worker/errors.js +8 -0
  65. package/dist/coding-worker/main.js +10 -2
  66. package/dist/coding-worker/sdk.d.ts +2 -2
  67. package/dist/coding-worker/sdk.js +7 -2
  68. package/dist/coding-worker/types.d.ts +3 -0
  69. package/dist/config/providers.d.ts +41 -0
  70. package/dist/config/providers.js +66 -0
  71. package/dist/core/budget-groups.d.ts +108 -5
  72. package/dist/core/budget-groups.js +125 -19
  73. package/dist/core/budget-wording.d.ts +22 -0
  74. package/dist/core/budget-wording.js +55 -0
  75. package/dist/core/datastores.js +18 -2
  76. package/dist/core/db.d.ts +5 -1
  77. package/dist/core/db.js +8 -2
  78. package/dist/core/dispatch.d.ts +33 -6
  79. package/dist/core/dispatch.js +260 -43
  80. package/dist/core/engine-native.js +27 -10
  81. package/dist/core/grants.d.ts +86 -0
  82. package/dist/core/grants.js +126 -0
  83. package/dist/core/host-events.d.ts +49 -0
  84. package/dist/core/host-events.js +257 -0
  85. package/dist/core/host-identity-links.d.ts +54 -0
  86. package/dist/core/host-identity-links.js +189 -0
  87. package/dist/core/host-status.d.ts +61 -0
  88. package/dist/core/host-status.js +211 -0
  89. package/dist/core/in-flight-runs.d.ts +8 -0
  90. package/dist/core/in-flight-runs.js +56 -0
  91. package/dist/core/provider-wording.d.ts +12 -0
  92. package/dist/core/provider-wording.js +44 -0
  93. package/dist/core/reconciler.d.ts +38 -2
  94. package/dist/core/reconciler.js +86 -2
  95. package/dist/core/repo-access.d.ts +99 -0
  96. package/dist/core/repo-access.js +136 -0
  97. package/dist/core/review-host-checks.d.ts +11 -0
  98. package/dist/core/review-host-checks.js +41 -0
  99. package/dist/core/review-host-tools.d.ts +47 -0
  100. package/dist/core/review-host-tools.js +347 -0
  101. package/dist/core/run-heartbeat.d.ts +27 -0
  102. package/dist/core/run-heartbeat.js +54 -0
  103. package/dist/core/runner.d.ts +30 -8
  104. package/dist/core/runner.js +237 -40
  105. package/dist/core/secrets.d.ts +11 -2
  106. package/dist/core/secrets.js +25 -6
  107. package/dist/core/subagent-memory-tools.d.ts +1 -1
  108. package/dist/core/subagent-memory-tools.js +16 -3
  109. package/dist/core/tool-admin.d.ts +81 -0
  110. package/dist/core/tool-admin.js +129 -0
  111. package/dist/core/tool-names.d.ts +42 -0
  112. package/dist/core/tool-names.js +64 -0
  113. package/dist/core/untrusted-content.d.ts +32 -0
  114. package/dist/core/untrusted-content.js +72 -0
  115. package/dist/core/webhooks.d.ts +8 -1
  116. package/dist/core/webhooks.js +23 -2
  117. package/dist/generated/prisma/browser.d.ts +100 -0
  118. package/dist/generated/prisma/client.d.ts +100 -0
  119. package/dist/generated/prisma/commonInputTypes.d.ts +30 -0
  120. package/dist/generated/prisma/enums.d.ts +6 -0
  121. package/dist/generated/prisma/enums.js +6 -1
  122. package/dist/generated/prisma/internal/class.d.ts +143 -0
  123. package/dist/generated/prisma/internal/class.js +4 -4
  124. package/dist/generated/prisma/internal/prismaNamespace.d.ts +1746 -577
  125. package/dist/generated/prisma/internal/prismaNamespace.js +179 -6
  126. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +186 -0
  127. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +179 -6
  128. package/dist/generated/prisma/models/Agent.d.ts +294 -1
  129. package/dist/generated/prisma/models/AgentRepository.d.ts +1425 -0
  130. package/dist/generated/prisma/models/AgentRepository.js +1 -0
  131. package/dist/generated/prisma/models/AgentTool.d.ts +95 -1
  132. package/dist/generated/prisma/models/AuthUser.d.ts +56 -1
  133. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +258 -7
  134. package/dist/generated/prisma/models/CodingProxySession.d.ts +123 -2
  135. package/dist/generated/prisma/models/CodingRun.d.ts +1276 -95
  136. package/dist/generated/prisma/models/CodingService.d.ts +1348 -0
  137. package/dist/generated/prisma/models/CodingService.js +1 -0
  138. package/dist/generated/prisma/models/HostEventDelivery.d.ts +946 -0
  139. package/dist/generated/prisma/models/HostEventDelivery.js +1 -0
  140. package/dist/generated/prisma/models/HostIdentity.d.ts +1232 -0
  141. package/dist/generated/prisma/models/HostIdentity.js +1 -0
  142. package/dist/generated/prisma/models/HostIdentityLinkRequest.d.ts +1473 -0
  143. package/dist/generated/prisma/models/HostIdentityLinkRequest.js +1 -0
  144. package/dist/generated/prisma/models/Principal.d.ts +455 -0
  145. package/dist/generated/prisma/models/RegistryAllowance.d.ts +1148 -0
  146. package/dist/generated/prisma/models/RegistryAllowance.js +1 -0
  147. package/dist/generated/prisma/models/RegistryApprovedVersion.d.ts +1219 -0
  148. package/dist/generated/prisma/models/RegistryApprovedVersion.js +1 -0
  149. package/dist/generated/prisma/models/RegistryFetch.d.ts +1428 -0
  150. package/dist/generated/prisma/models/RegistryFetch.js +1 -0
  151. package/dist/generated/prisma/models/RegistryPlanRefusal.d.ts +1294 -0
  152. package/dist/generated/prisma/models/RegistryPlanRefusal.js +1 -0
  153. package/dist/generated/prisma/models/RegistryVersionFact.d.ts +1085 -0
  154. package/dist/generated/prisma/models/RegistryVersionFact.js +1 -0
  155. package/dist/generated/prisma/models/ResourceGrant.d.ts +1437 -0
  156. package/dist/generated/prisma/models/ResourceGrant.js +1 -0
  157. package/dist/generated/prisma/models/Run.d.ts +389 -1
  158. package/dist/generated/prisma/models/RunHostCheck.d.ts +1239 -0
  159. package/dist/generated/prisma/models/RunHostCheck.js +1 -0
  160. package/dist/generated/prisma/models/RunHostStatus.d.ts +1315 -0
  161. package/dist/generated/prisma/models/RunHostStatus.js +1 -0
  162. package/dist/generated/prisma/models/Tool.d.ts +15 -3
  163. package/dist/generated/prisma/models.d.ts +13 -0
  164. package/dist/help/build.d.ts +1 -0
  165. package/dist/help/build.js +9 -0
  166. package/dist/help/catalog.d.ts +24 -0
  167. package/dist/help/catalog.js +160 -0
  168. package/dist/help/cli.d.ts +2 -0
  169. package/dist/help/cli.js +65 -0
  170. package/dist/help/runtime.d.ts +3 -0
  171. package/dist/help/runtime.js +44 -0
  172. package/dist/help/search.d.ts +9 -0
  173. package/dist/help/search.js +104 -0
  174. package/dist/help-index.json +660 -0
  175. package/dist/import/cli-args.js +3 -2
  176. package/dist/import/create.d.ts +5 -0
  177. package/dist/import/create.js +67 -13
  178. package/dist/import/index.js +19 -9
  179. package/dist/import/neutral-schema.d.ts +11 -11
  180. package/dist/mcp/auth/access.d.ts +70 -0
  181. package/dist/mcp/auth/access.js +58 -0
  182. package/dist/mcp/auth/grants-cli.d.ts +149 -0
  183. package/dist/mcp/auth/grants-cli.js +518 -0
  184. package/dist/mcp/auth/host-account-cli.d.ts +2 -0
  185. package/dist/mcp/auth/host-account-cli.js +47 -0
  186. package/dist/mcp/auth/ownership.d.ts +26 -52
  187. package/dist/mcp/auth/ownership.js +19 -14
  188. package/dist/mcp/auth/repo-authorization.d.ts +22 -0
  189. package/dist/mcp/auth/repo-authorization.js +51 -0
  190. package/dist/mcp/auth/resource-server.d.ts +31 -2
  191. package/dist/mcp/auth/resource-server.js +84 -3
  192. package/dist/mcp/auth/self-hosted/browser.js +2 -2
  193. package/dist/mcp/auth/self-hosted/cli.js +47 -13
  194. package/dist/mcp/auth/self-hosted/credentials.d.ts +20 -2
  195. package/dist/mcp/auth/self-hosted/credentials.js +62 -4
  196. package/dist/mcp/auth/self-hosted/session.d.ts +2 -1
  197. package/dist/mcp/context.d.ts +27 -1
  198. package/dist/mcp/errors.d.ts +25 -6
  199. package/dist/mcp/errors.js +98 -0
  200. package/dist/mcp/host-events/github-ingress.d.ts +36 -0
  201. package/dist/mcp/host-events/github-ingress.js +92 -0
  202. package/dist/mcp/host-events/github-user-callback.d.ts +18 -0
  203. package/dist/mcp/host-events/github-user-callback.js +50 -0
  204. package/dist/mcp/index.d.ts +8 -1
  205. package/dist/mcp/index.js +106 -16
  206. package/dist/mcp/server.js +27 -9
  207. package/dist/mcp/tools/agents.js +446 -48
  208. package/dist/mcp/tools/budget-groups.js +3 -3
  209. package/dist/mcp/tools/datastore.js +22 -15
  210. package/dist/mcp/tools/grants.d.ts +2 -0
  211. package/dist/mcp/tools/grants.js +239 -0
  212. package/dist/mcp/tools/help.d.ts +5 -0
  213. package/dist/mcp/tools/help.js +67 -0
  214. package/dist/mcp/tools/host-accounts.d.ts +2 -0
  215. package/dist/mcp/tools/host-accounts.js +114 -0
  216. package/dist/mcp/tools/memory.d.ts +7 -1
  217. package/dist/mcp/tools/memory.js +5 -5
  218. package/dist/mcp/tools/repositories.d.ts +2 -0
  219. package/dist/mcp/tools/repositories.js +181 -0
  220. package/dist/mcp/tools/runs.d.ts +6 -0
  221. package/dist/mcp/tools/runs.js +60 -6
  222. package/dist/mcp/tools/scheduling.js +3 -6
  223. package/dist/mcp/tools/secrets.js +18 -6
  224. package/dist/mcp/tools/services.d.ts +2 -0
  225. package/dist/mcp/tools/services.js +222 -0
  226. package/dist/mcp/tools/subagents.js +52 -16
  227. package/dist/mcp/tools/tools.d.ts +41 -0
  228. package/dist/mcp/tools/tools.js +201 -40
  229. package/dist/mcp/tools/trigger.js +36 -6
  230. package/dist/mcp/tools/webhooks.js +15 -4
  231. package/dist/mcp/transport/streamable-http.d.ts +10 -0
  232. package/dist/mcp/transport/streamable-http.js +32 -2
  233. package/dist/providers/auth/delegating.d.ts +19 -0
  234. package/dist/providers/auth/delegating.js +71 -0
  235. package/dist/providers/auth/index.d.ts +2 -0
  236. package/dist/providers/auth/index.js +11 -0
  237. package/dist/providers/auth/self-hosted.d.ts +2 -1
  238. package/dist/providers/auth/self-hosted.js +16 -4
  239. package/dist/providers/auth/types.d.ts +6 -0
  240. package/dist/providers/coding-proxy/memory-ledger.d.ts +3 -0
  241. package/dist/providers/coding-proxy/memory-ledger.js +21 -2
  242. package/dist/providers/coding-proxy/metering.d.ts +4 -0
  243. package/dist/providers/coding-proxy/metering.js +28 -2
  244. package/dist/providers/coding-proxy/prisma-ledger.d.ts +17 -0
  245. package/dist/providers/coding-proxy/prisma-ledger.js +50 -5
  246. package/dist/providers/coding-proxy/proxy.d.ts +13 -0
  247. package/dist/providers/coding-proxy/proxy.js +479 -18
  248. package/dist/providers/coding-proxy/registry/audit.d.ts +131 -0
  249. package/dist/providers/coding-proxy/registry/audit.js +380 -0
  250. package/dist/providers/coding-proxy/registry/bounded-fetch.d.ts +16 -0
  251. package/dist/providers/coding-proxy/registry/bounded-fetch.js +77 -0
  252. package/dist/providers/coding-proxy/registry/plan.d.ts +58 -0
  253. package/dist/providers/coding-proxy/registry/plan.js +304 -0
  254. package/dist/providers/coding-proxy/registry/prisma-store.d.ts +34 -0
  255. package/dist/providers/coding-proxy/registry/prisma-store.js +151 -0
  256. package/dist/providers/coding-proxy/registry/service.d.ts +213 -0
  257. package/dist/providers/coding-proxy/registry/service.js +1137 -0
  258. package/dist/providers/coding-proxy/registry/store.d.ts +127 -0
  259. package/dist/providers/coding-proxy/registry/store.js +70 -0
  260. package/dist/providers/coding-proxy/runtime.d.ts +17 -0
  261. package/dist/providers/coding-proxy/runtime.js +63 -0
  262. package/dist/providers/coding-proxy/secure-fetch.js +0 -1
  263. package/dist/providers/coding-proxy/server.d.ts +11 -0
  264. package/dist/providers/coding-proxy/server.js +163 -0
  265. package/dist/providers/coding-proxy/types.d.ts +15 -0
  266. package/dist/providers/engine/types.d.ts +10 -0
  267. package/dist/providers/executor/build.d.ts +2 -2
  268. package/dist/providers/executor/composition.d.ts +3 -0
  269. package/dist/providers/executor/composition.js +19 -0
  270. package/dist/providers/executor/container.d.ts +105 -3
  271. package/dist/providers/executor/container.js +296 -20
  272. package/dist/providers/executor/dbos.d.ts +2 -3
  273. package/dist/providers/executor/in-process.d.ts +2 -3
  274. package/dist/providers/executor/routing.d.ts +7 -0
  275. package/dist/providers/executor/routing.js +13 -0
  276. package/dist/providers/executor/types.d.ts +22 -0
  277. package/dist/providers/jobs/claude-tool-setup.d.ts +23 -0
  278. package/dist/providers/jobs/claude-tool-setup.js +50 -0
  279. package/dist/providers/jobs/collect-prune.d.ts +7 -0
  280. package/dist/providers/jobs/collect-prune.js +27 -0
  281. package/dist/providers/jobs/docker-isolation.d.ts +48 -3
  282. package/dist/providers/jobs/docker-isolation.js +213 -22
  283. package/dist/providers/jobs/docker-services.d.ts +35 -0
  284. package/dist/providers/jobs/docker-services.js +191 -0
  285. package/dist/providers/jobs/docker.d.ts +49 -2
  286. package/dist/providers/jobs/docker.js +279 -32
  287. package/dist/providers/jobs/fake-kubernetes-api.d.ts +1 -0
  288. package/dist/providers/jobs/fake-kubernetes-api.js +12 -3
  289. package/dist/providers/jobs/kubernetes-isolation.d.ts +17 -2
  290. package/dist/providers/jobs/kubernetes-isolation.js +238 -57
  291. package/dist/providers/jobs/kubernetes-platform.d.ts +10 -4
  292. package/dist/providers/jobs/kubernetes-platform.js +11 -5
  293. package/dist/providers/jobs/kubernetes-preflight.js +3 -0
  294. package/dist/providers/jobs/kubernetes.d.ts +21 -2
  295. package/dist/providers/jobs/kubernetes.js +112 -21
  296. package/dist/providers/jobs/types.d.ts +18 -0
  297. package/dist/providers/llm/anthropic.js +6 -2
  298. package/dist/providers/llm/bedrock.js +2 -1
  299. package/dist/providers/llm/claude-messages.d.ts +5 -1
  300. package/dist/providers/llm/claude-messages.js +1 -0
  301. package/dist/providers/llm/claude-provider.d.ts +3 -1
  302. package/dist/providers/llm/claude-provider.js +5 -1
  303. package/dist/providers/llm/index.d.ts +1 -1
  304. package/dist/providers/llm/index.js +1 -1
  305. package/dist/providers/llm/pricing-anthropic.d.ts +10 -0
  306. package/dist/providers/llm/pricing-anthropic.js +32 -14
  307. package/dist/providers/llm/pricing-bedrock-claude.d.ts +8 -0
  308. package/dist/providers/llm/pricing-bedrock-claude.js +9 -0
  309. package/dist/providers/llm/routing.d.ts +10 -1
  310. package/dist/providers/llm/routing.js +18 -0
  311. package/dist/providers/llm/types.d.ts +12 -0
  312. package/dist/providers/llm/types.js +8 -1
  313. package/dist/providers/review-host/diff-lines.d.ts +16 -0
  314. package/dist/providers/review-host/diff-lines.js +59 -0
  315. package/dist/providers/review-host/github-events.d.ts +6 -0
  316. package/dist/providers/review-host/github-events.js +180 -0
  317. package/dist/providers/review-host/github-user-auth.d.ts +38 -0
  318. package/dist/providers/review-host/github-user-auth.js +128 -0
  319. package/dist/providers/review-host/github.d.ts +57 -0
  320. package/dist/providers/review-host/github.js +567 -0
  321. package/dist/providers/review-host/index.d.ts +12 -0
  322. package/dist/providers/review-host/index.js +30 -0
  323. package/dist/providers/review-host/review-format.d.ts +19 -0
  324. package/dist/providers/review-host/review-format.js +59 -0
  325. package/dist/providers/review-host/types.d.ts +284 -0
  326. package/dist/providers/review-host/types.js +24 -0
  327. package/dist/providers/vcs/git.d.ts +16 -6
  328. package/dist/providers/vcs/git.js +77 -13
  329. package/dist/providers/vcs/github.d.ts +74 -3
  330. package/dist/providers/vcs/github.js +195 -15
  331. package/dist/providers/vcs/types.d.ts +42 -4
  332. package/dist/quickstart/index.js +13 -2
  333. package/dist/sandbox/fetch-policy.d.ts +20 -2
  334. package/dist/sandbox/fetch-policy.js +64 -3
  335. package/dist/sandbox/host-functions.d.ts +9 -1
  336. package/dist/sandbox/host-functions.js +12 -5
  337. package/dist/serve.js +1 -1
  338. package/dist/wardby-bin.js +6 -0
  339. package/docs/README.md +30 -0
  340. package/docs/architecture-runtime.md +90 -0
  341. package/docs/assets/brand/wardby-icon-512.png +0 -0
  342. package/docs/assets/brand/wardby-icon.svg +16 -0
  343. package/docs/assets/brand/wardby-mascot-profile-512.png +0 -0
  344. package/docs/assets/brand/wardby-mascot.png +0 -0
  345. package/docs/assets/brand/wardby-mascot.svg +5 -0
  346. package/docs/assets/wardby-workflow.svg +106 -0
  347. package/docs/code-review-agents.md +481 -0
  348. package/docs/coding-agent-setup.md +172 -0
  349. package/docs/coding-packages.md +455 -0
  350. package/docs/coding-services.md +300 -0
  351. package/docs/coding-worker-byo-images.md +98 -0
  352. package/docs/coding-worker-isolation.md +1061 -0
  353. package/docs/getting-started-gke.md +615 -0
  354. package/docs/getting-started-identity-provider.md +308 -0
  355. package/docs/getting-started.md +133 -0
  356. package/docs/observability.md +53 -0
  357. package/docs/release-verification.md +66 -0
  358. package/docs/security-deployment.md +657 -0
  359. package/help/code-review-agents.md +31 -0
  360. package/help/coding-packages.md +31 -0
  361. package/help/coding-services.md +71 -0
  362. package/help/creating-agents.md +68 -0
  363. package/help/deploy-gke.md +39 -0
  364. package/help/deployment-targets.md +39 -0
  365. package/help/errors/budget-group-exhausted.md +25 -0
  366. package/help/errors/docker-isolation-unsupported.md +26 -0
  367. package/help/errors/protected-path.md +45 -0
  368. package/help/errors/repo-access.md +27 -0
  369. package/help/errors/service-declaration-invalid.md +27 -0
  370. package/help/errors/service-declaration-unavailable.md +25 -0
  371. package/help/errors/service-launcher-unsupported.md +30 -0
  372. package/help/errors/service-not-allowed.md +27 -0
  373. package/help/errors/service-unknown.md +23 -0
  374. package/help/errors/service-unready.md +49 -0
  375. package/help/getting-started.md +31 -0
  376. package/help/github.md +30 -0
  377. package/help/identity-and-access.md +39 -0
  378. package/help/mcp.md +30 -0
  379. package/help/native-capabilities.md +30 -0
  380. package/help/observability.md +41 -0
  381. package/help/operating-agents.md +30 -0
  382. package/help/security.md +27 -0
  383. package/help/troubleshooting/budgets.md +26 -0
  384. package/help/troubleshooting/coding-workers.md +47 -0
  385. package/help/troubleshooting/repository-access.md +27 -0
  386. package/package.json +12 -3
  387. package/prisma/migrations/20260925010000_coding_collect_exclude/migration.sql +8 -0
  388. package/prisma/migrations/20260925015000_allowed_egress_default/migration.sql +8 -0
  389. package/prisma/migrations/20260925020000_coding_package_registry/migration.sql +55 -0
  390. package/prisma/migrations/20260925030000_tool_name_per_owner/migration.sql +11 -0
  391. package/prisma/migrations/20260926010000_run_trigger_host_event/migration.sql +7 -0
  392. package/prisma/migrations/20260926020000_code_review_hosts/migration.sql +53 -0
  393. package/prisma/migrations/20260926030000_auth_user_roles/migration.sql +9 -0
  394. package/prisma/migrations/20260926040000_agent_effort/migration.sql +6 -0
  395. package/prisma/migrations/20260926050000_registry_lockfile_plan/migration.sql +32 -0
  396. package/prisma/migrations/20260926050000_repo_access_authorization/migration.sql +82 -0
  397. package/prisma/migrations/20260926060000_registry_plan_refusal/migration.sql +19 -0
  398. package/prisma/migrations/20260926100000_registry_plan_refusal_published_at/migration.sql +5 -0
  399. package/prisma/migrations/20260926190000_run_host_status/migration.sql +18 -0
  400. package/prisma/migrations/20260926210000_run_host_status_at_dispatch/migration.sql +5 -0
  401. package/prisma/migrations/20260927010000_resource_grants/migration.sql +72 -0
  402. package/prisma/migrations/20260927020000_proxy_session_budget_exhausted/migration.sql +3 -0
  403. package/prisma/migrations/20260927030000_coding_debug_trace/migration.sql +4 -0
  404. package/prisma/migrations/20260927040000_proxy_session_upstream_failure/migration.sql +3 -0
  405. package/prisma/migrations/20260927050000_coding_run_services/migration.sql +74 -0
  406. package/prisma/migrations/20260928000000_coding_run_tool_image/migration.sql +5 -0
  407. package/prisma/schema.prisma +407 -21
@@ -0,0 +1,1425 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model AgentRepository
5
+ * Which repositories on which code-review host a native agent may act on,
6
+ * and which host events trigger it. See
7
+ * docs/private/2026-09-25-code-review-host-design.md §4.1.
8
+ */
9
+ export type AgentRepositoryModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentRepositoryPayload>;
10
+ export type AggregateAgentRepository = {
11
+ _count: AgentRepositoryCountAggregateOutputType | null;
12
+ _min: AgentRepositoryMinAggregateOutputType | null;
13
+ _max: AgentRepositoryMaxAggregateOutputType | null;
14
+ };
15
+ export type AgentRepositoryMinAggregateOutputType = {
16
+ id: string | null;
17
+ agentId: string | null;
18
+ provider: string | null;
19
+ repository: string | null;
20
+ access: string | null;
21
+ checkName: string | null;
22
+ createdAt: Date | null;
23
+ authorizedVia: string | null;
24
+ authorizedById: string | null;
25
+ authorizedAt: Date | null;
26
+ };
27
+ export type AgentRepositoryMaxAggregateOutputType = {
28
+ id: string | null;
29
+ agentId: string | null;
30
+ provider: string | null;
31
+ repository: string | null;
32
+ access: string | null;
33
+ checkName: string | null;
34
+ createdAt: Date | null;
35
+ authorizedVia: string | null;
36
+ authorizedById: string | null;
37
+ authorizedAt: Date | null;
38
+ };
39
+ export type AgentRepositoryCountAggregateOutputType = {
40
+ id: number;
41
+ agentId: number;
42
+ provider: number;
43
+ repository: number;
44
+ access: number;
45
+ triggers: number;
46
+ checkName: number;
47
+ createdAt: number;
48
+ authorizedVia: number;
49
+ authorizedById: number;
50
+ authorizedAt: number;
51
+ _all: number;
52
+ };
53
+ export type AgentRepositoryMinAggregateInputType = {
54
+ id?: true;
55
+ agentId?: true;
56
+ provider?: true;
57
+ repository?: true;
58
+ access?: true;
59
+ checkName?: true;
60
+ createdAt?: true;
61
+ authorizedVia?: true;
62
+ authorizedById?: true;
63
+ authorizedAt?: true;
64
+ };
65
+ export type AgentRepositoryMaxAggregateInputType = {
66
+ id?: true;
67
+ agentId?: true;
68
+ provider?: true;
69
+ repository?: true;
70
+ access?: true;
71
+ checkName?: true;
72
+ createdAt?: true;
73
+ authorizedVia?: true;
74
+ authorizedById?: true;
75
+ authorizedAt?: true;
76
+ };
77
+ export type AgentRepositoryCountAggregateInputType = {
78
+ id?: true;
79
+ agentId?: true;
80
+ provider?: true;
81
+ repository?: true;
82
+ access?: true;
83
+ triggers?: true;
84
+ checkName?: true;
85
+ createdAt?: true;
86
+ authorizedVia?: true;
87
+ authorizedById?: true;
88
+ authorizedAt?: true;
89
+ _all?: true;
90
+ };
91
+ export type AgentRepositoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
92
+ /**
93
+ * Filter which AgentRepository to aggregate.
94
+ */
95
+ where?: Prisma.AgentRepositoryWhereInput;
96
+ /**
97
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
98
+ *
99
+ * Determine the order of AgentRepositories to fetch.
100
+ */
101
+ orderBy?: Prisma.AgentRepositoryOrderByWithRelationInput | Prisma.AgentRepositoryOrderByWithRelationInput[];
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
104
+ *
105
+ * Sets the start position
106
+ */
107
+ cursor?: Prisma.AgentRepositoryWhereUniqueInput;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
110
+ *
111
+ * Take `±n` AgentRepositories from the position of the cursor.
112
+ */
113
+ take?: number;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
116
+ *
117
+ * Skip the first `n` AgentRepositories.
118
+ */
119
+ skip?: number;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
122
+ *
123
+ * Count returned AgentRepositories
124
+ **/
125
+ _count?: true | AgentRepositoryCountAggregateInputType;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Select which fields to find the minimum value
130
+ **/
131
+ _min?: AgentRepositoryMinAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to find the maximum value
136
+ **/
137
+ _max?: AgentRepositoryMaxAggregateInputType;
138
+ };
139
+ export type GetAgentRepositoryAggregateType<T extends AgentRepositoryAggregateArgs> = {
140
+ [P in keyof T & keyof AggregateAgentRepository]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgentRepository[P]> : Prisma.GetScalarType<T[P], AggregateAgentRepository[P]>;
141
+ };
142
+ export type AgentRepositoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
143
+ where?: Prisma.AgentRepositoryWhereInput;
144
+ orderBy?: Prisma.AgentRepositoryOrderByWithAggregationInput | Prisma.AgentRepositoryOrderByWithAggregationInput[];
145
+ by: Prisma.AgentRepositoryScalarFieldEnum[] | Prisma.AgentRepositoryScalarFieldEnum;
146
+ having?: Prisma.AgentRepositoryScalarWhereWithAggregatesInput;
147
+ take?: number;
148
+ skip?: number;
149
+ _count?: AgentRepositoryCountAggregateInputType | true;
150
+ _min?: AgentRepositoryMinAggregateInputType;
151
+ _max?: AgentRepositoryMaxAggregateInputType;
152
+ };
153
+ export type AgentRepositoryGroupByOutputType = {
154
+ id: string;
155
+ agentId: string;
156
+ provider: string;
157
+ repository: string;
158
+ access: string;
159
+ triggers: string[];
160
+ checkName: string | null;
161
+ createdAt: Date;
162
+ authorizedVia: string | null;
163
+ authorizedById: string | null;
164
+ authorizedAt: Date | null;
165
+ _count: AgentRepositoryCountAggregateOutputType | null;
166
+ _min: AgentRepositoryMinAggregateOutputType | null;
167
+ _max: AgentRepositoryMaxAggregateOutputType | null;
168
+ };
169
+ export type GetAgentRepositoryGroupByPayload<T extends AgentRepositoryGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentRepositoryGroupByOutputType, T['by']> & {
170
+ [P in ((keyof T) & (keyof AgentRepositoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentRepositoryGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentRepositoryGroupByOutputType[P]>;
171
+ }>>;
172
+ export type AgentRepositoryWhereInput = {
173
+ AND?: Prisma.AgentRepositoryWhereInput | Prisma.AgentRepositoryWhereInput[];
174
+ OR?: Prisma.AgentRepositoryWhereInput[];
175
+ NOT?: Prisma.AgentRepositoryWhereInput | Prisma.AgentRepositoryWhereInput[];
176
+ id?: Prisma.StringFilter<"AgentRepository"> | string;
177
+ agentId?: Prisma.StringFilter<"AgentRepository"> | string;
178
+ provider?: Prisma.StringFilter<"AgentRepository"> | string;
179
+ repository?: Prisma.StringFilter<"AgentRepository"> | string;
180
+ access?: Prisma.StringFilter<"AgentRepository"> | string;
181
+ triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
182
+ checkName?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
183
+ createdAt?: Prisma.DateTimeFilter<"AgentRepository"> | Date | string;
184
+ authorizedVia?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
185
+ authorizedById?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
186
+ authorizedAt?: Prisma.DateTimeNullableFilter<"AgentRepository"> | Date | string | null;
187
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
188
+ };
189
+ export type AgentRepositoryOrderByWithRelationInput = {
190
+ id?: Prisma.SortOrder;
191
+ agentId?: Prisma.SortOrder;
192
+ provider?: Prisma.SortOrder;
193
+ repository?: Prisma.SortOrder;
194
+ access?: Prisma.SortOrder;
195
+ triggers?: Prisma.SortOrder;
196
+ checkName?: Prisma.SortOrderInput | Prisma.SortOrder;
197
+ createdAt?: Prisma.SortOrder;
198
+ authorizedVia?: Prisma.SortOrderInput | Prisma.SortOrder;
199
+ authorizedById?: Prisma.SortOrderInput | Prisma.SortOrder;
200
+ authorizedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
201
+ agent?: Prisma.AgentOrderByWithRelationInput;
202
+ };
203
+ export type AgentRepositoryWhereUniqueInput = Prisma.AtLeast<{
204
+ id?: string;
205
+ agentId_provider_repository?: Prisma.AgentRepositoryAgentIdProviderRepositoryCompoundUniqueInput;
206
+ provider_repository_checkName?: Prisma.AgentRepositoryProviderRepositoryCheckNameCompoundUniqueInput;
207
+ AND?: Prisma.AgentRepositoryWhereInput | Prisma.AgentRepositoryWhereInput[];
208
+ OR?: Prisma.AgentRepositoryWhereInput[];
209
+ NOT?: Prisma.AgentRepositoryWhereInput | Prisma.AgentRepositoryWhereInput[];
210
+ agentId?: Prisma.StringFilter<"AgentRepository"> | string;
211
+ provider?: Prisma.StringFilter<"AgentRepository"> | string;
212
+ repository?: Prisma.StringFilter<"AgentRepository"> | string;
213
+ access?: Prisma.StringFilter<"AgentRepository"> | string;
214
+ triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
215
+ checkName?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
216
+ createdAt?: Prisma.DateTimeFilter<"AgentRepository"> | Date | string;
217
+ authorizedVia?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
218
+ authorizedById?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
219
+ authorizedAt?: Prisma.DateTimeNullableFilter<"AgentRepository"> | Date | string | null;
220
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
221
+ }, "id" | "agentId_provider_repository" | "provider_repository_checkName">;
222
+ export type AgentRepositoryOrderByWithAggregationInput = {
223
+ id?: Prisma.SortOrder;
224
+ agentId?: Prisma.SortOrder;
225
+ provider?: Prisma.SortOrder;
226
+ repository?: Prisma.SortOrder;
227
+ access?: Prisma.SortOrder;
228
+ triggers?: Prisma.SortOrder;
229
+ checkName?: Prisma.SortOrderInput | Prisma.SortOrder;
230
+ createdAt?: Prisma.SortOrder;
231
+ authorizedVia?: Prisma.SortOrderInput | Prisma.SortOrder;
232
+ authorizedById?: Prisma.SortOrderInput | Prisma.SortOrder;
233
+ authorizedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
234
+ _count?: Prisma.AgentRepositoryCountOrderByAggregateInput;
235
+ _max?: Prisma.AgentRepositoryMaxOrderByAggregateInput;
236
+ _min?: Prisma.AgentRepositoryMinOrderByAggregateInput;
237
+ };
238
+ export type AgentRepositoryScalarWhereWithAggregatesInput = {
239
+ AND?: Prisma.AgentRepositoryScalarWhereWithAggregatesInput | Prisma.AgentRepositoryScalarWhereWithAggregatesInput[];
240
+ OR?: Prisma.AgentRepositoryScalarWhereWithAggregatesInput[];
241
+ NOT?: Prisma.AgentRepositoryScalarWhereWithAggregatesInput | Prisma.AgentRepositoryScalarWhereWithAggregatesInput[];
242
+ id?: Prisma.StringWithAggregatesFilter<"AgentRepository"> | string;
243
+ agentId?: Prisma.StringWithAggregatesFilter<"AgentRepository"> | string;
244
+ provider?: Prisma.StringWithAggregatesFilter<"AgentRepository"> | string;
245
+ repository?: Prisma.StringWithAggregatesFilter<"AgentRepository"> | string;
246
+ access?: Prisma.StringWithAggregatesFilter<"AgentRepository"> | string;
247
+ triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
248
+ checkName?: Prisma.StringNullableWithAggregatesFilter<"AgentRepository"> | string | null;
249
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentRepository"> | Date | string;
250
+ authorizedVia?: Prisma.StringNullableWithAggregatesFilter<"AgentRepository"> | string | null;
251
+ authorizedById?: Prisma.StringNullableWithAggregatesFilter<"AgentRepository"> | string | null;
252
+ authorizedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AgentRepository"> | Date | string | null;
253
+ };
254
+ export type AgentRepositoryCreateInput = {
255
+ id?: string;
256
+ provider: string;
257
+ repository: string;
258
+ access: string;
259
+ triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
260
+ checkName?: string | null;
261
+ createdAt?: Date | string;
262
+ authorizedVia?: string | null;
263
+ authorizedById?: string | null;
264
+ authorizedAt?: Date | string | null;
265
+ agent: Prisma.AgentCreateNestedOneWithoutRepositoriesInput;
266
+ };
267
+ export type AgentRepositoryUncheckedCreateInput = {
268
+ id?: string;
269
+ agentId: string;
270
+ provider: string;
271
+ repository: string;
272
+ access: string;
273
+ triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
274
+ checkName?: string | null;
275
+ createdAt?: Date | string;
276
+ authorizedVia?: string | null;
277
+ authorizedById?: string | null;
278
+ authorizedAt?: Date | string | null;
279
+ };
280
+ export type AgentRepositoryUpdateInput = {
281
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
282
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
283
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
284
+ access?: Prisma.StringFieldUpdateOperationsInput | string;
285
+ triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
286
+ checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
287
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
288
+ authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
289
+ authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
290
+ authorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
291
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRepositoriesNestedInput;
292
+ };
293
+ export type AgentRepositoryUncheckedUpdateInput = {
294
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
295
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
297
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
298
+ access?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
300
+ checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
301
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
302
+ authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
303
+ authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
304
+ authorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
305
+ };
306
+ export type AgentRepositoryCreateManyInput = {
307
+ id?: string;
308
+ agentId: string;
309
+ provider: string;
310
+ repository: string;
311
+ access: string;
312
+ triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
313
+ checkName?: string | null;
314
+ createdAt?: Date | string;
315
+ authorizedVia?: string | null;
316
+ authorizedById?: string | null;
317
+ authorizedAt?: Date | string | null;
318
+ };
319
+ export type AgentRepositoryUpdateManyMutationInput = {
320
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
321
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ access?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
325
+ checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
326
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
327
+ authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
328
+ authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
329
+ authorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
330
+ };
331
+ export type AgentRepositoryUncheckedUpdateManyInput = {
332
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ access?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
338
+ checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
339
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
340
+ authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
341
+ authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
342
+ authorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
343
+ };
344
+ export type AgentRepositoryListRelationFilter = {
345
+ every?: Prisma.AgentRepositoryWhereInput;
346
+ some?: Prisma.AgentRepositoryWhereInput;
347
+ none?: Prisma.AgentRepositoryWhereInput;
348
+ };
349
+ export type AgentRepositoryOrderByRelationAggregateInput = {
350
+ _count?: Prisma.SortOrder;
351
+ };
352
+ export type AgentRepositoryAgentIdProviderRepositoryCompoundUniqueInput = {
353
+ agentId: string;
354
+ provider: string;
355
+ repository: string;
356
+ };
357
+ export type AgentRepositoryProviderRepositoryCheckNameCompoundUniqueInput = {
358
+ provider: string;
359
+ repository: string;
360
+ checkName: string;
361
+ };
362
+ export type AgentRepositoryCountOrderByAggregateInput = {
363
+ id?: Prisma.SortOrder;
364
+ agentId?: Prisma.SortOrder;
365
+ provider?: Prisma.SortOrder;
366
+ repository?: Prisma.SortOrder;
367
+ access?: Prisma.SortOrder;
368
+ triggers?: Prisma.SortOrder;
369
+ checkName?: Prisma.SortOrder;
370
+ createdAt?: Prisma.SortOrder;
371
+ authorizedVia?: Prisma.SortOrder;
372
+ authorizedById?: Prisma.SortOrder;
373
+ authorizedAt?: Prisma.SortOrder;
374
+ };
375
+ export type AgentRepositoryMaxOrderByAggregateInput = {
376
+ id?: Prisma.SortOrder;
377
+ agentId?: Prisma.SortOrder;
378
+ provider?: Prisma.SortOrder;
379
+ repository?: Prisma.SortOrder;
380
+ access?: Prisma.SortOrder;
381
+ checkName?: Prisma.SortOrder;
382
+ createdAt?: Prisma.SortOrder;
383
+ authorizedVia?: Prisma.SortOrder;
384
+ authorizedById?: Prisma.SortOrder;
385
+ authorizedAt?: Prisma.SortOrder;
386
+ };
387
+ export type AgentRepositoryMinOrderByAggregateInput = {
388
+ id?: Prisma.SortOrder;
389
+ agentId?: Prisma.SortOrder;
390
+ provider?: Prisma.SortOrder;
391
+ repository?: Prisma.SortOrder;
392
+ access?: Prisma.SortOrder;
393
+ checkName?: Prisma.SortOrder;
394
+ createdAt?: Prisma.SortOrder;
395
+ authorizedVia?: Prisma.SortOrder;
396
+ authorizedById?: Prisma.SortOrder;
397
+ authorizedAt?: Prisma.SortOrder;
398
+ };
399
+ export type AgentRepositoryCreateNestedManyWithoutAgentInput = {
400
+ create?: Prisma.XOR<Prisma.AgentRepositoryCreateWithoutAgentInput, Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput> | Prisma.AgentRepositoryCreateWithoutAgentInput[] | Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput[];
401
+ connectOrCreate?: Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput | Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput[];
402
+ createMany?: Prisma.AgentRepositoryCreateManyAgentInputEnvelope;
403
+ connect?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
404
+ };
405
+ export type AgentRepositoryUncheckedCreateNestedManyWithoutAgentInput = {
406
+ create?: Prisma.XOR<Prisma.AgentRepositoryCreateWithoutAgentInput, Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput> | Prisma.AgentRepositoryCreateWithoutAgentInput[] | Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput[];
407
+ connectOrCreate?: Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput | Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput[];
408
+ createMany?: Prisma.AgentRepositoryCreateManyAgentInputEnvelope;
409
+ connect?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
410
+ };
411
+ export type AgentRepositoryUpdateManyWithoutAgentNestedInput = {
412
+ create?: Prisma.XOR<Prisma.AgentRepositoryCreateWithoutAgentInput, Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput> | Prisma.AgentRepositoryCreateWithoutAgentInput[] | Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput[];
413
+ connectOrCreate?: Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput | Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput[];
414
+ upsert?: Prisma.AgentRepositoryUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentRepositoryUpsertWithWhereUniqueWithoutAgentInput[];
415
+ createMany?: Prisma.AgentRepositoryCreateManyAgentInputEnvelope;
416
+ set?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
417
+ disconnect?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
418
+ delete?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
419
+ connect?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
420
+ update?: Prisma.AgentRepositoryUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentRepositoryUpdateWithWhereUniqueWithoutAgentInput[];
421
+ updateMany?: Prisma.AgentRepositoryUpdateManyWithWhereWithoutAgentInput | Prisma.AgentRepositoryUpdateManyWithWhereWithoutAgentInput[];
422
+ deleteMany?: Prisma.AgentRepositoryScalarWhereInput | Prisma.AgentRepositoryScalarWhereInput[];
423
+ };
424
+ export type AgentRepositoryUncheckedUpdateManyWithoutAgentNestedInput = {
425
+ create?: Prisma.XOR<Prisma.AgentRepositoryCreateWithoutAgentInput, Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput> | Prisma.AgentRepositoryCreateWithoutAgentInput[] | Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput[];
426
+ connectOrCreate?: Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput | Prisma.AgentRepositoryCreateOrConnectWithoutAgentInput[];
427
+ upsert?: Prisma.AgentRepositoryUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentRepositoryUpsertWithWhereUniqueWithoutAgentInput[];
428
+ createMany?: Prisma.AgentRepositoryCreateManyAgentInputEnvelope;
429
+ set?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
430
+ disconnect?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
431
+ delete?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
432
+ connect?: Prisma.AgentRepositoryWhereUniqueInput | Prisma.AgentRepositoryWhereUniqueInput[];
433
+ update?: Prisma.AgentRepositoryUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentRepositoryUpdateWithWhereUniqueWithoutAgentInput[];
434
+ updateMany?: Prisma.AgentRepositoryUpdateManyWithWhereWithoutAgentInput | Prisma.AgentRepositoryUpdateManyWithWhereWithoutAgentInput[];
435
+ deleteMany?: Prisma.AgentRepositoryScalarWhereInput | Prisma.AgentRepositoryScalarWhereInput[];
436
+ };
437
+ export type AgentRepositoryCreatetriggersInput = {
438
+ set: string[];
439
+ };
440
+ export type AgentRepositoryUpdatetriggersInput = {
441
+ set?: string[];
442
+ push?: string | string[];
443
+ };
444
+ export type AgentRepositoryCreateWithoutAgentInput = {
445
+ id?: string;
446
+ provider: string;
447
+ repository: string;
448
+ access: string;
449
+ triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
450
+ checkName?: string | null;
451
+ createdAt?: Date | string;
452
+ authorizedVia?: string | null;
453
+ authorizedById?: string | null;
454
+ authorizedAt?: Date | string | null;
455
+ };
456
+ export type AgentRepositoryUncheckedCreateWithoutAgentInput = {
457
+ id?: string;
458
+ provider: string;
459
+ repository: string;
460
+ access: string;
461
+ triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
462
+ checkName?: string | null;
463
+ createdAt?: Date | string;
464
+ authorizedVia?: string | null;
465
+ authorizedById?: string | null;
466
+ authorizedAt?: Date | string | null;
467
+ };
468
+ export type AgentRepositoryCreateOrConnectWithoutAgentInput = {
469
+ where: Prisma.AgentRepositoryWhereUniqueInput;
470
+ create: Prisma.XOR<Prisma.AgentRepositoryCreateWithoutAgentInput, Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput>;
471
+ };
472
+ export type AgentRepositoryCreateManyAgentInputEnvelope = {
473
+ data: Prisma.AgentRepositoryCreateManyAgentInput | Prisma.AgentRepositoryCreateManyAgentInput[];
474
+ skipDuplicates?: boolean;
475
+ };
476
+ export type AgentRepositoryUpsertWithWhereUniqueWithoutAgentInput = {
477
+ where: Prisma.AgentRepositoryWhereUniqueInput;
478
+ update: Prisma.XOR<Prisma.AgentRepositoryUpdateWithoutAgentInput, Prisma.AgentRepositoryUncheckedUpdateWithoutAgentInput>;
479
+ create: Prisma.XOR<Prisma.AgentRepositoryCreateWithoutAgentInput, Prisma.AgentRepositoryUncheckedCreateWithoutAgentInput>;
480
+ };
481
+ export type AgentRepositoryUpdateWithWhereUniqueWithoutAgentInput = {
482
+ where: Prisma.AgentRepositoryWhereUniqueInput;
483
+ data: Prisma.XOR<Prisma.AgentRepositoryUpdateWithoutAgentInput, Prisma.AgentRepositoryUncheckedUpdateWithoutAgentInput>;
484
+ };
485
+ export type AgentRepositoryUpdateManyWithWhereWithoutAgentInput = {
486
+ where: Prisma.AgentRepositoryScalarWhereInput;
487
+ data: Prisma.XOR<Prisma.AgentRepositoryUpdateManyMutationInput, Prisma.AgentRepositoryUncheckedUpdateManyWithoutAgentInput>;
488
+ };
489
+ export type AgentRepositoryScalarWhereInput = {
490
+ AND?: Prisma.AgentRepositoryScalarWhereInput | Prisma.AgentRepositoryScalarWhereInput[];
491
+ OR?: Prisma.AgentRepositoryScalarWhereInput[];
492
+ NOT?: Prisma.AgentRepositoryScalarWhereInput | Prisma.AgentRepositoryScalarWhereInput[];
493
+ id?: Prisma.StringFilter<"AgentRepository"> | string;
494
+ agentId?: Prisma.StringFilter<"AgentRepository"> | string;
495
+ provider?: Prisma.StringFilter<"AgentRepository"> | string;
496
+ repository?: Prisma.StringFilter<"AgentRepository"> | string;
497
+ access?: Prisma.StringFilter<"AgentRepository"> | string;
498
+ triggers?: Prisma.StringNullableListFilter<"AgentRepository">;
499
+ checkName?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
500
+ createdAt?: Prisma.DateTimeFilter<"AgentRepository"> | Date | string;
501
+ authorizedVia?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
502
+ authorizedById?: Prisma.StringNullableFilter<"AgentRepository"> | string | null;
503
+ authorizedAt?: Prisma.DateTimeNullableFilter<"AgentRepository"> | Date | string | null;
504
+ };
505
+ export type AgentRepositoryCreateManyAgentInput = {
506
+ id?: string;
507
+ provider: string;
508
+ repository: string;
509
+ access: string;
510
+ triggers?: Prisma.AgentRepositoryCreatetriggersInput | string[];
511
+ checkName?: string | null;
512
+ createdAt?: Date | string;
513
+ authorizedVia?: string | null;
514
+ authorizedById?: string | null;
515
+ authorizedAt?: Date | string | null;
516
+ };
517
+ export type AgentRepositoryUpdateWithoutAgentInput = {
518
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
519
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
520
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
521
+ access?: Prisma.StringFieldUpdateOperationsInput | string;
522
+ triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
523
+ checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
524
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
525
+ authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
526
+ authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
527
+ authorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
528
+ };
529
+ export type AgentRepositoryUncheckedUpdateWithoutAgentInput = {
530
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
531
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
532
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ access?: Prisma.StringFieldUpdateOperationsInput | string;
534
+ triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
535
+ checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
536
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
537
+ authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
538
+ authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
539
+ authorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
540
+ };
541
+ export type AgentRepositoryUncheckedUpdateManyWithoutAgentInput = {
542
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
543
+ provider?: Prisma.StringFieldUpdateOperationsInput | string;
544
+ repository?: Prisma.StringFieldUpdateOperationsInput | string;
545
+ access?: Prisma.StringFieldUpdateOperationsInput | string;
546
+ triggers?: Prisma.AgentRepositoryUpdatetriggersInput | string[];
547
+ checkName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
548
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
549
+ authorizedVia?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
550
+ authorizedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
551
+ authorizedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
552
+ };
553
+ export type AgentRepositorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
554
+ id?: boolean;
555
+ agentId?: boolean;
556
+ provider?: boolean;
557
+ repository?: boolean;
558
+ access?: boolean;
559
+ triggers?: boolean;
560
+ checkName?: boolean;
561
+ createdAt?: boolean;
562
+ authorizedVia?: boolean;
563
+ authorizedById?: boolean;
564
+ authorizedAt?: boolean;
565
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
566
+ }, ExtArgs["result"]["agentRepository"]>;
567
+ export type AgentRepositorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
568
+ id?: boolean;
569
+ agentId?: boolean;
570
+ provider?: boolean;
571
+ repository?: boolean;
572
+ access?: boolean;
573
+ triggers?: boolean;
574
+ checkName?: boolean;
575
+ createdAt?: boolean;
576
+ authorizedVia?: boolean;
577
+ authorizedById?: boolean;
578
+ authorizedAt?: boolean;
579
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
580
+ }, ExtArgs["result"]["agentRepository"]>;
581
+ export type AgentRepositorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
582
+ id?: boolean;
583
+ agentId?: boolean;
584
+ provider?: boolean;
585
+ repository?: boolean;
586
+ access?: boolean;
587
+ triggers?: boolean;
588
+ checkName?: boolean;
589
+ createdAt?: boolean;
590
+ authorizedVia?: boolean;
591
+ authorizedById?: boolean;
592
+ authorizedAt?: boolean;
593
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
594
+ }, ExtArgs["result"]["agentRepository"]>;
595
+ export type AgentRepositorySelectScalar = {
596
+ id?: boolean;
597
+ agentId?: boolean;
598
+ provider?: boolean;
599
+ repository?: boolean;
600
+ access?: boolean;
601
+ triggers?: boolean;
602
+ checkName?: boolean;
603
+ createdAt?: boolean;
604
+ authorizedVia?: boolean;
605
+ authorizedById?: boolean;
606
+ authorizedAt?: boolean;
607
+ };
608
+ export type AgentRepositoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "provider" | "repository" | "access" | "triggers" | "checkName" | "createdAt" | "authorizedVia" | "authorizedById" | "authorizedAt", ExtArgs["result"]["agentRepository"]>;
609
+ export type AgentRepositoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
610
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
611
+ };
612
+ export type AgentRepositoryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
613
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
614
+ };
615
+ export type AgentRepositoryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
616
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
617
+ };
618
+ export type $AgentRepositoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
619
+ name: "AgentRepository";
620
+ objects: {
621
+ agent: Prisma.$AgentPayload<ExtArgs>;
622
+ };
623
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
624
+ id: string;
625
+ agentId: string;
626
+ /**
627
+ * "github" today; validated in code so adding a host needs no enum migration.
628
+ */
629
+ provider: string;
630
+ /**
631
+ * Canonical lower-case owner/name for the provider.
632
+ */
633
+ repository: string;
634
+ /**
635
+ * "read" or "write".
636
+ */
637
+ access: string;
638
+ /**
639
+ * Subset of "pull_request", "mention".
640
+ */
641
+ triggers: string[];
642
+ /**
643
+ * Only with the "pull_request" trigger (required there); names the agent's
644
+ * check. Unique per repository across all links (NULLs are distinct).
645
+ */
646
+ checkName: string | null;
647
+ createdAt: Date;
648
+ /**
649
+ * How this link was authorized: "host_permission" (the agent owner's
650
+ * verified host identity had enough access), "admin" (a wardby admin
651
+ * approved it explicitly), or "grandfathered" (existed before
652
+ * authorization was enforced). Null = never authorized; use is refused.
653
+ */
654
+ authorizedVia: string | null;
655
+ /**
656
+ * The principal who authorized it. Audit only: plain text, no FK.
657
+ */
658
+ authorizedById: string | null;
659
+ authorizedAt: Date | null;
660
+ }, ExtArgs["result"]["agentRepository"]>;
661
+ composites: {};
662
+ };
663
+ export type AgentRepositoryGetPayload<S extends boolean | null | undefined | AgentRepositoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload, S>;
664
+ export type AgentRepositoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentRepositoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
665
+ select?: AgentRepositoryCountAggregateInputType | true;
666
+ };
667
+ export interface AgentRepositoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
668
+ [K: symbol]: {
669
+ types: Prisma.TypeMap<ExtArgs>['model']['AgentRepository'];
670
+ meta: {
671
+ name: 'AgentRepository';
672
+ };
673
+ };
674
+ /**
675
+ * Find zero or one AgentRepository that matches the filter.
676
+ * @param {AgentRepositoryFindUniqueArgs} args - Arguments to find a AgentRepository
677
+ * @example
678
+ * // Get one AgentRepository
679
+ * const agentRepository = await prisma.agentRepository.findUnique({
680
+ * where: {
681
+ * // ... provide filter here
682
+ * }
683
+ * })
684
+ */
685
+ findUnique<T extends AgentRepositoryFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentRepositoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
686
+ /**
687
+ * Find one AgentRepository that matches the filter or throw an error with `error.code='P2025'`
688
+ * if no matches were found.
689
+ * @param {AgentRepositoryFindUniqueOrThrowArgs} args - Arguments to find a AgentRepository
690
+ * @example
691
+ * // Get one AgentRepository
692
+ * const agentRepository = await prisma.agentRepository.findUniqueOrThrow({
693
+ * where: {
694
+ * // ... provide filter here
695
+ * }
696
+ * })
697
+ */
698
+ findUniqueOrThrow<T extends AgentRepositoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentRepositoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
699
+ /**
700
+ * Find the first AgentRepository that matches the filter.
701
+ * Note, that providing `undefined` is treated as the value not being there.
702
+ * Read more here: https://pris.ly/d/null-undefined
703
+ * @param {AgentRepositoryFindFirstArgs} args - Arguments to find a AgentRepository
704
+ * @example
705
+ * // Get one AgentRepository
706
+ * const agentRepository = await prisma.agentRepository.findFirst({
707
+ * where: {
708
+ * // ... provide filter here
709
+ * }
710
+ * })
711
+ */
712
+ findFirst<T extends AgentRepositoryFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentRepositoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
713
+ /**
714
+ * Find the first AgentRepository that matches the filter or
715
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
716
+ * Note, that providing `undefined` is treated as the value not being there.
717
+ * Read more here: https://pris.ly/d/null-undefined
718
+ * @param {AgentRepositoryFindFirstOrThrowArgs} args - Arguments to find a AgentRepository
719
+ * @example
720
+ * // Get one AgentRepository
721
+ * const agentRepository = await prisma.agentRepository.findFirstOrThrow({
722
+ * where: {
723
+ * // ... provide filter here
724
+ * }
725
+ * })
726
+ */
727
+ findFirstOrThrow<T extends AgentRepositoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentRepositoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
728
+ /**
729
+ * Find zero or more AgentRepositories that matches the filter.
730
+ * Note, that providing `undefined` is treated as the value not being there.
731
+ * Read more here: https://pris.ly/d/null-undefined
732
+ * @param {AgentRepositoryFindManyArgs} args - Arguments to filter and select certain fields only.
733
+ * @example
734
+ * // Get all AgentRepositories
735
+ * const agentRepositories = await prisma.agentRepository.findMany()
736
+ *
737
+ * // Get first 10 AgentRepositories
738
+ * const agentRepositories = await prisma.agentRepository.findMany({ take: 10 })
739
+ *
740
+ * // Only select the `id`
741
+ * const agentRepositoryWithIdOnly = await prisma.agentRepository.findMany({ select: { id: true } })
742
+ *
743
+ */
744
+ findMany<T extends AgentRepositoryFindManyArgs>(args?: Prisma.SelectSubset<T, AgentRepositoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
745
+ /**
746
+ * Create a AgentRepository.
747
+ * @param {AgentRepositoryCreateArgs} args - Arguments to create a AgentRepository.
748
+ * @example
749
+ * // Create one AgentRepository
750
+ * const AgentRepository = await prisma.agentRepository.create({
751
+ * data: {
752
+ * // ... data to create a AgentRepository
753
+ * }
754
+ * })
755
+ *
756
+ */
757
+ create<T extends AgentRepositoryCreateArgs>(args: Prisma.SelectSubset<T, AgentRepositoryCreateArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
758
+ /**
759
+ * Create many AgentRepositories.
760
+ * @param {AgentRepositoryCreateManyArgs} args - Arguments to create many AgentRepositories.
761
+ * @example
762
+ * // Create many AgentRepositories
763
+ * const agentRepository = await prisma.agentRepository.createMany({
764
+ * data: [
765
+ * // ... provide data here
766
+ * ]
767
+ * })
768
+ *
769
+ */
770
+ createMany<T extends AgentRepositoryCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentRepositoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
771
+ /**
772
+ * Create many AgentRepositories and returns the data saved in the database.
773
+ * @param {AgentRepositoryCreateManyAndReturnArgs} args - Arguments to create many AgentRepositories.
774
+ * @example
775
+ * // Create many AgentRepositories
776
+ * const agentRepository = await prisma.agentRepository.createManyAndReturn({
777
+ * data: [
778
+ * // ... provide data here
779
+ * ]
780
+ * })
781
+ *
782
+ * // Create many AgentRepositories and only return the `id`
783
+ * const agentRepositoryWithIdOnly = await prisma.agentRepository.createManyAndReturn({
784
+ * select: { id: true },
785
+ * data: [
786
+ * // ... provide data here
787
+ * ]
788
+ * })
789
+ * Note, that providing `undefined` is treated as the value not being there.
790
+ * Read more here: https://pris.ly/d/null-undefined
791
+ *
792
+ */
793
+ createManyAndReturn<T extends AgentRepositoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentRepositoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
794
+ /**
795
+ * Delete a AgentRepository.
796
+ * @param {AgentRepositoryDeleteArgs} args - Arguments to delete one AgentRepository.
797
+ * @example
798
+ * // Delete one AgentRepository
799
+ * const AgentRepository = await prisma.agentRepository.delete({
800
+ * where: {
801
+ * // ... filter to delete one AgentRepository
802
+ * }
803
+ * })
804
+ *
805
+ */
806
+ delete<T extends AgentRepositoryDeleteArgs>(args: Prisma.SelectSubset<T, AgentRepositoryDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
807
+ /**
808
+ * Update one AgentRepository.
809
+ * @param {AgentRepositoryUpdateArgs} args - Arguments to update one AgentRepository.
810
+ * @example
811
+ * // Update one AgentRepository
812
+ * const agentRepository = await prisma.agentRepository.update({
813
+ * where: {
814
+ * // ... provide filter here
815
+ * },
816
+ * data: {
817
+ * // ... provide data here
818
+ * }
819
+ * })
820
+ *
821
+ */
822
+ update<T extends AgentRepositoryUpdateArgs>(args: Prisma.SelectSubset<T, AgentRepositoryUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
823
+ /**
824
+ * Delete zero or more AgentRepositories.
825
+ * @param {AgentRepositoryDeleteManyArgs} args - Arguments to filter AgentRepositories to delete.
826
+ * @example
827
+ * // Delete a few AgentRepositories
828
+ * const { count } = await prisma.agentRepository.deleteMany({
829
+ * where: {
830
+ * // ... provide filter here
831
+ * }
832
+ * })
833
+ *
834
+ */
835
+ deleteMany<T extends AgentRepositoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentRepositoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
836
+ /**
837
+ * Update zero or more AgentRepositories.
838
+ * Note, that providing `undefined` is treated as the value not being there.
839
+ * Read more here: https://pris.ly/d/null-undefined
840
+ * @param {AgentRepositoryUpdateManyArgs} args - Arguments to update one or more rows.
841
+ * @example
842
+ * // Update many AgentRepositories
843
+ * const agentRepository = await prisma.agentRepository.updateMany({
844
+ * where: {
845
+ * // ... provide filter here
846
+ * },
847
+ * data: {
848
+ * // ... provide data here
849
+ * }
850
+ * })
851
+ *
852
+ */
853
+ updateMany<T extends AgentRepositoryUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentRepositoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
854
+ /**
855
+ * Update zero or more AgentRepositories and returns the data updated in the database.
856
+ * @param {AgentRepositoryUpdateManyAndReturnArgs} args - Arguments to update many AgentRepositories.
857
+ * @example
858
+ * // Update many AgentRepositories
859
+ * const agentRepository = await prisma.agentRepository.updateManyAndReturn({
860
+ * where: {
861
+ * // ... provide filter here
862
+ * },
863
+ * data: [
864
+ * // ... provide data here
865
+ * ]
866
+ * })
867
+ *
868
+ * // Update zero or more AgentRepositories and only return the `id`
869
+ * const agentRepositoryWithIdOnly = await prisma.agentRepository.updateManyAndReturn({
870
+ * select: { id: true },
871
+ * where: {
872
+ * // ... provide filter here
873
+ * },
874
+ * data: [
875
+ * // ... provide data here
876
+ * ]
877
+ * })
878
+ * Note, that providing `undefined` is treated as the value not being there.
879
+ * Read more here: https://pris.ly/d/null-undefined
880
+ *
881
+ */
882
+ updateManyAndReturn<T extends AgentRepositoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentRepositoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
883
+ /**
884
+ * Create or update one AgentRepository.
885
+ * @param {AgentRepositoryUpsertArgs} args - Arguments to update or create a AgentRepository.
886
+ * @example
887
+ * // Update or create a AgentRepository
888
+ * const agentRepository = await prisma.agentRepository.upsert({
889
+ * create: {
890
+ * // ... data to create a AgentRepository
891
+ * },
892
+ * update: {
893
+ * // ... in case it already exists, update
894
+ * },
895
+ * where: {
896
+ * // ... the filter for the AgentRepository we want to update
897
+ * }
898
+ * })
899
+ */
900
+ upsert<T extends AgentRepositoryUpsertArgs>(args: Prisma.SelectSubset<T, AgentRepositoryUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentRepositoryClient<runtime.Types.Result.GetResult<Prisma.$AgentRepositoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
901
+ /**
902
+ * Count the number of AgentRepositories.
903
+ * Note, that providing `undefined` is treated as the value not being there.
904
+ * Read more here: https://pris.ly/d/null-undefined
905
+ * @param {AgentRepositoryCountArgs} args - Arguments to filter AgentRepositories to count.
906
+ * @example
907
+ * // Count the number of AgentRepositories
908
+ * const count = await prisma.agentRepository.count({
909
+ * where: {
910
+ * // ... the filter for the AgentRepositories we want to count
911
+ * }
912
+ * })
913
+ **/
914
+ count<T extends AgentRepositoryCountArgs>(args?: Prisma.Subset<T, AgentRepositoryCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentRepositoryCountAggregateOutputType> : number>;
915
+ /**
916
+ * Allows you to perform aggregations operations on a AgentRepository.
917
+ * Note, that providing `undefined` is treated as the value not being there.
918
+ * Read more here: https://pris.ly/d/null-undefined
919
+ * @param {AgentRepositoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
920
+ * @example
921
+ * // Ordered by age ascending
922
+ * // Where email contains prisma.io
923
+ * // Limited to the 10 users
924
+ * const aggregations = await prisma.user.aggregate({
925
+ * _avg: {
926
+ * age: true,
927
+ * },
928
+ * where: {
929
+ * email: {
930
+ * contains: "prisma.io",
931
+ * },
932
+ * },
933
+ * orderBy: {
934
+ * age: "asc",
935
+ * },
936
+ * take: 10,
937
+ * })
938
+ **/
939
+ aggregate<T extends AgentRepositoryAggregateArgs>(args: Prisma.Subset<T, AgentRepositoryAggregateArgs>): Prisma.PrismaPromise<GetAgentRepositoryAggregateType<T>>;
940
+ /**
941
+ * Group by AgentRepository.
942
+ * Note, that providing `undefined` is treated as the value not being there.
943
+ * Read more here: https://pris.ly/d/null-undefined
944
+ * @param {AgentRepositoryGroupByArgs} args - Group by arguments.
945
+ * @example
946
+ * // Group by city, order by createdAt, get count
947
+ * const result = await prisma.user.groupBy({
948
+ * by: ['city', 'createdAt'],
949
+ * orderBy: {
950
+ * createdAt: true
951
+ * },
952
+ * _count: {
953
+ * _all: true
954
+ * },
955
+ * })
956
+ *
957
+ **/
958
+ groupBy<T extends AgentRepositoryGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
959
+ orderBy: AgentRepositoryGroupByArgs['orderBy'];
960
+ } : {
961
+ orderBy?: AgentRepositoryGroupByArgs['orderBy'];
962
+ }, 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 ? {
963
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
964
+ Error,
965
+ 'Field ',
966
+ P,
967
+ ` in "having" needs to be provided in "by"`
968
+ ];
969
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
970
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
971
+ }[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 ? {} : {
972
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
973
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
974
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
975
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentRepositoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentRepositoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
976
+ /**
977
+ * Fields of the AgentRepository model
978
+ */
979
+ readonly fields: AgentRepositoryFieldRefs;
980
+ }
981
+ /**
982
+ * The delegate class that acts as a "Promise-like" for AgentRepository.
983
+ * Why is this prefixed with `Prisma__`?
984
+ * Because we want to prevent naming conflicts as mentioned in
985
+ * https://github.com/prisma/prisma-client-js/issues/707
986
+ */
987
+ export interface Prisma__AgentRepositoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
988
+ readonly [Symbol.toStringTag]: "PrismaPromise";
989
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
990
+ /**
991
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
992
+ * @param onfulfilled The callback to execute when the Promise is resolved.
993
+ * @param onrejected The callback to execute when the Promise is rejected.
994
+ * @returns A Promise for the completion of which ever callback is executed.
995
+ */
996
+ 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>;
997
+ /**
998
+ * Attaches a callback for only the rejection of the Promise.
999
+ * @param onrejected The callback to execute when the Promise is rejected.
1000
+ * @returns A Promise for the completion of the callback.
1001
+ */
1002
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1003
+ /**
1004
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1005
+ * resolved value cannot be modified from the callback.
1006
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1007
+ * @returns A Promise for the completion of the callback.
1008
+ */
1009
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1010
+ }
1011
+ /**
1012
+ * Fields of the AgentRepository model
1013
+ */
1014
+ export interface AgentRepositoryFieldRefs {
1015
+ readonly id: Prisma.FieldRef<"AgentRepository", 'String'>;
1016
+ readonly agentId: Prisma.FieldRef<"AgentRepository", 'String'>;
1017
+ readonly provider: Prisma.FieldRef<"AgentRepository", 'String'>;
1018
+ readonly repository: Prisma.FieldRef<"AgentRepository", 'String'>;
1019
+ readonly access: Prisma.FieldRef<"AgentRepository", 'String'>;
1020
+ readonly triggers: Prisma.FieldRef<"AgentRepository", 'String[]'>;
1021
+ readonly checkName: Prisma.FieldRef<"AgentRepository", 'String'>;
1022
+ readonly createdAt: Prisma.FieldRef<"AgentRepository", 'DateTime'>;
1023
+ readonly authorizedVia: Prisma.FieldRef<"AgentRepository", 'String'>;
1024
+ readonly authorizedById: Prisma.FieldRef<"AgentRepository", 'String'>;
1025
+ readonly authorizedAt: Prisma.FieldRef<"AgentRepository", 'DateTime'>;
1026
+ }
1027
+ /**
1028
+ * AgentRepository findUnique
1029
+ */
1030
+ export type AgentRepositoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1031
+ /**
1032
+ * Select specific fields to fetch from the AgentRepository
1033
+ */
1034
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1035
+ /**
1036
+ * Omit specific fields from the AgentRepository
1037
+ */
1038
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1039
+ /**
1040
+ * Choose, which related nodes to fetch as well
1041
+ */
1042
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1043
+ /**
1044
+ * Filter, which AgentRepository to fetch.
1045
+ */
1046
+ where: Prisma.AgentRepositoryWhereUniqueInput;
1047
+ };
1048
+ /**
1049
+ * AgentRepository findUniqueOrThrow
1050
+ */
1051
+ export type AgentRepositoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1052
+ /**
1053
+ * Select specific fields to fetch from the AgentRepository
1054
+ */
1055
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1056
+ /**
1057
+ * Omit specific fields from the AgentRepository
1058
+ */
1059
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1060
+ /**
1061
+ * Choose, which related nodes to fetch as well
1062
+ */
1063
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1064
+ /**
1065
+ * Filter, which AgentRepository to fetch.
1066
+ */
1067
+ where: Prisma.AgentRepositoryWhereUniqueInput;
1068
+ };
1069
+ /**
1070
+ * AgentRepository findFirst
1071
+ */
1072
+ export type AgentRepositoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1073
+ /**
1074
+ * Select specific fields to fetch from the AgentRepository
1075
+ */
1076
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1077
+ /**
1078
+ * Omit specific fields from the AgentRepository
1079
+ */
1080
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1081
+ /**
1082
+ * Choose, which related nodes to fetch as well
1083
+ */
1084
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1085
+ /**
1086
+ * Filter, which AgentRepository to fetch.
1087
+ */
1088
+ where?: Prisma.AgentRepositoryWhereInput;
1089
+ /**
1090
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1091
+ *
1092
+ * Determine the order of AgentRepositories to fetch.
1093
+ */
1094
+ orderBy?: Prisma.AgentRepositoryOrderByWithRelationInput | Prisma.AgentRepositoryOrderByWithRelationInput[];
1095
+ /**
1096
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1097
+ *
1098
+ * Sets the position for searching for AgentRepositories.
1099
+ */
1100
+ cursor?: Prisma.AgentRepositoryWhereUniqueInput;
1101
+ /**
1102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1103
+ *
1104
+ * Take `±n` AgentRepositories from the position of the cursor.
1105
+ */
1106
+ take?: number;
1107
+ /**
1108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1109
+ *
1110
+ * Skip the first `n` AgentRepositories.
1111
+ */
1112
+ skip?: number;
1113
+ /**
1114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1115
+ *
1116
+ * Filter by unique combinations of AgentRepositories.
1117
+ */
1118
+ distinct?: Prisma.AgentRepositoryScalarFieldEnum | Prisma.AgentRepositoryScalarFieldEnum[];
1119
+ };
1120
+ /**
1121
+ * AgentRepository findFirstOrThrow
1122
+ */
1123
+ export type AgentRepositoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1124
+ /**
1125
+ * Select specific fields to fetch from the AgentRepository
1126
+ */
1127
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1128
+ /**
1129
+ * Omit specific fields from the AgentRepository
1130
+ */
1131
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1132
+ /**
1133
+ * Choose, which related nodes to fetch as well
1134
+ */
1135
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1136
+ /**
1137
+ * Filter, which AgentRepository to fetch.
1138
+ */
1139
+ where?: Prisma.AgentRepositoryWhereInput;
1140
+ /**
1141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1142
+ *
1143
+ * Determine the order of AgentRepositories to fetch.
1144
+ */
1145
+ orderBy?: Prisma.AgentRepositoryOrderByWithRelationInput | Prisma.AgentRepositoryOrderByWithRelationInput[];
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1148
+ *
1149
+ * Sets the position for searching for AgentRepositories.
1150
+ */
1151
+ cursor?: Prisma.AgentRepositoryWhereUniqueInput;
1152
+ /**
1153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1154
+ *
1155
+ * Take `±n` AgentRepositories from the position of the cursor.
1156
+ */
1157
+ take?: number;
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1160
+ *
1161
+ * Skip the first `n` AgentRepositories.
1162
+ */
1163
+ skip?: number;
1164
+ /**
1165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1166
+ *
1167
+ * Filter by unique combinations of AgentRepositories.
1168
+ */
1169
+ distinct?: Prisma.AgentRepositoryScalarFieldEnum | Prisma.AgentRepositoryScalarFieldEnum[];
1170
+ };
1171
+ /**
1172
+ * AgentRepository findMany
1173
+ */
1174
+ export type AgentRepositoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1175
+ /**
1176
+ * Select specific fields to fetch from the AgentRepository
1177
+ */
1178
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1179
+ /**
1180
+ * Omit specific fields from the AgentRepository
1181
+ */
1182
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1183
+ /**
1184
+ * Choose, which related nodes to fetch as well
1185
+ */
1186
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1187
+ /**
1188
+ * Filter, which AgentRepositories to fetch.
1189
+ */
1190
+ where?: Prisma.AgentRepositoryWhereInput;
1191
+ /**
1192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1193
+ *
1194
+ * Determine the order of AgentRepositories to fetch.
1195
+ */
1196
+ orderBy?: Prisma.AgentRepositoryOrderByWithRelationInput | Prisma.AgentRepositoryOrderByWithRelationInput[];
1197
+ /**
1198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1199
+ *
1200
+ * Sets the position for listing AgentRepositories.
1201
+ */
1202
+ cursor?: Prisma.AgentRepositoryWhereUniqueInput;
1203
+ /**
1204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1205
+ *
1206
+ * Take `±n` AgentRepositories from the position of the cursor.
1207
+ */
1208
+ take?: number;
1209
+ /**
1210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1211
+ *
1212
+ * Skip the first `n` AgentRepositories.
1213
+ */
1214
+ skip?: number;
1215
+ /**
1216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1217
+ *
1218
+ * Filter by unique combinations of AgentRepositories.
1219
+ */
1220
+ distinct?: Prisma.AgentRepositoryScalarFieldEnum | Prisma.AgentRepositoryScalarFieldEnum[];
1221
+ };
1222
+ /**
1223
+ * AgentRepository create
1224
+ */
1225
+ export type AgentRepositoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1226
+ /**
1227
+ * Select specific fields to fetch from the AgentRepository
1228
+ */
1229
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1230
+ /**
1231
+ * Omit specific fields from the AgentRepository
1232
+ */
1233
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1234
+ /**
1235
+ * Choose, which related nodes to fetch as well
1236
+ */
1237
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1238
+ /**
1239
+ * The data needed to create a AgentRepository.
1240
+ */
1241
+ data: Prisma.XOR<Prisma.AgentRepositoryCreateInput, Prisma.AgentRepositoryUncheckedCreateInput>;
1242
+ };
1243
+ /**
1244
+ * AgentRepository createMany
1245
+ */
1246
+ export type AgentRepositoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1247
+ /**
1248
+ * The data used to create many AgentRepositories.
1249
+ */
1250
+ data: Prisma.AgentRepositoryCreateManyInput | Prisma.AgentRepositoryCreateManyInput[];
1251
+ skipDuplicates?: boolean;
1252
+ };
1253
+ /**
1254
+ * AgentRepository createManyAndReturn
1255
+ */
1256
+ export type AgentRepositoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1257
+ /**
1258
+ * Select specific fields to fetch from the AgentRepository
1259
+ */
1260
+ select?: Prisma.AgentRepositorySelectCreateManyAndReturn<ExtArgs> | null;
1261
+ /**
1262
+ * Omit specific fields from the AgentRepository
1263
+ */
1264
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1265
+ /**
1266
+ * The data used to create many AgentRepositories.
1267
+ */
1268
+ data: Prisma.AgentRepositoryCreateManyInput | Prisma.AgentRepositoryCreateManyInput[];
1269
+ skipDuplicates?: boolean;
1270
+ /**
1271
+ * Choose, which related nodes to fetch as well
1272
+ */
1273
+ include?: Prisma.AgentRepositoryIncludeCreateManyAndReturn<ExtArgs> | null;
1274
+ };
1275
+ /**
1276
+ * AgentRepository update
1277
+ */
1278
+ export type AgentRepositoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1279
+ /**
1280
+ * Select specific fields to fetch from the AgentRepository
1281
+ */
1282
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1283
+ /**
1284
+ * Omit specific fields from the AgentRepository
1285
+ */
1286
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1287
+ /**
1288
+ * Choose, which related nodes to fetch as well
1289
+ */
1290
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1291
+ /**
1292
+ * The data needed to update a AgentRepository.
1293
+ */
1294
+ data: Prisma.XOR<Prisma.AgentRepositoryUpdateInput, Prisma.AgentRepositoryUncheckedUpdateInput>;
1295
+ /**
1296
+ * Choose, which AgentRepository to update.
1297
+ */
1298
+ where: Prisma.AgentRepositoryWhereUniqueInput;
1299
+ };
1300
+ /**
1301
+ * AgentRepository updateMany
1302
+ */
1303
+ export type AgentRepositoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ /**
1305
+ * The data used to update AgentRepositories.
1306
+ */
1307
+ data: Prisma.XOR<Prisma.AgentRepositoryUpdateManyMutationInput, Prisma.AgentRepositoryUncheckedUpdateManyInput>;
1308
+ /**
1309
+ * Filter which AgentRepositories to update
1310
+ */
1311
+ where?: Prisma.AgentRepositoryWhereInput;
1312
+ /**
1313
+ * Limit how many AgentRepositories to update.
1314
+ */
1315
+ limit?: number;
1316
+ };
1317
+ /**
1318
+ * AgentRepository updateManyAndReturn
1319
+ */
1320
+ export type AgentRepositoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1321
+ /**
1322
+ * Select specific fields to fetch from the AgentRepository
1323
+ */
1324
+ select?: Prisma.AgentRepositorySelectUpdateManyAndReturn<ExtArgs> | null;
1325
+ /**
1326
+ * Omit specific fields from the AgentRepository
1327
+ */
1328
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1329
+ /**
1330
+ * The data used to update AgentRepositories.
1331
+ */
1332
+ data: Prisma.XOR<Prisma.AgentRepositoryUpdateManyMutationInput, Prisma.AgentRepositoryUncheckedUpdateManyInput>;
1333
+ /**
1334
+ * Filter which AgentRepositories to update
1335
+ */
1336
+ where?: Prisma.AgentRepositoryWhereInput;
1337
+ /**
1338
+ * Limit how many AgentRepositories to update.
1339
+ */
1340
+ limit?: number;
1341
+ /**
1342
+ * Choose, which related nodes to fetch as well
1343
+ */
1344
+ include?: Prisma.AgentRepositoryIncludeUpdateManyAndReturn<ExtArgs> | null;
1345
+ };
1346
+ /**
1347
+ * AgentRepository upsert
1348
+ */
1349
+ export type AgentRepositoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1350
+ /**
1351
+ * Select specific fields to fetch from the AgentRepository
1352
+ */
1353
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1354
+ /**
1355
+ * Omit specific fields from the AgentRepository
1356
+ */
1357
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1358
+ /**
1359
+ * Choose, which related nodes to fetch as well
1360
+ */
1361
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1362
+ /**
1363
+ * The filter to search for the AgentRepository to update in case it exists.
1364
+ */
1365
+ where: Prisma.AgentRepositoryWhereUniqueInput;
1366
+ /**
1367
+ * In case the AgentRepository found by the `where` argument doesn't exist, create a new AgentRepository with this data.
1368
+ */
1369
+ create: Prisma.XOR<Prisma.AgentRepositoryCreateInput, Prisma.AgentRepositoryUncheckedCreateInput>;
1370
+ /**
1371
+ * In case the AgentRepository was found with the provided `where` argument, update it with this data.
1372
+ */
1373
+ update: Prisma.XOR<Prisma.AgentRepositoryUpdateInput, Prisma.AgentRepositoryUncheckedUpdateInput>;
1374
+ };
1375
+ /**
1376
+ * AgentRepository delete
1377
+ */
1378
+ export type AgentRepositoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1379
+ /**
1380
+ * Select specific fields to fetch from the AgentRepository
1381
+ */
1382
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1383
+ /**
1384
+ * Omit specific fields from the AgentRepository
1385
+ */
1386
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1387
+ /**
1388
+ * Choose, which related nodes to fetch as well
1389
+ */
1390
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1391
+ /**
1392
+ * Filter which AgentRepository to delete.
1393
+ */
1394
+ where: Prisma.AgentRepositoryWhereUniqueInput;
1395
+ };
1396
+ /**
1397
+ * AgentRepository deleteMany
1398
+ */
1399
+ export type AgentRepositoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ /**
1401
+ * Filter which AgentRepositories to delete
1402
+ */
1403
+ where?: Prisma.AgentRepositoryWhereInput;
1404
+ /**
1405
+ * Limit how many AgentRepositories to delete.
1406
+ */
1407
+ limit?: number;
1408
+ };
1409
+ /**
1410
+ * AgentRepository without action
1411
+ */
1412
+ export type AgentRepositoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1413
+ /**
1414
+ * Select specific fields to fetch from the AgentRepository
1415
+ */
1416
+ select?: Prisma.AgentRepositorySelect<ExtArgs> | null;
1417
+ /**
1418
+ * Omit specific fields from the AgentRepository
1419
+ */
1420
+ omit?: Prisma.AgentRepositoryOmit<ExtArgs> | null;
1421
+ /**
1422
+ * Choose, which related nodes to fetch as well
1423
+ */
1424
+ include?: Prisma.AgentRepositoryInclude<ExtArgs> | null;
1425
+ };