@crowi/api 2.0.0-alpha.0 → 2.0.0-alpha.2

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 (452) hide show
  1. package/dist/hono/handlers/access-token.d.ts +55 -55
  2. package/dist/hono/handlers/activation.d.ts +27 -27
  3. package/dist/hono/handlers/admin/app.d.ts +26 -26
  4. package/dist/hono/handlers/admin/auth.d.ts +24 -24
  5. package/dist/hono/handlers/admin/mail.d.ts +30 -30
  6. package/dist/hono/handlers/admin/plugins.d.ts +112 -112
  7. package/dist/hono/handlers/admin/search.d.ts +21 -21
  8. package/dist/hono/handlers/admin/security.d.ts +24 -24
  9. package/dist/hono/handlers/admin/storage.d.ts +19 -19
  10. package/dist/hono/handlers/admin/users.d.ts +399 -281
  11. package/dist/hono/handlers/admin/users.js +28 -0
  12. package/dist/hono/handlers/admin/users.js.map +1 -1
  13. package/dist/hono/handlers/adminCrypto.d.ts +32 -32
  14. package/dist/hono/handlers/app.d.ts +12 -8
  15. package/dist/hono/handlers/app.js +42 -1
  16. package/dist/hono/handlers/app.js.map +1 -1
  17. package/dist/hono/handlers/attachment-stream.js +23 -0
  18. package/dist/hono/handlers/attachment-stream.js.map +1 -1
  19. package/dist/hono/handlers/attachment.d.ts +180 -180
  20. package/dist/hono/handlers/autocomplete.d.ts +45 -45
  21. package/dist/hono/handlers/backlink.d.ts +33 -33
  22. package/dist/hono/handlers/bookmark.d.ts +95 -95
  23. package/dist/hono/handlers/comment.d.ts +55 -55
  24. package/dist/hono/handlers/draft.d.ts +27 -27
  25. package/dist/hono/handlers/draft.js +10 -0
  26. package/dist/hono/handlers/draft.js.map +1 -1
  27. package/dist/hono/handlers/emailChange.d.ts +25 -25
  28. package/dist/hono/handlers/installer.d.ts +16 -16
  29. package/dist/hono/handlers/inviteAccept.d.ts +37 -37
  30. package/dist/hono/handlers/me.d.ts +92 -92
  31. package/dist/hono/handlers/notification.d.ts +94 -94
  32. package/dist/hono/handlers/oauth.d.ts +58 -58
  33. package/dist/hono/handlers/page-collab.d.ts +20 -20
  34. package/dist/hono/handlers/page-preview.d.ts +7 -7
  35. package/dist/hono/handlers/page.d.ts +575 -324
  36. package/dist/hono/handlers/page.js +123 -6
  37. package/dist/hono/handlers/page.js.map +1 -1
  38. package/dist/hono/handlers/passwordReset.d.ts +37 -37
  39. package/dist/hono/handlers/presence.d.ts +44 -44
  40. package/dist/hono/handlers/revision.d.ts +99 -99
  41. package/dist/hono/handlers/search.d.ts +64 -64
  42. package/dist/hono/handlers/tokenAuth.d.ts +80 -80
  43. package/dist/hono/handlers/user.d.ts +102 -102
  44. package/dist/hono/handlers/user.js +15 -5
  45. package/dist/hono/handlers/user.js.map +1 -1
  46. package/dist/hono/index.d.ts +94 -94
  47. package/dist/mcp/result.d.ts +52 -11
  48. package/dist/mcp/result.js +66 -1
  49. package/dist/mcp/result.js.map +1 -1
  50. package/dist/mcp/tools/page.js +30 -5
  51. package/dist/mcp/tools/page.js.map +1 -1
  52. package/dist/mcp/tools/search.d.ts +12 -0
  53. package/dist/mcp/tools/search.js +21 -5
  54. package/dist/mcp/tools/search.js.map +1 -1
  55. package/dist/migration/helpers.d.ts +13 -0
  56. package/dist/migration/helpers.js +29 -0
  57. package/dist/migration/helpers.js.map +1 -0
  58. package/dist/migration/migrations/files-url-to-attachments.d.ts +35 -0
  59. package/dist/migration/migrations/files-url-to-attachments.js +291 -0
  60. package/dist/migration/migrations/files-url-to-attachments.js.map +1 -0
  61. package/dist/migration/migrations/index.js +6 -0
  62. package/dist/migration/migrations/index.js.map +1 -1
  63. package/dist/migration/migrations/published-current-revision.d.ts +47 -0
  64. package/dist/migration/migrations/published-current-revision.js +90 -0
  65. package/dist/migration/migrations/published-current-revision.js.map +1 -0
  66. package/dist/migration/migrations/relocate-reserved-api-paths.d.ts +3 -0
  67. package/dist/migration/migrations/relocate-reserved-api-paths.js +135 -0
  68. package/dist/migration/migrations/relocate-reserved-api-paths.js.map +1 -0
  69. package/dist/migration/migrations/wikilink-format.d.ts +0 -11
  70. package/dist/migration/migrations/wikilink-format.js +5 -156
  71. package/dist/migration/migrations/wikilink-format.js.map +1 -1
  72. package/dist/migration/migrations/wikilink-html-recover.d.ts +116 -0
  73. package/dist/migration/migrations/wikilink-html-recover.js +314 -0
  74. package/dist/migration/migrations/wikilink-html-recover.js.map +1 -0
  75. package/dist/models/page.d.ts +3 -0
  76. package/dist/models/page.js +40 -2
  77. package/dist/models/page.js.map +1 -1
  78. package/dist/models/user.d.ts +1 -0
  79. package/dist/models/user.js +40 -21
  80. package/dist/models/user.js.map +1 -1
  81. package/dist/renderer/core/headings.d.ts +12 -1
  82. package/dist/renderer/core/headings.js +48 -8
  83. package/dist/renderer/core/headings.js.map +1 -1
  84. package/dist/renderer/pipeline.d.ts +6 -0
  85. package/dist/renderer/pipeline.js.map +1 -1
  86. package/dist/util/page-response.js +19 -2
  87. package/dist/util/page-response.js.map +1 -1
  88. package/dist/util/replace-url.d.ts +85 -0
  89. package/dist/util/replace-url.js +251 -0
  90. package/dist/util/replace-url.js.map +1 -0
  91. package/package.json +13 -5
  92. package/public/images/file-not-found.png +0 -0
  93. package/views/mail/activation.mjml +9 -0
  94. package/views/mail/activation.text +13 -0
  95. package/views/mail/adminApprovalPending.mjml +7 -0
  96. package/views/mail/adminApprovalPending.text +11 -0
  97. package/views/mail/emailChange.mjml +9 -0
  98. package/views/mail/emailChange.text +13 -0
  99. package/views/mail/invite.mjml +9 -0
  100. package/views/mail/invite.text +13 -0
  101. package/views/mail/layout.mjml +38 -0
  102. package/views/mail/passwordChanged.mjml +4 -0
  103. package/views/mail/passwordChanged.text +9 -0
  104. package/views/mail/passwordReset.mjml +9 -0
  105. package/views/mail/passwordReset.text +13 -0
  106. package/views/mail/test.mjml +2 -0
  107. package/views/mail/test.text +7 -0
  108. package/dist/common/functions/path2name.d.ts +0 -1
  109. package/dist/common/functions/path2name.js +0 -22
  110. package/dist/common/functions/path2name.js.map +0 -1
  111. package/dist/common/functions/renderIcon.d.ts +0 -1
  112. package/dist/common/functions/renderIcon.js +0 -9
  113. package/dist/common/functions/renderIcon.js.map +0 -1
  114. package/dist/controllers/admin.d.ts +0 -3
  115. package/dist/controllers/admin.js +0 -474
  116. package/dist/controllers/admin.js.map +0 -1
  117. package/dist/controllers/attachment.d.ts +0 -4
  118. package/dist/controllers/attachment.js +0 -200
  119. package/dist/controllers/attachment.js.map +0 -1
  120. package/dist/controllers/backlink.d.ts +0 -3
  121. package/dist/controllers/backlink.js +0 -42
  122. package/dist/controllers/backlink.js.map +0 -1
  123. package/dist/controllers/bookmark.d.ts +0 -3
  124. package/dist/controllers/bookmark.js +0 -100
  125. package/dist/controllers/bookmark.js.map +0 -1
  126. package/dist/controllers/comment.d.ts +0 -3
  127. package/dist/controllers/comment.js +0 -111
  128. package/dist/controllers/comment.js.map +0 -1
  129. package/dist/controllers/index.d.ts +0 -25
  130. package/dist/controllers/index.js +0 -44
  131. package/dist/controllers/index.js.map +0 -1
  132. package/dist/controllers/installer.d.ts +0 -3
  133. package/dist/controllers/installer.js +0 -48
  134. package/dist/controllers/installer.js.map +0 -1
  135. package/dist/controllers/login.d.ts +0 -4
  136. package/dist/controllers/login.js +0 -438
  137. package/dist/controllers/login.js.map +0 -1
  138. package/dist/controllers/logout.d.ts +0 -5
  139. package/dist/controllers/logout.js +0 -11
  140. package/dist/controllers/logout.js.map +0 -1
  141. package/dist/controllers/me.d.ts +0 -4
  142. package/dist/controllers/me.js +0 -369
  143. package/dist/controllers/me.js.map +0 -1
  144. package/dist/controllers/notification.d.ts +0 -3
  145. package/dist/controllers/notification.js +0 -88
  146. package/dist/controllers/notification.js.map +0 -1
  147. package/dist/controllers/page.d.ts +0 -3
  148. package/dist/controllers/page.js +0 -881
  149. package/dist/controllers/page.js.map +0 -1
  150. package/dist/controllers/revision.d.ts +0 -3
  151. package/dist/controllers/revision.js +0 -91
  152. package/dist/controllers/revision.js.map +0 -1
  153. package/dist/controllers/search.d.ts +0 -3
  154. package/dist/controllers/search.js +0 -93
  155. package/dist/controllers/search.js.map +0 -1
  156. package/dist/controllers/share.d.ts +0 -3
  157. package/dist/controllers/share.js +0 -207
  158. package/dist/controllers/share.js.map +0 -1
  159. package/dist/controllers/shareAccess.d.ts +0 -3
  160. package/dist/controllers/shareAccess.js +0 -28
  161. package/dist/controllers/shareAccess.js.map +0 -1
  162. package/dist/controllers/slack.d.ts +0 -3
  163. package/dist/controllers/slack.js +0 -87
  164. package/dist/controllers/slack.js.map +0 -1
  165. package/dist/controllers/tokenAuth.d.ts +0 -10
  166. package/dist/controllers/tokenAuth.js +0 -292
  167. package/dist/controllers/tokenAuth.js.map +0 -1
  168. package/dist/controllers/user.d.ts +0 -3
  169. package/dist/controllers/user.js +0 -67
  170. package/dist/controllers/user.js.map +0 -1
  171. package/dist/controllers/version.d.ts +0 -4
  172. package/dist/controllers/version.js +0 -19
  173. package/dist/controllers/version.js.map +0 -1
  174. package/dist/crowi/express-init.d.ts +0 -4
  175. package/dist/crowi/express-init.js +0 -101
  176. package/dist/crowi/express-init.js.map +0 -1
  177. package/dist/form/admin/app.d.ts +0 -2
  178. package/dist/form/admin/app.js +0 -9
  179. package/dist/form/admin/app.js.map +0 -1
  180. package/dist/form/admin/auth.d.ts +0 -2
  181. package/dist/form/admin/auth.js +0 -9
  182. package/dist/form/admin/auth.js.map +0 -1
  183. package/dist/form/admin/aws.d.ts +0 -2
  184. package/dist/form/admin/aws.js +0 -13
  185. package/dist/form/admin/aws.js.map +0 -1
  186. package/dist/form/admin/github.d.ts +0 -2
  187. package/dist/form/admin/github.js +0 -15
  188. package/dist/form/admin/github.js.map +0 -1
  189. package/dist/form/admin/google.d.ts +0 -2
  190. package/dist/form/admin/google.js +0 -13
  191. package/dist/form/admin/google.js.map +0 -1
  192. package/dist/form/admin/mail.d.ts +0 -2
  193. package/dist/form/admin/mail.js +0 -13
  194. package/dist/form/admin/mail.js.map +0 -1
  195. package/dist/form/admin/sec.d.ts +0 -2
  196. package/dist/form/admin/sec.js +0 -10
  197. package/dist/form/admin/sec.js.map +0 -1
  198. package/dist/form/admin/slackSetting.d.ts +0 -2
  199. package/dist/form/admin/slackSetting.js +0 -13
  200. package/dist/form/admin/slackSetting.js.map +0 -1
  201. package/dist/form/admin/userEdit.d.ts +0 -2
  202. package/dist/form/admin/userEdit.js +0 -9
  203. package/dist/form/admin/userEdit.js.map +0 -1
  204. package/dist/form/admin/userInvite.d.ts +0 -2
  205. package/dist/form/admin/userInvite.js +0 -9
  206. package/dist/form/admin/userInvite.js.map +0 -1
  207. package/dist/form/comment.d.ts +0 -2
  208. package/dist/form/comment.js +0 -9
  209. package/dist/form/comment.js.map +0 -1
  210. package/dist/form/index.d.ts +0 -25
  211. package/dist/form/index.js +0 -48
  212. package/dist/form/index.js.map +0 -1
  213. package/dist/form/invited.d.ts +0 -2
  214. package/dist/form/invited.js +0 -13
  215. package/dist/form/invited.js.map +0 -1
  216. package/dist/form/login.d.ts +0 -2
  217. package/dist/form/login.js +0 -11
  218. package/dist/form/login.js.map +0 -1
  219. package/dist/form/me/apiToken.d.ts +0 -2
  220. package/dist/form/me/apiToken.js +0 -9
  221. package/dist/form/me/apiToken.js.map +0 -1
  222. package/dist/form/me/password.d.ts +0 -2
  223. package/dist/form/me/password.js +0 -11
  224. package/dist/form/me/password.js.map +0 -1
  225. package/dist/form/me/user.d.ts +0 -2
  226. package/dist/form/me/user.js +0 -9
  227. package/dist/form/me/user.js.map +0 -1
  228. package/dist/form/register.d.ts +0 -2
  229. package/dist/form/register.js +0 -13
  230. package/dist/form/register.js.map +0 -1
  231. package/dist/form/revision.d.ts +0 -2
  232. package/dist/form/revision.js +0 -13
  233. package/dist/form/revision.js.map +0 -1
  234. package/dist/hono/handlers/admin/share.d.ts +0 -106
  235. package/dist/hono/handlers/admin/share.js +0 -55
  236. package/dist/hono/handlers/admin/share.js.map +0 -1
  237. package/dist/middlewares/accessTokenParser.d.ts +0 -4
  238. package/dist/middlewares/accessTokenParser.js +0 -29
  239. package/dist/middlewares/accessTokenParser.js.map +0 -1
  240. package/dist/middlewares/adminRequired.d.ts +0 -10
  241. package/dist/middlewares/adminRequired.js +0 -35
  242. package/dist/middlewares/adminRequired.js.map +0 -1
  243. package/dist/middlewares/applicationInstalled.d.ts +0 -3
  244. package/dist/middlewares/applicationInstalled.js +0 -20
  245. package/dist/middlewares/applicationInstalled.js.map +0 -1
  246. package/dist/middlewares/applicationNotInstalled.d.ts +0 -3
  247. package/dist/middlewares/applicationNotInstalled.js +0 -13
  248. package/dist/middlewares/applicationNotInstalled.js.map +0 -1
  249. package/dist/middlewares/basicAuth.d.ts +0 -4
  250. package/dist/middlewares/basicAuth.js +0 -23
  251. package/dist/middlewares/basicAuth.js.map +0 -1
  252. package/dist/middlewares/csrfVerify.d.ts +0 -4
  253. package/dist/middlewares/csrfVerify.js +0 -24
  254. package/dist/middlewares/csrfVerify.js.map +0 -1
  255. package/dist/middlewares/encodeSpace.d.ts +0 -3
  256. package/dist/middlewares/encodeSpace.js +0 -14
  257. package/dist/middlewares/encodeSpace.js.map +0 -1
  258. package/dist/middlewares/fileAccessRightOrLoginRequired.d.ts +0 -4
  259. package/dist/middlewares/fileAccessRightOrLoginRequired.js +0 -29
  260. package/dist/middlewares/fileAccessRightOrLoginRequired.js.map +0 -1
  261. package/dist/middlewares/index.d.ts +0 -16
  262. package/dist/middlewares/index.js +0 -30
  263. package/dist/middlewares/index.js.map +0 -1
  264. package/dist/middlewares/jwtAdminRequired.d.ts +0 -8
  265. package/dist/middlewares/jwtAdminRequired.js +0 -35
  266. package/dist/middlewares/jwtAdminRequired.js.map +0 -1
  267. package/dist/middlewares/jwtAuth.d.ts +0 -4
  268. package/dist/middlewares/jwtAuth.js +0 -104
  269. package/dist/middlewares/jwtAuth.js.map +0 -1
  270. package/dist/middlewares/loginChecker.d.ts +0 -4
  271. package/dist/middlewares/loginChecker.js +0 -32
  272. package/dist/middlewares/loginChecker.js.map +0 -1
  273. package/dist/middlewares/loginRequired.d.ts +0 -4
  274. package/dist/middlewares/loginRequired.js +0 -88
  275. package/dist/middlewares/loginRequired.js.map +0 -1
  276. package/dist/routes/admin.d.ts +0 -4
  277. package/dist/routes/admin.js +0 -17
  278. package/dist/routes/admin.js.map +0 -1
  279. package/dist/routes/api/admin.d.ts +0 -4
  280. package/dist/routes/api/admin.js +0 -37
  281. package/dist/routes/api/admin.js.map +0 -1
  282. package/dist/routes/api/attachment.d.ts +0 -4
  283. package/dist/routes/api/attachment.js +0 -19
  284. package/dist/routes/api/attachment.js.map +0 -1
  285. package/dist/routes/api/bookmark.d.ts +0 -4
  286. package/dist/routes/api/bookmark.js +0 -15
  287. package/dist/routes/api/bookmark.js.map +0 -1
  288. package/dist/routes/api/comment.d.ts +0 -4
  289. package/dist/routes/api/comment.js +0 -14
  290. package/dist/routes/api/comment.js.map +0 -1
  291. package/dist/routes/api/index.d.ts +0 -4
  292. package/dist/routes/api/index.js +0 -36
  293. package/dist/routes/api/index.js.map +0 -1
  294. package/dist/routes/api/like.d.ts +0 -4
  295. package/dist/routes/api/like.js +0 -13
  296. package/dist/routes/api/like.js.map +0 -1
  297. package/dist/routes/api/notification.d.ts +0 -4
  298. package/dist/routes/api/notification.js +0 -15
  299. package/dist/routes/api/notification.js.map +0 -1
  300. package/dist/routes/api/page.d.ts +0 -4
  301. package/dist/routes/api/page.js +0 -24
  302. package/dist/routes/api/page.js.map +0 -1
  303. package/dist/routes/api/revision.d.ts +0 -4
  304. package/dist/routes/api/revision.js +0 -14
  305. package/dist/routes/api/revision.js.map +0 -1
  306. package/dist/routes/api/share.d.ts +0 -4
  307. package/dist/routes/api/share.js +0 -16
  308. package/dist/routes/api/share.js.map +0 -1
  309. package/dist/routes/api/version.d.ts +0 -4
  310. package/dist/routes/api/version.js +0 -10
  311. package/dist/routes/api/version.js.map +0 -1
  312. package/dist/routes/index.d.ts +0 -4
  313. package/dist/routes/index.js +0 -71
  314. package/dist/routes/index.js.map +0 -1
  315. package/dist/routes/login.d.ts +0 -4
  316. package/dist/routes/login.js +0 -18
  317. package/dist/routes/login.js.map +0 -1
  318. package/dist/routes/me.d.ts +0 -4
  319. package/dist/routes/me.js +0 -24
  320. package/dist/routes/me.js.map +0 -1
  321. package/dist/routes/ts-rest/admin/app.d.ts +0 -4
  322. package/dist/routes/ts-rest/admin/app.js +0 -67
  323. package/dist/routes/ts-rest/admin/app.js.map +0 -1
  324. package/dist/routes/ts-rest/admin/auth.d.ts +0 -4
  325. package/dist/routes/ts-rest/admin/auth.js +0 -95
  326. package/dist/routes/ts-rest/admin/auth.js.map +0 -1
  327. package/dist/routes/ts-rest/admin/index.d.ts +0 -10
  328. package/dist/routes/ts-rest/admin/index.js +0 -35
  329. package/dist/routes/ts-rest/admin/index.js.map +0 -1
  330. package/dist/routes/ts-rest/admin/mail.d.ts +0 -4
  331. package/dist/routes/ts-rest/admin/mail.js +0 -156
  332. package/dist/routes/ts-rest/admin/mail.js.map +0 -1
  333. package/dist/routes/ts-rest/admin/plugins.d.ts +0 -4
  334. package/dist/routes/ts-rest/admin/plugins.js +0 -317
  335. package/dist/routes/ts-rest/admin/plugins.js.map +0 -1
  336. package/dist/routes/ts-rest/admin/search.d.ts +0 -4
  337. package/dist/routes/ts-rest/admin/search.js +0 -67
  338. package/dist/routes/ts-rest/admin/search.js.map +0 -1
  339. package/dist/routes/ts-rest/admin/security.d.ts +0 -4
  340. package/dist/routes/ts-rest/admin/security.js +0 -114
  341. package/dist/routes/ts-rest/admin/security.js.map +0 -1
  342. package/dist/routes/ts-rest/admin/share.d.ts +0 -4
  343. package/dist/routes/ts-rest/admin/share.js +0 -69
  344. package/dist/routes/ts-rest/admin/share.js.map +0 -1
  345. package/dist/routes/ts-rest/admin/storage.d.ts +0 -4
  346. package/dist/routes/ts-rest/admin/storage.js +0 -59
  347. package/dist/routes/ts-rest/admin/storage.js.map +0 -1
  348. package/dist/routes/ts-rest/admin/users.d.ts +0 -4
  349. package/dist/routes/ts-rest/admin/users.js +0 -215
  350. package/dist/routes/ts-rest/admin/users.js.map +0 -1
  351. package/dist/routes/ts-rest/adminCrypto.d.ts +0 -4
  352. package/dist/routes/ts-rest/adminCrypto.js +0 -111
  353. package/dist/routes/ts-rest/adminCrypto.js.map +0 -1
  354. package/dist/routes/ts-rest/app.d.ts +0 -4
  355. package/dist/routes/ts-rest/app.js +0 -23
  356. package/dist/routes/ts-rest/app.js.map +0 -1
  357. package/dist/routes/ts-rest/attachment.d.ts +0 -4
  358. package/dist/routes/ts-rest/attachment.js +0 -830
  359. package/dist/routes/ts-rest/attachment.js.map +0 -1
  360. package/dist/routes/ts-rest/auth.d.ts +0 -4
  361. package/dist/routes/ts-rest/auth.js +0 -70
  362. package/dist/routes/ts-rest/auth.js.map +0 -1
  363. package/dist/routes/ts-rest/autocomplete.d.ts +0 -30
  364. package/dist/routes/ts-rest/autocomplete.js +0 -189
  365. package/dist/routes/ts-rest/autocomplete.js.map +0 -1
  366. package/dist/routes/ts-rest/backlink.d.ts +0 -4
  367. package/dist/routes/ts-rest/backlink.js +0 -106
  368. package/dist/routes/ts-rest/backlink.js.map +0 -1
  369. package/dist/routes/ts-rest/bookmark.d.ts +0 -4
  370. package/dist/routes/ts-rest/bookmark.js +0 -189
  371. package/dist/routes/ts-rest/bookmark.js.map +0 -1
  372. package/dist/routes/ts-rest/comment.d.ts +0 -4
  373. package/dist/routes/ts-rest/comment.js +0 -217
  374. package/dist/routes/ts-rest/comment.js.map +0 -1
  375. package/dist/routes/ts-rest/draft.d.ts +0 -22
  376. package/dist/routes/ts-rest/draft.js +0 -200
  377. package/dist/routes/ts-rest/draft.js.map +0 -1
  378. package/dist/routes/ts-rest/index.d.ts +0 -4
  379. package/dist/routes/ts-rest/index.js +0 -103
  380. package/dist/routes/ts-rest/index.js.map +0 -1
  381. package/dist/routes/ts-rest/installer.d.ts +0 -4
  382. package/dist/routes/ts-rest/installer.js +0 -77
  383. package/dist/routes/ts-rest/installer.js.map +0 -1
  384. package/dist/routes/ts-rest/me.d.ts +0 -4
  385. package/dist/routes/ts-rest/me.js +0 -410
  386. package/dist/routes/ts-rest/me.js.map +0 -1
  387. package/dist/routes/ts-rest/notification.d.ts +0 -4
  388. package/dist/routes/ts-rest/notification.js +0 -241
  389. package/dist/routes/ts-rest/notification.js.map +0 -1
  390. package/dist/routes/ts-rest/page-collab.d.ts +0 -29
  391. package/dist/routes/ts-rest/page-collab.js +0 -90
  392. package/dist/routes/ts-rest/page-collab.js.map +0 -1
  393. package/dist/routes/ts-rest/page-preview.d.ts +0 -26
  394. package/dist/routes/ts-rest/page-preview.js +0 -80
  395. package/dist/routes/ts-rest/page-preview.js.map +0 -1
  396. package/dist/routes/ts-rest/page.d.ts +0 -4
  397. package/dist/routes/ts-rest/page.js +0 -676
  398. package/dist/routes/ts-rest/page.js.map +0 -1
  399. package/dist/routes/ts-rest/presence.d.ts +0 -30
  400. package/dist/routes/ts-rest/presence.js +0 -155
  401. package/dist/routes/ts-rest/presence.js.map +0 -1
  402. package/dist/routes/ts-rest/revision.d.ts +0 -4
  403. package/dist/routes/ts-rest/revision.js +0 -240
  404. package/dist/routes/ts-rest/revision.js.map +0 -1
  405. package/dist/routes/ts-rest/search.d.ts +0 -4
  406. package/dist/routes/ts-rest/search.js +0 -121
  407. package/dist/routes/ts-rest/search.js.map +0 -1
  408. package/dist/routes/ts-rest/tokenAuth.d.ts +0 -4
  409. package/dist/routes/ts-rest/tokenAuth.js +0 -94
  410. package/dist/routes/ts-rest/tokenAuth.js.map +0 -1
  411. package/dist/routes/ts-rest/user.d.ts +0 -4
  412. package/dist/routes/ts-rest/user.js +0 -307
  413. package/dist/routes/ts-rest/user.js.map +0 -1
  414. package/dist/types/express.d.ts +0 -34
  415. package/dist/types/express.js +0 -50
  416. package/dist/types/express.js.map +0 -1
  417. package/dist/util/accessTokenParser.d.ts +0 -1
  418. package/dist/util/accessTokenParser.js +0 -34
  419. package/dist/util/accessTokenParser.js.map +0 -1
  420. package/dist/util/apiPaginate.d.ts +0 -11
  421. package/dist/util/apiPaginate.js +0 -33
  422. package/dist/util/apiPaginate.js.map +0 -1
  423. package/dist/util/apiResponse.d.ts +0 -9
  424. package/dist/util/apiResponse.js +0 -23
  425. package/dist/util/apiResponse.js.map +0 -1
  426. package/dist/util/auth.d.ts +0 -11
  427. package/dist/util/auth.js +0 -48
  428. package/dist/util/auth.js.map +0 -1
  429. package/dist/util/aws-config-migration.d.ts +0 -11
  430. package/dist/util/aws-config-migration.js +0 -68
  431. package/dist/util/aws-config-migration.js.map +0 -1
  432. package/dist/util/formUtil.d.ts +0 -2
  433. package/dist/util/formUtil.js +0 -15
  434. package/dist/util/formUtil.js.map +0 -1
  435. package/dist/util/githubAuth.d.ts +0 -2
  436. package/dist/util/githubAuth.js +0 -82
  437. package/dist/util/githubAuth.js.map +0 -1
  438. package/dist/util/googleAuth.d.ts +0 -2
  439. package/dist/util/googleAuth.js +0 -85
  440. package/dist/util/googleAuth.js.map +0 -1
  441. package/dist/util/mailer.d.ts +0 -7
  442. package/dist/util/mailer.js +0 -98
  443. package/dist/util/mailer.js.map +0 -1
  444. package/dist/util/page-status-migration.d.ts +0 -23
  445. package/dist/util/page-status-migration.js +0 -48
  446. package/dist/util/page-status-migration.js.map +0 -1
  447. package/dist/util/ssr.d.ts +0 -3
  448. package/dist/util/ssr.js +0 -9
  449. package/dist/util/ssr.js.map +0 -1
  450. package/dist/util/view.d.ts +0 -10
  451. package/dist/util/view.js +0 -99
  452. package/dist/util/view.js.map +0 -1
