@wardby/cli 0.2.0 → 0.3.0

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