@wardby/cli 0.2.0 → 0.3.0

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