@wardby/cli 0.5.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/.env.example +33 -0
  2. package/README.md +25 -14
  3. package/dist/claude-coding-worker/context.d.ts +22 -0
  4. package/dist/claude-coding-worker/context.js +92 -0
  5. package/dist/claude-coding-worker/driver.d.ts +7 -1
  6. package/dist/claude-coding-worker/driver.js +38 -5
  7. package/dist/claude-coding-worker/sdk.js +13 -4
  8. package/dist/cli-help.d.ts +1 -1
  9. package/dist/cli-help.js +5 -2
  10. package/dist/cli-native-mode.d.ts +9 -0
  11. package/dist/cli-native-mode.js +20 -0
  12. package/dist/cli.d.ts +3 -1
  13. package/dist/cli.js +141 -5
  14. package/dist/coding/claude-context.d.ts +45 -0
  15. package/dist/coding/claude-context.js +434 -0
  16. package/dist/coding/profile.d.ts +12 -0
  17. package/dist/coding/profile.js +6 -0
  18. package/dist/coding/protocol.d.ts +104 -0
  19. package/dist/coding/protocol.js +87 -3
  20. package/dist/coding-worker/artifact.d.ts +8 -0
  21. package/dist/coding-worker/artifact.js +2 -2
  22. package/dist/coding-worker/driver.js +2 -0
  23. package/dist/coding-worker/sdk.d.ts +6 -0
  24. package/dist/coding-worker/sdk.js +1 -0
  25. package/dist/coding-worker/skills.d.ts +23 -0
  26. package/dist/coding-worker/skills.js +117 -0
  27. package/dist/coding-worker/types.d.ts +2 -0
  28. package/dist/config/github-allowed-accounts.d.ts +15 -0
  29. package/dist/config/github-allowed-accounts.js +36 -0
  30. package/dist/config/low-power.d.ts +12 -0
  31. package/dist/config/low-power.js +18 -0
  32. package/dist/config/mobile.d.ts +12 -0
  33. package/dist/config/mobile.js +18 -0
  34. package/dist/config/providers.d.ts +53 -0
  35. package/dist/config/providers.js +92 -6
  36. package/dist/core/db.d.ts +16 -6
  37. package/dist/core/db.js +12 -10
  38. package/dist/core/dispatch.d.ts +11 -0
  39. package/dist/core/dispatch.js +36 -1
  40. package/dist/core/engine-native.js +9 -5
  41. package/dist/core/host-events.d.ts +49 -3
  42. package/dist/core/host-events.js +289 -15
  43. package/dist/core/issue-bridge.js +42 -2
  44. package/dist/core/issue-events.js +12 -1
  45. package/dist/core/issue-status.js +14 -3
  46. package/dist/core/merge-order-check.d.ts +129 -0
  47. package/dist/core/merge-order-check.js +336 -0
  48. package/dist/core/notification-dispatcher.d.ts +70 -0
  49. package/dist/core/notification-dispatcher.js +368 -0
  50. package/dist/core/notification-templates.d.ts +25 -0
  51. package/dist/core/notification-templates.js +105 -0
  52. package/dist/core/notifications.d.ts +10 -0
  53. package/dist/core/notifications.js +38 -0
  54. package/dist/core/pg-auth.d.ts +22 -0
  55. package/dist/core/pg-auth.js +152 -0
  56. package/dist/core/power-composition.d.ts +16 -0
  57. package/dist/core/power-composition.js +37 -0
  58. package/dist/core/power-idle.d.ts +14 -0
  59. package/dist/core/power-idle.js +30 -0
  60. package/dist/core/power.d.ts +71 -0
  61. package/dist/core/power.js +202 -0
  62. package/dist/core/reconciler.d.ts +4 -2
  63. package/dist/core/reconciler.js +29 -5
  64. package/dist/core/related-pull-requests.d.ts +48 -4
  65. package/dist/core/related-pull-requests.js +113 -11
  66. package/dist/core/repo-access.d.ts +15 -0
  67. package/dist/core/repo-access.js +66 -0
  68. package/dist/core/review-fix.d.ts +37 -0
  69. package/dist/core/review-fix.js +207 -6
  70. package/dist/core/review-host-tools.d.ts +20 -0
  71. package/dist/core/review-host-tools.js +58 -2
  72. package/dist/core/runner.d.ts +336 -3
  73. package/dist/core/runner.js +894 -317
  74. package/dist/core/secret-broker-config.d.ts +103 -0
  75. package/dist/core/secret-broker-config.js +112 -0
  76. package/dist/core/secrets.d.ts +39 -4
  77. package/dist/core/secrets.js +148 -40
  78. package/dist/core/workflow-event-recorder.d.ts +14 -0
  79. package/dist/core/workflow-event-recorder.js +120 -0
  80. package/dist/core/workflow-events.d.ts +82 -0
  81. package/dist/core/workflow-events.js +44 -0
  82. package/dist/core/workflow-run-events.d.ts +16 -0
  83. package/dist/core/workflow-run-events.js +40 -0
  84. package/dist/generated/prisma/browser.d.ts +58 -0
  85. package/dist/generated/prisma/client.d.ts +58 -0
  86. package/dist/generated/prisma/commonInputTypes.d.ts +150 -0
  87. package/dist/generated/prisma/enums.d.ts +27 -0
  88. package/dist/generated/prisma/enums.js +23 -0
  89. package/dist/generated/prisma/internal/class.d.ts +88 -0
  90. package/dist/generated/prisma/internal/class.js +4 -4
  91. package/dist/generated/prisma/internal/prismaNamespace.d.ts +772 -1
  92. package/dist/generated/prisma/internal/prismaNamespace.js +135 -4
  93. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +139 -0
  94. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +135 -4
  95. package/dist/generated/prisma/models/Agent.d.ts +360 -1
  96. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +73 -1
  97. package/dist/generated/prisma/models/CodingRun.d.ts +205 -1
  98. package/dist/generated/prisma/models/DeferredReview.d.ts +78 -1
  99. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +1675 -0
  100. package/dist/generated/prisma/models/NativeGatewayCall.js +1 -0
  101. package/dist/generated/prisma/models/NativeGatewaySession.d.ts +1517 -0
  102. package/dist/generated/prisma/models/NativeGatewaySession.js +1 -0
  103. package/dist/generated/prisma/models/NativeWarmWorker.d.ts +1296 -0
  104. package/dist/generated/prisma/models/NativeWarmWorker.js +1 -0
  105. package/dist/generated/prisma/models/NotificationChannel.d.ts +1543 -0
  106. package/dist/generated/prisma/models/NotificationChannel.js +1 -0
  107. package/dist/generated/prisma/models/NotificationDelivery.d.ts +1502 -0
  108. package/dist/generated/prisma/models/NotificationDelivery.js +1 -0
  109. package/dist/generated/prisma/models/NotificationThread.d.ts +1090 -0
  110. package/dist/generated/prisma/models/NotificationThread.js +1 -0
  111. package/dist/generated/prisma/models/Run.d.ts +826 -1
  112. package/dist/generated/prisma/models/RunHostCheck.d.ts +36 -1
  113. package/dist/generated/prisma/models/Secret.d.ts +37 -1
  114. package/dist/generated/prisma/models/SecretBrokerChange.d.ts +1101 -0
  115. package/dist/generated/prisma/models/SecretBrokerChange.js +1 -0
  116. package/dist/generated/prisma/models/WorkflowEvent.d.ts +1422 -0
  117. package/dist/generated/prisma/models/WorkflowEvent.js +1 -0
  118. package/dist/generated/prisma/models.d.ts +8 -0
  119. package/dist/help/build.js +4 -2
  120. package/dist/help/catalog.d.ts +1 -1
  121. package/dist/help/catalog.js +31 -6
  122. package/dist/help-index.json +1363 -176
  123. package/dist/import/create.js +17 -0
  124. package/dist/import/neutral-schema.d.ts +6 -2
  125. package/dist/import/neutral-schema.js +2 -0
  126. package/dist/mcp/auth/access.d.ts +1 -0
  127. package/dist/mcp/auth/repo-authorization.js +14 -0
  128. package/dist/mcp/auth/resource-server.d.ts +2 -1
  129. package/dist/mcp/auth/resource-server.js +7 -2
  130. package/dist/mcp/auth/self-hosted/browser.d.ts +1 -1
  131. package/dist/mcp/auth/self-hosted/browser.js +19 -6
  132. package/dist/mcp/context.d.ts +6 -0
  133. package/dist/mcp/host-events/github-ingress.d.ts +23 -1
  134. package/dist/mcp/host-events/github-ingress.js +68 -0
  135. package/dist/mcp/index.d.ts +13 -0
  136. package/dist/mcp/index.js +59 -10
  137. package/dist/mcp/tools/agents.js +82 -11
  138. package/dist/mcp/tools/notification-channels.d.ts +2 -0
  139. package/dist/mcp/tools/notification-channels.js +293 -0
  140. package/dist/mcp/tools/power.d.ts +2 -0
  141. package/dist/mcp/tools/power.js +77 -0
  142. package/dist/mcp/tools/runs.d.ts +0 -6
  143. package/dist/mcp/tools/runs.js +7 -2
  144. package/dist/mcp/tools/secret-broker-compat.d.ts +12 -0
  145. package/dist/mcp/tools/secret-broker-compat.js +23 -0
  146. package/dist/mcp/tools/secret-elicitation-form.d.ts +22 -2
  147. package/dist/mcp/tools/secret-elicitation-form.js +200 -10
  148. package/dist/mcp/tools/secret-elicitation-server.js +8 -1
  149. package/dist/mcp/tools/secret-elicitation.d.ts +38 -3
  150. package/dist/mcp/tools/secret-elicitation.js +110 -12
  151. package/dist/mcp/tools/secrets.js +184 -7
  152. package/dist/mcp/tools/tools.d.ts +1 -1
  153. package/dist/mcp/tools/tools.js +22 -2
  154. package/dist/native-worker/composition.d.ts +23 -0
  155. package/dist/native-worker/composition.js +77 -0
  156. package/dist/native-worker/docker-isolation.d.ts +65 -0
  157. package/dist/native-worker/docker-isolation.js +183 -0
  158. package/dist/native-worker/docker-launcher.d.ts +74 -0
  159. package/dist/native-worker/docker-launcher.js +237 -0
  160. package/dist/native-worker/gateway-server.d.ts +39 -0
  161. package/dist/native-worker/gateway-server.js +315 -0
  162. package/dist/native-worker/gateway.d.ts +44 -0
  163. package/dist/native-worker/gateway.js +197 -0
  164. package/dist/native-worker/http-server.d.ts +22 -0
  165. package/dist/native-worker/http-server.js +109 -0
  166. package/dist/native-worker/http-transport.d.ts +17 -0
  167. package/dist/native-worker/http-transport.js +88 -0
  168. package/dist/native-worker/kubernetes-isolation.d.ts +90 -0
  169. package/dist/native-worker/kubernetes-isolation.js +218 -0
  170. package/dist/native-worker/kubernetes-launcher.d.ts +102 -0
  171. package/dist/native-worker/kubernetes-launcher.js +335 -0
  172. package/dist/native-worker/launch.d.ts +45 -0
  173. package/dist/native-worker/launch.js +44 -0
  174. package/dist/native-worker/ledger.d.ts +109 -0
  175. package/dist/native-worker/ledger.js +192 -0
  176. package/dist/native-worker/loopback.d.ts +12 -0
  177. package/dist/native-worker/loopback.js +49 -0
  178. package/dist/native-worker/main.d.ts +7 -0
  179. package/dist/native-worker/main.js +74 -0
  180. package/dist/native-worker/protocol.d.ts +744 -0
  181. package/dist/native-worker/protocol.js +200 -0
  182. package/dist/native-worker/sandbox-executor.d.ts +68 -0
  183. package/dist/native-worker/sandbox-executor.js +210 -0
  184. package/dist/native-worker/stdio.d.ts +29 -0
  185. package/dist/native-worker/stdio.js +188 -0
  186. package/dist/native-worker/warm-delivery.d.ts +16 -0
  187. package/dist/native-worker/warm-delivery.js +33 -0
  188. package/dist/native-worker/warm-pool-ledger.d.ts +39 -0
  189. package/dist/native-worker/warm-pool-ledger.js +73 -0
  190. package/dist/native-worker/warm-pool.d.ts +107 -0
  191. package/dist/native-worker/warm-pool.js +283 -0
  192. package/dist/native-worker/worker.d.ts +17 -0
  193. package/dist/native-worker/worker.js +115 -0
  194. package/dist/providers/auth/authorization-server.d.ts +3 -0
  195. package/dist/providers/auth/index.js +2 -0
  196. package/dist/providers/auth/self-hosted.d.ts +13 -1
  197. package/dist/providers/auth/self-hosted.js +54 -4
  198. package/dist/providers/chat/fake.d.ts +46 -0
  199. package/dist/providers/chat/fake.js +39 -0
  200. package/dist/providers/chat/index.d.ts +4 -0
  201. package/dist/providers/chat/index.js +8 -0
  202. package/dist/providers/chat/slack.d.ts +37 -0
  203. package/dist/providers/chat/slack.js +105 -0
  204. package/dist/providers/chat/types.d.ts +42 -0
  205. package/dist/providers/chat/types.js +19 -0
  206. package/dist/providers/engine/types.d.ts +19 -0
  207. package/dist/providers/engine/types.js +22 -0
  208. package/dist/providers/executor/composition.d.ts +24 -1
  209. package/dist/providers/executor/composition.js +39 -6
  210. package/dist/providers/executor/container.d.ts +24 -1
  211. package/dist/providers/executor/container.js +101 -11
  212. package/dist/providers/executor/dbos.d.ts +42 -0
  213. package/dist/providers/executor/dbos.js +118 -12
  214. package/dist/providers/executor/deferred.d.ts +56 -0
  215. package/dist/providers/executor/deferred.js +119 -0
  216. package/dist/providers/executor/routing.d.ts +37 -10
  217. package/dist/providers/executor/routing.js +73 -32
  218. package/dist/providers/executor/types.d.ts +12 -0
  219. package/dist/providers/jobs/docker.js +3 -3
  220. package/dist/providers/jobs/fake-kubernetes-api.d.ts +21 -2
  221. package/dist/providers/jobs/fake-kubernetes-api.js +42 -1
  222. package/dist/providers/jobs/kubernetes-api.d.ts +17 -1
  223. package/dist/providers/jobs/kubernetes-api.js +7 -0
  224. package/dist/providers/jobs/kubernetes-client.d.ts +10 -1
  225. package/dist/providers/jobs/kubernetes-client.js +52 -3
  226. package/dist/providers/jobs/kubernetes-dry-run-fixture.d.ts +6 -1
  227. package/dist/providers/jobs/kubernetes-dry-run-fixture.js +6 -3
  228. package/dist/providers/jobs/kubernetes-isolation.d.ts +3 -1
  229. package/dist/providers/jobs/kubernetes-isolation.js +6 -0
  230. package/dist/providers/jobs/kubernetes-platform.d.ts +4 -1
  231. package/dist/providers/jobs/kubernetes-platform.js +38 -1
  232. package/dist/providers/jobs/kubernetes-preflight.d.ts +2 -1
  233. package/dist/providers/jobs/kubernetes-preflight.js +4 -2
  234. package/dist/providers/jobs/kubernetes.d.ts +36 -1
  235. package/dist/providers/jobs/kubernetes.js +74 -4
  236. package/dist/providers/jobs/metadata-probes.d.ts +11 -0
  237. package/dist/providers/jobs/metadata-probes.js +13 -0
  238. package/dist/providers/jobs/types.d.ts +9 -0
  239. package/dist/providers/review-host/github.d.ts +11 -1
  240. package/dist/providers/review-host/github.js +50 -0
  241. package/dist/providers/review-host/types.d.ts +23 -0
  242. package/dist/providers/vcs/github.d.ts +32 -6
  243. package/dist/providers/vcs/github.js +74 -16
  244. package/dist/quickstart/coding-seed.d.ts +10 -3
  245. package/dist/quickstart/coding-seed.js +74 -3
  246. package/dist/quickstart/images.d.ts +2 -0
  247. package/dist/quickstart/images.js +7 -1
  248. package/dist/quickstart/reviewer-prompt.d.ts +1 -1
  249. package/dist/quickstart/reviewer-prompt.js +1 -1
  250. package/dist/quickstart-images.json +1 -1
  251. package/dist/sandbox/brokered-fetch.d.ts +23 -0
  252. package/dist/sandbox/brokered-fetch.js +37 -0
  253. package/dist/sandbox/host-functions.d.ts +34 -0
  254. package/dist/sandbox/host-functions.js +144 -80
  255. package/dist/sandbox/prelude.js +7 -1
  256. package/dist/sandbox/run-in-sandbox.d.ts +19 -0
  257. package/dist/sandbox/run-in-sandbox.js +28 -10
  258. package/dist/sandbox/safe-fetch.d.ts +2 -0
  259. package/dist/sandbox/safe-fetch.js +3 -1
  260. package/dist/sandbox/secret-broker-sigv4.d.ts +2 -0
  261. package/dist/sandbox/secret-broker-sigv4.js +49 -0
  262. package/dist/sandbox/secret-broker.d.ts +34 -0
  263. package/dist/sandbox/secret-broker.js +162 -0
  264. package/dist/sandbox/user-tool.d.ts +14 -0
  265. package/dist/sandbox/user-tool.js +32 -0
  266. package/dist/serve.js +18 -0
  267. package/dist/viewer/api-schema.d.ts +210 -14
  268. package/dist/viewer/api-schema.js +22 -0
  269. package/dist/viewer/build-schemas.js +4 -1
  270. package/dist/viewer/event-bus.d.ts +6 -0
  271. package/dist/viewer/event-bus.js +16 -7
  272. package/dist/viewer/graph.d.ts +5 -2
  273. package/dist/viewer/graph.js +7 -2
  274. package/dist/viewer/http.d.ts +0 -1
  275. package/dist/viewer/http.js +2 -2
  276. package/dist/viewer/infra.js +25 -2
  277. package/dist/viewer/limits.d.ts +4 -0
  278. package/dist/viewer/limits.js +4 -0
  279. package/dist/viewer/openapi.d.ts +15 -0
  280. package/dist/viewer/openapi.js +172 -0
  281. package/docs/README.md +7 -0
  282. package/docs/agent-recipes.md +57 -8
  283. package/docs/architecture-runtime.md +16 -1
  284. package/docs/code-review-agents.md +139 -5
  285. package/docs/coding-agent-setup.md +113 -5
  286. package/docs/coding-packages.md +4 -2
  287. package/docs/coding-services.md +3 -1
  288. package/docs/coding-worker-byo-images.md +198 -6
  289. package/docs/coding-worker-isolation.md +68 -14
  290. package/docs/getting-started-gke.md +225 -9
  291. package/docs/getting-started-identity-provider.md +21 -10
  292. package/docs/getting-started.md +5 -4
  293. package/docs/jira-agents.md +5 -1
  294. package/docs/native-sandbox.md +635 -0
  295. package/docs/release-verification.md +9 -0
  296. package/docs/security-deployment.md +113 -12
  297. package/docs/slack-notifications.md +252 -0
  298. package/docs/tool-secrets.md +252 -0
  299. package/docs/viewer-api.md +46 -5
  300. package/docs/viewer-api.openapi.yml +1404 -0
  301. package/help/admin-viewer.md +6 -2
  302. package/help/agent-recipes.md +27 -0
  303. package/help/architecture-agent.md +1 -1
  304. package/help/brokered-secrets.md +79 -0
  305. package/help/build-claude-code-image.md +131 -0
  306. package/help/build-worker-image.md +3 -6
  307. package/help/code-review-agents.md +68 -6
  308. package/help/deploy-gke.md +8 -1
  309. package/help/deployment-targets.md +25 -14
  310. package/help/errors/coding-provider-not-configured.md +2 -2
  311. package/help/errors/database-auth-invalid.md +28 -0
  312. package/help/errors/github-account-not-allowed.md +25 -0
  313. package/help/errors/low-power-disabled.md +29 -0
  314. package/help/errors/low-power-scale-forbidden.md +35 -0
  315. package/help/errors/low-power-wake-timeout.md +30 -0
  316. package/help/errors/mobile-disabled.md +31 -0
  317. package/help/errors/native-sandbox-capacity.md +22 -0
  318. package/help/errors/native-sandbox-deadline-exceeded.md +19 -0
  319. package/help/errors/native-sandbox-docker-failed.md +20 -0
  320. package/help/errors/native-sandbox-gateway-unavailable.md +21 -0
  321. package/help/errors/native-sandbox-image-not-pinned.md +19 -0
  322. package/help/errors/native-sandbox-isolation-mismatch.md +20 -0
  323. package/help/errors/native-sandbox-network-unenforced.md +22 -0
  324. package/help/errors/native-sandbox-requires-catalog.md +31 -0
  325. package/help/errors/native-sandbox-unavailable.md +19 -0
  326. package/help/errors/native-sandbox-warm-delivery-failed.md +21 -0
  327. package/help/errors/native-sandbox-worker-exited.md +20 -0
  328. package/help/errors/native-sandbox-worker-lost.md +20 -0
  329. package/help/errors/native-sandbox-worker-unready.md +22 -0
  330. package/help/errors/secret-broker-body-invalid.md +26 -0
  331. package/help/errors/secret-broker-changed.md +20 -0
  332. package/help/errors/secret-broker-config-invalid.md +30 -0
  333. package/help/errors/secret-broker-conflict.md +27 -0
  334. package/help/errors/secret-broker-destination-denied.md +28 -0
  335. package/help/errors/secret-broker-value-invalid.md +28 -0
  336. package/help/errors/secret-brokered.md +24 -0
  337. package/help/errors/secret-not-brokered.md +25 -0
  338. package/help/errors/slack-auth-failed.md +48 -0
  339. package/help/errors/slack-channel-unreachable.md +39 -0
  340. package/help/errors/slack-not-configured.md +33 -0
  341. package/help/getting-started.md +4 -5
  342. package/help/github.md +18 -1
  343. package/help/identity-and-access.md +5 -1
  344. package/help/local-repositories.md +2 -3
  345. package/help/low-power-mode.md +125 -0
  346. package/help/merge-order-check.md +117 -0
  347. package/help/mobile-app.md +54 -0
  348. package/help/native-sandbox.md +136 -0
  349. package/help/observability.md +8 -0
  350. package/help/related-pull-requests.md +70 -9
  351. package/help/repo-instructions-and-skills.md +91 -0
  352. package/help/review-fix-rounds.md +10 -0
  353. package/help/slack-notifications.md +62 -0
  354. package/help/troubleshooting/coding-workers.md +21 -0
  355. package/package.json +11 -4
  356. package/prisma/migrations/20261009000003_native_execution_mode/migration.sql +12 -0
  357. package/prisma/migrations/20261009000004_native_gateway_ledger/migration.sql +65 -0
  358. package/prisma/migrations/20261009000005_native_gateway_call_child_agent/migration.sql +5 -0
  359. package/prisma/migrations/20261009000006_run_deferred_start_stop/migration.sql +14 -0
  360. package/prisma/migrations/20261009000007_native_gateway_network_ready/migration.sql +5 -0
  361. package/prisma/migrations/20261010000001_workflow_notifications/migration.sql +99 -0
  362. package/prisma/migrations/20261011000001_native_gateway_session_status_index/migration.sql +2 -0
  363. package/prisma/migrations/20261012000001_native_warm_worker/migration.sql +32 -0
  364. package/prisma/migrations/20261013000001_coding_run_merge_order/migration.sql +2 -0
  365. package/prisma/migrations/20261013000001_secret_broker/migration.sql +17 -0
  366. package/prisma/migrations/20261013000002_deferred_review_request/migration.sql +4 -0
  367. package/prisma/migrations/20261014000000_repo_skills/migration.sql +15 -0
  368. package/prisma/migrations/20261015000001_coding_run_merge_order_index/migration.sql +2 -0
  369. package/prisma/migrations/20261015000002_no_change_rereview/migration.sql +2 -0
  370. package/prisma/schema.prisma +362 -91
