@crowi/api 2.0.0-alpha.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 (887) hide show
  1. package/LICENSE +21 -0
  2. package/dist/app.d.ts +8 -0
  3. package/dist/app.js +65 -0
  4. package/dist/app.js.map +1 -0
  5. package/dist/collab/attach.d.ts +33 -0
  6. package/dist/collab/attach.js +341 -0
  7. package/dist/collab/attach.js.map +1 -0
  8. package/dist/collab/extension-redis.d.ts +25 -0
  9. package/dist/collab/extension-redis.js +133 -0
  10. package/dist/collab/extension-redis.js.map +1 -0
  11. package/dist/common/functions/path2name.d.ts +1 -0
  12. package/dist/common/functions/path2name.js +22 -0
  13. package/dist/common/functions/path2name.js.map +1 -0
  14. package/dist/common/functions/renderIcon.d.ts +1 -0
  15. package/dist/common/functions/renderIcon.js +9 -0
  16. package/dist/common/functions/renderIcon.js.map +1 -0
  17. package/dist/controllers/admin.d.ts +3 -0
  18. package/dist/controllers/admin.js +474 -0
  19. package/dist/controllers/admin.js.map +1 -0
  20. package/dist/controllers/attachment.d.ts +4 -0
  21. package/dist/controllers/attachment.js +200 -0
  22. package/dist/controllers/attachment.js.map +1 -0
  23. package/dist/controllers/backlink.d.ts +3 -0
  24. package/dist/controllers/backlink.js +42 -0
  25. package/dist/controllers/backlink.js.map +1 -0
  26. package/dist/controllers/bookmark.d.ts +3 -0
  27. package/dist/controllers/bookmark.js +100 -0
  28. package/dist/controllers/bookmark.js.map +1 -0
  29. package/dist/controllers/comment.d.ts +3 -0
  30. package/dist/controllers/comment.js +111 -0
  31. package/dist/controllers/comment.js.map +1 -0
  32. package/dist/controllers/index.d.ts +25 -0
  33. package/dist/controllers/index.js +44 -0
  34. package/dist/controllers/index.js.map +1 -0
  35. package/dist/controllers/installer.d.ts +3 -0
  36. package/dist/controllers/installer.js +48 -0
  37. package/dist/controllers/installer.js.map +1 -0
  38. package/dist/controllers/login.d.ts +4 -0
  39. package/dist/controllers/login.js +438 -0
  40. package/dist/controllers/login.js.map +1 -0
  41. package/dist/controllers/logout.d.ts +5 -0
  42. package/dist/controllers/logout.js +11 -0
  43. package/dist/controllers/logout.js.map +1 -0
  44. package/dist/controllers/me.d.ts +4 -0
  45. package/dist/controllers/me.js +369 -0
  46. package/dist/controllers/me.js.map +1 -0
  47. package/dist/controllers/notification.d.ts +3 -0
  48. package/dist/controllers/notification.js +88 -0
  49. package/dist/controllers/notification.js.map +1 -0
  50. package/dist/controllers/page.d.ts +3 -0
  51. package/dist/controllers/page.js +881 -0
  52. package/dist/controllers/page.js.map +1 -0
  53. package/dist/controllers/revision.d.ts +3 -0
  54. package/dist/controllers/revision.js +91 -0
  55. package/dist/controllers/revision.js.map +1 -0
  56. package/dist/controllers/search.d.ts +3 -0
  57. package/dist/controllers/search.js +93 -0
  58. package/dist/controllers/search.js.map +1 -0
  59. package/dist/controllers/share.d.ts +3 -0
  60. package/dist/controllers/share.js +207 -0
  61. package/dist/controllers/share.js.map +1 -0
  62. package/dist/controllers/shareAccess.d.ts +3 -0
  63. package/dist/controllers/shareAccess.js +28 -0
  64. package/dist/controllers/shareAccess.js.map +1 -0
  65. package/dist/controllers/slack.d.ts +3 -0
  66. package/dist/controllers/slack.js +87 -0
  67. package/dist/controllers/slack.js.map +1 -0
  68. package/dist/controllers/tokenAuth.d.ts +10 -0
  69. package/dist/controllers/tokenAuth.js +292 -0
  70. package/dist/controllers/tokenAuth.js.map +1 -0
  71. package/dist/controllers/user.d.ts +3 -0
  72. package/dist/controllers/user.js +67 -0
  73. package/dist/controllers/user.js.map +1 -0
  74. package/dist/controllers/version.d.ts +4 -0
  75. package/dist/controllers/version.js +19 -0
  76. package/dist/controllers/version.js.map +1 -0
  77. package/dist/crowi/express-init.d.ts +4 -0
  78. package/dist/crowi/express-init.js +101 -0
  79. package/dist/crowi/express-init.js.map +1 -0
  80. package/dist/crowi/index.d.ts +245 -0
  81. package/dist/crowi/index.js +726 -0
  82. package/dist/crowi/index.js.map +1 -0
  83. package/dist/events/activity.d.ts +7 -0
  84. package/dist/events/activity.js +15 -0
  85. package/dist/events/activity.js.map +1 -0
  86. package/dist/events/bookmark.d.ts +8 -0
  87. package/dist/events/bookmark.js +16 -0
  88. package/dist/events/bookmark.js.map +1 -0
  89. package/dist/events/comment.d.ts +6 -0
  90. package/dist/events/comment.js +14 -0
  91. package/dist/events/comment.js.map +1 -0
  92. package/dist/events/config.d.ts +6 -0
  93. package/dist/events/config.js +12 -0
  94. package/dist/events/config.js.map +1 -0
  95. package/dist/events/index.d.ts +17 -0
  96. package/dist/events/index.js +22 -0
  97. package/dist/events/index.js.map +1 -0
  98. package/dist/events/mention-dispatch.d.ts +44 -0
  99. package/dist/events/mention-dispatch.js +151 -0
  100. package/dist/events/mention-dispatch.js.map +1 -0
  101. package/dist/events/notification.d.ts +7 -0
  102. package/dist/events/notification.js +15 -0
  103. package/dist/events/notification.js.map +1 -0
  104. package/dist/events/page.d.ts +44 -0
  105. package/dist/events/page.js +134 -0
  106. package/dist/events/page.js.map +1 -0
  107. package/dist/events/render-cache.d.ts +24 -0
  108. package/dist/events/render-cache.js +63 -0
  109. package/dist/events/render-cache.js.map +1 -0
  110. package/dist/events/user.d.ts +9 -0
  111. package/dist/events/user.js +39 -0
  112. package/dist/events/user.js.map +1 -0
  113. package/dist/form/admin/app.d.ts +2 -0
  114. package/dist/form/admin/app.js +9 -0
  115. package/dist/form/admin/app.js.map +1 -0
  116. package/dist/form/admin/auth.d.ts +2 -0
  117. package/dist/form/admin/auth.js +9 -0
  118. package/dist/form/admin/auth.js.map +1 -0
  119. package/dist/form/admin/aws.d.ts +2 -0
  120. package/dist/form/admin/aws.js +13 -0
  121. package/dist/form/admin/aws.js.map +1 -0
  122. package/dist/form/admin/github.d.ts +2 -0
  123. package/dist/form/admin/github.js +15 -0
  124. package/dist/form/admin/github.js.map +1 -0
  125. package/dist/form/admin/google.d.ts +2 -0
  126. package/dist/form/admin/google.js +13 -0
  127. package/dist/form/admin/google.js.map +1 -0
  128. package/dist/form/admin/mail.d.ts +2 -0
  129. package/dist/form/admin/mail.js +13 -0
  130. package/dist/form/admin/mail.js.map +1 -0
  131. package/dist/form/admin/sec.d.ts +2 -0
  132. package/dist/form/admin/sec.js +10 -0
  133. package/dist/form/admin/sec.js.map +1 -0
  134. package/dist/form/admin/slackSetting.d.ts +2 -0
  135. package/dist/form/admin/slackSetting.js +13 -0
  136. package/dist/form/admin/slackSetting.js.map +1 -0
  137. package/dist/form/admin/userEdit.d.ts +2 -0
  138. package/dist/form/admin/userEdit.js +9 -0
  139. package/dist/form/admin/userEdit.js.map +1 -0
  140. package/dist/form/admin/userInvite.d.ts +2 -0
  141. package/dist/form/admin/userInvite.js +9 -0
  142. package/dist/form/admin/userInvite.js.map +1 -0
  143. package/dist/form/comment.d.ts +2 -0
  144. package/dist/form/comment.js +9 -0
  145. package/dist/form/comment.js.map +1 -0
  146. package/dist/form/index.d.ts +25 -0
  147. package/dist/form/index.js +48 -0
  148. package/dist/form/index.js.map +1 -0
  149. package/dist/form/invited.d.ts +2 -0
  150. package/dist/form/invited.js +13 -0
  151. package/dist/form/invited.js.map +1 -0
  152. package/dist/form/login.d.ts +2 -0
  153. package/dist/form/login.js +11 -0
  154. package/dist/form/login.js.map +1 -0
  155. package/dist/form/me/apiToken.d.ts +2 -0
  156. package/dist/form/me/apiToken.js +9 -0
  157. package/dist/form/me/apiToken.js.map +1 -0
  158. package/dist/form/me/password.d.ts +2 -0
  159. package/dist/form/me/password.js +11 -0
  160. package/dist/form/me/password.js.map +1 -0
  161. package/dist/form/me/user.d.ts +2 -0
  162. package/dist/form/me/user.js +9 -0
  163. package/dist/form/me/user.js.map +1 -0
  164. package/dist/form/register.d.ts +2 -0
  165. package/dist/form/register.js +13 -0
  166. package/dist/form/register.js.map +1 -0
  167. package/dist/form/revision.d.ts +2 -0
  168. package/dist/form/revision.js +13 -0
  169. package/dist/form/revision.js.map +1 -0
  170. package/dist/hono/app.d.ts +19 -0
  171. package/dist/hono/app.js +21 -0
  172. package/dist/hono/app.js.map +1 -0
  173. package/dist/hono/handlers/_helpers/errors.d.ts +61 -0
  174. package/dist/hono/handlers/_helpers/errors.js +51 -0
  175. package/dist/hono/handlers/_helpers/errors.js.map +1 -0
  176. package/dist/hono/handlers/_helpers/user-shape.d.ts +46 -0
  177. package/dist/hono/handlers/_helpers/user-shape.js +23 -0
  178. package/dist/hono/handlers/_helpers/user-shape.js.map +1 -0
  179. package/dist/hono/handlers/access-token.d.ts +221 -0
  180. package/dist/hono/handlers/access-token.js +113 -0
  181. package/dist/hono/handlers/access-token.js.map +1 -0
  182. package/dist/hono/handlers/activation.d.ts +117 -0
  183. package/dist/hono/handlers/activation.js +77 -0
  184. package/dist/hono/handlers/activation.js.map +1 -0
  185. package/dist/hono/handlers/admin/app.d.ts +123 -0
  186. package/dist/hono/handlers/admin/app.js +76 -0
  187. package/dist/hono/handlers/admin/app.js.map +1 -0
  188. package/dist/hono/handlers/admin/auth.d.ts +127 -0
  189. package/dist/hono/handlers/admin/auth.js +91 -0
  190. package/dist/hono/handlers/admin/auth.js.map +1 -0
  191. package/dist/hono/handlers/admin/mail.d.ts +168 -0
  192. package/dist/hono/handlers/admin/mail.js +76 -0
  193. package/dist/hono/handlers/admin/mail.js.map +1 -0
  194. package/dist/hono/handlers/admin/plugins.d.ts +409 -0
  195. package/dist/hono/handlers/admin/plugins.js +257 -0
  196. package/dist/hono/handlers/admin/plugins.js.map +1 -0
  197. package/dist/hono/handlers/admin/search.d.ts +57 -0
  198. package/dist/hono/handlers/admin/search.js +55 -0
  199. package/dist/hono/handlers/admin/search.js.map +1 -0
  200. package/dist/hono/handlers/admin/security.d.ts +112 -0
  201. package/dist/hono/handlers/admin/security.js +71 -0
  202. package/dist/hono/handlers/admin/security.js.map +1 -0
  203. package/dist/hono/handlers/admin/share.d.ts +106 -0
  204. package/dist/hono/handlers/admin/share.js +55 -0
  205. package/dist/hono/handlers/admin/share.js.map +1 -0
  206. package/dist/hono/handlers/admin/storage.d.ts +55 -0
  207. package/dist/hono/handlers/admin/storage.js +40 -0
  208. package/dist/hono/handlers/admin/storage.js.map +1 -0
  209. package/dist/hono/handlers/admin/users.d.ts +1230 -0
  210. package/dist/hono/handlers/admin/users.js +316 -0
  211. package/dist/hono/handlers/admin/users.js.map +1 -0
  212. package/dist/hono/handlers/adminCrypto.d.ts +110 -0
  213. package/dist/hono/handlers/adminCrypto.js +151 -0
  214. package/dist/hono/handlers/adminCrypto.js.map +1 -0
  215. package/dist/hono/handlers/app.d.ts +26 -0
  216. package/dist/hono/handlers/app.js +34 -0
  217. package/dist/hono/handlers/app.js.map +1 -0
  218. package/dist/hono/handlers/attachment-stream.d.ts +4 -0
  219. package/dist/hono/handlers/attachment-stream.js +211 -0
  220. package/dist/hono/handlers/attachment-stream.js.map +1 -0
  221. package/dist/hono/handlers/attachment.d.ts +687 -0
  222. package/dist/hono/handlers/attachment.js +566 -0
  223. package/dist/hono/handlers/attachment.js.map +1 -0
  224. package/dist/hono/handlers/autocomplete.d.ts +160 -0
  225. package/dist/hono/handlers/autocomplete.js +181 -0
  226. package/dist/hono/handlers/autocomplete.js.map +1 -0
  227. package/dist/hono/handlers/backlink.d.ts +78 -0
  228. package/dist/hono/handlers/backlink.js +93 -0
  229. package/dist/hono/handlers/backlink.js.map +1 -0
  230. package/dist/hono/handlers/bookmark.d.ts +558 -0
  231. package/dist/hono/handlers/bookmark.js +166 -0
  232. package/dist/hono/handlers/bookmark.js.map +1 -0
  233. package/dist/hono/handlers/comment.d.ts +231 -0
  234. package/dist/hono/handlers/comment.js +191 -0
  235. package/dist/hono/handlers/comment.js.map +1 -0
  236. package/dist/hono/handlers/draft.d.ts +136 -0
  237. package/dist/hono/handlers/draft.js +191 -0
  238. package/dist/hono/handlers/draft.js.map +1 -0
  239. package/dist/hono/handlers/emailChange.d.ts +124 -0
  240. package/dist/hono/handlers/emailChange.js +79 -0
  241. package/dist/hono/handlers/emailChange.js.map +1 -0
  242. package/dist/hono/handlers/installer.d.ts +94 -0
  243. package/dist/hono/handlers/installer.js +93 -0
  244. package/dist/hono/handlers/installer.js.map +1 -0
  245. package/dist/hono/handlers/inviteAccept.d.ts +180 -0
  246. package/dist/hono/handlers/inviteAccept.js +94 -0
  247. package/dist/hono/handlers/inviteAccept.js.map +1 -0
  248. package/dist/hono/handlers/me.d.ts +401 -0
  249. package/dist/hono/handlers/me.js +390 -0
  250. package/dist/hono/handlers/me.js.map +1 -0
  251. package/dist/hono/handlers/notification.d.ts +274 -0
  252. package/dist/hono/handlers/notification.js +224 -0
  253. package/dist/hono/handlers/notification.js.map +1 -0
  254. package/dist/hono/handlers/oauth.d.ts +299 -0
  255. package/dist/hono/handlers/oauth.js +443 -0
  256. package/dist/hono/handlers/oauth.js.map +1 -0
  257. package/dist/hono/handlers/page-collab.d.ts +79 -0
  258. package/dist/hono/handlers/page-collab.js +98 -0
  259. package/dist/hono/handlers/page-collab.js.map +1 -0
  260. package/dist/hono/handlers/page-preview.d.ts +48 -0
  261. package/dist/hono/handlers/page-preview.js +83 -0
  262. package/dist/hono/handlers/page-preview.js.map +1 -0
  263. package/dist/hono/handlers/page.d.ts +2059 -0
  264. package/dist/hono/handlers/page.js +793 -0
  265. package/dist/hono/handlers/page.js.map +1 -0
  266. package/dist/hono/handlers/passwordReset.d.ts +181 -0
  267. package/dist/hono/handlers/passwordReset.js +101 -0
  268. package/dist/hono/handlers/passwordReset.js.map +1 -0
  269. package/dist/hono/handlers/presence.d.ts +178 -0
  270. package/dist/hono/handlers/presence.js +163 -0
  271. package/dist/hono/handlers/presence.js.map +1 -0
  272. package/dist/hono/handlers/revision.d.ts +345 -0
  273. package/dist/hono/handlers/revision.js +202 -0
  274. package/dist/hono/handlers/revision.js.map +1 -0
  275. package/dist/hono/handlers/search.d.ts +208 -0
  276. package/dist/hono/handlers/search.js +152 -0
  277. package/dist/hono/handlers/search.js.map +1 -0
  278. package/dist/hono/handlers/tokenAuth.d.ts +369 -0
  279. package/dist/hono/handlers/tokenAuth.js +240 -0
  280. package/dist/hono/handlers/tokenAuth.js.map +1 -0
  281. package/dist/hono/handlers/user.d.ts +710 -0
  282. package/dist/hono/handlers/user.js +212 -0
  283. package/dist/hono/handlers/user.js.map +1 -0
  284. package/dist/hono/index.d.ts +289 -0
  285. package/dist/hono/index.js +240 -0
  286. package/dist/hono/index.js.map +1 -0
  287. package/dist/hono/middleware/admin.d.ts +5 -0
  288. package/dist/hono/middleware/admin.js +34 -0
  289. package/dist/hono/middleware/admin.js.map +1 -0
  290. package/dist/hono/middleware/auth.d.ts +54 -0
  291. package/dist/hono/middleware/auth.js +142 -0
  292. package/dist/hono/middleware/auth.js.map +1 -0
  293. package/dist/hono/middleware/cors.d.ts +3 -0
  294. package/dist/hono/middleware/cors.js +86 -0
  295. package/dist/hono/middleware/cors.js.map +1 -0
  296. package/dist/hono/middleware/default-hook.d.ts +8 -0
  297. package/dist/hono/middleware/default-hook.js +17 -0
  298. package/dist/hono/middleware/default-hook.js.map +1 -0
  299. package/dist/hono/middleware/error-handler.d.ts +2 -0
  300. package/dist/hono/middleware/error-handler.js +20 -0
  301. package/dist/hono/middleware/error-handler.js.map +1 -0
  302. package/dist/hono/middleware/rate-limit.d.ts +57 -0
  303. package/dist/hono/middleware/rate-limit.js +42 -0
  304. package/dist/hono/middleware/rate-limit.js.map +1 -0
  305. package/dist/hono/middleware/require-scope.d.ts +50 -0
  306. package/dist/hono/middleware/require-scope.js +64 -0
  307. package/dist/hono/middleware/require-scope.js.map +1 -0
  308. package/dist/hono/path-rewrite.d.ts +15 -0
  309. package/dist/hono/path-rewrite.js +59 -0
  310. package/dist/hono/path-rewrite.js.map +1 -0
  311. package/dist/mail/i18n/en.d.ts +2 -0
  312. package/dist/mail/i18n/en.js +66 -0
  313. package/dist/mail/i18n/en.js.map +1 -0
  314. package/dist/mail/i18n/index.d.ts +46 -0
  315. package/dist/mail/i18n/index.js +31 -0
  316. package/dist/mail/i18n/index.js.map +1 -0
  317. package/dist/mail/i18n/ja.d.ts +2 -0
  318. package/dist/mail/i18n/ja.js +66 -0
  319. package/dist/mail/i18n/ja.js.map +1 -0
  320. package/dist/mcp/attach.d.ts +25 -0
  321. package/dist/mcp/attach.js +104 -0
  322. package/dist/mcp/attach.js.map +1 -0
  323. package/dist/mcp/dispatch.d.ts +59 -0
  324. package/dist/mcp/dispatch.js +70 -0
  325. package/dist/mcp/dispatch.js.map +1 -0
  326. package/dist/mcp/result.d.ts +40 -0
  327. package/dist/mcp/result.js +78 -0
  328. package/dist/mcp/result.js.map +1 -0
  329. package/dist/mcp/server.d.ts +67 -0
  330. package/dist/mcp/server.js +113 -0
  331. package/dist/mcp/server.js.map +1 -0
  332. package/dist/mcp/tools/page.d.ts +2 -0
  333. package/dist/mcp/tools/page.js +256 -0
  334. package/dist/mcp/tools/page.js.map +1 -0
  335. package/dist/mcp/tools/search.d.ts +2 -0
  336. package/dist/mcp/tools/search.js +36 -0
  337. package/dist/mcp/tools/search.js.map +1 -0
  338. package/dist/middlewares/accessTokenParser.d.ts +4 -0
  339. package/dist/middlewares/accessTokenParser.js +29 -0
  340. package/dist/middlewares/accessTokenParser.js.map +1 -0
  341. package/dist/middlewares/adminRequired.d.ts +10 -0
  342. package/dist/middlewares/adminRequired.js +35 -0
  343. package/dist/middlewares/adminRequired.js.map +1 -0
  344. package/dist/middlewares/applicationInstalled.d.ts +3 -0
  345. package/dist/middlewares/applicationInstalled.js +20 -0
  346. package/dist/middlewares/applicationInstalled.js.map +1 -0
  347. package/dist/middlewares/applicationNotInstalled.d.ts +3 -0
  348. package/dist/middlewares/applicationNotInstalled.js +13 -0
  349. package/dist/middlewares/applicationNotInstalled.js.map +1 -0
  350. package/dist/middlewares/basicAuth.d.ts +4 -0
  351. package/dist/middlewares/basicAuth.js +23 -0
  352. package/dist/middlewares/basicAuth.js.map +1 -0
  353. package/dist/middlewares/csrfVerify.d.ts +4 -0
  354. package/dist/middlewares/csrfVerify.js +24 -0
  355. package/dist/middlewares/csrfVerify.js.map +1 -0
  356. package/dist/middlewares/encodeSpace.d.ts +3 -0
  357. package/dist/middlewares/encodeSpace.js +14 -0
  358. package/dist/middlewares/encodeSpace.js.map +1 -0
  359. package/dist/middlewares/fileAccessRightOrLoginRequired.d.ts +4 -0
  360. package/dist/middlewares/fileAccessRightOrLoginRequired.js +29 -0
  361. package/dist/middlewares/fileAccessRightOrLoginRequired.js.map +1 -0
  362. package/dist/middlewares/index.d.ts +16 -0
  363. package/dist/middlewares/index.js +30 -0
  364. package/dist/middlewares/index.js.map +1 -0
  365. package/dist/middlewares/jwtAdminRequired.d.ts +8 -0
  366. package/dist/middlewares/jwtAdminRequired.js +35 -0
  367. package/dist/middlewares/jwtAdminRequired.js.map +1 -0
  368. package/dist/middlewares/jwtAuth.d.ts +4 -0
  369. package/dist/middlewares/jwtAuth.js +104 -0
  370. package/dist/middlewares/jwtAuth.js.map +1 -0
  371. package/dist/middlewares/loginChecker.d.ts +4 -0
  372. package/dist/middlewares/loginChecker.js +32 -0
  373. package/dist/middlewares/loginChecker.js.map +1 -0
  374. package/dist/middlewares/loginRequired.d.ts +4 -0
  375. package/dist/middlewares/loginRequired.js +88 -0
  376. package/dist/middlewares/loginRequired.js.map +1 -0
  377. package/dist/migration/cli-api.d.ts +83 -0
  378. package/dist/migration/cli-api.js +128 -0
  379. package/dist/migration/cli-api.js.map +1 -0
  380. package/dist/migration/migrations/index.d.ts +12 -0
  381. package/dist/migration/migrations/index.js +24 -0
  382. package/dist/migration/migrations/index.js.map +1 -0
  383. package/dist/migration/migrations/page-status-default.d.ts +25 -0
  384. package/dist/migration/migrations/page-status-default.js +79 -0
  385. package/dist/migration/migrations/page-status-default.js.map +1 -0
  386. package/dist/migration/migrations/revisions-schema-unify.d.ts +33 -0
  387. package/dist/migration/migrations/revisions-schema-unify.js +88 -0
  388. package/dist/migration/migrations/revisions-schema-unify.js.map +1 -0
  389. package/dist/migration/migrations/user-unique-prepare.d.ts +1 -0
  390. package/dist/migration/migrations/user-unique-prepare.js +214 -0
  391. package/dist/migration/migrations/user-unique-prepare.js.map +1 -0
  392. package/dist/migration/migrations/wikilink-format.d.ts +97 -0
  393. package/dist/migration/migrations/wikilink-format.js +418 -0
  394. package/dist/migration/migrations/wikilink-format.js.map +1 -0
  395. package/dist/migration/rebuild-api.d.ts +50 -0
  396. package/dist/migration/rebuild-api.js +45 -0
  397. package/dist/migration/rebuild-api.js.map +1 -0
  398. package/dist/migration/rebuild-runner.d.ts +64 -0
  399. package/dist/migration/rebuild-runner.js +42 -0
  400. package/dist/migration/rebuild-runner.js.map +1 -0
  401. package/dist/migration/rebuilds/index.d.ts +26 -0
  402. package/dist/migration/rebuilds/index.js +69 -0
  403. package/dist/migration/rebuilds/index.js.map +1 -0
  404. package/dist/migration/registry.d.ts +15 -0
  405. package/dist/migration/registry.js +96 -0
  406. package/dist/migration/registry.js.map +1 -0
  407. package/dist/migration/run-boot-migrations.d.ts +31 -0
  408. package/dist/migration/run-boot-migrations.js +95 -0
  409. package/dist/migration/run-boot-migrations.js.map +1 -0
  410. package/dist/migration/runner.d.ts +120 -0
  411. package/dist/migration/runner.js +276 -0
  412. package/dist/migration/runner.js.map +1 -0
  413. package/dist/migration/types.d.ts +153 -0
  414. package/dist/migration/types.js +13 -0
  415. package/dist/migration/types.js.map +1 -0
  416. package/dist/models/activity.d.ts +34 -0
  417. package/dist/models/activity.js +263 -0
  418. package/dist/models/activity.js.map +1 -0
  419. package/dist/models/attachment.d.ts +25 -0
  420. package/dist/models/attachment.js +82 -0
  421. package/dist/models/attachment.js.map +1 -0
  422. package/dist/models/backlink.d.ts +19 -0
  423. package/dist/models/backlink.js +138 -0
  424. package/dist/models/backlink.js.map +1 -0
  425. package/dist/models/bookmark.d.ts +28 -0
  426. package/dist/models/bookmark.js +136 -0
  427. package/dist/models/bookmark.js.map +1 -0
  428. package/dist/models/comment.d.ts +21 -0
  429. package/dist/models/comment.js +87 -0
  430. package/dist/models/comment.js.map +1 -0
  431. package/dist/models/config-sensitive.d.ts +21 -0
  432. package/dist/models/config-sensitive.js +71 -0
  433. package/dist/models/config-sensitive.js.map +1 -0
  434. package/dist/models/config.d.ts +34 -0
  435. package/dist/models/config.js +161 -0
  436. package/dist/models/config.js.map +1 -0
  437. package/dist/models/index.d.ts +30 -0
  438. package/dist/models/index.js +55 -0
  439. package/dist/models/index.js.map +1 -0
  440. package/dist/models/migration-application.d.ts +54 -0
  441. package/dist/models/migration-application.js +36 -0
  442. package/dist/models/migration-application.js.map +1 -0
  443. package/dist/models/notification.d.ts +28 -0
  444. package/dist/models/notification.js +285 -0
  445. package/dist/models/notification.js.map +1 -0
  446. package/dist/models/oauth-authorization-code.d.ts +34 -0
  447. package/dist/models/oauth-authorization-code.js +100 -0
  448. package/dist/models/oauth-authorization-code.js.map +1 -0
  449. package/dist/models/oauth-client.d.ts +36 -0
  450. package/dist/models/oauth-client.js +56 -0
  451. package/dist/models/oauth-client.js.map +1 -0
  452. package/dist/models/oauth-device-code.d.ts +55 -0
  453. package/dist/models/oauth-device-code.js +158 -0
  454. package/dist/models/oauth-device-code.js.map +1 -0
  455. package/dist/models/oauth-refresh-token.d.ts +31 -0
  456. package/dist/models/oauth-refresh-token.js +118 -0
  457. package/dist/models/oauth-refresh-token.js.map +1 -0
  458. package/dist/models/page-yjs-update.d.ts +35 -0
  459. package/dist/models/page-yjs-update.js +33 -0
  460. package/dist/models/page-yjs-update.js.map +1 -0
  461. package/dist/models/page.d.ts +200 -0
  462. package/dist/models/page.js +1117 -0
  463. package/dist/models/page.js.map +1 -0
  464. package/dist/models/personal-access-token.d.ts +30 -0
  465. package/dist/models/personal-access-token.js +107 -0
  466. package/dist/models/personal-access-token.js.map +1 -0
  467. package/dist/models/plugin-render-cache.d.ts +40 -0
  468. package/dist/models/plugin-render-cache.js +39 -0
  469. package/dist/models/plugin-render-cache.js.map +1 -0
  470. package/dist/models/revision.d.ts +145 -0
  471. package/dist/models/revision.js +241 -0
  472. package/dist/models/revision.js.map +1 -0
  473. package/dist/models/share.d.ts +38 -0
  474. package/dist/models/share.js +137 -0
  475. package/dist/models/share.js.map +1 -0
  476. package/dist/models/shareAccess.d.ts +20 -0
  477. package/dist/models/shareAccess.js +45 -0
  478. package/dist/models/shareAccess.js.map +1 -0
  479. package/dist/models/tracking.d.ts +14 -0
  480. package/dist/models/tracking.js +14 -0
  481. package/dist/models/tracking.js.map +1 -0
  482. package/dist/models/updatePost.d.ts +25 -0
  483. package/dist/models/updatePost.js +87 -0
  484. package/dist/models/updatePost.js.map +1 -0
  485. package/dist/models/user.d.ts +144 -0
  486. package/dist/models/user.js +681 -0
  487. package/dist/models/user.js.map +1 -0
  488. package/dist/models/watcher.d.ts +23 -0
  489. package/dist/models/watcher.js +75 -0
  490. package/dist/models/watcher.js.map +1 -0
  491. package/dist/notifications/attach.d.ts +63 -0
  492. package/dist/notifications/attach.js +426 -0
  493. package/dist/notifications/attach.js.map +1 -0
  494. package/dist/notifications/channel.d.ts +13 -0
  495. package/dist/notifications/channel.js +18 -0
  496. package/dist/notifications/channel.js.map +1 -0
  497. package/dist/plugin/index.d.ts +2 -0
  498. package/dist/plugin/index.js +6 -0
  499. package/dist/plugin/index.js.map +1 -0
  500. package/dist/plugin/plugin-context.d.ts +22 -0
  501. package/dist/plugin/plugin-context.js +126 -0
  502. package/dist/plugin/plugin-context.js.map +1 -0
  503. package/dist/plugin/plugin-manager.d.ts +164 -0
  504. package/dist/plugin/plugin-manager.js +328 -0
  505. package/dist/plugin/plugin-manager.js.map +1 -0
  506. package/dist/plugin/plugin-namespace.d.ts +28 -0
  507. package/dist/plugin/plugin-namespace.js +53 -0
  508. package/dist/plugin/plugin-namespace.js.map +1 -0
  509. package/dist/plugin/registries.d.ts +38 -0
  510. package/dist/plugin/registries.js +71 -0
  511. package/dist/plugin/registries.js.map +1 -0
  512. package/dist/plugin/schema-serializer.d.ts +34 -0
  513. package/dist/plugin/schema-serializer.js +122 -0
  514. package/dist/plugin/schema-serializer.js.map +1 -0
  515. package/dist/plugin/topo-sort.d.ts +15 -0
  516. package/dist/plugin/topo-sort.js +59 -0
  517. package/dist/plugin/topo-sort.js.map +1 -0
  518. package/dist/presence/attach.d.ts +36 -0
  519. package/dist/presence/attach.js +399 -0
  520. package/dist/presence/attach.js.map +1 -0
  521. package/dist/renderer/__fixtures__/echo-embed.d.ts +27 -0
  522. package/dist/renderer/__fixtures__/echo-embed.js +24 -0
  523. package/dist/renderer/__fixtures__/echo-embed.js.map +1 -0
  524. package/dist/renderer/cache/index.d.ts +60 -0
  525. package/dist/renderer/cache/index.js +219 -0
  526. package/dist/renderer/cache/index.js.map +1 -0
  527. package/dist/renderer/cache/mongodb-cache.d.ts +82 -0
  528. package/dist/renderer/cache/mongodb-cache.js +180 -0
  529. package/dist/renderer/cache/mongodb-cache.js.map +1 -0
  530. package/dist/renderer/cache/reservation.d.ts +20 -0
  531. package/dist/renderer/cache/reservation.js +115 -0
  532. package/dist/renderer/cache/reservation.js.map +1 -0
  533. package/dist/renderer/core/_mdast-walk.d.ts +35 -0
  534. package/dist/renderer/core/_mdast-walk.js +45 -0
  535. package/dist/renderer/core/_mdast-walk.js.map +1 -0
  536. package/dist/renderer/core/code-block-dispatch.d.ts +31 -0
  537. package/dist/renderer/core/code-block-dispatch.js +166 -0
  538. package/dist/renderer/core/code-block-dispatch.js.map +1 -0
  539. package/dist/renderer/core/code-blocks.d.ts +12 -0
  540. package/dist/renderer/core/code-blocks.js +32 -0
  541. package/dist/renderer/core/code-blocks.js.map +1 -0
  542. package/dist/renderer/core/embed-tags.d.ts +14 -0
  543. package/dist/renderer/core/embed-tags.js +154 -0
  544. package/dist/renderer/core/embed-tags.js.map +1 -0
  545. package/dist/renderer/core/headings.d.ts +16 -0
  546. package/dist/renderer/core/headings.js +31 -0
  547. package/dist/renderer/core/headings.js.map +1 -0
  548. package/dist/renderer/core/index.d.ts +65 -0
  549. package/dist/renderer/core/index.js +83 -0
  550. package/dist/renderer/core/index.js.map +1 -0
  551. package/dist/renderer/core/mention-resolve.d.ts +39 -0
  552. package/dist/renderer/core/mention-resolve.js +75 -0
  553. package/dist/renderer/core/mention-resolve.js.map +1 -0
  554. package/dist/renderer/core/mentions.d.ts +2 -0
  555. package/dist/renderer/core/mentions.js +83 -0
  556. package/dist/renderer/core/mentions.js.map +1 -0
  557. package/dist/renderer/core/syntax-highlight.d.ts +21 -0
  558. package/dist/renderer/core/syntax-highlight.js +64 -0
  559. package/dist/renderer/core/syntax-highlight.js.map +1 -0
  560. package/dist/renderer/core/url-inline-expand.d.ts +9 -0
  561. package/dist/renderer/core/url-inline-expand.js +157 -0
  562. package/dist/renderer/core/url-inline-expand.js.map +1 -0
  563. package/dist/renderer/core/wikilinks.d.ts +2 -0
  564. package/dist/renderer/core/wikilinks.js +118 -0
  565. package/dist/renderer/core/wikilinks.js.map +1 -0
  566. package/dist/renderer/index.d.ts +67 -0
  567. package/dist/renderer/index.js +99 -0
  568. package/dist/renderer/index.js.map +1 -0
  569. package/dist/renderer/pipeline.d.ts +134 -0
  570. package/dist/renderer/pipeline.js +203 -0
  571. package/dist/renderer/pipeline.js.map +1 -0
  572. package/dist/renderer/registry.d.ts +83 -0
  573. package/dist/renderer/registry.js +130 -0
  574. package/dist/renderer/registry.js.map +1 -0
  575. package/dist/renderer/serialize.d.ts +27 -0
  576. package/dist/renderer/serialize.js +46 -0
  577. package/dist/renderer/serialize.js.map +1 -0
  578. package/dist/renderer/version.d.ts +30 -0
  579. package/dist/renderer/version.js +34 -0
  580. package/dist/renderer/version.js.map +1 -0
  581. package/dist/routes/admin.d.ts +4 -0
  582. package/dist/routes/admin.js +17 -0
  583. package/dist/routes/admin.js.map +1 -0
  584. package/dist/routes/api/admin.d.ts +4 -0
  585. package/dist/routes/api/admin.js +37 -0
  586. package/dist/routes/api/admin.js.map +1 -0
  587. package/dist/routes/api/attachment.d.ts +4 -0
  588. package/dist/routes/api/attachment.js +19 -0
  589. package/dist/routes/api/attachment.js.map +1 -0
  590. package/dist/routes/api/bookmark.d.ts +4 -0
  591. package/dist/routes/api/bookmark.js +15 -0
  592. package/dist/routes/api/bookmark.js.map +1 -0
  593. package/dist/routes/api/comment.d.ts +4 -0
  594. package/dist/routes/api/comment.js +14 -0
  595. package/dist/routes/api/comment.js.map +1 -0
  596. package/dist/routes/api/index.d.ts +4 -0
  597. package/dist/routes/api/index.js +36 -0
  598. package/dist/routes/api/index.js.map +1 -0
  599. package/dist/routes/api/like.d.ts +4 -0
  600. package/dist/routes/api/like.js +13 -0
  601. package/dist/routes/api/like.js.map +1 -0
  602. package/dist/routes/api/notification.d.ts +4 -0
  603. package/dist/routes/api/notification.js +15 -0
  604. package/dist/routes/api/notification.js.map +1 -0
  605. package/dist/routes/api/page.d.ts +4 -0
  606. package/dist/routes/api/page.js +24 -0
  607. package/dist/routes/api/page.js.map +1 -0
  608. package/dist/routes/api/revision.d.ts +4 -0
  609. package/dist/routes/api/revision.js +14 -0
  610. package/dist/routes/api/revision.js.map +1 -0
  611. package/dist/routes/api/share.d.ts +4 -0
  612. package/dist/routes/api/share.js +16 -0
  613. package/dist/routes/api/share.js.map +1 -0
  614. package/dist/routes/api/version.d.ts +4 -0
  615. package/dist/routes/api/version.js +10 -0
  616. package/dist/routes/api/version.js.map +1 -0
  617. package/dist/routes/index.d.ts +4 -0
  618. package/dist/routes/index.js +71 -0
  619. package/dist/routes/index.js.map +1 -0
  620. package/dist/routes/login.d.ts +4 -0
  621. package/dist/routes/login.js +18 -0
  622. package/dist/routes/login.js.map +1 -0
  623. package/dist/routes/me.d.ts +4 -0
  624. package/dist/routes/me.js +24 -0
  625. package/dist/routes/me.js.map +1 -0
  626. package/dist/routes/ts-rest/admin/app.d.ts +4 -0
  627. package/dist/routes/ts-rest/admin/app.js +67 -0
  628. package/dist/routes/ts-rest/admin/app.js.map +1 -0
  629. package/dist/routes/ts-rest/admin/auth.d.ts +4 -0
  630. package/dist/routes/ts-rest/admin/auth.js +95 -0
  631. package/dist/routes/ts-rest/admin/auth.js.map +1 -0
  632. package/dist/routes/ts-rest/admin/index.d.ts +10 -0
  633. package/dist/routes/ts-rest/admin/index.js +35 -0
  634. package/dist/routes/ts-rest/admin/index.js.map +1 -0
  635. package/dist/routes/ts-rest/admin/mail.d.ts +4 -0
  636. package/dist/routes/ts-rest/admin/mail.js +156 -0
  637. package/dist/routes/ts-rest/admin/mail.js.map +1 -0
  638. package/dist/routes/ts-rest/admin/plugins.d.ts +4 -0
  639. package/dist/routes/ts-rest/admin/plugins.js +317 -0
  640. package/dist/routes/ts-rest/admin/plugins.js.map +1 -0
  641. package/dist/routes/ts-rest/admin/search.d.ts +4 -0
  642. package/dist/routes/ts-rest/admin/search.js +67 -0
  643. package/dist/routes/ts-rest/admin/search.js.map +1 -0
  644. package/dist/routes/ts-rest/admin/security.d.ts +4 -0
  645. package/dist/routes/ts-rest/admin/security.js +114 -0
  646. package/dist/routes/ts-rest/admin/security.js.map +1 -0
  647. package/dist/routes/ts-rest/admin/share.d.ts +4 -0
  648. package/dist/routes/ts-rest/admin/share.js +69 -0
  649. package/dist/routes/ts-rest/admin/share.js.map +1 -0
  650. package/dist/routes/ts-rest/admin/storage.d.ts +4 -0
  651. package/dist/routes/ts-rest/admin/storage.js +59 -0
  652. package/dist/routes/ts-rest/admin/storage.js.map +1 -0
  653. package/dist/routes/ts-rest/admin/users.d.ts +4 -0
  654. package/dist/routes/ts-rest/admin/users.js +215 -0
  655. package/dist/routes/ts-rest/admin/users.js.map +1 -0
  656. package/dist/routes/ts-rest/adminCrypto.d.ts +4 -0
  657. package/dist/routes/ts-rest/adminCrypto.js +111 -0
  658. package/dist/routes/ts-rest/adminCrypto.js.map +1 -0
  659. package/dist/routes/ts-rest/app.d.ts +4 -0
  660. package/dist/routes/ts-rest/app.js +23 -0
  661. package/dist/routes/ts-rest/app.js.map +1 -0
  662. package/dist/routes/ts-rest/attachment.d.ts +4 -0
  663. package/dist/routes/ts-rest/attachment.js +830 -0
  664. package/dist/routes/ts-rest/attachment.js.map +1 -0
  665. package/dist/routes/ts-rest/auth.d.ts +4 -0
  666. package/dist/routes/ts-rest/auth.js +70 -0
  667. package/dist/routes/ts-rest/auth.js.map +1 -0
  668. package/dist/routes/ts-rest/autocomplete.d.ts +30 -0
  669. package/dist/routes/ts-rest/autocomplete.js +189 -0
  670. package/dist/routes/ts-rest/autocomplete.js.map +1 -0
  671. package/dist/routes/ts-rest/backlink.d.ts +4 -0
  672. package/dist/routes/ts-rest/backlink.js +106 -0
  673. package/dist/routes/ts-rest/backlink.js.map +1 -0
  674. package/dist/routes/ts-rest/bookmark.d.ts +4 -0
  675. package/dist/routes/ts-rest/bookmark.js +189 -0
  676. package/dist/routes/ts-rest/bookmark.js.map +1 -0
  677. package/dist/routes/ts-rest/comment.d.ts +4 -0
  678. package/dist/routes/ts-rest/comment.js +217 -0
  679. package/dist/routes/ts-rest/comment.js.map +1 -0
  680. package/dist/routes/ts-rest/draft.d.ts +22 -0
  681. package/dist/routes/ts-rest/draft.js +200 -0
  682. package/dist/routes/ts-rest/draft.js.map +1 -0
  683. package/dist/routes/ts-rest/index.d.ts +4 -0
  684. package/dist/routes/ts-rest/index.js +103 -0
  685. package/dist/routes/ts-rest/index.js.map +1 -0
  686. package/dist/routes/ts-rest/installer.d.ts +4 -0
  687. package/dist/routes/ts-rest/installer.js +77 -0
  688. package/dist/routes/ts-rest/installer.js.map +1 -0
  689. package/dist/routes/ts-rest/me.d.ts +4 -0
  690. package/dist/routes/ts-rest/me.js +410 -0
  691. package/dist/routes/ts-rest/me.js.map +1 -0
  692. package/dist/routes/ts-rest/notification.d.ts +4 -0
  693. package/dist/routes/ts-rest/notification.js +241 -0
  694. package/dist/routes/ts-rest/notification.js.map +1 -0
  695. package/dist/routes/ts-rest/page-collab.d.ts +29 -0
  696. package/dist/routes/ts-rest/page-collab.js +90 -0
  697. package/dist/routes/ts-rest/page-collab.js.map +1 -0
  698. package/dist/routes/ts-rest/page-preview.d.ts +26 -0
  699. package/dist/routes/ts-rest/page-preview.js +80 -0
  700. package/dist/routes/ts-rest/page-preview.js.map +1 -0
  701. package/dist/routes/ts-rest/page.d.ts +4 -0
  702. package/dist/routes/ts-rest/page.js +676 -0
  703. package/dist/routes/ts-rest/page.js.map +1 -0
  704. package/dist/routes/ts-rest/presence.d.ts +30 -0
  705. package/dist/routes/ts-rest/presence.js +155 -0
  706. package/dist/routes/ts-rest/presence.js.map +1 -0
  707. package/dist/routes/ts-rest/revision.d.ts +4 -0
  708. package/dist/routes/ts-rest/revision.js +240 -0
  709. package/dist/routes/ts-rest/revision.js.map +1 -0
  710. package/dist/routes/ts-rest/search.d.ts +4 -0
  711. package/dist/routes/ts-rest/search.js +121 -0
  712. package/dist/routes/ts-rest/search.js.map +1 -0
  713. package/dist/routes/ts-rest/tokenAuth.d.ts +4 -0
  714. package/dist/routes/ts-rest/tokenAuth.js +94 -0
  715. package/dist/routes/ts-rest/tokenAuth.js.map +1 -0
  716. package/dist/routes/ts-rest/user.d.ts +4 -0
  717. package/dist/routes/ts-rest/user.js +307 -0
  718. package/dist/routes/ts-rest/user.js.map +1 -0
  719. package/dist/service/config.d.ts +50 -0
  720. package/dist/service/config.js +202 -0
  721. package/dist/service/config.js.map +1 -0
  722. package/dist/service/lru.d.ts +11 -0
  723. package/dist/service/lru.js +47 -0
  724. package/dist/service/lru.js.map +1 -0
  725. package/dist/service/mail.d.ts +107 -0
  726. package/dist/service/mail.js +220 -0
  727. package/dist/service/mail.js.map +1 -0
  728. package/dist/service/notification.d.ts +9 -0
  729. package/dist/service/notification.js +19 -0
  730. package/dist/service/notification.js.map +1 -0
  731. package/dist/service/presence.d.ts +219 -0
  732. package/dist/service/presence.js +602 -0
  733. package/dist/service/presence.js.map +1 -0
  734. package/dist/types/error.d.ts +13 -0
  735. package/dist/types/error.js +13 -0
  736. package/dist/types/error.js.map +1 -0
  737. package/dist/types/express.d.ts +34 -0
  738. package/dist/types/express.js +50 -0
  739. package/dist/types/express.js.map +1 -0
  740. package/dist/types/mongoose-extensions.d.ts +8 -0
  741. package/dist/types/mongoose-extensions.js +24 -0
  742. package/dist/types/mongoose-extensions.js.map +1 -0
  743. package/dist/util/accessTokenParser.d.ts +1 -0
  744. package/dist/util/accessTokenParser.js +34 -0
  745. package/dist/util/accessTokenParser.js.map +1 -0
  746. package/dist/util/activityDefine.d.ts +15 -0
  747. package/dist/util/activityDefine.js +52 -0
  748. package/dist/util/activityDefine.js.map +1 -0
  749. package/dist/util/admin-config.d.ts +57 -0
  750. package/dist/util/admin-config.js +99 -0
  751. package/dist/util/admin-config.js.map +1 -0
  752. package/dist/util/admin-pager.d.ts +24 -0
  753. package/dist/util/admin-pager.js +73 -0
  754. package/dist/util/admin-pager.js.map +1 -0
  755. package/dist/util/apiPaginate.d.ts +11 -0
  756. package/dist/util/apiPaginate.js +33 -0
  757. package/dist/util/apiPaginate.js.map +1 -0
  758. package/dist/util/apiResponse.d.ts +9 -0
  759. package/dist/util/apiResponse.js +23 -0
  760. package/dist/util/apiResponse.js.map +1 -0
  761. package/dist/util/auth.d.ts +11 -0
  762. package/dist/util/auth.js +48 -0
  763. package/dist/util/auth.js.map +1 -0
  764. package/dist/util/auto-watch.d.ts +35 -0
  765. package/dist/util/auto-watch.js +24 -0
  766. package/dist/util/auto-watch.js.map +1 -0
  767. package/dist/util/autocomplete-match.d.ts +44 -0
  768. package/dist/util/autocomplete-match.js +80 -0
  769. package/dist/util/autocomplete-match.js.map +1 -0
  770. package/dist/util/aws-config-migration.d.ts +11 -0
  771. package/dist/util/aws-config-migration.js +68 -0
  772. package/dist/util/aws-config-migration.js.map +1 -0
  773. package/dist/util/boot-reporter.d.ts +130 -0
  774. package/dist/util/boot-reporter.js +242 -0
  775. package/dist/util/boot-reporter.js.map +1 -0
  776. package/dist/util/collab-cap.d.ts +39 -0
  777. package/dist/util/collab-cap.js +90 -0
  778. package/dist/util/collab-cap.js.map +1 -0
  779. package/dist/util/crypto.d.ts +39 -0
  780. package/dist/util/crypto.js +105 -0
  781. package/dist/util/crypto.js.map +1 -0
  782. package/dist/util/dedup-users.d.ts +96 -0
  783. package/dist/util/dedup-users.js +149 -0
  784. package/dist/util/dedup-users.js.map +1 -0
  785. package/dist/util/editor-cap-counter.d.ts +90 -0
  786. package/dist/util/editor-cap-counter.js +175 -0
  787. package/dist/util/editor-cap-counter.js.map +1 -0
  788. package/dist/util/fileUploader.d.ts +55 -0
  789. package/dist/util/fileUploader.js +70 -0
  790. package/dist/util/fileUploader.js.map +1 -0
  791. package/dist/util/formUtil.d.ts +2 -0
  792. package/dist/util/formUtil.js +15 -0
  793. package/dist/util/formUtil.js.map +1 -0
  794. package/dist/util/githubAuth.d.ts +2 -0
  795. package/dist/util/githubAuth.js +82 -0
  796. package/dist/util/githubAuth.js.map +1 -0
  797. package/dist/util/googleAuth.d.ts +2 -0
  798. package/dist/util/googleAuth.js +85 -0
  799. package/dist/util/googleAuth.js.map +1 -0
  800. package/dist/util/jwt.d.ts +50 -0
  801. package/dist/util/jwt.js +127 -0
  802. package/dist/util/jwt.js.map +1 -0
  803. package/dist/util/linkDetector.d.ts +3 -0
  804. package/dist/util/linkDetector.js +91 -0
  805. package/dist/util/linkDetector.js.map +1 -0
  806. package/dist/util/mail-token.d.ts +24 -0
  807. package/dist/util/mail-token.js +117 -0
  808. package/dist/util/mail-token.js.map +1 -0
  809. package/dist/util/mailer.d.ts +7 -0
  810. package/dist/util/mailer.js +98 -0
  811. package/dist/util/mailer.js.map +1 -0
  812. package/dist/util/map-duplicate-key-error.d.ts +26 -0
  813. package/dist/util/map-duplicate-key-error.js +41 -0
  814. package/dist/util/map-duplicate-key-error.js.map +1 -0
  815. package/dist/util/mongoose-paginate.d.ts +10 -0
  816. package/dist/util/mongoose-paginate.js +23 -0
  817. package/dist/util/mongoose-paginate.js.map +1 -0
  818. package/dist/util/notifications-token.d.ts +35 -0
  819. package/dist/util/notifications-token.js +140 -0
  820. package/dist/util/notifications-token.js.map +1 -0
  821. package/dist/util/oauth-client-seed.d.ts +2 -0
  822. package/dist/util/oauth-client-seed.js +48 -0
  823. package/dist/util/oauth-client-seed.js.map +1 -0
  824. package/dist/util/oauth-redirect-uri.d.ts +2 -0
  825. package/dist/util/oauth-redirect-uri.js +55 -0
  826. package/dist/util/oauth-redirect-uri.js.map +1 -0
  827. package/dist/util/page-response.d.ts +113 -0
  828. package/dist/util/page-response.js +154 -0
  829. package/dist/util/page-response.js.map +1 -0
  830. package/dist/util/page-search-index.d.ts +19 -0
  831. package/dist/util/page-search-index.js +91 -0
  832. package/dist/util/page-search-index.js.map +1 -0
  833. package/dist/util/page-status-migration.d.ts +23 -0
  834. package/dist/util/page-status-migration.js +48 -0
  835. package/dist/util/page-status-migration.js.map +1 -0
  836. package/dist/util/path.d.ts +2 -0
  837. package/dist/util/path.js +12 -0
  838. package/dist/util/path.js.map +1 -0
  839. package/dist/util/pkce.d.ts +13 -0
  840. package/dist/util/pkce.js +30 -0
  841. package/dist/util/pkce.js.map +1 -0
  842. package/dist/util/presence-token.d.ts +21 -0
  843. package/dist/util/presence-token.js +120 -0
  844. package/dist/util/presence-token.js.map +1 -0
  845. package/dist/util/rate-limit.d.ts +67 -0
  846. package/dist/util/rate-limit.js +87 -0
  847. package/dist/util/rate-limit.js.map +1 -0
  848. package/dist/util/rebuild-backlink.d.ts +25 -0
  849. package/dist/util/rebuild-backlink.js +7 -0
  850. package/dist/util/rebuild-backlink.js.map +1 -0
  851. package/dist/util/rebuild-renderer.d.ts +31 -0
  852. package/dist/util/rebuild-renderer.js +7 -0
  853. package/dist/util/rebuild-renderer.js.map +1 -0
  854. package/dist/util/redis-opts.d.ts +17 -0
  855. package/dist/util/redis-opts.js +40 -0
  856. package/dist/util/redis-opts.js.map +1 -0
  857. package/dist/util/regex.d.ts +2 -0
  858. package/dist/util/regex.js +8 -0
  859. package/dist/util/regex.js.map +1 -0
  860. package/dist/util/search-rebuild.d.ts +18 -0
  861. package/dist/util/search-rebuild.js +28 -0
  862. package/dist/util/search-rebuild.js.map +1 -0
  863. package/dist/util/ssr.d.ts +3 -0
  864. package/dist/util/ssr.js +9 -0
  865. package/dist/util/ssr.js.map +1 -0
  866. package/dist/util/storage-copy.d.ts +40 -0
  867. package/dist/util/storage-copy.js +123 -0
  868. package/dist/util/storage-copy.js.map +1 -0
  869. package/dist/util/ts-rest-helpers.d.ts +110 -0
  870. package/dist/util/ts-rest-helpers.js +110 -0
  871. package/dist/util/ts-rest-helpers.js.map +1 -0
  872. package/dist/util/url.d.ts +1 -0
  873. package/dist/util/url.js +11 -0
  874. package/dist/util/url.js.map +1 -0
  875. package/dist/util/user-code.d.ts +10 -0
  876. package/dist/util/user-code.js +55 -0
  877. package/dist/util/user-code.js.map +1 -0
  878. package/dist/util/view.d.ts +10 -0
  879. package/dist/util/view.js +99 -0
  880. package/dist/util/view.js.map +1 -0
  881. package/dist/util/watcher-backfill.d.ts +30 -0
  882. package/dist/util/watcher-backfill.js +43 -0
  883. package/dist/util/watcher-backfill.js.map +1 -0
  884. package/dist/util/ws-token.d.ts +24 -0
  885. package/dist/util/ws-token.js +134 -0
  886. package/dist/util/ws-token.js.map +1 -0
  887. package/package.json +106 -0
