@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,2245 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Principal
5
+ * Phase 4: an authenticated caller. `subject` is the IdP subject claim
6
+ * (delegating mode) or the configured LOCAL_PRINCIPAL (stdio, no token).
7
+ * Created on first sight (find-or-create by subject).
8
+ */
9
+ export type PrincipalModel = runtime.Types.Result.DefaultSelection<Prisma.$PrincipalPayload>;
10
+ export type AggregatePrincipal = {
11
+ _count: PrincipalCountAggregateOutputType | null;
12
+ _min: PrincipalMinAggregateOutputType | null;
13
+ _max: PrincipalMaxAggregateOutputType | null;
14
+ };
15
+ export type PrincipalMinAggregateOutputType = {
16
+ id: string | null;
17
+ subject: string | null;
18
+ createdAt: Date | null;
19
+ };
20
+ export type PrincipalMaxAggregateOutputType = {
21
+ id: string | null;
22
+ subject: string | null;
23
+ createdAt: Date | null;
24
+ };
25
+ export type PrincipalCountAggregateOutputType = {
26
+ id: number;
27
+ subject: number;
28
+ createdAt: number;
29
+ _all: number;
30
+ };
31
+ export type PrincipalMinAggregateInputType = {
32
+ id?: true;
33
+ subject?: true;
34
+ createdAt?: true;
35
+ };
36
+ export type PrincipalMaxAggregateInputType = {
37
+ id?: true;
38
+ subject?: true;
39
+ createdAt?: true;
40
+ };
41
+ export type PrincipalCountAggregateInputType = {
42
+ id?: true;
43
+ subject?: true;
44
+ createdAt?: true;
45
+ _all?: true;
46
+ };
47
+ export type PrincipalAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
48
+ /**
49
+ * Filter which Principal to aggregate.
50
+ */
51
+ where?: Prisma.PrincipalWhereInput;
52
+ /**
53
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
54
+ *
55
+ * Determine the order of Principals to fetch.
56
+ */
57
+ orderBy?: Prisma.PrincipalOrderByWithRelationInput | Prisma.PrincipalOrderByWithRelationInput[];
58
+ /**
59
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
60
+ *
61
+ * Sets the start position
62
+ */
63
+ cursor?: Prisma.PrincipalWhereUniqueInput;
64
+ /**
65
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
66
+ *
67
+ * Take `±n` Principals from the position of the cursor.
68
+ */
69
+ take?: number;
70
+ /**
71
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
72
+ *
73
+ * Skip the first `n` Principals.
74
+ */
75
+ skip?: number;
76
+ /**
77
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
78
+ *
79
+ * Count returned Principals
80
+ **/
81
+ _count?: true | PrincipalCountAggregateInputType;
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
84
+ *
85
+ * Select which fields to find the minimum value
86
+ **/
87
+ _min?: PrincipalMinAggregateInputType;
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
90
+ *
91
+ * Select which fields to find the maximum value
92
+ **/
93
+ _max?: PrincipalMaxAggregateInputType;
94
+ };
95
+ export type GetPrincipalAggregateType<T extends PrincipalAggregateArgs> = {
96
+ [P in keyof T & keyof AggregatePrincipal]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePrincipal[P]> : Prisma.GetScalarType<T[P], AggregatePrincipal[P]>;
97
+ };
98
+ export type PrincipalGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
99
+ where?: Prisma.PrincipalWhereInput;
100
+ orderBy?: Prisma.PrincipalOrderByWithAggregationInput | Prisma.PrincipalOrderByWithAggregationInput[];
101
+ by: Prisma.PrincipalScalarFieldEnum[] | Prisma.PrincipalScalarFieldEnum;
102
+ having?: Prisma.PrincipalScalarWhereWithAggregatesInput;
103
+ take?: number;
104
+ skip?: number;
105
+ _count?: PrincipalCountAggregateInputType | true;
106
+ _min?: PrincipalMinAggregateInputType;
107
+ _max?: PrincipalMaxAggregateInputType;
108
+ };
109
+ export type PrincipalGroupByOutputType = {
110
+ id: string;
111
+ subject: string;
112
+ createdAt: Date;
113
+ _count: PrincipalCountAggregateOutputType | null;
114
+ _min: PrincipalMinAggregateOutputType | null;
115
+ _max: PrincipalMaxAggregateOutputType | null;
116
+ };
117
+ export type GetPrincipalGroupByPayload<T extends PrincipalGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PrincipalGroupByOutputType, T['by']> & {
118
+ [P in ((keyof T) & (keyof PrincipalGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PrincipalGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PrincipalGroupByOutputType[P]>;
119
+ }>>;
120
+ export type PrincipalWhereInput = {
121
+ AND?: Prisma.PrincipalWhereInput | Prisma.PrincipalWhereInput[];
122
+ OR?: Prisma.PrincipalWhereInput[];
123
+ NOT?: Prisma.PrincipalWhereInput | Prisma.PrincipalWhereInput[];
124
+ id?: Prisma.StringFilter<"Principal"> | string;
125
+ subject?: Prisma.StringFilter<"Principal"> | string;
126
+ createdAt?: Prisma.DateTimeFilter<"Principal"> | Date | string;
127
+ agents?: Prisma.AgentListRelationFilter;
128
+ tools?: Prisma.ToolListRelationFilter;
129
+ secrets?: Prisma.SecretListRelationFilter;
130
+ datastores?: Prisma.DatastoreListRelationFilter;
131
+ webhooks?: Prisma.WebhookListRelationFilter;
132
+ authUser?: Prisma.XOR<Prisma.AuthUserNullableScalarRelationFilter, Prisma.AuthUserWhereInput> | null;
133
+ budgetGroups?: Prisma.BudgetGroupListRelationFilter;
134
+ hostIdentities?: Prisma.HostIdentityListRelationFilter;
135
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestListRelationFilter;
136
+ grants?: Prisma.ResourceGrantListRelationFilter;
137
+ };
138
+ export type PrincipalOrderByWithRelationInput = {
139
+ id?: Prisma.SortOrder;
140
+ subject?: Prisma.SortOrder;
141
+ createdAt?: Prisma.SortOrder;
142
+ agents?: Prisma.AgentOrderByRelationAggregateInput;
143
+ tools?: Prisma.ToolOrderByRelationAggregateInput;
144
+ secrets?: Prisma.SecretOrderByRelationAggregateInput;
145
+ datastores?: Prisma.DatastoreOrderByRelationAggregateInput;
146
+ webhooks?: Prisma.WebhookOrderByRelationAggregateInput;
147
+ authUser?: Prisma.AuthUserOrderByWithRelationInput;
148
+ budgetGroups?: Prisma.BudgetGroupOrderByRelationAggregateInput;
149
+ hostIdentities?: Prisma.HostIdentityOrderByRelationAggregateInput;
150
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestOrderByRelationAggregateInput;
151
+ grants?: Prisma.ResourceGrantOrderByRelationAggregateInput;
152
+ };
153
+ export type PrincipalWhereUniqueInput = Prisma.AtLeast<{
154
+ id?: string;
155
+ subject?: string;
156
+ AND?: Prisma.PrincipalWhereInput | Prisma.PrincipalWhereInput[];
157
+ OR?: Prisma.PrincipalWhereInput[];
158
+ NOT?: Prisma.PrincipalWhereInput | Prisma.PrincipalWhereInput[];
159
+ createdAt?: Prisma.DateTimeFilter<"Principal"> | Date | string;
160
+ agents?: Prisma.AgentListRelationFilter;
161
+ tools?: Prisma.ToolListRelationFilter;
162
+ secrets?: Prisma.SecretListRelationFilter;
163
+ datastores?: Prisma.DatastoreListRelationFilter;
164
+ webhooks?: Prisma.WebhookListRelationFilter;
165
+ authUser?: Prisma.XOR<Prisma.AuthUserNullableScalarRelationFilter, Prisma.AuthUserWhereInput> | null;
166
+ budgetGroups?: Prisma.BudgetGroupListRelationFilter;
167
+ hostIdentities?: Prisma.HostIdentityListRelationFilter;
168
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestListRelationFilter;
169
+ grants?: Prisma.ResourceGrantListRelationFilter;
170
+ }, "id" | "subject">;
171
+ export type PrincipalOrderByWithAggregationInput = {
172
+ id?: Prisma.SortOrder;
173
+ subject?: Prisma.SortOrder;
174
+ createdAt?: Prisma.SortOrder;
175
+ _count?: Prisma.PrincipalCountOrderByAggregateInput;
176
+ _max?: Prisma.PrincipalMaxOrderByAggregateInput;
177
+ _min?: Prisma.PrincipalMinOrderByAggregateInput;
178
+ };
179
+ export type PrincipalScalarWhereWithAggregatesInput = {
180
+ AND?: Prisma.PrincipalScalarWhereWithAggregatesInput | Prisma.PrincipalScalarWhereWithAggregatesInput[];
181
+ OR?: Prisma.PrincipalScalarWhereWithAggregatesInput[];
182
+ NOT?: Prisma.PrincipalScalarWhereWithAggregatesInput | Prisma.PrincipalScalarWhereWithAggregatesInput[];
183
+ id?: Prisma.StringWithAggregatesFilter<"Principal"> | string;
184
+ subject?: Prisma.StringWithAggregatesFilter<"Principal"> | string;
185
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Principal"> | Date | string;
186
+ };
187
+ export type PrincipalCreateInput = {
188
+ id?: string;
189
+ subject: string;
190
+ createdAt?: Date | string;
191
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
192
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
193
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
194
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
195
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
196
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
197
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
198
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
199
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
200
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
201
+ };
202
+ export type PrincipalUncheckedCreateInput = {
203
+ id?: string;
204
+ subject: string;
205
+ createdAt?: Date | string;
206
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
207
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
208
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
209
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
210
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
211
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
212
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
213
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
214
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
215
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
216
+ };
217
+ export type PrincipalUpdateInput = {
218
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
219
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
220
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
221
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
222
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
223
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
224
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
225
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
226
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
227
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
228
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
229
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
230
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
231
+ };
232
+ export type PrincipalUncheckedUpdateInput = {
233
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
234
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
235
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
236
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
237
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
238
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
239
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
240
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
241
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
242
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
243
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
244
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
245
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
246
+ };
247
+ export type PrincipalCreateManyInput = {
248
+ id?: string;
249
+ subject: string;
250
+ createdAt?: Date | string;
251
+ };
252
+ export type PrincipalUpdateManyMutationInput = {
253
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
254
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
255
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
256
+ };
257
+ export type PrincipalUncheckedUpdateManyInput = {
258
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
259
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
+ };
262
+ export type PrincipalNullableScalarRelationFilter = {
263
+ is?: Prisma.PrincipalWhereInput | null;
264
+ isNot?: Prisma.PrincipalWhereInput | null;
265
+ };
266
+ export type PrincipalCountOrderByAggregateInput = {
267
+ id?: Prisma.SortOrder;
268
+ subject?: Prisma.SortOrder;
269
+ createdAt?: Prisma.SortOrder;
270
+ };
271
+ export type PrincipalMaxOrderByAggregateInput = {
272
+ id?: Prisma.SortOrder;
273
+ subject?: Prisma.SortOrder;
274
+ createdAt?: Prisma.SortOrder;
275
+ };
276
+ export type PrincipalMinOrderByAggregateInput = {
277
+ id?: Prisma.SortOrder;
278
+ subject?: Prisma.SortOrder;
279
+ createdAt?: Prisma.SortOrder;
280
+ };
281
+ export type PrincipalScalarRelationFilter = {
282
+ is?: Prisma.PrincipalWhereInput;
283
+ isNot?: Prisma.PrincipalWhereInput;
284
+ };
285
+ export type PrincipalCreateNestedOneWithoutAgentsInput = {
286
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutAgentsInput, Prisma.PrincipalUncheckedCreateWithoutAgentsInput>;
287
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutAgentsInput;
288
+ connect?: Prisma.PrincipalWhereUniqueInput;
289
+ };
290
+ export type PrincipalUpdateOneWithoutAgentsNestedInput = {
291
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutAgentsInput, Prisma.PrincipalUncheckedCreateWithoutAgentsInput>;
292
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutAgentsInput;
293
+ upsert?: Prisma.PrincipalUpsertWithoutAgentsInput;
294
+ disconnect?: Prisma.PrincipalWhereInput | boolean;
295
+ delete?: Prisma.PrincipalWhereInput | boolean;
296
+ connect?: Prisma.PrincipalWhereUniqueInput;
297
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutAgentsInput, Prisma.PrincipalUpdateWithoutAgentsInput>, Prisma.PrincipalUncheckedUpdateWithoutAgentsInput>;
298
+ };
299
+ export type PrincipalCreateNestedOneWithoutBudgetGroupsInput = {
300
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutBudgetGroupsInput, Prisma.PrincipalUncheckedCreateWithoutBudgetGroupsInput>;
301
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutBudgetGroupsInput;
302
+ connect?: Prisma.PrincipalWhereUniqueInput;
303
+ };
304
+ export type PrincipalUpdateOneWithoutBudgetGroupsNestedInput = {
305
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutBudgetGroupsInput, Prisma.PrincipalUncheckedCreateWithoutBudgetGroupsInput>;
306
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutBudgetGroupsInput;
307
+ upsert?: Prisma.PrincipalUpsertWithoutBudgetGroupsInput;
308
+ disconnect?: Prisma.PrincipalWhereInput | boolean;
309
+ delete?: Prisma.PrincipalWhereInput | boolean;
310
+ connect?: Prisma.PrincipalWhereUniqueInput;
311
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutBudgetGroupsInput, Prisma.PrincipalUpdateWithoutBudgetGroupsInput>, Prisma.PrincipalUncheckedUpdateWithoutBudgetGroupsInput>;
312
+ };
313
+ export type PrincipalCreateNestedOneWithoutToolsInput = {
314
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutToolsInput, Prisma.PrincipalUncheckedCreateWithoutToolsInput>;
315
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutToolsInput;
316
+ connect?: Prisma.PrincipalWhereUniqueInput;
317
+ };
318
+ export type PrincipalUpdateOneWithoutToolsNestedInput = {
319
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutToolsInput, Prisma.PrincipalUncheckedCreateWithoutToolsInput>;
320
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutToolsInput;
321
+ upsert?: Prisma.PrincipalUpsertWithoutToolsInput;
322
+ disconnect?: Prisma.PrincipalWhereInput | boolean;
323
+ delete?: Prisma.PrincipalWhereInput | boolean;
324
+ connect?: Prisma.PrincipalWhereUniqueInput;
325
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutToolsInput, Prisma.PrincipalUpdateWithoutToolsInput>, Prisma.PrincipalUncheckedUpdateWithoutToolsInput>;
326
+ };
327
+ export type PrincipalCreateNestedOneWithoutDatastoresInput = {
328
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutDatastoresInput, Prisma.PrincipalUncheckedCreateWithoutDatastoresInput>;
329
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutDatastoresInput;
330
+ connect?: Prisma.PrincipalWhereUniqueInput;
331
+ };
332
+ export type PrincipalUpdateOneWithoutDatastoresNestedInput = {
333
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutDatastoresInput, Prisma.PrincipalUncheckedCreateWithoutDatastoresInput>;
334
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutDatastoresInput;
335
+ upsert?: Prisma.PrincipalUpsertWithoutDatastoresInput;
336
+ disconnect?: Prisma.PrincipalWhereInput | boolean;
337
+ delete?: Prisma.PrincipalWhereInput | boolean;
338
+ connect?: Prisma.PrincipalWhereUniqueInput;
339
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutDatastoresInput, Prisma.PrincipalUpdateWithoutDatastoresInput>, Prisma.PrincipalUncheckedUpdateWithoutDatastoresInput>;
340
+ };
341
+ export type PrincipalCreateNestedOneWithoutGrantsInput = {
342
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutGrantsInput, Prisma.PrincipalUncheckedCreateWithoutGrantsInput>;
343
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutGrantsInput;
344
+ connect?: Prisma.PrincipalWhereUniqueInput;
345
+ };
346
+ export type PrincipalUpdateOneWithoutGrantsNestedInput = {
347
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutGrantsInput, Prisma.PrincipalUncheckedCreateWithoutGrantsInput>;
348
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutGrantsInput;
349
+ upsert?: Prisma.PrincipalUpsertWithoutGrantsInput;
350
+ disconnect?: Prisma.PrincipalWhereInput | boolean;
351
+ delete?: Prisma.PrincipalWhereInput | boolean;
352
+ connect?: Prisma.PrincipalWhereUniqueInput;
353
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutGrantsInput, Prisma.PrincipalUpdateWithoutGrantsInput>, Prisma.PrincipalUncheckedUpdateWithoutGrantsInput>;
354
+ };
355
+ export type PrincipalCreateNestedOneWithoutSecretsInput = {
356
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutSecretsInput, Prisma.PrincipalUncheckedCreateWithoutSecretsInput>;
357
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutSecretsInput;
358
+ connect?: Prisma.PrincipalWhereUniqueInput;
359
+ };
360
+ export type PrincipalUpdateOneWithoutSecretsNestedInput = {
361
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutSecretsInput, Prisma.PrincipalUncheckedCreateWithoutSecretsInput>;
362
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutSecretsInput;
363
+ upsert?: Prisma.PrincipalUpsertWithoutSecretsInput;
364
+ disconnect?: Prisma.PrincipalWhereInput | boolean;
365
+ delete?: Prisma.PrincipalWhereInput | boolean;
366
+ connect?: Prisma.PrincipalWhereUniqueInput;
367
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutSecretsInput, Prisma.PrincipalUpdateWithoutSecretsInput>, Prisma.PrincipalUncheckedUpdateWithoutSecretsInput>;
368
+ };
369
+ export type PrincipalCreateNestedOneWithoutWebhooksInput = {
370
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutWebhooksInput, Prisma.PrincipalUncheckedCreateWithoutWebhooksInput>;
371
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutWebhooksInput;
372
+ connect?: Prisma.PrincipalWhereUniqueInput;
373
+ };
374
+ export type PrincipalUpdateOneWithoutWebhooksNestedInput = {
375
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutWebhooksInput, Prisma.PrincipalUncheckedCreateWithoutWebhooksInput>;
376
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutWebhooksInput;
377
+ upsert?: Prisma.PrincipalUpsertWithoutWebhooksInput;
378
+ disconnect?: Prisma.PrincipalWhereInput | boolean;
379
+ delete?: Prisma.PrincipalWhereInput | boolean;
380
+ connect?: Prisma.PrincipalWhereUniqueInput;
381
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutWebhooksInput, Prisma.PrincipalUpdateWithoutWebhooksInput>, Prisma.PrincipalUncheckedUpdateWithoutWebhooksInput>;
382
+ };
383
+ export type PrincipalCreateNestedOneWithoutAuthUserInput = {
384
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutAuthUserInput, Prisma.PrincipalUncheckedCreateWithoutAuthUserInput>;
385
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutAuthUserInput;
386
+ connect?: Prisma.PrincipalWhereUniqueInput;
387
+ };
388
+ export type PrincipalUpdateOneRequiredWithoutAuthUserNestedInput = {
389
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutAuthUserInput, Prisma.PrincipalUncheckedCreateWithoutAuthUserInput>;
390
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutAuthUserInput;
391
+ upsert?: Prisma.PrincipalUpsertWithoutAuthUserInput;
392
+ connect?: Prisma.PrincipalWhereUniqueInput;
393
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutAuthUserInput, Prisma.PrincipalUpdateWithoutAuthUserInput>, Prisma.PrincipalUncheckedUpdateWithoutAuthUserInput>;
394
+ };
395
+ export type PrincipalCreateNestedOneWithoutHostIdentitiesInput = {
396
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentitiesInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentitiesInput>;
397
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutHostIdentitiesInput;
398
+ connect?: Prisma.PrincipalWhereUniqueInput;
399
+ };
400
+ export type PrincipalUpdateOneRequiredWithoutHostIdentitiesNestedInput = {
401
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentitiesInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentitiesInput>;
402
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutHostIdentitiesInput;
403
+ upsert?: Prisma.PrincipalUpsertWithoutHostIdentitiesInput;
404
+ connect?: Prisma.PrincipalWhereUniqueInput;
405
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutHostIdentitiesInput, Prisma.PrincipalUpdateWithoutHostIdentitiesInput>, Prisma.PrincipalUncheckedUpdateWithoutHostIdentitiesInput>;
406
+ };
407
+ export type PrincipalCreateNestedOneWithoutHostIdentityLinkRequestsInput = {
408
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentityLinkRequestsInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentityLinkRequestsInput>;
409
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutHostIdentityLinkRequestsInput;
410
+ connect?: Prisma.PrincipalWhereUniqueInput;
411
+ };
412
+ export type PrincipalUpdateOneRequiredWithoutHostIdentityLinkRequestsNestedInput = {
413
+ create?: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentityLinkRequestsInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentityLinkRequestsInput>;
414
+ connectOrCreate?: Prisma.PrincipalCreateOrConnectWithoutHostIdentityLinkRequestsInput;
415
+ upsert?: Prisma.PrincipalUpsertWithoutHostIdentityLinkRequestsInput;
416
+ connect?: Prisma.PrincipalWhereUniqueInput;
417
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PrincipalUpdateToOneWithWhereWithoutHostIdentityLinkRequestsInput, Prisma.PrincipalUpdateWithoutHostIdentityLinkRequestsInput>, Prisma.PrincipalUncheckedUpdateWithoutHostIdentityLinkRequestsInput>;
418
+ };
419
+ export type PrincipalCreateWithoutAgentsInput = {
420
+ id?: string;
421
+ subject: string;
422
+ createdAt?: Date | string;
423
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
424
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
425
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
426
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
427
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
428
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
429
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
430
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
431
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
432
+ };
433
+ export type PrincipalUncheckedCreateWithoutAgentsInput = {
434
+ id?: string;
435
+ subject: string;
436
+ createdAt?: Date | string;
437
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
438
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
439
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
440
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
441
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
442
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
443
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
444
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
445
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
446
+ };
447
+ export type PrincipalCreateOrConnectWithoutAgentsInput = {
448
+ where: Prisma.PrincipalWhereUniqueInput;
449
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutAgentsInput, Prisma.PrincipalUncheckedCreateWithoutAgentsInput>;
450
+ };
451
+ export type PrincipalUpsertWithoutAgentsInput = {
452
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutAgentsInput, Prisma.PrincipalUncheckedUpdateWithoutAgentsInput>;
453
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutAgentsInput, Prisma.PrincipalUncheckedCreateWithoutAgentsInput>;
454
+ where?: Prisma.PrincipalWhereInput;
455
+ };
456
+ export type PrincipalUpdateToOneWithWhereWithoutAgentsInput = {
457
+ where?: Prisma.PrincipalWhereInput;
458
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutAgentsInput, Prisma.PrincipalUncheckedUpdateWithoutAgentsInput>;
459
+ };
460
+ export type PrincipalUpdateWithoutAgentsInput = {
461
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
462
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
463
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
464
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
465
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
466
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
467
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
468
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
469
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
470
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
471
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
472
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
473
+ };
474
+ export type PrincipalUncheckedUpdateWithoutAgentsInput = {
475
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
476
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
477
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
478
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
479
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
480
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
481
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
482
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
483
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
484
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
485
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
486
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
487
+ };
488
+ export type PrincipalCreateWithoutBudgetGroupsInput = {
489
+ id?: string;
490
+ subject: string;
491
+ createdAt?: Date | string;
492
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
493
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
494
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
495
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
496
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
497
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
498
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
499
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
500
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
501
+ };
502
+ export type PrincipalUncheckedCreateWithoutBudgetGroupsInput = {
503
+ id?: string;
504
+ subject: string;
505
+ createdAt?: Date | string;
506
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
507
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
508
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
509
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
510
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
511
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
512
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
513
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
514
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
515
+ };
516
+ export type PrincipalCreateOrConnectWithoutBudgetGroupsInput = {
517
+ where: Prisma.PrincipalWhereUniqueInput;
518
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutBudgetGroupsInput, Prisma.PrincipalUncheckedCreateWithoutBudgetGroupsInput>;
519
+ };
520
+ export type PrincipalUpsertWithoutBudgetGroupsInput = {
521
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutBudgetGroupsInput, Prisma.PrincipalUncheckedUpdateWithoutBudgetGroupsInput>;
522
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutBudgetGroupsInput, Prisma.PrincipalUncheckedCreateWithoutBudgetGroupsInput>;
523
+ where?: Prisma.PrincipalWhereInput;
524
+ };
525
+ export type PrincipalUpdateToOneWithWhereWithoutBudgetGroupsInput = {
526
+ where?: Prisma.PrincipalWhereInput;
527
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutBudgetGroupsInput, Prisma.PrincipalUncheckedUpdateWithoutBudgetGroupsInput>;
528
+ };
529
+ export type PrincipalUpdateWithoutBudgetGroupsInput = {
530
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
531
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
532
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
533
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
534
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
535
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
536
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
537
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
538
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
539
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
540
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
541
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
542
+ };
543
+ export type PrincipalUncheckedUpdateWithoutBudgetGroupsInput = {
544
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
545
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
546
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
547
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
548
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
549
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
550
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
551
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
552
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
553
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
554
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
555
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
556
+ };
557
+ export type PrincipalCreateWithoutToolsInput = {
558
+ id?: string;
559
+ subject: string;
560
+ createdAt?: Date | string;
561
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
562
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
563
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
564
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
565
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
566
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
567
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
568
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
569
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
570
+ };
571
+ export type PrincipalUncheckedCreateWithoutToolsInput = {
572
+ id?: string;
573
+ subject: string;
574
+ createdAt?: Date | string;
575
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
576
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
577
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
578
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
579
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
580
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
581
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
582
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
583
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
584
+ };
585
+ export type PrincipalCreateOrConnectWithoutToolsInput = {
586
+ where: Prisma.PrincipalWhereUniqueInput;
587
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutToolsInput, Prisma.PrincipalUncheckedCreateWithoutToolsInput>;
588
+ };
589
+ export type PrincipalUpsertWithoutToolsInput = {
590
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutToolsInput, Prisma.PrincipalUncheckedUpdateWithoutToolsInput>;
591
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutToolsInput, Prisma.PrincipalUncheckedCreateWithoutToolsInput>;
592
+ where?: Prisma.PrincipalWhereInput;
593
+ };
594
+ export type PrincipalUpdateToOneWithWhereWithoutToolsInput = {
595
+ where?: Prisma.PrincipalWhereInput;
596
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutToolsInput, Prisma.PrincipalUncheckedUpdateWithoutToolsInput>;
597
+ };
598
+ export type PrincipalUpdateWithoutToolsInput = {
599
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
600
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
601
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
602
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
603
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
604
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
605
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
606
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
607
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
608
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
609
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
610
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
611
+ };
612
+ export type PrincipalUncheckedUpdateWithoutToolsInput = {
613
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
614
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
615
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
616
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
617
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
618
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
619
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
620
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
621
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
622
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
623
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
624
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
625
+ };
626
+ export type PrincipalCreateWithoutDatastoresInput = {
627
+ id?: string;
628
+ subject: string;
629
+ createdAt?: Date | string;
630
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
631
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
632
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
633
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
634
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
635
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
636
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
637
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
638
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
639
+ };
640
+ export type PrincipalUncheckedCreateWithoutDatastoresInput = {
641
+ id?: string;
642
+ subject: string;
643
+ createdAt?: Date | string;
644
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
645
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
646
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
647
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
648
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
649
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
650
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
651
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
652
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
653
+ };
654
+ export type PrincipalCreateOrConnectWithoutDatastoresInput = {
655
+ where: Prisma.PrincipalWhereUniqueInput;
656
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutDatastoresInput, Prisma.PrincipalUncheckedCreateWithoutDatastoresInput>;
657
+ };
658
+ export type PrincipalUpsertWithoutDatastoresInput = {
659
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutDatastoresInput, Prisma.PrincipalUncheckedUpdateWithoutDatastoresInput>;
660
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutDatastoresInput, Prisma.PrincipalUncheckedCreateWithoutDatastoresInput>;
661
+ where?: Prisma.PrincipalWhereInput;
662
+ };
663
+ export type PrincipalUpdateToOneWithWhereWithoutDatastoresInput = {
664
+ where?: Prisma.PrincipalWhereInput;
665
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutDatastoresInput, Prisma.PrincipalUncheckedUpdateWithoutDatastoresInput>;
666
+ };
667
+ export type PrincipalUpdateWithoutDatastoresInput = {
668
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
669
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
670
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
671
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
672
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
673
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
674
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
675
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
676
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
677
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
678
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
679
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
680
+ };
681
+ export type PrincipalUncheckedUpdateWithoutDatastoresInput = {
682
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
683
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
684
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
685
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
686
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
687
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
688
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
689
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
690
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
691
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
692
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
693
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
694
+ };
695
+ export type PrincipalCreateWithoutGrantsInput = {
696
+ id?: string;
697
+ subject: string;
698
+ createdAt?: Date | string;
699
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
700
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
701
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
702
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
703
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
704
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
705
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
706
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
707
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
708
+ };
709
+ export type PrincipalUncheckedCreateWithoutGrantsInput = {
710
+ id?: string;
711
+ subject: string;
712
+ createdAt?: Date | string;
713
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
714
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
715
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
716
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
717
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
718
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
719
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
720
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
721
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
722
+ };
723
+ export type PrincipalCreateOrConnectWithoutGrantsInput = {
724
+ where: Prisma.PrincipalWhereUniqueInput;
725
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutGrantsInput, Prisma.PrincipalUncheckedCreateWithoutGrantsInput>;
726
+ };
727
+ export type PrincipalUpsertWithoutGrantsInput = {
728
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutGrantsInput, Prisma.PrincipalUncheckedUpdateWithoutGrantsInput>;
729
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutGrantsInput, Prisma.PrincipalUncheckedCreateWithoutGrantsInput>;
730
+ where?: Prisma.PrincipalWhereInput;
731
+ };
732
+ export type PrincipalUpdateToOneWithWhereWithoutGrantsInput = {
733
+ where?: Prisma.PrincipalWhereInput;
734
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutGrantsInput, Prisma.PrincipalUncheckedUpdateWithoutGrantsInput>;
735
+ };
736
+ export type PrincipalUpdateWithoutGrantsInput = {
737
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
738
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
739
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
740
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
741
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
742
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
743
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
744
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
745
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
746
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
747
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
748
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
749
+ };
750
+ export type PrincipalUncheckedUpdateWithoutGrantsInput = {
751
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
752
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
753
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
754
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
755
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
756
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
757
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
758
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
759
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
760
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
761
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
762
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
763
+ };
764
+ export type PrincipalCreateWithoutSecretsInput = {
765
+ id?: string;
766
+ subject: string;
767
+ createdAt?: Date | string;
768
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
769
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
770
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
771
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
772
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
773
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
774
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
775
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
776
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
777
+ };
778
+ export type PrincipalUncheckedCreateWithoutSecretsInput = {
779
+ id?: string;
780
+ subject: string;
781
+ createdAt?: Date | string;
782
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
783
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
784
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
785
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
786
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
787
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
788
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
789
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
790
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
791
+ };
792
+ export type PrincipalCreateOrConnectWithoutSecretsInput = {
793
+ where: Prisma.PrincipalWhereUniqueInput;
794
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutSecretsInput, Prisma.PrincipalUncheckedCreateWithoutSecretsInput>;
795
+ };
796
+ export type PrincipalUpsertWithoutSecretsInput = {
797
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutSecretsInput, Prisma.PrincipalUncheckedUpdateWithoutSecretsInput>;
798
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutSecretsInput, Prisma.PrincipalUncheckedCreateWithoutSecretsInput>;
799
+ where?: Prisma.PrincipalWhereInput;
800
+ };
801
+ export type PrincipalUpdateToOneWithWhereWithoutSecretsInput = {
802
+ where?: Prisma.PrincipalWhereInput;
803
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutSecretsInput, Prisma.PrincipalUncheckedUpdateWithoutSecretsInput>;
804
+ };
805
+ export type PrincipalUpdateWithoutSecretsInput = {
806
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
807
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
808
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
809
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
810
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
811
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
812
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
813
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
814
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
815
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
816
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
817
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
818
+ };
819
+ export type PrincipalUncheckedUpdateWithoutSecretsInput = {
820
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
821
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
822
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
823
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
824
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
825
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
826
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
827
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
828
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
829
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
830
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
831
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
832
+ };
833
+ export type PrincipalCreateWithoutWebhooksInput = {
834
+ id?: string;
835
+ subject: string;
836
+ createdAt?: Date | string;
837
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
838
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
839
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
840
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
841
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
842
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
843
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
844
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
845
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
846
+ };
847
+ export type PrincipalUncheckedCreateWithoutWebhooksInput = {
848
+ id?: string;
849
+ subject: string;
850
+ createdAt?: Date | string;
851
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
852
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
853
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
854
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
855
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
856
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
857
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
858
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
859
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
860
+ };
861
+ export type PrincipalCreateOrConnectWithoutWebhooksInput = {
862
+ where: Prisma.PrincipalWhereUniqueInput;
863
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutWebhooksInput, Prisma.PrincipalUncheckedCreateWithoutWebhooksInput>;
864
+ };
865
+ export type PrincipalUpsertWithoutWebhooksInput = {
866
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutWebhooksInput, Prisma.PrincipalUncheckedUpdateWithoutWebhooksInput>;
867
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutWebhooksInput, Prisma.PrincipalUncheckedCreateWithoutWebhooksInput>;
868
+ where?: Prisma.PrincipalWhereInput;
869
+ };
870
+ export type PrincipalUpdateToOneWithWhereWithoutWebhooksInput = {
871
+ where?: Prisma.PrincipalWhereInput;
872
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutWebhooksInput, Prisma.PrincipalUncheckedUpdateWithoutWebhooksInput>;
873
+ };
874
+ export type PrincipalUpdateWithoutWebhooksInput = {
875
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
876
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
877
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
878
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
879
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
880
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
881
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
882
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
883
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
884
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
885
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
886
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
887
+ };
888
+ export type PrincipalUncheckedUpdateWithoutWebhooksInput = {
889
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
890
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
891
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
892
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
893
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
894
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
895
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
896
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
897
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
898
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
899
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
900
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
901
+ };
902
+ export type PrincipalCreateWithoutAuthUserInput = {
903
+ id?: string;
904
+ subject: string;
905
+ createdAt?: Date | string;
906
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
907
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
908
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
909
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
910
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
911
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
912
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
913
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
914
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
915
+ };
916
+ export type PrincipalUncheckedCreateWithoutAuthUserInput = {
917
+ id?: string;
918
+ subject: string;
919
+ createdAt?: Date | string;
920
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
921
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
922
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
923
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
924
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
925
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
926
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
927
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
928
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
929
+ };
930
+ export type PrincipalCreateOrConnectWithoutAuthUserInput = {
931
+ where: Prisma.PrincipalWhereUniqueInput;
932
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutAuthUserInput, Prisma.PrincipalUncheckedCreateWithoutAuthUserInput>;
933
+ };
934
+ export type PrincipalUpsertWithoutAuthUserInput = {
935
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutAuthUserInput, Prisma.PrincipalUncheckedUpdateWithoutAuthUserInput>;
936
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutAuthUserInput, Prisma.PrincipalUncheckedCreateWithoutAuthUserInput>;
937
+ where?: Prisma.PrincipalWhereInput;
938
+ };
939
+ export type PrincipalUpdateToOneWithWhereWithoutAuthUserInput = {
940
+ where?: Prisma.PrincipalWhereInput;
941
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutAuthUserInput, Prisma.PrincipalUncheckedUpdateWithoutAuthUserInput>;
942
+ };
943
+ export type PrincipalUpdateWithoutAuthUserInput = {
944
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
945
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
946
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
947
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
948
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
949
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
950
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
951
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
952
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
953
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
954
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
955
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
956
+ };
957
+ export type PrincipalUncheckedUpdateWithoutAuthUserInput = {
958
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
959
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
960
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
961
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
962
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
963
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
964
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
965
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
966
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
967
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
968
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
969
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
970
+ };
971
+ export type PrincipalCreateWithoutHostIdentitiesInput = {
972
+ id?: string;
973
+ subject: string;
974
+ createdAt?: Date | string;
975
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
976
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
977
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
978
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
979
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
980
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
981
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
982
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestCreateNestedManyWithoutPrincipalInput;
983
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
984
+ };
985
+ export type PrincipalUncheckedCreateWithoutHostIdentitiesInput = {
986
+ id?: string;
987
+ subject: string;
988
+ createdAt?: Date | string;
989
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
990
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
991
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
992
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
993
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
994
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
995
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
996
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedCreateNestedManyWithoutPrincipalInput;
997
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
998
+ };
999
+ export type PrincipalCreateOrConnectWithoutHostIdentitiesInput = {
1000
+ where: Prisma.PrincipalWhereUniqueInput;
1001
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentitiesInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentitiesInput>;
1002
+ };
1003
+ export type PrincipalUpsertWithoutHostIdentitiesInput = {
1004
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutHostIdentitiesInput, Prisma.PrincipalUncheckedUpdateWithoutHostIdentitiesInput>;
1005
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentitiesInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentitiesInput>;
1006
+ where?: Prisma.PrincipalWhereInput;
1007
+ };
1008
+ export type PrincipalUpdateToOneWithWhereWithoutHostIdentitiesInput = {
1009
+ where?: Prisma.PrincipalWhereInput;
1010
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutHostIdentitiesInput, Prisma.PrincipalUncheckedUpdateWithoutHostIdentitiesInput>;
1011
+ };
1012
+ export type PrincipalUpdateWithoutHostIdentitiesInput = {
1013
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1014
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
1015
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1016
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
1017
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
1018
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
1019
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
1020
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
1021
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
1022
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
1023
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUpdateManyWithoutPrincipalNestedInput;
1024
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
1025
+ };
1026
+ export type PrincipalUncheckedUpdateWithoutHostIdentitiesInput = {
1027
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1028
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
1029
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1030
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
1031
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
1032
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
1033
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
1034
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
1035
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
1036
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
1037
+ hostIdentityLinkRequests?: Prisma.HostIdentityLinkRequestUncheckedUpdateManyWithoutPrincipalNestedInput;
1038
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
1039
+ };
1040
+ export type PrincipalCreateWithoutHostIdentityLinkRequestsInput = {
1041
+ id?: string;
1042
+ subject: string;
1043
+ createdAt?: Date | string;
1044
+ agents?: Prisma.AgentCreateNestedManyWithoutOwnerInput;
1045
+ tools?: Prisma.ToolCreateNestedManyWithoutOwnerInput;
1046
+ secrets?: Prisma.SecretCreateNestedManyWithoutOwnerInput;
1047
+ datastores?: Prisma.DatastoreCreateNestedManyWithoutOwnerInput;
1048
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutOwnerInput;
1049
+ authUser?: Prisma.AuthUserCreateNestedOneWithoutPrincipalInput;
1050
+ budgetGroups?: Prisma.BudgetGroupCreateNestedManyWithoutOwnerInput;
1051
+ hostIdentities?: Prisma.HostIdentityCreateNestedManyWithoutPrincipalInput;
1052
+ grants?: Prisma.ResourceGrantCreateNestedManyWithoutGranteePrincipalInput;
1053
+ };
1054
+ export type PrincipalUncheckedCreateWithoutHostIdentityLinkRequestsInput = {
1055
+ id?: string;
1056
+ subject: string;
1057
+ createdAt?: Date | string;
1058
+ agents?: Prisma.AgentUncheckedCreateNestedManyWithoutOwnerInput;
1059
+ tools?: Prisma.ToolUncheckedCreateNestedManyWithoutOwnerInput;
1060
+ secrets?: Prisma.SecretUncheckedCreateNestedManyWithoutOwnerInput;
1061
+ datastores?: Prisma.DatastoreUncheckedCreateNestedManyWithoutOwnerInput;
1062
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutOwnerInput;
1063
+ authUser?: Prisma.AuthUserUncheckedCreateNestedOneWithoutPrincipalInput;
1064
+ budgetGroups?: Prisma.BudgetGroupUncheckedCreateNestedManyWithoutOwnerInput;
1065
+ hostIdentities?: Prisma.HostIdentityUncheckedCreateNestedManyWithoutPrincipalInput;
1066
+ grants?: Prisma.ResourceGrantUncheckedCreateNestedManyWithoutGranteePrincipalInput;
1067
+ };
1068
+ export type PrincipalCreateOrConnectWithoutHostIdentityLinkRequestsInput = {
1069
+ where: Prisma.PrincipalWhereUniqueInput;
1070
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentityLinkRequestsInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentityLinkRequestsInput>;
1071
+ };
1072
+ export type PrincipalUpsertWithoutHostIdentityLinkRequestsInput = {
1073
+ update: Prisma.XOR<Prisma.PrincipalUpdateWithoutHostIdentityLinkRequestsInput, Prisma.PrincipalUncheckedUpdateWithoutHostIdentityLinkRequestsInput>;
1074
+ create: Prisma.XOR<Prisma.PrincipalCreateWithoutHostIdentityLinkRequestsInput, Prisma.PrincipalUncheckedCreateWithoutHostIdentityLinkRequestsInput>;
1075
+ where?: Prisma.PrincipalWhereInput;
1076
+ };
1077
+ export type PrincipalUpdateToOneWithWhereWithoutHostIdentityLinkRequestsInput = {
1078
+ where?: Prisma.PrincipalWhereInput;
1079
+ data: Prisma.XOR<Prisma.PrincipalUpdateWithoutHostIdentityLinkRequestsInput, Prisma.PrincipalUncheckedUpdateWithoutHostIdentityLinkRequestsInput>;
1080
+ };
1081
+ export type PrincipalUpdateWithoutHostIdentityLinkRequestsInput = {
1082
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1083
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
1084
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1085
+ agents?: Prisma.AgentUpdateManyWithoutOwnerNestedInput;
1086
+ tools?: Prisma.ToolUpdateManyWithoutOwnerNestedInput;
1087
+ secrets?: Prisma.SecretUpdateManyWithoutOwnerNestedInput;
1088
+ datastores?: Prisma.DatastoreUpdateManyWithoutOwnerNestedInput;
1089
+ webhooks?: Prisma.WebhookUpdateManyWithoutOwnerNestedInput;
1090
+ authUser?: Prisma.AuthUserUpdateOneWithoutPrincipalNestedInput;
1091
+ budgetGroups?: Prisma.BudgetGroupUpdateManyWithoutOwnerNestedInput;
1092
+ hostIdentities?: Prisma.HostIdentityUpdateManyWithoutPrincipalNestedInput;
1093
+ grants?: Prisma.ResourceGrantUpdateManyWithoutGranteePrincipalNestedInput;
1094
+ };
1095
+ export type PrincipalUncheckedUpdateWithoutHostIdentityLinkRequestsInput = {
1096
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1097
+ subject?: Prisma.StringFieldUpdateOperationsInput | string;
1098
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1099
+ agents?: Prisma.AgentUncheckedUpdateManyWithoutOwnerNestedInput;
1100
+ tools?: Prisma.ToolUncheckedUpdateManyWithoutOwnerNestedInput;
1101
+ secrets?: Prisma.SecretUncheckedUpdateManyWithoutOwnerNestedInput;
1102
+ datastores?: Prisma.DatastoreUncheckedUpdateManyWithoutOwnerNestedInput;
1103
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutOwnerNestedInput;
1104
+ authUser?: Prisma.AuthUserUncheckedUpdateOneWithoutPrincipalNestedInput;
1105
+ budgetGroups?: Prisma.BudgetGroupUncheckedUpdateManyWithoutOwnerNestedInput;
1106
+ hostIdentities?: Prisma.HostIdentityUncheckedUpdateManyWithoutPrincipalNestedInput;
1107
+ grants?: Prisma.ResourceGrantUncheckedUpdateManyWithoutGranteePrincipalNestedInput;
1108
+ };
1109
+ /**
1110
+ * Count Type PrincipalCountOutputType
1111
+ */
1112
+ export type PrincipalCountOutputType = {
1113
+ agents: number;
1114
+ tools: number;
1115
+ secrets: number;
1116
+ datastores: number;
1117
+ webhooks: number;
1118
+ budgetGroups: number;
1119
+ hostIdentities: number;
1120
+ hostIdentityLinkRequests: number;
1121
+ grants: number;
1122
+ };
1123
+ export type PrincipalCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1124
+ agents?: boolean | PrincipalCountOutputTypeCountAgentsArgs;
1125
+ tools?: boolean | PrincipalCountOutputTypeCountToolsArgs;
1126
+ secrets?: boolean | PrincipalCountOutputTypeCountSecretsArgs;
1127
+ datastores?: boolean | PrincipalCountOutputTypeCountDatastoresArgs;
1128
+ webhooks?: boolean | PrincipalCountOutputTypeCountWebhooksArgs;
1129
+ budgetGroups?: boolean | PrincipalCountOutputTypeCountBudgetGroupsArgs;
1130
+ hostIdentities?: boolean | PrincipalCountOutputTypeCountHostIdentitiesArgs;
1131
+ hostIdentityLinkRequests?: boolean | PrincipalCountOutputTypeCountHostIdentityLinkRequestsArgs;
1132
+ grants?: boolean | PrincipalCountOutputTypeCountGrantsArgs;
1133
+ };
1134
+ /**
1135
+ * PrincipalCountOutputType without action
1136
+ */
1137
+ export type PrincipalCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1138
+ /**
1139
+ * Select specific fields to fetch from the PrincipalCountOutputType
1140
+ */
1141
+ select?: Prisma.PrincipalCountOutputTypeSelect<ExtArgs> | null;
1142
+ };
1143
+ /**
1144
+ * PrincipalCountOutputType without action
1145
+ */
1146
+ export type PrincipalCountOutputTypeCountAgentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1147
+ where?: Prisma.AgentWhereInput;
1148
+ };
1149
+ /**
1150
+ * PrincipalCountOutputType without action
1151
+ */
1152
+ export type PrincipalCountOutputTypeCountToolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1153
+ where?: Prisma.ToolWhereInput;
1154
+ };
1155
+ /**
1156
+ * PrincipalCountOutputType without action
1157
+ */
1158
+ export type PrincipalCountOutputTypeCountSecretsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ where?: Prisma.SecretWhereInput;
1160
+ };
1161
+ /**
1162
+ * PrincipalCountOutputType without action
1163
+ */
1164
+ export type PrincipalCountOutputTypeCountDatastoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
+ where?: Prisma.DatastoreWhereInput;
1166
+ };
1167
+ /**
1168
+ * PrincipalCountOutputType without action
1169
+ */
1170
+ export type PrincipalCountOutputTypeCountWebhooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1171
+ where?: Prisma.WebhookWhereInput;
1172
+ };
1173
+ /**
1174
+ * PrincipalCountOutputType without action
1175
+ */
1176
+ export type PrincipalCountOutputTypeCountBudgetGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1177
+ where?: Prisma.BudgetGroupWhereInput;
1178
+ };
1179
+ /**
1180
+ * PrincipalCountOutputType without action
1181
+ */
1182
+ export type PrincipalCountOutputTypeCountHostIdentitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1183
+ where?: Prisma.HostIdentityWhereInput;
1184
+ };
1185
+ /**
1186
+ * PrincipalCountOutputType without action
1187
+ */
1188
+ export type PrincipalCountOutputTypeCountHostIdentityLinkRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1189
+ where?: Prisma.HostIdentityLinkRequestWhereInput;
1190
+ };
1191
+ /**
1192
+ * PrincipalCountOutputType without action
1193
+ */
1194
+ export type PrincipalCountOutputTypeCountGrantsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1195
+ where?: Prisma.ResourceGrantWhereInput;
1196
+ };
1197
+ export type PrincipalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1198
+ id?: boolean;
1199
+ subject?: boolean;
1200
+ createdAt?: boolean;
1201
+ agents?: boolean | Prisma.Principal$agentsArgs<ExtArgs>;
1202
+ tools?: boolean | Prisma.Principal$toolsArgs<ExtArgs>;
1203
+ secrets?: boolean | Prisma.Principal$secretsArgs<ExtArgs>;
1204
+ datastores?: boolean | Prisma.Principal$datastoresArgs<ExtArgs>;
1205
+ webhooks?: boolean | Prisma.Principal$webhooksArgs<ExtArgs>;
1206
+ authUser?: boolean | Prisma.Principal$authUserArgs<ExtArgs>;
1207
+ budgetGroups?: boolean | Prisma.Principal$budgetGroupsArgs<ExtArgs>;
1208
+ hostIdentities?: boolean | Prisma.Principal$hostIdentitiesArgs<ExtArgs>;
1209
+ hostIdentityLinkRequests?: boolean | Prisma.Principal$hostIdentityLinkRequestsArgs<ExtArgs>;
1210
+ grants?: boolean | Prisma.Principal$grantsArgs<ExtArgs>;
1211
+ _count?: boolean | Prisma.PrincipalCountOutputTypeDefaultArgs<ExtArgs>;
1212
+ }, ExtArgs["result"]["principal"]>;
1213
+ export type PrincipalSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1214
+ id?: boolean;
1215
+ subject?: boolean;
1216
+ createdAt?: boolean;
1217
+ }, ExtArgs["result"]["principal"]>;
1218
+ export type PrincipalSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1219
+ id?: boolean;
1220
+ subject?: boolean;
1221
+ createdAt?: boolean;
1222
+ }, ExtArgs["result"]["principal"]>;
1223
+ export type PrincipalSelectScalar = {
1224
+ id?: boolean;
1225
+ subject?: boolean;
1226
+ createdAt?: boolean;
1227
+ };
1228
+ export type PrincipalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "subject" | "createdAt", ExtArgs["result"]["principal"]>;
1229
+ export type PrincipalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1230
+ agents?: boolean | Prisma.Principal$agentsArgs<ExtArgs>;
1231
+ tools?: boolean | Prisma.Principal$toolsArgs<ExtArgs>;
1232
+ secrets?: boolean | Prisma.Principal$secretsArgs<ExtArgs>;
1233
+ datastores?: boolean | Prisma.Principal$datastoresArgs<ExtArgs>;
1234
+ webhooks?: boolean | Prisma.Principal$webhooksArgs<ExtArgs>;
1235
+ authUser?: boolean | Prisma.Principal$authUserArgs<ExtArgs>;
1236
+ budgetGroups?: boolean | Prisma.Principal$budgetGroupsArgs<ExtArgs>;
1237
+ hostIdentities?: boolean | Prisma.Principal$hostIdentitiesArgs<ExtArgs>;
1238
+ hostIdentityLinkRequests?: boolean | Prisma.Principal$hostIdentityLinkRequestsArgs<ExtArgs>;
1239
+ grants?: boolean | Prisma.Principal$grantsArgs<ExtArgs>;
1240
+ _count?: boolean | Prisma.PrincipalCountOutputTypeDefaultArgs<ExtArgs>;
1241
+ };
1242
+ export type PrincipalIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
1243
+ export type PrincipalIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
1244
+ export type $PrincipalPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1245
+ name: "Principal";
1246
+ objects: {
1247
+ agents: Prisma.$AgentPayload<ExtArgs>[];
1248
+ tools: Prisma.$ToolPayload<ExtArgs>[];
1249
+ secrets: Prisma.$SecretPayload<ExtArgs>[];
1250
+ datastores: Prisma.$DatastorePayload<ExtArgs>[];
1251
+ webhooks: Prisma.$WebhookPayload<ExtArgs>[];
1252
+ authUser: Prisma.$AuthUserPayload<ExtArgs> | null;
1253
+ budgetGroups: Prisma.$BudgetGroupPayload<ExtArgs>[];
1254
+ hostIdentities: Prisma.$HostIdentityPayload<ExtArgs>[];
1255
+ hostIdentityLinkRequests: Prisma.$HostIdentityLinkRequestPayload<ExtArgs>[];
1256
+ grants: Prisma.$ResourceGrantPayload<ExtArgs>[];
1257
+ };
1258
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1259
+ id: string;
1260
+ subject: string;
1261
+ createdAt: Date;
1262
+ }, ExtArgs["result"]["principal"]>;
1263
+ composites: {};
1264
+ };
1265
+ export type PrincipalGetPayload<S extends boolean | null | undefined | PrincipalDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PrincipalPayload, S>;
1266
+ export type PrincipalCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PrincipalFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1267
+ select?: PrincipalCountAggregateInputType | true;
1268
+ };
1269
+ export interface PrincipalDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1270
+ [K: symbol]: {
1271
+ types: Prisma.TypeMap<ExtArgs>['model']['Principal'];
1272
+ meta: {
1273
+ name: 'Principal';
1274
+ };
1275
+ };
1276
+ /**
1277
+ * Find zero or one Principal that matches the filter.
1278
+ * @param {PrincipalFindUniqueArgs} args - Arguments to find a Principal
1279
+ * @example
1280
+ * // Get one Principal
1281
+ * const principal = await prisma.principal.findUnique({
1282
+ * where: {
1283
+ * // ... provide filter here
1284
+ * }
1285
+ * })
1286
+ */
1287
+ findUnique<T extends PrincipalFindUniqueArgs>(args: Prisma.SelectSubset<T, PrincipalFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1288
+ /**
1289
+ * Find one Principal that matches the filter or throw an error with `error.code='P2025'`
1290
+ * if no matches were found.
1291
+ * @param {PrincipalFindUniqueOrThrowArgs} args - Arguments to find a Principal
1292
+ * @example
1293
+ * // Get one Principal
1294
+ * const principal = await prisma.principal.findUniqueOrThrow({
1295
+ * where: {
1296
+ * // ... provide filter here
1297
+ * }
1298
+ * })
1299
+ */
1300
+ findUniqueOrThrow<T extends PrincipalFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PrincipalFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1301
+ /**
1302
+ * Find the first Principal that matches the filter.
1303
+ * Note, that providing `undefined` is treated as the value not being there.
1304
+ * Read more here: https://pris.ly/d/null-undefined
1305
+ * @param {PrincipalFindFirstArgs} args - Arguments to find a Principal
1306
+ * @example
1307
+ * // Get one Principal
1308
+ * const principal = await prisma.principal.findFirst({
1309
+ * where: {
1310
+ * // ... provide filter here
1311
+ * }
1312
+ * })
1313
+ */
1314
+ findFirst<T extends PrincipalFindFirstArgs>(args?: Prisma.SelectSubset<T, PrincipalFindFirstArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1315
+ /**
1316
+ * Find the first Principal that matches the filter or
1317
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1318
+ * Note, that providing `undefined` is treated as the value not being there.
1319
+ * Read more here: https://pris.ly/d/null-undefined
1320
+ * @param {PrincipalFindFirstOrThrowArgs} args - Arguments to find a Principal
1321
+ * @example
1322
+ * // Get one Principal
1323
+ * const principal = await prisma.principal.findFirstOrThrow({
1324
+ * where: {
1325
+ * // ... provide filter here
1326
+ * }
1327
+ * })
1328
+ */
1329
+ findFirstOrThrow<T extends PrincipalFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PrincipalFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1330
+ /**
1331
+ * Find zero or more Principals that matches the filter.
1332
+ * Note, that providing `undefined` is treated as the value not being there.
1333
+ * Read more here: https://pris.ly/d/null-undefined
1334
+ * @param {PrincipalFindManyArgs} args - Arguments to filter and select certain fields only.
1335
+ * @example
1336
+ * // Get all Principals
1337
+ * const principals = await prisma.principal.findMany()
1338
+ *
1339
+ * // Get first 10 Principals
1340
+ * const principals = await prisma.principal.findMany({ take: 10 })
1341
+ *
1342
+ * // Only select the `id`
1343
+ * const principalWithIdOnly = await prisma.principal.findMany({ select: { id: true } })
1344
+ *
1345
+ */
1346
+ findMany<T extends PrincipalFindManyArgs>(args?: Prisma.SelectSubset<T, PrincipalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1347
+ /**
1348
+ * Create a Principal.
1349
+ * @param {PrincipalCreateArgs} args - Arguments to create a Principal.
1350
+ * @example
1351
+ * // Create one Principal
1352
+ * const Principal = await prisma.principal.create({
1353
+ * data: {
1354
+ * // ... data to create a Principal
1355
+ * }
1356
+ * })
1357
+ *
1358
+ */
1359
+ create<T extends PrincipalCreateArgs>(args: Prisma.SelectSubset<T, PrincipalCreateArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1360
+ /**
1361
+ * Create many Principals.
1362
+ * @param {PrincipalCreateManyArgs} args - Arguments to create many Principals.
1363
+ * @example
1364
+ * // Create many Principals
1365
+ * const principal = await prisma.principal.createMany({
1366
+ * data: [
1367
+ * // ... provide data here
1368
+ * ]
1369
+ * })
1370
+ *
1371
+ */
1372
+ createMany<T extends PrincipalCreateManyArgs>(args?: Prisma.SelectSubset<T, PrincipalCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1373
+ /**
1374
+ * Create many Principals and returns the data saved in the database.
1375
+ * @param {PrincipalCreateManyAndReturnArgs} args - Arguments to create many Principals.
1376
+ * @example
1377
+ * // Create many Principals
1378
+ * const principal = await prisma.principal.createManyAndReturn({
1379
+ * data: [
1380
+ * // ... provide data here
1381
+ * ]
1382
+ * })
1383
+ *
1384
+ * // Create many Principals and only return the `id`
1385
+ * const principalWithIdOnly = await prisma.principal.createManyAndReturn({
1386
+ * select: { id: true },
1387
+ * data: [
1388
+ * // ... provide data here
1389
+ * ]
1390
+ * })
1391
+ * Note, that providing `undefined` is treated as the value not being there.
1392
+ * Read more here: https://pris.ly/d/null-undefined
1393
+ *
1394
+ */
1395
+ createManyAndReturn<T extends PrincipalCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PrincipalCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1396
+ /**
1397
+ * Delete a Principal.
1398
+ * @param {PrincipalDeleteArgs} args - Arguments to delete one Principal.
1399
+ * @example
1400
+ * // Delete one Principal
1401
+ * const Principal = await prisma.principal.delete({
1402
+ * where: {
1403
+ * // ... filter to delete one Principal
1404
+ * }
1405
+ * })
1406
+ *
1407
+ */
1408
+ delete<T extends PrincipalDeleteArgs>(args: Prisma.SelectSubset<T, PrincipalDeleteArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1409
+ /**
1410
+ * Update one Principal.
1411
+ * @param {PrincipalUpdateArgs} args - Arguments to update one Principal.
1412
+ * @example
1413
+ * // Update one Principal
1414
+ * const principal = await prisma.principal.update({
1415
+ * where: {
1416
+ * // ... provide filter here
1417
+ * },
1418
+ * data: {
1419
+ * // ... provide data here
1420
+ * }
1421
+ * })
1422
+ *
1423
+ */
1424
+ update<T extends PrincipalUpdateArgs>(args: Prisma.SelectSubset<T, PrincipalUpdateArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1425
+ /**
1426
+ * Delete zero or more Principals.
1427
+ * @param {PrincipalDeleteManyArgs} args - Arguments to filter Principals to delete.
1428
+ * @example
1429
+ * // Delete a few Principals
1430
+ * const { count } = await prisma.principal.deleteMany({
1431
+ * where: {
1432
+ * // ... provide filter here
1433
+ * }
1434
+ * })
1435
+ *
1436
+ */
1437
+ deleteMany<T extends PrincipalDeleteManyArgs>(args?: Prisma.SelectSubset<T, PrincipalDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1438
+ /**
1439
+ * Update zero or more Principals.
1440
+ * Note, that providing `undefined` is treated as the value not being there.
1441
+ * Read more here: https://pris.ly/d/null-undefined
1442
+ * @param {PrincipalUpdateManyArgs} args - Arguments to update one or more rows.
1443
+ * @example
1444
+ * // Update many Principals
1445
+ * const principal = await prisma.principal.updateMany({
1446
+ * where: {
1447
+ * // ... provide filter here
1448
+ * },
1449
+ * data: {
1450
+ * // ... provide data here
1451
+ * }
1452
+ * })
1453
+ *
1454
+ */
1455
+ updateMany<T extends PrincipalUpdateManyArgs>(args: Prisma.SelectSubset<T, PrincipalUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1456
+ /**
1457
+ * Update zero or more Principals and returns the data updated in the database.
1458
+ * @param {PrincipalUpdateManyAndReturnArgs} args - Arguments to update many Principals.
1459
+ * @example
1460
+ * // Update many Principals
1461
+ * const principal = await prisma.principal.updateManyAndReturn({
1462
+ * where: {
1463
+ * // ... provide filter here
1464
+ * },
1465
+ * data: [
1466
+ * // ... provide data here
1467
+ * ]
1468
+ * })
1469
+ *
1470
+ * // Update zero or more Principals and only return the `id`
1471
+ * const principalWithIdOnly = await prisma.principal.updateManyAndReturn({
1472
+ * select: { id: true },
1473
+ * where: {
1474
+ * // ... provide filter here
1475
+ * },
1476
+ * data: [
1477
+ * // ... provide data here
1478
+ * ]
1479
+ * })
1480
+ * Note, that providing `undefined` is treated as the value not being there.
1481
+ * Read more here: https://pris.ly/d/null-undefined
1482
+ *
1483
+ */
1484
+ updateManyAndReturn<T extends PrincipalUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PrincipalUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1485
+ /**
1486
+ * Create or update one Principal.
1487
+ * @param {PrincipalUpsertArgs} args - Arguments to update or create a Principal.
1488
+ * @example
1489
+ * // Update or create a Principal
1490
+ * const principal = await prisma.principal.upsert({
1491
+ * create: {
1492
+ * // ... data to create a Principal
1493
+ * },
1494
+ * update: {
1495
+ * // ... in case it already exists, update
1496
+ * },
1497
+ * where: {
1498
+ * // ... the filter for the Principal we want to update
1499
+ * }
1500
+ * })
1501
+ */
1502
+ upsert<T extends PrincipalUpsertArgs>(args: Prisma.SelectSubset<T, PrincipalUpsertArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1503
+ /**
1504
+ * Count the number of Principals.
1505
+ * Note, that providing `undefined` is treated as the value not being there.
1506
+ * Read more here: https://pris.ly/d/null-undefined
1507
+ * @param {PrincipalCountArgs} args - Arguments to filter Principals to count.
1508
+ * @example
1509
+ * // Count the number of Principals
1510
+ * const count = await prisma.principal.count({
1511
+ * where: {
1512
+ * // ... the filter for the Principals we want to count
1513
+ * }
1514
+ * })
1515
+ **/
1516
+ count<T extends PrincipalCountArgs>(args?: Prisma.Subset<T, PrincipalCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PrincipalCountAggregateOutputType> : number>;
1517
+ /**
1518
+ * Allows you to perform aggregations operations on a Principal.
1519
+ * Note, that providing `undefined` is treated as the value not being there.
1520
+ * Read more here: https://pris.ly/d/null-undefined
1521
+ * @param {PrincipalAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1522
+ * @example
1523
+ * // Ordered by age ascending
1524
+ * // Where email contains prisma.io
1525
+ * // Limited to the 10 users
1526
+ * const aggregations = await prisma.user.aggregate({
1527
+ * _avg: {
1528
+ * age: true,
1529
+ * },
1530
+ * where: {
1531
+ * email: {
1532
+ * contains: "prisma.io",
1533
+ * },
1534
+ * },
1535
+ * orderBy: {
1536
+ * age: "asc",
1537
+ * },
1538
+ * take: 10,
1539
+ * })
1540
+ **/
1541
+ aggregate<T extends PrincipalAggregateArgs>(args: Prisma.Subset<T, PrincipalAggregateArgs>): Prisma.PrismaPromise<GetPrincipalAggregateType<T>>;
1542
+ /**
1543
+ * Group by Principal.
1544
+ * Note, that providing `undefined` is treated as the value not being there.
1545
+ * Read more here: https://pris.ly/d/null-undefined
1546
+ * @param {PrincipalGroupByArgs} args - Group by arguments.
1547
+ * @example
1548
+ * // Group by city, order by createdAt, get count
1549
+ * const result = await prisma.user.groupBy({
1550
+ * by: ['city', 'createdAt'],
1551
+ * orderBy: {
1552
+ * createdAt: true
1553
+ * },
1554
+ * _count: {
1555
+ * _all: true
1556
+ * },
1557
+ * })
1558
+ *
1559
+ **/
1560
+ groupBy<T extends PrincipalGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1561
+ orderBy: PrincipalGroupByArgs['orderBy'];
1562
+ } : {
1563
+ orderBy?: PrincipalGroupByArgs['orderBy'];
1564
+ }, 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 ? {
1565
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1566
+ Error,
1567
+ 'Field ',
1568
+ P,
1569
+ ` in "having" needs to be provided in "by"`
1570
+ ];
1571
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1572
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1573
+ }[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 ? {} : {
1574
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1575
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1576
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1577
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PrincipalGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPrincipalGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1578
+ /**
1579
+ * Fields of the Principal model
1580
+ */
1581
+ readonly fields: PrincipalFieldRefs;
1582
+ }
1583
+ /**
1584
+ * The delegate class that acts as a "Promise-like" for Principal.
1585
+ * Why is this prefixed with `Prisma__`?
1586
+ * Because we want to prevent naming conflicts as mentioned in
1587
+ * https://github.com/prisma/prisma-client-js/issues/707
1588
+ */
1589
+ export interface Prisma__PrincipalClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1590
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1591
+ agents<T extends Prisma.Principal$agentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$agentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1592
+ tools<T extends Prisma.Principal$toolsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$toolsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1593
+ secrets<T extends Prisma.Principal$secretsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$secretsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SecretPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1594
+ datastores<T extends Prisma.Principal$datastoresArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$datastoresArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatastorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1595
+ webhooks<T extends Prisma.Principal$webhooksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$webhooksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1596
+ authUser<T extends Prisma.Principal$authUserArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$authUserArgs<ExtArgs>>): Prisma.Prisma__AuthUserClient<runtime.Types.Result.GetResult<Prisma.$AuthUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1597
+ budgetGroups<T extends Prisma.Principal$budgetGroupsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$budgetGroupsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BudgetGroupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1598
+ hostIdentities<T extends Prisma.Principal$hostIdentitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$hostIdentitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HostIdentityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1599
+ hostIdentityLinkRequests<T extends Prisma.Principal$hostIdentityLinkRequestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$hostIdentityLinkRequestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HostIdentityLinkRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1600
+ grants<T extends Prisma.Principal$grantsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Principal$grantsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourceGrantPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1601
+ /**
1602
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1603
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1604
+ * @param onrejected The callback to execute when the Promise is rejected.
1605
+ * @returns A Promise for the completion of which ever callback is executed.
1606
+ */
1607
+ 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>;
1608
+ /**
1609
+ * Attaches a callback for only the rejection of the Promise.
1610
+ * @param onrejected The callback to execute when the Promise is rejected.
1611
+ * @returns A Promise for the completion of the callback.
1612
+ */
1613
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1614
+ /**
1615
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1616
+ * resolved value cannot be modified from the callback.
1617
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1618
+ * @returns A Promise for the completion of the callback.
1619
+ */
1620
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1621
+ }
1622
+ /**
1623
+ * Fields of the Principal model
1624
+ */
1625
+ export interface PrincipalFieldRefs {
1626
+ readonly id: Prisma.FieldRef<"Principal", 'String'>;
1627
+ readonly subject: Prisma.FieldRef<"Principal", 'String'>;
1628
+ readonly createdAt: Prisma.FieldRef<"Principal", 'DateTime'>;
1629
+ }
1630
+ /**
1631
+ * Principal findUnique
1632
+ */
1633
+ export type PrincipalFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1634
+ /**
1635
+ * Select specific fields to fetch from the Principal
1636
+ */
1637
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1638
+ /**
1639
+ * Omit specific fields from the Principal
1640
+ */
1641
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1642
+ /**
1643
+ * Choose, which related nodes to fetch as well
1644
+ */
1645
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1646
+ /**
1647
+ * Filter, which Principal to fetch.
1648
+ */
1649
+ where: Prisma.PrincipalWhereUniqueInput;
1650
+ };
1651
+ /**
1652
+ * Principal findUniqueOrThrow
1653
+ */
1654
+ export type PrincipalFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1655
+ /**
1656
+ * Select specific fields to fetch from the Principal
1657
+ */
1658
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1659
+ /**
1660
+ * Omit specific fields from the Principal
1661
+ */
1662
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1663
+ /**
1664
+ * Choose, which related nodes to fetch as well
1665
+ */
1666
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1667
+ /**
1668
+ * Filter, which Principal to fetch.
1669
+ */
1670
+ where: Prisma.PrincipalWhereUniqueInput;
1671
+ };
1672
+ /**
1673
+ * Principal findFirst
1674
+ */
1675
+ export type PrincipalFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1676
+ /**
1677
+ * Select specific fields to fetch from the Principal
1678
+ */
1679
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1680
+ /**
1681
+ * Omit specific fields from the Principal
1682
+ */
1683
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1684
+ /**
1685
+ * Choose, which related nodes to fetch as well
1686
+ */
1687
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1688
+ /**
1689
+ * Filter, which Principal to fetch.
1690
+ */
1691
+ where?: Prisma.PrincipalWhereInput;
1692
+ /**
1693
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1694
+ *
1695
+ * Determine the order of Principals to fetch.
1696
+ */
1697
+ orderBy?: Prisma.PrincipalOrderByWithRelationInput | Prisma.PrincipalOrderByWithRelationInput[];
1698
+ /**
1699
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1700
+ *
1701
+ * Sets the position for searching for Principals.
1702
+ */
1703
+ cursor?: Prisma.PrincipalWhereUniqueInput;
1704
+ /**
1705
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1706
+ *
1707
+ * Take `±n` Principals from the position of the cursor.
1708
+ */
1709
+ take?: number;
1710
+ /**
1711
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1712
+ *
1713
+ * Skip the first `n` Principals.
1714
+ */
1715
+ skip?: number;
1716
+ /**
1717
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1718
+ *
1719
+ * Filter by unique combinations of Principals.
1720
+ */
1721
+ distinct?: Prisma.PrincipalScalarFieldEnum | Prisma.PrincipalScalarFieldEnum[];
1722
+ };
1723
+ /**
1724
+ * Principal findFirstOrThrow
1725
+ */
1726
+ export type PrincipalFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1727
+ /**
1728
+ * Select specific fields to fetch from the Principal
1729
+ */
1730
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1731
+ /**
1732
+ * Omit specific fields from the Principal
1733
+ */
1734
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1735
+ /**
1736
+ * Choose, which related nodes to fetch as well
1737
+ */
1738
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1739
+ /**
1740
+ * Filter, which Principal to fetch.
1741
+ */
1742
+ where?: Prisma.PrincipalWhereInput;
1743
+ /**
1744
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1745
+ *
1746
+ * Determine the order of Principals to fetch.
1747
+ */
1748
+ orderBy?: Prisma.PrincipalOrderByWithRelationInput | Prisma.PrincipalOrderByWithRelationInput[];
1749
+ /**
1750
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1751
+ *
1752
+ * Sets the position for searching for Principals.
1753
+ */
1754
+ cursor?: Prisma.PrincipalWhereUniqueInput;
1755
+ /**
1756
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1757
+ *
1758
+ * Take `±n` Principals from the position of the cursor.
1759
+ */
1760
+ take?: number;
1761
+ /**
1762
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1763
+ *
1764
+ * Skip the first `n` Principals.
1765
+ */
1766
+ skip?: number;
1767
+ /**
1768
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1769
+ *
1770
+ * Filter by unique combinations of Principals.
1771
+ */
1772
+ distinct?: Prisma.PrincipalScalarFieldEnum | Prisma.PrincipalScalarFieldEnum[];
1773
+ };
1774
+ /**
1775
+ * Principal findMany
1776
+ */
1777
+ export type PrincipalFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1778
+ /**
1779
+ * Select specific fields to fetch from the Principal
1780
+ */
1781
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1782
+ /**
1783
+ * Omit specific fields from the Principal
1784
+ */
1785
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1786
+ /**
1787
+ * Choose, which related nodes to fetch as well
1788
+ */
1789
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1790
+ /**
1791
+ * Filter, which Principals to fetch.
1792
+ */
1793
+ where?: Prisma.PrincipalWhereInput;
1794
+ /**
1795
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1796
+ *
1797
+ * Determine the order of Principals to fetch.
1798
+ */
1799
+ orderBy?: Prisma.PrincipalOrderByWithRelationInput | Prisma.PrincipalOrderByWithRelationInput[];
1800
+ /**
1801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1802
+ *
1803
+ * Sets the position for listing Principals.
1804
+ */
1805
+ cursor?: Prisma.PrincipalWhereUniqueInput;
1806
+ /**
1807
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1808
+ *
1809
+ * Take `±n` Principals from the position of the cursor.
1810
+ */
1811
+ take?: number;
1812
+ /**
1813
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1814
+ *
1815
+ * Skip the first `n` Principals.
1816
+ */
1817
+ skip?: number;
1818
+ /**
1819
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1820
+ *
1821
+ * Filter by unique combinations of Principals.
1822
+ */
1823
+ distinct?: Prisma.PrincipalScalarFieldEnum | Prisma.PrincipalScalarFieldEnum[];
1824
+ };
1825
+ /**
1826
+ * Principal create
1827
+ */
1828
+ export type PrincipalCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1829
+ /**
1830
+ * Select specific fields to fetch from the Principal
1831
+ */
1832
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1833
+ /**
1834
+ * Omit specific fields from the Principal
1835
+ */
1836
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1837
+ /**
1838
+ * Choose, which related nodes to fetch as well
1839
+ */
1840
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1841
+ /**
1842
+ * The data needed to create a Principal.
1843
+ */
1844
+ data: Prisma.XOR<Prisma.PrincipalCreateInput, Prisma.PrincipalUncheckedCreateInput>;
1845
+ };
1846
+ /**
1847
+ * Principal createMany
1848
+ */
1849
+ export type PrincipalCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1850
+ /**
1851
+ * The data used to create many Principals.
1852
+ */
1853
+ data: Prisma.PrincipalCreateManyInput | Prisma.PrincipalCreateManyInput[];
1854
+ skipDuplicates?: boolean;
1855
+ };
1856
+ /**
1857
+ * Principal createManyAndReturn
1858
+ */
1859
+ export type PrincipalCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1860
+ /**
1861
+ * Select specific fields to fetch from the Principal
1862
+ */
1863
+ select?: Prisma.PrincipalSelectCreateManyAndReturn<ExtArgs> | null;
1864
+ /**
1865
+ * Omit specific fields from the Principal
1866
+ */
1867
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1868
+ /**
1869
+ * The data used to create many Principals.
1870
+ */
1871
+ data: Prisma.PrincipalCreateManyInput | Prisma.PrincipalCreateManyInput[];
1872
+ skipDuplicates?: boolean;
1873
+ };
1874
+ /**
1875
+ * Principal update
1876
+ */
1877
+ export type PrincipalUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1878
+ /**
1879
+ * Select specific fields to fetch from the Principal
1880
+ */
1881
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1882
+ /**
1883
+ * Omit specific fields from the Principal
1884
+ */
1885
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1886
+ /**
1887
+ * Choose, which related nodes to fetch as well
1888
+ */
1889
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1890
+ /**
1891
+ * The data needed to update a Principal.
1892
+ */
1893
+ data: Prisma.XOR<Prisma.PrincipalUpdateInput, Prisma.PrincipalUncheckedUpdateInput>;
1894
+ /**
1895
+ * Choose, which Principal to update.
1896
+ */
1897
+ where: Prisma.PrincipalWhereUniqueInput;
1898
+ };
1899
+ /**
1900
+ * Principal updateMany
1901
+ */
1902
+ export type PrincipalUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1903
+ /**
1904
+ * The data used to update Principals.
1905
+ */
1906
+ data: Prisma.XOR<Prisma.PrincipalUpdateManyMutationInput, Prisma.PrincipalUncheckedUpdateManyInput>;
1907
+ /**
1908
+ * Filter which Principals to update
1909
+ */
1910
+ where?: Prisma.PrincipalWhereInput;
1911
+ /**
1912
+ * Limit how many Principals to update.
1913
+ */
1914
+ limit?: number;
1915
+ };
1916
+ /**
1917
+ * Principal updateManyAndReturn
1918
+ */
1919
+ export type PrincipalUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1920
+ /**
1921
+ * Select specific fields to fetch from the Principal
1922
+ */
1923
+ select?: Prisma.PrincipalSelectUpdateManyAndReturn<ExtArgs> | null;
1924
+ /**
1925
+ * Omit specific fields from the Principal
1926
+ */
1927
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1928
+ /**
1929
+ * The data used to update Principals.
1930
+ */
1931
+ data: Prisma.XOR<Prisma.PrincipalUpdateManyMutationInput, Prisma.PrincipalUncheckedUpdateManyInput>;
1932
+ /**
1933
+ * Filter which Principals to update
1934
+ */
1935
+ where?: Prisma.PrincipalWhereInput;
1936
+ /**
1937
+ * Limit how many Principals to update.
1938
+ */
1939
+ limit?: number;
1940
+ };
1941
+ /**
1942
+ * Principal upsert
1943
+ */
1944
+ export type PrincipalUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1945
+ /**
1946
+ * Select specific fields to fetch from the Principal
1947
+ */
1948
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1949
+ /**
1950
+ * Omit specific fields from the Principal
1951
+ */
1952
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1953
+ /**
1954
+ * Choose, which related nodes to fetch as well
1955
+ */
1956
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1957
+ /**
1958
+ * The filter to search for the Principal to update in case it exists.
1959
+ */
1960
+ where: Prisma.PrincipalWhereUniqueInput;
1961
+ /**
1962
+ * In case the Principal found by the `where` argument doesn't exist, create a new Principal with this data.
1963
+ */
1964
+ create: Prisma.XOR<Prisma.PrincipalCreateInput, Prisma.PrincipalUncheckedCreateInput>;
1965
+ /**
1966
+ * In case the Principal was found with the provided `where` argument, update it with this data.
1967
+ */
1968
+ update: Prisma.XOR<Prisma.PrincipalUpdateInput, Prisma.PrincipalUncheckedUpdateInput>;
1969
+ };
1970
+ /**
1971
+ * Principal delete
1972
+ */
1973
+ export type PrincipalDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1974
+ /**
1975
+ * Select specific fields to fetch from the Principal
1976
+ */
1977
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1978
+ /**
1979
+ * Omit specific fields from the Principal
1980
+ */
1981
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1982
+ /**
1983
+ * Choose, which related nodes to fetch as well
1984
+ */
1985
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1986
+ /**
1987
+ * Filter which Principal to delete.
1988
+ */
1989
+ where: Prisma.PrincipalWhereUniqueInput;
1990
+ };
1991
+ /**
1992
+ * Principal deleteMany
1993
+ */
1994
+ export type PrincipalDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1995
+ /**
1996
+ * Filter which Principals to delete
1997
+ */
1998
+ where?: Prisma.PrincipalWhereInput;
1999
+ /**
2000
+ * Limit how many Principals to delete.
2001
+ */
2002
+ limit?: number;
2003
+ };
2004
+ /**
2005
+ * Principal.agents
2006
+ */
2007
+ export type Principal$agentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2008
+ /**
2009
+ * Select specific fields to fetch from the Agent
2010
+ */
2011
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2012
+ /**
2013
+ * Omit specific fields from the Agent
2014
+ */
2015
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2016
+ /**
2017
+ * Choose, which related nodes to fetch as well
2018
+ */
2019
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2020
+ where?: Prisma.AgentWhereInput;
2021
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
2022
+ cursor?: Prisma.AgentWhereUniqueInput;
2023
+ take?: number;
2024
+ skip?: number;
2025
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[];
2026
+ };
2027
+ /**
2028
+ * Principal.tools
2029
+ */
2030
+ export type Principal$toolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2031
+ /**
2032
+ * Select specific fields to fetch from the Tool
2033
+ */
2034
+ select?: Prisma.ToolSelect<ExtArgs> | null;
2035
+ /**
2036
+ * Omit specific fields from the Tool
2037
+ */
2038
+ omit?: Prisma.ToolOmit<ExtArgs> | null;
2039
+ /**
2040
+ * Choose, which related nodes to fetch as well
2041
+ */
2042
+ include?: Prisma.ToolInclude<ExtArgs> | null;
2043
+ where?: Prisma.ToolWhereInput;
2044
+ orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[];
2045
+ cursor?: Prisma.ToolWhereUniqueInput;
2046
+ take?: number;
2047
+ skip?: number;
2048
+ distinct?: Prisma.ToolScalarFieldEnum | Prisma.ToolScalarFieldEnum[];
2049
+ };
2050
+ /**
2051
+ * Principal.secrets
2052
+ */
2053
+ export type Principal$secretsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2054
+ /**
2055
+ * Select specific fields to fetch from the Secret
2056
+ */
2057
+ select?: Prisma.SecretSelect<ExtArgs> | null;
2058
+ /**
2059
+ * Omit specific fields from the Secret
2060
+ */
2061
+ omit?: Prisma.SecretOmit<ExtArgs> | null;
2062
+ /**
2063
+ * Choose, which related nodes to fetch as well
2064
+ */
2065
+ include?: Prisma.SecretInclude<ExtArgs> | null;
2066
+ where?: Prisma.SecretWhereInput;
2067
+ orderBy?: Prisma.SecretOrderByWithRelationInput | Prisma.SecretOrderByWithRelationInput[];
2068
+ cursor?: Prisma.SecretWhereUniqueInput;
2069
+ take?: number;
2070
+ skip?: number;
2071
+ distinct?: Prisma.SecretScalarFieldEnum | Prisma.SecretScalarFieldEnum[];
2072
+ };
2073
+ /**
2074
+ * Principal.datastores
2075
+ */
2076
+ export type Principal$datastoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2077
+ /**
2078
+ * Select specific fields to fetch from the Datastore
2079
+ */
2080
+ select?: Prisma.DatastoreSelect<ExtArgs> | null;
2081
+ /**
2082
+ * Omit specific fields from the Datastore
2083
+ */
2084
+ omit?: Prisma.DatastoreOmit<ExtArgs> | null;
2085
+ /**
2086
+ * Choose, which related nodes to fetch as well
2087
+ */
2088
+ include?: Prisma.DatastoreInclude<ExtArgs> | null;
2089
+ where?: Prisma.DatastoreWhereInput;
2090
+ orderBy?: Prisma.DatastoreOrderByWithRelationInput | Prisma.DatastoreOrderByWithRelationInput[];
2091
+ cursor?: Prisma.DatastoreWhereUniqueInput;
2092
+ take?: number;
2093
+ skip?: number;
2094
+ distinct?: Prisma.DatastoreScalarFieldEnum | Prisma.DatastoreScalarFieldEnum[];
2095
+ };
2096
+ /**
2097
+ * Principal.webhooks
2098
+ */
2099
+ export type Principal$webhooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2100
+ /**
2101
+ * Select specific fields to fetch from the Webhook
2102
+ */
2103
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
2104
+ /**
2105
+ * Omit specific fields from the Webhook
2106
+ */
2107
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
2108
+ /**
2109
+ * Choose, which related nodes to fetch as well
2110
+ */
2111
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
2112
+ where?: Prisma.WebhookWhereInput;
2113
+ orderBy?: Prisma.WebhookOrderByWithRelationInput | Prisma.WebhookOrderByWithRelationInput[];
2114
+ cursor?: Prisma.WebhookWhereUniqueInput;
2115
+ take?: number;
2116
+ skip?: number;
2117
+ distinct?: Prisma.WebhookScalarFieldEnum | Prisma.WebhookScalarFieldEnum[];
2118
+ };
2119
+ /**
2120
+ * Principal.authUser
2121
+ */
2122
+ export type Principal$authUserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2123
+ /**
2124
+ * Select specific fields to fetch from the AuthUser
2125
+ */
2126
+ select?: Prisma.AuthUserSelect<ExtArgs> | null;
2127
+ /**
2128
+ * Omit specific fields from the AuthUser
2129
+ */
2130
+ omit?: Prisma.AuthUserOmit<ExtArgs> | null;
2131
+ /**
2132
+ * Choose, which related nodes to fetch as well
2133
+ */
2134
+ include?: Prisma.AuthUserInclude<ExtArgs> | null;
2135
+ where?: Prisma.AuthUserWhereInput;
2136
+ };
2137
+ /**
2138
+ * Principal.budgetGroups
2139
+ */
2140
+ export type Principal$budgetGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2141
+ /**
2142
+ * Select specific fields to fetch from the BudgetGroup
2143
+ */
2144
+ select?: Prisma.BudgetGroupSelect<ExtArgs> | null;
2145
+ /**
2146
+ * Omit specific fields from the BudgetGroup
2147
+ */
2148
+ omit?: Prisma.BudgetGroupOmit<ExtArgs> | null;
2149
+ /**
2150
+ * Choose, which related nodes to fetch as well
2151
+ */
2152
+ include?: Prisma.BudgetGroupInclude<ExtArgs> | null;
2153
+ where?: Prisma.BudgetGroupWhereInput;
2154
+ orderBy?: Prisma.BudgetGroupOrderByWithRelationInput | Prisma.BudgetGroupOrderByWithRelationInput[];
2155
+ cursor?: Prisma.BudgetGroupWhereUniqueInput;
2156
+ take?: number;
2157
+ skip?: number;
2158
+ distinct?: Prisma.BudgetGroupScalarFieldEnum | Prisma.BudgetGroupScalarFieldEnum[];
2159
+ };
2160
+ /**
2161
+ * Principal.hostIdentities
2162
+ */
2163
+ export type Principal$hostIdentitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2164
+ /**
2165
+ * Select specific fields to fetch from the HostIdentity
2166
+ */
2167
+ select?: Prisma.HostIdentitySelect<ExtArgs> | null;
2168
+ /**
2169
+ * Omit specific fields from the HostIdentity
2170
+ */
2171
+ omit?: Prisma.HostIdentityOmit<ExtArgs> | null;
2172
+ /**
2173
+ * Choose, which related nodes to fetch as well
2174
+ */
2175
+ include?: Prisma.HostIdentityInclude<ExtArgs> | null;
2176
+ where?: Prisma.HostIdentityWhereInput;
2177
+ orderBy?: Prisma.HostIdentityOrderByWithRelationInput | Prisma.HostIdentityOrderByWithRelationInput[];
2178
+ cursor?: Prisma.HostIdentityWhereUniqueInput;
2179
+ take?: number;
2180
+ skip?: number;
2181
+ distinct?: Prisma.HostIdentityScalarFieldEnum | Prisma.HostIdentityScalarFieldEnum[];
2182
+ };
2183
+ /**
2184
+ * Principal.hostIdentityLinkRequests
2185
+ */
2186
+ export type Principal$hostIdentityLinkRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2187
+ /**
2188
+ * Select specific fields to fetch from the HostIdentityLinkRequest
2189
+ */
2190
+ select?: Prisma.HostIdentityLinkRequestSelect<ExtArgs> | null;
2191
+ /**
2192
+ * Omit specific fields from the HostIdentityLinkRequest
2193
+ */
2194
+ omit?: Prisma.HostIdentityLinkRequestOmit<ExtArgs> | null;
2195
+ /**
2196
+ * Choose, which related nodes to fetch as well
2197
+ */
2198
+ include?: Prisma.HostIdentityLinkRequestInclude<ExtArgs> | null;
2199
+ where?: Prisma.HostIdentityLinkRequestWhereInput;
2200
+ orderBy?: Prisma.HostIdentityLinkRequestOrderByWithRelationInput | Prisma.HostIdentityLinkRequestOrderByWithRelationInput[];
2201
+ cursor?: Prisma.HostIdentityLinkRequestWhereUniqueInput;
2202
+ take?: number;
2203
+ skip?: number;
2204
+ distinct?: Prisma.HostIdentityLinkRequestScalarFieldEnum | Prisma.HostIdentityLinkRequestScalarFieldEnum[];
2205
+ };
2206
+ /**
2207
+ * Principal.grants
2208
+ */
2209
+ export type Principal$grantsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2210
+ /**
2211
+ * Select specific fields to fetch from the ResourceGrant
2212
+ */
2213
+ select?: Prisma.ResourceGrantSelect<ExtArgs> | null;
2214
+ /**
2215
+ * Omit specific fields from the ResourceGrant
2216
+ */
2217
+ omit?: Prisma.ResourceGrantOmit<ExtArgs> | null;
2218
+ /**
2219
+ * Choose, which related nodes to fetch as well
2220
+ */
2221
+ include?: Prisma.ResourceGrantInclude<ExtArgs> | null;
2222
+ where?: Prisma.ResourceGrantWhereInput;
2223
+ orderBy?: Prisma.ResourceGrantOrderByWithRelationInput | Prisma.ResourceGrantOrderByWithRelationInput[];
2224
+ cursor?: Prisma.ResourceGrantWhereUniqueInput;
2225
+ take?: number;
2226
+ skip?: number;
2227
+ distinct?: Prisma.ResourceGrantScalarFieldEnum | Prisma.ResourceGrantScalarFieldEnum[];
2228
+ };
2229
+ /**
2230
+ * Principal without action
2231
+ */
2232
+ export type PrincipalDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2233
+ /**
2234
+ * Select specific fields to fetch from the Principal
2235
+ */
2236
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
2237
+ /**
2238
+ * Omit specific fields from the Principal
2239
+ */
2240
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
2241
+ /**
2242
+ * Choose, which related nodes to fetch as well
2243
+ */
2244
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
2245
+ };