@@ -31,6 +31,7 @@ export type RunHostCheckMinAggregateOutputType = {
31
31
  reviewBody: string | null;
32
32
  ciPendingAtReview: boolean | null;
33
33
  ciRereviewAt: Date | null;
34
+ noChangeRereviewAt: Date | null;
34
35
  };
35
36
  export type RunHostCheckMaxAggregateOutputType = {
36
37
  runId: string | null;
@@ -44,6 +45,7 @@ export type RunHostCheckMaxAggregateOutputType = {
44
45
  reviewBody: string | null;
45
46
  ciPendingAtReview: boolean | null;
46
47
  ciRereviewAt: Date | null;
48
+ noChangeRereviewAt: Date | null;
47
49
  };
48
50
  export type RunHostCheckCountAggregateOutputType = {
49
51
  runId: number;
@@ -57,6 +59,7 @@ export type RunHostCheckCountAggregateOutputType = {
57
59
  reviewBody: number;
58
60
  ciPendingAtReview: number;
59
61
  ciRereviewAt: number;
62
+ noChangeRereviewAt: number;
60
63
  _all: number;
61
64
  };
62
65
  export type RunHostCheckAvgAggregateInputType = {
@@ -77,6 +80,7 @@ export type RunHostCheckMinAggregateInputType = {
77
80
  reviewBody?: true;
78
81
  ciPendingAtReview?: true;
79
82
  ciRereviewAt?: true;
83
+ noChangeRereviewAt?: true;
80
84
  };
81
85
  export type RunHostCheckMaxAggregateInputType = {
82
86
  runId?: true;
@@ -90,6 +94,7 @@ export type RunHostCheckMaxAggregateInputType = {
90
94
  reviewBody?: true;
91
95
  ciPendingAtReview?: true;
92
96
  ciRereviewAt?: true;
97
+ noChangeRereviewAt?: true;
93
98
  };
94
99
  export type RunHostCheckCountAggregateInputType = {
95
100
  runId?: true;
@@ -103,6 +108,7 @@ export type RunHostCheckCountAggregateInputType = {
103
108
  reviewBody?: true;
104
109
  ciPendingAtReview?: true;
105
110
  ciRereviewAt?: true;
111
+ noChangeRereviewAt?: true;
106
112
  _all?: true;
107
113
  };
108
114
  export type RunHostCheckAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -193,6 +199,7 @@ export type RunHostCheckGroupByOutputType = {
193
199
  reviewBody: string | null;
194
200
  ciPendingAtReview: boolean | null;
195
201
  ciRereviewAt: Date | null;
202
+ noChangeRereviewAt: Date | null;
196
203
  _count: RunHostCheckCountAggregateOutputType | null;
197
204
  _avg: RunHostCheckAvgAggregateOutputType | null;
198
205
  _sum: RunHostCheckSumAggregateOutputType | null;
@@ -217,6 +224,7 @@ export type RunHostCheckWhereInput = {
217
224
  reviewBody?: Prisma.StringNullableFilter<"RunHostCheck"> | string | null;
218
225
  ciPendingAtReview?: Prisma.BoolNullableFilter<"RunHostCheck"> | boolean | null;
219
226
  ciRereviewAt?: Prisma.DateTimeNullableFilter<"RunHostCheck"> | Date | string | null;
227
+ noChangeRereviewAt?: Prisma.DateTimeNullableFilter<"RunHostCheck"> | Date | string | null;
220
228
  run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
221
229
  };
222
230
  export type RunHostCheckOrderByWithRelationInput = {
@@ -231,6 +239,7 @@ export type RunHostCheckOrderByWithRelationInput = {
231
239
  reviewBody?: Prisma.SortOrderInput | Prisma.SortOrder;
232
240
  ciPendingAtReview?: Prisma.SortOrderInput | Prisma.SortOrder;
233
241
  ciRereviewAt?: Prisma.SortOrderInput | Prisma.SortOrder;
242
+ noChangeRereviewAt?: Prisma.SortOrderInput | Prisma.SortOrder;
234
243
  run?: Prisma.RunOrderByWithRelationInput;
235
244
  };
236
245
  export type RunHostCheckWhereUniqueInput = Prisma.AtLeast<{
@@ -248,6 +257,7 @@ export type RunHostCheckWhereUniqueInput = Prisma.AtLeast<{
248
257
  reviewBody?: Prisma.StringNullableFilter<"RunHostCheck"> | string | null;
249
258
  ciPendingAtReview?: Prisma.BoolNullableFilter<"RunHostCheck"> | boolean | null;
250
259
  ciRereviewAt?: Prisma.DateTimeNullableFilter<"RunHostCheck"> | Date | string | null;
260
+ noChangeRereviewAt?: Prisma.DateTimeNullableFilter<"RunHostCheck"> | Date | string | null;
251
261
  run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
252
262
  }, "runId">;
253
263
  export type RunHostCheckOrderByWithAggregationInput = {
@@ -262,6 +272,7 @@ export type RunHostCheckOrderByWithAggregationInput = {
262
272
  reviewBody?: Prisma.SortOrderInput | Prisma.SortOrder;
263
273
  ciPendingAtReview?: Prisma.SortOrderInput | Prisma.SortOrder;
264
274
  ciRereviewAt?: Prisma.SortOrderInput | Prisma.SortOrder;
275
+ noChangeRereviewAt?: Prisma.SortOrderInput | Prisma.SortOrder;
265
276
  _count?: Prisma.RunHostCheckCountOrderByAggregateInput;
266
277
  _avg?: Prisma.RunHostCheckAvgOrderByAggregateInput;
267
278
  _max?: Prisma.RunHostCheckMaxOrderByAggregateInput;
@@ -283,6 +294,7 @@ export type RunHostCheckScalarWhereWithAggregatesInput = {
283
294
  reviewBody?: Prisma.StringNullableWithAggregatesFilter<"RunHostCheck"> | string | null;
284
295
  ciPendingAtReview?: Prisma.BoolNullableWithAggregatesFilter<"RunHostCheck"> | boolean | null;
285
296
  ciRereviewAt?: Prisma.DateTimeNullableWithAggregatesFilter<"RunHostCheck"> | Date | string | null;
297
+ noChangeRereviewAt?: Prisma.DateTimeNullableWithAggregatesFilter<"RunHostCheck"> | Date | string | null;
286
298
  };
287
299
  export type RunHostCheckCreateInput = {
288
300
  provider: string;
@@ -295,6 +307,7 @@ export type RunHostCheckCreateInput = {
295
307
  reviewBody?: string | null;
296
308
  ciPendingAtReview?: boolean | null;
297
309
  ciRereviewAt?: Date | string | null;
310
+ noChangeRereviewAt?: Date | string | null;
298
311
  run: Prisma.RunCreateNestedOneWithoutHostCheckInput;
299
312
  };
300
313
  export type RunHostCheckUncheckedCreateInput = {
@@ -309,6 +322,7 @@ export type RunHostCheckUncheckedCreateInput = {
309
322
  reviewBody?: string | null;
310
323
  ciPendingAtReview?: boolean | null;
311
324
  ciRereviewAt?: Date | string | null;
325
+ noChangeRereviewAt?: Date | string | null;
312
326
  };
313
327
  export type RunHostCheckUpdateInput = {
314
328
  provider?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -321,6 +335,7 @@ export type RunHostCheckUpdateInput = {
321
335
  reviewBody?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
322
336
  ciPendingAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
323
337
  ciRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
338
+ noChangeRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
324
339
  run?: Prisma.RunUpdateOneRequiredWithoutHostCheckNestedInput;
325
340
  };
326
341
  export type RunHostCheckUncheckedUpdateInput = {
@@ -335,6 +350,7 @@ export type RunHostCheckUncheckedUpdateInput = {
335
350
  reviewBody?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
336
351
  ciPendingAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
337
352
  ciRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
353
+ noChangeRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
338
354
  };
339
355
  export type RunHostCheckCreateManyInput = {
340
356
  runId: string;
@@ -348,6 +364,7 @@ export type RunHostCheckCreateManyInput = {
348
364
  reviewBody?: string | null;
349
365
  ciPendingAtReview?: boolean | null;
350
366
  ciRereviewAt?: Date | string | null;
367
+ noChangeRereviewAt?: Date | string | null;
351
368
  };
352
369
  export type RunHostCheckUpdateManyMutationInput = {
353
370
  provider?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -360,6 +377,7 @@ export type RunHostCheckUpdateManyMutationInput = {
360
377
  reviewBody?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
361
378
  ciPendingAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
362
379
  ciRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
380
+ noChangeRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
363
381
  };
364
382
  export type RunHostCheckUncheckedUpdateManyInput = {
365
383
  runId?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -373,6 +391,7 @@ export type RunHostCheckUncheckedUpdateManyInput = {
373
391
  reviewBody?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
374
392
  ciPendingAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
375
393
  ciRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
394
+ noChangeRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
376
395
  };
377
396
  export type RunHostCheckNullableScalarRelationFilter = {
378
397
  is?: Prisma.RunHostCheckWhereInput | null;
@@ -390,6 +409,7 @@ export type RunHostCheckCountOrderByAggregateInput = {
390
409
  reviewBody?: Prisma.SortOrder;
391
410
  ciPendingAtReview?: Prisma.SortOrder;
392
411
  ciRereviewAt?: Prisma.SortOrder;
412
+ noChangeRereviewAt?: Prisma.SortOrder;
393
413
  };
394
414
  export type RunHostCheckAvgOrderByAggregateInput = {
395
415
  prNumber?: Prisma.SortOrder;
@@ -406,6 +426,7 @@ export type RunHostCheckMaxOrderByAggregateInput = {
406
426
  reviewBody?: Prisma.SortOrder;
407
427
  ciPendingAtReview?: Prisma.SortOrder;
408
428
  ciRereviewAt?: Prisma.SortOrder;
429
+ noChangeRereviewAt?: Prisma.SortOrder;
409
430
  };
410
431
  export type RunHostCheckMinOrderByAggregateInput = {
411
432
  runId?: Prisma.SortOrder;
@@ -419,6 +440,7 @@ export type RunHostCheckMinOrderByAggregateInput = {
419
440
  reviewBody?: Prisma.SortOrder;
420
441
  ciPendingAtReview?: Prisma.SortOrder;
421
442
  ciRereviewAt?: Prisma.SortOrder;
443
+ noChangeRereviewAt?: Prisma.SortOrder;
422
444
  };
423
445
  export type RunHostCheckSumOrderByAggregateInput = {
424
446
  prNumber?: Prisma.SortOrder;
@@ -465,6 +487,7 @@ export type RunHostCheckCreateWithoutRunInput = {
465
487
  reviewBody?: string | null;
466
488
  ciPendingAtReview?: boolean | null;
467
489
  ciRereviewAt?: Date | string | null;
490
+ noChangeRereviewAt?: Date | string | null;
468
491
  };
469
492
  export type RunHostCheckUncheckedCreateWithoutRunInput = {
470
493
  provider: string;
@@ -477,6 +500,7 @@ export type RunHostCheckUncheckedCreateWithoutRunInput = {
477
500
  reviewBody?: string | null;
478
501
  ciPendingAtReview?: boolean | null;
479
502
  ciRereviewAt?: Date | string | null;
503
+ noChangeRereviewAt?: Date | string | null;
480
504
  };
481
505
  export type RunHostCheckCreateOrConnectWithoutRunInput = {
482
506
  where: Prisma.RunHostCheckWhereUniqueInput;
@@ -502,6 +526,7 @@ export type RunHostCheckUpdateWithoutRunInput = {
502
526
  reviewBody?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
503
527
  ciPendingAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
504
528
  ciRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
529
+ noChangeRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
505
530
  };
506
531
  export type RunHostCheckUncheckedUpdateWithoutRunInput = {
507
532
  provider?: Prisma.StringFieldUpdateOperationsInput | string;
@@ -514,6 +539,7 @@ export type RunHostCheckUncheckedUpdateWithoutRunInput = {
514
539
  reviewBody?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
515
540
  ciPendingAtReview?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null;
516
541
  ciRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
542
+ noChangeRereviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
517
543
  };
518
544
  export type RunHostCheckSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
519
545
  runId?: boolean;
@@ -527,6 +553,7 @@ export type RunHostCheckSelect<ExtArgs extends runtime.Types.Extensions.Internal
527
553
  reviewBody?: boolean;
528
554
  ciPendingAtReview?: boolean;
529
555
  ciRereviewAt?: boolean;
556
+ noChangeRereviewAt?: boolean;
530
557
  run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
531
558
  }, ExtArgs["result"]["runHostCheck"]>;
532
559
  export type RunHostCheckSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -541,6 +568,7 @@ export type RunHostCheckSelectCreateManyAndReturn<ExtArgs extends runtime.Types.
541
568
  reviewBody?: boolean;
542
569
  ciPendingAtReview?: boolean;
543
570
  ciRereviewAt?: boolean;
571
+ noChangeRereviewAt?: boolean;
544
572
  run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
545
573
  }, ExtArgs["result"]["runHostCheck"]>;
546
574
  export type RunHostCheckSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -555,6 +583,7 @@ export type RunHostCheckSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.
555
583
  reviewBody?: boolean;
556
584
  ciPendingAtReview?: boolean;
557
585
  ciRereviewAt?: boolean;
586
+ noChangeRereviewAt?: boolean;
558
587
  run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
559
588
  }, ExtArgs["result"]["runHostCheck"]>;
560
589
  export type RunHostCheckSelectScalar = {
@@ -569,8 +598,9 @@ export type RunHostCheckSelectScalar = {
569
598
  reviewBody?: boolean;
570
599
  ciPendingAtReview?: boolean;
571
600
  ciRereviewAt?: boolean;
601
+ noChangeRereviewAt?: boolean;
572
602
  };
573
- export type RunHostCheckOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"runId" | "provider" | "repository" | "checkId" | "headSha" | "prNumber" | "completedAt" | "verdict" | "reviewBody" | "ciPendingAtReview" | "ciRereviewAt", ExtArgs["result"]["runHostCheck"]>;
603
+ export type RunHostCheckOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"runId" | "provider" | "repository" | "checkId" | "headSha" | "prNumber" | "completedAt" | "verdict" | "reviewBody" | "ciPendingAtReview" | "ciRereviewAt" | "noChangeRereviewAt", ExtArgs["result"]["runHostCheck"]>;
574
604
  export type RunHostCheckInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
575
605
  run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
576
606
  };
@@ -618,6 +648,10 @@ export type $RunHostCheckPayload<ExtArgs extends runtime.Types.Extensions.Intern
618
648
  * When CI finishing on this head re-ran the review: at most once per head.
619
649
  */
620
650
  ciRereviewAt: Date | null;
651
+ /**
652
+ * When a no-change review-fix round re-reviewed this CHANGES_REQUESTED review: at most once.
653
+ */
654
+ noChangeRereviewAt: Date | null;
621
655
  }, ExtArgs["result"]["runHostCheck"]>;
622
656
  composites: {};
623
657
  };
@@ -984,6 +1018,7 @@ export interface RunHostCheckFieldRefs {
984
1018
  readonly reviewBody: Prisma.FieldRef<"RunHostCheck", 'String'>;
985
1019
  readonly ciPendingAtReview: Prisma.FieldRef<"RunHostCheck", 'Boolean'>;
986
1020
  readonly ciRereviewAt: Prisma.FieldRef<"RunHostCheck", 'DateTime'>;
1021
+ readonly noChangeRereviewAt: Prisma.FieldRef<"RunHostCheck", 'DateTime'>;
987
1022
  }
988
1023
  /**
989
1024
  * RunHostCheck findUnique
@@ -35,6 +35,7 @@ export type SecretCountAggregateOutputType = {
35
35
  name: number;
36
36
  ciphertext: number;
37
37
  keyId: number;
38
+ broker: number;
38
39
  ownerId: number;
39
40
  createdAt: number;
40
41
  updatedAt: number;
@@ -63,6 +64,7 @@ export type SecretCountAggregateInputType = {
63
64
  name?: true;
64
65
  ciphertext?: true;
65
66
  keyId?: true;
67
+ broker?: true;
66
68
  ownerId?: true;
67
69
  createdAt?: true;
68
70
  updatedAt?: true;
@@ -135,6 +137,7 @@ export type SecretGroupByOutputType = {
135
137
  name: string;
136
138
  ciphertext: string;
137
139
  keyId: string;
140
+ broker: runtime.JsonValue | null;
138
141
  ownerId: string | null;
139
142
  createdAt: Date;
140
143
  updatedAt: Date;
@@ -153,6 +156,7 @@ export type SecretWhereInput = {
153
156
  name?: Prisma.StringFilter<"Secret"> | string;
154
157
  ciphertext?: Prisma.StringFilter<"Secret"> | string;
155
158
  keyId?: Prisma.StringFilter<"Secret"> | string;
159
+ broker?: Prisma.JsonNullableFilter<"Secret">;
156
160
  ownerId?: Prisma.StringNullableFilter<"Secret"> | string | null;
157
161
  createdAt?: Prisma.DateTimeFilter<"Secret"> | Date | string;
158
162
  updatedAt?: Prisma.DateTimeFilter<"Secret"> | Date | string;
@@ -164,6 +168,7 @@ export type SecretOrderByWithRelationInput = {
164
168
  name?: Prisma.SortOrder;
165
169
  ciphertext?: Prisma.SortOrder;
166
170
  keyId?: Prisma.SortOrder;
171
+ broker?: Prisma.SortOrderInput | Prisma.SortOrder;
167
172
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
168
173
  createdAt?: Prisma.SortOrder;
169
174
  updatedAt?: Prisma.SortOrder;
@@ -179,6 +184,7 @@ export type SecretWhereUniqueInput = Prisma.AtLeast<{
179
184
  name?: Prisma.StringFilter<"Secret"> | string;
180
185
  ciphertext?: Prisma.StringFilter<"Secret"> | string;
181
186
  keyId?: Prisma.StringFilter<"Secret"> | string;
187
+ broker?: Prisma.JsonNullableFilter<"Secret">;
182
188
  ownerId?: Prisma.StringNullableFilter<"Secret"> | string | null;
183
189
  createdAt?: Prisma.DateTimeFilter<"Secret"> | Date | string;
184
190
  updatedAt?: Prisma.DateTimeFilter<"Secret"> | Date | string;
@@ -190,6 +196,7 @@ export type SecretOrderByWithAggregationInput = {
190
196
  name?: Prisma.SortOrder;
191
197
  ciphertext?: Prisma.SortOrder;
192
198
  keyId?: Prisma.SortOrder;
199
+ broker?: Prisma.SortOrderInput | Prisma.SortOrder;
193
200
  ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
194
201
  createdAt?: Prisma.SortOrder;
195
202
  updatedAt?: Prisma.SortOrder;
@@ -205,6 +212,7 @@ export type SecretScalarWhereWithAggregatesInput = {
205
212
  name?: Prisma.StringWithAggregatesFilter<"Secret"> | string;
206
213
  ciphertext?: Prisma.StringWithAggregatesFilter<"Secret"> | string;
207
214
  keyId?: Prisma.StringWithAggregatesFilter<"Secret"> | string;
215
+ broker?: Prisma.JsonNullableWithAggregatesFilter<"Secret">;
208
216
  ownerId?: Prisma.StringNullableWithAggregatesFilter<"Secret"> | string | null;
209
217
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Secret"> | Date | string;
210
218
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Secret"> | Date | string;
@@ -214,6 +222,7 @@ export type SecretCreateInput = {
214
222
  name: string;
215
223
  ciphertext: string;
216
224
  keyId: string;
225
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
217
226
  createdAt?: Date | string;
218
227
  updatedAt?: Date | string;
219
228
  owner?: Prisma.PrincipalCreateNestedOneWithoutSecretsInput;
@@ -224,6 +233,7 @@ export type SecretUncheckedCreateInput = {
224
233
  name: string;
225
234
  ciphertext: string;
226
235
  keyId: string;
236
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
227
237
  ownerId?: string | null;
228
238
  createdAt?: Date | string;
229
239
  updatedAt?: Date | string;
@@ -234,6 +244,7 @@ export type SecretUpdateInput = {
234
244
  name?: Prisma.StringFieldUpdateOperationsInput | string;
235
245
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
236
246
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
247
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
237
248
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
238
249
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
239
250
  owner?: Prisma.PrincipalUpdateOneWithoutSecretsNestedInput;
@@ -244,6 +255,7 @@ export type SecretUncheckedUpdateInput = {
244
255
  name?: Prisma.StringFieldUpdateOperationsInput | string;
245
256
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
246
257
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
258
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
247
259
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
248
260
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
249
261
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -254,6 +266,7 @@ export type SecretCreateManyInput = {
254
266
  name: string;
255
267
  ciphertext: string;
256
268
  keyId: string;
269
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
257
270
  ownerId?: string | null;
258
271
  createdAt?: Date | string;
259
272
  updatedAt?: Date | string;
@@ -263,6 +276,7 @@ export type SecretUpdateManyMutationInput = {
263
276
  name?: Prisma.StringFieldUpdateOperationsInput | string;
264
277
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
265
278
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
279
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
266
280
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
267
281
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
268
282
  };
@@ -271,6 +285,7 @@ export type SecretUncheckedUpdateManyInput = {
271
285
  name?: Prisma.StringFieldUpdateOperationsInput | string;
272
286
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
273
287
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
274
289
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
275
290
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
276
291
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -292,6 +307,7 @@ export type SecretCountOrderByAggregateInput = {
292
307
  name?: Prisma.SortOrder;
293
308
  ciphertext?: Prisma.SortOrder;
294
309
  keyId?: Prisma.SortOrder;
310
+ broker?: Prisma.SortOrder;
295
311
  ownerId?: Prisma.SortOrder;
296
312
  createdAt?: Prisma.SortOrder;
297
313
  updatedAt?: Prisma.SortOrder;
@@ -373,6 +389,7 @@ export type SecretCreateWithoutOwnerInput = {
373
389
  name: string;
374
390
  ciphertext: string;
375
391
  keyId: string;
392
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
376
393
  createdAt?: Date | string;
377
394
  updatedAt?: Date | string;
378
395
  agents?: Prisma.AgentSecretCreateNestedManyWithoutSecretInput;
@@ -382,6 +399,7 @@ export type SecretUncheckedCreateWithoutOwnerInput = {
382
399
  name: string;
383
400
  ciphertext: string;
384
401
  keyId: string;
402
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
385
403
  createdAt?: Date | string;
386
404
  updatedAt?: Date | string;
387
405
  agents?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutSecretInput;
@@ -415,6 +433,7 @@ export type SecretScalarWhereInput = {
415
433
  name?: Prisma.StringFilter<"Secret"> | string;
416
434
  ciphertext?: Prisma.StringFilter<"Secret"> | string;
417
435
  keyId?: Prisma.StringFilter<"Secret"> | string;
436
+ broker?: Prisma.JsonNullableFilter<"Secret">;
418
437
  ownerId?: Prisma.StringNullableFilter<"Secret"> | string | null;
419
438
  createdAt?: Prisma.DateTimeFilter<"Secret"> | Date | string;
420
439
  updatedAt?: Prisma.DateTimeFilter<"Secret"> | Date | string;
@@ -424,6 +443,7 @@ export type SecretCreateWithoutAgentsInput = {
424
443
  name: string;
425
444
  ciphertext: string;
426
445
  keyId: string;
446
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
427
447
  createdAt?: Date | string;
428
448
  updatedAt?: Date | string;
429
449
  owner?: Prisma.PrincipalCreateNestedOneWithoutSecretsInput;
@@ -433,6 +453,7 @@ export type SecretUncheckedCreateWithoutAgentsInput = {
433
453
  name: string;
434
454
  ciphertext: string;
435
455
  keyId: string;
456
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
436
457
  ownerId?: string | null;
437
458
  createdAt?: Date | string;
438
459
  updatedAt?: Date | string;
@@ -455,6 +476,7 @@ export type SecretUpdateWithoutAgentsInput = {
455
476
  name?: Prisma.StringFieldUpdateOperationsInput | string;
456
477
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
457
478
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
479
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
458
480
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
459
481
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
460
482
  owner?: Prisma.PrincipalUpdateOneWithoutSecretsNestedInput;
@@ -464,6 +486,7 @@ export type SecretUncheckedUpdateWithoutAgentsInput = {
464
486
  name?: Prisma.StringFieldUpdateOperationsInput | string;
465
487
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
466
488
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
489
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
467
490
  ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
468
491
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
469
492
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
@@ -473,6 +496,7 @@ export type SecretCreateManyOwnerInput = {
473
496
  name: string;
474
497
  ciphertext: string;
475
498
  keyId: string;
499
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
476
500
  createdAt?: Date | string;
477
501
  updatedAt?: Date | string;
478
502
  };
@@ -481,6 +505,7 @@ export type SecretUpdateWithoutOwnerInput = {
481
505
  name?: Prisma.StringFieldUpdateOperationsInput | string;
482
506
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
483
507
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
508
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
484
509
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
485
510
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
486
511
  agents?: Prisma.AgentSecretUpdateManyWithoutSecretNestedInput;
@@ -490,6 +515,7 @@ export type SecretUncheckedUpdateWithoutOwnerInput = {
490
515
  name?: Prisma.StringFieldUpdateOperationsInput | string;
491
516
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
492
517
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
518
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
493
519
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
494
520
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
495
521
  agents?: Prisma.AgentSecretUncheckedUpdateManyWithoutSecretNestedInput;
@@ -499,6 +525,7 @@ export type SecretUncheckedUpdateManyWithoutOwnerInput = {
499
525
  name?: Prisma.StringFieldUpdateOperationsInput | string;
500
526
  ciphertext?: Prisma.StringFieldUpdateOperationsInput | string;
501
527
  keyId?: Prisma.StringFieldUpdateOperationsInput | string;
528
+ broker?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
502
529
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
503
530
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
504
531
  };
@@ -531,6 +558,7 @@ export type SecretSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
531
558
  name?: boolean;
532
559
  ciphertext?: boolean;
533
560
  keyId?: boolean;
561
+ broker?: boolean;
534
562
  ownerId?: boolean;
535
563
  createdAt?: boolean;
536
564
  updatedAt?: boolean;
@@ -543,6 +571,7 @@ export type SecretSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extens
543
571
  name?: boolean;
544
572
  ciphertext?: boolean;
545
573
  keyId?: boolean;
574
+ broker?: boolean;
546
575
  ownerId?: boolean;
547
576
  createdAt?: boolean;
548
577
  updatedAt?: boolean;
@@ -553,6 +582,7 @@ export type SecretSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extens
553
582
  name?: boolean;
554
583
  ciphertext?: boolean;
555
584
  keyId?: boolean;
585
+ broker?: boolean;
556
586
  ownerId?: boolean;
557
587
  createdAt?: boolean;
558
588
  updatedAt?: boolean;
@@ -563,11 +593,12 @@ export type SecretSelectScalar = {
563
593
  name?: boolean;
564
594
  ciphertext?: boolean;
565
595
  keyId?: boolean;
596
+ broker?: boolean;
566
597
  ownerId?: boolean;
567
598
  createdAt?: boolean;
568
599
  updatedAt?: boolean;
569
600
  };
570
- export type SecretOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "ciphertext" | "keyId" | "ownerId" | "createdAt" | "updatedAt", ExtArgs["result"]["secret"]>;
601
+ export type SecretOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "ciphertext" | "keyId" | "broker" | "ownerId" | "createdAt" | "updatedAt", ExtArgs["result"]["secret"]>;
571
602
  export type SecretInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
572
603
  owner?: boolean | Prisma.Secret$ownerArgs<ExtArgs>;
573
604
  agents?: boolean | Prisma.Secret$agentsArgs<ExtArgs>;
@@ -590,6 +621,10 @@ export type $SecretPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
590
621
  name: string;
591
622
  ciphertext: string;
592
623
  keyId: string;
624
+ /**
625
+ * Brokered-secret config (core/secret-broker-config.ts). Null = readable by attached tools.
626
+ */
627
+ broker: runtime.JsonValue | null;
593
628
  ownerId: string | null;
594
629
  createdAt: Date;
595
630
  updatedAt: Date;
@@ -953,6 +988,7 @@ export interface SecretFieldRefs {
953
988
  readonly name: Prisma.FieldRef<"Secret", 'String'>;
954
989
  readonly ciphertext: Prisma.FieldRef<"Secret", 'String'>;
955
990
  readonly keyId: Prisma.FieldRef<"Secret", 'String'>;
991
+ readonly broker: Prisma.FieldRef<"Secret", 'Json'>;
956
992
  readonly ownerId: Prisma.FieldRef<"Secret", 'String'>;
957
993
  readonly createdAt: Prisma.FieldRef<"Secret", 'DateTime'>;
958
994
  readonly updatedAt: Prisma.FieldRef<"Secret", 'DateTime'>;