@prenta/core 0.118.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 (1408) hide show
  1. package/CHANGELOG.md +2974 -0
  2. package/LICENSE +21 -0
  3. package/README.md +33 -0
  4. package/dist/a11y/index.d.ts +25 -0
  5. package/dist/a11y/index.d.ts.map +1 -0
  6. package/dist/a11y/index.js +91 -0
  7. package/dist/a11y/index.js.map +1 -0
  8. package/dist/actions.d.ts +130 -0
  9. package/dist/actions.d.ts.map +1 -0
  10. package/dist/actions.js +1324 -0
  11. package/dist/actions.js.map +1 -0
  12. package/dist/ai/brand-voice-alignment.d.ts +17 -0
  13. package/dist/ai/brand-voice-alignment.d.ts.map +1 -0
  14. package/dist/ai/brand-voice-alignment.js +40 -0
  15. package/dist/ai/brand-voice-alignment.js.map +1 -0
  16. package/dist/ai/brand-voice-analyze.d.ts +71 -0
  17. package/dist/ai/brand-voice-analyze.d.ts.map +1 -0
  18. package/dist/ai/brand-voice-analyze.js +151 -0
  19. package/dist/ai/brand-voice-analyze.js.map +1 -0
  20. package/dist/ai/brand-voice-document.d.ts +56 -0
  21. package/dist/ai/brand-voice-document.d.ts.map +1 -0
  22. package/dist/ai/brand-voice-document.js +335 -0
  23. package/dist/ai/brand-voice-document.js.map +1 -0
  24. package/dist/ai/brand-voice-fix.d.ts +26 -0
  25. package/dist/ai/brand-voice-fix.d.ts.map +1 -0
  26. package/dist/ai/brand-voice-fix.js +97 -0
  27. package/dist/ai/brand-voice-fix.js.map +1 -0
  28. package/dist/ai/brand-voice-save.d.ts +11 -0
  29. package/dist/ai/brand-voice-save.d.ts.map +1 -0
  30. package/dist/ai/brand-voice-save.js +51 -0
  31. package/dist/ai/brand-voice-save.js.map +1 -0
  32. package/dist/ai/brand-voice-sources.d.ts +16 -0
  33. package/dist/ai/brand-voice-sources.d.ts.map +1 -0
  34. package/dist/ai/brand-voice-sources.js +106 -0
  35. package/dist/ai/brand-voice-sources.js.map +1 -0
  36. package/dist/ai/brand-voice-structured.d.ts +87 -0
  37. package/dist/ai/brand-voice-structured.d.ts.map +1 -0
  38. package/dist/ai/brand-voice-structured.js +438 -0
  39. package/dist/ai/brand-voice-structured.js.map +1 -0
  40. package/dist/ai/brand-voice.d.ts +40 -0
  41. package/dist/ai/brand-voice.d.ts.map +1 -0
  42. package/dist/ai/brand-voice.js +103 -0
  43. package/dist/ai/brand-voice.js.map +1 -0
  44. package/dist/ai/catalog.d.ts +35 -0
  45. package/dist/ai/catalog.d.ts.map +1 -0
  46. package/dist/ai/catalog.js +370 -0
  47. package/dist/ai/catalog.js.map +1 -0
  48. package/dist/ai/config-store.d.ts +55 -0
  49. package/dist/ai/config-store.d.ts.map +1 -0
  50. package/dist/ai/config-store.js +177 -0
  51. package/dist/ai/config-store.js.map +1 -0
  52. package/dist/ai/content-writing-generate.d.ts +19 -0
  53. package/dist/ai/content-writing-generate.d.ts.map +1 -0
  54. package/dist/ai/content-writing-generate.js +64 -0
  55. package/dist/ai/content-writing-generate.js.map +1 -0
  56. package/dist/ai/feature-defaults.d.ts +20 -0
  57. package/dist/ai/feature-defaults.d.ts.map +1 -0
  58. package/dist/ai/feature-defaults.js +104 -0
  59. package/dist/ai/feature-defaults.js.map +1 -0
  60. package/dist/ai/index.d.ts +24 -0
  61. package/dist/ai/index.d.ts.map +1 -0
  62. package/dist/ai/index.js +24 -0
  63. package/dist/ai/index.js.map +1 -0
  64. package/dist/ai/models.d.ts +37 -0
  65. package/dist/ai/models.d.ts.map +1 -0
  66. package/dist/ai/models.js +126 -0
  67. package/dist/ai/models.js.map +1 -0
  68. package/dist/ai/providers/anthropic.d.ts +10 -0
  69. package/dist/ai/providers/anthropic.d.ts.map +1 -0
  70. package/dist/ai/providers/anthropic.js +63 -0
  71. package/dist/ai/providers/anthropic.js.map +1 -0
  72. package/dist/ai/providers/custom.d.ts +12 -0
  73. package/dist/ai/providers/custom.d.ts.map +1 -0
  74. package/dist/ai/providers/custom.js +76 -0
  75. package/dist/ai/providers/custom.js.map +1 -0
  76. package/dist/ai/providers/http.d.ts +66 -0
  77. package/dist/ai/providers/http.d.ts.map +1 -0
  78. package/dist/ai/providers/http.js +185 -0
  79. package/dist/ai/providers/http.js.map +1 -0
  80. package/dist/ai/providers/index.d.ts +18 -0
  81. package/dist/ai/providers/index.d.ts.map +1 -0
  82. package/dist/ai/providers/index.js +28 -0
  83. package/dist/ai/providers/index.js.map +1 -0
  84. package/dist/ai/providers/openai.d.ts +11 -0
  85. package/dist/ai/providers/openai.d.ts.map +1 -0
  86. package/dist/ai/providers/openai.js +44 -0
  87. package/dist/ai/providers/openai.js.map +1 -0
  88. package/dist/ai/providers/xai.d.ts +10 -0
  89. package/dist/ai/providers/xai.d.ts.map +1 -0
  90. package/dist/ai/providers/xai.js +38 -0
  91. package/dist/ai/providers/xai.js.map +1 -0
  92. package/dist/ai/resolve.d.ts +41 -0
  93. package/dist/ai/resolve.d.ts.map +1 -0
  94. package/dist/ai/resolve.js +143 -0
  95. package/dist/ai/resolve.js.map +1 -0
  96. package/dist/ai/runtime.d.ts +88 -0
  97. package/dist/ai/runtime.d.ts.map +1 -0
  98. package/dist/ai/runtime.js +192 -0
  99. package/dist/ai/runtime.js.map +1 -0
  100. package/dist/ai/sampling.d.ts +17 -0
  101. package/dist/ai/sampling.d.ts.map +1 -0
  102. package/dist/ai/sampling.js +51 -0
  103. package/dist/ai/sampling.js.map +1 -0
  104. package/dist/ai/types.d.ts +193 -0
  105. package/dist/ai/types.d.ts.map +1 -0
  106. package/dist/ai/types.js +11 -0
  107. package/dist/ai/types.js.map +1 -0
  108. package/dist/ai/usage.d.ts +18 -0
  109. package/dist/ai/usage.d.ts.map +1 -0
  110. package/dist/ai/usage.js +70 -0
  111. package/dist/ai/usage.js.map +1 -0
  112. package/dist/api/collection-introspection.d.ts +46 -0
  113. package/dist/api/collection-introspection.d.ts.map +1 -0
  114. package/dist/api/collection-introspection.js +82 -0
  115. package/dist/api/collection-introspection.js.map +1 -0
  116. package/dist/api/guarded-db.d.ts +14 -0
  117. package/dist/api/guarded-db.d.ts.map +1 -0
  118. package/dist/api/guarded-db.js +62 -0
  119. package/dist/api/guarded-db.js.map +1 -0
  120. package/dist/api/handler-factory.d.ts +7 -0
  121. package/dist/api/handler-factory.d.ts.map +1 -0
  122. package/dist/api/handler-factory.js +380 -0
  123. package/dist/api/handler-factory.js.map +1 -0
  124. package/dist/api/handlers.d.ts +8 -0
  125. package/dist/api/handlers.d.ts.map +1 -0
  126. package/dist/api/handlers.js +62 -0
  127. package/dist/api/handlers.js.map +1 -0
  128. package/dist/api/index.d.ts +8 -0
  129. package/dist/api/index.d.ts.map +1 -0
  130. package/dist/api/index.js +8 -0
  131. package/dist/api/index.js.map +1 -0
  132. package/dist/api/openapi.d.ts +3 -0
  133. package/dist/api/openapi.d.ts.map +1 -0
  134. package/dist/api/openapi.js +539 -0
  135. package/dist/api/openapi.js.map +1 -0
  136. package/dist/api/route-helpers.d.ts +369 -0
  137. package/dist/api/route-helpers.d.ts.map +1 -0
  138. package/dist/api/route-helpers.js +1574 -0
  139. package/dist/api/route-helpers.js.map +1 -0
  140. package/dist/api/router.d.ts +21 -0
  141. package/dist/api/router.d.ts.map +1 -0
  142. package/dist/api/router.js +75 -0
  143. package/dist/api/router.js.map +1 -0
  144. package/dist/api/routes/ai-seo.d.ts +3 -0
  145. package/dist/api/routes/ai-seo.d.ts.map +1 -0
  146. package/dist/api/routes/ai-seo.js +482 -0
  147. package/dist/api/routes/ai-seo.js.map +1 -0
  148. package/dist/api/routes/ai-settings.d.ts +3 -0
  149. package/dist/api/routes/ai-settings.d.ts.map +1 -0
  150. package/dist/api/routes/ai-settings.js +1078 -0
  151. package/dist/api/routes/ai-settings.js.map +1 -0
  152. package/dist/api/routes/auth.d.ts +3 -0
  153. package/dist/api/routes/auth.d.ts.map +1 -0
  154. package/dist/api/routes/auth.js +877 -0
  155. package/dist/api/routes/auth.js.map +1 -0
  156. package/dist/api/routes/collab.d.ts +3 -0
  157. package/dist/api/routes/collab.d.ts.map +1 -0
  158. package/dist/api/routes/collab.js +426 -0
  159. package/dist/api/routes/collab.js.map +1 -0
  160. package/dist/api/routes/dashboard.d.ts +7 -0
  161. package/dist/api/routes/dashboard.d.ts.map +1 -0
  162. package/dist/api/routes/dashboard.js +540 -0
  163. package/dist/api/routes/dashboard.js.map +1 -0
  164. package/dist/api/routes/documents.d.ts +11 -0
  165. package/dist/api/routes/documents.d.ts.map +1 -0
  166. package/dist/api/routes/documents.js +340 -0
  167. package/dist/api/routes/documents.js.map +1 -0
  168. package/dist/api/routes/email-settings.d.ts +3 -0
  169. package/dist/api/routes/email-settings.d.ts.map +1 -0
  170. package/dist/api/routes/email-settings.js +248 -0
  171. package/dist/api/routes/email-settings.js.map +1 -0
  172. package/dist/api/routes/folders.d.ts +3 -0
  173. package/dist/api/routes/folders.d.ts.map +1 -0
  174. package/dist/api/routes/folders.js +195 -0
  175. package/dist/api/routes/folders.js.map +1 -0
  176. package/dist/api/routes/forms.d.ts +3 -0
  177. package/dist/api/routes/forms.d.ts.map +1 -0
  178. package/dist/api/routes/forms.js +776 -0
  179. package/dist/api/routes/forms.js.map +1 -0
  180. package/dist/api/routes/globals.d.ts +3 -0
  181. package/dist/api/routes/globals.d.ts.map +1 -0
  182. package/dist/api/routes/globals.js +157 -0
  183. package/dist/api/routes/globals.js.map +1 -0
  184. package/dist/api/routes/media.d.ts +3 -0
  185. package/dist/api/routes/media.d.ts.map +1 -0
  186. package/dist/api/routes/media.js +807 -0
  187. package/dist/api/routes/media.js.map +1 -0
  188. package/dist/api/routes/meta.d.ts +3 -0
  189. package/dist/api/routes/meta.d.ts.map +1 -0
  190. package/dist/api/routes/meta.js +97 -0
  191. package/dist/api/routes/meta.js.map +1 -0
  192. package/dist/api/routes/navigations.d.ts +7 -0
  193. package/dist/api/routes/navigations.d.ts.map +1 -0
  194. package/dist/api/routes/navigations.js +81 -0
  195. package/dist/api/routes/navigations.js.map +1 -0
  196. package/dist/api/routes/page-templates.d.ts +3 -0
  197. package/dist/api/routes/page-templates.d.ts.map +1 -0
  198. package/dist/api/routes/page-templates.js +265 -0
  199. package/dist/api/routes/page-templates.js.map +1 -0
  200. package/dist/api/routes/presence.d.ts +3 -0
  201. package/dist/api/routes/presence.d.ts.map +1 -0
  202. package/dist/api/routes/presence.js +35 -0
  203. package/dist/api/routes/presence.js.map +1 -0
  204. package/dist/api/routes/preview.d.ts +3 -0
  205. package/dist/api/routes/preview.d.ts.map +1 -0
  206. package/dist/api/routes/preview.js +111 -0
  207. package/dist/api/routes/preview.js.map +1 -0
  208. package/dist/api/routes/redirects.d.ts +3 -0
  209. package/dist/api/routes/redirects.d.ts.map +1 -0
  210. package/dist/api/routes/redirects.js +937 -0
  211. package/dist/api/routes/redirects.js.map +1 -0
  212. package/dist/api/routes/saved-sections.d.ts +3 -0
  213. package/dist/api/routes/saved-sections.d.ts.map +1 -0
  214. package/dist/api/routes/saved-sections.js +1071 -0
  215. package/dist/api/routes/saved-sections.js.map +1 -0
  216. package/dist/api/routes/scheduling.d.ts +3 -0
  217. package/dist/api/routes/scheduling.d.ts.map +1 -0
  218. package/dist/api/routes/scheduling.js +391 -0
  219. package/dist/api/routes/scheduling.js.map +1 -0
  220. package/dist/api/routes/sections.d.ts +3 -0
  221. package/dist/api/routes/sections.d.ts.map +1 -0
  222. package/dist/api/routes/sections.js +512 -0
  223. package/dist/api/routes/sections.js.map +1 -0
  224. package/dist/api/routes/security-center.d.ts +3 -0
  225. package/dist/api/routes/security-center.d.ts.map +1 -0
  226. package/dist/api/routes/security-center.js +71 -0
  227. package/dist/api/routes/security-center.js.map +1 -0
  228. package/dist/api/routes/seo-public.d.ts +14 -0
  229. package/dist/api/routes/seo-public.d.ts.map +1 -0
  230. package/dist/api/routes/seo-public.js +1366 -0
  231. package/dist/api/routes/seo-public.js.map +1 -0
  232. package/dist/api/routes/seo.d.ts +8 -0
  233. package/dist/api/routes/seo.d.ts.map +1 -0
  234. package/dist/api/routes/seo.js +2256 -0
  235. package/dist/api/routes/seo.js.map +1 -0
  236. package/dist/api/routes/system.d.ts +3 -0
  237. package/dist/api/routes/system.d.ts.map +1 -0
  238. package/dist/api/routes/system.js +353 -0
  239. package/dist/api/routes/system.js.map +1 -0
  240. package/dist/api/routes/url-resolution.d.ts +3 -0
  241. package/dist/api/routes/url-resolution.d.ts.map +1 -0
  242. package/dist/api/routes/url-resolution.js +522 -0
  243. package/dist/api/routes/url-resolution.js.map +1 -0
  244. package/dist/api/routes/users.d.ts +3 -0
  245. package/dist/api/routes/users.d.ts.map +1 -0
  246. package/dist/api/routes/users.js +1177 -0
  247. package/dist/api/routes/users.js.map +1 -0
  248. package/dist/api/routes/webhooks.d.ts +3 -0
  249. package/dist/api/routes/webhooks.d.ts.map +1 -0
  250. package/dist/api/routes/webhooks.js +422 -0
  251. package/dist/api/routes/webhooks.js.map +1 -0
  252. package/dist/appearance/color.d.ts +24 -0
  253. package/dist/appearance/color.d.ts.map +1 -0
  254. package/dist/appearance/color.js +90 -0
  255. package/dist/appearance/color.js.map +1 -0
  256. package/dist/appearance/favicon-icon.d.ts +12 -0
  257. package/dist/appearance/favicon-icon.d.ts.map +1 -0
  258. package/dist/appearance/favicon-icon.js +58 -0
  259. package/dist/appearance/favicon-icon.js.map +1 -0
  260. package/dist/appearance/favicon-paths.d.ts +6 -0
  261. package/dist/appearance/favicon-paths.d.ts.map +1 -0
  262. package/dist/appearance/favicon-paths.js +6 -0
  263. package/dist/appearance/favicon-paths.js.map +1 -0
  264. package/dist/appearance/index.d.ts +15 -0
  265. package/dist/appearance/index.d.ts.map +1 -0
  266. package/dist/appearance/index.js +7 -0
  267. package/dist/appearance/index.js.map +1 -0
  268. package/dist/appearance/logo-shape.d.ts +26 -0
  269. package/dist/appearance/logo-shape.d.ts.map +1 -0
  270. package/dist/appearance/logo-shape.js +62 -0
  271. package/dist/appearance/logo-shape.js.map +1 -0
  272. package/dist/appearance/resolve.d.ts +52 -0
  273. package/dist/appearance/resolve.d.ts.map +1 -0
  274. package/dist/appearance/resolve.js +219 -0
  275. package/dist/appearance/resolve.js.map +1 -0
  276. package/dist/appearance/theme-tokens.d.ts +49 -0
  277. package/dist/appearance/theme-tokens.d.ts.map +1 -0
  278. package/dist/appearance/theme-tokens.js +229 -0
  279. package/dist/appearance/theme-tokens.js.map +1 -0
  280. package/dist/appearance/types.d.ts +110 -0
  281. package/dist/appearance/types.d.ts.map +1 -0
  282. package/dist/appearance/types.js +16 -0
  283. package/dist/appearance/types.js.map +1 -0
  284. package/dist/astro-cache.d.ts +80 -0
  285. package/dist/astro-cache.d.ts.map +1 -0
  286. package/dist/astro-cache.js +108 -0
  287. package/dist/astro-cache.js.map +1 -0
  288. package/dist/astro-content.d.ts +81 -0
  289. package/dist/astro-content.d.ts.map +1 -0
  290. package/dist/astro-content.js +151 -0
  291. package/dist/astro-content.js.map +1 -0
  292. package/dist/astro-redirects.d.ts +38 -0
  293. package/dist/astro-redirects.d.ts.map +1 -0
  294. package/dist/astro-redirects.js +45 -0
  295. package/dist/astro-redirects.js.map +1 -0
  296. package/dist/astro-security.d.ts +34 -0
  297. package/dist/astro-security.d.ts.map +1 -0
  298. package/dist/astro-security.js +31 -0
  299. package/dist/astro-security.js.map +1 -0
  300. package/dist/astro-site.d.ts +69 -0
  301. package/dist/astro-site.d.ts.map +1 -0
  302. package/dist/astro-site.js +81 -0
  303. package/dist/astro-site.js.map +1 -0
  304. package/dist/auth/index.d.ts +17 -0
  305. package/dist/auth/index.d.ts.map +1 -0
  306. package/dist/auth/index.js +12 -0
  307. package/dist/auth/index.js.map +1 -0
  308. package/dist/auth/invite-email.d.ts +12 -0
  309. package/dist/auth/invite-email.d.ts.map +1 -0
  310. package/dist/auth/invite-email.js +57 -0
  311. package/dist/auth/invite-email.js.map +1 -0
  312. package/dist/auth/invites.d.ts +72 -0
  313. package/dist/auth/invites.d.ts.map +1 -0
  314. package/dist/auth/invites.js +279 -0
  315. package/dist/auth/invites.js.map +1 -0
  316. package/dist/auth/mfa-pending.d.ts +24 -0
  317. package/dist/auth/mfa-pending.d.ts.map +1 -0
  318. package/dist/auth/mfa-pending.js +38 -0
  319. package/dist/auth/mfa-pending.js.map +1 -0
  320. package/dist/auth/oauth.d.ts +139 -0
  321. package/dist/auth/oauth.d.ts.map +1 -0
  322. package/dist/auth/oauth.js +376 -0
  323. package/dist/auth/oauth.js.map +1 -0
  324. package/dist/auth/password.d.ts +57 -0
  325. package/dist/auth/password.d.ts.map +1 -0
  326. package/dist/auth/password.js +150 -0
  327. package/dist/auth/password.js.map +1 -0
  328. package/dist/auth/providers/github.d.ts +9 -0
  329. package/dist/auth/providers/github.d.ts.map +1 -0
  330. package/dist/auth/providers/github.js +10 -0
  331. package/dist/auth/providers/github.js.map +1 -0
  332. package/dist/auth/providers/google.d.ts +9 -0
  333. package/dist/auth/providers/google.d.ts.map +1 -0
  334. package/dist/auth/providers/google.js +10 -0
  335. package/dist/auth/providers/google.js.map +1 -0
  336. package/dist/auth/providers/microsoft.d.ts +9 -0
  337. package/dist/auth/providers/microsoft.d.ts.map +1 -0
  338. package/dist/auth/providers/microsoft.js +11 -0
  339. package/dist/auth/providers/microsoft.js.map +1 -0
  340. package/dist/auth/reset-email.d.ts +10 -0
  341. package/dist/auth/reset-email.d.ts.map +1 -0
  342. package/dist/auth/reset-email.js +30 -0
  343. package/dist/auth/reset-email.js.map +1 -0
  344. package/dist/auth/reset.d.ts +42 -0
  345. package/dist/auth/reset.d.ts.map +1 -0
  346. package/dist/auth/reset.js +142 -0
  347. package/dist/auth/reset.js.map +1 -0
  348. package/dist/auth/roles.d.ts +51 -0
  349. package/dist/auth/roles.d.ts.map +1 -0
  350. package/dist/auth/roles.js +159 -0
  351. package/dist/auth/roles.js.map +1 -0
  352. package/dist/auth/session.d.ts +38 -0
  353. package/dist/auth/session.d.ts.map +1 -0
  354. package/dist/auth/session.js +106 -0
  355. package/dist/auth/session.js.map +1 -0
  356. package/dist/auth/team.d.ts +99 -0
  357. package/dist/auth/team.d.ts.map +1 -0
  358. package/dist/auth/team.js +327 -0
  359. package/dist/auth/team.js.map +1 -0
  360. package/dist/auth/totp.d.ts +31 -0
  361. package/dist/auth/totp.d.ts.map +1 -0
  362. package/dist/auth/totp.js +134 -0
  363. package/dist/auth/totp.js.map +1 -0
  364. package/dist/auth/user-admin.d.ts +119 -0
  365. package/dist/auth/user-admin.d.ts.map +1 -0
  366. package/dist/auth/user-admin.js +292 -0
  367. package/dist/auth/user-admin.js.map +1 -0
  368. package/dist/backup/index.d.ts +19 -0
  369. package/dist/backup/index.d.ts.map +1 -0
  370. package/dist/backup/index.js +24 -0
  371. package/dist/backup/index.js.map +1 -0
  372. package/dist/billing/stripe-meter.d.ts +22 -0
  373. package/dist/billing/stripe-meter.d.ts.map +1 -0
  374. package/dist/billing/stripe-meter.js +101 -0
  375. package/dist/billing/stripe-meter.js.map +1 -0
  376. package/dist/brand-voice/index.d.ts +7 -0
  377. package/dist/brand-voice/index.d.ts.map +1 -0
  378. package/dist/brand-voice/index.js +7 -0
  379. package/dist/brand-voice/index.js.map +1 -0
  380. package/dist/cache/http.d.ts +140 -0
  381. package/dist/cache/http.d.ts.map +1 -0
  382. package/dist/cache/http.js +213 -0
  383. package/dist/cache/http.js.map +1 -0
  384. package/dist/cache/index.d.ts +15 -0
  385. package/dist/cache/index.d.ts.map +1 -0
  386. package/dist/cache/index.js +32 -0
  387. package/dist/cache/index.js.map +1 -0
  388. package/dist/client.d.ts +51 -0
  389. package/dist/client.d.ts.map +1 -0
  390. package/dist/client.js +59 -0
  391. package/dist/client.js.map +1 -0
  392. package/dist/codegen/index.d.ts +4 -0
  393. package/dist/codegen/index.d.ts.map +1 -0
  394. package/dist/codegen/index.js +366 -0
  395. package/dist/codegen/index.js.map +1 -0
  396. package/dist/collections/index.d.ts +19 -0
  397. package/dist/collections/index.d.ts.map +1 -0
  398. package/dist/collections/index.js +30 -0
  399. package/dist/collections/index.js.map +1 -0
  400. package/dist/collections/presets.d.ts +90 -0
  401. package/dist/collections/presets.d.ts.map +1 -0
  402. package/dist/collections/presets.js +573 -0
  403. package/dist/collections/presets.js.map +1 -0
  404. package/dist/config/define.d.ts +8 -0
  405. package/dist/config/define.d.ts.map +1 -0
  406. package/dist/config/define.js +7 -0
  407. package/dist/config/define.js.map +1 -0
  408. package/dist/config/index.d.ts +31 -0
  409. package/dist/config/index.d.ts.map +1 -0
  410. package/dist/config/index.js +196 -0
  411. package/dist/config/index.js.map +1 -0
  412. package/dist/config/runtime.d.ts +107 -0
  413. package/dist/config/runtime.d.ts.map +1 -0
  414. package/dist/config/runtime.js +77 -0
  415. package/dist/config/runtime.js.map +1 -0
  416. package/dist/config/types.d.ts +924 -0
  417. package/dist/config/types.d.ts.map +1 -0
  418. package/dist/config/types.js +2 -0
  419. package/dist/config/types.js.map +1 -0
  420. package/dist/content/ai-api.d.ts +21 -0
  421. package/dist/content/ai-api.d.ts.map +1 -0
  422. package/dist/content/ai-api.js +25 -0
  423. package/dist/content/ai-api.js.map +1 -0
  424. package/dist/content/content-graph.d.ts +25 -0
  425. package/dist/content/content-graph.d.ts.map +1 -0
  426. package/dist/content/content-graph.js +40 -0
  427. package/dist/content/content-graph.js.map +1 -0
  428. package/dist/content/extract.d.ts +7 -0
  429. package/dist/content/extract.d.ts.map +1 -0
  430. package/dist/content/extract.js +33 -0
  431. package/dist/content/extract.js.map +1 -0
  432. package/dist/content/index.d.ts +9 -0
  433. package/dist/content/index.d.ts.map +1 -0
  434. package/dist/content/index.js +6 -0
  435. package/dist/content/index.js.map +1 -0
  436. package/dist/content/slug.d.ts +40 -0
  437. package/dist/content/slug.d.ts.map +1 -0
  438. package/dist/content/slug.js +78 -0
  439. package/dist/content/slug.js.map +1 -0
  440. package/dist/content/structured-data.d.ts +163 -0
  441. package/dist/content/structured-data.d.ts.map +1 -0
  442. package/dist/content/structured-data.js +479 -0
  443. package/dist/content/structured-data.js.map +1 -0
  444. package/dist/content-health/cron.d.ts +68 -0
  445. package/dist/content-health/cron.d.ts.map +1 -0
  446. package/dist/content-health/cron.js +167 -0
  447. package/dist/content-health/cron.js.map +1 -0
  448. package/dist/content-health/scanner.d.ts +119 -0
  449. package/dist/content-health/scanner.d.ts.map +1 -0
  450. package/dist/content-health/scanner.js +257 -0
  451. package/dist/content-health/scanner.js.map +1 -0
  452. package/dist/cron/index.d.ts +90 -0
  453. package/dist/cron/index.d.ts.map +1 -0
  454. package/dist/cron/index.js +299 -0
  455. package/dist/cron/index.js.map +1 -0
  456. package/dist/db/adapters/mysql.d.ts +5 -0
  457. package/dist/db/adapters/mysql.d.ts.map +1 -0
  458. package/dist/db/adapters/mysql.js +26 -0
  459. package/dist/db/adapters/mysql.js.map +1 -0
  460. package/dist/db/adapters/postgres.d.ts +7 -0
  461. package/dist/db/adapters/postgres.d.ts.map +1 -0
  462. package/dist/db/adapters/postgres.js +25 -0
  463. package/dist/db/adapters/postgres.js.map +1 -0
  464. package/dist/db/adapters/sqlite.d.ts +5 -0
  465. package/dist/db/adapters/sqlite.d.ts.map +1 -0
  466. package/dist/db/adapters/sqlite.js +27 -0
  467. package/dist/db/adapters/sqlite.js.map +1 -0
  468. package/dist/db/client-types.d.ts +75 -0
  469. package/dist/db/client-types.d.ts.map +1 -0
  470. package/dist/db/client-types.js +2 -0
  471. package/dist/db/client-types.js.map +1 -0
  472. package/dist/db/create-adapter.d.ts +11 -0
  473. package/dist/db/create-adapter.d.ts.map +1 -0
  474. package/dist/db/create-adapter.js +43 -0
  475. package/dist/db/create-adapter.js.map +1 -0
  476. package/dist/db/find-in-batches.d.ts +12 -0
  477. package/dist/db/find-in-batches.d.ts.map +1 -0
  478. package/dist/db/find-in-batches.js +20 -0
  479. package/dist/db/find-in-batches.js.map +1 -0
  480. package/dist/db/index.d.ts +9 -0
  481. package/dist/db/index.d.ts.map +1 -0
  482. package/dist/db/index.js +5 -0
  483. package/dist/db/index.js.map +1 -0
  484. package/dist/db/model-types.d.ts +602 -0
  485. package/dist/db/model-types.d.ts.map +1 -0
  486. package/dist/db/model-types.js +14 -0
  487. package/dist/db/model-types.js.map +1 -0
  488. package/dist/db.d.ts +20 -0
  489. package/dist/db.d.ts.map +1 -0
  490. package/dist/db.js +35 -0
  491. package/dist/db.js.map +1 -0
  492. package/dist/diagnostics/api-metrics.d.ts +135 -0
  493. package/dist/diagnostics/api-metrics.d.ts.map +1 -0
  494. package/dist/diagnostics/api-metrics.js +376 -0
  495. package/dist/diagnostics/api-metrics.js.map +1 -0
  496. package/dist/diagnostics/env.d.ts +44 -0
  497. package/dist/diagnostics/env.d.ts.map +1 -0
  498. package/dist/diagnostics/env.js +354 -0
  499. package/dist/diagnostics/env.js.map +1 -0
  500. package/dist/diagnostics/logger.d.ts +38 -0
  501. package/dist/diagnostics/logger.d.ts.map +1 -0
  502. package/dist/diagnostics/logger.js +89 -0
  503. package/dist/diagnostics/logger.js.map +1 -0
  504. package/dist/diagnostics/sentry.d.ts +8 -0
  505. package/dist/diagnostics/sentry.d.ts.map +1 -0
  506. package/dist/diagnostics/sentry.js +54 -0
  507. package/dist/diagnostics/sentry.js.map +1 -0
  508. package/dist/email/resolve.d.ts +27 -0
  509. package/dist/email/resolve.d.ts.map +1 -0
  510. package/dist/email/resolve.js +68 -0
  511. package/dist/email/resolve.js.map +1 -0
  512. package/dist/email/sender.d.ts +71 -0
  513. package/dist/email/sender.d.ts.map +1 -0
  514. package/dist/email/sender.js +41 -0
  515. package/dist/email/sender.js.map +1 -0
  516. package/dist/email/settings-store.d.ts +116 -0
  517. package/dist/email/settings-store.d.ts.map +1 -0
  518. package/dist/email/settings-store.js +222 -0
  519. package/dist/email/settings-store.js.map +1 -0
  520. package/dist/fields/component-block.d.ts +23 -0
  521. package/dist/fields/component-block.d.ts.map +1 -0
  522. package/dist/fields/component-block.js +137 -0
  523. package/dist/fields/component-block.js.map +1 -0
  524. package/dist/fields/index.d.ts +19 -0
  525. package/dist/fields/index.d.ts.map +1 -0
  526. package/dist/fields/index.js +95 -0
  527. package/dist/fields/index.js.map +1 -0
  528. package/dist/fields/presets.d.ts +144 -0
  529. package/dist/fields/presets.d.ts.map +1 -0
  530. package/dist/fields/presets.js +350 -0
  531. package/dist/fields/presets.js.map +1 -0
  532. package/dist/fields/relations.d.ts +87 -0
  533. package/dist/fields/relations.d.ts.map +1 -0
  534. package/dist/fields/relations.js +231 -0
  535. package/dist/fields/relations.js.map +1 -0
  536. package/dist/forms/analytics.d.ts +62 -0
  537. package/dist/forms/analytics.d.ts.map +1 -0
  538. package/dist/forms/analytics.js +95 -0
  539. package/dist/forms/analytics.js.map +1 -0
  540. package/dist/forms/attribution.d.ts +175 -0
  541. package/dist/forms/attribution.d.ts.map +1 -0
  542. package/dist/forms/attribution.js +577 -0
  543. package/dist/forms/attribution.js.map +1 -0
  544. package/dist/forms/client-validation.d.ts +50 -0
  545. package/dist/forms/client-validation.d.ts.map +1 -0
  546. package/dist/forms/client-validation.js +215 -0
  547. package/dist/forms/client-validation.js.map +1 -0
  548. package/dist/forms/delivery.d.ts +89 -0
  549. package/dist/forms/delivery.d.ts.map +1 -0
  550. package/dist/forms/delivery.js +477 -0
  551. package/dist/forms/delivery.js.map +1 -0
  552. package/dist/forms/encryption.d.ts +20 -0
  553. package/dist/forms/encryption.d.ts.map +1 -0
  554. package/dist/forms/encryption.js +80 -0
  555. package/dist/forms/encryption.js.map +1 -0
  556. package/dist/forms/entries.d.ts +68 -0
  557. package/dist/forms/entries.d.ts.map +1 -0
  558. package/dist/forms/entries.js +557 -0
  559. package/dist/forms/entries.js.map +1 -0
  560. package/dist/forms/files.d.ts +38 -0
  561. package/dist/forms/files.d.ts.map +1 -0
  562. package/dist/forms/files.js +134 -0
  563. package/dist/forms/files.js.map +1 -0
  564. package/dist/forms/index.d.ts +21 -0
  565. package/dist/forms/index.d.ts.map +1 -0
  566. package/dist/forms/index.js +20 -0
  567. package/dist/forms/index.js.map +1 -0
  568. package/dist/forms/notify.d.ts +80 -0
  569. package/dist/forms/notify.d.ts.map +1 -0
  570. package/dist/forms/notify.js +357 -0
  571. package/dist/forms/notify.js.map +1 -0
  572. package/dist/forms/prefetch.d.ts +17 -0
  573. package/dist/forms/prefetch.d.ts.map +1 -0
  574. package/dist/forms/prefetch.js +36 -0
  575. package/dist/forms/prefetch.js.map +1 -0
  576. package/dist/forms/public-html.d.ts +22 -0
  577. package/dist/forms/public-html.d.ts.map +1 -0
  578. package/dist/forms/public-html.js +145 -0
  579. package/dist/forms/public-html.js.map +1 -0
  580. package/dist/forms/service.d.ts +102 -0
  581. package/dist/forms/service.d.ts.map +1 -0
  582. package/dist/forms/service.js +625 -0
  583. package/dist/forms/service.js.map +1 -0
  584. package/dist/forms/spam.d.ts +33 -0
  585. package/dist/forms/spam.d.ts.map +1 -0
  586. package/dist/forms/spam.js +93 -0
  587. package/dist/forms/spam.js.map +1 -0
  588. package/dist/forms/submission.d.ts +132 -0
  589. package/dist/forms/submission.d.ts.map +1 -0
  590. package/dist/forms/submission.js +348 -0
  591. package/dist/forms/submission.js.map +1 -0
  592. package/dist/forms/types.d.ts +259 -0
  593. package/dist/forms/types.d.ts.map +1 -0
  594. package/dist/forms/types.js +20 -0
  595. package/dist/forms/types.js.map +1 -0
  596. package/dist/forms/validation.d.ts +19 -0
  597. package/dist/forms/validation.d.ts.map +1 -0
  598. package/dist/forms/validation.js +166 -0
  599. package/dist/forms/validation.js.map +1 -0
  600. package/dist/forms/webhooks.d.ts +60 -0
  601. package/dist/forms/webhooks.d.ts.map +1 -0
  602. package/dist/forms/webhooks.js +360 -0
  603. package/dist/forms/webhooks.js.map +1 -0
  604. package/dist/forms/webmcp.d.ts +36 -0
  605. package/dist/forms/webmcp.d.ts.map +1 -0
  606. package/dist/forms/webmcp.js +67 -0
  607. package/dist/forms/webmcp.js.map +1 -0
  608. package/dist/forms/xlsx.d.ts +10 -0
  609. package/dist/forms/xlsx.d.ts.map +1 -0
  610. package/dist/forms/xlsx.js +207 -0
  611. package/dist/forms/xlsx.js.map +1 -0
  612. package/dist/generated/browser.d.ts +220 -0
  613. package/dist/generated/browser.js +17 -0
  614. package/dist/generated/client.d.ts +239 -0
  615. package/dist/generated/client.js +34 -0
  616. package/dist/generated/commonInputTypes.d.ts +887 -0
  617. package/dist/generated/commonInputTypes.js +10 -0
  618. package/dist/generated/enums.d.ts +83 -0
  619. package/dist/generated/enums.js +81 -0
  620. package/dist/generated/internal/class.d.ts +517 -0
  621. package/dist/generated/internal/class.js +52 -0
  622. package/dist/generated/internal/prismaNamespace.d.ts +4184 -0
  623. package/dist/generated/internal/prismaNamespace.js +932 -0
  624. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +968 -0
  625. package/dist/generated/internal/prismaNamespaceBrowser.js +903 -0
  626. package/dist/generated/models/AiCrawlerHit.d.ts +1115 -0
  627. package/dist/generated/models/AiCrawlerHit.js +1 -0
  628. package/dist/generated/models/ApiKey.d.ts +1388 -0
  629. package/dist/generated/models/ApiKey.js +1 -0
  630. package/dist/generated/models/ApiRequestMetric.d.ts +1229 -0
  631. package/dist/generated/models/ApiRequestMetric.js +1 -0
  632. package/dist/generated/models/AuditLog.d.ts +1062 -0
  633. package/dist/generated/models/AuditLog.js +1 -0
  634. package/dist/generated/models/BackupRecord.d.ts +1100 -0
  635. package/dist/generated/models/BackupRecord.js +1 -0
  636. package/dist/generated/models/ContentIssue.d.ts +1318 -0
  637. package/dist/generated/models/ContentIssue.js +1 -0
  638. package/dist/generated/models/ContentLock.d.ts +1295 -0
  639. package/dist/generated/models/ContentLock.js +1 -0
  640. package/dist/generated/models/ContentTemplate.d.ts +1254 -0
  641. package/dist/generated/models/ContentTemplate.js +1 -0
  642. package/dist/generated/models/Document.d.ts +3443 -0
  643. package/dist/generated/models/Document.js +1 -0
  644. package/dist/generated/models/Folder.d.ts +1689 -0
  645. package/dist/generated/models/Folder.js +1 -0
  646. package/dist/generated/models/FormDeliveryAttempt.d.ts +1705 -0
  647. package/dist/generated/models/FormDeliveryAttempt.js +1 -0
  648. package/dist/generated/models/FormSchemaVersion.d.ts +1105 -0
  649. package/dist/generated/models/FormSchemaVersion.js +1 -0
  650. package/dist/generated/models/FormSubmission.d.ts +2125 -0
  651. package/dist/generated/models/FormSubmission.js +1 -0
  652. package/dist/generated/models/FormSubmissionFile.d.ts +1438 -0
  653. package/dist/generated/models/FormSubmissionFile.js +1 -0
  654. package/dist/generated/models/FormWebhook.d.ts +1271 -0
  655. package/dist/generated/models/FormWebhook.js +1 -0
  656. package/dist/generated/models/InAppNotification.d.ts +1295 -0
  657. package/dist/generated/models/InAppNotification.js +1 -0
  658. package/dist/generated/models/Invite.d.ts +1240 -0
  659. package/dist/generated/models/Invite.js +1 -0
  660. package/dist/generated/models/Media.d.ts +2759 -0
  661. package/dist/generated/models/Media.js +1 -0
  662. package/dist/generated/models/MediaUsage.d.ts +1301 -0
  663. package/dist/generated/models/MediaUsage.js +1 -0
  664. package/dist/generated/models/OAuthAccount.d.ts +1300 -0
  665. package/dist/generated/models/OAuthAccount.js +1 -0
  666. package/dist/generated/models/PageTemplate.d.ts +1118 -0
  667. package/dist/generated/models/PageTemplate.js +1 -0
  668. package/dist/generated/models/PasswordResetToken.d.ts +1225 -0
  669. package/dist/generated/models/PasswordResetToken.js +1 -0
  670. package/dist/generated/models/Redirect.d.ts +1342 -0
  671. package/dist/generated/models/Redirect.js +1 -0
  672. package/dist/generated/models/Redirect404Hit.d.ts +1107 -0
  673. package/dist/generated/models/Redirect404Hit.js +1 -0
  674. package/dist/generated/models/RedirectSuggestion.d.ts +1185 -0
  675. package/dist/generated/models/RedirectSuggestion.js +1 -0
  676. package/dist/generated/models/SavedSection.d.ts +1156 -0
  677. package/dist/generated/models/SavedSection.js +1 -0
  678. package/dist/generated/models/ScriptTag.d.ts +1291 -0
  679. package/dist/generated/models/ScriptTag.js +1 -0
  680. package/dist/generated/models/SeoAuditRun.d.ts +1570 -0
  681. package/dist/generated/models/SeoAuditRun.js +1 -0
  682. package/dist/generated/models/SeoIssue.d.ts +1873 -0
  683. package/dist/generated/models/SeoIssue.js +1 -0
  684. package/dist/generated/models/Session.d.ts +1330 -0
  685. package/dist/generated/models/Session.js +1 -0
  686. package/dist/generated/models/Site.d.ts +1062 -0
  687. package/dist/generated/models/Site.js +1 -0
  688. package/dist/generated/models/User.d.ts +4344 -0
  689. package/dist/generated/models/User.js +1 -0
  690. package/dist/generated/models/Version.d.ts +1334 -0
  691. package/dist/generated/models/Version.js +1 -0
  692. package/dist/generated/models/WebhookDeliveryLog.d.ts +1479 -0
  693. package/dist/generated/models/WebhookDeliveryLog.js +1 -0
  694. package/dist/generated/models/WebhookEndpoint.d.ts +1331 -0
  695. package/dist/generated/models/WebhookEndpoint.js +1 -0
  696. package/dist/generated/models/WorkflowState.d.ts +1436 -0
  697. package/dist/generated/models/WorkflowState.js +1 -0
  698. package/dist/generated/models.d.ts +37 -0
  699. package/dist/generated/models.js +1 -0
  700. package/dist/graphql/index.d.ts +11 -0
  701. package/dist/graphql/index.d.ts.map +1 -0
  702. package/dist/graphql/index.js +74 -0
  703. package/dist/graphql/index.js.map +1 -0
  704. package/dist/graphql/resolvers.d.ts +8 -0
  705. package/dist/graphql/resolvers.d.ts.map +1 -0
  706. package/dist/graphql/resolvers.js +89 -0
  707. package/dist/graphql/resolvers.js.map +1 -0
  708. package/dist/graphql/schema-builder.d.ts +3 -0
  709. package/dist/graphql/schema-builder.d.ts.map +1 -0
  710. package/dist/graphql/schema-builder.js +103 -0
  711. package/dist/graphql/schema-builder.js.map +1 -0
  712. package/dist/health/index.d.ts +27 -0
  713. package/dist/health/index.d.ts.map +1 -0
  714. package/dist/health/index.js +43 -0
  715. package/dist/health/index.js.map +1 -0
  716. package/dist/i18n/index.d.ts +22 -0
  717. package/dist/i18n/index.d.ts.map +1 -0
  718. package/dist/i18n/index.js +37 -0
  719. package/dist/i18n/index.js.map +1 -0
  720. package/dist/index.d.ts +125 -0
  721. package/dist/index.d.ts.map +1 -0
  722. package/dist/index.js +132 -0
  723. package/dist/index.js.map +1 -0
  724. package/dist/media/content-hash.d.ts +3 -0
  725. package/dist/media/content-hash.d.ts.map +1 -0
  726. package/dist/media/content-hash.js +11 -0
  727. package/dist/media/content-hash.js.map +1 -0
  728. package/dist/media/denormalize.d.ts +23 -0
  729. package/dist/media/denormalize.d.ts.map +1 -0
  730. package/dist/media/denormalize.js +170 -0
  731. package/dist/media/denormalize.js.map +1 -0
  732. package/dist/media/index.d.ts +8 -0
  733. package/dist/media/index.d.ts.map +1 -0
  734. package/dist/media/index.js +5 -0
  735. package/dist/media/index.js.map +1 -0
  736. package/dist/media/merge-document-media.d.ts +23 -0
  737. package/dist/media/merge-document-media.d.ts.map +1 -0
  738. package/dist/media/merge-document-media.js +146 -0
  739. package/dist/media/merge-document-media.js.map +1 -0
  740. package/dist/media/metadata-patch.d.ts +21 -0
  741. package/dist/media/metadata-patch.d.ts.map +1 -0
  742. package/dist/media/metadata-patch.js +37 -0
  743. package/dist/media/metadata-patch.js.map +1 -0
  744. package/dist/media/optimize.d.ts +61 -0
  745. package/dist/media/optimize.d.ts.map +1 -0
  746. package/dist/media/optimize.js +168 -0
  747. package/dist/media/optimize.js.map +1 -0
  748. package/dist/media/seo.d.ts +110 -0
  749. package/dist/media/seo.d.ts.map +1 -0
  750. package/dist/media/seo.js +263 -0
  751. package/dist/media/seo.js.map +1 -0
  752. package/dist/media/usage-sync.d.ts +37 -0
  753. package/dist/media/usage-sync.d.ts.map +1 -0
  754. package/dist/media/usage-sync.js +234 -0
  755. package/dist/media/usage-sync.js.map +1 -0
  756. package/dist/middleware.d.ts +17 -0
  757. package/dist/middleware.d.ts.map +1 -0
  758. package/dist/middleware.js +159 -0
  759. package/dist/middleware.js.map +1 -0
  760. package/dist/multisite/index.d.ts +20 -0
  761. package/dist/multisite/index.d.ts.map +1 -0
  762. package/dist/multisite/index.js +26 -0
  763. package/dist/multisite/index.js.map +1 -0
  764. package/dist/navigation/unresolved-targets.d.ts +35 -0
  765. package/dist/navigation/unresolved-targets.d.ts.map +1 -0
  766. package/dist/navigation/unresolved-targets.js +109 -0
  767. package/dist/navigation/unresolved-targets.js.map +1 -0
  768. package/dist/next/preview.d.ts +10 -0
  769. package/dist/next/preview.d.ts.map +1 -0
  770. package/dist/next/preview.js +17 -0
  771. package/dist/next/preview.js.map +1 -0
  772. package/dist/next/script-tags.d.ts +15 -0
  773. package/dist/next/script-tags.d.ts.map +1 -0
  774. package/dist/next/script-tags.js +58 -0
  775. package/dist/next/script-tags.js.map +1 -0
  776. package/dist/next-site.d.ts +29 -0
  777. package/dist/next-site.d.ts.map +1 -0
  778. package/dist/next-site.js +60 -0
  779. package/dist/next-site.js.map +1 -0
  780. package/dist/next.d.ts +33 -0
  781. package/dist/next.d.ts.map +1 -0
  782. package/dist/next.js +142 -0
  783. package/dist/next.js.map +1 -0
  784. package/dist/notifications/index.d.ts +20 -0
  785. package/dist/notifications/index.d.ts.map +1 -0
  786. package/dist/notifications/index.js +22 -0
  787. package/dist/notifications/index.js.map +1 -0
  788. package/dist/page-builder/a11y-fix.d.ts +20 -0
  789. package/dist/page-builder/a11y-fix.d.ts.map +1 -0
  790. package/dist/page-builder/a11y-fix.js +182 -0
  791. package/dist/page-builder/a11y-fix.js.map +1 -0
  792. package/dist/page-builder/ai-pipeline.d.ts +43 -0
  793. package/dist/page-builder/ai-pipeline.d.ts.map +1 -0
  794. package/dist/page-builder/ai-pipeline.js +165 -0
  795. package/dist/page-builder/ai-pipeline.js.map +1 -0
  796. package/dist/page-builder/blocks.d.ts +27 -0
  797. package/dist/page-builder/blocks.d.ts.map +1 -0
  798. package/dist/page-builder/blocks.js +313 -0
  799. package/dist/page-builder/blocks.js.map +1 -0
  800. package/dist/page-builder/design-scorer.d.ts +27 -0
  801. package/dist/page-builder/design-scorer.d.ts.map +1 -0
  802. package/dist/page-builder/design-scorer.js +612 -0
  803. package/dist/page-builder/design-scorer.js.map +1 -0
  804. package/dist/page-builder/index.d.ts +18 -0
  805. package/dist/page-builder/index.d.ts.map +1 -0
  806. package/dist/page-builder/index.js +20 -0
  807. package/dist/page-builder/index.js.map +1 -0
  808. package/dist/page-builder/schema.d.ts +107 -0
  809. package/dist/page-builder/schema.d.ts.map +1 -0
  810. package/dist/page-builder/schema.js +90 -0
  811. package/dist/page-builder/schema.js.map +1 -0
  812. package/dist/page-builder/seo-analyzer.d.ts +61 -0
  813. package/dist/page-builder/seo-analyzer.d.ts.map +1 -0
  814. package/dist/page-builder/seo-analyzer.js +778 -0
  815. package/dist/page-builder/seo-analyzer.js.map +1 -0
  816. package/dist/page-builder/templates.d.ts +9 -0
  817. package/dist/page-builder/templates.d.ts.map +1 -0
  818. package/dist/page-builder/templates.js +742 -0
  819. package/dist/page-builder/templates.js.map +1 -0
  820. package/dist/page-builder/tree.d.ts +17 -0
  821. package/dist/page-builder/tree.d.ts.map +1 -0
  822. package/dist/page-builder/tree.js +160 -0
  823. package/dist/page-builder/tree.js.map +1 -0
  824. package/dist/page-builder/types.d.ts +112 -0
  825. package/dist/page-builder/types.d.ts.map +1 -0
  826. package/dist/page-builder/types.js +4 -0
  827. package/dist/page-builder/types.js.map +1 -0
  828. package/dist/page-builder/validate.d.ts +6 -0
  829. package/dist/page-builder/validate.d.ts.map +1 -0
  830. package/dist/page-builder/validate.js +87 -0
  831. package/dist/page-builder/validate.js.map +1 -0
  832. package/dist/plan/features.d.ts +17 -0
  833. package/dist/plan/features.d.ts.map +1 -0
  834. package/dist/plan/features.js +73 -0
  835. package/dist/plan/features.js.map +1 -0
  836. package/dist/posts/query.d.ts +50 -0
  837. package/dist/posts/query.d.ts.map +1 -0
  838. package/dist/posts/query.js +105 -0
  839. package/dist/posts/query.js.map +1 -0
  840. package/dist/presence/index.d.ts +24 -0
  841. package/dist/presence/index.d.ts.map +1 -0
  842. package/dist/presence/index.js +99 -0
  843. package/dist/presence/index.js.map +1 -0
  844. package/dist/preview/event-bus.d.ts +39 -0
  845. package/dist/preview/event-bus.d.ts.map +1 -0
  846. package/dist/preview/event-bus.js +73 -0
  847. package/dist/preview/event-bus.js.map +1 -0
  848. package/dist/preview/index.d.ts +36 -0
  849. package/dist/preview/index.d.ts.map +1 -0
  850. package/dist/preview/index.js +68 -0
  851. package/dist/preview/index.js.map +1 -0
  852. package/dist/preview/sse-stream.d.ts +47 -0
  853. package/dist/preview/sse-stream.d.ts.map +1 -0
  854. package/dist/preview/sse-stream.js +111 -0
  855. package/dist/preview/sse-stream.js.map +1 -0
  856. package/dist/privacy/index.d.ts +33 -0
  857. package/dist/privacy/index.d.ts.map +1 -0
  858. package/dist/privacy/index.js +15 -0
  859. package/dist/privacy/index.js.map +1 -0
  860. package/dist/public-redirects.d.ts +78 -0
  861. package/dist/public-redirects.d.ts.map +1 -0
  862. package/dist/public-redirects.js +187 -0
  863. package/dist/public-redirects.js.map +1 -0
  864. package/dist/public-security-headers.d.ts +27 -0
  865. package/dist/public-security-headers.d.ts.map +1 -0
  866. package/dist/public-security-headers.js +40 -0
  867. package/dist/public-security-headers.js.map +1 -0
  868. package/dist/publishing/publish-sync.d.ts +50 -0
  869. package/dist/publishing/publish-sync.d.ts.map +1 -0
  870. package/dist/publishing/publish-sync.js +124 -0
  871. package/dist/publishing/publish-sync.js.map +1 -0
  872. package/dist/purge/adapters.d.ts +60 -0
  873. package/dist/purge/adapters.d.ts.map +1 -0
  874. package/dist/purge/adapters.js +81 -0
  875. package/dist/purge/adapters.js.map +1 -0
  876. package/dist/purge/index.d.ts +12 -0
  877. package/dist/purge/index.d.ts.map +1 -0
  878. package/dist/purge/index.js +10 -0
  879. package/dist/purge/index.js.map +1 -0
  880. package/dist/purge/receiver.d.ts +95 -0
  881. package/dist/purge/receiver.d.ts.map +1 -0
  882. package/dist/purge/receiver.js +176 -0
  883. package/dist/purge/receiver.js.map +1 -0
  884. package/dist/realtime/comments.d.ts +217 -0
  885. package/dist/realtime/comments.d.ts.map +1 -0
  886. package/dist/realtime/comments.js +282 -0
  887. package/dist/realtime/comments.js.map +1 -0
  888. package/dist/realtime/gateway.d.ts +107 -0
  889. package/dist/realtime/gateway.d.ts.map +1 -0
  890. package/dist/realtime/gateway.js +215 -0
  891. package/dist/realtime/gateway.js.map +1 -0
  892. package/dist/realtime/index.d.ts +21 -0
  893. package/dist/realtime/index.d.ts.map +1 -0
  894. package/dist/realtime/index.js +27 -0
  895. package/dist/realtime/index.js.map +1 -0
  896. package/dist/realtime/notification-bus.d.ts +60 -0
  897. package/dist/realtime/notification-bus.d.ts.map +1 -0
  898. package/dist/realtime/notification-bus.js +77 -0
  899. package/dist/realtime/notification-bus.js.map +1 -0
  900. package/dist/realtime/notification-stream.d.ts +50 -0
  901. package/dist/realtime/notification-stream.d.ts.map +1 -0
  902. package/dist/realtime/notification-stream.js +148 -0
  903. package/dist/realtime/notification-stream.js.map +1 -0
  904. package/dist/realtime/notifications.d.ts +201 -0
  905. package/dist/realtime/notifications.d.ts.map +1 -0
  906. package/dist/realtime/notifications.js +233 -0
  907. package/dist/realtime/notifications.js.map +1 -0
  908. package/dist/realtime/persistence.d.ts +72 -0
  909. package/dist/realtime/persistence.d.ts.map +1 -0
  910. package/dist/realtime/persistence.js +53 -0
  911. package/dist/realtime/persistence.js.map +1 -0
  912. package/dist/realtime/sse.d.ts +20 -0
  913. package/dist/realtime/sse.d.ts.map +1 -0
  914. package/dist/realtime/sse.js +31 -0
  915. package/dist/realtime/sse.js.map +1 -0
  916. package/dist/redirects/auto.d.ts +45 -0
  917. package/dist/redirects/auto.d.ts.map +1 -0
  918. package/dist/redirects/auto.js +60 -0
  919. package/dist/redirects/auto.js.map +1 -0
  920. package/dist/redirects/fix-link.d.ts +15 -0
  921. package/dist/redirects/fix-link.d.ts.map +1 -0
  922. package/dist/redirects/fix-link.js +66 -0
  923. package/dist/redirects/fix-link.js.map +1 -0
  924. package/dist/redirects/graph.d.ts +92 -0
  925. package/dist/redirects/graph.d.ts.map +1 -0
  926. package/dist/redirects/graph.js +176 -0
  927. package/dist/redirects/graph.js.map +1 -0
  928. package/dist/redirects/index.d.ts +17 -0
  929. package/dist/redirects/index.d.ts.map +1 -0
  930. package/dist/redirects/index.js +10 -0
  931. package/dist/redirects/index.js.map +1 -0
  932. package/dist/redirects/legitimacy.d.ts +23 -0
  933. package/dist/redirects/legitimacy.d.ts.map +1 -0
  934. package/dist/redirects/legitimacy.js +64 -0
  935. package/dist/redirects/legitimacy.js.map +1 -0
  936. package/dist/redirects/recovery.d.ts +92 -0
  937. package/dist/redirects/recovery.d.ts.map +1 -0
  938. package/dist/redirects/recovery.js +210 -0
  939. package/dist/redirects/recovery.js.map +1 -0
  940. package/dist/redirects/rerank.d.ts +24 -0
  941. package/dist/redirects/rerank.d.ts.map +1 -0
  942. package/dist/redirects/rerank.js +82 -0
  943. package/dist/redirects/rerank.js.map +1 -0
  944. package/dist/redirects/suggest.d.ts +23 -0
  945. package/dist/redirects/suggest.d.ts.map +1 -0
  946. package/dist/redirects/suggest.js +80 -0
  947. package/dist/redirects/suggest.js.map +1 -0
  948. package/dist/redirects/typo.d.ts +10 -0
  949. package/dist/redirects/typo.d.ts.map +1 -0
  950. package/dist/redirects/typo.js +51 -0
  951. package/dist/redirects/typo.js.map +1 -0
  952. package/dist/redirects/validate-destination.d.ts +13 -0
  953. package/dist/redirects/validate-destination.d.ts.map +1 -0
  954. package/dist/redirects/validate-destination.js +51 -0
  955. package/dist/redirects/validate-destination.js.map +1 -0
  956. package/dist/relationships/index.d.ts +13 -0
  957. package/dist/relationships/index.d.ts.map +1 -0
  958. package/dist/relationships/index.js +12 -0
  959. package/dist/relationships/index.js.map +1 -0
  960. package/dist/scheduling/index.d.ts +45 -0
  961. package/dist/scheduling/index.d.ts.map +1 -0
  962. package/dist/scheduling/index.js +141 -0
  963. package/dist/scheduling/index.js.map +1 -0
  964. package/dist/script-tags/index.d.ts +3 -0
  965. package/dist/script-tags/index.d.ts.map +1 -0
  966. package/dist/script-tags/index.js +3 -0
  967. package/dist/script-tags/index.js.map +1 -0
  968. package/dist/script-tags/invalidate.d.ts +3 -0
  969. package/dist/script-tags/invalidate.d.ts.map +1 -0
  970. package/dist/script-tags/invalidate.js +16 -0
  971. package/dist/script-tags/invalidate.js.map +1 -0
  972. package/dist/script-tags/resolve.d.ts +41 -0
  973. package/dist/script-tags/resolve.d.ts.map +1 -0
  974. package/dist/script-tags/resolve.js +130 -0
  975. package/dist/script-tags/resolve.js.map +1 -0
  976. package/dist/search/index.d.ts +25 -0
  977. package/dist/search/index.d.ts.map +1 -0
  978. package/dist/search/index.js +189 -0
  979. package/dist/search/index.js.map +1 -0
  980. package/dist/sections/bridge.d.ts +8 -0
  981. package/dist/sections/bridge.d.ts.map +1 -0
  982. package/dist/sections/bridge.js +211 -0
  983. package/dist/sections/bridge.js.map +1 -0
  984. package/dist/sections/define.d.ts +21 -0
  985. package/dist/sections/define.d.ts.map +1 -0
  986. package/dist/sections/define.js +160 -0
  987. package/dist/sections/define.js.map +1 -0
  988. package/dist/sections/embed.d.ts +24 -0
  989. package/dist/sections/embed.d.ts.map +1 -0
  990. package/dist/sections/embed.js +78 -0
  991. package/dist/sections/embed.js.map +1 -0
  992. package/dist/sections/fields.d.ts +37 -0
  993. package/dist/sections/fields.d.ts.map +1 -0
  994. package/dist/sections/fields.js +50 -0
  995. package/dist/sections/fields.js.map +1 -0
  996. package/dist/sections/helpers.d.ts +149 -0
  997. package/dist/sections/helpers.d.ts.map +1 -0
  998. package/dist/sections/helpers.js +373 -0
  999. package/dist/sections/helpers.js.map +1 -0
  1000. package/dist/sections/index.d.ts +22 -0
  1001. package/dist/sections/index.d.ts.map +1 -0
  1002. package/dist/sections/index.js +18 -0
  1003. package/dist/sections/index.js.map +1 -0
  1004. package/dist/sections/media-enrich.d.ts +45 -0
  1005. package/dist/sections/media-enrich.d.ts.map +1 -0
  1006. package/dist/sections/media-enrich.js +137 -0
  1007. package/dist/sections/media-enrich.js.map +1 -0
  1008. package/dist/sections/migrate.d.ts +42 -0
  1009. package/dist/sections/migrate.d.ts.map +1 -0
  1010. package/dist/sections/migrate.js +66 -0
  1011. package/dist/sections/migrate.js.map +1 -0
  1012. package/dist/sections/registry.d.ts +46 -0
  1013. package/dist/sections/registry.d.ts.map +1 -0
  1014. package/dist/sections/registry.js +598 -0
  1015. package/dist/sections/registry.js.map +1 -0
  1016. package/dist/sections/types.d.ts +192 -0
  1017. package/dist/sections/types.d.ts.map +1 -0
  1018. package/dist/sections/types.js +21 -0
  1019. package/dist/sections/types.js.map +1 -0
  1020. package/dist/sections/validate.d.ts +12 -0
  1021. package/dist/sections/validate.d.ts.map +1 -0
  1022. package/dist/sections/validate.js +186 -0
  1023. package/dist/sections/validate.js.map +1 -0
  1024. package/dist/sections/widget-embed.d.ts +45 -0
  1025. package/dist/sections/widget-embed.d.ts.map +1 -0
  1026. package/dist/sections/widget-embed.js +129 -0
  1027. package/dist/sections/widget-embed.js.map +1 -0
  1028. package/dist/security/access.d.ts +35 -0
  1029. package/dist/security/access.d.ts.map +1 -0
  1030. package/dist/security/access.js +133 -0
  1031. package/dist/security/access.js.map +1 -0
  1032. package/dist/security/anomaly-detection.d.ts +17 -0
  1033. package/dist/security/anomaly-detection.d.ts.map +1 -0
  1034. package/dist/security/anomaly-detection.js +39 -0
  1035. package/dist/security/anomaly-detection.js.map +1 -0
  1036. package/dist/security/api-key-enhanced.d.ts +68 -0
  1037. package/dist/security/api-key-enhanced.d.ts.map +1 -0
  1038. package/dist/security/api-key-enhanced.js +76 -0
  1039. package/dist/security/api-key-enhanced.js.map +1 -0
  1040. package/dist/security/audit.d.ts +46 -0
  1041. package/dist/security/audit.d.ts.map +1 -0
  1042. package/dist/security/audit.js +67 -0
  1043. package/dist/security/audit.js.map +1 -0
  1044. package/dist/security/breach-check.d.ts +3 -0
  1045. package/dist/security/breach-check.d.ts.map +1 -0
  1046. package/dist/security/breach-check.js +27 -0
  1047. package/dist/security/breach-check.js.map +1 -0
  1048. package/dist/security/captcha.d.ts +67 -0
  1049. package/dist/security/captcha.d.ts.map +1 -0
  1050. package/dist/security/captcha.js +186 -0
  1051. package/dist/security/captcha.js.map +1 -0
  1052. package/dist/security/center/gather.d.ts +20 -0
  1053. package/dist/security/center/gather.d.ts.map +1 -0
  1054. package/dist/security/center/gather.js +240 -0
  1055. package/dist/security/center/gather.js.map +1 -0
  1056. package/dist/security/center/index.d.ts +13 -0
  1057. package/dist/security/center/index.d.ts.map +1 -0
  1058. package/dist/security/center/index.js +4 -0
  1059. package/dist/security/center/index.js.map +1 -0
  1060. package/dist/security/center/settings.d.ts +48 -0
  1061. package/dist/security/center/settings.d.ts.map +1 -0
  1062. package/dist/security/center/settings.js +218 -0
  1063. package/dist/security/center/settings.js.map +1 -0
  1064. package/dist/security/center/status.d.ts +10 -0
  1065. package/dist/security/center/status.d.ts.map +1 -0
  1066. package/dist/security/center/status.js +249 -0
  1067. package/dist/security/center/status.js.map +1 -0
  1068. package/dist/security/center/summaries.d.ts +21 -0
  1069. package/dist/security/center/summaries.d.ts.map +1 -0
  1070. package/dist/security/center/summaries.js +65 -0
  1071. package/dist/security/center/summaries.js.map +1 -0
  1072. package/dist/security/center/types.d.ts +142 -0
  1073. package/dist/security/center/types.d.ts.map +1 -0
  1074. package/dist/security/center/types.js +12 -0
  1075. package/dist/security/center/types.js.map +1 -0
  1076. package/dist/security/client-ip.d.ts +23 -0
  1077. package/dist/security/client-ip.d.ts.map +1 -0
  1078. package/dist/security/client-ip.js +97 -0
  1079. package/dist/security/client-ip.js.map +1 -0
  1080. package/dist/security/cors.d.ts +11 -0
  1081. package/dist/security/cors.d.ts.map +1 -0
  1082. package/dist/security/cors.js +33 -0
  1083. package/dist/security/cors.js.map +1 -0
  1084. package/dist/security/csp-nonces.d.ts +5 -0
  1085. package/dist/security/csp-nonces.d.ts.map +1 -0
  1086. package/dist/security/csp-nonces.js +24 -0
  1087. package/dist/security/csp-nonces.js.map +1 -0
  1088. package/dist/security/csrf.d.ts +5 -0
  1089. package/dist/security/csrf.d.ts.map +1 -0
  1090. package/dist/security/csrf.js +20 -0
  1091. package/dist/security/csrf.js.map +1 -0
  1092. package/dist/security/encrypted-fields.d.ts +14 -0
  1093. package/dist/security/encrypted-fields.d.ts.map +1 -0
  1094. package/dist/security/encrypted-fields.js +94 -0
  1095. package/dist/security/encrypted-fields.js.map +1 -0
  1096. package/dist/security/headers.d.ts +11 -0
  1097. package/dist/security/headers.d.ts.map +1 -0
  1098. package/dist/security/headers.js +32 -0
  1099. package/dist/security/headers.js.map +1 -0
  1100. package/dist/security/index.d.ts +40 -0
  1101. package/dist/security/index.d.ts.map +1 -0
  1102. package/dist/security/index.js +26 -0
  1103. package/dist/security/index.js.map +1 -0
  1104. package/dist/security/internal-keys.d.ts +15 -0
  1105. package/dist/security/internal-keys.d.ts.map +1 -0
  1106. package/dist/security/internal-keys.js +33 -0
  1107. package/dist/security/internal-keys.js.map +1 -0
  1108. package/dist/security/ip-allowlist.d.ts +15 -0
  1109. package/dist/security/ip-allowlist.d.ts.map +1 -0
  1110. package/dist/security/ip-allowlist.js +141 -0
  1111. package/dist/security/ip-allowlist.js.map +1 -0
  1112. package/dist/security/ip-canon.d.ts +71 -0
  1113. package/dist/security/ip-canon.d.ts.map +1 -0
  1114. package/dist/security/ip-canon.js +352 -0
  1115. package/dist/security/ip-canon.js.map +1 -0
  1116. package/dist/security/middleware.d.ts +20 -0
  1117. package/dist/security/middleware.d.ts.map +1 -0
  1118. package/dist/security/middleware.js +45 -0
  1119. package/dist/security/middleware.js.map +1 -0
  1120. package/dist/security/rate-limit-policy.d.ts +40 -0
  1121. package/dist/security/rate-limit-policy.d.ts.map +1 -0
  1122. package/dist/security/rate-limit-policy.js +57 -0
  1123. package/dist/security/rate-limit-policy.js.map +1 -0
  1124. package/dist/security/rate-limit.d.ts +55 -0
  1125. package/dist/security/rate-limit.d.ts.map +1 -0
  1126. package/dist/security/rate-limit.js +298 -0
  1127. package/dist/security/rate-limit.js.map +1 -0
  1128. package/dist/security/reauth.d.ts +16 -0
  1129. package/dist/security/reauth.d.ts.map +1 -0
  1130. package/dist/security/reauth.js +56 -0
  1131. package/dist/security/reauth.js.map +1 -0
  1132. package/dist/security/redact.d.ts +12 -0
  1133. package/dist/security/redact.d.ts.map +1 -0
  1134. package/dist/security/redact.js +44 -0
  1135. package/dist/security/redact.js.map +1 -0
  1136. package/dist/security/safe-fetch.d.ts +57 -0
  1137. package/dist/security/safe-fetch.d.ts.map +1 -0
  1138. package/dist/security/safe-fetch.js +71 -0
  1139. package/dist/security/safe-fetch.js.map +1 -0
  1140. package/dist/security/sanitize-document.d.ts +14 -0
  1141. package/dist/security/sanitize-document.d.ts.map +1 -0
  1142. package/dist/security/sanitize-document.js +117 -0
  1143. package/dist/security/sanitize-document.js.map +1 -0
  1144. package/dist/security/sanitize.d.ts +13 -0
  1145. package/dist/security/sanitize.d.ts.map +1 -0
  1146. package/dist/security/sanitize.js +64 -0
  1147. package/dist/security/sanitize.js.map +1 -0
  1148. package/dist/security/secret-storage.d.ts +22 -0
  1149. package/dist/security/secret-storage.d.ts.map +1 -0
  1150. package/dist/security/secret-storage.js +75 -0
  1151. package/dist/security/secret-storage.js.map +1 -0
  1152. package/dist/security/security-txt.d.ts +12 -0
  1153. package/dist/security/security-txt.d.ts.map +1 -0
  1154. package/dist/security/security-txt.js +19 -0
  1155. package/dist/security/security-txt.js.map +1 -0
  1156. package/dist/security/session-limits.d.ts +17 -0
  1157. package/dist/security/session-limits.d.ts.map +1 -0
  1158. package/dist/security/session-limits.js +14 -0
  1159. package/dist/security/session-limits.js.map +1 -0
  1160. package/dist/security/upload.d.ts +32 -0
  1161. package/dist/security/upload.d.ts.map +1 -0
  1162. package/dist/security/upload.js +129 -0
  1163. package/dist/security/upload.js.map +1 -0
  1164. package/dist/security/webhook.d.ts +30 -0
  1165. package/dist/security/webhook.d.ts.map +1 -0
  1166. package/dist/security/webhook.js +133 -0
  1167. package/dist/security/webhook.js.map +1 -0
  1168. package/dist/seo/ai-bots.d.ts +56 -0
  1169. package/dist/seo/ai-bots.d.ts.map +1 -0
  1170. package/dist/seo/ai-bots.js +125 -0
  1171. package/dist/seo/ai-bots.js.map +1 -0
  1172. package/dist/seo/ai-crawler-log.d.ts +14 -0
  1173. package/dist/seo/ai-crawler-log.d.ts.map +1 -0
  1174. package/dist/seo/ai-crawler-log.js +48 -0
  1175. package/dist/seo/ai-crawler-log.js.map +1 -0
  1176. package/dist/seo/alt-text.d.ts +39 -0
  1177. package/dist/seo/alt-text.d.ts.map +1 -0
  1178. package/dist/seo/alt-text.js +67 -0
  1179. package/dist/seo/alt-text.js.map +1 -0
  1180. package/dist/seo/analysis.d.ts +75 -0
  1181. package/dist/seo/analysis.d.ts.map +1 -0
  1182. package/dist/seo/analysis.js +641 -0
  1183. package/dist/seo/analysis.js.map +1 -0
  1184. package/dist/seo/audit-engine.d.ts +124 -0
  1185. package/dist/seo/audit-engine.d.ts.map +1 -0
  1186. package/dist/seo/audit-engine.js +534 -0
  1187. package/dist/seo/audit-engine.js.map +1 -0
  1188. package/dist/seo/audit-runner.d.ts +84 -0
  1189. package/dist/seo/audit-runner.d.ts.map +1 -0
  1190. package/dist/seo/audit-runner.js +372 -0
  1191. package/dist/seo/audit-runner.js.map +1 -0
  1192. package/dist/seo/audit-signals.d.ts +28 -0
  1193. package/dist/seo/audit-signals.d.ts.map +1 -0
  1194. package/dist/seo/audit-signals.js +133 -0
  1195. package/dist/seo/audit-signals.js.map +1 -0
  1196. package/dist/seo/config-store.d.ts +99 -0
  1197. package/dist/seo/config-store.d.ts.map +1 -0
  1198. package/dist/seo/config-store.js +194 -0
  1199. package/dist/seo/config-store.js.map +1 -0
  1200. package/dist/seo/confirm-broken-links.d.ts +48 -0
  1201. package/dist/seo/confirm-broken-links.d.ts.map +1 -0
  1202. package/dist/seo/confirm-broken-links.js +135 -0
  1203. package/dist/seo/confirm-broken-links.js.map +1 -0
  1204. package/dist/seo/content-markdown.d.ts +26 -0
  1205. package/dist/seo/content-markdown.d.ts.map +1 -0
  1206. package/dist/seo/content-markdown.js +235 -0
  1207. package/dist/seo/content-markdown.js.map +1 -0
  1208. package/dist/seo/document-content.d.ts +18 -0
  1209. package/dist/seo/document-content.d.ts.map +1 -0
  1210. package/dist/seo/document-content.js +80 -0
  1211. package/dist/seo/document-content.js.map +1 -0
  1212. package/dist/seo/document-path.d.ts +33 -0
  1213. package/dist/seo/document-path.d.ts.map +1 -0
  1214. package/dist/seo/document-path.js +44 -0
  1215. package/dist/seo/document-path.js.map +1 -0
  1216. package/dist/seo/feeds.d.ts +44 -0
  1217. package/dist/seo/feeds.d.ts.map +1 -0
  1218. package/dist/seo/feeds.js +95 -0
  1219. package/dist/seo/feeds.js.map +1 -0
  1220. package/dist/seo/fix-brief-export.d.ts +47 -0
  1221. package/dist/seo/fix-brief-export.d.ts.map +1 -0
  1222. package/dist/seo/fix-brief-export.js +224 -0
  1223. package/dist/seo/fix-brief-export.js.map +1 -0
  1224. package/dist/seo/index-status.d.ts +56 -0
  1225. package/dist/seo/index-status.d.ts.map +1 -0
  1226. package/dist/seo/index-status.js +193 -0
  1227. package/dist/seo/index-status.js.map +1 -0
  1228. package/dist/seo/index.d.ts +68 -0
  1229. package/dist/seo/index.d.ts.map +1 -0
  1230. package/dist/seo/index.js +36 -0
  1231. package/dist/seo/index.js.map +1 -0
  1232. package/dist/seo/issue-batch-briefs.d.ts +37 -0
  1233. package/dist/seo/issue-batch-briefs.d.ts.map +1 -0
  1234. package/dist/seo/issue-batch-briefs.js +85 -0
  1235. package/dist/seo/issue-batch-briefs.js.map +1 -0
  1236. package/dist/seo/issue-content-brief.d.ts +51 -0
  1237. package/dist/seo/issue-content-brief.d.ts.map +1 -0
  1238. package/dist/seo/issue-content-brief.js +267 -0
  1239. package/dist/seo/issue-content-brief.js.map +1 -0
  1240. package/dist/seo/issue-content-research.d.ts +51 -0
  1241. package/dist/seo/issue-content-research.d.ts.map +1 -0
  1242. package/dist/seo/issue-content-research.js +303 -0
  1243. package/dist/seo/issue-content-research.js.map +1 -0
  1244. package/dist/seo/issue-fix-ai.d.ts +39 -0
  1245. package/dist/seo/issue-fix-ai.d.ts.map +1 -0
  1246. package/dist/seo/issue-fix-ai.js +320 -0
  1247. package/dist/seo/issue-fix-ai.js.map +1 -0
  1248. package/dist/seo/issue-fix-redirect.d.ts +18 -0
  1249. package/dist/seo/issue-fix-redirect.d.ts.map +1 -0
  1250. package/dist/seo/issue-fix-redirect.js +153 -0
  1251. package/dist/seo/issue-fix-redirect.js.map +1 -0
  1252. package/dist/seo/issue-fix.d.ts +72 -0
  1253. package/dist/seo/issue-fix.d.ts.map +1 -0
  1254. package/dist/seo/issue-fix.js +266 -0
  1255. package/dist/seo/issue-fix.js.map +1 -0
  1256. package/dist/seo/link-graph.d.ts +54 -0
  1257. package/dist/seo/link-graph.d.ts.map +1 -0
  1258. package/dist/seo/link-graph.js +0 -0
  1259. package/dist/seo/link-graph.js.map +1 -0
  1260. package/dist/seo/link-probe.d.ts +49 -0
  1261. package/dist/seo/link-probe.d.ts.map +1 -0
  1262. package/dist/seo/link-probe.js +147 -0
  1263. package/dist/seo/link-probe.js.map +1 -0
  1264. package/dist/seo/llms-select.d.ts +34 -0
  1265. package/dist/seo/llms-select.d.ts.map +1 -0
  1266. package/dist/seo/llms-select.js +67 -0
  1267. package/dist/seo/llms-select.js.map +1 -0
  1268. package/dist/seo/llms-txt.d.ts +40 -0
  1269. package/dist/seo/llms-txt.d.ts.map +1 -0
  1270. package/dist/seo/llms-txt.js +177 -0
  1271. package/dist/seo/llms-txt.js.map +1 -0
  1272. package/dist/seo/meta-tags.d.ts +108 -0
  1273. package/dist/seo/meta-tags.d.ts.map +1 -0
  1274. package/dist/seo/meta-tags.js +353 -0
  1275. package/dist/seo/meta-tags.js.map +1 -0
  1276. package/dist/seo/migrate-meta.d.ts +23 -0
  1277. package/dist/seo/migrate-meta.d.ts.map +1 -0
  1278. package/dist/seo/migrate-meta.js +114 -0
  1279. package/dist/seo/migrate-meta.js.map +1 -0
  1280. package/dist/seo/migrate-schema.d.ts +28 -0
  1281. package/dist/seo/migrate-schema.d.ts.map +1 -0
  1282. package/dist/seo/migrate-schema.js +119 -0
  1283. package/dist/seo/migrate-schema.js.map +1 -0
  1284. package/dist/seo/page-meta.d.ts +179 -0
  1285. package/dist/seo/page-meta.d.ts.map +1 -0
  1286. package/dist/seo/page-meta.js +710 -0
  1287. package/dist/seo/page-meta.js.map +1 -0
  1288. package/dist/seo/public-site-url.d.ts +16 -0
  1289. package/dist/seo/public-site-url.d.ts.map +1 -0
  1290. package/dist/seo/public-site-url.js +39 -0
  1291. package/dist/seo/public-site-url.js.map +1 -0
  1292. package/dist/seo/resolve-path.d.ts +22 -0
  1293. package/dist/seo/resolve-path.d.ts.map +1 -0
  1294. package/dist/seo/resolve-path.js +53 -0
  1295. package/dist/seo/resolve-path.js.map +1 -0
  1296. package/dist/seo/rewrite-public-origin.d.ts +12 -0
  1297. package/dist/seo/rewrite-public-origin.d.ts.map +1 -0
  1298. package/dist/seo/rewrite-public-origin.js +17 -0
  1299. package/dist/seo/rewrite-public-origin.js.map +1 -0
  1300. package/dist/seo/robots.d.ts +45 -0
  1301. package/dist/seo/robots.d.ts.map +1 -0
  1302. package/dist/seo/robots.js +90 -0
  1303. package/dist/seo/robots.js.map +1 -0
  1304. package/dist/seo/schema-sync.d.ts +65 -0
  1305. package/dist/seo/schema-sync.d.ts.map +1 -0
  1306. package/dist/seo/schema-sync.js +163 -0
  1307. package/dist/seo/schema-sync.js.map +1 -0
  1308. package/dist/seo/score.d.ts +132 -0
  1309. package/dist/seo/score.d.ts.map +1 -0
  1310. package/dist/seo/score.js +216 -0
  1311. package/dist/seo/score.js.map +1 -0
  1312. package/dist/seo/serving-origin.d.ts +42 -0
  1313. package/dist/seo/serving-origin.d.ts.map +1 -0
  1314. package/dist/seo/serving-origin.js +83 -0
  1315. package/dist/seo/serving-origin.js.map +1 -0
  1316. package/dist/seo/site-identity.d.ts +60 -0
  1317. package/dist/seo/site-identity.d.ts.map +1 -0
  1318. package/dist/seo/site-identity.js +109 -0
  1319. package/dist/seo/site-identity.js.map +1 -0
  1320. package/dist/seo/sitemap-notify.d.ts +123 -0
  1321. package/dist/seo/sitemap-notify.d.ts.map +1 -0
  1322. package/dist/seo/sitemap-notify.js +270 -0
  1323. package/dist/seo/sitemap-notify.js.map +1 -0
  1324. package/dist/seo/sitemap-public.d.ts +43 -0
  1325. package/dist/seo/sitemap-public.d.ts.map +1 -0
  1326. package/dist/seo/sitemap-public.js +213 -0
  1327. package/dist/seo/sitemap-public.js.map +1 -0
  1328. package/dist/seo/title-templates.d.ts +80 -0
  1329. package/dist/seo/title-templates.d.ts.map +1 -0
  1330. package/dist/seo/title-templates.js +175 -0
  1331. package/dist/seo/title-templates.js.map +1 -0
  1332. package/dist/server-site.d.ts +55 -0
  1333. package/dist/server-site.d.ts.map +1 -0
  1334. package/dist/server-site.js +184 -0
  1335. package/dist/server-site.js.map +1 -0
  1336. package/dist/setup/index.d.ts +68 -0
  1337. package/dist/setup/index.d.ts.map +1 -0
  1338. package/dist/setup/index.js +153 -0
  1339. package/dist/setup/index.js.map +1 -0
  1340. package/dist/site.d.ts +178 -0
  1341. package/dist/site.d.ts.map +1 -0
  1342. package/dist/site.js +222 -0
  1343. package/dist/site.js.map +1 -0
  1344. package/dist/storage/auto-wire.d.ts +14 -0
  1345. package/dist/storage/auto-wire.d.ts.map +1 -0
  1346. package/dist/storage/auto-wire.js +60 -0
  1347. package/dist/storage/auto-wire.js.map +1 -0
  1348. package/dist/storage/index.d.ts +21 -0
  1349. package/dist/storage/index.d.ts.map +1 -0
  1350. package/dist/storage/index.js +14 -0
  1351. package/dist/storage/index.js.map +1 -0
  1352. package/dist/templates/index.d.ts +16 -0
  1353. package/dist/templates/index.d.ts.map +1 -0
  1354. package/dist/templates/index.js +23 -0
  1355. package/dist/templates/index.js.map +1 -0
  1356. package/dist/upgrade/changelog.d.ts +18 -0
  1357. package/dist/upgrade/changelog.d.ts.map +1 -0
  1358. package/dist/upgrade/changelog.js +60 -0
  1359. package/dist/upgrade/changelog.js.map +1 -0
  1360. package/dist/upgrade/index.d.ts +7 -0
  1361. package/dist/upgrade/index.d.ts.map +1 -0
  1362. package/dist/upgrade/index.js +4 -0
  1363. package/dist/upgrade/index.js.map +1 -0
  1364. package/dist/upgrade/upgrade-pr.d.ts +16 -0
  1365. package/dist/upgrade/upgrade-pr.d.ts.map +1 -0
  1366. package/dist/upgrade/upgrade-pr.js +128 -0
  1367. package/dist/upgrade/upgrade-pr.js.map +1 -0
  1368. package/dist/upgrade/version-check.d.ts +59 -0
  1369. package/dist/upgrade/version-check.d.ts.map +1 -0
  1370. package/dist/upgrade/version-check.js +142 -0
  1371. package/dist/upgrade/version-check.js.map +1 -0
  1372. package/dist/validation/publish.d.ts +53 -0
  1373. package/dist/validation/publish.d.ts.map +1 -0
  1374. package/dist/validation/publish.js +75 -0
  1375. package/dist/validation/publish.js.map +1 -0
  1376. package/dist/webhooks/index.d.ts +99 -0
  1377. package/dist/webhooks/index.d.ts.map +1 -0
  1378. package/dist/webhooks/index.js +387 -0
  1379. package/dist/webhooks/index.js.map +1 -0
  1380. package/dist/webhooks/signing.d.ts +68 -0
  1381. package/dist/webhooks/signing.d.ts.map +1 -0
  1382. package/dist/webhooks/signing.js +98 -0
  1383. package/dist/webhooks/signing.js.map +1 -0
  1384. package/dist/workflow/index.d.ts +8 -0
  1385. package/dist/workflow/index.d.ts.map +1 -0
  1386. package/dist/workflow/index.js +56 -0
  1387. package/dist/workflow/index.js.map +1 -0
  1388. package/dist/workflows/index.d.ts +30 -0
  1389. package/dist/workflows/index.d.ts.map +1 -0
  1390. package/dist/workflows/index.js +14 -0
  1391. package/dist/workflows/index.js.map +1 -0
  1392. package/package.json +250 -0
  1393. package/prisma/migrations/0001_init/migration.sql +941 -0
  1394. package/prisma/migrations/0002_media_usage_field_path/migration.sql +11 -0
  1395. package/prisma/migrations/0003_ai_crawler_hits/migration.sql +21 -0
  1396. package/prisma/migrations/0004_drop_search_vector/migration.sql +4 -0
  1397. package/prisma/migrations/0005_script_tag_delivery_controls/migration.sql +8 -0
  1398. package/prisma/migrations/0006_totp_last_step/migration.sql +4 -0
  1399. package/prisma/migrations/0007_workflow_fk_drop_dead_enums/migration.sql +27 -0
  1400. package/prisma/migrations/0008_form_delivery_attempts/migration.sql +29 -0
  1401. package/prisma/migrations/0009_webhook_secret_rotation/migration.sql +6 -0
  1402. package/prisma/migrations/0010_media_is_decorative/migration.sql +3 -0
  1403. package/prisma/migrations/0011_media_content_hash/migration.sql +4 -0
  1404. package/prisma/migrations/0012_rename_to_prenta/migration.sql +89 -0
  1405. package/prisma/migrations/migration_lock.toml +3 -0
  1406. package/prisma/schema.prisma +995 -0
  1407. package/prisma/seed.ts +82 -0
  1408. package/schema-fragments/cms-schema.prisma +526 -0
