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