@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,1376 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model AuthSession
5
+ *
6
+ */
7
+ export type AuthSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$AuthSessionPayload>;
8
+ export type AggregateAuthSession = {
9
+ _count: AuthSessionCountAggregateOutputType | null;
10
+ _min: AuthSessionMinAggregateOutputType | null;
11
+ _max: AuthSessionMaxAggregateOutputType | null;
12
+ };
13
+ export type AuthSessionMinAggregateOutputType = {
14
+ sessionId: string | null;
15
+ userId: string | null;
16
+ secretHash: string | null;
17
+ createdAt: Date | null;
18
+ lastSeenAt: Date | null;
19
+ expiresAt: Date | null;
20
+ revokedAt: Date | null;
21
+ };
22
+ export type AuthSessionMaxAggregateOutputType = {
23
+ sessionId: string | null;
24
+ userId: string | null;
25
+ secretHash: string | null;
26
+ createdAt: Date | null;
27
+ lastSeenAt: Date | null;
28
+ expiresAt: Date | null;
29
+ revokedAt: Date | null;
30
+ };
31
+ export type AuthSessionCountAggregateOutputType = {
32
+ sessionId: number;
33
+ userId: number;
34
+ secretHash: number;
35
+ createdAt: number;
36
+ lastSeenAt: number;
37
+ expiresAt: number;
38
+ revokedAt: number;
39
+ _all: number;
40
+ };
41
+ export type AuthSessionMinAggregateInputType = {
42
+ sessionId?: true;
43
+ userId?: true;
44
+ secretHash?: true;
45
+ createdAt?: true;
46
+ lastSeenAt?: true;
47
+ expiresAt?: true;
48
+ revokedAt?: true;
49
+ };
50
+ export type AuthSessionMaxAggregateInputType = {
51
+ sessionId?: true;
52
+ userId?: true;
53
+ secretHash?: true;
54
+ createdAt?: true;
55
+ lastSeenAt?: true;
56
+ expiresAt?: true;
57
+ revokedAt?: true;
58
+ };
59
+ export type AuthSessionCountAggregateInputType = {
60
+ sessionId?: true;
61
+ userId?: true;
62
+ secretHash?: true;
63
+ createdAt?: true;
64
+ lastSeenAt?: true;
65
+ expiresAt?: true;
66
+ revokedAt?: true;
67
+ _all?: true;
68
+ };
69
+ export type AuthSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
+ /**
71
+ * Filter which AuthSession to aggregate.
72
+ */
73
+ where?: Prisma.AuthSessionWhereInput;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
+ *
77
+ * Determine the order of AuthSessions to fetch.
78
+ */
79
+ orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
+ *
83
+ * Sets the start position
84
+ */
85
+ cursor?: Prisma.AuthSessionWhereUniqueInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
+ *
89
+ * Take `±n` AuthSessions from the position of the cursor.
90
+ */
91
+ take?: number;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Skip the first `n` AuthSessions.
96
+ */
97
+ skip?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Count returned AuthSessions
102
+ **/
103
+ _count?: true | AuthSessionCountAggregateInputType;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Select which fields to find the minimum value
108
+ **/
109
+ _min?: AuthSessionMinAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the maximum value
114
+ **/
115
+ _max?: AuthSessionMaxAggregateInputType;
116
+ };
117
+ export type GetAuthSessionAggregateType<T extends AuthSessionAggregateArgs> = {
118
+ [P in keyof T & keyof AggregateAuthSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAuthSession[P]> : Prisma.GetScalarType<T[P], AggregateAuthSession[P]>;
119
+ };
120
+ export type AuthSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ where?: Prisma.AuthSessionWhereInput;
122
+ orderBy?: Prisma.AuthSessionOrderByWithAggregationInput | Prisma.AuthSessionOrderByWithAggregationInput[];
123
+ by: Prisma.AuthSessionScalarFieldEnum[] | Prisma.AuthSessionScalarFieldEnum;
124
+ having?: Prisma.AuthSessionScalarWhereWithAggregatesInput;
125
+ take?: number;
126
+ skip?: number;
127
+ _count?: AuthSessionCountAggregateInputType | true;
128
+ _min?: AuthSessionMinAggregateInputType;
129
+ _max?: AuthSessionMaxAggregateInputType;
130
+ };
131
+ export type AuthSessionGroupByOutputType = {
132
+ sessionId: string;
133
+ userId: string;
134
+ secretHash: string;
135
+ createdAt: Date;
136
+ lastSeenAt: Date;
137
+ expiresAt: Date;
138
+ revokedAt: Date | null;
139
+ _count: AuthSessionCountAggregateOutputType | null;
140
+ _min: AuthSessionMinAggregateOutputType | null;
141
+ _max: AuthSessionMaxAggregateOutputType | null;
142
+ };
143
+ export type GetAuthSessionGroupByPayload<T extends AuthSessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AuthSessionGroupByOutputType, T['by']> & {
144
+ [P in ((keyof T) & (keyof AuthSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AuthSessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AuthSessionGroupByOutputType[P]>;
145
+ }>>;
146
+ export type AuthSessionWhereInput = {
147
+ AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
148
+ OR?: Prisma.AuthSessionWhereInput[];
149
+ NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
150
+ sessionId?: Prisma.StringFilter<"AuthSession"> | string;
151
+ userId?: Prisma.StringFilter<"AuthSession"> | string;
152
+ secretHash?: Prisma.StringFilter<"AuthSession"> | string;
153
+ createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
154
+ lastSeenAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
155
+ expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
156
+ revokedAt?: Prisma.DateTimeNullableFilter<"AuthSession"> | Date | string | null;
157
+ user?: Prisma.XOR<Prisma.AuthUserScalarRelationFilter, Prisma.AuthUserWhereInput>;
158
+ challenges?: Prisma.AuthFormChallengeListRelationFilter;
159
+ };
160
+ export type AuthSessionOrderByWithRelationInput = {
161
+ sessionId?: Prisma.SortOrder;
162
+ userId?: Prisma.SortOrder;
163
+ secretHash?: Prisma.SortOrder;
164
+ createdAt?: Prisma.SortOrder;
165
+ lastSeenAt?: Prisma.SortOrder;
166
+ expiresAt?: Prisma.SortOrder;
167
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
168
+ user?: Prisma.AuthUserOrderByWithRelationInput;
169
+ challenges?: Prisma.AuthFormChallengeOrderByRelationAggregateInput;
170
+ };
171
+ export type AuthSessionWhereUniqueInput = Prisma.AtLeast<{
172
+ sessionId?: string;
173
+ AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
174
+ OR?: Prisma.AuthSessionWhereInput[];
175
+ NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
176
+ userId?: Prisma.StringFilter<"AuthSession"> | string;
177
+ secretHash?: Prisma.StringFilter<"AuthSession"> | string;
178
+ createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
179
+ lastSeenAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
180
+ expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
181
+ revokedAt?: Prisma.DateTimeNullableFilter<"AuthSession"> | Date | string | null;
182
+ user?: Prisma.XOR<Prisma.AuthUserScalarRelationFilter, Prisma.AuthUserWhereInput>;
183
+ challenges?: Prisma.AuthFormChallengeListRelationFilter;
184
+ }, "sessionId">;
185
+ export type AuthSessionOrderByWithAggregationInput = {
186
+ sessionId?: Prisma.SortOrder;
187
+ userId?: Prisma.SortOrder;
188
+ secretHash?: Prisma.SortOrder;
189
+ createdAt?: Prisma.SortOrder;
190
+ lastSeenAt?: Prisma.SortOrder;
191
+ expiresAt?: Prisma.SortOrder;
192
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
193
+ _count?: Prisma.AuthSessionCountOrderByAggregateInput;
194
+ _max?: Prisma.AuthSessionMaxOrderByAggregateInput;
195
+ _min?: Prisma.AuthSessionMinOrderByAggregateInput;
196
+ };
197
+ export type AuthSessionScalarWhereWithAggregatesInput = {
198
+ AND?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[];
199
+ OR?: Prisma.AuthSessionScalarWhereWithAggregatesInput[];
200
+ NOT?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[];
201
+ sessionId?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string;
202
+ userId?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string;
203
+ secretHash?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string;
204
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string;
205
+ lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string;
206
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string;
207
+ revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AuthSession"> | Date | string | null;
208
+ };
209
+ export type AuthSessionCreateInput = {
210
+ sessionId: string;
211
+ secretHash: string;
212
+ createdAt?: Date | string;
213
+ lastSeenAt?: Date | string;
214
+ expiresAt: Date | string;
215
+ revokedAt?: Date | string | null;
216
+ user: Prisma.AuthUserCreateNestedOneWithoutSessionsInput;
217
+ challenges?: Prisma.AuthFormChallengeCreateNestedManyWithoutSessionInput;
218
+ };
219
+ export type AuthSessionUncheckedCreateInput = {
220
+ sessionId: string;
221
+ userId: string;
222
+ secretHash: string;
223
+ createdAt?: Date | string;
224
+ lastSeenAt?: Date | string;
225
+ expiresAt: Date | string;
226
+ revokedAt?: Date | string | null;
227
+ challenges?: Prisma.AuthFormChallengeUncheckedCreateNestedManyWithoutSessionInput;
228
+ };
229
+ export type AuthSessionUpdateInput = {
230
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
231
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
232
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
233
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
234
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
235
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
236
+ user?: Prisma.AuthUserUpdateOneRequiredWithoutSessionsNestedInput;
237
+ challenges?: Prisma.AuthFormChallengeUpdateManyWithoutSessionNestedInput;
238
+ };
239
+ export type AuthSessionUncheckedUpdateInput = {
240
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
241
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
242
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
243
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
244
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
245
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
246
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
247
+ challenges?: Prisma.AuthFormChallengeUncheckedUpdateManyWithoutSessionNestedInput;
248
+ };
249
+ export type AuthSessionCreateManyInput = {
250
+ sessionId: string;
251
+ userId: string;
252
+ secretHash: string;
253
+ createdAt?: Date | string;
254
+ lastSeenAt?: Date | string;
255
+ expiresAt: Date | string;
256
+ revokedAt?: Date | string | null;
257
+ };
258
+ export type AuthSessionUpdateManyMutationInput = {
259
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
261
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
262
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
263
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
264
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
265
+ };
266
+ export type AuthSessionUncheckedUpdateManyInput = {
267
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
269
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
270
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
271
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
272
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
273
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
274
+ };
275
+ export type AuthSessionListRelationFilter = {
276
+ every?: Prisma.AuthSessionWhereInput;
277
+ some?: Prisma.AuthSessionWhereInput;
278
+ none?: Prisma.AuthSessionWhereInput;
279
+ };
280
+ export type AuthSessionOrderByRelationAggregateInput = {
281
+ _count?: Prisma.SortOrder;
282
+ };
283
+ export type AuthSessionCountOrderByAggregateInput = {
284
+ sessionId?: Prisma.SortOrder;
285
+ userId?: Prisma.SortOrder;
286
+ secretHash?: Prisma.SortOrder;
287
+ createdAt?: Prisma.SortOrder;
288
+ lastSeenAt?: Prisma.SortOrder;
289
+ expiresAt?: Prisma.SortOrder;
290
+ revokedAt?: Prisma.SortOrder;
291
+ };
292
+ export type AuthSessionMaxOrderByAggregateInput = {
293
+ sessionId?: Prisma.SortOrder;
294
+ userId?: Prisma.SortOrder;
295
+ secretHash?: Prisma.SortOrder;
296
+ createdAt?: Prisma.SortOrder;
297
+ lastSeenAt?: Prisma.SortOrder;
298
+ expiresAt?: Prisma.SortOrder;
299
+ revokedAt?: Prisma.SortOrder;
300
+ };
301
+ export type AuthSessionMinOrderByAggregateInput = {
302
+ sessionId?: Prisma.SortOrder;
303
+ userId?: Prisma.SortOrder;
304
+ secretHash?: Prisma.SortOrder;
305
+ createdAt?: Prisma.SortOrder;
306
+ lastSeenAt?: Prisma.SortOrder;
307
+ expiresAt?: Prisma.SortOrder;
308
+ revokedAt?: Prisma.SortOrder;
309
+ };
310
+ export type AuthSessionNullableScalarRelationFilter = {
311
+ is?: Prisma.AuthSessionWhereInput | null;
312
+ isNot?: Prisma.AuthSessionWhereInput | null;
313
+ };
314
+ export type AuthSessionCreateNestedManyWithoutUserInput = {
315
+ create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
316
+ connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
317
+ createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
318
+ connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
319
+ };
320
+ export type AuthSessionUncheckedCreateNestedManyWithoutUserInput = {
321
+ create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
322
+ connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
323
+ createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
324
+ connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
325
+ };
326
+ export type AuthSessionUpdateManyWithoutUserNestedInput = {
327
+ create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
328
+ connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
329
+ upsert?: Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput[];
330
+ createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
331
+ set?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
332
+ disconnect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
333
+ delete?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
334
+ connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
335
+ update?: Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput[];
336
+ updateMany?: Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput | Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput[];
337
+ deleteMany?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
338
+ };
339
+ export type AuthSessionUncheckedUpdateManyWithoutUserNestedInput = {
340
+ create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
341
+ connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
342
+ upsert?: Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput[];
343
+ createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
344
+ set?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
345
+ disconnect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
346
+ delete?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
347
+ connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
348
+ update?: Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput[];
349
+ updateMany?: Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput | Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput[];
350
+ deleteMany?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
351
+ };
352
+ export type AuthSessionCreateNestedOneWithoutChallengesInput = {
353
+ create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
354
+ connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutChallengesInput;
355
+ connect?: Prisma.AuthSessionWhereUniqueInput;
356
+ };
357
+ export type AuthSessionUpdateOneWithoutChallengesNestedInput = {
358
+ create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
359
+ connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutChallengesInput;
360
+ upsert?: Prisma.AuthSessionUpsertWithoutChallengesInput;
361
+ disconnect?: Prisma.AuthSessionWhereInput | boolean;
362
+ delete?: Prisma.AuthSessionWhereInput | boolean;
363
+ connect?: Prisma.AuthSessionWhereUniqueInput;
364
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AuthSessionUpdateToOneWithWhereWithoutChallengesInput, Prisma.AuthSessionUpdateWithoutChallengesInput>, Prisma.AuthSessionUncheckedUpdateWithoutChallengesInput>;
365
+ };
366
+ export type AuthSessionCreateWithoutUserInput = {
367
+ sessionId: string;
368
+ secretHash: string;
369
+ createdAt?: Date | string;
370
+ lastSeenAt?: Date | string;
371
+ expiresAt: Date | string;
372
+ revokedAt?: Date | string | null;
373
+ challenges?: Prisma.AuthFormChallengeCreateNestedManyWithoutSessionInput;
374
+ };
375
+ export type AuthSessionUncheckedCreateWithoutUserInput = {
376
+ sessionId: string;
377
+ secretHash: string;
378
+ createdAt?: Date | string;
379
+ lastSeenAt?: Date | string;
380
+ expiresAt: Date | string;
381
+ revokedAt?: Date | string | null;
382
+ challenges?: Prisma.AuthFormChallengeUncheckedCreateNestedManyWithoutSessionInput;
383
+ };
384
+ export type AuthSessionCreateOrConnectWithoutUserInput = {
385
+ where: Prisma.AuthSessionWhereUniqueInput;
386
+ create: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput>;
387
+ };
388
+ export type AuthSessionCreateManyUserInputEnvelope = {
389
+ data: Prisma.AuthSessionCreateManyUserInput | Prisma.AuthSessionCreateManyUserInput[];
390
+ skipDuplicates?: boolean;
391
+ };
392
+ export type AuthSessionUpsertWithWhereUniqueWithoutUserInput = {
393
+ where: Prisma.AuthSessionWhereUniqueInput;
394
+ update: Prisma.XOR<Prisma.AuthSessionUpdateWithoutUserInput, Prisma.AuthSessionUncheckedUpdateWithoutUserInput>;
395
+ create: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput>;
396
+ };
397
+ export type AuthSessionUpdateWithWhereUniqueWithoutUserInput = {
398
+ where: Prisma.AuthSessionWhereUniqueInput;
399
+ data: Prisma.XOR<Prisma.AuthSessionUpdateWithoutUserInput, Prisma.AuthSessionUncheckedUpdateWithoutUserInput>;
400
+ };
401
+ export type AuthSessionUpdateManyWithWhereWithoutUserInput = {
402
+ where: Prisma.AuthSessionScalarWhereInput;
403
+ data: Prisma.XOR<Prisma.AuthSessionUpdateManyMutationInput, Prisma.AuthSessionUncheckedUpdateManyWithoutUserInput>;
404
+ };
405
+ export type AuthSessionScalarWhereInput = {
406
+ AND?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
407
+ OR?: Prisma.AuthSessionScalarWhereInput[];
408
+ NOT?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
409
+ sessionId?: Prisma.StringFilter<"AuthSession"> | string;
410
+ userId?: Prisma.StringFilter<"AuthSession"> | string;
411
+ secretHash?: Prisma.StringFilter<"AuthSession"> | string;
412
+ createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
413
+ lastSeenAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
414
+ expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
415
+ revokedAt?: Prisma.DateTimeNullableFilter<"AuthSession"> | Date | string | null;
416
+ };
417
+ export type AuthSessionCreateWithoutChallengesInput = {
418
+ sessionId: string;
419
+ secretHash: string;
420
+ createdAt?: Date | string;
421
+ lastSeenAt?: Date | string;
422
+ expiresAt: Date | string;
423
+ revokedAt?: Date | string | null;
424
+ user: Prisma.AuthUserCreateNestedOneWithoutSessionsInput;
425
+ };
426
+ export type AuthSessionUncheckedCreateWithoutChallengesInput = {
427
+ sessionId: string;
428
+ userId: string;
429
+ secretHash: string;
430
+ createdAt?: Date | string;
431
+ lastSeenAt?: Date | string;
432
+ expiresAt: Date | string;
433
+ revokedAt?: Date | string | null;
434
+ };
435
+ export type AuthSessionCreateOrConnectWithoutChallengesInput = {
436
+ where: Prisma.AuthSessionWhereUniqueInput;
437
+ create: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
438
+ };
439
+ export type AuthSessionUpsertWithoutChallengesInput = {
440
+ update: Prisma.XOR<Prisma.AuthSessionUpdateWithoutChallengesInput, Prisma.AuthSessionUncheckedUpdateWithoutChallengesInput>;
441
+ create: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
442
+ where?: Prisma.AuthSessionWhereInput;
443
+ };
444
+ export type AuthSessionUpdateToOneWithWhereWithoutChallengesInput = {
445
+ where?: Prisma.AuthSessionWhereInput;
446
+ data: Prisma.XOR<Prisma.AuthSessionUpdateWithoutChallengesInput, Prisma.AuthSessionUncheckedUpdateWithoutChallengesInput>;
447
+ };
448
+ export type AuthSessionUpdateWithoutChallengesInput = {
449
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
450
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
451
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
452
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
453
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
454
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
455
+ user?: Prisma.AuthUserUpdateOneRequiredWithoutSessionsNestedInput;
456
+ };
457
+ export type AuthSessionUncheckedUpdateWithoutChallengesInput = {
458
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
459
+ userId?: Prisma.StringFieldUpdateOperationsInput | string;
460
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
461
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
462
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
463
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
464
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
465
+ };
466
+ export type AuthSessionCreateManyUserInput = {
467
+ sessionId: string;
468
+ secretHash: string;
469
+ createdAt?: Date | string;
470
+ lastSeenAt?: Date | string;
471
+ expiresAt: Date | string;
472
+ revokedAt?: Date | string | null;
473
+ };
474
+ export type AuthSessionUpdateWithoutUserInput = {
475
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
476
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
477
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
478
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
479
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
480
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
481
+ challenges?: Prisma.AuthFormChallengeUpdateManyWithoutSessionNestedInput;
482
+ };
483
+ export type AuthSessionUncheckedUpdateWithoutUserInput = {
484
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
485
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
486
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
487
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
488
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
489
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
490
+ challenges?: Prisma.AuthFormChallengeUncheckedUpdateManyWithoutSessionNestedInput;
491
+ };
492
+ export type AuthSessionUncheckedUpdateManyWithoutUserInput = {
493
+ sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
494
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
495
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
496
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
497
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
498
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
499
+ };
500
+ /**
501
+ * Count Type AuthSessionCountOutputType
502
+ */
503
+ export type AuthSessionCountOutputType = {
504
+ challenges: number;
505
+ };
506
+ export type AuthSessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
507
+ challenges?: boolean | AuthSessionCountOutputTypeCountChallengesArgs;
508
+ };
509
+ /**
510
+ * AuthSessionCountOutputType without action
511
+ */
512
+ export type AuthSessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
513
+ /**
514
+ * Select specific fields to fetch from the AuthSessionCountOutputType
515
+ */
516
+ select?: Prisma.AuthSessionCountOutputTypeSelect<ExtArgs> | null;
517
+ };
518
+ /**
519
+ * AuthSessionCountOutputType without action
520
+ */
521
+ export type AuthSessionCountOutputTypeCountChallengesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
522
+ where?: Prisma.AuthFormChallengeWhereInput;
523
+ };
524
+ export type AuthSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
525
+ sessionId?: boolean;
526
+ userId?: boolean;
527
+ secretHash?: boolean;
528
+ createdAt?: boolean;
529
+ lastSeenAt?: boolean;
530
+ expiresAt?: boolean;
531
+ revokedAt?: boolean;
532
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
533
+ challenges?: boolean | Prisma.AuthSession$challengesArgs<ExtArgs>;
534
+ _count?: boolean | Prisma.AuthSessionCountOutputTypeDefaultArgs<ExtArgs>;
535
+ }, ExtArgs["result"]["authSession"]>;
536
+ export type AuthSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
537
+ sessionId?: boolean;
538
+ userId?: boolean;
539
+ secretHash?: boolean;
540
+ createdAt?: boolean;
541
+ lastSeenAt?: boolean;
542
+ expiresAt?: boolean;
543
+ revokedAt?: boolean;
544
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
545
+ }, ExtArgs["result"]["authSession"]>;
546
+ export type AuthSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
547
+ sessionId?: boolean;
548
+ userId?: boolean;
549
+ secretHash?: boolean;
550
+ createdAt?: boolean;
551
+ lastSeenAt?: boolean;
552
+ expiresAt?: boolean;
553
+ revokedAt?: boolean;
554
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
555
+ }, ExtArgs["result"]["authSession"]>;
556
+ export type AuthSessionSelectScalar = {
557
+ sessionId?: boolean;
558
+ userId?: boolean;
559
+ secretHash?: boolean;
560
+ createdAt?: boolean;
561
+ lastSeenAt?: boolean;
562
+ expiresAt?: boolean;
563
+ revokedAt?: boolean;
564
+ };
565
+ export type AuthSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"sessionId" | "userId" | "secretHash" | "createdAt" | "lastSeenAt" | "expiresAt" | "revokedAt", ExtArgs["result"]["authSession"]>;
566
+ export type AuthSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
567
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
568
+ challenges?: boolean | Prisma.AuthSession$challengesArgs<ExtArgs>;
569
+ _count?: boolean | Prisma.AuthSessionCountOutputTypeDefaultArgs<ExtArgs>;
570
+ };
571
+ export type AuthSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
572
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
573
+ };
574
+ export type AuthSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
575
+ user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
576
+ };
577
+ export type $AuthSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
578
+ name: "AuthSession";
579
+ objects: {
580
+ user: Prisma.$AuthUserPayload<ExtArgs>;
581
+ challenges: Prisma.$AuthFormChallengePayload<ExtArgs>[];
582
+ };
583
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
584
+ sessionId: string;
585
+ userId: string;
586
+ secretHash: string;
587
+ createdAt: Date;
588
+ lastSeenAt: Date;
589
+ expiresAt: Date;
590
+ revokedAt: Date | null;
591
+ }, ExtArgs["result"]["authSession"]>;
592
+ composites: {};
593
+ };
594
+ export type AuthSessionGetPayload<S extends boolean | null | undefined | AuthSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload, S>;
595
+ export type AuthSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AuthSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
596
+ select?: AuthSessionCountAggregateInputType | true;
597
+ };
598
+ export interface AuthSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
599
+ [K: symbol]: {
600
+ types: Prisma.TypeMap<ExtArgs>['model']['AuthSession'];
601
+ meta: {
602
+ name: 'AuthSession';
603
+ };
604
+ };
605
+ /**
606
+ * Find zero or one AuthSession that matches the filter.
607
+ * @param {AuthSessionFindUniqueArgs} args - Arguments to find a AuthSession
608
+ * @example
609
+ * // Get one AuthSession
610
+ * const authSession = await prisma.authSession.findUnique({
611
+ * where: {
612
+ * // ... provide filter here
613
+ * }
614
+ * })
615
+ */
616
+ findUnique<T extends AuthSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, AuthSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
617
+ /**
618
+ * Find one AuthSession that matches the filter or throw an error with `error.code='P2025'`
619
+ * if no matches were found.
620
+ * @param {AuthSessionFindUniqueOrThrowArgs} args - Arguments to find a AuthSession
621
+ * @example
622
+ * // Get one AuthSession
623
+ * const authSession = await prisma.authSession.findUniqueOrThrow({
624
+ * where: {
625
+ * // ... provide filter here
626
+ * }
627
+ * })
628
+ */
629
+ findUniqueOrThrow<T extends AuthSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuthSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
630
+ /**
631
+ * Find the first AuthSession that matches the filter.
632
+ * Note, that providing `undefined` is treated as the value not being there.
633
+ * Read more here: https://pris.ly/d/null-undefined
634
+ * @param {AuthSessionFindFirstArgs} args - Arguments to find a AuthSession
635
+ * @example
636
+ * // Get one AuthSession
637
+ * const authSession = await prisma.authSession.findFirst({
638
+ * where: {
639
+ * // ... provide filter here
640
+ * }
641
+ * })
642
+ */
643
+ findFirst<T extends AuthSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, AuthSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
644
+ /**
645
+ * Find the first AuthSession that matches the filter or
646
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
647
+ * Note, that providing `undefined` is treated as the value not being there.
648
+ * Read more here: https://pris.ly/d/null-undefined
649
+ * @param {AuthSessionFindFirstOrThrowArgs} args - Arguments to find a AuthSession
650
+ * @example
651
+ * // Get one AuthSession
652
+ * const authSession = await prisma.authSession.findFirstOrThrow({
653
+ * where: {
654
+ * // ... provide filter here
655
+ * }
656
+ * })
657
+ */
658
+ findFirstOrThrow<T extends AuthSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuthSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
659
+ /**
660
+ * Find zero or more AuthSessions that matches the filter.
661
+ * Note, that providing `undefined` is treated as the value not being there.
662
+ * Read more here: https://pris.ly/d/null-undefined
663
+ * @param {AuthSessionFindManyArgs} args - Arguments to filter and select certain fields only.
664
+ * @example
665
+ * // Get all AuthSessions
666
+ * const authSessions = await prisma.authSession.findMany()
667
+ *
668
+ * // Get first 10 AuthSessions
669
+ * const authSessions = await prisma.authSession.findMany({ take: 10 })
670
+ *
671
+ * // Only select the `sessionId`
672
+ * const authSessionWithSessionIdOnly = await prisma.authSession.findMany({ select: { sessionId: true } })
673
+ *
674
+ */
675
+ findMany<T extends AuthSessionFindManyArgs>(args?: Prisma.SelectSubset<T, AuthSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
676
+ /**
677
+ * Create a AuthSession.
678
+ * @param {AuthSessionCreateArgs} args - Arguments to create a AuthSession.
679
+ * @example
680
+ * // Create one AuthSession
681
+ * const AuthSession = await prisma.authSession.create({
682
+ * data: {
683
+ * // ... data to create a AuthSession
684
+ * }
685
+ * })
686
+ *
687
+ */
688
+ create<T extends AuthSessionCreateArgs>(args: Prisma.SelectSubset<T, AuthSessionCreateArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
689
+ /**
690
+ * Create many AuthSessions.
691
+ * @param {AuthSessionCreateManyArgs} args - Arguments to create many AuthSessions.
692
+ * @example
693
+ * // Create many AuthSessions
694
+ * const authSession = await prisma.authSession.createMany({
695
+ * data: [
696
+ * // ... provide data here
697
+ * ]
698
+ * })
699
+ *
700
+ */
701
+ createMany<T extends AuthSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, AuthSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
702
+ /**
703
+ * Create many AuthSessions and returns the data saved in the database.
704
+ * @param {AuthSessionCreateManyAndReturnArgs} args - Arguments to create many AuthSessions.
705
+ * @example
706
+ * // Create many AuthSessions
707
+ * const authSession = await prisma.authSession.createManyAndReturn({
708
+ * data: [
709
+ * // ... provide data here
710
+ * ]
711
+ * })
712
+ *
713
+ * // Create many AuthSessions and only return the `sessionId`
714
+ * const authSessionWithSessionIdOnly = await prisma.authSession.createManyAndReturn({
715
+ * select: { sessionId: true },
716
+ * data: [
717
+ * // ... provide data here
718
+ * ]
719
+ * })
720
+ * Note, that providing `undefined` is treated as the value not being there.
721
+ * Read more here: https://pris.ly/d/null-undefined
722
+ *
723
+ */
724
+ createManyAndReturn<T extends AuthSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuthSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
725
+ /**
726
+ * Delete a AuthSession.
727
+ * @param {AuthSessionDeleteArgs} args - Arguments to delete one AuthSession.
728
+ * @example
729
+ * // Delete one AuthSession
730
+ * const AuthSession = await prisma.authSession.delete({
731
+ * where: {
732
+ * // ... filter to delete one AuthSession
733
+ * }
734
+ * })
735
+ *
736
+ */
737
+ delete<T extends AuthSessionDeleteArgs>(args: Prisma.SelectSubset<T, AuthSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
738
+ /**
739
+ * Update one AuthSession.
740
+ * @param {AuthSessionUpdateArgs} args - Arguments to update one AuthSession.
741
+ * @example
742
+ * // Update one AuthSession
743
+ * const authSession = await prisma.authSession.update({
744
+ * where: {
745
+ * // ... provide filter here
746
+ * },
747
+ * data: {
748
+ * // ... provide data here
749
+ * }
750
+ * })
751
+ *
752
+ */
753
+ update<T extends AuthSessionUpdateArgs>(args: Prisma.SelectSubset<T, AuthSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
754
+ /**
755
+ * Delete zero or more AuthSessions.
756
+ * @param {AuthSessionDeleteManyArgs} args - Arguments to filter AuthSessions to delete.
757
+ * @example
758
+ * // Delete a few AuthSessions
759
+ * const { count } = await prisma.authSession.deleteMany({
760
+ * where: {
761
+ * // ... provide filter here
762
+ * }
763
+ * })
764
+ *
765
+ */
766
+ deleteMany<T extends AuthSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuthSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
767
+ /**
768
+ * Update zero or more AuthSessions.
769
+ * Note, that providing `undefined` is treated as the value not being there.
770
+ * Read more here: https://pris.ly/d/null-undefined
771
+ * @param {AuthSessionUpdateManyArgs} args - Arguments to update one or more rows.
772
+ * @example
773
+ * // Update many AuthSessions
774
+ * const authSession = await prisma.authSession.updateMany({
775
+ * where: {
776
+ * // ... provide filter here
777
+ * },
778
+ * data: {
779
+ * // ... provide data here
780
+ * }
781
+ * })
782
+ *
783
+ */
784
+ updateMany<T extends AuthSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, AuthSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
785
+ /**
786
+ * Update zero or more AuthSessions and returns the data updated in the database.
787
+ * @param {AuthSessionUpdateManyAndReturnArgs} args - Arguments to update many AuthSessions.
788
+ * @example
789
+ * // Update many AuthSessions
790
+ * const authSession = await prisma.authSession.updateManyAndReturn({
791
+ * where: {
792
+ * // ... provide filter here
793
+ * },
794
+ * data: [
795
+ * // ... provide data here
796
+ * ]
797
+ * })
798
+ *
799
+ * // Update zero or more AuthSessions and only return the `sessionId`
800
+ * const authSessionWithSessionIdOnly = await prisma.authSession.updateManyAndReturn({
801
+ * select: { sessionId: true },
802
+ * where: {
803
+ * // ... provide filter here
804
+ * },
805
+ * data: [
806
+ * // ... provide data here
807
+ * ]
808
+ * })
809
+ * Note, that providing `undefined` is treated as the value not being there.
810
+ * Read more here: https://pris.ly/d/null-undefined
811
+ *
812
+ */
813
+ updateManyAndReturn<T extends AuthSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuthSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
814
+ /**
815
+ * Create or update one AuthSession.
816
+ * @param {AuthSessionUpsertArgs} args - Arguments to update or create a AuthSession.
817
+ * @example
818
+ * // Update or create a AuthSession
819
+ * const authSession = await prisma.authSession.upsert({
820
+ * create: {
821
+ * // ... data to create a AuthSession
822
+ * },
823
+ * update: {
824
+ * // ... in case it already exists, update
825
+ * },
826
+ * where: {
827
+ * // ... the filter for the AuthSession we want to update
828
+ * }
829
+ * })
830
+ */
831
+ upsert<T extends AuthSessionUpsertArgs>(args: Prisma.SelectSubset<T, AuthSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
832
+ /**
833
+ * Count the number of AuthSessions.
834
+ * Note, that providing `undefined` is treated as the value not being there.
835
+ * Read more here: https://pris.ly/d/null-undefined
836
+ * @param {AuthSessionCountArgs} args - Arguments to filter AuthSessions to count.
837
+ * @example
838
+ * // Count the number of AuthSessions
839
+ * const count = await prisma.authSession.count({
840
+ * where: {
841
+ * // ... the filter for the AuthSessions we want to count
842
+ * }
843
+ * })
844
+ **/
845
+ count<T extends AuthSessionCountArgs>(args?: Prisma.Subset<T, AuthSessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AuthSessionCountAggregateOutputType> : number>;
846
+ /**
847
+ * Allows you to perform aggregations operations on a AuthSession.
848
+ * Note, that providing `undefined` is treated as the value not being there.
849
+ * Read more here: https://pris.ly/d/null-undefined
850
+ * @param {AuthSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
851
+ * @example
852
+ * // Ordered by age ascending
853
+ * // Where email contains prisma.io
854
+ * // Limited to the 10 users
855
+ * const aggregations = await prisma.user.aggregate({
856
+ * _avg: {
857
+ * age: true,
858
+ * },
859
+ * where: {
860
+ * email: {
861
+ * contains: "prisma.io",
862
+ * },
863
+ * },
864
+ * orderBy: {
865
+ * age: "asc",
866
+ * },
867
+ * take: 10,
868
+ * })
869
+ **/
870
+ aggregate<T extends AuthSessionAggregateArgs>(args: Prisma.Subset<T, AuthSessionAggregateArgs>): Prisma.PrismaPromise<GetAuthSessionAggregateType<T>>;
871
+ /**
872
+ * Group by AuthSession.
873
+ * Note, that providing `undefined` is treated as the value not being there.
874
+ * Read more here: https://pris.ly/d/null-undefined
875
+ * @param {AuthSessionGroupByArgs} args - Group by arguments.
876
+ * @example
877
+ * // Group by city, order by createdAt, get count
878
+ * const result = await prisma.user.groupBy({
879
+ * by: ['city', 'createdAt'],
880
+ * orderBy: {
881
+ * createdAt: true
882
+ * },
883
+ * _count: {
884
+ * _all: true
885
+ * },
886
+ * })
887
+ *
888
+ **/
889
+ groupBy<T extends AuthSessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
890
+ orderBy: AuthSessionGroupByArgs['orderBy'];
891
+ } : {
892
+ orderBy?: AuthSessionGroupByArgs['orderBy'];
893
+ }, 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 ? {
894
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
895
+ Error,
896
+ 'Field ',
897
+ P,
898
+ ` in "having" needs to be provided in "by"`
899
+ ];
900
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
901
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
902
+ }[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 ? {} : {
903
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
904
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
905
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
906
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AuthSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuthSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
907
+ /**
908
+ * Fields of the AuthSession model
909
+ */
910
+ readonly fields: AuthSessionFieldRefs;
911
+ }
912
+ /**
913
+ * The delegate class that acts as a "Promise-like" for AuthSession.
914
+ * Why is this prefixed with `Prisma__`?
915
+ * Because we want to prevent naming conflicts as mentioned in
916
+ * https://github.com/prisma/prisma-client-js/issues/707
917
+ */
918
+ export interface Prisma__AuthSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
919
+ readonly [Symbol.toStringTag]: "PrismaPromise";
920
+ user<T extends Prisma.AuthUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuthUserDefaultArgs<ExtArgs>>): Prisma.Prisma__AuthUserClient<runtime.Types.Result.GetResult<Prisma.$AuthUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
921
+ challenges<T extends Prisma.AuthSession$challengesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuthSession$challengesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthFormChallengePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
922
+ /**
923
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
924
+ * @param onfulfilled The callback to execute when the Promise is resolved.
925
+ * @param onrejected The callback to execute when the Promise is rejected.
926
+ * @returns A Promise for the completion of which ever callback is executed.
927
+ */
928
+ 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>;
929
+ /**
930
+ * Attaches a callback for only the rejection of the Promise.
931
+ * @param onrejected The callback to execute when the Promise is rejected.
932
+ * @returns A Promise for the completion of the callback.
933
+ */
934
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
935
+ /**
936
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
937
+ * resolved value cannot be modified from the callback.
938
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
939
+ * @returns A Promise for the completion of the callback.
940
+ */
941
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
942
+ }
943
+ /**
944
+ * Fields of the AuthSession model
945
+ */
946
+ export interface AuthSessionFieldRefs {
947
+ readonly sessionId: Prisma.FieldRef<"AuthSession", 'String'>;
948
+ readonly userId: Prisma.FieldRef<"AuthSession", 'String'>;
949
+ readonly secretHash: Prisma.FieldRef<"AuthSession", 'String'>;
950
+ readonly createdAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
951
+ readonly lastSeenAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
952
+ readonly expiresAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
953
+ readonly revokedAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
954
+ }
955
+ /**
956
+ * AuthSession findUnique
957
+ */
958
+ export type AuthSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
959
+ /**
960
+ * Select specific fields to fetch from the AuthSession
961
+ */
962
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
963
+ /**
964
+ * Omit specific fields from the AuthSession
965
+ */
966
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
967
+ /**
968
+ * Choose, which related nodes to fetch as well
969
+ */
970
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
971
+ /**
972
+ * Filter, which AuthSession to fetch.
973
+ */
974
+ where: Prisma.AuthSessionWhereUniqueInput;
975
+ };
976
+ /**
977
+ * AuthSession findUniqueOrThrow
978
+ */
979
+ export type AuthSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
980
+ /**
981
+ * Select specific fields to fetch from the AuthSession
982
+ */
983
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
984
+ /**
985
+ * Omit specific fields from the AuthSession
986
+ */
987
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
988
+ /**
989
+ * Choose, which related nodes to fetch as well
990
+ */
991
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
992
+ /**
993
+ * Filter, which AuthSession to fetch.
994
+ */
995
+ where: Prisma.AuthSessionWhereUniqueInput;
996
+ };
997
+ /**
998
+ * AuthSession findFirst
999
+ */
1000
+ export type AuthSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1001
+ /**
1002
+ * Select specific fields to fetch from the AuthSession
1003
+ */
1004
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1005
+ /**
1006
+ * Omit specific fields from the AuthSession
1007
+ */
1008
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1009
+ /**
1010
+ * Choose, which related nodes to fetch as well
1011
+ */
1012
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1013
+ /**
1014
+ * Filter, which AuthSession to fetch.
1015
+ */
1016
+ where?: Prisma.AuthSessionWhereInput;
1017
+ /**
1018
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1019
+ *
1020
+ * Determine the order of AuthSessions to fetch.
1021
+ */
1022
+ orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
1023
+ /**
1024
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1025
+ *
1026
+ * Sets the position for searching for AuthSessions.
1027
+ */
1028
+ cursor?: Prisma.AuthSessionWhereUniqueInput;
1029
+ /**
1030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1031
+ *
1032
+ * Take `±n` AuthSessions from the position of the cursor.
1033
+ */
1034
+ take?: number;
1035
+ /**
1036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1037
+ *
1038
+ * Skip the first `n` AuthSessions.
1039
+ */
1040
+ skip?: number;
1041
+ /**
1042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1043
+ *
1044
+ * Filter by unique combinations of AuthSessions.
1045
+ */
1046
+ distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[];
1047
+ };
1048
+ /**
1049
+ * AuthSession findFirstOrThrow
1050
+ */
1051
+ export type AuthSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1052
+ /**
1053
+ * Select specific fields to fetch from the AuthSession
1054
+ */
1055
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1056
+ /**
1057
+ * Omit specific fields from the AuthSession
1058
+ */
1059
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1060
+ /**
1061
+ * Choose, which related nodes to fetch as well
1062
+ */
1063
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1064
+ /**
1065
+ * Filter, which AuthSession to fetch.
1066
+ */
1067
+ where?: Prisma.AuthSessionWhereInput;
1068
+ /**
1069
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1070
+ *
1071
+ * Determine the order of AuthSessions to fetch.
1072
+ */
1073
+ orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
1074
+ /**
1075
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1076
+ *
1077
+ * Sets the position for searching for AuthSessions.
1078
+ */
1079
+ cursor?: Prisma.AuthSessionWhereUniqueInput;
1080
+ /**
1081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1082
+ *
1083
+ * Take `±n` AuthSessions from the position of the cursor.
1084
+ */
1085
+ take?: number;
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1088
+ *
1089
+ * Skip the first `n` AuthSessions.
1090
+ */
1091
+ skip?: number;
1092
+ /**
1093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1094
+ *
1095
+ * Filter by unique combinations of AuthSessions.
1096
+ */
1097
+ distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[];
1098
+ };
1099
+ /**
1100
+ * AuthSession findMany
1101
+ */
1102
+ export type AuthSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
+ /**
1104
+ * Select specific fields to fetch from the AuthSession
1105
+ */
1106
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1107
+ /**
1108
+ * Omit specific fields from the AuthSession
1109
+ */
1110
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1111
+ /**
1112
+ * Choose, which related nodes to fetch as well
1113
+ */
1114
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1115
+ /**
1116
+ * Filter, which AuthSessions to fetch.
1117
+ */
1118
+ where?: Prisma.AuthSessionWhereInput;
1119
+ /**
1120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1121
+ *
1122
+ * Determine the order of AuthSessions to fetch.
1123
+ */
1124
+ orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
1125
+ /**
1126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1127
+ *
1128
+ * Sets the position for listing AuthSessions.
1129
+ */
1130
+ cursor?: Prisma.AuthSessionWhereUniqueInput;
1131
+ /**
1132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1133
+ *
1134
+ * Take `±n` AuthSessions from the position of the cursor.
1135
+ */
1136
+ take?: number;
1137
+ /**
1138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1139
+ *
1140
+ * Skip the first `n` AuthSessions.
1141
+ */
1142
+ skip?: number;
1143
+ /**
1144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1145
+ *
1146
+ * Filter by unique combinations of AuthSessions.
1147
+ */
1148
+ distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[];
1149
+ };
1150
+ /**
1151
+ * AuthSession create
1152
+ */
1153
+ export type AuthSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ /**
1155
+ * Select specific fields to fetch from the AuthSession
1156
+ */
1157
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1158
+ /**
1159
+ * Omit specific fields from the AuthSession
1160
+ */
1161
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1162
+ /**
1163
+ * Choose, which related nodes to fetch as well
1164
+ */
1165
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1166
+ /**
1167
+ * The data needed to create a AuthSession.
1168
+ */
1169
+ data: Prisma.XOR<Prisma.AuthSessionCreateInput, Prisma.AuthSessionUncheckedCreateInput>;
1170
+ };
1171
+ /**
1172
+ * AuthSession createMany
1173
+ */
1174
+ export type AuthSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1175
+ /**
1176
+ * The data used to create many AuthSessions.
1177
+ */
1178
+ data: Prisma.AuthSessionCreateManyInput | Prisma.AuthSessionCreateManyInput[];
1179
+ skipDuplicates?: boolean;
1180
+ };
1181
+ /**
1182
+ * AuthSession createManyAndReturn
1183
+ */
1184
+ export type AuthSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1185
+ /**
1186
+ * Select specific fields to fetch from the AuthSession
1187
+ */
1188
+ select?: Prisma.AuthSessionSelectCreateManyAndReturn<ExtArgs> | null;
1189
+ /**
1190
+ * Omit specific fields from the AuthSession
1191
+ */
1192
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1193
+ /**
1194
+ * The data used to create many AuthSessions.
1195
+ */
1196
+ data: Prisma.AuthSessionCreateManyInput | Prisma.AuthSessionCreateManyInput[];
1197
+ skipDuplicates?: boolean;
1198
+ /**
1199
+ * Choose, which related nodes to fetch as well
1200
+ */
1201
+ include?: Prisma.AuthSessionIncludeCreateManyAndReturn<ExtArgs> | null;
1202
+ };
1203
+ /**
1204
+ * AuthSession update
1205
+ */
1206
+ export type AuthSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1207
+ /**
1208
+ * Select specific fields to fetch from the AuthSession
1209
+ */
1210
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1211
+ /**
1212
+ * Omit specific fields from the AuthSession
1213
+ */
1214
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1215
+ /**
1216
+ * Choose, which related nodes to fetch as well
1217
+ */
1218
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1219
+ /**
1220
+ * The data needed to update a AuthSession.
1221
+ */
1222
+ data: Prisma.XOR<Prisma.AuthSessionUpdateInput, Prisma.AuthSessionUncheckedUpdateInput>;
1223
+ /**
1224
+ * Choose, which AuthSession to update.
1225
+ */
1226
+ where: Prisma.AuthSessionWhereUniqueInput;
1227
+ };
1228
+ /**
1229
+ * AuthSession updateMany
1230
+ */
1231
+ export type AuthSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1232
+ /**
1233
+ * The data used to update AuthSessions.
1234
+ */
1235
+ data: Prisma.XOR<Prisma.AuthSessionUpdateManyMutationInput, Prisma.AuthSessionUncheckedUpdateManyInput>;
1236
+ /**
1237
+ * Filter which AuthSessions to update
1238
+ */
1239
+ where?: Prisma.AuthSessionWhereInput;
1240
+ /**
1241
+ * Limit how many AuthSessions to update.
1242
+ */
1243
+ limit?: number;
1244
+ };
1245
+ /**
1246
+ * AuthSession updateManyAndReturn
1247
+ */
1248
+ export type AuthSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
+ /**
1250
+ * Select specific fields to fetch from the AuthSession
1251
+ */
1252
+ select?: Prisma.AuthSessionSelectUpdateManyAndReturn<ExtArgs> | null;
1253
+ /**
1254
+ * Omit specific fields from the AuthSession
1255
+ */
1256
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1257
+ /**
1258
+ * The data used to update AuthSessions.
1259
+ */
1260
+ data: Prisma.XOR<Prisma.AuthSessionUpdateManyMutationInput, Prisma.AuthSessionUncheckedUpdateManyInput>;
1261
+ /**
1262
+ * Filter which AuthSessions to update
1263
+ */
1264
+ where?: Prisma.AuthSessionWhereInput;
1265
+ /**
1266
+ * Limit how many AuthSessions to update.
1267
+ */
1268
+ limit?: number;
1269
+ /**
1270
+ * Choose, which related nodes to fetch as well
1271
+ */
1272
+ include?: Prisma.AuthSessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1273
+ };
1274
+ /**
1275
+ * AuthSession upsert
1276
+ */
1277
+ export type AuthSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1278
+ /**
1279
+ * Select specific fields to fetch from the AuthSession
1280
+ */
1281
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1282
+ /**
1283
+ * Omit specific fields from the AuthSession
1284
+ */
1285
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1286
+ /**
1287
+ * Choose, which related nodes to fetch as well
1288
+ */
1289
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1290
+ /**
1291
+ * The filter to search for the AuthSession to update in case it exists.
1292
+ */
1293
+ where: Prisma.AuthSessionWhereUniqueInput;
1294
+ /**
1295
+ * In case the AuthSession found by the `where` argument doesn't exist, create a new AuthSession with this data.
1296
+ */
1297
+ create: Prisma.XOR<Prisma.AuthSessionCreateInput, Prisma.AuthSessionUncheckedCreateInput>;
1298
+ /**
1299
+ * In case the AuthSession was found with the provided `where` argument, update it with this data.
1300
+ */
1301
+ update: Prisma.XOR<Prisma.AuthSessionUpdateInput, Prisma.AuthSessionUncheckedUpdateInput>;
1302
+ };
1303
+ /**
1304
+ * AuthSession delete
1305
+ */
1306
+ export type AuthSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
+ /**
1308
+ * Select specific fields to fetch from the AuthSession
1309
+ */
1310
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1311
+ /**
1312
+ * Omit specific fields from the AuthSession
1313
+ */
1314
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1315
+ /**
1316
+ * Choose, which related nodes to fetch as well
1317
+ */
1318
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1319
+ /**
1320
+ * Filter which AuthSession to delete.
1321
+ */
1322
+ where: Prisma.AuthSessionWhereUniqueInput;
1323
+ };
1324
+ /**
1325
+ * AuthSession deleteMany
1326
+ */
1327
+ export type AuthSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1328
+ /**
1329
+ * Filter which AuthSessions to delete
1330
+ */
1331
+ where?: Prisma.AuthSessionWhereInput;
1332
+ /**
1333
+ * Limit how many AuthSessions to delete.
1334
+ */
1335
+ limit?: number;
1336
+ };
1337
+ /**
1338
+ * AuthSession.challenges
1339
+ */
1340
+ export type AuthSession$challengesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1341
+ /**
1342
+ * Select specific fields to fetch from the AuthFormChallenge
1343
+ */
1344
+ select?: Prisma.AuthFormChallengeSelect<ExtArgs> | null;
1345
+ /**
1346
+ * Omit specific fields from the AuthFormChallenge
1347
+ */
1348
+ omit?: Prisma.AuthFormChallengeOmit<ExtArgs> | null;
1349
+ /**
1350
+ * Choose, which related nodes to fetch as well
1351
+ */
1352
+ include?: Prisma.AuthFormChallengeInclude<ExtArgs> | null;
1353
+ where?: Prisma.AuthFormChallengeWhereInput;
1354
+ orderBy?: Prisma.AuthFormChallengeOrderByWithRelationInput | Prisma.AuthFormChallengeOrderByWithRelationInput[];
1355
+ cursor?: Prisma.AuthFormChallengeWhereUniqueInput;
1356
+ take?: number;
1357
+ skip?: number;
1358
+ distinct?: Prisma.AuthFormChallengeScalarFieldEnum | Prisma.AuthFormChallengeScalarFieldEnum[];
1359
+ };
1360
+ /**
1361
+ * AuthSession without action
1362
+ */
1363
+ export type AuthSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1364
+ /**
1365
+ * Select specific fields to fetch from the AuthSession
1366
+ */
1367
+ select?: Prisma.AuthSessionSelect<ExtArgs> | null;
1368
+ /**
1369
+ * Omit specific fields from the AuthSession
1370
+ */
1371
+ omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
1372
+ /**
1373
+ * Choose, which related nodes to fetch as well
1374
+ */
1375
+ include?: Prisma.AuthSessionInclude<ExtArgs> | null;
1376
+ };