@@ -0,0 +1,4344 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model User
6
+ *
7
+ */
8
+ export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>;
9
+ export type AggregateUser = {
10
+ _count: UserCountAggregateOutputType | null;
11
+ _avg: UserAvgAggregateOutputType | null;
12
+ _sum: UserSumAggregateOutputType | null;
13
+ _min: UserMinAggregateOutputType | null;
14
+ _max: UserMaxAggregateOutputType | null;
15
+ };
16
+ export type UserAvgAggregateOutputType = {
17
+ lastTotpStep: number | null;
18
+ failedLoginCount: number | null;
19
+ };
20
+ export type UserSumAggregateOutputType = {
21
+ lastTotpStep: number | null;
22
+ failedLoginCount: number | null;
23
+ };
24
+ export type UserMinAggregateOutputType = {
25
+ id: string | null;
26
+ email: string | null;
27
+ name: string | null;
28
+ avatarUrl: string | null;
29
+ role: $Enums.UserRole | null;
30
+ passwordHash: string | null;
31
+ totpSecret: string | null;
32
+ totpEnabled: boolean | null;
33
+ lastTotpStep: number | null;
34
+ authProvider: string | null;
35
+ isActive: boolean | null;
36
+ isApproved: boolean | null;
37
+ emailVerified: boolean | null;
38
+ lastLoginAt: Date | null;
39
+ createdAt: Date | null;
40
+ updatedAt: Date | null;
41
+ suspendedAt: Date | null;
42
+ lockedAt: Date | null;
43
+ forcePasswordReset: boolean | null;
44
+ mfaRequired: boolean | null;
45
+ failedLoginCount: number | null;
46
+ lastActiveAt: Date | null;
47
+ invitedById: string | null;
48
+ acceptedInviteAt: Date | null;
49
+ };
50
+ export type UserMaxAggregateOutputType = {
51
+ id: string | null;
52
+ email: string | null;
53
+ name: string | null;
54
+ avatarUrl: string | null;
55
+ role: $Enums.UserRole | null;
56
+ passwordHash: string | null;
57
+ totpSecret: string | null;
58
+ totpEnabled: boolean | null;
59
+ lastTotpStep: number | null;
60
+ authProvider: string | null;
61
+ isActive: boolean | null;
62
+ isApproved: boolean | null;
63
+ emailVerified: boolean | null;
64
+ lastLoginAt: Date | null;
65
+ createdAt: Date | null;
66
+ updatedAt: Date | null;
67
+ suspendedAt: Date | null;
68
+ lockedAt: Date | null;
69
+ forcePasswordReset: boolean | null;
70
+ mfaRequired: boolean | null;
71
+ failedLoginCount: number | null;
72
+ lastActiveAt: Date | null;
73
+ invitedById: string | null;
74
+ acceptedInviteAt: Date | null;
75
+ };
76
+ export type UserCountAggregateOutputType = {
77
+ id: number;
78
+ email: number;
79
+ name: number;
80
+ avatarUrl: number;
81
+ role: number;
82
+ passwordHash: number;
83
+ totpSecret: number;
84
+ totpEnabled: number;
85
+ lastTotpStep: number;
86
+ backupCodes: number;
87
+ authProvider: number;
88
+ isActive: number;
89
+ isApproved: number;
90
+ emailVerified: number;
91
+ lastLoginAt: number;
92
+ createdAt: number;
93
+ updatedAt: number;
94
+ suspendedAt: number;
95
+ lockedAt: number;
96
+ forcePasswordReset: number;
97
+ mfaRequired: number;
98
+ failedLoginCount: number;
99
+ lastActiveAt: number;
100
+ invitedById: number;
101
+ acceptedInviteAt: number;
102
+ _all: number;
103
+ };
104
+ export type UserAvgAggregateInputType = {
105
+ lastTotpStep?: true;
106
+ failedLoginCount?: true;
107
+ };
108
+ export type UserSumAggregateInputType = {
109
+ lastTotpStep?: true;
110
+ failedLoginCount?: true;
111
+ };
112
+ export type UserMinAggregateInputType = {
113
+ id?: true;
114
+ email?: true;
115
+ name?: true;
116
+ avatarUrl?: true;
117
+ role?: true;
118
+ passwordHash?: true;
119
+ totpSecret?: true;
120
+ totpEnabled?: true;
121
+ lastTotpStep?: true;
122
+ authProvider?: true;
123
+ isActive?: true;
124
+ isApproved?: true;
125
+ emailVerified?: true;
126
+ lastLoginAt?: true;
127
+ createdAt?: true;
128
+ updatedAt?: true;
129
+ suspendedAt?: true;
130
+ lockedAt?: true;
131
+ forcePasswordReset?: true;
132
+ mfaRequired?: true;
133
+ failedLoginCount?: true;
134
+ lastActiveAt?: true;
135
+ invitedById?: true;
136
+ acceptedInviteAt?: true;
137
+ };
138
+ export type UserMaxAggregateInputType = {
139
+ id?: true;
140
+ email?: true;
141
+ name?: true;
142
+ avatarUrl?: true;
143
+ role?: true;
144
+ passwordHash?: true;
145
+ totpSecret?: true;
146
+ totpEnabled?: true;
147
+ lastTotpStep?: true;
148
+ authProvider?: true;
149
+ isActive?: true;
150
+ isApproved?: true;
151
+ emailVerified?: true;
152
+ lastLoginAt?: true;
153
+ createdAt?: true;
154
+ updatedAt?: true;
155
+ suspendedAt?: true;
156
+ lockedAt?: true;
157
+ forcePasswordReset?: true;
158
+ mfaRequired?: true;
159
+ failedLoginCount?: true;
160
+ lastActiveAt?: true;
161
+ invitedById?: true;
162
+ acceptedInviteAt?: true;
163
+ };
164
+ export type UserCountAggregateInputType = {
165
+ id?: true;
166
+ email?: true;
167
+ name?: true;
168
+ avatarUrl?: true;
169
+ role?: true;
170
+ passwordHash?: true;
171
+ totpSecret?: true;
172
+ totpEnabled?: true;
173
+ lastTotpStep?: true;
174
+ backupCodes?: true;
175
+ authProvider?: true;
176
+ isActive?: true;
177
+ isApproved?: true;
178
+ emailVerified?: true;
179
+ lastLoginAt?: true;
180
+ createdAt?: true;
181
+ updatedAt?: true;
182
+ suspendedAt?: true;
183
+ lockedAt?: true;
184
+ forcePasswordReset?: true;
185
+ mfaRequired?: true;
186
+ failedLoginCount?: true;
187
+ lastActiveAt?: true;
188
+ invitedById?: true;
189
+ acceptedInviteAt?: true;
190
+ _all?: true;
191
+ };
192
+ export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
193
+ /**
194
+ * Filter which User to aggregate.
195
+ */
196
+ where?: Prisma.UserWhereInput;
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
199
+ *
200
+ * Determine the order of Users to fetch.
201
+ */
202
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
203
+ /**
204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
205
+ *
206
+ * Sets the start position
207
+ */
208
+ cursor?: Prisma.UserWhereUniqueInput;
209
+ /**
210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
211
+ *
212
+ * Take `±n` Users from the position of the cursor.
213
+ */
214
+ take?: number;
215
+ /**
216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
217
+ *
218
+ * Skip the first `n` Users.
219
+ */
220
+ skip?: number;
221
+ /**
222
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
223
+ *
224
+ * Count returned Users
225
+ **/
226
+ _count?: true | UserCountAggregateInputType;
227
+ /**
228
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
229
+ *
230
+ * Select which fields to average
231
+ **/
232
+ _avg?: UserAvgAggregateInputType;
233
+ /**
234
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
235
+ *
236
+ * Select which fields to sum
237
+ **/
238
+ _sum?: UserSumAggregateInputType;
239
+ /**
240
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
241
+ *
242
+ * Select which fields to find the minimum value
243
+ **/
244
+ _min?: UserMinAggregateInputType;
245
+ /**
246
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
247
+ *
248
+ * Select which fields to find the maximum value
249
+ **/
250
+ _max?: UserMaxAggregateInputType;
251
+ };
252
+ export type GetUserAggregateType<T extends UserAggregateArgs> = {
253
+ [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateUser[P]> : Prisma.GetScalarType<T[P], AggregateUser[P]>;
254
+ };
255
+ export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
256
+ where?: Prisma.UserWhereInput;
257
+ orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[];
258
+ by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum;
259
+ having?: Prisma.UserScalarWhereWithAggregatesInput;
260
+ take?: number;
261
+ skip?: number;
262
+ _count?: UserCountAggregateInputType | true;
263
+ _avg?: UserAvgAggregateInputType;
264
+ _sum?: UserSumAggregateInputType;
265
+ _min?: UserMinAggregateInputType;
266
+ _max?: UserMaxAggregateInputType;
267
+ };
268
+ export type UserGroupByOutputType = {
269
+ id: string;
270
+ email: string;
271
+ name: string;
272
+ avatarUrl: string | null;
273
+ role: $Enums.UserRole;
274
+ passwordHash: string | null;
275
+ totpSecret: string | null;
276
+ totpEnabled: boolean;
277
+ lastTotpStep: number | null;
278
+ backupCodes: runtime.JsonValue | null;
279
+ authProvider: string | null;
280
+ isActive: boolean;
281
+ isApproved: boolean;
282
+ emailVerified: boolean;
283
+ lastLoginAt: Date | null;
284
+ createdAt: Date;
285
+ updatedAt: Date;
286
+ suspendedAt: Date | null;
287
+ lockedAt: Date | null;
288
+ forcePasswordReset: boolean;
289
+ mfaRequired: boolean;
290
+ failedLoginCount: number;
291
+ lastActiveAt: Date | null;
292
+ invitedById: string | null;
293
+ acceptedInviteAt: Date | null;
294
+ _count: UserCountAggregateOutputType | null;
295
+ _avg: UserAvgAggregateOutputType | null;
296
+ _sum: UserSumAggregateOutputType | null;
297
+ _min: UserMinAggregateOutputType | null;
298
+ _max: UserMaxAggregateOutputType | null;
299
+ };
300
+ export type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<UserGroupByOutputType, T['by']> & {
301
+ [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]> : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>;
302
+ }>>;
303
+ export type UserWhereInput = {
304
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
305
+ OR?: Prisma.UserWhereInput[];
306
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
307
+ id?: Prisma.StringFilter<"User"> | string;
308
+ email?: Prisma.StringFilter<"User"> | string;
309
+ name?: Prisma.StringFilter<"User"> | string;
310
+ avatarUrl?: Prisma.StringNullableFilter<"User"> | string | null;
311
+ role?: Prisma.EnumUserRoleFilter<"User"> | $Enums.UserRole;
312
+ passwordHash?: Prisma.StringNullableFilter<"User"> | string | null;
313
+ totpSecret?: Prisma.StringNullableFilter<"User"> | string | null;
314
+ totpEnabled?: Prisma.BoolFilter<"User"> | boolean;
315
+ lastTotpStep?: Prisma.IntNullableFilter<"User"> | number | null;
316
+ backupCodes?: Prisma.JsonNullableFilter<"User">;
317
+ authProvider?: Prisma.StringNullableFilter<"User"> | string | null;
318
+ isActive?: Prisma.BoolFilter<"User"> | boolean;
319
+ isApproved?: Prisma.BoolFilter<"User"> | boolean;
320
+ emailVerified?: Prisma.BoolFilter<"User"> | boolean;
321
+ lastLoginAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
322
+ createdAt?: Prisma.DateTimeFilter<"User"> | Date | string;
323
+ updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string;
324
+ suspendedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
325
+ lockedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
326
+ forcePasswordReset?: Prisma.BoolFilter<"User"> | boolean;
327
+ mfaRequired?: Prisma.BoolFilter<"User"> | boolean;
328
+ failedLoginCount?: Prisma.IntFilter<"User"> | number;
329
+ lastActiveAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
330
+ invitedById?: Prisma.StringNullableFilter<"User"> | string | null;
331
+ acceptedInviteAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
332
+ sessions?: Prisma.SessionListRelationFilter;
333
+ oauthAccounts?: Prisma.OAuthAccountListRelationFilter;
334
+ apiKeys?: Prisma.ApiKeyListRelationFilter;
335
+ documents?: Prisma.DocumentListRelationFilter;
336
+ updatedDocuments?: Prisma.DocumentListRelationFilter;
337
+ versions?: Prisma.VersionListRelationFilter;
338
+ media?: Prisma.MediaListRelationFilter;
339
+ contentLocks?: Prisma.ContentLockListRelationFilter;
340
+ notifications?: Prisma.InAppNotificationListRelationFilter;
341
+ contentTemplates?: Prisma.ContentTemplateListRelationFilter;
342
+ workflowAssigned?: Prisma.WorkflowStateListRelationFilter;
343
+ passwordResetTokens?: Prisma.PasswordResetTokenListRelationFilter;
344
+ };
345
+ export type UserOrderByWithRelationInput = {
346
+ id?: Prisma.SortOrder;
347
+ email?: Prisma.SortOrder;
348
+ name?: Prisma.SortOrder;
349
+ avatarUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
350
+ role?: Prisma.SortOrder;
351
+ passwordHash?: Prisma.SortOrderInput | Prisma.SortOrder;
352
+ totpSecret?: Prisma.SortOrderInput | Prisma.SortOrder;
353
+ totpEnabled?: Prisma.SortOrder;
354
+ lastTotpStep?: Prisma.SortOrderInput | Prisma.SortOrder;
355
+ backupCodes?: Prisma.SortOrderInput | Prisma.SortOrder;
356
+ authProvider?: Prisma.SortOrderInput | Prisma.SortOrder;
357
+ isActive?: Prisma.SortOrder;
358
+ isApproved?: Prisma.SortOrder;
359
+ emailVerified?: Prisma.SortOrder;
360
+ lastLoginAt?: Prisma.SortOrderInput | Prisma.SortOrder;
361
+ createdAt?: Prisma.SortOrder;
362
+ updatedAt?: Prisma.SortOrder;
363
+ suspendedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
364
+ lockedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
365
+ forcePasswordReset?: Prisma.SortOrder;
366
+ mfaRequired?: Prisma.SortOrder;
367
+ failedLoginCount?: Prisma.SortOrder;
368
+ lastActiveAt?: Prisma.SortOrderInput | Prisma.SortOrder;
369
+ invitedById?: Prisma.SortOrderInput | Prisma.SortOrder;
370
+ acceptedInviteAt?: Prisma.SortOrderInput | Prisma.SortOrder;
371
+ sessions?: Prisma.SessionOrderByRelationAggregateInput;
372
+ oauthAccounts?: Prisma.OAuthAccountOrderByRelationAggregateInput;
373
+ apiKeys?: Prisma.ApiKeyOrderByRelationAggregateInput;
374
+ documents?: Prisma.DocumentOrderByRelationAggregateInput;
375
+ updatedDocuments?: Prisma.DocumentOrderByRelationAggregateInput;
376
+ versions?: Prisma.VersionOrderByRelationAggregateInput;
377
+ media?: Prisma.MediaOrderByRelationAggregateInput;
378
+ contentLocks?: Prisma.ContentLockOrderByRelationAggregateInput;
379
+ notifications?: Prisma.InAppNotificationOrderByRelationAggregateInput;
380
+ contentTemplates?: Prisma.ContentTemplateOrderByRelationAggregateInput;
381
+ workflowAssigned?: Prisma.WorkflowStateOrderByRelationAggregateInput;
382
+ passwordResetTokens?: Prisma.PasswordResetTokenOrderByRelationAggregateInput;
383
+ _relevance?: Prisma.UserOrderByRelevanceInput;
384
+ };
385
+ export type UserWhereUniqueInput = Prisma.AtLeast<{
386
+ id?: string;
387
+ email?: string;
388
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
389
+ OR?: Prisma.UserWhereInput[];
390
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[];
391
+ name?: Prisma.StringFilter<"User"> | string;
392
+ avatarUrl?: Prisma.StringNullableFilter<"User"> | string | null;
393
+ role?: Prisma.EnumUserRoleFilter<"User"> | $Enums.UserRole;
394
+ passwordHash?: Prisma.StringNullableFilter<"User"> | string | null;
395
+ totpSecret?: Prisma.StringNullableFilter<"User"> | string | null;
396
+ totpEnabled?: Prisma.BoolFilter<"User"> | boolean;
397
+ lastTotpStep?: Prisma.IntNullableFilter<"User"> | number | null;
398
+ backupCodes?: Prisma.JsonNullableFilter<"User">;
399
+ authProvider?: Prisma.StringNullableFilter<"User"> | string | null;
400
+ isActive?: Prisma.BoolFilter<"User"> | boolean;
401
+ isApproved?: Prisma.BoolFilter<"User"> | boolean;
402
+ emailVerified?: Prisma.BoolFilter<"User"> | boolean;
403
+ lastLoginAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
404
+ createdAt?: Prisma.DateTimeFilter<"User"> | Date | string;
405
+ updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string;
406
+ suspendedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
407
+ lockedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
408
+ forcePasswordReset?: Prisma.BoolFilter<"User"> | boolean;
409
+ mfaRequired?: Prisma.BoolFilter<"User"> | boolean;
410
+ failedLoginCount?: Prisma.IntFilter<"User"> | number;
411
+ lastActiveAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
412
+ invitedById?: Prisma.StringNullableFilter<"User"> | string | null;
413
+ acceptedInviteAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null;
414
+ sessions?: Prisma.SessionListRelationFilter;
415
+ oauthAccounts?: Prisma.OAuthAccountListRelationFilter;
416
+ apiKeys?: Prisma.ApiKeyListRelationFilter;
417
+ documents?: Prisma.DocumentListRelationFilter;
418
+ updatedDocuments?: Prisma.DocumentListRelationFilter;
419
+ versions?: Prisma.VersionListRelationFilter;
420
+ media?: Prisma.MediaListRelationFilter;
421
+ contentLocks?: Prisma.ContentLockListRelationFilter;
422
+ notifications?: Prisma.InAppNotificationListRelationFilter;
423
+ contentTemplates?: Prisma.ContentTemplateListRelationFilter;
424
+ workflowAssigned?: Prisma.WorkflowStateListRelationFilter;
425
+ passwordResetTokens?: Prisma.PasswordResetTokenListRelationFilter;
426
+ }, "id" | "email">;
427
+ export type UserOrderByWithAggregationInput = {
428
+ id?: Prisma.SortOrder;
429
+ email?: Prisma.SortOrder;
430
+ name?: Prisma.SortOrder;
431
+ avatarUrl?: Prisma.SortOrderInput | Prisma.SortOrder;
432
+ role?: Prisma.SortOrder;
433
+ passwordHash?: Prisma.SortOrderInput | Prisma.SortOrder;
434
+ totpSecret?: Prisma.SortOrderInput | Prisma.SortOrder;
435
+ totpEnabled?: Prisma.SortOrder;
436
+ lastTotpStep?: Prisma.SortOrderInput | Prisma.SortOrder;
437
+ backupCodes?: Prisma.SortOrderInput | Prisma.SortOrder;
438
+ authProvider?: Prisma.SortOrderInput | Prisma.SortOrder;
439
+ isActive?: Prisma.SortOrder;
440
+ isApproved?: Prisma.SortOrder;
441
+ emailVerified?: Prisma.SortOrder;
442
+ lastLoginAt?: Prisma.SortOrderInput | Prisma.SortOrder;
443
+ createdAt?: Prisma.SortOrder;
444
+ updatedAt?: Prisma.SortOrder;
445
+ suspendedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
446
+ lockedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
447
+ forcePasswordReset?: Prisma.SortOrder;
448
+ mfaRequired?: Prisma.SortOrder;
449
+ failedLoginCount?: Prisma.SortOrder;
450
+ lastActiveAt?: Prisma.SortOrderInput | Prisma.SortOrder;
451
+ invitedById?: Prisma.SortOrderInput | Prisma.SortOrder;
452
+ acceptedInviteAt?: Prisma.SortOrderInput | Prisma.SortOrder;
453
+ _count?: Prisma.UserCountOrderByAggregateInput;
454
+ _avg?: Prisma.UserAvgOrderByAggregateInput;
455
+ _max?: Prisma.UserMaxOrderByAggregateInput;
456
+ _min?: Prisma.UserMinOrderByAggregateInput;
457
+ _sum?: Prisma.UserSumOrderByAggregateInput;
458
+ };
459
+ export type UserScalarWhereWithAggregatesInput = {
460
+ AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[];
461
+ OR?: Prisma.UserScalarWhereWithAggregatesInput[];
462
+ NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[];
463
+ id?: Prisma.StringWithAggregatesFilter<"User"> | string;
464
+ email?: Prisma.StringWithAggregatesFilter<"User"> | string;
465
+ name?: Prisma.StringWithAggregatesFilter<"User"> | string;
466
+ avatarUrl?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null;
467
+ role?: Prisma.EnumUserRoleWithAggregatesFilter<"User"> | $Enums.UserRole;
468
+ passwordHash?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null;
469
+ totpSecret?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null;
470
+ totpEnabled?: Prisma.BoolWithAggregatesFilter<"User"> | boolean;
471
+ lastTotpStep?: Prisma.IntNullableWithAggregatesFilter<"User"> | number | null;
472
+ backupCodes?: Prisma.JsonNullableWithAggregatesFilter<"User">;
473
+ authProvider?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null;
474
+ isActive?: Prisma.BoolWithAggregatesFilter<"User"> | boolean;
475
+ isApproved?: Prisma.BoolWithAggregatesFilter<"User"> | boolean;
476
+ emailVerified?: Prisma.BoolWithAggregatesFilter<"User"> | boolean;
477
+ lastLoginAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null;
478
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string;
479
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string;
480
+ suspendedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null;
481
+ lockedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null;
482
+ forcePasswordReset?: Prisma.BoolWithAggregatesFilter<"User"> | boolean;
483
+ mfaRequired?: Prisma.BoolWithAggregatesFilter<"User"> | boolean;
484
+ failedLoginCount?: Prisma.IntWithAggregatesFilter<"User"> | number;
485
+ lastActiveAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null;
486
+ invitedById?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null;
487
+ acceptedInviteAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null;
488
+ };
489
+ export type UserCreateInput = {
490
+ id?: string;
491
+ email: string;
492
+ name: string;
493
+ avatarUrl?: string | null;
494
+ role?: $Enums.UserRole;
495
+ passwordHash?: string | null;
496
+ totpSecret?: string | null;
497
+ totpEnabled?: boolean;
498
+ lastTotpStep?: number | null;
499
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
500
+ authProvider?: string | null;
501
+ isActive?: boolean;
502
+ isApproved?: boolean;
503
+ emailVerified?: boolean;
504
+ lastLoginAt?: Date | string | null;
505
+ createdAt?: Date | string;
506
+ updatedAt?: Date | string;
507
+ suspendedAt?: Date | string | null;
508
+ lockedAt?: Date | string | null;
509
+ forcePasswordReset?: boolean;
510
+ mfaRequired?: boolean;
511
+ failedLoginCount?: number;
512
+ lastActiveAt?: Date | string | null;
513
+ invitedById?: string | null;
514
+ acceptedInviteAt?: Date | string | null;
515
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
516
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
517
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
518
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
519
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
520
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
521
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
522
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
523
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
524
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
525
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
526
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
527
+ };
528
+ export type UserUncheckedCreateInput = {
529
+ id?: string;
530
+ email: string;
531
+ name: string;
532
+ avatarUrl?: string | null;
533
+ role?: $Enums.UserRole;
534
+ passwordHash?: string | null;
535
+ totpSecret?: string | null;
536
+ totpEnabled?: boolean;
537
+ lastTotpStep?: number | null;
538
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
539
+ authProvider?: string | null;
540
+ isActive?: boolean;
541
+ isApproved?: boolean;
542
+ emailVerified?: boolean;
543
+ lastLoginAt?: Date | string | null;
544
+ createdAt?: Date | string;
545
+ updatedAt?: Date | string;
546
+ suspendedAt?: Date | string | null;
547
+ lockedAt?: Date | string | null;
548
+ forcePasswordReset?: boolean;
549
+ mfaRequired?: boolean;
550
+ failedLoginCount?: number;
551
+ lastActiveAt?: Date | string | null;
552
+ invitedById?: string | null;
553
+ acceptedInviteAt?: Date | string | null;
554
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
555
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
556
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
557
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
558
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
559
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
560
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
561
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
562
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
563
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
564
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
565
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
566
+ };
567
+ export type UserUpdateInput = {
568
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
569
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
570
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
571
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
572
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
573
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
574
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
575
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
576
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
577
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
578
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
579
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
580
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
581
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
582
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
583
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
584
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
585
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
586
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
587
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
588
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
589
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
590
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
591
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
592
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
593
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
594
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
595
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
596
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
597
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
598
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
599
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
600
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
601
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
602
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
603
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
604
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
605
+ };
606
+ export type UserUncheckedUpdateInput = {
607
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
608
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
609
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
610
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
611
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
612
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
613
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
614
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
615
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
616
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
617
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
618
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
619
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
620
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
621
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
622
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
623
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
624
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
625
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
626
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
627
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
628
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
629
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
630
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
631
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
632
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
633
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
634
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
635
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
636
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
637
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
638
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
639
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
640
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
641
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
642
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
643
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
644
+ };
645
+ export type UserCreateManyInput = {
646
+ id?: string;
647
+ email: string;
648
+ name: string;
649
+ avatarUrl?: string | null;
650
+ role?: $Enums.UserRole;
651
+ passwordHash?: string | null;
652
+ totpSecret?: string | null;
653
+ totpEnabled?: boolean;
654
+ lastTotpStep?: number | null;
655
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
656
+ authProvider?: string | null;
657
+ isActive?: boolean;
658
+ isApproved?: boolean;
659
+ emailVerified?: boolean;
660
+ lastLoginAt?: Date | string | null;
661
+ createdAt?: Date | string;
662
+ updatedAt?: Date | string;
663
+ suspendedAt?: Date | string | null;
664
+ lockedAt?: Date | string | null;
665
+ forcePasswordReset?: boolean;
666
+ mfaRequired?: boolean;
667
+ failedLoginCount?: number;
668
+ lastActiveAt?: Date | string | null;
669
+ invitedById?: string | null;
670
+ acceptedInviteAt?: Date | string | null;
671
+ };
672
+ export type UserUpdateManyMutationInput = {
673
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
674
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
675
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
676
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
677
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
678
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
679
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
680
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
681
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
682
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
683
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
684
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
685
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
686
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
687
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
688
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
689
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
690
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
691
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
692
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
693
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
694
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
695
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
696
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
697
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
698
+ };
699
+ export type UserUncheckedUpdateManyInput = {
700
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
701
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
702
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
703
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
704
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
705
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
706
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
707
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
708
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
709
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
710
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
711
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
712
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
713
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
714
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
715
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
716
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
717
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
718
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
719
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
720
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
721
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
722
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
723
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
724
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
725
+ };
726
+ export type UserOrderByRelevanceInput = {
727
+ fields: Prisma.UserOrderByRelevanceFieldEnum | Prisma.UserOrderByRelevanceFieldEnum[];
728
+ sort: Prisma.SortOrder;
729
+ search: string;
730
+ };
731
+ export type UserCountOrderByAggregateInput = {
732
+ id?: Prisma.SortOrder;
733
+ email?: Prisma.SortOrder;
734
+ name?: Prisma.SortOrder;
735
+ avatarUrl?: Prisma.SortOrder;
736
+ role?: Prisma.SortOrder;
737
+ passwordHash?: Prisma.SortOrder;
738
+ totpSecret?: Prisma.SortOrder;
739
+ totpEnabled?: Prisma.SortOrder;
740
+ lastTotpStep?: Prisma.SortOrder;
741
+ backupCodes?: Prisma.SortOrder;
742
+ authProvider?: Prisma.SortOrder;
743
+ isActive?: Prisma.SortOrder;
744
+ isApproved?: Prisma.SortOrder;
745
+ emailVerified?: Prisma.SortOrder;
746
+ lastLoginAt?: Prisma.SortOrder;
747
+ createdAt?: Prisma.SortOrder;
748
+ updatedAt?: Prisma.SortOrder;
749
+ suspendedAt?: Prisma.SortOrder;
750
+ lockedAt?: Prisma.SortOrder;
751
+ forcePasswordReset?: Prisma.SortOrder;
752
+ mfaRequired?: Prisma.SortOrder;
753
+ failedLoginCount?: Prisma.SortOrder;
754
+ lastActiveAt?: Prisma.SortOrder;
755
+ invitedById?: Prisma.SortOrder;
756
+ acceptedInviteAt?: Prisma.SortOrder;
757
+ };
758
+ export type UserAvgOrderByAggregateInput = {
759
+ lastTotpStep?: Prisma.SortOrder;
760
+ failedLoginCount?: Prisma.SortOrder;
761
+ };
762
+ export type UserMaxOrderByAggregateInput = {
763
+ id?: Prisma.SortOrder;
764
+ email?: Prisma.SortOrder;
765
+ name?: Prisma.SortOrder;
766
+ avatarUrl?: Prisma.SortOrder;
767
+ role?: Prisma.SortOrder;
768
+ passwordHash?: Prisma.SortOrder;
769
+ totpSecret?: Prisma.SortOrder;
770
+ totpEnabled?: Prisma.SortOrder;
771
+ lastTotpStep?: Prisma.SortOrder;
772
+ authProvider?: Prisma.SortOrder;
773
+ isActive?: Prisma.SortOrder;
774
+ isApproved?: Prisma.SortOrder;
775
+ emailVerified?: Prisma.SortOrder;
776
+ lastLoginAt?: Prisma.SortOrder;
777
+ createdAt?: Prisma.SortOrder;
778
+ updatedAt?: Prisma.SortOrder;
779
+ suspendedAt?: Prisma.SortOrder;
780
+ lockedAt?: Prisma.SortOrder;
781
+ forcePasswordReset?: Prisma.SortOrder;
782
+ mfaRequired?: Prisma.SortOrder;
783
+ failedLoginCount?: Prisma.SortOrder;
784
+ lastActiveAt?: Prisma.SortOrder;
785
+ invitedById?: Prisma.SortOrder;
786
+ acceptedInviteAt?: Prisma.SortOrder;
787
+ };
788
+ export type UserMinOrderByAggregateInput = {
789
+ id?: Prisma.SortOrder;
790
+ email?: Prisma.SortOrder;
791
+ name?: Prisma.SortOrder;
792
+ avatarUrl?: Prisma.SortOrder;
793
+ role?: Prisma.SortOrder;
794
+ passwordHash?: Prisma.SortOrder;
795
+ totpSecret?: Prisma.SortOrder;
796
+ totpEnabled?: Prisma.SortOrder;
797
+ lastTotpStep?: Prisma.SortOrder;
798
+ authProvider?: Prisma.SortOrder;
799
+ isActive?: Prisma.SortOrder;
800
+ isApproved?: Prisma.SortOrder;
801
+ emailVerified?: Prisma.SortOrder;
802
+ lastLoginAt?: Prisma.SortOrder;
803
+ createdAt?: Prisma.SortOrder;
804
+ updatedAt?: Prisma.SortOrder;
805
+ suspendedAt?: Prisma.SortOrder;
806
+ lockedAt?: Prisma.SortOrder;
807
+ forcePasswordReset?: Prisma.SortOrder;
808
+ mfaRequired?: Prisma.SortOrder;
809
+ failedLoginCount?: Prisma.SortOrder;
810
+ lastActiveAt?: Prisma.SortOrder;
811
+ invitedById?: Prisma.SortOrder;
812
+ acceptedInviteAt?: Prisma.SortOrder;
813
+ };
814
+ export type UserSumOrderByAggregateInput = {
815
+ lastTotpStep?: Prisma.SortOrder;
816
+ failedLoginCount?: Prisma.SortOrder;
817
+ };
818
+ export type UserScalarRelationFilter = {
819
+ is?: Prisma.UserWhereInput;
820
+ isNot?: Prisma.UserWhereInput;
821
+ };
822
+ export type UserNullableScalarRelationFilter = {
823
+ is?: Prisma.UserWhereInput | null;
824
+ isNot?: Prisma.UserWhereInput | null;
825
+ };
826
+ export type StringFieldUpdateOperationsInput = {
827
+ set?: string;
828
+ };
829
+ export type NullableStringFieldUpdateOperationsInput = {
830
+ set?: string | null;
831
+ };
832
+ export type EnumUserRoleFieldUpdateOperationsInput = {
833
+ set?: $Enums.UserRole;
834
+ };
835
+ export type BoolFieldUpdateOperationsInput = {
836
+ set?: boolean;
837
+ };
838
+ export type NullableIntFieldUpdateOperationsInput = {
839
+ set?: number | null;
840
+ increment?: number;
841
+ decrement?: number;
842
+ multiply?: number;
843
+ divide?: number;
844
+ };
845
+ export type NullableDateTimeFieldUpdateOperationsInput = {
846
+ set?: Date | string | null;
847
+ };
848
+ export type DateTimeFieldUpdateOperationsInput = {
849
+ set?: Date | string;
850
+ };
851
+ export type IntFieldUpdateOperationsInput = {
852
+ set?: number;
853
+ increment?: number;
854
+ decrement?: number;
855
+ multiply?: number;
856
+ divide?: number;
857
+ };
858
+ export type UserCreateNestedOneWithoutOauthAccountsInput = {
859
+ create?: Prisma.XOR<Prisma.UserCreateWithoutOauthAccountsInput, Prisma.UserUncheckedCreateWithoutOauthAccountsInput>;
860
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutOauthAccountsInput;
861
+ connect?: Prisma.UserWhereUniqueInput;
862
+ };
863
+ export type UserUpdateOneRequiredWithoutOauthAccountsNestedInput = {
864
+ create?: Prisma.XOR<Prisma.UserCreateWithoutOauthAccountsInput, Prisma.UserUncheckedCreateWithoutOauthAccountsInput>;
865
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutOauthAccountsInput;
866
+ upsert?: Prisma.UserUpsertWithoutOauthAccountsInput;
867
+ connect?: Prisma.UserWhereUniqueInput;
868
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutOauthAccountsInput, Prisma.UserUpdateWithoutOauthAccountsInput>, Prisma.UserUncheckedUpdateWithoutOauthAccountsInput>;
869
+ };
870
+ export type UserCreateNestedOneWithoutSessionsInput = {
871
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>;
872
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput;
873
+ connect?: Prisma.UserWhereUniqueInput;
874
+ };
875
+ export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
876
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>;
877
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput;
878
+ upsert?: Prisma.UserUpsertWithoutSessionsInput;
879
+ connect?: Prisma.UserWhereUniqueInput;
880
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSessionsInput, Prisma.UserUpdateWithoutSessionsInput>, Prisma.UserUncheckedUpdateWithoutSessionsInput>;
881
+ };
882
+ export type UserCreateNestedOneWithoutApiKeysInput = {
883
+ create?: Prisma.XOR<Prisma.UserCreateWithoutApiKeysInput, Prisma.UserUncheckedCreateWithoutApiKeysInput>;
884
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutApiKeysInput;
885
+ connect?: Prisma.UserWhereUniqueInput;
886
+ };
887
+ export type UserUpdateOneRequiredWithoutApiKeysNestedInput = {
888
+ create?: Prisma.XOR<Prisma.UserCreateWithoutApiKeysInput, Prisma.UserUncheckedCreateWithoutApiKeysInput>;
889
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutApiKeysInput;
890
+ upsert?: Prisma.UserUpsertWithoutApiKeysInput;
891
+ connect?: Prisma.UserWhereUniqueInput;
892
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutApiKeysInput, Prisma.UserUpdateWithoutApiKeysInput>, Prisma.UserUncheckedUpdateWithoutApiKeysInput>;
893
+ };
894
+ export type UserCreateNestedOneWithoutDocumentsInput = {
895
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDocumentsInput, Prisma.UserUncheckedCreateWithoutDocumentsInput>;
896
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDocumentsInput;
897
+ connect?: Prisma.UserWhereUniqueInput;
898
+ };
899
+ export type UserCreateNestedOneWithoutUpdatedDocumentsInput = {
900
+ create?: Prisma.XOR<Prisma.UserCreateWithoutUpdatedDocumentsInput, Prisma.UserUncheckedCreateWithoutUpdatedDocumentsInput>;
901
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutUpdatedDocumentsInput;
902
+ connect?: Prisma.UserWhereUniqueInput;
903
+ };
904
+ export type UserUpdateOneRequiredWithoutDocumentsNestedInput = {
905
+ create?: Prisma.XOR<Prisma.UserCreateWithoutDocumentsInput, Prisma.UserUncheckedCreateWithoutDocumentsInput>;
906
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutDocumentsInput;
907
+ upsert?: Prisma.UserUpsertWithoutDocumentsInput;
908
+ connect?: Prisma.UserWhereUniqueInput;
909
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutDocumentsInput, Prisma.UserUpdateWithoutDocumentsInput>, Prisma.UserUncheckedUpdateWithoutDocumentsInput>;
910
+ };
911
+ export type UserUpdateOneRequiredWithoutUpdatedDocumentsNestedInput = {
912
+ create?: Prisma.XOR<Prisma.UserCreateWithoutUpdatedDocumentsInput, Prisma.UserUncheckedCreateWithoutUpdatedDocumentsInput>;
913
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutUpdatedDocumentsInput;
914
+ upsert?: Prisma.UserUpsertWithoutUpdatedDocumentsInput;
915
+ connect?: Prisma.UserWhereUniqueInput;
916
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutUpdatedDocumentsInput, Prisma.UserUpdateWithoutUpdatedDocumentsInput>, Prisma.UserUncheckedUpdateWithoutUpdatedDocumentsInput>;
917
+ };
918
+ export type UserCreateNestedOneWithoutVersionsInput = {
919
+ create?: Prisma.XOR<Prisma.UserCreateWithoutVersionsInput, Prisma.UserUncheckedCreateWithoutVersionsInput>;
920
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutVersionsInput;
921
+ connect?: Prisma.UserWhereUniqueInput;
922
+ };
923
+ export type UserUpdateOneRequiredWithoutVersionsNestedInput = {
924
+ create?: Prisma.XOR<Prisma.UserCreateWithoutVersionsInput, Prisma.UserUncheckedCreateWithoutVersionsInput>;
925
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutVersionsInput;
926
+ upsert?: Prisma.UserUpsertWithoutVersionsInput;
927
+ connect?: Prisma.UserWhereUniqueInput;
928
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutVersionsInput, Prisma.UserUpdateWithoutVersionsInput>, Prisma.UserUncheckedUpdateWithoutVersionsInput>;
929
+ };
930
+ export type UserCreateNestedOneWithoutMediaInput = {
931
+ create?: Prisma.XOR<Prisma.UserCreateWithoutMediaInput, Prisma.UserUncheckedCreateWithoutMediaInput>;
932
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutMediaInput;
933
+ connect?: Prisma.UserWhereUniqueInput;
934
+ };
935
+ export type UserUpdateOneRequiredWithoutMediaNestedInput = {
936
+ create?: Prisma.XOR<Prisma.UserCreateWithoutMediaInput, Prisma.UserUncheckedCreateWithoutMediaInput>;
937
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutMediaInput;
938
+ upsert?: Prisma.UserUpsertWithoutMediaInput;
939
+ connect?: Prisma.UserWhereUniqueInput;
940
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutMediaInput, Prisma.UserUpdateWithoutMediaInput>, Prisma.UserUncheckedUpdateWithoutMediaInput>;
941
+ };
942
+ export type UserCreateNestedOneWithoutContentLocksInput = {
943
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContentLocksInput, Prisma.UserUncheckedCreateWithoutContentLocksInput>;
944
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContentLocksInput;
945
+ connect?: Prisma.UserWhereUniqueInput;
946
+ };
947
+ export type UserUpdateOneRequiredWithoutContentLocksNestedInput = {
948
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContentLocksInput, Prisma.UserUncheckedCreateWithoutContentLocksInput>;
949
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContentLocksInput;
950
+ upsert?: Prisma.UserUpsertWithoutContentLocksInput;
951
+ connect?: Prisma.UserWhereUniqueInput;
952
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutContentLocksInput, Prisma.UserUpdateWithoutContentLocksInput>, Prisma.UserUncheckedUpdateWithoutContentLocksInput>;
953
+ };
954
+ export type UserCreateNestedOneWithoutNotificationsInput = {
955
+ create?: Prisma.XOR<Prisma.UserCreateWithoutNotificationsInput, Prisma.UserUncheckedCreateWithoutNotificationsInput>;
956
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationsInput;
957
+ connect?: Prisma.UserWhereUniqueInput;
958
+ };
959
+ export type UserUpdateOneRequiredWithoutNotificationsNestedInput = {
960
+ create?: Prisma.XOR<Prisma.UserCreateWithoutNotificationsInput, Prisma.UserUncheckedCreateWithoutNotificationsInput>;
961
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutNotificationsInput;
962
+ upsert?: Prisma.UserUpsertWithoutNotificationsInput;
963
+ connect?: Prisma.UserWhereUniqueInput;
964
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutNotificationsInput, Prisma.UserUpdateWithoutNotificationsInput>, Prisma.UserUncheckedUpdateWithoutNotificationsInput>;
965
+ };
966
+ export type UserCreateNestedOneWithoutContentTemplatesInput = {
967
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContentTemplatesInput, Prisma.UserUncheckedCreateWithoutContentTemplatesInput>;
968
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContentTemplatesInput;
969
+ connect?: Prisma.UserWhereUniqueInput;
970
+ };
971
+ export type UserUpdateOneRequiredWithoutContentTemplatesNestedInput = {
972
+ create?: Prisma.XOR<Prisma.UserCreateWithoutContentTemplatesInput, Prisma.UserUncheckedCreateWithoutContentTemplatesInput>;
973
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutContentTemplatesInput;
974
+ upsert?: Prisma.UserUpsertWithoutContentTemplatesInput;
975
+ connect?: Prisma.UserWhereUniqueInput;
976
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutContentTemplatesInput, Prisma.UserUpdateWithoutContentTemplatesInput>, Prisma.UserUncheckedUpdateWithoutContentTemplatesInput>;
977
+ };
978
+ export type UserCreateNestedOneWithoutWorkflowAssignedInput = {
979
+ create?: Prisma.XOR<Prisma.UserCreateWithoutWorkflowAssignedInput, Prisma.UserUncheckedCreateWithoutWorkflowAssignedInput>;
980
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutWorkflowAssignedInput;
981
+ connect?: Prisma.UserWhereUniqueInput;
982
+ };
983
+ export type UserUpdateOneWithoutWorkflowAssignedNestedInput = {
984
+ create?: Prisma.XOR<Prisma.UserCreateWithoutWorkflowAssignedInput, Prisma.UserUncheckedCreateWithoutWorkflowAssignedInput>;
985
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutWorkflowAssignedInput;
986
+ upsert?: Prisma.UserUpsertWithoutWorkflowAssignedInput;
987
+ disconnect?: Prisma.UserWhereInput | boolean;
988
+ delete?: Prisma.UserWhereInput | boolean;
989
+ connect?: Prisma.UserWhereUniqueInput;
990
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutWorkflowAssignedInput, Prisma.UserUpdateWithoutWorkflowAssignedInput>, Prisma.UserUncheckedUpdateWithoutWorkflowAssignedInput>;
991
+ };
992
+ export type UserCreateNestedOneWithoutPasswordResetTokensInput = {
993
+ create?: Prisma.XOR<Prisma.UserCreateWithoutPasswordResetTokensInput, Prisma.UserUncheckedCreateWithoutPasswordResetTokensInput>;
994
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutPasswordResetTokensInput;
995
+ connect?: Prisma.UserWhereUniqueInput;
996
+ };
997
+ export type UserUpdateOneRequiredWithoutPasswordResetTokensNestedInput = {
998
+ create?: Prisma.XOR<Prisma.UserCreateWithoutPasswordResetTokensInput, Prisma.UserUncheckedCreateWithoutPasswordResetTokensInput>;
999
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutPasswordResetTokensInput;
1000
+ upsert?: Prisma.UserUpsertWithoutPasswordResetTokensInput;
1001
+ connect?: Prisma.UserWhereUniqueInput;
1002
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutPasswordResetTokensInput, Prisma.UserUpdateWithoutPasswordResetTokensInput>, Prisma.UserUncheckedUpdateWithoutPasswordResetTokensInput>;
1003
+ };
1004
+ export type UserCreateWithoutOauthAccountsInput = {
1005
+ id?: string;
1006
+ email: string;
1007
+ name: string;
1008
+ avatarUrl?: string | null;
1009
+ role?: $Enums.UserRole;
1010
+ passwordHash?: string | null;
1011
+ totpSecret?: string | null;
1012
+ totpEnabled?: boolean;
1013
+ lastTotpStep?: number | null;
1014
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1015
+ authProvider?: string | null;
1016
+ isActive?: boolean;
1017
+ isApproved?: boolean;
1018
+ emailVerified?: boolean;
1019
+ lastLoginAt?: Date | string | null;
1020
+ createdAt?: Date | string;
1021
+ updatedAt?: Date | string;
1022
+ suspendedAt?: Date | string | null;
1023
+ lockedAt?: Date | string | null;
1024
+ forcePasswordReset?: boolean;
1025
+ mfaRequired?: boolean;
1026
+ failedLoginCount?: number;
1027
+ lastActiveAt?: Date | string | null;
1028
+ invitedById?: string | null;
1029
+ acceptedInviteAt?: Date | string | null;
1030
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
1031
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
1032
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
1033
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
1034
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
1035
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
1036
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
1037
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
1038
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1039
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1040
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1041
+ };
1042
+ export type UserUncheckedCreateWithoutOauthAccountsInput = {
1043
+ id?: string;
1044
+ email: string;
1045
+ name: string;
1046
+ avatarUrl?: string | null;
1047
+ role?: $Enums.UserRole;
1048
+ passwordHash?: string | null;
1049
+ totpSecret?: string | null;
1050
+ totpEnabled?: boolean;
1051
+ lastTotpStep?: number | null;
1052
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1053
+ authProvider?: string | null;
1054
+ isActive?: boolean;
1055
+ isApproved?: boolean;
1056
+ emailVerified?: boolean;
1057
+ lastLoginAt?: Date | string | null;
1058
+ createdAt?: Date | string;
1059
+ updatedAt?: Date | string;
1060
+ suspendedAt?: Date | string | null;
1061
+ lockedAt?: Date | string | null;
1062
+ forcePasswordReset?: boolean;
1063
+ mfaRequired?: boolean;
1064
+ failedLoginCount?: number;
1065
+ lastActiveAt?: Date | string | null;
1066
+ invitedById?: string | null;
1067
+ acceptedInviteAt?: Date | string | null;
1068
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
1069
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
1070
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
1071
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
1072
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
1073
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
1074
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
1075
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
1076
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1077
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1078
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1079
+ };
1080
+ export type UserCreateOrConnectWithoutOauthAccountsInput = {
1081
+ where: Prisma.UserWhereUniqueInput;
1082
+ create: Prisma.XOR<Prisma.UserCreateWithoutOauthAccountsInput, Prisma.UserUncheckedCreateWithoutOauthAccountsInput>;
1083
+ };
1084
+ export type UserUpsertWithoutOauthAccountsInput = {
1085
+ update: Prisma.XOR<Prisma.UserUpdateWithoutOauthAccountsInput, Prisma.UserUncheckedUpdateWithoutOauthAccountsInput>;
1086
+ create: Prisma.XOR<Prisma.UserCreateWithoutOauthAccountsInput, Prisma.UserUncheckedCreateWithoutOauthAccountsInput>;
1087
+ where?: Prisma.UserWhereInput;
1088
+ };
1089
+ export type UserUpdateToOneWithWhereWithoutOauthAccountsInput = {
1090
+ where?: Prisma.UserWhereInput;
1091
+ data: Prisma.XOR<Prisma.UserUpdateWithoutOauthAccountsInput, Prisma.UserUncheckedUpdateWithoutOauthAccountsInput>;
1092
+ };
1093
+ export type UserUpdateWithoutOauthAccountsInput = {
1094
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1095
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1096
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1097
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1098
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1099
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1100
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1101
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1102
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1103
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1104
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1105
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1106
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1107
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1108
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1109
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1110
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1111
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1112
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1113
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1114
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1115
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1116
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1117
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1118
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1119
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1120
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
1121
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
1122
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
1123
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
1124
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
1125
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
1126
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
1127
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1128
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1129
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1130
+ };
1131
+ export type UserUncheckedUpdateWithoutOauthAccountsInput = {
1132
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1133
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1134
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1135
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1136
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1137
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1138
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1139
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1140
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1141
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1142
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1143
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1144
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1145
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1146
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1147
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1148
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1149
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1150
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1151
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1152
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1153
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1154
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1155
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1156
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1157
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1158
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
1159
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
1160
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
1161
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
1162
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
1163
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
1164
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
1165
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1166
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1167
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1168
+ };
1169
+ export type UserCreateWithoutSessionsInput = {
1170
+ id?: string;
1171
+ email: string;
1172
+ name: string;
1173
+ avatarUrl?: string | null;
1174
+ role?: $Enums.UserRole;
1175
+ passwordHash?: string | null;
1176
+ totpSecret?: string | null;
1177
+ totpEnabled?: boolean;
1178
+ lastTotpStep?: number | null;
1179
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1180
+ authProvider?: string | null;
1181
+ isActive?: boolean;
1182
+ isApproved?: boolean;
1183
+ emailVerified?: boolean;
1184
+ lastLoginAt?: Date | string | null;
1185
+ createdAt?: Date | string;
1186
+ updatedAt?: Date | string;
1187
+ suspendedAt?: Date | string | null;
1188
+ lockedAt?: Date | string | null;
1189
+ forcePasswordReset?: boolean;
1190
+ mfaRequired?: boolean;
1191
+ failedLoginCount?: number;
1192
+ lastActiveAt?: Date | string | null;
1193
+ invitedById?: string | null;
1194
+ acceptedInviteAt?: Date | string | null;
1195
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
1196
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
1197
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
1198
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
1199
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
1200
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
1201
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
1202
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
1203
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1204
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1205
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1206
+ };
1207
+ export type UserUncheckedCreateWithoutSessionsInput = {
1208
+ id?: string;
1209
+ email: string;
1210
+ name: string;
1211
+ avatarUrl?: string | null;
1212
+ role?: $Enums.UserRole;
1213
+ passwordHash?: string | null;
1214
+ totpSecret?: string | null;
1215
+ totpEnabled?: boolean;
1216
+ lastTotpStep?: number | null;
1217
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1218
+ authProvider?: string | null;
1219
+ isActive?: boolean;
1220
+ isApproved?: boolean;
1221
+ emailVerified?: boolean;
1222
+ lastLoginAt?: Date | string | null;
1223
+ createdAt?: Date | string;
1224
+ updatedAt?: Date | string;
1225
+ suspendedAt?: Date | string | null;
1226
+ lockedAt?: Date | string | null;
1227
+ forcePasswordReset?: boolean;
1228
+ mfaRequired?: boolean;
1229
+ failedLoginCount?: number;
1230
+ lastActiveAt?: Date | string | null;
1231
+ invitedById?: string | null;
1232
+ acceptedInviteAt?: Date | string | null;
1233
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
1234
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
1235
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
1236
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
1237
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
1238
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
1239
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
1240
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
1241
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1242
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1243
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1244
+ };
1245
+ export type UserCreateOrConnectWithoutSessionsInput = {
1246
+ where: Prisma.UserWhereUniqueInput;
1247
+ create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>;
1248
+ };
1249
+ export type UserUpsertWithoutSessionsInput = {
1250
+ update: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>;
1251
+ create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>;
1252
+ where?: Prisma.UserWhereInput;
1253
+ };
1254
+ export type UserUpdateToOneWithWhereWithoutSessionsInput = {
1255
+ where?: Prisma.UserWhereInput;
1256
+ data: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>;
1257
+ };
1258
+ export type UserUpdateWithoutSessionsInput = {
1259
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1260
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1261
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1262
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1263
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1264
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1265
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1266
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1267
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1268
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1269
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1270
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1271
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1272
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1273
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1274
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1275
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1276
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1277
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1278
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1279
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1280
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1281
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1282
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1283
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1284
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
1285
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
1286
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
1287
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
1288
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
1289
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
1290
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
1291
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
1292
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1293
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1294
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1295
+ };
1296
+ export type UserUncheckedUpdateWithoutSessionsInput = {
1297
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1298
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1299
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1300
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1301
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1302
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1303
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1304
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1305
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1306
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1307
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1308
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1309
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1310
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1311
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1312
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1313
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1314
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1315
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1316
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1317
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1318
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1319
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1320
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1321
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1322
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
1323
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
1324
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
1325
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
1326
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
1327
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
1328
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
1329
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
1330
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1331
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1332
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1333
+ };
1334
+ export type UserCreateWithoutApiKeysInput = {
1335
+ id?: string;
1336
+ email: string;
1337
+ name: string;
1338
+ avatarUrl?: string | null;
1339
+ role?: $Enums.UserRole;
1340
+ passwordHash?: string | null;
1341
+ totpSecret?: string | null;
1342
+ totpEnabled?: boolean;
1343
+ lastTotpStep?: number | null;
1344
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1345
+ authProvider?: string | null;
1346
+ isActive?: boolean;
1347
+ isApproved?: boolean;
1348
+ emailVerified?: boolean;
1349
+ lastLoginAt?: Date | string | null;
1350
+ createdAt?: Date | string;
1351
+ updatedAt?: Date | string;
1352
+ suspendedAt?: Date | string | null;
1353
+ lockedAt?: Date | string | null;
1354
+ forcePasswordReset?: boolean;
1355
+ mfaRequired?: boolean;
1356
+ failedLoginCount?: number;
1357
+ lastActiveAt?: Date | string | null;
1358
+ invitedById?: string | null;
1359
+ acceptedInviteAt?: Date | string | null;
1360
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
1361
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
1362
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
1363
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
1364
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
1365
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
1366
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
1367
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
1368
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1369
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1370
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1371
+ };
1372
+ export type UserUncheckedCreateWithoutApiKeysInput = {
1373
+ id?: string;
1374
+ email: string;
1375
+ name: string;
1376
+ avatarUrl?: string | null;
1377
+ role?: $Enums.UserRole;
1378
+ passwordHash?: string | null;
1379
+ totpSecret?: string | null;
1380
+ totpEnabled?: boolean;
1381
+ lastTotpStep?: number | null;
1382
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1383
+ authProvider?: string | null;
1384
+ isActive?: boolean;
1385
+ isApproved?: boolean;
1386
+ emailVerified?: boolean;
1387
+ lastLoginAt?: Date | string | null;
1388
+ createdAt?: Date | string;
1389
+ updatedAt?: Date | string;
1390
+ suspendedAt?: Date | string | null;
1391
+ lockedAt?: Date | string | null;
1392
+ forcePasswordReset?: boolean;
1393
+ mfaRequired?: boolean;
1394
+ failedLoginCount?: number;
1395
+ lastActiveAt?: Date | string | null;
1396
+ invitedById?: string | null;
1397
+ acceptedInviteAt?: Date | string | null;
1398
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
1399
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
1400
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
1401
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
1402
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
1403
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
1404
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
1405
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
1406
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1407
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1408
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1409
+ };
1410
+ export type UserCreateOrConnectWithoutApiKeysInput = {
1411
+ where: Prisma.UserWhereUniqueInput;
1412
+ create: Prisma.XOR<Prisma.UserCreateWithoutApiKeysInput, Prisma.UserUncheckedCreateWithoutApiKeysInput>;
1413
+ };
1414
+ export type UserUpsertWithoutApiKeysInput = {
1415
+ update: Prisma.XOR<Prisma.UserUpdateWithoutApiKeysInput, Prisma.UserUncheckedUpdateWithoutApiKeysInput>;
1416
+ create: Prisma.XOR<Prisma.UserCreateWithoutApiKeysInput, Prisma.UserUncheckedCreateWithoutApiKeysInput>;
1417
+ where?: Prisma.UserWhereInput;
1418
+ };
1419
+ export type UserUpdateToOneWithWhereWithoutApiKeysInput = {
1420
+ where?: Prisma.UserWhereInput;
1421
+ data: Prisma.XOR<Prisma.UserUpdateWithoutApiKeysInput, Prisma.UserUncheckedUpdateWithoutApiKeysInput>;
1422
+ };
1423
+ export type UserUpdateWithoutApiKeysInput = {
1424
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1425
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1426
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1427
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1428
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1429
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1430
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1431
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1432
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1433
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1434
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1435
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1436
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1437
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1438
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1439
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1440
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1441
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1442
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1443
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1444
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1445
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1446
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1447
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1448
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1449
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1450
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
1451
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
1452
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
1453
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
1454
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
1455
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
1456
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
1457
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1458
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1459
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1460
+ };
1461
+ export type UserUncheckedUpdateWithoutApiKeysInput = {
1462
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1463
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1464
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1465
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1466
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1467
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1468
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1469
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1470
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1471
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1472
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1473
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1474
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1475
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1476
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1477
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1478
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1479
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1480
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1481
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1482
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1483
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1484
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1485
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1486
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1487
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1488
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
1489
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
1490
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
1491
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
1492
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
1493
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
1494
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
1495
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1496
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1497
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1498
+ };
1499
+ export type UserCreateWithoutDocumentsInput = {
1500
+ id?: string;
1501
+ email: string;
1502
+ name: string;
1503
+ avatarUrl?: string | null;
1504
+ role?: $Enums.UserRole;
1505
+ passwordHash?: string | null;
1506
+ totpSecret?: string | null;
1507
+ totpEnabled?: boolean;
1508
+ lastTotpStep?: number | null;
1509
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1510
+ authProvider?: string | null;
1511
+ isActive?: boolean;
1512
+ isApproved?: boolean;
1513
+ emailVerified?: boolean;
1514
+ lastLoginAt?: Date | string | null;
1515
+ createdAt?: Date | string;
1516
+ updatedAt?: Date | string;
1517
+ suspendedAt?: Date | string | null;
1518
+ lockedAt?: Date | string | null;
1519
+ forcePasswordReset?: boolean;
1520
+ mfaRequired?: boolean;
1521
+ failedLoginCount?: number;
1522
+ lastActiveAt?: Date | string | null;
1523
+ invitedById?: string | null;
1524
+ acceptedInviteAt?: Date | string | null;
1525
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
1526
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
1527
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
1528
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
1529
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
1530
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
1531
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
1532
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
1533
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1534
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1535
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1536
+ };
1537
+ export type UserUncheckedCreateWithoutDocumentsInput = {
1538
+ id?: string;
1539
+ email: string;
1540
+ name: string;
1541
+ avatarUrl?: string | null;
1542
+ role?: $Enums.UserRole;
1543
+ passwordHash?: string | null;
1544
+ totpSecret?: string | null;
1545
+ totpEnabled?: boolean;
1546
+ lastTotpStep?: number | null;
1547
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1548
+ authProvider?: string | null;
1549
+ isActive?: boolean;
1550
+ isApproved?: boolean;
1551
+ emailVerified?: boolean;
1552
+ lastLoginAt?: Date | string | null;
1553
+ createdAt?: Date | string;
1554
+ updatedAt?: Date | string;
1555
+ suspendedAt?: Date | string | null;
1556
+ lockedAt?: Date | string | null;
1557
+ forcePasswordReset?: boolean;
1558
+ mfaRequired?: boolean;
1559
+ failedLoginCount?: number;
1560
+ lastActiveAt?: Date | string | null;
1561
+ invitedById?: string | null;
1562
+ acceptedInviteAt?: Date | string | null;
1563
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
1564
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
1565
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
1566
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
1567
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
1568
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
1569
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
1570
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
1571
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1572
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1573
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1574
+ };
1575
+ export type UserCreateOrConnectWithoutDocumentsInput = {
1576
+ where: Prisma.UserWhereUniqueInput;
1577
+ create: Prisma.XOR<Prisma.UserCreateWithoutDocumentsInput, Prisma.UserUncheckedCreateWithoutDocumentsInput>;
1578
+ };
1579
+ export type UserCreateWithoutUpdatedDocumentsInput = {
1580
+ id?: string;
1581
+ email: string;
1582
+ name: string;
1583
+ avatarUrl?: string | null;
1584
+ role?: $Enums.UserRole;
1585
+ passwordHash?: string | null;
1586
+ totpSecret?: string | null;
1587
+ totpEnabled?: boolean;
1588
+ lastTotpStep?: number | null;
1589
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1590
+ authProvider?: string | null;
1591
+ isActive?: boolean;
1592
+ isApproved?: boolean;
1593
+ emailVerified?: boolean;
1594
+ lastLoginAt?: Date | string | null;
1595
+ createdAt?: Date | string;
1596
+ updatedAt?: Date | string;
1597
+ suspendedAt?: Date | string | null;
1598
+ lockedAt?: Date | string | null;
1599
+ forcePasswordReset?: boolean;
1600
+ mfaRequired?: boolean;
1601
+ failedLoginCount?: number;
1602
+ lastActiveAt?: Date | string | null;
1603
+ invitedById?: string | null;
1604
+ acceptedInviteAt?: Date | string | null;
1605
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
1606
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
1607
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
1608
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
1609
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
1610
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
1611
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
1612
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
1613
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1614
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1615
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1616
+ };
1617
+ export type UserUncheckedCreateWithoutUpdatedDocumentsInput = {
1618
+ id?: string;
1619
+ email: string;
1620
+ name: string;
1621
+ avatarUrl?: string | null;
1622
+ role?: $Enums.UserRole;
1623
+ passwordHash?: string | null;
1624
+ totpSecret?: string | null;
1625
+ totpEnabled?: boolean;
1626
+ lastTotpStep?: number | null;
1627
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1628
+ authProvider?: string | null;
1629
+ isActive?: boolean;
1630
+ isApproved?: boolean;
1631
+ emailVerified?: boolean;
1632
+ lastLoginAt?: Date | string | null;
1633
+ createdAt?: Date | string;
1634
+ updatedAt?: Date | string;
1635
+ suspendedAt?: Date | string | null;
1636
+ lockedAt?: Date | string | null;
1637
+ forcePasswordReset?: boolean;
1638
+ mfaRequired?: boolean;
1639
+ failedLoginCount?: number;
1640
+ lastActiveAt?: Date | string | null;
1641
+ invitedById?: string | null;
1642
+ acceptedInviteAt?: Date | string | null;
1643
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
1644
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
1645
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
1646
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
1647
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
1648
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
1649
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
1650
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
1651
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1652
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1653
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1654
+ };
1655
+ export type UserCreateOrConnectWithoutUpdatedDocumentsInput = {
1656
+ where: Prisma.UserWhereUniqueInput;
1657
+ create: Prisma.XOR<Prisma.UserCreateWithoutUpdatedDocumentsInput, Prisma.UserUncheckedCreateWithoutUpdatedDocumentsInput>;
1658
+ };
1659
+ export type UserUpsertWithoutDocumentsInput = {
1660
+ update: Prisma.XOR<Prisma.UserUpdateWithoutDocumentsInput, Prisma.UserUncheckedUpdateWithoutDocumentsInput>;
1661
+ create: Prisma.XOR<Prisma.UserCreateWithoutDocumentsInput, Prisma.UserUncheckedCreateWithoutDocumentsInput>;
1662
+ where?: Prisma.UserWhereInput;
1663
+ };
1664
+ export type UserUpdateToOneWithWhereWithoutDocumentsInput = {
1665
+ where?: Prisma.UserWhereInput;
1666
+ data: Prisma.XOR<Prisma.UserUpdateWithoutDocumentsInput, Prisma.UserUncheckedUpdateWithoutDocumentsInput>;
1667
+ };
1668
+ export type UserUpdateWithoutDocumentsInput = {
1669
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1670
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1671
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1672
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1673
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1674
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1675
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1676
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1677
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1678
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1679
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1680
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1681
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1682
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1683
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1684
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1685
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1686
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1687
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1688
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1689
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1690
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1691
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1692
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1693
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1694
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1695
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
1696
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
1697
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
1698
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
1699
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
1700
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
1701
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
1702
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1703
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1704
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1705
+ };
1706
+ export type UserUncheckedUpdateWithoutDocumentsInput = {
1707
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1708
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1709
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1710
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1711
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1712
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1713
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1714
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1715
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1716
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1717
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1718
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1719
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1720
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1721
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1722
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1723
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1724
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1725
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1726
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1727
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1728
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1729
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1730
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1731
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1732
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1733
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
1734
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
1735
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
1736
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
1737
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
1738
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
1739
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
1740
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1741
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1742
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1743
+ };
1744
+ export type UserUpsertWithoutUpdatedDocumentsInput = {
1745
+ update: Prisma.XOR<Prisma.UserUpdateWithoutUpdatedDocumentsInput, Prisma.UserUncheckedUpdateWithoutUpdatedDocumentsInput>;
1746
+ create: Prisma.XOR<Prisma.UserCreateWithoutUpdatedDocumentsInput, Prisma.UserUncheckedCreateWithoutUpdatedDocumentsInput>;
1747
+ where?: Prisma.UserWhereInput;
1748
+ };
1749
+ export type UserUpdateToOneWithWhereWithoutUpdatedDocumentsInput = {
1750
+ where?: Prisma.UserWhereInput;
1751
+ data: Prisma.XOR<Prisma.UserUpdateWithoutUpdatedDocumentsInput, Prisma.UserUncheckedUpdateWithoutUpdatedDocumentsInput>;
1752
+ };
1753
+ export type UserUpdateWithoutUpdatedDocumentsInput = {
1754
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1755
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1756
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1757
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1758
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1759
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1760
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1761
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1762
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1763
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1764
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1765
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1766
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1767
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1768
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1769
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1770
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1771
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1772
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1773
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1774
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1775
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1776
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1777
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1778
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1779
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1780
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
1781
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
1782
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
1783
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
1784
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
1785
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
1786
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
1787
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1788
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1789
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1790
+ };
1791
+ export type UserUncheckedUpdateWithoutUpdatedDocumentsInput = {
1792
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1793
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1794
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1795
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1796
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1797
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1798
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1799
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1800
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1801
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1802
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1803
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1804
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1805
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1806
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1807
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1808
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1809
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1810
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1811
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1812
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1813
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1814
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1815
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1816
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1817
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1818
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
1819
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
1820
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
1821
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
1822
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
1823
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
1824
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
1825
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1826
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1827
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1828
+ };
1829
+ export type UserCreateWithoutVersionsInput = {
1830
+ id?: string;
1831
+ email: string;
1832
+ name: string;
1833
+ avatarUrl?: string | null;
1834
+ role?: $Enums.UserRole;
1835
+ passwordHash?: string | null;
1836
+ totpSecret?: string | null;
1837
+ totpEnabled?: boolean;
1838
+ lastTotpStep?: number | null;
1839
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1840
+ authProvider?: string | null;
1841
+ isActive?: boolean;
1842
+ isApproved?: boolean;
1843
+ emailVerified?: boolean;
1844
+ lastLoginAt?: Date | string | null;
1845
+ createdAt?: Date | string;
1846
+ updatedAt?: Date | string;
1847
+ suspendedAt?: Date | string | null;
1848
+ lockedAt?: Date | string | null;
1849
+ forcePasswordReset?: boolean;
1850
+ mfaRequired?: boolean;
1851
+ failedLoginCount?: number;
1852
+ lastActiveAt?: Date | string | null;
1853
+ invitedById?: string | null;
1854
+ acceptedInviteAt?: Date | string | null;
1855
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
1856
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
1857
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
1858
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
1859
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
1860
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
1861
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
1862
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
1863
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
1864
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
1865
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
1866
+ };
1867
+ export type UserUncheckedCreateWithoutVersionsInput = {
1868
+ id?: string;
1869
+ email: string;
1870
+ name: string;
1871
+ avatarUrl?: string | null;
1872
+ role?: $Enums.UserRole;
1873
+ passwordHash?: string | null;
1874
+ totpSecret?: string | null;
1875
+ totpEnabled?: boolean;
1876
+ lastTotpStep?: number | null;
1877
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1878
+ authProvider?: string | null;
1879
+ isActive?: boolean;
1880
+ isApproved?: boolean;
1881
+ emailVerified?: boolean;
1882
+ lastLoginAt?: Date | string | null;
1883
+ createdAt?: Date | string;
1884
+ updatedAt?: Date | string;
1885
+ suspendedAt?: Date | string | null;
1886
+ lockedAt?: Date | string | null;
1887
+ forcePasswordReset?: boolean;
1888
+ mfaRequired?: boolean;
1889
+ failedLoginCount?: number;
1890
+ lastActiveAt?: Date | string | null;
1891
+ invitedById?: string | null;
1892
+ acceptedInviteAt?: Date | string | null;
1893
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
1894
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
1895
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
1896
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
1897
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
1898
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
1899
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
1900
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
1901
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
1902
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
1903
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
1904
+ };
1905
+ export type UserCreateOrConnectWithoutVersionsInput = {
1906
+ where: Prisma.UserWhereUniqueInput;
1907
+ create: Prisma.XOR<Prisma.UserCreateWithoutVersionsInput, Prisma.UserUncheckedCreateWithoutVersionsInput>;
1908
+ };
1909
+ export type UserUpsertWithoutVersionsInput = {
1910
+ update: Prisma.XOR<Prisma.UserUpdateWithoutVersionsInput, Prisma.UserUncheckedUpdateWithoutVersionsInput>;
1911
+ create: Prisma.XOR<Prisma.UserCreateWithoutVersionsInput, Prisma.UserUncheckedCreateWithoutVersionsInput>;
1912
+ where?: Prisma.UserWhereInput;
1913
+ };
1914
+ export type UserUpdateToOneWithWhereWithoutVersionsInput = {
1915
+ where?: Prisma.UserWhereInput;
1916
+ data: Prisma.XOR<Prisma.UserUpdateWithoutVersionsInput, Prisma.UserUncheckedUpdateWithoutVersionsInput>;
1917
+ };
1918
+ export type UserUpdateWithoutVersionsInput = {
1919
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1920
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1921
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1922
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1923
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1924
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1925
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1926
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1927
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1928
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1929
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1930
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1931
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1932
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1933
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1934
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1935
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1936
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1937
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1938
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1939
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1940
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1941
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1942
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1943
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1944
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
1945
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
1946
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
1947
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
1948
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
1949
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
1950
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
1951
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
1952
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
1953
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
1954
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
1955
+ };
1956
+ export type UserUncheckedUpdateWithoutVersionsInput = {
1957
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1958
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
1959
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1960
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1961
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
1962
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1963
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1964
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1965
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1966
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1967
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1968
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1969
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1970
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1971
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1972
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1973
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1974
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1975
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1976
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1977
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1978
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
1979
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1980
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1981
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1982
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
1983
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
1984
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
1985
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
1986
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
1987
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
1988
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
1989
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
1990
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
1991
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
1992
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
1993
+ };
1994
+ export type UserCreateWithoutMediaInput = {
1995
+ id?: string;
1996
+ email: string;
1997
+ name: string;
1998
+ avatarUrl?: string | null;
1999
+ role?: $Enums.UserRole;
2000
+ passwordHash?: string | null;
2001
+ totpSecret?: string | null;
2002
+ totpEnabled?: boolean;
2003
+ lastTotpStep?: number | null;
2004
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2005
+ authProvider?: string | null;
2006
+ isActive?: boolean;
2007
+ isApproved?: boolean;
2008
+ emailVerified?: boolean;
2009
+ lastLoginAt?: Date | string | null;
2010
+ createdAt?: Date | string;
2011
+ updatedAt?: Date | string;
2012
+ suspendedAt?: Date | string | null;
2013
+ lockedAt?: Date | string | null;
2014
+ forcePasswordReset?: boolean;
2015
+ mfaRequired?: boolean;
2016
+ failedLoginCount?: number;
2017
+ lastActiveAt?: Date | string | null;
2018
+ invitedById?: string | null;
2019
+ acceptedInviteAt?: Date | string | null;
2020
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
2021
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
2022
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
2023
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
2024
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
2025
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
2026
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
2027
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2028
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2029
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2030
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2031
+ };
2032
+ export type UserUncheckedCreateWithoutMediaInput = {
2033
+ id?: string;
2034
+ email: string;
2035
+ name: string;
2036
+ avatarUrl?: string | null;
2037
+ role?: $Enums.UserRole;
2038
+ passwordHash?: string | null;
2039
+ totpSecret?: string | null;
2040
+ totpEnabled?: boolean;
2041
+ lastTotpStep?: number | null;
2042
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2043
+ authProvider?: string | null;
2044
+ isActive?: boolean;
2045
+ isApproved?: boolean;
2046
+ emailVerified?: boolean;
2047
+ lastLoginAt?: Date | string | null;
2048
+ createdAt?: Date | string;
2049
+ updatedAt?: Date | string;
2050
+ suspendedAt?: Date | string | null;
2051
+ lockedAt?: Date | string | null;
2052
+ forcePasswordReset?: boolean;
2053
+ mfaRequired?: boolean;
2054
+ failedLoginCount?: number;
2055
+ lastActiveAt?: Date | string | null;
2056
+ invitedById?: string | null;
2057
+ acceptedInviteAt?: Date | string | null;
2058
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
2059
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
2060
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
2061
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
2062
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
2063
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
2064
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
2065
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2066
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2067
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2068
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2069
+ };
2070
+ export type UserCreateOrConnectWithoutMediaInput = {
2071
+ where: Prisma.UserWhereUniqueInput;
2072
+ create: Prisma.XOR<Prisma.UserCreateWithoutMediaInput, Prisma.UserUncheckedCreateWithoutMediaInput>;
2073
+ };
2074
+ export type UserUpsertWithoutMediaInput = {
2075
+ update: Prisma.XOR<Prisma.UserUpdateWithoutMediaInput, Prisma.UserUncheckedUpdateWithoutMediaInput>;
2076
+ create: Prisma.XOR<Prisma.UserCreateWithoutMediaInput, Prisma.UserUncheckedCreateWithoutMediaInput>;
2077
+ where?: Prisma.UserWhereInput;
2078
+ };
2079
+ export type UserUpdateToOneWithWhereWithoutMediaInput = {
2080
+ where?: Prisma.UserWhereInput;
2081
+ data: Prisma.XOR<Prisma.UserUpdateWithoutMediaInput, Prisma.UserUncheckedUpdateWithoutMediaInput>;
2082
+ };
2083
+ export type UserUpdateWithoutMediaInput = {
2084
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2085
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2086
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2087
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2088
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2089
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2090
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2091
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2092
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2093
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2094
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2095
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2096
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2097
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2098
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2099
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2100
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2101
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2102
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2103
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2104
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2105
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2106
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2107
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2108
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2109
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
2110
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
2111
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
2112
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
2113
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
2114
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
2115
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
2116
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2117
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2118
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2119
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2120
+ };
2121
+ export type UserUncheckedUpdateWithoutMediaInput = {
2122
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2123
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2124
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2125
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2126
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2127
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2128
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2129
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2130
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2131
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2132
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2133
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2134
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2135
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2136
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2137
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2138
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2139
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2140
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2141
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2142
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2143
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2144
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2145
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2146
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2147
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
2148
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
2149
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
2150
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
2151
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
2152
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
2153
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
2154
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2155
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2156
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2157
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2158
+ };
2159
+ export type UserCreateWithoutContentLocksInput = {
2160
+ id?: string;
2161
+ email: string;
2162
+ name: string;
2163
+ avatarUrl?: string | null;
2164
+ role?: $Enums.UserRole;
2165
+ passwordHash?: string | null;
2166
+ totpSecret?: string | null;
2167
+ totpEnabled?: boolean;
2168
+ lastTotpStep?: number | null;
2169
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2170
+ authProvider?: string | null;
2171
+ isActive?: boolean;
2172
+ isApproved?: boolean;
2173
+ emailVerified?: boolean;
2174
+ lastLoginAt?: Date | string | null;
2175
+ createdAt?: Date | string;
2176
+ updatedAt?: Date | string;
2177
+ suspendedAt?: Date | string | null;
2178
+ lockedAt?: Date | string | null;
2179
+ forcePasswordReset?: boolean;
2180
+ mfaRequired?: boolean;
2181
+ failedLoginCount?: number;
2182
+ lastActiveAt?: Date | string | null;
2183
+ invitedById?: string | null;
2184
+ acceptedInviteAt?: Date | string | null;
2185
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
2186
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
2187
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
2188
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
2189
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
2190
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
2191
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
2192
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2193
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2194
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2195
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2196
+ };
2197
+ export type UserUncheckedCreateWithoutContentLocksInput = {
2198
+ id?: string;
2199
+ email: string;
2200
+ name: string;
2201
+ avatarUrl?: string | null;
2202
+ role?: $Enums.UserRole;
2203
+ passwordHash?: string | null;
2204
+ totpSecret?: string | null;
2205
+ totpEnabled?: boolean;
2206
+ lastTotpStep?: number | null;
2207
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2208
+ authProvider?: string | null;
2209
+ isActive?: boolean;
2210
+ isApproved?: boolean;
2211
+ emailVerified?: boolean;
2212
+ lastLoginAt?: Date | string | null;
2213
+ createdAt?: Date | string;
2214
+ updatedAt?: Date | string;
2215
+ suspendedAt?: Date | string | null;
2216
+ lockedAt?: Date | string | null;
2217
+ forcePasswordReset?: boolean;
2218
+ mfaRequired?: boolean;
2219
+ failedLoginCount?: number;
2220
+ lastActiveAt?: Date | string | null;
2221
+ invitedById?: string | null;
2222
+ acceptedInviteAt?: Date | string | null;
2223
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
2224
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
2225
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
2226
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
2227
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
2228
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
2229
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
2230
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2231
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2232
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2233
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2234
+ };
2235
+ export type UserCreateOrConnectWithoutContentLocksInput = {
2236
+ where: Prisma.UserWhereUniqueInput;
2237
+ create: Prisma.XOR<Prisma.UserCreateWithoutContentLocksInput, Prisma.UserUncheckedCreateWithoutContentLocksInput>;
2238
+ };
2239
+ export type UserUpsertWithoutContentLocksInput = {
2240
+ update: Prisma.XOR<Prisma.UserUpdateWithoutContentLocksInput, Prisma.UserUncheckedUpdateWithoutContentLocksInput>;
2241
+ create: Prisma.XOR<Prisma.UserCreateWithoutContentLocksInput, Prisma.UserUncheckedCreateWithoutContentLocksInput>;
2242
+ where?: Prisma.UserWhereInput;
2243
+ };
2244
+ export type UserUpdateToOneWithWhereWithoutContentLocksInput = {
2245
+ where?: Prisma.UserWhereInput;
2246
+ data: Prisma.XOR<Prisma.UserUpdateWithoutContentLocksInput, Prisma.UserUncheckedUpdateWithoutContentLocksInput>;
2247
+ };
2248
+ export type UserUpdateWithoutContentLocksInput = {
2249
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2250
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2251
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2252
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2253
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2254
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2255
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2256
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2257
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2258
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2259
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2260
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2261
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2262
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2263
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2264
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2265
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2266
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2267
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2268
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2269
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2270
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2271
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2272
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2273
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2274
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
2275
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
2276
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
2277
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
2278
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
2279
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
2280
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
2281
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2282
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2283
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2284
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2285
+ };
2286
+ export type UserUncheckedUpdateWithoutContentLocksInput = {
2287
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2288
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2289
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2290
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2291
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2292
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2293
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2294
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2295
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2296
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2297
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2298
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2299
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2300
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2301
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2302
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2303
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2304
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2305
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2306
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2307
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2308
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2309
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2310
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2311
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2312
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
2313
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
2314
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
2315
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
2316
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
2317
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
2318
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
2319
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2320
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2321
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2322
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2323
+ };
2324
+ export type UserCreateWithoutNotificationsInput = {
2325
+ id?: string;
2326
+ email: string;
2327
+ name: string;
2328
+ avatarUrl?: string | null;
2329
+ role?: $Enums.UserRole;
2330
+ passwordHash?: string | null;
2331
+ totpSecret?: string | null;
2332
+ totpEnabled?: boolean;
2333
+ lastTotpStep?: number | null;
2334
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2335
+ authProvider?: string | null;
2336
+ isActive?: boolean;
2337
+ isApproved?: boolean;
2338
+ emailVerified?: boolean;
2339
+ lastLoginAt?: Date | string | null;
2340
+ createdAt?: Date | string;
2341
+ updatedAt?: Date | string;
2342
+ suspendedAt?: Date | string | null;
2343
+ lockedAt?: Date | string | null;
2344
+ forcePasswordReset?: boolean;
2345
+ mfaRequired?: boolean;
2346
+ failedLoginCount?: number;
2347
+ lastActiveAt?: Date | string | null;
2348
+ invitedById?: string | null;
2349
+ acceptedInviteAt?: Date | string | null;
2350
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
2351
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
2352
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
2353
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
2354
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
2355
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
2356
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
2357
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
2358
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2359
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2360
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2361
+ };
2362
+ export type UserUncheckedCreateWithoutNotificationsInput = {
2363
+ id?: string;
2364
+ email: string;
2365
+ name: string;
2366
+ avatarUrl?: string | null;
2367
+ role?: $Enums.UserRole;
2368
+ passwordHash?: string | null;
2369
+ totpSecret?: string | null;
2370
+ totpEnabled?: boolean;
2371
+ lastTotpStep?: number | null;
2372
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2373
+ authProvider?: string | null;
2374
+ isActive?: boolean;
2375
+ isApproved?: boolean;
2376
+ emailVerified?: boolean;
2377
+ lastLoginAt?: Date | string | null;
2378
+ createdAt?: Date | string;
2379
+ updatedAt?: Date | string;
2380
+ suspendedAt?: Date | string | null;
2381
+ lockedAt?: Date | string | null;
2382
+ forcePasswordReset?: boolean;
2383
+ mfaRequired?: boolean;
2384
+ failedLoginCount?: number;
2385
+ lastActiveAt?: Date | string | null;
2386
+ invitedById?: string | null;
2387
+ acceptedInviteAt?: Date | string | null;
2388
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
2389
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
2390
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
2391
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
2392
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
2393
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
2394
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
2395
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
2396
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2397
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2398
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2399
+ };
2400
+ export type UserCreateOrConnectWithoutNotificationsInput = {
2401
+ where: Prisma.UserWhereUniqueInput;
2402
+ create: Prisma.XOR<Prisma.UserCreateWithoutNotificationsInput, Prisma.UserUncheckedCreateWithoutNotificationsInput>;
2403
+ };
2404
+ export type UserUpsertWithoutNotificationsInput = {
2405
+ update: Prisma.XOR<Prisma.UserUpdateWithoutNotificationsInput, Prisma.UserUncheckedUpdateWithoutNotificationsInput>;
2406
+ create: Prisma.XOR<Prisma.UserCreateWithoutNotificationsInput, Prisma.UserUncheckedCreateWithoutNotificationsInput>;
2407
+ where?: Prisma.UserWhereInput;
2408
+ };
2409
+ export type UserUpdateToOneWithWhereWithoutNotificationsInput = {
2410
+ where?: Prisma.UserWhereInput;
2411
+ data: Prisma.XOR<Prisma.UserUpdateWithoutNotificationsInput, Prisma.UserUncheckedUpdateWithoutNotificationsInput>;
2412
+ };
2413
+ export type UserUpdateWithoutNotificationsInput = {
2414
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2415
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2416
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2417
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2418
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2419
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2420
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2421
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2422
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2423
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2424
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2425
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2426
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2427
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2428
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2429
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2430
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2431
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2432
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2433
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2434
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2435
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2436
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2437
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2438
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2439
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
2440
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
2441
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
2442
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
2443
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
2444
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
2445
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
2446
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
2447
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2448
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2449
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2450
+ };
2451
+ export type UserUncheckedUpdateWithoutNotificationsInput = {
2452
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2453
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2454
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2455
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2456
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2457
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2458
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2459
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2460
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2461
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2462
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2463
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2464
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2465
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2466
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2467
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2468
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2469
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2470
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2471
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2472
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2473
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2474
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2475
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2476
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2477
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
2478
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
2479
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
2480
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
2481
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
2482
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
2483
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
2484
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
2485
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2486
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2487
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2488
+ };
2489
+ export type UserCreateWithoutContentTemplatesInput = {
2490
+ id?: string;
2491
+ email: string;
2492
+ name: string;
2493
+ avatarUrl?: string | null;
2494
+ role?: $Enums.UserRole;
2495
+ passwordHash?: string | null;
2496
+ totpSecret?: string | null;
2497
+ totpEnabled?: boolean;
2498
+ lastTotpStep?: number | null;
2499
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2500
+ authProvider?: string | null;
2501
+ isActive?: boolean;
2502
+ isApproved?: boolean;
2503
+ emailVerified?: boolean;
2504
+ lastLoginAt?: Date | string | null;
2505
+ createdAt?: Date | string;
2506
+ updatedAt?: Date | string;
2507
+ suspendedAt?: Date | string | null;
2508
+ lockedAt?: Date | string | null;
2509
+ forcePasswordReset?: boolean;
2510
+ mfaRequired?: boolean;
2511
+ failedLoginCount?: number;
2512
+ lastActiveAt?: Date | string | null;
2513
+ invitedById?: string | null;
2514
+ acceptedInviteAt?: Date | string | null;
2515
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
2516
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
2517
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
2518
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
2519
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
2520
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
2521
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
2522
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
2523
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2524
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2525
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2526
+ };
2527
+ export type UserUncheckedCreateWithoutContentTemplatesInput = {
2528
+ id?: string;
2529
+ email: string;
2530
+ name: string;
2531
+ avatarUrl?: string | null;
2532
+ role?: $Enums.UserRole;
2533
+ passwordHash?: string | null;
2534
+ totpSecret?: string | null;
2535
+ totpEnabled?: boolean;
2536
+ lastTotpStep?: number | null;
2537
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2538
+ authProvider?: string | null;
2539
+ isActive?: boolean;
2540
+ isApproved?: boolean;
2541
+ emailVerified?: boolean;
2542
+ lastLoginAt?: Date | string | null;
2543
+ createdAt?: Date | string;
2544
+ updatedAt?: Date | string;
2545
+ suspendedAt?: Date | string | null;
2546
+ lockedAt?: Date | string | null;
2547
+ forcePasswordReset?: boolean;
2548
+ mfaRequired?: boolean;
2549
+ failedLoginCount?: number;
2550
+ lastActiveAt?: Date | string | null;
2551
+ invitedById?: string | null;
2552
+ acceptedInviteAt?: Date | string | null;
2553
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
2554
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
2555
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
2556
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
2557
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
2558
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
2559
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
2560
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
2561
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2562
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2563
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2564
+ };
2565
+ export type UserCreateOrConnectWithoutContentTemplatesInput = {
2566
+ where: Prisma.UserWhereUniqueInput;
2567
+ create: Prisma.XOR<Prisma.UserCreateWithoutContentTemplatesInput, Prisma.UserUncheckedCreateWithoutContentTemplatesInput>;
2568
+ };
2569
+ export type UserUpsertWithoutContentTemplatesInput = {
2570
+ update: Prisma.XOR<Prisma.UserUpdateWithoutContentTemplatesInput, Prisma.UserUncheckedUpdateWithoutContentTemplatesInput>;
2571
+ create: Prisma.XOR<Prisma.UserCreateWithoutContentTemplatesInput, Prisma.UserUncheckedCreateWithoutContentTemplatesInput>;
2572
+ where?: Prisma.UserWhereInput;
2573
+ };
2574
+ export type UserUpdateToOneWithWhereWithoutContentTemplatesInput = {
2575
+ where?: Prisma.UserWhereInput;
2576
+ data: Prisma.XOR<Prisma.UserUpdateWithoutContentTemplatesInput, Prisma.UserUncheckedUpdateWithoutContentTemplatesInput>;
2577
+ };
2578
+ export type UserUpdateWithoutContentTemplatesInput = {
2579
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2580
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2581
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2582
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2583
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2584
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2585
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2586
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2587
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2588
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2589
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2590
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2591
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2592
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2593
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2594
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2595
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2596
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2597
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2598
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2599
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2600
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2601
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2602
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2603
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2604
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
2605
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
2606
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
2607
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
2608
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
2609
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
2610
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
2611
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
2612
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2613
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2614
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2615
+ };
2616
+ export type UserUncheckedUpdateWithoutContentTemplatesInput = {
2617
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2618
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2619
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2620
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2621
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2622
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2623
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2624
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2625
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2626
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2627
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2628
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2629
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2630
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2631
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2632
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2633
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2634
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2635
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2636
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2637
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2638
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2639
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2640
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2641
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2642
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
2643
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
2644
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
2645
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
2646
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
2647
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
2648
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
2649
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
2650
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2651
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2652
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2653
+ };
2654
+ export type UserCreateWithoutWorkflowAssignedInput = {
2655
+ id?: string;
2656
+ email: string;
2657
+ name: string;
2658
+ avatarUrl?: string | null;
2659
+ role?: $Enums.UserRole;
2660
+ passwordHash?: string | null;
2661
+ totpSecret?: string | null;
2662
+ totpEnabled?: boolean;
2663
+ lastTotpStep?: number | null;
2664
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2665
+ authProvider?: string | null;
2666
+ isActive?: boolean;
2667
+ isApproved?: boolean;
2668
+ emailVerified?: boolean;
2669
+ lastLoginAt?: Date | string | null;
2670
+ createdAt?: Date | string;
2671
+ updatedAt?: Date | string;
2672
+ suspendedAt?: Date | string | null;
2673
+ lockedAt?: Date | string | null;
2674
+ forcePasswordReset?: boolean;
2675
+ mfaRequired?: boolean;
2676
+ failedLoginCount?: number;
2677
+ lastActiveAt?: Date | string | null;
2678
+ invitedById?: string | null;
2679
+ acceptedInviteAt?: Date | string | null;
2680
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
2681
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
2682
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
2683
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
2684
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
2685
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
2686
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
2687
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
2688
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2689
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2690
+ passwordResetTokens?: Prisma.PasswordResetTokenCreateNestedManyWithoutUserInput;
2691
+ };
2692
+ export type UserUncheckedCreateWithoutWorkflowAssignedInput = {
2693
+ id?: string;
2694
+ email: string;
2695
+ name: string;
2696
+ avatarUrl?: string | null;
2697
+ role?: $Enums.UserRole;
2698
+ passwordHash?: string | null;
2699
+ totpSecret?: string | null;
2700
+ totpEnabled?: boolean;
2701
+ lastTotpStep?: number | null;
2702
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2703
+ authProvider?: string | null;
2704
+ isActive?: boolean;
2705
+ isApproved?: boolean;
2706
+ emailVerified?: boolean;
2707
+ lastLoginAt?: Date | string | null;
2708
+ createdAt?: Date | string;
2709
+ updatedAt?: Date | string;
2710
+ suspendedAt?: Date | string | null;
2711
+ lockedAt?: Date | string | null;
2712
+ forcePasswordReset?: boolean;
2713
+ mfaRequired?: boolean;
2714
+ failedLoginCount?: number;
2715
+ lastActiveAt?: Date | string | null;
2716
+ invitedById?: string | null;
2717
+ acceptedInviteAt?: Date | string | null;
2718
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
2719
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
2720
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
2721
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
2722
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
2723
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
2724
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
2725
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
2726
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2727
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2728
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedCreateNestedManyWithoutUserInput;
2729
+ };
2730
+ export type UserCreateOrConnectWithoutWorkflowAssignedInput = {
2731
+ where: Prisma.UserWhereUniqueInput;
2732
+ create: Prisma.XOR<Prisma.UserCreateWithoutWorkflowAssignedInput, Prisma.UserUncheckedCreateWithoutWorkflowAssignedInput>;
2733
+ };
2734
+ export type UserUpsertWithoutWorkflowAssignedInput = {
2735
+ update: Prisma.XOR<Prisma.UserUpdateWithoutWorkflowAssignedInput, Prisma.UserUncheckedUpdateWithoutWorkflowAssignedInput>;
2736
+ create: Prisma.XOR<Prisma.UserCreateWithoutWorkflowAssignedInput, Prisma.UserUncheckedCreateWithoutWorkflowAssignedInput>;
2737
+ where?: Prisma.UserWhereInput;
2738
+ };
2739
+ export type UserUpdateToOneWithWhereWithoutWorkflowAssignedInput = {
2740
+ where?: Prisma.UserWhereInput;
2741
+ data: Prisma.XOR<Prisma.UserUpdateWithoutWorkflowAssignedInput, Prisma.UserUncheckedUpdateWithoutWorkflowAssignedInput>;
2742
+ };
2743
+ export type UserUpdateWithoutWorkflowAssignedInput = {
2744
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2745
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2746
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2747
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2748
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2749
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2750
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2751
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2752
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2753
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2754
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2755
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2756
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2757
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2758
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2759
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2760
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2761
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2762
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2763
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2764
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2765
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2766
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2767
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2768
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2769
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
2770
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
2771
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
2772
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
2773
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
2774
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
2775
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
2776
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
2777
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2778
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2779
+ passwordResetTokens?: Prisma.PasswordResetTokenUpdateManyWithoutUserNestedInput;
2780
+ };
2781
+ export type UserUncheckedUpdateWithoutWorkflowAssignedInput = {
2782
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2783
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2784
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2785
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2786
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2787
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2788
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2789
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2790
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2791
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2792
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2793
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2794
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2795
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2796
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2797
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2798
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2799
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2800
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2801
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2802
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2803
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2804
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2805
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2806
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2807
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
2808
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
2809
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
2810
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
2811
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
2812
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
2813
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
2814
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
2815
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2816
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2817
+ passwordResetTokens?: Prisma.PasswordResetTokenUncheckedUpdateManyWithoutUserNestedInput;
2818
+ };
2819
+ export type UserCreateWithoutPasswordResetTokensInput = {
2820
+ id?: string;
2821
+ email: string;
2822
+ name: string;
2823
+ avatarUrl?: string | null;
2824
+ role?: $Enums.UserRole;
2825
+ passwordHash?: string | null;
2826
+ totpSecret?: string | null;
2827
+ totpEnabled?: boolean;
2828
+ lastTotpStep?: number | null;
2829
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2830
+ authProvider?: string | null;
2831
+ isActive?: boolean;
2832
+ isApproved?: boolean;
2833
+ emailVerified?: boolean;
2834
+ lastLoginAt?: Date | string | null;
2835
+ createdAt?: Date | string;
2836
+ updatedAt?: Date | string;
2837
+ suspendedAt?: Date | string | null;
2838
+ lockedAt?: Date | string | null;
2839
+ forcePasswordReset?: boolean;
2840
+ mfaRequired?: boolean;
2841
+ failedLoginCount?: number;
2842
+ lastActiveAt?: Date | string | null;
2843
+ invitedById?: string | null;
2844
+ acceptedInviteAt?: Date | string | null;
2845
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput;
2846
+ oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput;
2847
+ apiKeys?: Prisma.ApiKeyCreateNestedManyWithoutUserInput;
2848
+ documents?: Prisma.DocumentCreateNestedManyWithoutCreatedByInput;
2849
+ updatedDocuments?: Prisma.DocumentCreateNestedManyWithoutUpdatedByInput;
2850
+ versions?: Prisma.VersionCreateNestedManyWithoutChangedByInput;
2851
+ media?: Prisma.MediaCreateNestedManyWithoutUploadedByInput;
2852
+ contentLocks?: Prisma.ContentLockCreateNestedManyWithoutUserInput;
2853
+ notifications?: Prisma.InAppNotificationCreateNestedManyWithoutUserInput;
2854
+ contentTemplates?: Prisma.ContentTemplateCreateNestedManyWithoutCreatedByInput;
2855
+ workflowAssigned?: Prisma.WorkflowStateCreateNestedManyWithoutAssignedToInput;
2856
+ };
2857
+ export type UserUncheckedCreateWithoutPasswordResetTokensInput = {
2858
+ id?: string;
2859
+ email: string;
2860
+ name: string;
2861
+ avatarUrl?: string | null;
2862
+ role?: $Enums.UserRole;
2863
+ passwordHash?: string | null;
2864
+ totpSecret?: string | null;
2865
+ totpEnabled?: boolean;
2866
+ lastTotpStep?: number | null;
2867
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2868
+ authProvider?: string | null;
2869
+ isActive?: boolean;
2870
+ isApproved?: boolean;
2871
+ emailVerified?: boolean;
2872
+ lastLoginAt?: Date | string | null;
2873
+ createdAt?: Date | string;
2874
+ updatedAt?: Date | string;
2875
+ suspendedAt?: Date | string | null;
2876
+ lockedAt?: Date | string | null;
2877
+ forcePasswordReset?: boolean;
2878
+ mfaRequired?: boolean;
2879
+ failedLoginCount?: number;
2880
+ lastActiveAt?: Date | string | null;
2881
+ invitedById?: string | null;
2882
+ acceptedInviteAt?: Date | string | null;
2883
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput;
2884
+ oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput;
2885
+ apiKeys?: Prisma.ApiKeyUncheckedCreateNestedManyWithoutUserInput;
2886
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutCreatedByInput;
2887
+ updatedDocuments?: Prisma.DocumentUncheckedCreateNestedManyWithoutUpdatedByInput;
2888
+ versions?: Prisma.VersionUncheckedCreateNestedManyWithoutChangedByInput;
2889
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutUploadedByInput;
2890
+ contentLocks?: Prisma.ContentLockUncheckedCreateNestedManyWithoutUserInput;
2891
+ notifications?: Prisma.InAppNotificationUncheckedCreateNestedManyWithoutUserInput;
2892
+ contentTemplates?: Prisma.ContentTemplateUncheckedCreateNestedManyWithoutCreatedByInput;
2893
+ workflowAssigned?: Prisma.WorkflowStateUncheckedCreateNestedManyWithoutAssignedToInput;
2894
+ };
2895
+ export type UserCreateOrConnectWithoutPasswordResetTokensInput = {
2896
+ where: Prisma.UserWhereUniqueInput;
2897
+ create: Prisma.XOR<Prisma.UserCreateWithoutPasswordResetTokensInput, Prisma.UserUncheckedCreateWithoutPasswordResetTokensInput>;
2898
+ };
2899
+ export type UserUpsertWithoutPasswordResetTokensInput = {
2900
+ update: Prisma.XOR<Prisma.UserUpdateWithoutPasswordResetTokensInput, Prisma.UserUncheckedUpdateWithoutPasswordResetTokensInput>;
2901
+ create: Prisma.XOR<Prisma.UserCreateWithoutPasswordResetTokensInput, Prisma.UserUncheckedCreateWithoutPasswordResetTokensInput>;
2902
+ where?: Prisma.UserWhereInput;
2903
+ };
2904
+ export type UserUpdateToOneWithWhereWithoutPasswordResetTokensInput = {
2905
+ where?: Prisma.UserWhereInput;
2906
+ data: Prisma.XOR<Prisma.UserUpdateWithoutPasswordResetTokensInput, Prisma.UserUncheckedUpdateWithoutPasswordResetTokensInput>;
2907
+ };
2908
+ export type UserUpdateWithoutPasswordResetTokensInput = {
2909
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2910
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2911
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2912
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2913
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2914
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2915
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2916
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2917
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2918
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2919
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2920
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2921
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2922
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2923
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2924
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2925
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2926
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2927
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2928
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2929
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2930
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2931
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2932
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2933
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2934
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput;
2935
+ oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput;
2936
+ apiKeys?: Prisma.ApiKeyUpdateManyWithoutUserNestedInput;
2937
+ documents?: Prisma.DocumentUpdateManyWithoutCreatedByNestedInput;
2938
+ updatedDocuments?: Prisma.DocumentUpdateManyWithoutUpdatedByNestedInput;
2939
+ versions?: Prisma.VersionUpdateManyWithoutChangedByNestedInput;
2940
+ media?: Prisma.MediaUpdateManyWithoutUploadedByNestedInput;
2941
+ contentLocks?: Prisma.ContentLockUpdateManyWithoutUserNestedInput;
2942
+ notifications?: Prisma.InAppNotificationUpdateManyWithoutUserNestedInput;
2943
+ contentTemplates?: Prisma.ContentTemplateUpdateManyWithoutCreatedByNestedInput;
2944
+ workflowAssigned?: Prisma.WorkflowStateUpdateManyWithoutAssignedToNestedInput;
2945
+ };
2946
+ export type UserUncheckedUpdateWithoutPasswordResetTokensInput = {
2947
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2948
+ email?: Prisma.StringFieldUpdateOperationsInput | string;
2949
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2950
+ avatarUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2951
+ role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole;
2952
+ passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2953
+ totpSecret?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2954
+ totpEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2955
+ lastTotpStep?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
2956
+ backupCodes?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
2957
+ authProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2958
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2959
+ isApproved?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2960
+ emailVerified?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2961
+ lastLoginAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2962
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2963
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2964
+ suspendedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2965
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2966
+ forcePasswordReset?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2967
+ mfaRequired?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2968
+ failedLoginCount?: Prisma.IntFieldUpdateOperationsInput | number;
2969
+ lastActiveAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2970
+ invitedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2971
+ acceptedInviteAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2972
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput;
2973
+ oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput;
2974
+ apiKeys?: Prisma.ApiKeyUncheckedUpdateManyWithoutUserNestedInput;
2975
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutCreatedByNestedInput;
2976
+ updatedDocuments?: Prisma.DocumentUncheckedUpdateManyWithoutUpdatedByNestedInput;
2977
+ versions?: Prisma.VersionUncheckedUpdateManyWithoutChangedByNestedInput;
2978
+ media?: Prisma.MediaUncheckedUpdateManyWithoutUploadedByNestedInput;
2979
+ contentLocks?: Prisma.ContentLockUncheckedUpdateManyWithoutUserNestedInput;
2980
+ notifications?: Prisma.InAppNotificationUncheckedUpdateManyWithoutUserNestedInput;
2981
+ contentTemplates?: Prisma.ContentTemplateUncheckedUpdateManyWithoutCreatedByNestedInput;
2982
+ workflowAssigned?: Prisma.WorkflowStateUncheckedUpdateManyWithoutAssignedToNestedInput;
2983
+ };
2984
+ /**
2985
+ * Count Type UserCountOutputType
2986
+ */
2987
+ export type UserCountOutputType = {
2988
+ sessions: number;
2989
+ oauthAccounts: number;
2990
+ apiKeys: number;
2991
+ documents: number;
2992
+ updatedDocuments: number;
2993
+ versions: number;
2994
+ media: number;
2995
+ contentLocks: number;
2996
+ notifications: number;
2997
+ contentTemplates: number;
2998
+ workflowAssigned: number;
2999
+ passwordResetTokens: number;
3000
+ };
3001
+ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3002
+ sessions?: boolean | UserCountOutputTypeCountSessionsArgs;
3003
+ oauthAccounts?: boolean | UserCountOutputTypeCountOauthAccountsArgs;
3004
+ apiKeys?: boolean | UserCountOutputTypeCountApiKeysArgs;
3005
+ documents?: boolean | UserCountOutputTypeCountDocumentsArgs;
3006
+ updatedDocuments?: boolean | UserCountOutputTypeCountUpdatedDocumentsArgs;
3007
+ versions?: boolean | UserCountOutputTypeCountVersionsArgs;
3008
+ media?: boolean | UserCountOutputTypeCountMediaArgs;
3009
+ contentLocks?: boolean | UserCountOutputTypeCountContentLocksArgs;
3010
+ notifications?: boolean | UserCountOutputTypeCountNotificationsArgs;
3011
+ contentTemplates?: boolean | UserCountOutputTypeCountContentTemplatesArgs;
3012
+ workflowAssigned?: boolean | UserCountOutputTypeCountWorkflowAssignedArgs;
3013
+ passwordResetTokens?: boolean | UserCountOutputTypeCountPasswordResetTokensArgs;
3014
+ };
3015
+ /**
3016
+ * UserCountOutputType without action
3017
+ */
3018
+ export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3019
+ /**
3020
+ * Select specific fields to fetch from the UserCountOutputType
3021
+ */
3022
+ select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null;
3023
+ };
3024
+ /**
3025
+ * UserCountOutputType without action
3026
+ */
3027
+ export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3028
+ where?: Prisma.SessionWhereInput;
3029
+ };
3030
+ /**
3031
+ * UserCountOutputType without action
3032
+ */
3033
+ export type UserCountOutputTypeCountOauthAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3034
+ where?: Prisma.OAuthAccountWhereInput;
3035
+ };
3036
+ /**
3037
+ * UserCountOutputType without action
3038
+ */
3039
+ export type UserCountOutputTypeCountApiKeysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3040
+ where?: Prisma.ApiKeyWhereInput;
3041
+ };
3042
+ /**
3043
+ * UserCountOutputType without action
3044
+ */
3045
+ export type UserCountOutputTypeCountDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3046
+ where?: Prisma.DocumentWhereInput;
3047
+ };
3048
+ /**
3049
+ * UserCountOutputType without action
3050
+ */
3051
+ export type UserCountOutputTypeCountUpdatedDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3052
+ where?: Prisma.DocumentWhereInput;
3053
+ };
3054
+ /**
3055
+ * UserCountOutputType without action
3056
+ */
3057
+ export type UserCountOutputTypeCountVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3058
+ where?: Prisma.VersionWhereInput;
3059
+ };
3060
+ /**
3061
+ * UserCountOutputType without action
3062
+ */
3063
+ export type UserCountOutputTypeCountMediaArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3064
+ where?: Prisma.MediaWhereInput;
3065
+ };
3066
+ /**
3067
+ * UserCountOutputType without action
3068
+ */
3069
+ export type UserCountOutputTypeCountContentLocksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3070
+ where?: Prisma.ContentLockWhereInput;
3071
+ };
3072
+ /**
3073
+ * UserCountOutputType without action
3074
+ */
3075
+ export type UserCountOutputTypeCountNotificationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3076
+ where?: Prisma.InAppNotificationWhereInput;
3077
+ };
3078
+ /**
3079
+ * UserCountOutputType without action
3080
+ */
3081
+ export type UserCountOutputTypeCountContentTemplatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3082
+ where?: Prisma.ContentTemplateWhereInput;
3083
+ };
3084
+ /**
3085
+ * UserCountOutputType without action
3086
+ */
3087
+ export type UserCountOutputTypeCountWorkflowAssignedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3088
+ where?: Prisma.WorkflowStateWhereInput;
3089
+ };
3090
+ /**
3091
+ * UserCountOutputType without action
3092
+ */
3093
+ export type UserCountOutputTypeCountPasswordResetTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3094
+ where?: Prisma.PasswordResetTokenWhereInput;
3095
+ };
3096
+ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3097
+ id?: boolean;
3098
+ email?: boolean;
3099
+ name?: boolean;
3100
+ avatarUrl?: boolean;
3101
+ role?: boolean;
3102
+ passwordHash?: boolean;
3103
+ totpSecret?: boolean;
3104
+ totpEnabled?: boolean;
3105
+ lastTotpStep?: boolean;
3106
+ backupCodes?: boolean;
3107
+ authProvider?: boolean;
3108
+ isActive?: boolean;
3109
+ isApproved?: boolean;
3110
+ emailVerified?: boolean;
3111
+ lastLoginAt?: boolean;
3112
+ createdAt?: boolean;
3113
+ updatedAt?: boolean;
3114
+ suspendedAt?: boolean;
3115
+ lockedAt?: boolean;
3116
+ forcePasswordReset?: boolean;
3117
+ mfaRequired?: boolean;
3118
+ failedLoginCount?: boolean;
3119
+ lastActiveAt?: boolean;
3120
+ invitedById?: boolean;
3121
+ acceptedInviteAt?: boolean;
3122
+ sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>;
3123
+ oauthAccounts?: boolean | Prisma.User$oauthAccountsArgs<ExtArgs>;
3124
+ apiKeys?: boolean | Prisma.User$apiKeysArgs<ExtArgs>;
3125
+ documents?: boolean | Prisma.User$documentsArgs<ExtArgs>;
3126
+ updatedDocuments?: boolean | Prisma.User$updatedDocumentsArgs<ExtArgs>;
3127
+ versions?: boolean | Prisma.User$versionsArgs<ExtArgs>;
3128
+ media?: boolean | Prisma.User$mediaArgs<ExtArgs>;
3129
+ contentLocks?: boolean | Prisma.User$contentLocksArgs<ExtArgs>;
3130
+ notifications?: boolean | Prisma.User$notificationsArgs<ExtArgs>;
3131
+ contentTemplates?: boolean | Prisma.User$contentTemplatesArgs<ExtArgs>;
3132
+ workflowAssigned?: boolean | Prisma.User$workflowAssignedArgs<ExtArgs>;
3133
+ passwordResetTokens?: boolean | Prisma.User$passwordResetTokensArgs<ExtArgs>;
3134
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
3135
+ }, ExtArgs["result"]["user"]>;
3136
+ export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3137
+ id?: boolean;
3138
+ email?: boolean;
3139
+ name?: boolean;
3140
+ avatarUrl?: boolean;
3141
+ role?: boolean;
3142
+ passwordHash?: boolean;
3143
+ totpSecret?: boolean;
3144
+ totpEnabled?: boolean;
3145
+ lastTotpStep?: boolean;
3146
+ backupCodes?: boolean;
3147
+ authProvider?: boolean;
3148
+ isActive?: boolean;
3149
+ isApproved?: boolean;
3150
+ emailVerified?: boolean;
3151
+ lastLoginAt?: boolean;
3152
+ createdAt?: boolean;
3153
+ updatedAt?: boolean;
3154
+ suspendedAt?: boolean;
3155
+ lockedAt?: boolean;
3156
+ forcePasswordReset?: boolean;
3157
+ mfaRequired?: boolean;
3158
+ failedLoginCount?: boolean;
3159
+ lastActiveAt?: boolean;
3160
+ invitedById?: boolean;
3161
+ acceptedInviteAt?: boolean;
3162
+ }, ExtArgs["result"]["user"]>;
3163
+ export type UserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
3164
+ id?: boolean;
3165
+ email?: boolean;
3166
+ name?: boolean;
3167
+ avatarUrl?: boolean;
3168
+ role?: boolean;
3169
+ passwordHash?: boolean;
3170
+ totpSecret?: boolean;
3171
+ totpEnabled?: boolean;
3172
+ lastTotpStep?: boolean;
3173
+ backupCodes?: boolean;
3174
+ authProvider?: boolean;
3175
+ isActive?: boolean;
3176
+ isApproved?: boolean;
3177
+ emailVerified?: boolean;
3178
+ lastLoginAt?: boolean;
3179
+ createdAt?: boolean;
3180
+ updatedAt?: boolean;
3181
+ suspendedAt?: boolean;
3182
+ lockedAt?: boolean;
3183
+ forcePasswordReset?: boolean;
3184
+ mfaRequired?: boolean;
3185
+ failedLoginCount?: boolean;
3186
+ lastActiveAt?: boolean;
3187
+ invitedById?: boolean;
3188
+ acceptedInviteAt?: boolean;
3189
+ }, ExtArgs["result"]["user"]>;
3190
+ export type UserSelectScalar = {
3191
+ id?: boolean;
3192
+ email?: boolean;
3193
+ name?: boolean;
3194
+ avatarUrl?: boolean;
3195
+ role?: boolean;
3196
+ passwordHash?: boolean;
3197
+ totpSecret?: boolean;
3198
+ totpEnabled?: boolean;
3199
+ lastTotpStep?: boolean;
3200
+ backupCodes?: boolean;
3201
+ authProvider?: boolean;
3202
+ isActive?: boolean;
3203
+ isApproved?: boolean;
3204
+ emailVerified?: boolean;
3205
+ lastLoginAt?: boolean;
3206
+ createdAt?: boolean;
3207
+ updatedAt?: boolean;
3208
+ suspendedAt?: boolean;
3209
+ lockedAt?: boolean;
3210
+ forcePasswordReset?: boolean;
3211
+ mfaRequired?: boolean;
3212
+ failedLoginCount?: boolean;
3213
+ lastActiveAt?: boolean;
3214
+ invitedById?: boolean;
3215
+ acceptedInviteAt?: boolean;
3216
+ };
3217
+ export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "email" | "name" | "avatarUrl" | "role" | "passwordHash" | "totpSecret" | "totpEnabled" | "lastTotpStep" | "backupCodes" | "authProvider" | "isActive" | "isApproved" | "emailVerified" | "lastLoginAt" | "createdAt" | "updatedAt" | "suspendedAt" | "lockedAt" | "forcePasswordReset" | "mfaRequired" | "failedLoginCount" | "lastActiveAt" | "invitedById" | "acceptedInviteAt", ExtArgs["result"]["user"]>;
3218
+ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3219
+ sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>;
3220
+ oauthAccounts?: boolean | Prisma.User$oauthAccountsArgs<ExtArgs>;
3221
+ apiKeys?: boolean | Prisma.User$apiKeysArgs<ExtArgs>;
3222
+ documents?: boolean | Prisma.User$documentsArgs<ExtArgs>;
3223
+ updatedDocuments?: boolean | Prisma.User$updatedDocumentsArgs<ExtArgs>;
3224
+ versions?: boolean | Prisma.User$versionsArgs<ExtArgs>;
3225
+ media?: boolean | Prisma.User$mediaArgs<ExtArgs>;
3226
+ contentLocks?: boolean | Prisma.User$contentLocksArgs<ExtArgs>;
3227
+ notifications?: boolean | Prisma.User$notificationsArgs<ExtArgs>;
3228
+ contentTemplates?: boolean | Prisma.User$contentTemplatesArgs<ExtArgs>;
3229
+ workflowAssigned?: boolean | Prisma.User$workflowAssignedArgs<ExtArgs>;
3230
+ passwordResetTokens?: boolean | Prisma.User$passwordResetTokensArgs<ExtArgs>;
3231
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>;
3232
+ };
3233
+ export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
3234
+ export type UserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
3235
+ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3236
+ name: "User";
3237
+ objects: {
3238
+ sessions: Prisma.$SessionPayload<ExtArgs>[];
3239
+ oauthAccounts: Prisma.$OAuthAccountPayload<ExtArgs>[];
3240
+ apiKeys: Prisma.$ApiKeyPayload<ExtArgs>[];
3241
+ documents: Prisma.$DocumentPayload<ExtArgs>[];
3242
+ updatedDocuments: Prisma.$DocumentPayload<ExtArgs>[];
3243
+ versions: Prisma.$VersionPayload<ExtArgs>[];
3244
+ media: Prisma.$MediaPayload<ExtArgs>[];
3245
+ contentLocks: Prisma.$ContentLockPayload<ExtArgs>[];
3246
+ notifications: Prisma.$InAppNotificationPayload<ExtArgs>[];
3247
+ contentTemplates: Prisma.$ContentTemplatePayload<ExtArgs>[];
3248
+ workflowAssigned: Prisma.$WorkflowStatePayload<ExtArgs>[];
3249
+ passwordResetTokens: Prisma.$PasswordResetTokenPayload<ExtArgs>[];
3250
+ };
3251
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
3252
+ id: string;
3253
+ email: string;
3254
+ name: string;
3255
+ avatarUrl: string | null;
3256
+ role: $Enums.UserRole;
3257
+ passwordHash: string | null;
3258
+ totpSecret: string | null;
3259
+ totpEnabled: boolean;
3260
+ lastTotpStep: number | null;
3261
+ backupCodes: runtime.JsonValue | null;
3262
+ authProvider: string | null;
3263
+ isActive: boolean;
3264
+ isApproved: boolean;
3265
+ emailVerified: boolean;
3266
+ lastLoginAt: Date | null;
3267
+ createdAt: Date;
3268
+ updatedAt: Date;
3269
+ suspendedAt: Date | null;
3270
+ lockedAt: Date | null;
3271
+ forcePasswordReset: boolean;
3272
+ mfaRequired: boolean;
3273
+ failedLoginCount: number;
3274
+ lastActiveAt: Date | null;
3275
+ invitedById: string | null;
3276
+ acceptedInviteAt: Date | null;
3277
+ }, ExtArgs["result"]["user"]>;
3278
+ composites: {};
3279
+ };
3280
+ export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>;
3281
+ export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
3282
+ select?: UserCountAggregateInputType | true;
3283
+ };
3284
+ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
3285
+ [K: symbol]: {
3286
+ types: Prisma.TypeMap<ExtArgs>['model']['User'];
3287
+ meta: {
3288
+ name: 'User';
3289
+ };
3290
+ };
3291
+ /**
3292
+ * Find zero or one User that matches the filter.
3293
+ * @param {UserFindUniqueArgs} args - Arguments to find a User
3294
+ * @example
3295
+ * // Get one User
3296
+ * const user = await prisma.user.findUnique({
3297
+ * where: {
3298
+ * // ... provide filter here
3299
+ * }
3300
+ * })
3301
+ */
3302
+ findUnique<T extends UserFindUniqueArgs>(args: Prisma.SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
3303
+ /**
3304
+ * Find one User that matches the filter or throw an error with `error.code='P2025'`
3305
+ * if no matches were found.
3306
+ * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
3307
+ * @example
3308
+ * // Get one User
3309
+ * const user = await prisma.user.findUniqueOrThrow({
3310
+ * where: {
3311
+ * // ... provide filter here
3312
+ * }
3313
+ * })
3314
+ */
3315
+ findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
3316
+ /**
3317
+ * Find the first User that matches the filter.
3318
+ * Note, that providing `undefined` is treated as the value not being there.
3319
+ * Read more here: https://pris.ly/d/null-undefined
3320
+ * @param {UserFindFirstArgs} args - Arguments to find a User
3321
+ * @example
3322
+ * // Get one User
3323
+ * const user = await prisma.user.findFirst({
3324
+ * where: {
3325
+ * // ... provide filter here
3326
+ * }
3327
+ * })
3328
+ */
3329
+ findFirst<T extends UserFindFirstArgs>(args?: Prisma.SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
3330
+ /**
3331
+ * Find the first User that matches the filter or
3332
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
3333
+ * Note, that providing `undefined` is treated as the value not being there.
3334
+ * Read more here: https://pris.ly/d/null-undefined
3335
+ * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
3336
+ * @example
3337
+ * // Get one User
3338
+ * const user = await prisma.user.findFirstOrThrow({
3339
+ * where: {
3340
+ * // ... provide filter here
3341
+ * }
3342
+ * })
3343
+ */
3344
+ findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
3345
+ /**
3346
+ * Find zero or more Users that matches the filter.
3347
+ * Note, that providing `undefined` is treated as the value not being there.
3348
+ * Read more here: https://pris.ly/d/null-undefined
3349
+ * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
3350
+ * @example
3351
+ * // Get all Users
3352
+ * const users = await prisma.user.findMany()
3353
+ *
3354
+ * // Get first 10 Users
3355
+ * const users = await prisma.user.findMany({ take: 10 })
3356
+ *
3357
+ * // Only select the `id`
3358
+ * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
3359
+ *
3360
+ */
3361
+ findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
3362
+ /**
3363
+ * Create a User.
3364
+ * @param {UserCreateArgs} args - Arguments to create a User.
3365
+ * @example
3366
+ * // Create one User
3367
+ * const User = await prisma.user.create({
3368
+ * data: {
3369
+ * // ... data to create a User
3370
+ * }
3371
+ * })
3372
+ *
3373
+ */
3374
+ create<T extends UserCreateArgs>(args: Prisma.SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
3375
+ /**
3376
+ * Create many Users.
3377
+ * @param {UserCreateManyArgs} args - Arguments to create many Users.
3378
+ * @example
3379
+ * // Create many Users
3380
+ * const user = await prisma.user.createMany({
3381
+ * data: [
3382
+ * // ... provide data here
3383
+ * ]
3384
+ * })
3385
+ *
3386
+ */
3387
+ createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
3388
+ /**
3389
+ * Create many Users and returns the data saved in the database.
3390
+ * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
3391
+ * @example
3392
+ * // Create many Users
3393
+ * const user = await prisma.user.createManyAndReturn({
3394
+ * data: [
3395
+ * // ... provide data here
3396
+ * ]
3397
+ * })
3398
+ *
3399
+ * // Create many Users and only return the `id`
3400
+ * const userWithIdOnly = await prisma.user.createManyAndReturn({
3401
+ * select: { id: true },
3402
+ * data: [
3403
+ * // ... provide data here
3404
+ * ]
3405
+ * })
3406
+ * Note, that providing `undefined` is treated as the value not being there.
3407
+ * Read more here: https://pris.ly/d/null-undefined
3408
+ *
3409
+ */
3410
+ createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
3411
+ /**
3412
+ * Delete a User.
3413
+ * @param {UserDeleteArgs} args - Arguments to delete one User.
3414
+ * @example
3415
+ * // Delete one User
3416
+ * const User = await prisma.user.delete({
3417
+ * where: {
3418
+ * // ... filter to delete one User
3419
+ * }
3420
+ * })
3421
+ *
3422
+ */
3423
+ delete<T extends UserDeleteArgs>(args: Prisma.SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
3424
+ /**
3425
+ * Update one User.
3426
+ * @param {UserUpdateArgs} args - Arguments to update one User.
3427
+ * @example
3428
+ * // Update one User
3429
+ * const user = await prisma.user.update({
3430
+ * where: {
3431
+ * // ... provide filter here
3432
+ * },
3433
+ * data: {
3434
+ * // ... provide data here
3435
+ * }
3436
+ * })
3437
+ *
3438
+ */
3439
+ update<T extends UserUpdateArgs>(args: Prisma.SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
3440
+ /**
3441
+ * Delete zero or more Users.
3442
+ * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
3443
+ * @example
3444
+ * // Delete a few Users
3445
+ * const { count } = await prisma.user.deleteMany({
3446
+ * where: {
3447
+ * // ... provide filter here
3448
+ * }
3449
+ * })
3450
+ *
3451
+ */
3452
+ deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
3453
+ /**
3454
+ * Update zero or more Users.
3455
+ * Note, that providing `undefined` is treated as the value not being there.
3456
+ * Read more here: https://pris.ly/d/null-undefined
3457
+ * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
3458
+ * @example
3459
+ * // Update many Users
3460
+ * const user = await prisma.user.updateMany({
3461
+ * where: {
3462
+ * // ... provide filter here
3463
+ * },
3464
+ * data: {
3465
+ * // ... provide data here
3466
+ * }
3467
+ * })
3468
+ *
3469
+ */
3470
+ updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
3471
+ /**
3472
+ * Update zero or more Users and returns the data updated in the database.
3473
+ * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
3474
+ * @example
3475
+ * // Update many Users
3476
+ * const user = await prisma.user.updateManyAndReturn({
3477
+ * where: {
3478
+ * // ... provide filter here
3479
+ * },
3480
+ * data: [
3481
+ * // ... provide data here
3482
+ * ]
3483
+ * })
3484
+ *
3485
+ * // Update zero or more Users and only return the `id`
3486
+ * const userWithIdOnly = await prisma.user.updateManyAndReturn({
3487
+ * select: { id: true },
3488
+ * where: {
3489
+ * // ... provide filter here
3490
+ * },
3491
+ * data: [
3492
+ * // ... provide data here
3493
+ * ]
3494
+ * })
3495
+ * Note, that providing `undefined` is treated as the value not being there.
3496
+ * Read more here: https://pris.ly/d/null-undefined
3497
+ *
3498
+ */
3499
+ updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
3500
+ /**
3501
+ * Create or update one User.
3502
+ * @param {UserUpsertArgs} args - Arguments to update or create a User.
3503
+ * @example
3504
+ * // Update or create a User
3505
+ * const user = await prisma.user.upsert({
3506
+ * create: {
3507
+ * // ... data to create a User
3508
+ * },
3509
+ * update: {
3510
+ * // ... in case it already exists, update
3511
+ * },
3512
+ * where: {
3513
+ * // ... the filter for the User we want to update
3514
+ * }
3515
+ * })
3516
+ */
3517
+ upsert<T extends UserUpsertArgs>(args: Prisma.SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
3518
+ /**
3519
+ * Count the number of Users.
3520
+ * Note, that providing `undefined` is treated as the value not being there.
3521
+ * Read more here: https://pris.ly/d/null-undefined
3522
+ * @param {UserCountArgs} args - Arguments to filter Users to count.
3523
+ * @example
3524
+ * // Count the number of Users
3525
+ * const count = await prisma.user.count({
3526
+ * where: {
3527
+ * // ... the filter for the Users we want to count
3528
+ * }
3529
+ * })
3530
+ **/
3531
+ count<T extends UserCountArgs>(args?: Prisma.Subset<T, UserCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], UserCountAggregateOutputType> : number>;
3532
+ /**
3533
+ * Allows you to perform aggregations operations on a User.
3534
+ * Note, that providing `undefined` is treated as the value not being there.
3535
+ * Read more here: https://pris.ly/d/null-undefined
3536
+ * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
3537
+ * @example
3538
+ * // Ordered by age ascending
3539
+ * // Where email contains prisma.io
3540
+ * // Limited to the 10 users
3541
+ * const aggregations = await prisma.user.aggregate({
3542
+ * _avg: {
3543
+ * age: true,
3544
+ * },
3545
+ * where: {
3546
+ * email: {
3547
+ * contains: "prisma.io",
3548
+ * },
3549
+ * },
3550
+ * orderBy: {
3551
+ * age: "asc",
3552
+ * },
3553
+ * take: 10,
3554
+ * })
3555
+ **/
3556
+ aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>;
3557
+ /**
3558
+ * Group by User.
3559
+ * Note, that providing `undefined` is treated as the value not being there.
3560
+ * Read more here: https://pris.ly/d/null-undefined
3561
+ * @param {UserGroupByArgs} args - Group by arguments.
3562
+ * @example
3563
+ * // Group by city, order by createdAt, get count
3564
+ * const result = await prisma.user.groupBy({
3565
+ * by: ['city', 'createdAt'],
3566
+ * orderBy: {
3567
+ * createdAt: true
3568
+ * },
3569
+ * _count: {
3570
+ * _all: true
3571
+ * },
3572
+ * })
3573
+ *
3574
+ **/
3575
+ groupBy<T extends UserGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
3576
+ orderBy: UserGroupByArgs['orderBy'];
3577
+ } : {
3578
+ orderBy?: UserGroupByArgs['orderBy'];
3579
+ }, 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 ? {
3580
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
3581
+ Error,
3582
+ 'Field ',
3583
+ P,
3584
+ ` in "having" needs to be provided in "by"`
3585
+ ];
3586
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
3587
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
3588
+ }[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 ? {} : {
3589
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
3590
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
3591
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
3592
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
3593
+ /**
3594
+ * Fields of the User model
3595
+ */
3596
+ readonly fields: UserFieldRefs;
3597
+ }
3598
+ /**
3599
+ * The delegate class that acts as a "Promise-like" for User.
3600
+ * Why is this prefixed with `Prisma__`?
3601
+ * Because we want to prevent naming conflicts as mentioned in
3602
+ * https://github.com/prisma/prisma-client-js/issues/707
3603
+ */
3604
+ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
3605
+ readonly [Symbol.toStringTag]: "PrismaPromise";
3606
+ sessions<T extends Prisma.User$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3607
+ oauthAccounts<T extends Prisma.User$oauthAccountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$oauthAccountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OAuthAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3608
+ apiKeys<T extends Prisma.User$apiKeysArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$apiKeysArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3609
+ documents<T extends Prisma.User$documentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$documentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3610
+ updatedDocuments<T extends Prisma.User$updatedDocumentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$updatedDocumentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3611
+ versions<T extends Prisma.User$versionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$versionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3612
+ media<T extends Prisma.User$mediaArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$mediaArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3613
+ contentLocks<T extends Prisma.User$contentLocksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$contentLocksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentLockPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3614
+ notifications<T extends Prisma.User$notificationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$notificationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InAppNotificationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3615
+ contentTemplates<T extends Prisma.User$contentTemplatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$contentTemplatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentTemplatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3616
+ workflowAssigned<T extends Prisma.User$workflowAssignedArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$workflowAssignedArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkflowStatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3617
+ passwordResetTokens<T extends Prisma.User$passwordResetTokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$passwordResetTokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PasswordResetTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
3618
+ /**
3619
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
3620
+ * @param onfulfilled The callback to execute when the Promise is resolved.
3621
+ * @param onrejected The callback to execute when the Promise is rejected.
3622
+ * @returns A Promise for the completion of which ever callback is executed.
3623
+ */
3624
+ 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>;
3625
+ /**
3626
+ * Attaches a callback for only the rejection of the Promise.
3627
+ * @param onrejected The callback to execute when the Promise is rejected.
3628
+ * @returns A Promise for the completion of the callback.
3629
+ */
3630
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
3631
+ /**
3632
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
3633
+ * resolved value cannot be modified from the callback.
3634
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
3635
+ * @returns A Promise for the completion of the callback.
3636
+ */
3637
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
3638
+ }
3639
+ /**
3640
+ * Fields of the User model
3641
+ */
3642
+ export interface UserFieldRefs {
3643
+ readonly id: Prisma.FieldRef<"User", 'String'>;
3644
+ readonly email: Prisma.FieldRef<"User", 'String'>;
3645
+ readonly name: Prisma.FieldRef<"User", 'String'>;
3646
+ readonly avatarUrl: Prisma.FieldRef<"User", 'String'>;
3647
+ readonly role: Prisma.FieldRef<"User", 'UserRole'>;
3648
+ readonly passwordHash: Prisma.FieldRef<"User", 'String'>;
3649
+ readonly totpSecret: Prisma.FieldRef<"User", 'String'>;
3650
+ readonly totpEnabled: Prisma.FieldRef<"User", 'Boolean'>;
3651
+ readonly lastTotpStep: Prisma.FieldRef<"User", 'Int'>;
3652
+ readonly backupCodes: Prisma.FieldRef<"User", 'Json'>;
3653
+ readonly authProvider: Prisma.FieldRef<"User", 'String'>;
3654
+ readonly isActive: Prisma.FieldRef<"User", 'Boolean'>;
3655
+ readonly isApproved: Prisma.FieldRef<"User", 'Boolean'>;
3656
+ readonly emailVerified: Prisma.FieldRef<"User", 'Boolean'>;
3657
+ readonly lastLoginAt: Prisma.FieldRef<"User", 'DateTime'>;
3658
+ readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>;
3659
+ readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>;
3660
+ readonly suspendedAt: Prisma.FieldRef<"User", 'DateTime'>;
3661
+ readonly lockedAt: Prisma.FieldRef<"User", 'DateTime'>;
3662
+ readonly forcePasswordReset: Prisma.FieldRef<"User", 'Boolean'>;
3663
+ readonly mfaRequired: Prisma.FieldRef<"User", 'Boolean'>;
3664
+ readonly failedLoginCount: Prisma.FieldRef<"User", 'Int'>;
3665
+ readonly lastActiveAt: Prisma.FieldRef<"User", 'DateTime'>;
3666
+ readonly invitedById: Prisma.FieldRef<"User", 'String'>;
3667
+ readonly acceptedInviteAt: Prisma.FieldRef<"User", 'DateTime'>;
3668
+ }
3669
+ /**
3670
+ * User findUnique
3671
+ */
3672
+ export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3673
+ /**
3674
+ * Select specific fields to fetch from the User
3675
+ */
3676
+ select?: Prisma.UserSelect<ExtArgs> | null;
3677
+ /**
3678
+ * Omit specific fields from the User
3679
+ */
3680
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3681
+ /**
3682
+ * Choose, which related nodes to fetch as well
3683
+ */
3684
+ include?: Prisma.UserInclude<ExtArgs> | null;
3685
+ /**
3686
+ * Filter, which User to fetch.
3687
+ */
3688
+ where: Prisma.UserWhereUniqueInput;
3689
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
3690
+ };
3691
+ /**
3692
+ * User findUniqueOrThrow
3693
+ */
3694
+ export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3695
+ /**
3696
+ * Select specific fields to fetch from the User
3697
+ */
3698
+ select?: Prisma.UserSelect<ExtArgs> | null;
3699
+ /**
3700
+ * Omit specific fields from the User
3701
+ */
3702
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3703
+ /**
3704
+ * Choose, which related nodes to fetch as well
3705
+ */
3706
+ include?: Prisma.UserInclude<ExtArgs> | null;
3707
+ /**
3708
+ * Filter, which User to fetch.
3709
+ */
3710
+ where: Prisma.UserWhereUniqueInput;
3711
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
3712
+ };
3713
+ /**
3714
+ * User findFirst
3715
+ */
3716
+ export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3717
+ /**
3718
+ * Select specific fields to fetch from the User
3719
+ */
3720
+ select?: Prisma.UserSelect<ExtArgs> | null;
3721
+ /**
3722
+ * Omit specific fields from the User
3723
+ */
3724
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3725
+ /**
3726
+ * Choose, which related nodes to fetch as well
3727
+ */
3728
+ include?: Prisma.UserInclude<ExtArgs> | null;
3729
+ /**
3730
+ * Filter, which User to fetch.
3731
+ */
3732
+ where?: Prisma.UserWhereInput;
3733
+ /**
3734
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3735
+ *
3736
+ * Determine the order of Users to fetch.
3737
+ */
3738
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
3739
+ /**
3740
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3741
+ *
3742
+ * Sets the position for searching for Users.
3743
+ */
3744
+ cursor?: Prisma.UserWhereUniqueInput;
3745
+ /**
3746
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3747
+ *
3748
+ * Take `±n` Users from the position of the cursor.
3749
+ */
3750
+ take?: number;
3751
+ /**
3752
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3753
+ *
3754
+ * Skip the first `n` Users.
3755
+ */
3756
+ skip?: number;
3757
+ /**
3758
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3759
+ *
3760
+ * Filter by unique combinations of Users.
3761
+ */
3762
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
3763
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
3764
+ };
3765
+ /**
3766
+ * User findFirstOrThrow
3767
+ */
3768
+ export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3769
+ /**
3770
+ * Select specific fields to fetch from the User
3771
+ */
3772
+ select?: Prisma.UserSelect<ExtArgs> | null;
3773
+ /**
3774
+ * Omit specific fields from the User
3775
+ */
3776
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3777
+ /**
3778
+ * Choose, which related nodes to fetch as well
3779
+ */
3780
+ include?: Prisma.UserInclude<ExtArgs> | null;
3781
+ /**
3782
+ * Filter, which User to fetch.
3783
+ */
3784
+ where?: Prisma.UserWhereInput;
3785
+ /**
3786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3787
+ *
3788
+ * Determine the order of Users to fetch.
3789
+ */
3790
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
3791
+ /**
3792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3793
+ *
3794
+ * Sets the position for searching for Users.
3795
+ */
3796
+ cursor?: Prisma.UserWhereUniqueInput;
3797
+ /**
3798
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3799
+ *
3800
+ * Take `±n` Users from the position of the cursor.
3801
+ */
3802
+ take?: number;
3803
+ /**
3804
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3805
+ *
3806
+ * Skip the first `n` Users.
3807
+ */
3808
+ skip?: number;
3809
+ /**
3810
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3811
+ *
3812
+ * Filter by unique combinations of Users.
3813
+ */
3814
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
3815
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
3816
+ };
3817
+ /**
3818
+ * User findMany
3819
+ */
3820
+ export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3821
+ /**
3822
+ * Select specific fields to fetch from the User
3823
+ */
3824
+ select?: Prisma.UserSelect<ExtArgs> | null;
3825
+ /**
3826
+ * Omit specific fields from the User
3827
+ */
3828
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3829
+ /**
3830
+ * Choose, which related nodes to fetch as well
3831
+ */
3832
+ include?: Prisma.UserInclude<ExtArgs> | null;
3833
+ /**
3834
+ * Filter, which Users to fetch.
3835
+ */
3836
+ where?: Prisma.UserWhereInput;
3837
+ /**
3838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
3839
+ *
3840
+ * Determine the order of Users to fetch.
3841
+ */
3842
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[];
3843
+ /**
3844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
3845
+ *
3846
+ * Sets the position for listing Users.
3847
+ */
3848
+ cursor?: Prisma.UserWhereUniqueInput;
3849
+ /**
3850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3851
+ *
3852
+ * Take `±n` Users from the position of the cursor.
3853
+ */
3854
+ take?: number;
3855
+ /**
3856
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
3857
+ *
3858
+ * Skip the first `n` Users.
3859
+ */
3860
+ skip?: number;
3861
+ /**
3862
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
3863
+ *
3864
+ * Filter by unique combinations of Users.
3865
+ */
3866
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[];
3867
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
3868
+ };
3869
+ /**
3870
+ * User create
3871
+ */
3872
+ export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3873
+ /**
3874
+ * Select specific fields to fetch from the User
3875
+ */
3876
+ select?: Prisma.UserSelect<ExtArgs> | null;
3877
+ /**
3878
+ * Omit specific fields from the User
3879
+ */
3880
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3881
+ /**
3882
+ * Choose, which related nodes to fetch as well
3883
+ */
3884
+ include?: Prisma.UserInclude<ExtArgs> | null;
3885
+ /**
3886
+ * The data needed to create a User.
3887
+ */
3888
+ data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>;
3889
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
3890
+ };
3891
+ /**
3892
+ * User createMany
3893
+ */
3894
+ export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3895
+ /**
3896
+ * The data used to create many Users.
3897
+ */
3898
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[];
3899
+ skipDuplicates?: boolean;
3900
+ };
3901
+ /**
3902
+ * User createManyAndReturn
3903
+ */
3904
+ export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3905
+ /**
3906
+ * Select specific fields to fetch from the User
3907
+ */
3908
+ select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null;
3909
+ /**
3910
+ * Omit specific fields from the User
3911
+ */
3912
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3913
+ /**
3914
+ * The data used to create many Users.
3915
+ */
3916
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[];
3917
+ skipDuplicates?: boolean;
3918
+ };
3919
+ /**
3920
+ * User update
3921
+ */
3922
+ export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3923
+ /**
3924
+ * Select specific fields to fetch from the User
3925
+ */
3926
+ select?: Prisma.UserSelect<ExtArgs> | null;
3927
+ /**
3928
+ * Omit specific fields from the User
3929
+ */
3930
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3931
+ /**
3932
+ * Choose, which related nodes to fetch as well
3933
+ */
3934
+ include?: Prisma.UserInclude<ExtArgs> | null;
3935
+ /**
3936
+ * The data needed to update a User.
3937
+ */
3938
+ data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>;
3939
+ /**
3940
+ * Choose, which User to update.
3941
+ */
3942
+ where: Prisma.UserWhereUniqueInput;
3943
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
3944
+ };
3945
+ /**
3946
+ * User updateMany
3947
+ */
3948
+ export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3949
+ /**
3950
+ * The data used to update Users.
3951
+ */
3952
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>;
3953
+ /**
3954
+ * Filter which Users to update
3955
+ */
3956
+ where?: Prisma.UserWhereInput;
3957
+ /**
3958
+ * Limit how many Users to update.
3959
+ */
3960
+ limit?: number;
3961
+ };
3962
+ /**
3963
+ * User updateManyAndReturn
3964
+ */
3965
+ export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3966
+ /**
3967
+ * Select specific fields to fetch from the User
3968
+ */
3969
+ select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null;
3970
+ /**
3971
+ * Omit specific fields from the User
3972
+ */
3973
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3974
+ /**
3975
+ * The data used to update Users.
3976
+ */
3977
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>;
3978
+ /**
3979
+ * Filter which Users to update
3980
+ */
3981
+ where?: Prisma.UserWhereInput;
3982
+ /**
3983
+ * Limit how many Users to update.
3984
+ */
3985
+ limit?: number;
3986
+ };
3987
+ /**
3988
+ * User upsert
3989
+ */
3990
+ export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3991
+ /**
3992
+ * Select specific fields to fetch from the User
3993
+ */
3994
+ select?: Prisma.UserSelect<ExtArgs> | null;
3995
+ /**
3996
+ * Omit specific fields from the User
3997
+ */
3998
+ omit?: Prisma.UserOmit<ExtArgs> | null;
3999
+ /**
4000
+ * Choose, which related nodes to fetch as well
4001
+ */
4002
+ include?: Prisma.UserInclude<ExtArgs> | null;
4003
+ /**
4004
+ * The filter to search for the User to update in case it exists.
4005
+ */
4006
+ where: Prisma.UserWhereUniqueInput;
4007
+ /**
4008
+ * In case the User found by the `where` argument doesn't exist, create a new User with this data.
4009
+ */
4010
+ create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>;
4011
+ /**
4012
+ * In case the User was found with the provided `where` argument, update it with this data.
4013
+ */
4014
+ update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>;
4015
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
4016
+ };
4017
+ /**
4018
+ * User delete
4019
+ */
4020
+ export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4021
+ /**
4022
+ * Select specific fields to fetch from the User
4023
+ */
4024
+ select?: Prisma.UserSelect<ExtArgs> | null;
4025
+ /**
4026
+ * Omit specific fields from the User
4027
+ */
4028
+ omit?: Prisma.UserOmit<ExtArgs> | null;
4029
+ /**
4030
+ * Choose, which related nodes to fetch as well
4031
+ */
4032
+ include?: Prisma.UserInclude<ExtArgs> | null;
4033
+ /**
4034
+ * Filter which User to delete.
4035
+ */
4036
+ where: Prisma.UserWhereUniqueInput;
4037
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
4038
+ };
4039
+ /**
4040
+ * User deleteMany
4041
+ */
4042
+ export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4043
+ /**
4044
+ * Filter which Users to delete
4045
+ */
4046
+ where?: Prisma.UserWhereInput;
4047
+ /**
4048
+ * Limit how many Users to delete.
4049
+ */
4050
+ limit?: number;
4051
+ };
4052
+ /**
4053
+ * User.sessions
4054
+ */
4055
+ export type User$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4056
+ /**
4057
+ * Select specific fields to fetch from the Session
4058
+ */
4059
+ select?: Prisma.SessionSelect<ExtArgs> | null;
4060
+ /**
4061
+ * Omit specific fields from the Session
4062
+ */
4063
+ omit?: Prisma.SessionOmit<ExtArgs> | null;
4064
+ /**
4065
+ * Choose, which related nodes to fetch as well
4066
+ */
4067
+ include?: Prisma.SessionInclude<ExtArgs> | null;
4068
+ where?: Prisma.SessionWhereInput;
4069
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[];
4070
+ cursor?: Prisma.SessionWhereUniqueInput;
4071
+ take?: number;
4072
+ skip?: number;
4073
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[];
4074
+ };
4075
+ /**
4076
+ * User.oauthAccounts
4077
+ */
4078
+ export type User$oauthAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4079
+ /**
4080
+ * Select specific fields to fetch from the OAuthAccount
4081
+ */
4082
+ select?: Prisma.OAuthAccountSelect<ExtArgs> | null;
4083
+ /**
4084
+ * Omit specific fields from the OAuthAccount
4085
+ */
4086
+ omit?: Prisma.OAuthAccountOmit<ExtArgs> | null;
4087
+ /**
4088
+ * Choose, which related nodes to fetch as well
4089
+ */
4090
+ include?: Prisma.OAuthAccountInclude<ExtArgs> | null;
4091
+ where?: Prisma.OAuthAccountWhereInput;
4092
+ orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[];
4093
+ cursor?: Prisma.OAuthAccountWhereUniqueInput;
4094
+ take?: number;
4095
+ skip?: number;
4096
+ distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[];
4097
+ };
4098
+ /**
4099
+ * User.apiKeys
4100
+ */
4101
+ export type User$apiKeysArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4102
+ /**
4103
+ * Select specific fields to fetch from the ApiKey
4104
+ */
4105
+ select?: Prisma.ApiKeySelect<ExtArgs> | null;
4106
+ /**
4107
+ * Omit specific fields from the ApiKey
4108
+ */
4109
+ omit?: Prisma.ApiKeyOmit<ExtArgs> | null;
4110
+ /**
4111
+ * Choose, which related nodes to fetch as well
4112
+ */
4113
+ include?: Prisma.ApiKeyInclude<ExtArgs> | null;
4114
+ where?: Prisma.ApiKeyWhereInput;
4115
+ orderBy?: Prisma.ApiKeyOrderByWithRelationInput | Prisma.ApiKeyOrderByWithRelationInput[];
4116
+ cursor?: Prisma.ApiKeyWhereUniqueInput;
4117
+ take?: number;
4118
+ skip?: number;
4119
+ distinct?: Prisma.ApiKeyScalarFieldEnum | Prisma.ApiKeyScalarFieldEnum[];
4120
+ };
4121
+ /**
4122
+ * User.documents
4123
+ */
4124
+ export type User$documentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4125
+ /**
4126
+ * Select specific fields to fetch from the Document
4127
+ */
4128
+ select?: Prisma.DocumentSelect<ExtArgs> | null;
4129
+ /**
4130
+ * Omit specific fields from the Document
4131
+ */
4132
+ omit?: Prisma.DocumentOmit<ExtArgs> | null;
4133
+ /**
4134
+ * Choose, which related nodes to fetch as well
4135
+ */
4136
+ include?: Prisma.DocumentInclude<ExtArgs> | null;
4137
+ where?: Prisma.DocumentWhereInput;
4138
+ orderBy?: Prisma.DocumentOrderByWithRelationInput | Prisma.DocumentOrderByWithRelationInput[];
4139
+ cursor?: Prisma.DocumentWhereUniqueInput;
4140
+ take?: number;
4141
+ skip?: number;
4142
+ distinct?: Prisma.DocumentScalarFieldEnum | Prisma.DocumentScalarFieldEnum[];
4143
+ };
4144
+ /**
4145
+ * User.updatedDocuments
4146
+ */
4147
+ export type User$updatedDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4148
+ /**
4149
+ * Select specific fields to fetch from the Document
4150
+ */
4151
+ select?: Prisma.DocumentSelect<ExtArgs> | null;
4152
+ /**
4153
+ * Omit specific fields from the Document
4154
+ */
4155
+ omit?: Prisma.DocumentOmit<ExtArgs> | null;
4156
+ /**
4157
+ * Choose, which related nodes to fetch as well
4158
+ */
4159
+ include?: Prisma.DocumentInclude<ExtArgs> | null;
4160
+ where?: Prisma.DocumentWhereInput;
4161
+ orderBy?: Prisma.DocumentOrderByWithRelationInput | Prisma.DocumentOrderByWithRelationInput[];
4162
+ cursor?: Prisma.DocumentWhereUniqueInput;
4163
+ take?: number;
4164
+ skip?: number;
4165
+ distinct?: Prisma.DocumentScalarFieldEnum | Prisma.DocumentScalarFieldEnum[];
4166
+ };
4167
+ /**
4168
+ * User.versions
4169
+ */
4170
+ export type User$versionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4171
+ /**
4172
+ * Select specific fields to fetch from the Version
4173
+ */
4174
+ select?: Prisma.VersionSelect<ExtArgs> | null;
4175
+ /**
4176
+ * Omit specific fields from the Version
4177
+ */
4178
+ omit?: Prisma.VersionOmit<ExtArgs> | null;
4179
+ /**
4180
+ * Choose, which related nodes to fetch as well
4181
+ */
4182
+ include?: Prisma.VersionInclude<ExtArgs> | null;
4183
+ where?: Prisma.VersionWhereInput;
4184
+ orderBy?: Prisma.VersionOrderByWithRelationInput | Prisma.VersionOrderByWithRelationInput[];
4185
+ cursor?: Prisma.VersionWhereUniqueInput;
4186
+ take?: number;
4187
+ skip?: number;
4188
+ distinct?: Prisma.VersionScalarFieldEnum | Prisma.VersionScalarFieldEnum[];
4189
+ };
4190
+ /**
4191
+ * User.media
4192
+ */
4193
+ export type User$mediaArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4194
+ /**
4195
+ * Select specific fields to fetch from the Media
4196
+ */
4197
+ select?: Prisma.MediaSelect<ExtArgs> | null;
4198
+ /**
4199
+ * Omit specific fields from the Media
4200
+ */
4201
+ omit?: Prisma.MediaOmit<ExtArgs> | null;
4202
+ /**
4203
+ * Choose, which related nodes to fetch as well
4204
+ */
4205
+ include?: Prisma.MediaInclude<ExtArgs> | null;
4206
+ where?: Prisma.MediaWhereInput;
4207
+ orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[];
4208
+ cursor?: Prisma.MediaWhereUniqueInput;
4209
+ take?: number;
4210
+ skip?: number;
4211
+ distinct?: Prisma.MediaScalarFieldEnum | Prisma.MediaScalarFieldEnum[];
4212
+ };
4213
+ /**
4214
+ * User.contentLocks
4215
+ */
4216
+ export type User$contentLocksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4217
+ /**
4218
+ * Select specific fields to fetch from the ContentLock
4219
+ */
4220
+ select?: Prisma.ContentLockSelect<ExtArgs> | null;
4221
+ /**
4222
+ * Omit specific fields from the ContentLock
4223
+ */
4224
+ omit?: Prisma.ContentLockOmit<ExtArgs> | null;
4225
+ /**
4226
+ * Choose, which related nodes to fetch as well
4227
+ */
4228
+ include?: Prisma.ContentLockInclude<ExtArgs> | null;
4229
+ where?: Prisma.ContentLockWhereInput;
4230
+ orderBy?: Prisma.ContentLockOrderByWithRelationInput | Prisma.ContentLockOrderByWithRelationInput[];
4231
+ cursor?: Prisma.ContentLockWhereUniqueInput;
4232
+ take?: number;
4233
+ skip?: number;
4234
+ distinct?: Prisma.ContentLockScalarFieldEnum | Prisma.ContentLockScalarFieldEnum[];
4235
+ };
4236
+ /**
4237
+ * User.notifications
4238
+ */
4239
+ export type User$notificationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4240
+ /**
4241
+ * Select specific fields to fetch from the InAppNotification
4242
+ */
4243
+ select?: Prisma.InAppNotificationSelect<ExtArgs> | null;
4244
+ /**
4245
+ * Omit specific fields from the InAppNotification
4246
+ */
4247
+ omit?: Prisma.InAppNotificationOmit<ExtArgs> | null;
4248
+ /**
4249
+ * Choose, which related nodes to fetch as well
4250
+ */
4251
+ include?: Prisma.InAppNotificationInclude<ExtArgs> | null;
4252
+ where?: Prisma.InAppNotificationWhereInput;
4253
+ orderBy?: Prisma.InAppNotificationOrderByWithRelationInput | Prisma.InAppNotificationOrderByWithRelationInput[];
4254
+ cursor?: Prisma.InAppNotificationWhereUniqueInput;
4255
+ take?: number;
4256
+ skip?: number;
4257
+ distinct?: Prisma.InAppNotificationScalarFieldEnum | Prisma.InAppNotificationScalarFieldEnum[];
4258
+ };
4259
+ /**
4260
+ * User.contentTemplates
4261
+ */
4262
+ export type User$contentTemplatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4263
+ /**
4264
+ * Select specific fields to fetch from the ContentTemplate
4265
+ */
4266
+ select?: Prisma.ContentTemplateSelect<ExtArgs> | null;
4267
+ /**
4268
+ * Omit specific fields from the ContentTemplate
4269
+ */
4270
+ omit?: Prisma.ContentTemplateOmit<ExtArgs> | null;
4271
+ /**
4272
+ * Choose, which related nodes to fetch as well
4273
+ */
4274
+ include?: Prisma.ContentTemplateInclude<ExtArgs> | null;
4275
+ where?: Prisma.ContentTemplateWhereInput;
4276
+ orderBy?: Prisma.ContentTemplateOrderByWithRelationInput | Prisma.ContentTemplateOrderByWithRelationInput[];
4277
+ cursor?: Prisma.ContentTemplateWhereUniqueInput;
4278
+ take?: number;
4279
+ skip?: number;
4280
+ distinct?: Prisma.ContentTemplateScalarFieldEnum | Prisma.ContentTemplateScalarFieldEnum[];
4281
+ };
4282
+ /**
4283
+ * User.workflowAssigned
4284
+ */
4285
+ export type User$workflowAssignedArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4286
+ /**
4287
+ * Select specific fields to fetch from the WorkflowState
4288
+ */
4289
+ select?: Prisma.WorkflowStateSelect<ExtArgs> | null;
4290
+ /**
4291
+ * Omit specific fields from the WorkflowState
4292
+ */
4293
+ omit?: Prisma.WorkflowStateOmit<ExtArgs> | null;
4294
+ /**
4295
+ * Choose, which related nodes to fetch as well
4296
+ */
4297
+ include?: Prisma.WorkflowStateInclude<ExtArgs> | null;
4298
+ where?: Prisma.WorkflowStateWhereInput;
4299
+ orderBy?: Prisma.WorkflowStateOrderByWithRelationInput | Prisma.WorkflowStateOrderByWithRelationInput[];
4300
+ cursor?: Prisma.WorkflowStateWhereUniqueInput;
4301
+ take?: number;
4302
+ skip?: number;
4303
+ distinct?: Prisma.WorkflowStateScalarFieldEnum | Prisma.WorkflowStateScalarFieldEnum[];
4304
+ };
4305
+ /**
4306
+ * User.passwordResetTokens
4307
+ */
4308
+ export type User$passwordResetTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4309
+ /**
4310
+ * Select specific fields to fetch from the PasswordResetToken
4311
+ */
4312
+ select?: Prisma.PasswordResetTokenSelect<ExtArgs> | null;
4313
+ /**
4314
+ * Omit specific fields from the PasswordResetToken
4315
+ */
4316
+ omit?: Prisma.PasswordResetTokenOmit<ExtArgs> | null;
4317
+ /**
4318
+ * Choose, which related nodes to fetch as well
4319
+ */
4320
+ include?: Prisma.PasswordResetTokenInclude<ExtArgs> | null;
4321
+ where?: Prisma.PasswordResetTokenWhereInput;
4322
+ orderBy?: Prisma.PasswordResetTokenOrderByWithRelationInput | Prisma.PasswordResetTokenOrderByWithRelationInput[];
4323
+ cursor?: Prisma.PasswordResetTokenWhereUniqueInput;
4324
+ take?: number;
4325
+ skip?: number;
4326
+ distinct?: Prisma.PasswordResetTokenScalarFieldEnum | Prisma.PasswordResetTokenScalarFieldEnum[];
4327
+ };
4328
+ /**
4329
+ * User without action
4330
+ */
4331
+ export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
4332
+ /**
4333
+ * Select specific fields to fetch from the User
4334
+ */
4335
+ select?: Prisma.UserSelect<ExtArgs> | null;
4336
+ /**
4337
+ * Omit specific fields from the User
4338
+ */
4339
+ omit?: Prisma.UserOmit<ExtArgs> | null;
4340
+ /**
4341
+ * Choose, which related nodes to fetch as well
4342
+ */
4343
+ include?: Prisma.UserInclude<ExtArgs> | null;
4344
+ };