@@ -10,13 +10,13 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
10
10
  };
11
11
  };
12
12
  output: {
13
- token: string;
14
- pageId: string;
15
- selfUserId: string;
16
- expiresAt: string;
13
+ error: {
14
+ code: "INTERNAL_ERROR";
15
+ message: "Internal server error";
16
+ };
17
17
  };
18
18
  outputFormat: "json";
19
- status: 200;
19
+ status: 500;
20
20
  } | {
21
21
  input: {
22
22
  param: {
@@ -25,12 +25,12 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
25
25
  };
26
26
  output: {
27
27
  error: {
28
- code: "INVALID_PAGE_ID";
29
- message: string;
28
+ code: "PAGE_NOT_FOUND";
29
+ message: "Page not found";
30
30
  };
31
31
  };
32
32
  outputFormat: "json";
33
- status: 400;
33
+ status: 404;
34
34
  } | {
35
35
  input: {
36
36
  param: {
@@ -39,13 +39,12 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
39
39
  };
40
40
  output: {
41
41
  error: {
42
- code: "AUTHENTICATION_REQUIRED";
43
- message: "Authentication is required";
44
- redirectTo?: string | undefined;
42
+ code: "INVALID_PAGE_ID";
43
+ message: string;
45
44
  };
46
45
  };
47
46
  outputFormat: "json";
48
- status: 401;
47
+ status: 400;
49
48
  } | {
50
49
  input: {
51
50
  param: {
@@ -54,12 +53,13 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
54
53
  };
55
54
  output: {
56
55
  error: {
57
- code: "PAGE_NOT_FOUND";
58
- message: "Page not found";
56
+ code: "AUTHENTICATION_REQUIRED";
57
+ message: "Authentication is required";
58
+ redirectTo?: string | undefined;
59
59
  };
60
60
  };
61
61
  outputFormat: "json";
62
- status: 404;
62
+ status: 401;
63
63
  } | {
64
64
  input: {
65
65
  param: {
@@ -67,13 +67,13 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
67
67
  };
68
68
  };
69
69
  output: {
70
- error: {
71
- code: "INTERNAL_ERROR";
72
- message: "Internal server error";
73
- };
70
+ token: string;
71
+ pageId: string;
72
+ selfUserId: string;
73
+ expiresAt: string;
74
74
  };
75
75
  outputFormat: "json";
76
- status: 500;
76
+ status: 200;
77
77
  };
78
78
  };
79
79
  } & {
@@ -89,17 +89,13 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
89
89
  };
90
90
  };