@@ -0,0 +1,1230 @@
1
+ import type { OpenAPIHono } from '@hono/zod-openapi';
2
+ import type Crowi from '../../../crowi';
3
+ import type { CrowiHonoBindings } from '../../app';
4
+ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
5
+ "/admin/users": {
6
+ $get: {
7
+ input: {
8
+ query: {
9
+ q?: string | undefined;
10
+ status?: unknown;
11
+ page?: unknown;
12
+ limit?: unknown;
13
+ };
14
+ };
15
+ output: {
16
+ users: {
17
+ _id: string;
18
+ username: string;
19
+ name: string;
20
+ email: string;
21
+ createdAt: string;
22
+ id?: string | undefined;
23
+ image?: string | null | undefined;
24
+ introduction?: string | undefined;
25
+ admin?: boolean | undefined;
26
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
27
+ }[];
28
+ pager: {
29
+ page: number;
30
+ pagesCount: number;
31
+ pages: number[];
32
+ total: number;
33
+ previous: number | null;
34
+ previousDots: boolean;
35
+ next: number | null;
36
+ nextDots: boolean;
37
+ };
38
+ };
39
+ outputFormat: "json";
40
+ status: 200;
41
+ } | {
42
+ input: {
43
+ query: {
44
+ q?: string | undefined;
45
+ status?: unknown;
46
+ page?: unknown;
47
+ limit?: unknown;
48
+ };
49
+ };
50
+ output: {
51
+ error: {
52
+ code: "AUTHENTICATION_REQUIRED";
53
+ message: "Authentication is required";
54
+ redirectTo?: string | undefined;
55
+ };
56
+ };
57
+ outputFormat: "json";
58
+ status: 401;
59
+ } | {
60
+ input: {
61
+ query: {
62
+ q?: string | undefined;
63
+ status?: unknown;
64
+ page?: unknown;
65
+ limit?: unknown;
66
+ };
67
+ };
68
+ output: {
69
+ error: {
70
+ code: "ADMIN_REQUIRED";
71
+ message: "Admin permission required";
72
+ redirectTo?: string | undefined;
73
+ };
74
+ };
75
+ outputFormat: "json";
76
+ status: 403;
77
+ } | {
78
+ input: {
79
+ query: {
80
+ q?: string | undefined;
81
+ status?: unknown;
82
+ page?: unknown;
83
+ limit?: unknown;
84
+ };
85
+ };
86
+ output: {
87
+ error: {
88
+ code: "INTERNAL_ERROR";
89
+ message: "Internal server error";
90
+ };
91
+ };
92
+ outputFormat: "json";
93
+ status: 500;
94
+ };
95
+ };
96
+ } & {
97
+ "/admin/users/search": {
98
+ $get: {
99
+ input: {
100
+ query: {
101
+ email: string;
102
+ };
103
+ };
104
+ output: {
105
+ users: {
106
+ _id: string;
107
+ username: string;
108
+ name: string;
109
+ email: string;
110
+ createdAt: string;
111
+ id?: string | undefined;
112
+ image?: string | null | undefined;
113
+ introduction?: string | undefined;
114
+ admin?: boolean | undefined;
115
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
116
+ }[];
117
+ };
118
+ outputFormat: "json";
119
+ status: 200;
120
+ } | {
121
+ input: {
122
+ query: {
123
+ email: string;
124
+ };
125
+ };
126
+ output: {
127
+ error: {
128
+ code: "AUTHENTICATION_REQUIRED";
129
+ message: "Authentication is required";
130
+ redirectTo?: string | undefined;
131
+ };
132
+ };
133
+ outputFormat: "json";
134
+ status: 401;
135
+ } | {
136
+ input: {
137
+ query: {
138
+ email: string;
139
+ };
140
+ };
141
+ output: {
142
+ error: {
143
+ code: "ADMIN_REQUIRED";
144
+ message: "Admin permission required";
145
+ redirectTo?: string | undefined;
146
+ };
147
+ };
148
+ outputFormat: "json";
149
+ status: 403;
150
+ } | {
151
+ input: {
152
+ query: {
153
+ email: string;
154
+ };
155
+ };
156
+ output: {
157
+ error: {
158
+ code: "INTERNAL_ERROR";
159
+ message: "Internal server error";
160
+ };
161
+ };
162
+ outputFormat: "json";
163
+ status: 500;
164
+ };
165
+ };
166
+ } & {
167
+ "/admin/users/invite": {
168
+ $post: {
169
+ input: {
170
+ json: {
171
+ emailList: string[];
172
+ sendEmail?: boolean | undefined;
173
+ };
174
+ };
175
+ output: {
176
+ results: ({
177
+ email: string;
178
+ status: "created";
179
+ userId: string;
180
+ } | {
181
+ email: string;
182
+ status: "exists";
183
+ } | {
184
+ email: string;
185
+ status: "failed";
186
+ })[];
187
+ };
188
+ outputFormat: "json";
189
+ status: 200;
190
+ } | {
191
+ input: {
192
+ json: {
193
+ emailList: string[];
194
+ sendEmail?: boolean | undefined;
195
+ };
196
+ };
197
+ output: {
198
+ error: {
199
+ code: "VALIDATION_ERROR";
200
+ message: string;
201
+ details?: {
202
+ fieldErrors: {
203
+ [x: string]: string[];
204
+ };
205
+ formErrors: string[];
206
+ } | undefined;
207
+ };
208
+ };
209
+ outputFormat: "json";
210
+ status: 400;
211
+ } | {
212
+ input: {
213
+ json: {
214
+ emailList: string[];
215
+ sendEmail?: boolean | undefined;
216
+ };
217
+ };
218
+ output: {
219
+ error: {
220
+ code: "AUTHENTICATION_REQUIRED";
221
+ message: "Authentication is required";
222
+ redirectTo?: string | undefined;
223
+ };
224
+ };
225
+ outputFormat: "json";
226
+ status: 401;
227
+ } | {
228
+ input: {
229
+ json: {
230
+ emailList: string[];
231
+ sendEmail?: boolean | undefined;
232
+ };
233
+ };
234
+ output: {
235
+ error: {
236
+ code: "ADMIN_REQUIRED";
237
+ message: "Admin permission required";
238
+ redirectTo?: string | undefined;
239
+ };
240
+ };
241
+ outputFormat: "json";
242
+ status: 403;
243
+ } | {
244
+ input: {
245
+ json: {
246
+ emailList: string[];
247
+ sendEmail?: boolean | undefined;
248
+ };
249
+ };
250
+ output: {
251
+ error: {
252
+ code: "INTERNAL_ERROR";
253
+ message: "Internal server error";
254
+ };
255
+ };
256
+ outputFormat: "json";
257
+ status: 500;
258
+ };
259
+ };
260
+ } & {
261
+ "/admin/users/:id": {
262
+ $patch: {
263
+ input: {
264
+ param: {
265
+ id: string;
266
+ };
267
+ } & {
268
+ json: {
269
+ name: string;
270
+ email: string;
271
+ };
272
+ };
273
+ output: {
274
+ user: {
275
+ _id: string;
276
+ username: string;
277
+ name: string;
278
+ email: string;
279
+ createdAt: string;
280
+ id?: string | undefined;
281
+ image?: string | null | undefined;
282
+ introduction?: string | undefined;
283
+ admin?: boolean | undefined;
284
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
285
+ };
286
+ };
287
+ outputFormat: "json";
288
+ status: 200;
289
+ } | {
290
+ input: {
291
+ param: {
292
+ id: string;
293
+ };
294
+ } & {
295
+ json: {
296
+ name: string;
297
+ email: string;
298
+ };
299
+ };
300
+ output: {
301
+ error: {
302
+ code: "VALIDATION_ERROR";
303
+ message: string;
304
+ details?: {
305
+ fieldErrors: {
306
+ [x: string]: string[];
307
+ };
308
+ formErrors: string[];
309
+ } | undefined;
310
+ };
311
+ };
312
+ outputFormat: "json";
313
+ status: 400;
314
+ } | {
315
+ input: {
316
+ param: {
317
+ id: string;
318
+ };
319
+ } & {
320
+ json: {
321
+ name: string;
322
+ email: string;
323
+ };
324
+ };
325
+ output: {
326
+ error: {
327
+ code: "AUTHENTICATION_REQUIRED";
328
+ message: "Authentication is required";
329
+ redirectTo?: string | undefined;
330
+ };
331
+ };
332
+ outputFormat: "json";
333
+ status: 401;
334
+ } | {
335
+ input: {
336
+ param: {
337
+ id: string;
338
+ };
339
+ } & {
340
+ json: {
341
+ name: string;
342
+ email: string;
343
+ };
344
+ };
345
+ output: {
346
+ error: {
347
+ code: "ADMIN_REQUIRED";
348
+ message: "Admin permission required";
349
+ redirectTo?: string | undefined;
350
+ };
351
+ };
352
+ outputFormat: "json";
353
+ status: 403;
354
+ } | {
355
+ input: {
356
+ param: {
357
+ id: string;
358
+ };
359
+ } & {
360
+ json: {
361
+ name: string;
362
+ email: string;
363
+ };
364
+ };
365
+ output: {
366
+ error: {
367
+ code: "NOT_FOUND";
368
+ message: string;
369
+ };
370
+ };
371
+ outputFormat: "json";
372
+ status: 404;
373
+ } | {
374
+ input: {
375
+ param: {
376
+ id: string;
377
+ };
378
+ } & {
379
+ json: {
380
+ name: string;
381
+ email: string;
382
+ };
383
+ };
384
+ output: {
385
+ error: {
386
+ code: "CONFLICT";
387
+ message: string;
388
+ };
389
+ };
390
+ outputFormat: "json";
391
+ status: 409;
392
+ } | {
393
+ input: {
394
+ param: {
395
+ id: string;
396
+ };
397
+ } & {
398
+ json: {
399
+ name: string;
400
+ email: string;
401
+ };
402
+ };
403
+ output: {
404
+ error: {
405
+ code: "INTERNAL_ERROR";
406
+ message: "Internal server error";
407
+ };
408
+ };
409
+ outputFormat: "json";
410
+ status: 500;
411
+ };
412
+ };
413
+ } & {
414
+ "/admin/users/:id/admin": {
415
+ $put: {
416
+ input: {
417
+ param: {
418
+ id: string;
419
+ };
420
+ };
421
+ output: {
422
+ user: {
423
+ _id: string;
424
+ username: string;
425
+ name: string;
426
+ email: string;
427
+ createdAt: string;
428
+ id?: string | undefined;
429
+ image?: string | null | undefined;
430
+ introduction?: string | undefined;
431
+ admin?: boolean | undefined;
432
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
433
+ };
434
+ };
435
+ outputFormat: "json";
436
+ status: 200;
437
+ } | {
438
+ input: {
439
+ param: {
440
+ id: string;
441
+ };
442
+ };
443
+ output: {
444
+ error: {
445
+ code: "VALIDATION_ERROR";
446
+ message: string;
447
+ details?: {
448
+ fieldErrors: {
449
+ [x: string]: string[];
450
+ };
451
+ formErrors: string[];
452
+ } | undefined;
453
+ };
454
+ };
455
+ outputFormat: "json";
456
+ status: 400;
457
+ } | {
458
+ input: {
459
+ param: {
460
+ id: string;
461
+ };
462
+ };
463
+ output: {
464
+ error: {
465
+ code: "AUTHENTICATION_REQUIRED";
466
+ message: "Authentication is required";
467
+ redirectTo?: string | undefined;
468
+ };
469
+ };
470
+ outputFormat: "json";
471
+ status: 401;
472
+ } | {
473
+ input: {
474
+ param: {
475
+ id: string;
476
+ };
477
+ };
478
+ output: {
479
+ error: {
480
+ code: "ADMIN_REQUIRED";
481
+ message: "Admin permission required";
482
+ redirectTo?: string | undefined;
483
+ };
484
+ };
485
+ outputFormat: "json";
486
+ status: 403;
487
+ } | {
488
+ input: {
489
+ param: {
490
+ id: string;
491
+ };
492
+ };
493
+ output: {
494
+ error: {
495
+ code: "NOT_FOUND";
496
+ message: string;
497
+ };
498
+ };
499
+ outputFormat: "json";
500
+ status: 404;
501
+ } | {
502
+ input: {
503
+ param: {
504
+ id: string;
505
+ };
506
+ };
507
+ output: {
508
+ error: {
509
+ code: "INTERNAL_ERROR";
510
+ message: "Internal server error";
511
+ };
512
+ };
513
+ outputFormat: "json";
514
+ status: 500;
515
+ };
516
+ };
517
+ } & {
518
+ "/admin/users/:id/admin": {
519
+ $delete: {
520
+ input: {
521
+ param: {
522
+ id: string;
523
+ };
524
+ };
525
+ output: {
526
+ user: {
527
+ _id: string;
528
+ username: string;
529
+ name: string;
530
+ email: string;
531
+ createdAt: string;
532
+ id?: string | undefined;
533
+ image?: string | null | undefined;
534
+ introduction?: string | undefined;
535
+ admin?: boolean | undefined;
536
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
537
+ };
538
+ };
539
+ outputFormat: "json";
540
+ status: 200;
541
+ } | {
542
+ input: {
543
+ param: {
544
+ id: string;
545
+ };
546
+ };
547
+ output: {
548
+ error: {
549
+ code: "VALIDATION_ERROR";
550
+ message: string;
551
+ details?: {
552
+ fieldErrors: {
553
+ [x: string]: string[];
554
+ };
555
+ formErrors: string[];
556
+ } | undefined;
557
+ };
558
+ };
559
+ outputFormat: "json";
560
+ status: 400;
561
+ } | {
562
+ input: {
563
+ param: {
564
+ id: string;
565
+ };
566
+ };
567
+ output: {
568
+ error: {
569
+ code: "AUTHENTICATION_REQUIRED";
570
+ message: "Authentication is required";
571
+ redirectTo?: string | undefined;
572
+ };
573
+ };
574
+ outputFormat: "json";
575
+ status: 401;
576
+ } | {
577
+ input: {
578
+ param: {
579
+ id: string;
580
+ };
581
+ };
582
+ output: {
583
+ error: {
584
+ code: "ADMIN_REQUIRED";
585
+ message: "Admin permission required";
586
+ redirectTo?: string | undefined;
587
+ };
588
+ };
589
+ outputFormat: "json";
590
+ status: 403;
591
+ } | {
592
+ input: {
593
+ param: {
594
+ id: string;
595
+ };
596
+ };
597
+ output: {
598
+ error: {
599
+ code: "NOT_FOUND";
600
+ message: string;
601
+ };
602
+ };
603
+ outputFormat: "json";
604
+ status: 404;
605
+ } | {
606
+ input: {
607
+ param: {
608
+ id: string;
609
+ };
610
+ };
611
+ output: {
612
+ error: {
613
+ code: "INTERNAL_ERROR";
614
+ message: "Internal server error";
615
+ };
616
+ };
617
+ outputFormat: "json";
618
+ status: 500;
619
+ };
620
+ };
621
+ } & {
622
+ "/admin/users/:id/status/active": {
623
+ $put: {
624
+ input: {
625
+ param: {
626
+ id: string;
627
+ };
628
+ };
629
+ output: {
630
+ user: {
631
+ _id: string;
632
+ username: string;
633
+ name: string;
634
+ email: string;
635
+ createdAt: string;
636
+ id?: string | undefined;
637
+ image?: string | null | undefined;
638
+ introduction?: string | undefined;
639
+ admin?: boolean | undefined;
640
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
641
+ };
642
+ };
643
+ outputFormat: "json";
644
+ status: 200;
645
+ } | {
646
+ input: {
647
+ param: {
648
+ id: string;
649
+ };
650
+ };
651
+ output: {
652
+ error: {
653
+ code: "VALIDATION_ERROR";
654
+ message: string;
655
+ details?: {
656
+ fieldErrors: {
657
+ [x: string]: string[];
658
+ };
659
+ formErrors: string[];
660
+ } | undefined;
661
+ };
662
+ };
663
+ outputFormat: "json";
664
+ status: 400;
665
+ } | {
666
+ input: {
667
+ param: {
668
+ id: string;
669
+ };
670
+ };
671
+ output: {
672
+ error: {
673
+ code: "AUTHENTICATION_REQUIRED";
674
+ message: "Authentication is required";
675
+ redirectTo?: string | undefined;
676
+ };
677
+ };
678
+ outputFormat: "json";
679
+ status: 401;
680
+ } | {
681
+ input: {
682
+ param: {
683
+ id: string;
684
+ };
685
+ };
686
+ output: {
687
+ error: {
688
+ code: "ADMIN_REQUIRED";
689
+ message: "Admin permission required";
690
+ redirectTo?: string | undefined;
691
+ };
692
+ };
693
+ outputFormat: "json";
694
+ status: 403;
695
+ } | {
696
+ input: {
697
+ param: {
698
+ id: string;
699
+ };
700
+ };
701
+ output: {
702
+ error: {
703
+ code: "NOT_FOUND";
704
+ message: string;
705
+ };
706
+ };
707
+ outputFormat: "json";
708
+ status: 404;
709
+ } | {
710
+ input: {
711
+ param: {
712
+ id: string;
713
+ };
714
+ };
715
+ output: {
716
+ error: {
717
+ code: "INTERNAL_ERROR";
718
+ message: "Internal server error";
719
+ };
720
+ };
721
+ outputFormat: "json";
722
+ status: 500;
723
+ };
724
+ };
725
+ } & {
726
+ "/admin/users/:id/status/suspended": {
727
+ $put: {
728
+ input: {
729
+ param: {
730
+ id: string;
731
+ };
732
+ };
733
+ output: {
734
+ user: {
735
+ _id: string;
736
+ username: string;
737
+ name: string;
738
+ email: string;
739
+ createdAt: string;
740
+ id?: string | undefined;
741
+ image?: string | null | undefined;
742
+ introduction?: string | undefined;
743
+ admin?: boolean | undefined;
744
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
745
+ };
746
+ };
747
+ outputFormat: "json";
748
+ status: 200;
749
+ } | {
750
+ input: {
751
+ param: {
752
+ id: string;
753
+ };
754
+ };
755
+ output: {
756
+ error: {
757
+ code: "VALIDATION_ERROR";
758
+ message: string;
759
+ details?: {
760
+ fieldErrors: {
761
+ [x: string]: string[];
762
+ };
763
+ formErrors: string[];
764
+ } | undefined;
765
+ };
766
+ };
767
+ outputFormat: "json";
768
+ status: 400;
769
+ } | {
770
+ input: {
771
+ param: {
772
+ id: string;
773
+ };
774
+ };
775
+ output: {
776
+ error: {
777
+ code: "AUTHENTICATION_REQUIRED";
778
+ message: "Authentication is required";
779
+ redirectTo?: string | undefined;
780
+ };
781
+ };
782
+ outputFormat: "json";
783
+ status: 401;
784
+ } | {
785
+ input: {
786
+ param: {
787
+ id: string;
788
+ };
789
+ };
790
+ output: {
791
+ error: {
792
+ code: "ADMIN_REQUIRED";
793
+ message: "Admin permission required";
794
+ redirectTo?: string | undefined;
795
+ };
796
+ };
797
+ outputFormat: "json";
798
+ status: 403;
799
+ } | {
800
+ input: {
801
+ param: {
802
+ id: string;
803
+ };
804
+ };
805
+ output: {
806
+ error: {
807
+ code: "NOT_FOUND";
808
+ message: string;
809
+ };
810
+ };
811
+ outputFormat: "json";
812
+ status: 404;
813
+ } | {
814
+ input: {
815
+ param: {
816
+ id: string;
817
+ };
818
+ };
819
+ output: {
820
+ error: {
821
+ code: "INTERNAL_ERROR";
822
+ message: "Internal server error";
823
+ };
824
+ };
825
+ outputFormat: "json";
826
+ status: 500;
827
+ };
828
+ };
829
+ } & {
830
+ "/admin/users/:id/reset-password": {
831
+ $post: {
832
+ input: {
833
+ param: {
834
+ id: string;
835
+ };
836
+ };
837
+ output: {
838
+ user: {
839
+ _id: string;
840
+ username: string;
841
+ name: string;
842
+ email: string;
843
+ createdAt: string;
844
+ id?: string | undefined;
845
+ image?: string | null | undefined;
846
+ introduction?: string | undefined;
847
+ admin?: boolean | undefined;
848
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
849
+ };
850
+ newPassword: string;
851
+ };
852
+ outputFormat: "json";
853
+ status: 200;
854
+ } | {
855
+ input: {
856
+ param: {
857
+ id: string;
858
+ };
859
+ };
860
+ output: {
861
+ error: {
862
+ code: "VALIDATION_ERROR";
863
+ message: string;
864
+ details?: {
865
+ fieldErrors: {
866
+ [x: string]: string[];
867
+ };
868
+ formErrors: string[];
869
+ } | undefined;
870
+ };
871
+ };
872
+ outputFormat: "json";
873
+ status: 400;
874
+ } | {
875
+ input: {
876
+ param: {
877
+ id: string;
878
+ };
879
+ };
880
+ output: {
881
+ error: {
882
+ code: "AUTHENTICATION_REQUIRED";
883
+ message: "Authentication is required";
884
+ redirectTo?: string | undefined;
885
+ };
886
+ };
887
+ outputFormat: "json";
888
+ status: 401;
889
+ } | {
890
+ input: {
891
+ param: {
892
+ id: string;
893
+ };
894
+ };
895
+ output: {
896
+ error: {
897
+ code: "ADMIN_REQUIRED";
898
+ message: "Admin permission required";
899
+ redirectTo?: string | undefined;
900
+ };
901
+ };
902
+ outputFormat: "json";
903
+ status: 403;
904
+ } | {
905
+ input: {
906
+ param: {
907
+ id: string;
908
+ };
909
+ };
910
+ output: {
911
+ error: {
912
+ code: "NOT_FOUND";
913
+ message: string;
914
+ };
915
+ };
916
+ outputFormat: "json";
917
+ status: 404;
918
+ } | {
919
+ input: {
920
+ param: {
921
+ id: string;
922
+ };
923
+ };
924
+ output: {
925
+ error: {
926
+ code: "INTERNAL_ERROR";
927
+ message: "Internal server error";
928
+ };
929
+ };
930
+ outputFormat: "json";
931
+ status: 500;
932
+ };
933
+ };
934
+ } & {
935
+ "/admin/users/:id/email": {
936
+ $put: {
937
+ input: {
938
+ param: {
939
+ id: string;
940
+ };
941
+ } & {
942
+ json: {
943
+ email: string;
944
+ };
945
+ };
946
+ output: {
947
+ user: {
948
+ _id: string;
949
+ username: string;
950
+ name: string;
951
+ email: string;
952
+ createdAt: string;
953
+ id?: string | undefined;
954
+ image?: string | null | undefined;
955
+ introduction?: string | undefined;
956
+ admin?: boolean | undefined;
957
+ status?: 1 | 2 | 3 | 4 | 5 | undefined;
958
+ };
959
+ };
960
+ outputFormat: "json";
961
+ status: 200;
962
+ } | {
963
+ input: {
964
+ param: {
965
+ id: string;
966
+ };
967
+ } & {
968
+ json: {
969
+ email: string;
970
+ };
971
+ };
972
+ output: {
973
+ error: {
974
+ code: "VALIDATION_ERROR";
975
+ message: string;
976
+ details?: {
977
+ fieldErrors: {
978
+ [x: string]: string[];
979
+ };
980
+ formErrors: string[];
981
+ } | undefined;
982
+ };
983
+ };
984
+ outputFormat: "json";
985
+ status: 400;
986
+ } | {
987
+ input: {
988
+ param: {
989
+ id: string;
990
+ };
991
+ } & {
992
+ json: {
993
+ email: string;
994
+ };
995
+ };
996
+ output: {
997
+ error: {
998
+ code: "AUTHENTICATION_REQUIRED";
999
+ message: "Authentication is required";
1000
+ redirectTo?: string | undefined;
1001
+ };
1002
+ };
1003
+ outputFormat: "json";
1004
+ status: 401;
1005
+ } | {
1006
+ input: {
1007
+ param: {
1008
+ id: string;
1009
+ };
1010
+ } & {
1011
+ json: {
1012
+ email: string;
1013
+ };
1014
+ };
1015
+ output: {
1016
+ error: {
1017
+ code: "ADMIN_REQUIRED";
1018
+ message: "Admin permission required";
1019
+ redirectTo?: string | undefined;
1020
+ };
1021
+ };
1022
+ outputFormat: "json";
1023
+ status: 403;
1024
+ } | {
1025
+ input: {
1026
+ param: {
1027
+ id: string;
1028
+ };
1029
+ } & {
1030
+ json: {
1031
+ email: string;
1032
+ };
1033
+ };
1034
+ output: {
1035
+ error: {
1036
+ code: "NOT_FOUND";
1037
+ message: string;
1038
+ };
1039
+ };
1040
+ outputFormat: "json";
1041
+ status: 404;
1042
+ } | {
1043
+ input: {
1044
+ param: {
1045
+ id: string;
1046
+ };
1047
+ } & {
1048
+ json: {
1049
+ email: string;
1050
+ };
1051
+ };
1052
+ output: {
1053
+ error: {
1054
+ code: "CONFLICT";
1055
+ message: string;
1056
+ };
1057
+ };
1058
+ outputFormat: "json";
1059
+ status: 409;
1060
+ } | {
1061
+ input: {
1062
+ param: {
1063
+ id: string;
1064
+ };
1065
+ } & {
1066
+ json: {
1067
+ email: string;
1068
+ };
1069
+ };
1070
+ output: {
1071
+ error: {
1072
+ code: "INTERNAL_ERROR";
1073
+ message: "Internal server error";
1074
+ };
1075
+ };
1076
+ outputFormat: "json";
1077
+ status: 500;
1078
+ };
1079
+ };
1080
+ } & {
1081
+ "/admin/users/pending-count": {
1082
+ $get: {
1083
+ input: {};
1084
+ output: {
1085
+ count: number;
1086
+ };
1087
+ outputFormat: "json";
1088
+ status: 200;
1089
+ } | {
1090
+ input: {};
1091
+ output: {
1092
+ error: {
1093
+ code: "AUTHENTICATION_REQUIRED";
1094
+ message: "Authentication is required";
1095
+ redirectTo?: string | undefined;
1096
+ };
1097
+ };
1098
+ outputFormat: "json";
1099
+ status: 401;
1100
+ } | {
1101
+ input: {};
1102
+ output: {
1103
+ error: {
1104
+ code: "ADMIN_REQUIRED";
1105
+ message: "Admin permission required";
1106
+ redirectTo?: string | undefined;
1107
+ };
1108
+ };
1109
+ outputFormat: "json";
1110
+ status: 403;
1111
+ } | {
1112
+ input: {};
1113
+ output: {
1114
+ error: {
1115
+ code: "INTERNAL_ERROR";
1116
+ message: "Internal server error";
1117
+ };
1118
+ };
1119
+ outputFormat: "json";
1120
+ status: 500;
1121
+ };
1122
+ };
1123
+ } & {
1124
+ "/admin/users/:id": {
1125
+ $delete: {
1126
+ input: {
1127
+ param: {
1128
+ id: string;
1129
+ };
1130
+ };
1131
+ output: {
1132
+ deletedId: string;
1133
+ };
1134
+ outputFormat: "json";
1135
+ status: 200;
1136
+ } | {
1137
+ input: {
1138
+ param: {
1139
+ id: string;
1140
+ };
1141
+ };
1142
+ output: {
1143
+ error: {
1144
+ code: "VALIDATION_ERROR";
1145
+ message: string;
1146
+ details?: {
1147
+ fieldErrors: {
1148
+ [x: string]: string[];
1149
+ };
1150
+ formErrors: string[];
1151
+ } | undefined;
1152
+ };
1153
+ };
1154
+ outputFormat: "json";
1155
+ status: 400;
1156
+ } | {
1157
+ input: {
1158
+ param: {
1159
+ id: string;
1160
+ };
1161
+ };
1162
+ output: {
1163
+ error: {
1164
+ code: "AUTHENTICATION_REQUIRED";
1165
+ message: "Authentication is required";
1166
+ redirectTo?: string | undefined;
1167
+ };
1168
+ };
1169
+ outputFormat: "json";
1170
+ status: 401;
1171
+ } | {
1172
+ input: {
1173
+ param: {
1174
+ id: string;
1175
+ };
1176
+ };
1177
+ output: {
1178
+ error: {
1179
+ code: "ADMIN_REQUIRED";
1180
+ message: "Admin permission required";
1181
+ redirectTo?: string | undefined;
1182
+ };
1183
+ };
1184
+ outputFormat: "json";
1185
+ status: 403;
1186
+ } | {
1187
+ input: {
1188
+ param: {
1189
+ id: string;
1190
+ };
1191
+ };
1192
+ output: {
1193
+ error: {
1194
+ code: "NOT_FOUND";
1195
+ message: string;
1196
+ };
1197
+ };
1198
+ outputFormat: "json";
1199
+ status: 404;
1200
+ } | {
1201
+ input: {
1202
+ param: {
1203
+ id: string;
1204
+ };
1205
+ };
1206
+ output: {
1207
+ error: {
1208
+ code: "CONFLICT";
1209
+ message: string;
1210
+ };
1211
+ };
1212
+ outputFormat: "json";
1213
+ status: 409;
1214
+ } | {
1215
+ input: {
1216
+ param: {
1217
+ id: string;
1218
+ };
1219
+ };
1220
+ output: {
1221
+ error: {
1222
+ code: "INTERNAL_ERROR";
1223
+ message: "Internal server error";
1224
+ };
1225
+ };
1226
+ outputFormat: "json";
1227
+ status: 500;
1228
+ };
1229
+ };
1230
+ }, "/">;