91
91
  output: {
92
- users: {
93
- id: string;
94
- username: string;
95
- displayName: string;
96
- avatarUrl: string | null;
97
- likedAt: string | null;
98
- }[];
99
- totalCount: number;
92
+ error: {
93
+ code: "INTERNAL_ERROR";
94
+ message: "Internal server error";
95
+ };
100
96
  };
101
97
  outputFormat: "json";
102
- status: 200;
98
+ status: 500;
103
99
  } | {
104
100
  input: {
105
101
  param: {
@@ -112,12 +108,12 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
112
108
  };
113
109
  output: {
114
110
  error: {
115
- code: "INVALID_PAGE_ID";
116
- message: string;
111
+ code: "PAGE_NOT_FOUND";
112
+ message: "Page not found";
117
113
  };
118
114
  };
119
115
  outputFormat: "json";
120
- status: 400;
116
+ status: 404;
121
117
  } | {
122
118
  input: {
123
119
  param: {
@@ -130,13 +126,12 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
130
126
  };
131
127
  output: {
132
128
  error: {
133
- code: "AUTHENTICATION_REQUIRED";
134
- message: "Authentication is required";
135
- redirectTo?: string | undefined;
129
+ code: "INVALID_PAGE_ID";
130
+ message: string;
136
131
  };
137
132
  };
138
133
  outputFormat: "json";
139
- status: 401;
134
+ status: 400;
140
135
  } | {
141
136
  input: {
142
137
  param: {
@@ -149,12 +144,13 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
149
144
  };
150
145
  output: {
151
146
  error: {
152
- code: "PAGE_NOT_FOUND";
153
- message: "Page not found";
147
+ code: "AUTHENTICATION_REQUIRED";
148
+ message: "Authentication is required";
149
+ redirectTo?: string | undefined;
154
150
  };
155
151
  };
156
152
  outputFormat: "json";
157
- status: 404;
153
+ status: 401;
158
154
  } | {
159
155
  input: {
160
156
  param: {
@@ -166,13 +162,17 @@ export declare const registerPresenceRoutes: <E extends OpenAPIHono<CrowiHonoBin
166
162
  };
167
163
  };
168
164
  output: {
169
- error: {
170
- code: "INTERNAL_ERROR";
171
- message: "Internal server error";
172
- };
165
+ users: {
166
+ id: string;
167
+ username: string;
168
+ displayName: string;
169
+ avatarUrl: string | null;
170
+ likedAt: string | null;
171
+ }[];
172
+ totalCount: number;
173
173
  };
174
174
  outputFormat: "json";
175
- status: 500;
175
+ status: 200;
176
176
  };
177
177
  };
178
178
  }, "/">;
@@ -4,6 +4,64 @@ import type { CrowiHonoBindings } from '../app';
4
4
  export declare const registerRevisionRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
5
5
  "/pages/:page_id/revisions": {
6
6
  $get: {
7
+ input: {
8
+ param: {
9
+ page_id: string;
10
+ };
11
+ } & {
12
+ query: {
13
+ limit?: unknown;
14
+ offset?: unknown;
15
+ };
16
+ };
17
+ output: {
18
+ error: {
19
+ code: "PAGE_NOT_FOUND";
20
+ message: "Page not found";
21
+ };
22
+ };
23
+ outputFormat: "json";
24
+ status: 404;
25
+ } | {
26
+ input: {
27
+ param: {
28
+ page_id: string;
29
+ };
30
+ } & {
31
+ query: {
32
+ limit?: unknown;
33
+ offset?: unknown;
34
+ };
35
+ };
36
+ output: {
37
+ error: {
38
+ code: "INVALID_REQUEST";
39
+ message: string;
40
+ };
41
+ };
42
+ outputFormat: "json";
43
+ status: 400;
44
+ } | {
45
+ input: {
46
+ param: {
47
+ page_id: string;
48
+ };
49
+ } & {
50
+ query: {
51
+ limit?: unknown;
52
+ offset?: unknown;
53
+ };
54
+ };
55
+ output: {
56
+ error: {
57
+ code: "AUTHENTICATION_REQUIRED";
58
+ message: "Authentication is required";
59
+ redirectTo?: string | undefined;
60
+ };
61
+ };
62
+ outputFormat: "json";
63
+ status: 401;
64
+ } | {
7
65
  input: {
8
66
  param: {
9
67
  page_id: string;
@@ -56,69 +114,54 @@ export declare const registerRevisionRoutes: <E extends OpenAPIHono<CrowiHonoBin
56
114
  };
57
115
  outputFormat: "json";
58
116
  status: 200;
59
- } | {
117
+ };
118
+ };
119
+ } & {
120
+ "/pages/revisions": {
121
+ $get: {
60
122
  input: {
61
- param: {
62
- page_id: string;
63
- };
64
- } & {
65
123
  query: {
66
- limit?: unknown;
67
- offset?: unknown;
124
+ ids: string;
68
125
  };
69
126
  };
70
127
  output: {
71
128
  error: {
72
- code: "INVALID_REQUEST";
73
- message: string;
129
+ code: "PAGE_NOT_FOUND";
130
+ message: "Page not found";
74
131
  };
75
132
  };
76
133
  outputFormat: "json";
77
- status: 400;
134
+ status: 404;
78
135
  } | {
79
136
  input: {
80
- param: {
81
- page_id: string;
82
- };
83
- } & {
84
137
  query: {
85
- limit?: unknown;
86
- offset?: unknown;
138
+ ids: string;
87
139
  };
88
140
  };
89
141
  output: {
90
142
  error: {
91
- code: "AUTHENTICATION_REQUIRED";
92
- message: "Authentication is required";
93
- redirectTo?: string | undefined;
143
+ code: "INVALID_REQUEST";
144
+ message: string;
94
145
  };
95
146
  };
96
147
  outputFormat: "json";
97
- status: 401;
148
+ status: 400;
98
149
  } | {
99
150
  input: {
100
- param: {
101
- page_id: string;
102
- };
103
- } & {
104
151
  query: {
105
- limit?: unknown;
106
- offset?: unknown;
152
+ ids: string;
107
153
  };
108
154
  };
109
155
  output: {
110
156
  error: {
111
- code: "PAGE_NOT_FOUND";
112
- message: "Page not found";
157
+ code: "AUTHENTICATION_REQUIRED";
158
+ message: "Authentication is required";
159
+ redirectTo?: string | undefined;
113
160
  };
114
161
  };
115
162
  outputFormat: "json";
116
- status: 404;
117
- };
118
- };
119
- } & {
120
- "/pages/revisions": {
121
- $get: {
163
+ status: 401;
164
+ } | {
122
165
  input: {
123
166
  query: {
124
167
  ids: string;
@@ -184,54 +227,54 @@ export declare const registerRevisionRoutes: <E extends OpenAPIHono<CrowiHonoBin
184
227
  };
185
228
  outputFormat: "json";
186
229
  status: 200;
187
- } | {
230
+ };
231
+ };
232
+ } & {
233
+ "/pages/revisions/:id": {
234
+ $get: {
188
235
  input: {
189
- query: {
190
- ids: string;
236
+ param: {
237
+ id: string;
191
238
  };
192
239
  };
193
240
  output: {
194
241
  error: {
195
- code: "INVALID_REQUEST";
196
- message: string;
242
+ code: "PAGE_NOT_FOUND";
243
+ message: "Page not found";
197
244
  };
198
245
  };
199
246
  outputFormat: "json";
200
- status: 400;
247
+ status: 404;
201
248
  } | {
202
249
  input: {
203
- query: {
204
- ids: string;
250
+ param: {
251
+ id: string;
205
252
  };
206
253
  };
207
254
  output: {
208
255
  error: {
209
- code: "AUTHENTICATION_REQUIRED";
210
- message: "Authentication is required";
211
- redirectTo?: string | undefined;
256
+ code: "INVALID_REQUEST";
257
+ message: string;
212
258
  };
213
259
  };
214
260
  outputFormat: "json";
215
- status: 401;
261
+ status: 400;
216
262
  } | {
217
263
  input: {
218
- query: {
219
- ids: string;
264
+ param: {
265
+ id: string;
220
266
  };
221
267
  };
222
268
  output: {
223
269
  error: {
224
- code: "PAGE_NOT_FOUND";
225
- message: "Page not found";
270
+ code: "AUTHENTICATION_REQUIRED";
271
+ message: "Authentication is required";
272
+ redirectTo?: string | undefined;
226
273
  };
227
274
  };
228
275
  outputFormat: "json";
229
- status: 404;
230
- };
231
- };
232
- } & {
233
- "/pages/revisions/:id": {
234
- $get: {
276
+ status: 401;
277
+ } | {
235
278
  input: {
236
279
  param: {
237
280
  id: string;
@@ -297,49 +340,6 @@ export declare const registerRevisionRoutes: <E extends OpenAPIHono<CrowiHonoBin
297
340
  };
298
341
  outputFormat: "json";
299
342
  status: 200;
300
- } | {
301
- input: {
302
- param: {
303
- id: string;
304
- };
305
- };
306
- output: {
307
- error: {
308
- code: "INVALID_REQUEST";
309
- message: string;
310
- };
311
- };
312
- outputFormat: "json";
313
- status: 400;
314
- } | {
315
- input: {
316
- param: {
317
- id: string;
318
- };
319
- };
320
- output: {
321
- error: {
322
- code: "AUTHENTICATION_REQUIRED";
323
- message: "Authentication is required";
324
- redirectTo?: string | undefined;
325
- };
326
- };
327
- outputFormat: "json";
328
- status: 401;
329
- } | {
330
- input: {
331
- param: {
332
- id: string;
333
- };
334
- };
335
- output: {
336
- error: {
337
- code: "PAGE_NOT_FOUND";
338
- message: "Page not found";
339
- };
340
- };
341
- outputFormat: "json";
342
- status: 404;
343
343
  };
344
344
  };
345
345
  }, "/">;
@@ -8,7 +8,68 @@ export declare const registerSearchRoutes: <E extends OpenAPIHono<CrowiHonoBindi
8
8
  query: {
9
9
  q: string;
10
10
  tree?: string | undefined;
11
- type?: "user" | "portal" | "public" | undefined;
11
+ type?: "user" | "public" | "portal" | undefined;
12
+ page?: unknown;
13
+ limit?: unknown;
14
+ };
15
+ };
16
+ output: {
17
+ error: {
18
+ code: "INTERNAL_ERROR";
19
+ message: "Internal server error";
20
+ };
21
+ };
22
+ outputFormat: "json";
23
+ status: 500;
24
+ } | {
25
+ input: {
26
+ query: {
27
+ q: string;
28
+ tree?: string | undefined;
29
+ type?: "user" | "public" | "portal" | undefined;
30
+ page?: unknown;
31
+ limit?: unknown;
32
+ };
33
+ };
34
+ output: {
35
+ error: {
36
+ code: "VALIDATION_ERROR";
37
+ message: string;
38
+ details?: {
39
+ fieldErrors: {
40
+ [x: string]: string[];
41
+ };
42
+ formErrors: string[];
43
+ } | undefined;
44
+ };
45
+ };
46
+ outputFormat: "json";
47
+ status: 400;
48
+ } | {
49
+ input: {
50
+ query: {
51
+ q: string;
52
+ tree?: string | undefined;
53
+ type?: "user" | "public" | "portal" | undefined;
54
+ page?: unknown;
55
+ limit?: unknown;
56
+ };
57
+ };
58
+ output: {
59
+ error: {
60
+ code: "AUTHENTICATION_REQUIRED";
61
+ message: "Authentication is required";
62
+ redirectTo?: string | undefined;
63
+ };
64
+ };
65
+ outputFormat: "json";
66
+ status: 401;
67
+ } | {
68
+ input: {
69
+ query: {
70
+ q: string;
71
+ tree?: string | undefined;
72
+ type?: "user" | "public" | "portal" | undefined;
12
73
  page?: unknown;
13
74
  limit?: unknown;
14
75
  };
@@ -85,7 +146,7 @@ export declare const registerSearchRoutes: <E extends OpenAPIHono<CrowiHonoBindi
85
146
  editVia?: "web" | "oauth" | "pat" | undefined;
86
147
  } | undefined;
87
148
  redirectTo?: string | null | undefined;
88
- status?: "deleted" | "deprecated" | "published" | "wip" | "draft" | null | undefined;
149
+ status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
89
150
  grant?: number | undefined;
90
151
  grantedUsers?: string[] | undefined;
91
152
  creator?: string | {
@@ -128,68 +189,7 @@ export declare const registerSearchRoutes: <E extends OpenAPIHono<CrowiHonoBindi
128
189
  query: {
129
190
  q: string;
130
191
  tree?: string | undefined;
131
- type?: "user" | "portal" | "public" | undefined;
132
- page?: unknown;
133
- limit?: unknown;
134
- };
135
- };
136
- output: {
137
- error: {
138
- code: "VALIDATION_ERROR";
139
- message: string;
140
- details?: {
141
- fieldErrors: {
142
- [x: string]: string[];
143
- };
144
- formErrors: string[];
145
- } | undefined;
146
- };
147
- };
148
- outputFormat: "json";
149
- status: 400;
150
- } | {
151
- input: {
152
- query: {
153
- q: string;
154
- tree?: string | undefined;
155
- type?: "user" | "portal" | "public" | undefined;
156
- page?: unknown;
157
- limit?: unknown;
158
- };
159
- };
160
- output: {
161
- error: {
162
- code: "AUTHENTICATION_REQUIRED";
163
- message: "Authentication is required";
164
- redirectTo?: string | undefined;
165
- };
166
- };
167
- outputFormat: "json";
168
- status: 401;
169
- } | {
170
- input: {
171
- query: {
172
- q: string;
173
- tree?: string | undefined;
174
- type?: "user" | "portal" | "public" | undefined;
175
- page?: unknown;
176
- limit?: unknown;
177
- };
178
- };
179
- output: {
180
- error: {
181
- code: "INTERNAL_ERROR";
182
- message: "Internal server error";
183
- };
184
- };
185
- outputFormat: "json";
186
- status: 500;
187
- } | {
188
- input: {
189
- query: {
190
- q: string;
191
- tree?: string | undefined;
192
- type?: "user" | "portal" | "public" | undefined;
192
+ type?: "user" | "public" | "portal" | undefined;
193
193
  page?: unknown;
194
194
  limit?: unknown;
195
195
  };