@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.
- package/dist/hono/handlers/access-token.d.ts +55 -55
- package/dist/hono/handlers/activation.d.ts +27 -27
- package/dist/hono/handlers/admin/app.d.ts +26 -26
- package/dist/hono/handlers/admin/auth.d.ts +24 -24
- package/dist/hono/handlers/admin/mail.d.ts +30 -30
- package/dist/hono/handlers/admin/plugins.d.ts +112 -112
- package/dist/hono/handlers/admin/search.d.ts +21 -21
- package/dist/hono/handlers/admin/security.d.ts +24 -24
- package/dist/hono/handlers/admin/storage.d.ts +19 -19
- package/dist/hono/handlers/admin/users.d.ts +399 -281
- package/dist/hono/handlers/admin/users.js +28 -0
- package/dist/hono/handlers/admin/users.js.map +1 -1
- package/dist/hono/handlers/adminCrypto.d.ts +32 -32
- package/dist/hono/handlers/app.d.ts +12 -8
- package/dist/hono/handlers/app.js +42 -1
- package/dist/hono/handlers/app.js.map +1 -1
- package/dist/hono/handlers/attachment-stream.js +23 -0
- package/dist/hono/handlers/attachment-stream.js.map +1 -1
- package/dist/hono/handlers/attachment.d.ts +180 -180
- package/dist/hono/handlers/autocomplete.d.ts +45 -45
- package/dist/hono/handlers/backlink.d.ts +33 -33
- package/dist/hono/handlers/bookmark.d.ts +95 -95
- package/dist/hono/handlers/comment.d.ts +55 -55
- package/dist/hono/handlers/draft.d.ts +27 -27
- package/dist/hono/handlers/draft.js +10 -0
- package/dist/hono/handlers/draft.js.map +1 -1
- package/dist/hono/handlers/emailChange.d.ts +25 -25
- package/dist/hono/handlers/installer.d.ts +16 -16
- package/dist/hono/handlers/inviteAccept.d.ts +37 -37
- package/dist/hono/handlers/me.d.ts +92 -92
- package/dist/hono/handlers/notification.d.ts +94 -94
- package/dist/hono/handlers/oauth.d.ts +58 -58
- package/dist/hono/handlers/page-collab.d.ts +20 -20
- package/dist/hono/handlers/page-preview.d.ts +7 -7
- package/dist/hono/handlers/page.d.ts +575 -324
- package/dist/hono/handlers/page.js +123 -6
- package/dist/hono/handlers/page.js.map +1 -1
- package/dist/hono/handlers/passwordReset.d.ts +37 -37
- package/dist/hono/handlers/presence.d.ts +44 -44
- package/dist/hono/handlers/revision.d.ts +99 -99
- package/dist/hono/handlers/search.d.ts +64 -64
- package/dist/hono/handlers/tokenAuth.d.ts +80 -80
- package/dist/hono/handlers/user.d.ts +102 -102
- package/dist/hono/handlers/user.js +15 -5
- package/dist/hono/handlers/user.js.map +1 -1
- package/dist/hono/index.d.ts +94 -94
- package/dist/mcp/result.d.ts +52 -11
- package/dist/mcp/result.js +66 -1
- package/dist/mcp/result.js.map +1 -1
- package/dist/mcp/tools/page.js +30 -5
- package/dist/mcp/tools/page.js.map +1 -1
- package/dist/mcp/tools/search.d.ts +12 -0
- package/dist/mcp/tools/search.js +21 -5
- package/dist/mcp/tools/search.js.map +1 -1
- package/dist/migration/helpers.d.ts +13 -0
- package/dist/migration/helpers.js +29 -0
- package/dist/migration/helpers.js.map +1 -0
- package/dist/migration/migrations/files-url-to-attachments.d.ts +35 -0
- package/dist/migration/migrations/files-url-to-attachments.js +291 -0
- package/dist/migration/migrations/files-url-to-attachments.js.map +1 -0
- package/dist/migration/migrations/index.js +6 -0
- package/dist/migration/migrations/index.js.map +1 -1
- package/dist/migration/migrations/published-current-revision.d.ts +47 -0
- package/dist/migration/migrations/published-current-revision.js +90 -0
- package/dist/migration/migrations/published-current-revision.js.map +1 -0
- package/dist/migration/migrations/relocate-reserved-api-paths.d.ts +3 -0
- package/dist/migration/migrations/relocate-reserved-api-paths.js +135 -0
- package/dist/migration/migrations/relocate-reserved-api-paths.js.map +1 -0
- package/dist/migration/migrations/wikilink-format.d.ts +0 -11
- package/dist/migration/migrations/wikilink-format.js +5 -156
- package/dist/migration/migrations/wikilink-format.js.map +1 -1
- package/dist/migration/migrations/wikilink-html-recover.d.ts +116 -0
- package/dist/migration/migrations/wikilink-html-recover.js +314 -0
- package/dist/migration/migrations/wikilink-html-recover.js.map +1 -0
- package/dist/models/page.d.ts +3 -0
- package/dist/models/page.js +40 -2
- package/dist/models/page.js.map +1 -1
- package/dist/models/user.d.ts +1 -0
- package/dist/models/user.js +40 -21
- package/dist/models/user.js.map +1 -1
- package/dist/renderer/core/headings.d.ts +12 -1
- package/dist/renderer/core/headings.js +48 -8
- package/dist/renderer/core/headings.js.map +1 -1
- package/dist/renderer/pipeline.d.ts +6 -0
- package/dist/renderer/pipeline.js.map +1 -1
- package/dist/util/page-response.js +19 -2
- package/dist/util/page-response.js.map +1 -1
- package/dist/util/replace-url.d.ts +85 -0
- package/dist/util/replace-url.js +251 -0
- package/dist/util/replace-url.js.map +1 -0
- package/package.json +13 -5
- package/public/images/file-not-found.png +0 -0
- package/views/mail/activation.mjml +9 -0
- package/views/mail/activation.text +13 -0
- package/views/mail/adminApprovalPending.mjml +7 -0
- package/views/mail/adminApprovalPending.text +11 -0
- package/views/mail/emailChange.mjml +9 -0
- package/views/mail/emailChange.text +13 -0
- package/views/mail/invite.mjml +9 -0
- package/views/mail/invite.text +13 -0
- package/views/mail/layout.mjml +38 -0
- package/views/mail/passwordChanged.mjml +4 -0
- package/views/mail/passwordChanged.text +9 -0
- package/views/mail/passwordReset.mjml +9 -0
- package/views/mail/passwordReset.text +13 -0
- package/views/mail/test.mjml +2 -0
- package/views/mail/test.text +7 -0
- package/dist/common/functions/path2name.d.ts +0 -1
- package/dist/common/functions/path2name.js +0 -22
- package/dist/common/functions/path2name.js.map +0 -1
- package/dist/common/functions/renderIcon.d.ts +0 -1
- package/dist/common/functions/renderIcon.js +0 -9
- package/dist/common/functions/renderIcon.js.map +0 -1
- package/dist/controllers/admin.d.ts +0 -3
- package/dist/controllers/admin.js +0 -474
- package/dist/controllers/admin.js.map +0 -1
- package/dist/controllers/attachment.d.ts +0 -4
- package/dist/controllers/attachment.js +0 -200
- package/dist/controllers/attachment.js.map +0 -1
- package/dist/controllers/backlink.d.ts +0 -3
- package/dist/controllers/backlink.js +0 -42
- package/dist/controllers/backlink.js.map +0 -1
- package/dist/controllers/bookmark.d.ts +0 -3
- package/dist/controllers/bookmark.js +0 -100
- package/dist/controllers/bookmark.js.map +0 -1
- package/dist/controllers/comment.d.ts +0 -3
- package/dist/controllers/comment.js +0 -111
- package/dist/controllers/comment.js.map +0 -1
- package/dist/controllers/index.d.ts +0 -25
- package/dist/controllers/index.js +0 -44
- package/dist/controllers/index.js.map +0 -1
- package/dist/controllers/installer.d.ts +0 -3
- package/dist/controllers/installer.js +0 -48
- package/dist/controllers/installer.js.map +0 -1
- package/dist/controllers/login.d.ts +0 -4
- package/dist/controllers/login.js +0 -438
- package/dist/controllers/login.js.map +0 -1
- package/dist/controllers/logout.d.ts +0 -5
- package/dist/controllers/logout.js +0 -11
- package/dist/controllers/logout.js.map +0 -1
- package/dist/controllers/me.d.ts +0 -4
- package/dist/controllers/me.js +0 -369
- package/dist/controllers/me.js.map +0 -1
- package/dist/controllers/notification.d.ts +0 -3
- package/dist/controllers/notification.js +0 -88
- package/dist/controllers/notification.js.map +0 -1
- package/dist/controllers/page.d.ts +0 -3
- package/dist/controllers/page.js +0 -881
- package/dist/controllers/page.js.map +0 -1
- package/dist/controllers/revision.d.ts +0 -3
- package/dist/controllers/revision.js +0 -91
- package/dist/controllers/revision.js.map +0 -1
- package/dist/controllers/search.d.ts +0 -3
- package/dist/controllers/search.js +0 -93
- package/dist/controllers/search.js.map +0 -1
- package/dist/controllers/share.d.ts +0 -3
- package/dist/controllers/share.js +0 -207
- package/dist/controllers/share.js.map +0 -1
- package/dist/controllers/shareAccess.d.ts +0 -3
- package/dist/controllers/shareAccess.js +0 -28
- package/dist/controllers/shareAccess.js.map +0 -1
- package/dist/controllers/slack.d.ts +0 -3
- package/dist/controllers/slack.js +0 -87
- package/dist/controllers/slack.js.map +0 -1
- package/dist/controllers/tokenAuth.d.ts +0 -10
- package/dist/controllers/tokenAuth.js +0 -292
- package/dist/controllers/tokenAuth.js.map +0 -1
- package/dist/controllers/user.d.ts +0 -3
- package/dist/controllers/user.js +0 -67
- package/dist/controllers/user.js.map +0 -1
- package/dist/controllers/version.d.ts +0 -4
- package/dist/controllers/version.js +0 -19
- package/dist/controllers/version.js.map +0 -1
- package/dist/crowi/express-init.d.ts +0 -4
- package/dist/crowi/express-init.js +0 -101
- package/dist/crowi/express-init.js.map +0 -1
- package/dist/form/admin/app.d.ts +0 -2
- package/dist/form/admin/app.js +0 -9
- package/dist/form/admin/app.js.map +0 -1
- package/dist/form/admin/auth.d.ts +0 -2
- package/dist/form/admin/auth.js +0 -9
- package/dist/form/admin/auth.js.map +0 -1
- package/dist/form/admin/aws.d.ts +0 -2
- package/dist/form/admin/aws.js +0 -13
- package/dist/form/admin/aws.js.map +0 -1
- package/dist/form/admin/github.d.ts +0 -2
- package/dist/form/admin/github.js +0 -15
- package/dist/form/admin/github.js.map +0 -1
- package/dist/form/admin/google.d.ts +0 -2
- package/dist/form/admin/google.js +0 -13
- package/dist/form/admin/google.js.map +0 -1
- package/dist/form/admin/mail.d.ts +0 -2
- package/dist/form/admin/mail.js +0 -13
- package/dist/form/admin/mail.js.map +0 -1
- package/dist/form/admin/sec.d.ts +0 -2
- package/dist/form/admin/sec.js +0 -10
- package/dist/form/admin/sec.js.map +0 -1
- package/dist/form/admin/slackSetting.d.ts +0 -2
- package/dist/form/admin/slackSetting.js +0 -13
- package/dist/form/admin/slackSetting.js.map +0 -1
- package/dist/form/admin/userEdit.d.ts +0 -2
- package/dist/form/admin/userEdit.js +0 -9
- package/dist/form/admin/userEdit.js.map +0 -1
- package/dist/form/admin/userInvite.d.ts +0 -2
- package/dist/form/admin/userInvite.js +0 -9
- package/dist/form/admin/userInvite.js.map +0 -1
- package/dist/form/comment.d.ts +0 -2
- package/dist/form/comment.js +0 -9
- package/dist/form/comment.js.map +0 -1
- package/dist/form/index.d.ts +0 -25
- package/dist/form/index.js +0 -48
- package/dist/form/index.js.map +0 -1
- package/dist/form/invited.d.ts +0 -2
- package/dist/form/invited.js +0 -13
- package/dist/form/invited.js.map +0 -1
- package/dist/form/login.d.ts +0 -2
- package/dist/form/login.js +0 -11
- package/dist/form/login.js.map +0 -1
- package/dist/form/me/apiToken.d.ts +0 -2
- package/dist/form/me/apiToken.js +0 -9
- package/dist/form/me/apiToken.js.map +0 -1
- package/dist/form/me/password.d.ts +0 -2
- package/dist/form/me/password.js +0 -11
- package/dist/form/me/password.js.map +0 -1
- package/dist/form/me/user.d.ts +0 -2
- package/dist/form/me/user.js +0 -9
- package/dist/form/me/user.js.map +0 -1
- package/dist/form/register.d.ts +0 -2
- package/dist/form/register.js +0 -13
- package/dist/form/register.js.map +0 -1
- package/dist/form/revision.d.ts +0 -2
- package/dist/form/revision.js +0 -13
- package/dist/form/revision.js.map +0 -1
- package/dist/hono/handlers/admin/share.d.ts +0 -106
- package/dist/hono/handlers/admin/share.js +0 -55
- package/dist/hono/handlers/admin/share.js.map +0 -1
- package/dist/middlewares/accessTokenParser.d.ts +0 -4
- package/dist/middlewares/accessTokenParser.js +0 -29
- package/dist/middlewares/accessTokenParser.js.map +0 -1
- package/dist/middlewares/adminRequired.d.ts +0 -10
- package/dist/middlewares/adminRequired.js +0 -35
- package/dist/middlewares/adminRequired.js.map +0 -1
- package/dist/middlewares/applicationInstalled.d.ts +0 -3
- package/dist/middlewares/applicationInstalled.js +0 -20
- package/dist/middlewares/applicationInstalled.js.map +0 -1
- package/dist/middlewares/applicationNotInstalled.d.ts +0 -3
- package/dist/middlewares/applicationNotInstalled.js +0 -13
- package/dist/middlewares/applicationNotInstalled.js.map +0 -1
- package/dist/middlewares/basicAuth.d.ts +0 -4
- package/dist/middlewares/basicAuth.js +0 -23
- package/dist/middlewares/basicAuth.js.map +0 -1
- package/dist/middlewares/csrfVerify.d.ts +0 -4
- package/dist/middlewares/csrfVerify.js +0 -24
- package/dist/middlewares/csrfVerify.js.map +0 -1
- package/dist/middlewares/encodeSpace.d.ts +0 -3
- package/dist/middlewares/encodeSpace.js +0 -14
- package/dist/middlewares/encodeSpace.js.map +0 -1
- package/dist/middlewares/fileAccessRightOrLoginRequired.d.ts +0 -4
- package/dist/middlewares/fileAccessRightOrLoginRequired.js +0 -29
- package/dist/middlewares/fileAccessRightOrLoginRequired.js.map +0 -1
- package/dist/middlewares/index.d.ts +0 -16
- package/dist/middlewares/index.js +0 -30
- package/dist/middlewares/index.js.map +0 -1
- package/dist/middlewares/jwtAdminRequired.d.ts +0 -8
- package/dist/middlewares/jwtAdminRequired.js +0 -35
- package/dist/middlewares/jwtAdminRequired.js.map +0 -1
- package/dist/middlewares/jwtAuth.d.ts +0 -4
- package/dist/middlewares/jwtAuth.js +0 -104
- package/dist/middlewares/jwtAuth.js.map +0 -1
- package/dist/middlewares/loginChecker.d.ts +0 -4
- package/dist/middlewares/loginChecker.js +0 -32
- package/dist/middlewares/loginChecker.js.map +0 -1
- package/dist/middlewares/loginRequired.d.ts +0 -4
- package/dist/middlewares/loginRequired.js +0 -88
- package/dist/middlewares/loginRequired.js.map +0 -1
- package/dist/routes/admin.d.ts +0 -4
- package/dist/routes/admin.js +0 -17
- package/dist/routes/admin.js.map +0 -1
- package/dist/routes/api/admin.d.ts +0 -4
- package/dist/routes/api/admin.js +0 -37
- package/dist/routes/api/admin.js.map +0 -1
- package/dist/routes/api/attachment.d.ts +0 -4
- package/dist/routes/api/attachment.js +0 -19
- package/dist/routes/api/attachment.js.map +0 -1
- package/dist/routes/api/bookmark.d.ts +0 -4
- package/dist/routes/api/bookmark.js +0 -15
- package/dist/routes/api/bookmark.js.map +0 -1
- package/dist/routes/api/comment.d.ts +0 -4
- package/dist/routes/api/comment.js +0 -14
- package/dist/routes/api/comment.js.map +0 -1
- package/dist/routes/api/index.d.ts +0 -4
- package/dist/routes/api/index.js +0 -36
- package/dist/routes/api/index.js.map +0 -1
- package/dist/routes/api/like.d.ts +0 -4
- package/dist/routes/api/like.js +0 -13
- package/dist/routes/api/like.js.map +0 -1
- package/dist/routes/api/notification.d.ts +0 -4
- package/dist/routes/api/notification.js +0 -15
- package/dist/routes/api/notification.js.map +0 -1
- package/dist/routes/api/page.d.ts +0 -4
- package/dist/routes/api/page.js +0 -24
- package/dist/routes/api/page.js.map +0 -1
- package/dist/routes/api/revision.d.ts +0 -4
- package/dist/routes/api/revision.js +0 -14
- package/dist/routes/api/revision.js.map +0 -1
- package/dist/routes/api/share.d.ts +0 -4
- package/dist/routes/api/share.js +0 -16
- package/dist/routes/api/share.js.map +0 -1
- package/dist/routes/api/version.d.ts +0 -4
- package/dist/routes/api/version.js +0 -10
- package/dist/routes/api/version.js.map +0 -1
- package/dist/routes/index.d.ts +0 -4
- package/dist/routes/index.js +0 -71
- package/dist/routes/index.js.map +0 -1
- package/dist/routes/login.d.ts +0 -4
- package/dist/routes/login.js +0 -18
- package/dist/routes/login.js.map +0 -1
- package/dist/routes/me.d.ts +0 -4
- package/dist/routes/me.js +0 -24
- package/dist/routes/me.js.map +0 -1
- package/dist/routes/ts-rest/admin/app.d.ts +0 -4
- package/dist/routes/ts-rest/admin/app.js +0 -67
- package/dist/routes/ts-rest/admin/app.js.map +0 -1
- package/dist/routes/ts-rest/admin/auth.d.ts +0 -4
- package/dist/routes/ts-rest/admin/auth.js +0 -95
- package/dist/routes/ts-rest/admin/auth.js.map +0 -1
- package/dist/routes/ts-rest/admin/index.d.ts +0 -10
- package/dist/routes/ts-rest/admin/index.js +0 -35
- package/dist/routes/ts-rest/admin/index.js.map +0 -1
- package/dist/routes/ts-rest/admin/mail.d.ts +0 -4
- package/dist/routes/ts-rest/admin/mail.js +0 -156
- package/dist/routes/ts-rest/admin/mail.js.map +0 -1
- package/dist/routes/ts-rest/admin/plugins.d.ts +0 -4
- package/dist/routes/ts-rest/admin/plugins.js +0 -317
- package/dist/routes/ts-rest/admin/plugins.js.map +0 -1
- package/dist/routes/ts-rest/admin/search.d.ts +0 -4
- package/dist/routes/ts-rest/admin/search.js +0 -67
- package/dist/routes/ts-rest/admin/search.js.map +0 -1
- package/dist/routes/ts-rest/admin/security.d.ts +0 -4
- package/dist/routes/ts-rest/admin/security.js +0 -114
- package/dist/routes/ts-rest/admin/security.js.map +0 -1
- package/dist/routes/ts-rest/admin/share.d.ts +0 -4
- package/dist/routes/ts-rest/admin/share.js +0 -69
- package/dist/routes/ts-rest/admin/share.js.map +0 -1
- package/dist/routes/ts-rest/admin/storage.d.ts +0 -4
- package/dist/routes/ts-rest/admin/storage.js +0 -59
- package/dist/routes/ts-rest/admin/storage.js.map +0 -1
- package/dist/routes/ts-rest/admin/users.d.ts +0 -4
- package/dist/routes/ts-rest/admin/users.js +0 -215
- package/dist/routes/ts-rest/admin/users.js.map +0 -1
- package/dist/routes/ts-rest/adminCrypto.d.ts +0 -4
- package/dist/routes/ts-rest/adminCrypto.js +0 -111
- package/dist/routes/ts-rest/adminCrypto.js.map +0 -1
- package/dist/routes/ts-rest/app.d.ts +0 -4
- package/dist/routes/ts-rest/app.js +0 -23
- package/dist/routes/ts-rest/app.js.map +0 -1
- package/dist/routes/ts-rest/attachment.d.ts +0 -4
- package/dist/routes/ts-rest/attachment.js +0 -830
- package/dist/routes/ts-rest/attachment.js.map +0 -1
- package/dist/routes/ts-rest/auth.d.ts +0 -4
- package/dist/routes/ts-rest/auth.js +0 -70
- package/dist/routes/ts-rest/auth.js.map +0 -1
- package/dist/routes/ts-rest/autocomplete.d.ts +0 -30
- package/dist/routes/ts-rest/autocomplete.js +0 -189
- package/dist/routes/ts-rest/autocomplete.js.map +0 -1
- package/dist/routes/ts-rest/backlink.d.ts +0 -4
- package/dist/routes/ts-rest/backlink.js +0 -106
- package/dist/routes/ts-rest/backlink.js.map +0 -1
- package/dist/routes/ts-rest/bookmark.d.ts +0 -4
- package/dist/routes/ts-rest/bookmark.js +0 -189
- package/dist/routes/ts-rest/bookmark.js.map +0 -1
- package/dist/routes/ts-rest/comment.d.ts +0 -4
- package/dist/routes/ts-rest/comment.js +0 -217
- package/dist/routes/ts-rest/comment.js.map +0 -1
- package/dist/routes/ts-rest/draft.d.ts +0 -22
- package/dist/routes/ts-rest/draft.js +0 -200
- package/dist/routes/ts-rest/draft.js.map +0 -1
- package/dist/routes/ts-rest/index.d.ts +0 -4
- package/dist/routes/ts-rest/index.js +0 -103
- package/dist/routes/ts-rest/index.js.map +0 -1
- package/dist/routes/ts-rest/installer.d.ts +0 -4
- package/dist/routes/ts-rest/installer.js +0 -77
- package/dist/routes/ts-rest/installer.js.map +0 -1
- package/dist/routes/ts-rest/me.d.ts +0 -4
- package/dist/routes/ts-rest/me.js +0 -410
- package/dist/routes/ts-rest/me.js.map +0 -1
- package/dist/routes/ts-rest/notification.d.ts +0 -4
- package/dist/routes/ts-rest/notification.js +0 -241
- package/dist/routes/ts-rest/notification.js.map +0 -1
- package/dist/routes/ts-rest/page-collab.d.ts +0 -29
- package/dist/routes/ts-rest/page-collab.js +0 -90
- package/dist/routes/ts-rest/page-collab.js.map +0 -1
- package/dist/routes/ts-rest/page-preview.d.ts +0 -26
- package/dist/routes/ts-rest/page-preview.js +0 -80
- package/dist/routes/ts-rest/page-preview.js.map +0 -1
- package/dist/routes/ts-rest/page.d.ts +0 -4
- package/dist/routes/ts-rest/page.js +0 -676
- package/dist/routes/ts-rest/page.js.map +0 -1
- package/dist/routes/ts-rest/presence.d.ts +0 -30
- package/dist/routes/ts-rest/presence.js +0 -155
- package/dist/routes/ts-rest/presence.js.map +0 -1
- package/dist/routes/ts-rest/revision.d.ts +0 -4
- package/dist/routes/ts-rest/revision.js +0 -240
- package/dist/routes/ts-rest/revision.js.map +0 -1
- package/dist/routes/ts-rest/search.d.ts +0 -4
- package/dist/routes/ts-rest/search.js +0 -121
- package/dist/routes/ts-rest/search.js.map +0 -1
- package/dist/routes/ts-rest/tokenAuth.d.ts +0 -4
- package/dist/routes/ts-rest/tokenAuth.js +0 -94
- package/dist/routes/ts-rest/tokenAuth.js.map +0 -1
- package/dist/routes/ts-rest/user.d.ts +0 -4
- package/dist/routes/ts-rest/user.js +0 -307
- package/dist/routes/ts-rest/user.js.map +0 -1
- package/dist/types/express.d.ts +0 -34
- package/dist/types/express.js +0 -50
- package/dist/types/express.js.map +0 -1
- package/dist/util/accessTokenParser.d.ts +0 -1
- package/dist/util/accessTokenParser.js +0 -34
- package/dist/util/accessTokenParser.js.map +0 -1
- package/dist/util/apiPaginate.d.ts +0 -11
- package/dist/util/apiPaginate.js +0 -33
- package/dist/util/apiPaginate.js.map +0 -1
- package/dist/util/apiResponse.d.ts +0 -9
- package/dist/util/apiResponse.js +0 -23
- package/dist/util/apiResponse.js.map +0 -1
- package/dist/util/auth.d.ts +0 -11
- package/dist/util/auth.js +0 -48
- package/dist/util/auth.js.map +0 -1
- package/dist/util/aws-config-migration.d.ts +0 -11
- package/dist/util/aws-config-migration.js +0 -68
- package/dist/util/aws-config-migration.js.map +0 -1
- package/dist/util/formUtil.d.ts +0 -2
- package/dist/util/formUtil.js +0 -15
- package/dist/util/formUtil.js.map +0 -1
- package/dist/util/githubAuth.d.ts +0 -2
- package/dist/util/githubAuth.js +0 -82
- package/dist/util/githubAuth.js.map +0 -1
- package/dist/util/googleAuth.d.ts +0 -2
- package/dist/util/googleAuth.js +0 -85
- package/dist/util/googleAuth.js.map +0 -1
- package/dist/util/mailer.d.ts +0 -7
- package/dist/util/mailer.js +0 -98
- package/dist/util/mailer.js.map +0 -1
- package/dist/util/page-status-migration.d.ts +0 -23
- package/dist/util/page-status-migration.js +0 -48
- package/dist/util/page-status-migration.js.map +0 -1
- package/dist/util/ssr.d.ts +0 -3
- package/dist/util/ssr.js +0 -9
- package/dist/util/ssr.js.map +0 -1
- package/dist/util/view.d.ts +0 -10
- package/dist/util/view.js +0 -99
- package/dist/util/view.js.map +0 -1
|
@@ -4,6 +4,39 @@ import type { CrowiHonoBindings } from '../app';
|
|
|
4
4
|
export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
|
|
5
5
|
"/pages": {
|
|
6
6
|
$get: {
|
|
7
|
+
input: {
|
|
8
|
+
query: {
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
page_id?: string | undefined;
|
|
11
|
+
revision_id?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
output: {
|
|
15
|
+
error: {
|
|
16
|
+
code: "PAGE_NOT_FOUND";
|
|
17
|
+
message: "Page not found";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
outputFormat: "json";
|
|
21
|
+
status: 404;
|
|
22
|
+
} | {
|
|
23
|
+
input: {
|
|
24
|
+
query: {
|
|
25
|
+
path?: string | undefined;
|
|
26
|
+
page_id?: string | undefined;
|
|
27
|
+
revision_id?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
output: {
|
|
31
|
+
error: {
|
|
32
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
33
|
+
message: "Authentication is required";
|
|
34
|
+
redirectTo?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
outputFormat: "json";
|
|
38
|
+
status: 401;
|
|
39
|
+
} | {
|
|
7
40
|
input: {
|
|
8
41
|
query: {
|
|
9
42
|
path?: string | undefined;
|
|
@@ -74,7 +107,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
74
107
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
75
108
|
};
|
|
76
109
|
redirectTo?: string | null | undefined;
|
|
77
|
-
status?: "
|
|
110
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
78
111
|
grant?: number | undefined;
|
|
79
112
|
grantedUsers?: string[] | undefined;
|
|
80
113
|
liker?: string[] | undefined;
|
|
@@ -109,23 +142,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
109
142
|
};
|
|
110
143
|
outputFormat: "json";
|
|
111
144
|
status: 200;
|
|
112
|
-
} | {
|
|
113
|
-
input: {
|
|
114
|
-
query: {
|
|
115
|
-
path?: string | undefined;
|
|
116
|
-
page_id?: string | undefined;
|
|
117
|
-
revision_id?: string | undefined;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
output: {
|
|
121
|
-
error: {
|
|
122
|
-
code: "AUTHENTICATION_REQUIRED";
|
|
123
|
-
message: "Authentication is required";
|
|
124
|
-
redirectTo?: string | undefined;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
outputFormat: "json";
|
|
128
|
-
status: 401;
|
|
129
145
|
} | {
|
|
130
146
|
input: {
|
|
131
147
|
query: {
|
|
@@ -142,27 +158,33 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
142
158
|
};
|
|
143
159
|
outputFormat: "json";
|
|
144
160
|
status: 403;
|
|
145
|
-
}
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
} & {
|
|
164
|
+
"/pages/list": {
|
|
165
|
+
$get: {
|
|
146
166
|
input: {
|
|
147
167
|
query: {
|
|
148
168
|
path?: string | undefined;
|
|
149
|
-
|
|
169
|
+
user?: string | undefined;
|
|
170
|
+
limit?: unknown;
|
|
171
|
+
offset?: unknown;
|
|
172
|
+
include_deleted?: unknown;
|
|
173
|
+
sort?: "path" | "createdAt" | "updatedAt" | undefined;
|
|
174
|
+
order?: "asc" | "desc" | undefined;
|
|
150
175
|
revision_id?: string | undefined;
|
|
151
176
|
};
|
|
152
177
|
};
|
|
153
178
|
output: {
|
|
154
179
|
error: {
|
|
155
|
-
code: "
|
|
156
|
-
message: "
|
|
180
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
181
|
+
message: "Authentication is required";
|
|
182
|
+
redirectTo?: string | undefined;
|
|
157
183
|
};
|
|
158
184
|
};
|
|
159
185
|
outputFormat: "json";
|
|
160
|
-
status:
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
} & {
|
|
164
|
-
"/pages/list": {
|
|
165
|
-
$get: {
|
|
186
|
+
status: 401;
|
|
187
|
+
} | {
|
|
166
188
|
input: {
|
|
167
189
|
query: {
|
|
168
190
|
path?: string | undefined;
|
|
@@ -172,6 +194,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
172
194
|
include_deleted?: unknown;
|
|
173
195
|
sort?: "path" | "createdAt" | "updatedAt" | undefined;
|
|
174
196
|
order?: "asc" | "desc" | undefined;
|
|
197
|
+
revision_id?: string | undefined;
|
|
175
198
|
};
|
|
176
199
|
};
|
|
177
200
|
output: {
|
|
@@ -237,7 +260,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
237
260
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
238
261
|
} | undefined;
|
|
239
262
|
redirectTo?: string | null | undefined;
|
|
240
|
-
status?: "
|
|
263
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
241
264
|
grant?: number | undefined;
|
|
242
265
|
grantedUsers?: string[] | undefined;
|
|
243
266
|
creator?: string | {
|
|
@@ -336,7 +359,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
336
359
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
337
360
|
} | undefined;
|
|
338
361
|
redirectTo?: string | null | undefined;
|
|
339
|
-
status?: "
|
|
362
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
340
363
|
grant?: number | undefined;
|
|
341
364
|
grantedUsers?: string[] | undefined;
|
|
342
365
|
creator?: string | {
|
|
@@ -368,80 +391,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
368
391
|
likerCount?: number | undefined;
|
|
369
392
|
seenUsersCount?: number | undefined;
|
|
370
393
|
} | null | undefined;
|
|
371
|
-
|
|
372
|
-
outputFormat: "json";
|
|
373
|
-
status: 200;
|
|
374
|
-
} | {
|
|
375
|
-
input: {
|
|
376
|
-
query: {
|
|
377
|
-
path?: string | undefined;
|
|
378
|
-
user?: string | undefined;
|
|
379
|
-
limit?: unknown;
|
|
380
|
-
offset?: unknown;
|
|
381
|
-
include_deleted?: unknown;
|
|
382
|
-
sort?: "path" | "createdAt" | "updatedAt" | undefined;
|
|
383
|
-
order?: "asc" | "desc" | undefined;
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
|
-
output: {
|
|
387
|
-
error: {
|
|
388
|
-
code: "AUTHENTICATION_REQUIRED";
|
|
389
|
-
message: "Authentication is required";
|
|
390
|
-
redirectTo?: string | undefined;
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
outputFormat: "json";
|
|
394
|
-
status: 401;
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
} & {
|
|
398
|
-
"/pages/children": {
|
|
399
|
-
$get: {
|
|
400
|
-
input: {
|
|
401
|
-
query: {
|
|
402
|
-
path: string;
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
output: {
|
|
406
|
-
children: {
|
|
407
|
-
segment: string;
|
|
408
|
-
path: string;
|
|
409
|
-
isPage: boolean;
|
|
410
|
-
hasPortal: boolean;
|
|
411
|
-
count: number;
|
|
412
|
-
}[];
|
|
413
|
-
};
|
|
414
|
-
outputFormat: "json";
|
|
415
|
-
status: 200;
|
|
416
|
-
} | {
|
|
417
|
-
input: {
|
|
418
|
-
query: {
|
|
419
|
-
path: string;
|
|
420
|
-
};
|
|
421
|
-
};
|
|
422
|
-
output: {
|
|
423
|
-
error: {
|
|
424
|
-
code: "AUTHENTICATION_REQUIRED";
|
|
425
|
-
message: "Authentication is required";
|
|
426
|
-
redirectTo?: string | undefined;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
outputFormat: "json";
|
|
430
|
-
status: 401;
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
} & {
|
|
434
|
-
"/pages": {
|
|
435
|
-
$post: {
|
|
436
|
-
input: {
|
|
437
|
-
json: {
|
|
438
|
-
path: string;
|
|
439
|
-
body: string;
|
|
440
|
-
grant?: number | undefined;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
output: {
|
|
444
|
-
page: {
|
|
394
|
+
contentPage?: {
|
|
445
395
|
_id: string;
|
|
446
396
|
path: string;
|
|
447
397
|
commentCount: number;
|
|
@@ -503,7 +453,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
503
453
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
504
454
|
} | undefined;
|
|
505
455
|
redirectTo?: string | null | undefined;
|
|
506
|
-
status?: "
|
|
456
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
507
457
|
grant?: number | undefined;
|
|
508
458
|
grantedUsers?: string[] | undefined;
|
|
509
459
|
creator?: string | {
|
|
@@ -534,11 +484,51 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
534
484
|
latestRevision?: string | undefined;
|
|
535
485
|
likerCount?: number | undefined;
|
|
536
486
|
seenUsersCount?: number | undefined;
|
|
537
|
-
};
|
|
487
|
+
} | null | undefined;
|
|
538
488
|
};
|
|
539
489
|
outputFormat: "json";
|
|
540
490
|
status: 200;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
} & {
|
|
494
|
+
"/pages/children": {
|
|
495
|
+
$get: {
|
|
496
|
+
input: {
|
|
497
|
+
query: {
|
|
498
|
+
path: string;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
output: {
|
|
502
|
+
error: {
|
|
503
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
504
|
+
message: "Authentication is required";
|
|
505
|
+
redirectTo?: string | undefined;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
outputFormat: "json";
|
|
509
|
+
status: 401;
|
|
541
510
|
} | {
|
|
511
|
+
input: {
|
|
512
|
+
query: {
|
|
513
|
+
path: string;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
output: {
|
|
517
|
+
children: {
|
|
518
|
+
segment: string;
|
|
519
|
+
path: string;
|
|
520
|
+
isPage: boolean;
|
|
521
|
+
hasPortal: boolean;
|
|
522
|
+
count: number;
|
|
523
|
+
}[];
|
|
524
|
+
};
|
|
525
|
+
outputFormat: "json";
|
|
526
|
+
status: 200;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
} & {
|
|
530
|
+
"/pages": {
|
|
531
|
+
$post: {
|
|
542
532
|
input: {
|
|
543
533
|
json: {
|
|
544
534
|
path: string;
|
|
@@ -571,16 +561,11 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
571
561
|
};
|
|
572
562
|
outputFormat: "json";
|
|
573
563
|
status: 401;
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
} & {
|
|
577
|
-
"/pages": {
|
|
578
|
-
$put: {
|
|
564
|
+
} | {
|
|
579
565
|
input: {
|
|
580
566
|
json: {
|
|
581
|
-
|
|
567
|
+
path: string;
|
|
582
568
|
body: string;
|
|
583
|
-
revision_id?: string | undefined;
|
|
584
569
|
grant?: number | undefined;
|
|
585
570
|
};
|
|
586
571
|
};
|
|
@@ -647,7 +632,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
647
632
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
648
633
|
} | undefined;
|
|
649
634
|
redirectTo?: string | null | undefined;
|
|
650
|
-
status?: "
|
|
635
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
651
636
|
grant?: number | undefined;
|
|
652
637
|
grantedUsers?: string[] | undefined;
|
|
653
638
|
creator?: string | {
|
|
@@ -682,7 +667,11 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
682
667
|
};
|
|
683
668
|
outputFormat: "json";
|
|
684
669
|
status: 200;
|
|
685
|
-
}
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
} & {
|
|
673
|
+
"/pages": {
|
|
674
|
+
$put: {
|
|
686
675
|
input: {
|
|
687
676
|
json: {
|
|
688
677
|
page_id: string;
|
|
@@ -693,12 +682,12 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
693
682
|
};
|
|
694
683
|
output: {
|
|
695
684
|
error: {
|
|
696
|
-
code:
|
|
697
|
-
message:
|
|
685
|
+
code: "PAGE_NOT_FOUND";
|
|
686
|
+
message: "Page not found";
|
|
698
687
|
};
|
|
699
688
|
};
|
|
700
689
|
outputFormat: "json";
|
|
701
|
-
status:
|
|
690
|
+
status: 404;
|
|
702
691
|
} | {
|
|
703
692
|
input: {
|
|
704
693
|
json: {
|
|
@@ -710,13 +699,12 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
710
699
|
};
|
|
711
700
|
output: {
|
|
712
701
|
error: {
|
|
713
|
-
code:
|
|
714
|
-
message:
|
|
715
|
-
redirectTo?: string | undefined;
|
|
702
|
+
code: string;
|
|
703
|
+
message: string;
|
|
716
704
|
};
|
|
717
705
|
};
|
|
718
706
|
outputFormat: "json";
|
|
719
|
-
status:
|
|
707
|
+
status: 400;
|
|
720
708
|
} | {
|
|
721
709
|
input: {
|
|
722
710
|
json: {
|
|
@@ -728,12 +716,13 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
728
716
|
};
|
|
729
717
|
output: {
|
|
730
718
|
error: {
|
|
731
|
-
code: "
|
|
732
|
-
message: "
|
|
719
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
720
|
+
message: "Authentication is required";
|
|
721
|
+
redirectTo?: string | undefined;
|
|
733
722
|
};
|
|
734
723
|
};
|
|
735
724
|
outputFormat: "json";
|
|
736
|
-
status:
|
|
725
|
+
status: 401;
|
|
737
726
|
} | {
|
|
738
727
|
input: {
|
|
739
728
|
json: {
|
|
@@ -743,25 +732,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
743
732
|
grant?: number | undefined;
|
|
744
733
|
};
|
|
745
734
|
};
|
|
746
|
-
output: {
|
|
747
|
-
error: {
|
|
748
|
-
code: "PAGE_REVISION_ERROR";
|
|
749
|
-
message: string;
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
outputFormat: "json";
|
|
753
|
-
status: 409;
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
} & {
|
|
757
|
-
"/pages/grant": {
|
|
758
|
-
$put: {
|
|
759
|
-
input: {
|
|
760
|
-
json: {
|
|
761
|
-
page_id: string;
|
|
762
|
-
grant: number;
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
735
|
output: {
|
|
766
736
|
page: {
|
|
767
737
|
_id: string;
|
|
@@ -825,7 +795,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
825
795
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
826
796
|
} | undefined;
|
|
827
797
|
redirectTo?: string | null | undefined;
|
|
828
|
-
status?: "
|
|
798
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
829
799
|
grant?: number | undefined;
|
|
830
800
|
grantedUsers?: string[] | undefined;
|
|
831
801
|
creator?: string | {
|
|
@@ -864,19 +834,55 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
864
834
|
input: {
|
|
865
835
|
json: {
|
|
866
836
|
page_id: string;
|
|
867
|
-
|
|
837
|
+
body: string;
|
|
838
|
+
revision_id?: string | undefined;
|
|
839
|
+
grant?: number | undefined;
|
|
868
840
|
};
|
|
869
841
|
};
|
|
870
842
|
output: {
|
|
871
843
|
error: {
|
|
872
|
-
code:
|
|
844
|
+
code: "PAGE_REVISION_ERROR";
|
|
873
845
|
message: string;
|
|
874
846
|
};
|
|
875
847
|
};
|
|
876
848
|
outputFormat: "json";
|
|
877
|
-
status:
|
|
878
|
-
}
|
|
879
|
-
|
|
849
|
+
status: 409;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
} & {
|
|
853
|
+
"/pages/grant": {
|
|
854
|
+
$put: {
|
|
855
|
+
input: {
|
|
856
|
+
json: {
|
|
857
|
+
page_id: string;
|
|
858
|
+
grant: number;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
output: {
|
|
862
|
+
error: {
|
|
863
|
+
code: "PAGE_NOT_FOUND";
|
|
864
|
+
message: "Page not found";
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
outputFormat: "json";
|
|
868
|
+
status: 404;
|
|
869
|
+
} | {
|
|
870
|
+
input: {
|
|
871
|
+
json: {
|
|
872
|
+
page_id: string;
|
|
873
|
+
grant: number;
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
output: {
|
|
877
|
+
error: {
|
|
878
|
+
code: string;
|
|
879
|
+
message: string;
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
outputFormat: "json";
|
|
883
|
+
status: 400;
|
|
884
|
+
} | {
|
|
885
|
+
input: {
|
|
880
886
|
json: {
|
|
881
887
|
page_id: string;
|
|
882
888
|
grant: number;
|
|
@@ -899,13 +905,103 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
899
905
|
};
|
|
900
906
|
};
|
|
901
907
|
output: {
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
908
|
+
page: {
|
|
909
|
+
_id: string;
|
|
910
|
+
path: string;
|
|
911
|
+
commentCount: number;
|
|
912
|
+
createdAt: string;
|
|
913
|
+
revision?: string | {
|
|
914
|
+
_id: string;
|
|
915
|
+
path: string;
|
|
916
|
+
body: string;
|
|
917
|
+
format: string;
|
|
918
|
+
createdAt: string;
|
|
919
|
+
author?: {
|
|
920
|
+
_id: string;
|
|
921
|
+
username: string;
|
|
922
|
+
name: string;
|
|
923
|
+
email: string;
|
|
924
|
+
createdAt: string;
|
|
925
|
+
id?: string | undefined;
|
|
926
|
+
image?: string | null | undefined;
|
|
927
|
+
} | null | undefined;
|
|
928
|
+
meta?: {
|
|
929
|
+
toc?: {
|
|
930
|
+
level: number;
|
|
931
|
+
text: string;
|
|
932
|
+
anchorId: string;
|
|
933
|
+
}[] | undefined;
|
|
934
|
+
wikiLinks?: {
|
|
935
|
+
raw: string;
|
|
936
|
+
target: string;
|
|
937
|
+
displayText?: string | undefined;
|
|
938
|
+
}[] | undefined;
|
|
939
|
+
mentions?: {
|
|
940
|
+
username: string;
|
|
941
|
+
}[] | undefined;
|
|
942
|
+
codeBlockLanguages?: string[] | undefined;
|
|
943
|
+
} | undefined;
|
|
944
|
+
renderedAst?: import("hono/utils/types").JSONValue | undefined;
|
|
945
|
+
rendererVersion?: string | undefined;
|
|
946
|
+
parentRevisionId?: string | null | undefined;
|
|
947
|
+
type?: "snapshot" | "incremental" | undefined;
|
|
948
|
+
savedBy?: string | {
|
|
949
|
+
_id: string;
|
|
950
|
+
username: string;
|
|
951
|
+
name: string;
|
|
952
|
+
email: string;
|
|
953
|
+
createdAt: string;
|
|
954
|
+
id?: string | undefined;
|
|
955
|
+
image?: string | null | undefined;
|
|
956
|
+
} | null | undefined;
|
|
957
|
+
contributors?: (string | {
|
|
958
|
+
_id: string;
|
|
959
|
+
username: string;
|
|
960
|
+
name: string;
|
|
961
|
+
email: string;
|
|
962
|
+
createdAt: string;
|
|
963
|
+
id?: string | undefined;
|
|
964
|
+
image?: string | null | undefined;
|
|
965
|
+
})[] | undefined;
|
|
966
|
+
message?: string | undefined;
|
|
967
|
+
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
968
|
+
} | undefined;
|
|
969
|
+
redirectTo?: string | null | undefined;
|
|
970
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
971
|
+
grant?: number | undefined;
|
|
972
|
+
grantedUsers?: string[] | undefined;
|
|
973
|
+
creator?: string | {
|
|
974
|
+
_id: string;
|
|
975
|
+
username: string;
|
|
976
|
+
name: string;
|
|
977
|
+
email: string;
|
|
978
|
+
createdAt: string;
|
|
979
|
+
id?: string | undefined;
|
|
980
|
+
image?: string | null | undefined;
|
|
981
|
+
} | null | undefined;
|
|
982
|
+
lastUpdateUser?: string | {
|
|
983
|
+
_id: string;
|
|
984
|
+
username: string;
|
|
985
|
+
name: string;
|
|
986
|
+
email: string;
|
|
987
|
+
createdAt: string;
|
|
988
|
+
id?: string | undefined;
|
|
989
|
+
image?: string | null | undefined;
|
|
990
|
+
} | null | undefined;
|
|
991
|
+
liker?: string[] | undefined;
|
|
992
|
+
extended?: {
|
|
993
|
+
[x: string]: any;
|
|
994
|
+
} | undefined;
|
|
995
|
+
updatedAt?: string | undefined;
|
|
996
|
+
currentRevision?: string | null | undefined;
|
|
997
|
+
yjsCheckpointAt?: string | null | undefined;
|
|
998
|
+
latestRevision?: string | undefined;
|
|
999
|
+
likerCount?: number | undefined;
|
|
1000
|
+
seenUsersCount?: number | undefined;
|
|
905
1001
|
};
|
|
906
1002
|
};
|
|
907
1003
|
outputFormat: "json";
|
|
908
|
-
status:
|
|
1004
|
+
status: 200;
|
|
909
1005
|
};
|
|
910
1006
|
};
|
|
911
1007
|
} & {
|
|
@@ -917,22 +1013,13 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
917
1013
|
};
|
|
918
1014
|
};
|
|
919
1015
|
output: {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
email: string;
|
|
925
|
-
createdAt: string;
|
|
926
|
-
id?: string | undefined;
|
|
927
|
-
image?: string | null | undefined;
|
|
928
|
-
introduction?: string | undefined;
|
|
929
|
-
admin?: boolean | undefined;
|
|
930
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
931
|
-
}[];
|
|
932
|
-
seenUsersCount: number;
|
|
1016
|
+
error: {
|
|
1017
|
+
code: "PAGE_NOT_FOUND";
|
|
1018
|
+
message: "Page not found";
|
|
1019
|
+
};
|
|
933
1020
|
};
|
|
934
1021
|
outputFormat: "json";
|
|
935
|
-
status:
|
|
1022
|
+
status: 404;
|
|
936
1023
|
} | {
|
|
937
1024
|
input: {
|
|
938
1025
|
json: {
|
|
@@ -968,25 +1055,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
968
1055
|
page_id: string;
|
|
969
1056
|
};
|
|
970
1057
|
};
|
|
971
|
-
output: {
|
|
972
|
-
error: {
|
|
973
|
-
code: "PAGE_NOT_FOUND";
|
|
974
|
-
message: "Page not found";
|
|
975
|
-
};
|
|
976
|
-
};
|
|
977
|
-
outputFormat: "json";
|
|
978
|
-
status: 404;
|
|
979
|
-
};
|
|
980
|
-
};
|
|
981
|
-
} & {
|
|
982
|
-
"/pages/seen-users": {
|
|
983
|
-
$get: {
|
|
984
|
-
input: {
|
|
985
|
-
query: {
|
|
986
|
-
page_id: string;
|
|
987
|
-
limit?: unknown;
|
|
988
|
-
};
|
|
989
|
-
};
|
|
990
1058
|
output: {
|
|
991
1059
|
seenUsers: {
|
|
992
1060
|
_id: string;
|
|
@@ -1004,6 +1072,25 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1004
1072
|
};
|
|
1005
1073
|
outputFormat: "json";
|
|
1006
1074
|
status: 200;
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
} & {
|
|
1078
|
+
"/pages/seen-users": {
|
|
1079
|
+
$get: {
|
|
1080
|
+
input: {
|
|
1081
|
+
query: {
|
|
1082
|
+
page_id: string;
|
|
1083
|
+
limit?: unknown;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
output: {
|
|
1087
|
+
error: {
|
|
1088
|
+
code: "PAGE_NOT_FOUND";
|
|
1089
|
+
message: "Page not found";
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
outputFormat: "json";
|
|
1093
|
+
status: 404;
|
|
1007
1094
|
} | {
|
|
1008
1095
|
input: {
|
|
1009
1096
|
query: {
|
|
@@ -1043,18 +1130,70 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1043
1130
|
};
|
|
1044
1131
|
};
|
|
1045
1132
|
output: {
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1133
|
+
seenUsers: {
|
|
1134
|
+
_id: string;
|
|
1135
|
+
username: string;
|
|
1136
|
+
name: string;
|
|
1137
|
+
email: string;
|
|
1138
|
+
createdAt: string;
|
|
1139
|
+
id?: string | undefined;
|
|
1140
|
+
image?: string | null | undefined;
|
|
1141
|
+
introduction?: string | undefined;
|
|
1142
|
+
admin?: boolean | undefined;
|
|
1143
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
1144
|
+
}[];
|
|
1145
|
+
seenUsersCount: number;
|
|
1050
1146
|
};
|
|
1051
1147
|
outputFormat: "json";
|
|
1052
|
-
status:
|
|
1148
|
+
status: 200;
|
|
1053
1149
|
};
|
|
1054
1150
|
};
|
|
1055
1151
|
} & {
|
|
1056
1152
|
"/pages/like": {
|
|
1057
1153
|
$post: {
|
|
1154
|
+
input: {
|
|
1155
|
+
json: {
|
|
1156
|
+
page_id: string;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
output: {
|
|
1160
|
+
error: {
|
|
1161
|
+
code: "PAGE_NOT_FOUND";
|
|
1162
|
+
message: "Page not found";
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
outputFormat: "json";
|
|
1166
|
+
status: 404;
|
|
1167
|
+
} | {
|
|
1168
|
+
input: {
|
|
1169
|
+
json: {
|
|
1170
|
+
page_id: string;
|
|
1171
|
+
};
|
|
1172
|
+
};
|
|
1173
|
+
output: {
|
|
1174
|
+
error: {
|
|
1175
|
+
code: "INVALID_PAGE_ID";
|
|
1176
|
+
message: string;
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
outputFormat: "json";
|
|
1180
|
+
status: 400;
|
|
1181
|
+
} | {
|
|
1182
|
+
input: {
|
|
1183
|
+
json: {
|
|
1184
|
+
page_id: string;
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
output: {
|
|
1188
|
+
error: {
|
|
1189
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1190
|
+
message: "Authentication is required";
|
|
1191
|
+
redirectTo?: string | undefined;
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
outputFormat: "json";
|
|
1195
|
+
status: 401;
|
|
1196
|
+
} | {
|
|
1058
1197
|
input: {
|
|
1059
1198
|
json: {
|
|
1060
1199
|
page_id: string;
|
|
@@ -1123,7 +1262,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1123
1262
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1124
1263
|
} | undefined;
|
|
1125
1264
|
redirectTo?: string | null | undefined;
|
|
1126
|
-
status?: "
|
|
1265
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1127
1266
|
grant?: number | undefined;
|
|
1128
1267
|
grantedUsers?: string[] | undefined;
|
|
1129
1268
|
creator?: string | {
|
|
@@ -1158,7 +1297,11 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1158
1297
|
};
|
|
1159
1298
|
outputFormat: "json";
|
|
1160
1299
|
status: 200;
|
|
1161
|
-
}
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
} & {
|
|
1303
|
+
"/pages/unlike": {
|
|
1304
|
+
$post: {
|
|
1162
1305
|
input: {
|
|
1163
1306
|
json: {
|
|
1164
1307
|
page_id: string;
|
|
@@ -1166,12 +1309,12 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1166
1309
|
};
|
|
1167
1310
|
output: {
|
|
1168
1311
|
error: {
|
|
1169
|
-
code: "
|
|
1170
|
-
message:
|
|
1312
|
+
code: "PAGE_NOT_FOUND";
|
|
1313
|
+
message: "Page not found";
|
|
1171
1314
|
};
|
|
1172
1315
|
};
|
|
1173
1316
|
outputFormat: "json";
|
|
1174
|
-
status:
|
|
1317
|
+
status: 404;
|
|
1175
1318
|
} | {
|
|
1176
1319
|
input: {
|
|
1177
1320
|
json: {
|
|
@@ -1180,13 +1323,12 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1180
1323
|
};
|
|
1181
1324
|
output: {
|
|
1182
1325
|
error: {
|
|
1183
|
-
code: "
|
|
1184
|
-
message:
|
|
1185
|
-
redirectTo?: string | undefined;
|
|
1326
|
+
code: "INVALID_PAGE_ID";
|
|
1327
|
+
message: string;
|
|
1186
1328
|
};
|
|
1187
1329
|
};
|
|
1188
1330
|
outputFormat: "json";
|
|
1189
|
-
status:
|
|
1331
|
+
status: 400;
|
|
1190
1332
|
} | {
|
|
1191
1333
|
input: {
|
|
1192
1334
|
json: {
|
|
@@ -1195,17 +1337,14 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1195
1337
|
};
|
|
1196
1338
|
output: {
|
|
1197
1339
|
error: {
|
|
1198
|
-
code: "
|
|
1199
|
-
message: "
|
|
1340
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1341
|
+
message: "Authentication is required";
|
|
1342
|
+
redirectTo?: string | undefined;
|
|
1200
1343
|
};
|
|
1201
1344
|
};
|
|
1202
1345
|
outputFormat: "json";
|
|
1203
|
-
status:
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
} & {
|
|
1207
|
-
"/pages/unlike": {
|
|
1208
|
-
$post: {
|
|
1346
|
+
status: 401;
|
|
1347
|
+
} | {
|
|
1209
1348
|
input: {
|
|
1210
1349
|
json: {
|
|
1211
1350
|
page_id: string;
|
|
@@ -1274,7 +1413,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1274
1413
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1275
1414
|
} | undefined;
|
|
1276
1415
|
redirectTo?: string | null | undefined;
|
|
1277
|
-
status?: "
|
|
1416
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1278
1417
|
grant?: number | undefined;
|
|
1279
1418
|
grantedUsers?: string[] | undefined;
|
|
1280
1419
|
creator?: string | {
|
|
@@ -1309,9 +1448,27 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1309
1448
|
};
|
|
1310
1449
|
outputFormat: "json";
|
|
1311
1450
|
status: 200;
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
} & {
|
|
1454
|
+
"/pages/watch": {
|
|
1455
|
+
$get: {
|
|
1456
|
+
input: {
|
|
1457
|
+
query: {
|
|
1458
|
+
page_id: string;
|
|
1459
|
+
};
|
|
1460
|
+
};
|
|
1461
|
+
output: {
|
|
1462
|
+
error: {
|
|
1463
|
+
code: "PAGE_NOT_FOUND";
|
|
1464
|
+
message: "Page not found";
|
|
1465
|
+
};
|
|
1466
|
+
};
|
|
1467
|
+
outputFormat: "json";
|
|
1468
|
+
status: 404;
|
|
1312
1469
|
} | {
|
|
1313
1470
|
input: {
|
|
1314
|
-
|
|
1471
|
+
query: {
|
|
1315
1472
|
page_id: string;
|
|
1316
1473
|
};
|
|
1317
1474
|
};
|
|
@@ -1325,7 +1482,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1325
1482
|
status: 400;
|
|
1326
1483
|
} | {
|
|
1327
1484
|
input: {
|
|
1328
|
-
|
|
1485
|
+
query: {
|
|
1329
1486
|
page_id: string;
|
|
1330
1487
|
};
|
|
1331
1488
|
};
|
|
@@ -1340,37 +1497,39 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1340
1497
|
status: 401;
|
|
1341
1498
|
} | {
|
|
1342
1499
|
input: {
|
|
1343
|
-
|
|
1500
|
+
query: {
|
|
1344
1501
|
page_id: string;
|
|
1345
1502
|
};
|
|
1346
1503
|
};
|
|
1347
1504
|
output: {
|
|
1348
|
-
|
|
1349
|
-
code: "PAGE_NOT_FOUND";
|
|
1350
|
-
message: "Page not found";
|
|
1351
|
-
};
|
|
1505
|
+
watching: boolean;
|
|
1352
1506
|
};
|
|
1353
1507
|
outputFormat: "json";
|
|
1354
|
-
status:
|
|
1508
|
+
status: 200;
|
|
1355
1509
|
};
|
|
1356
1510
|
};
|
|
1357
1511
|
} & {
|
|
1358
1512
|
"/pages/watch": {
|
|
1359
|
-
$
|
|
1513
|
+
$put: {
|
|
1360
1514
|
input: {
|
|
1361
|
-
|
|
1515
|
+
json: {
|
|
1362
1516
|
page_id: string;
|
|
1517
|
+
watching: boolean;
|
|
1363
1518
|
};
|
|
1364
1519
|
};
|
|
1365
1520
|
output: {
|
|
1366
|
-
|
|
1521
|
+
error: {
|
|
1522
|
+
code: "PAGE_NOT_FOUND";
|
|
1523
|
+
message: "Page not found";
|
|
1524
|
+
};
|
|
1367
1525
|
};
|
|
1368
1526
|
outputFormat: "json";
|
|
1369
|
-
status:
|
|
1527
|
+
status: 404;
|
|
1370
1528
|
} | {
|
|
1371
1529
|
input: {
|
|
1372
|
-
|
|
1530
|
+
json: {
|
|
1373
1531
|
page_id: string;
|
|
1532
|
+
watching: boolean;
|
|
1374
1533
|
};
|
|
1375
1534
|
};
|
|
1376
1535
|
output: {
|
|
@@ -1383,8 +1542,9 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1383
1542
|
status: 400;
|
|
1384
1543
|
} | {
|
|
1385
1544
|
input: {
|
|
1386
|
-
|
|
1545
|
+
json: {
|
|
1387
1546
|
page_id: string;
|
|
1547
|
+
watching: boolean;
|
|
1388
1548
|
};
|
|
1389
1549
|
};
|
|
1390
1550
|
output: {
|
|
@@ -1398,44 +1558,47 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1398
1558
|
status: 401;
|
|
1399
1559
|
} | {
|
|
1400
1560
|
input: {
|
|
1401
|
-
|
|
1561
|
+
json: {
|
|
1402
1562
|
page_id: string;
|
|
1563
|
+
watching: boolean;
|
|
1403
1564
|
};
|
|
1404
1565
|
};
|
|
1405
1566
|
output: {
|
|
1406
|
-
|
|
1407
|
-
code: "PAGE_NOT_FOUND";
|
|
1408
|
-
message: "Page not found";
|
|
1409
|
-
};
|
|
1567
|
+
watching: boolean;
|
|
1410
1568
|
};
|
|
1411
1569
|
outputFormat: "json";
|
|
1412
|
-
status:
|
|
1570
|
+
status: 200;
|
|
1413
1571
|
};
|
|
1414
1572
|
};
|
|
1415
1573
|
} & {
|
|
1416
|
-
"/pages
|
|
1417
|
-
$
|
|
1574
|
+
"/pages": {
|
|
1575
|
+
$delete: {
|
|
1418
1576
|
input: {
|
|
1419
1577
|
json: {
|
|
1420
1578
|
page_id: string;
|
|
1421
|
-
|
|
1579
|
+
revision_id?: string | undefined;
|
|
1580
|
+
completely?: boolean | undefined;
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
output: {
|
|
1584
|
+
error: {
|
|
1585
|
+
code: "PAGE_NOT_FOUND";
|
|
1586
|
+
message: "Page not found";
|
|
1422
1587
|
};
|
|
1423
1588
|
};
|
|
1424
|
-
output: {
|
|
1425
|
-
watching: boolean;
|
|
1426
|
-
};
|
|
1427
1589
|
outputFormat: "json";
|
|
1428
|
-
status:
|
|
1590
|
+
status: 404;
|
|
1429
1591
|
} | {
|
|
1430
1592
|
input: {
|
|
1431
1593
|
json: {
|
|
1432
1594
|
page_id: string;
|
|
1433
|
-
|
|
1595
|
+
revision_id?: string | undefined;
|
|
1596
|
+
completely?: boolean | undefined;
|
|
1434
1597
|
};
|
|
1435
1598
|
};
|
|
1436
1599
|
output: {
|
|
1437
1600
|
error: {
|
|
1438
|
-
code:
|
|
1601
|
+
code: string;
|
|
1439
1602
|
message: string;
|
|
1440
1603
|
};
|
|
1441
1604
|
};
|
|
@@ -1445,7 +1608,8 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1445
1608
|
input: {
|
|
1446
1609
|
json: {
|
|
1447
1610
|
page_id: string;
|
|
1448
|
-
|
|
1611
|
+
revision_id?: string | undefined;
|
|
1612
|
+
completely?: boolean | undefined;
|
|
1449
1613
|
};
|
|
1450
1614
|
};
|
|
1451
1615
|
output: {
|
|
@@ -1458,25 +1622,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1458
1622
|
outputFormat: "json";
|
|
1459
1623
|
status: 401;
|
|
1460
1624
|
} | {
|
|
1461
|
-
input: {
|
|
1462
|
-
json: {
|
|
1463
|
-
page_id: string;
|
|
1464
|
-
watching: boolean;
|
|
1465
|
-
};
|
|
1466
|
-
};
|
|
1467
|
-
output: {
|
|
1468
|
-
error: {
|
|
1469
|
-
code: "PAGE_NOT_FOUND";
|
|
1470
|
-
message: "Page not found";
|
|
1471
|
-
};
|
|
1472
|
-
};
|
|
1473
|
-
outputFormat: "json";
|
|
1474
|
-
status: 404;
|
|
1475
|
-
};
|
|
1476
|
-
};
|
|
1477
|
-
} & {
|
|
1478
|
-
"/pages": {
|
|
1479
|
-
$delete: {
|
|
1480
1625
|
input: {
|
|
1481
1626
|
json: {
|
|
1482
1627
|
page_id: string;
|
|
@@ -1547,7 +1692,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1547
1692
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1548
1693
|
} | undefined;
|
|
1549
1694
|
redirectTo?: string | null | undefined;
|
|
1550
|
-
status?: "
|
|
1695
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1551
1696
|
grant?: number | undefined;
|
|
1552
1697
|
grantedUsers?: string[] | undefined;
|
|
1553
1698
|
creator?: string | {
|
|
@@ -1592,66 +1737,60 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1592
1737
|
};
|
|
1593
1738
|
output: {
|
|
1594
1739
|
error: {
|
|
1595
|
-
code:
|
|
1740
|
+
code: "PAGE_REVISION_ERROR";
|
|
1596
1741
|
message: string;
|
|
1597
1742
|
};
|
|
1598
1743
|
};
|
|
1599
1744
|
outputFormat: "json";
|
|
1600
|
-
status:
|
|
1601
|
-
}
|
|
1745
|
+
status: 409;
|
|
1746
|
+
};
|
|
1747
|
+
};
|
|
1748
|
+
} & {
|
|
1749
|
+
"/pages/revert": {
|
|
1750
|
+
$post: {
|
|
1602
1751
|
input: {
|
|
1603
1752
|
json: {
|
|
1604
1753
|
page_id: string;
|
|
1605
|
-
revision_id?: string | undefined;
|
|
1606
|
-
completely?: boolean | undefined;
|
|
1607
1754
|
};
|
|
1608
1755
|
};
|
|
1609
1756
|
output: {
|
|
1610
1757
|
error: {
|
|
1611
|
-
code: "
|
|
1612
|
-
message: "
|
|
1613
|
-
redirectTo?: string | undefined;
|
|
1758
|
+
code: "PAGE_NOT_FOUND";
|
|
1759
|
+
message: "Page not found";
|
|
1614
1760
|
};
|
|
1615
1761
|
};
|
|
1616
1762
|
outputFormat: "json";
|
|
1617
|
-
status:
|
|
1763
|
+
status: 404;
|
|
1618
1764
|
} | {
|
|
1619
1765
|
input: {
|
|
1620
1766
|
json: {
|
|
1621
1767
|
page_id: string;
|
|
1622
|
-
revision_id?: string | undefined;
|
|
1623
|
-
completely?: boolean | undefined;
|
|
1624
1768
|
};
|
|
1625
1769
|
};
|
|
1626
1770
|
output: {
|
|
1627
1771
|
error: {
|
|
1628
|
-
code:
|
|
1629
|
-
message:
|
|
1772
|
+
code: string;
|
|
1773
|
+
message: string;
|
|
1630
1774
|
};
|
|
1631
1775
|
};
|
|
1632
1776
|
outputFormat: "json";
|
|
1633
|
-
status:
|
|
1777
|
+
status: 400;
|
|
1634
1778
|
} | {
|
|
1635
1779
|
input: {
|
|
1636
1780
|
json: {
|
|
1637
1781
|
page_id: string;
|
|
1638
|
-
revision_id?: string | undefined;
|
|
1639
|
-
completely?: boolean | undefined;
|
|
1640
1782
|
};
|
|
1641
1783
|
};
|
|
1642
1784
|
output: {
|
|
1643
1785
|
error: {
|
|
1644
|
-
code: "
|
|
1645
|
-
message:
|
|
1786
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1787
|
+
message: "Authentication is required";
|
|
1788
|
+
redirectTo?: string | undefined;
|
|
1646
1789
|
};
|
|
1647
1790
|
};
|
|
1648
1791
|
outputFormat: "json";
|
|
1649
|
-
status:
|
|
1650
|
-
}
|
|
1651
|
-
};
|
|
1652
|
-
} & {
|
|
1653
|
-
"/pages/revert": {
|
|
1654
|
-
$post: {
|
|
1792
|
+
status: 401;
|
|
1793
|
+
} | {
|
|
1655
1794
|
input: {
|
|
1656
1795
|
json: {
|
|
1657
1796
|
page_id: string;
|
|
@@ -1720,7 +1859,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1720
1859
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1721
1860
|
} | undefined;
|
|
1722
1861
|
redirectTo?: string | null | undefined;
|
|
1723
|
-
status?: "
|
|
1862
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1724
1863
|
grant?: number | undefined;
|
|
1725
1864
|
grantedUsers?: string[] | undefined;
|
|
1726
1865
|
creator?: string | {
|
|
@@ -1755,61 +1894,61 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1755
1894
|
};
|
|
1756
1895
|
outputFormat: "json";
|
|
1757
1896
|
status: 200;
|
|
1758
|
-
}
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
} & {
|
|
1900
|
+
"/pages/revert-to-revision": {
|
|
1901
|
+
$post: {
|
|
1759
1902
|
input: {
|
|
1760
1903
|
json: {
|
|
1761
1904
|
page_id: string;
|
|
1905
|
+
revision_id: string;
|
|
1762
1906
|
};
|
|
1763
1907
|
};
|
|
1764
1908
|
output: {
|
|
1765
1909
|
error: {
|
|
1766
|
-
code:
|
|
1767
|
-
message:
|
|
1910
|
+
code: "PAGE_NOT_FOUND";
|
|
1911
|
+
message: "Page not found";
|
|
1768
1912
|
};
|
|
1769
1913
|
};
|
|
1770
1914
|
outputFormat: "json";
|
|
1771
|
-
status:
|
|
1915
|
+
status: 404;
|
|
1772
1916
|
} | {
|
|
1773
1917
|
input: {
|
|
1774
1918
|
json: {
|
|
1775
1919
|
page_id: string;
|
|
1920
|
+
revision_id: string;
|
|
1776
1921
|
};
|
|
1777
1922
|
};
|
|
1778
1923
|
output: {
|
|
1779
1924
|
error: {
|
|
1780
|
-
code:
|
|
1781
|
-
message:
|
|
1782
|
-
redirectTo?: string | undefined;
|
|
1925
|
+
code: string;
|
|
1926
|
+
message: string;
|
|
1783
1927
|
};
|
|
1784
1928
|
};
|
|
1785
1929
|
outputFormat: "json";
|
|
1786
|
-
status:
|
|
1930
|
+
status: 400;
|
|
1787
1931
|
} | {
|
|
1788
1932
|
input: {
|
|
1789
1933
|
json: {
|
|
1790
1934
|
page_id: string;
|
|
1935
|
+
revision_id: string;
|
|
1791
1936
|
};
|
|
1792
1937
|
};
|
|
1793
1938
|
output: {
|
|
1794
1939
|
error: {
|
|
1795
|
-
code: "
|
|
1796
|
-
message: "
|
|
1940
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1941
|
+
message: "Authentication is required";
|
|
1942
|
+
redirectTo?: string | undefined;
|
|
1797
1943
|
};
|
|
1798
1944
|
};
|
|
1799
1945
|
outputFormat: "json";
|
|
1800
|
-
status:
|
|
1801
|
-
}
|
|
1802
|
-
};
|
|
1803
|
-
} & {
|
|
1804
|
-
"/pages/rename": {
|
|
1805
|
-
$post: {
|
|
1946
|
+
status: 401;
|
|
1947
|
+
} | {
|
|
1806
1948
|
input: {
|
|
1807
1949
|
json: {
|
|
1808
1950
|
page_id: string;
|
|
1809
|
-
|
|
1810
|
-
revision_id?: string | undefined;
|
|
1811
|
-
create_redirect?: boolean | undefined;
|
|
1812
|
-
include_descendants?: boolean | undefined;
|
|
1951
|
+
revision_id: string;
|
|
1813
1952
|
};
|
|
1814
1953
|
};
|
|
1815
1954
|
output: {
|
|
@@ -1875,7 +2014,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1875
2014
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1876
2015
|
} | undefined;
|
|
1877
2016
|
redirectTo?: string | null | undefined;
|
|
1878
|
-
status?: "
|
|
2017
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1879
2018
|
grant?: number | undefined;
|
|
1880
2019
|
grantedUsers?: string[] | undefined;
|
|
1881
2020
|
creator?: string | {
|
|
@@ -1907,10 +2046,31 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1907
2046
|
likerCount?: number | undefined;
|
|
1908
2047
|
seenUsersCount?: number | undefined;
|
|
1909
2048
|
};
|
|
1910
|
-
renamed_count: number;
|
|
1911
2049
|
};
|
|
1912
2050
|
outputFormat: "json";
|
|
1913
2051
|
status: 200;
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
2054
|
+
} & {
|
|
2055
|
+
"/pages/rename": {
|
|
2056
|
+
$post: {
|
|
2057
|
+
input: {
|
|
2058
|
+
json: {
|
|
2059
|
+
page_id: string;
|
|
2060
|
+
new_path: string;
|
|
2061
|
+
revision_id?: string | undefined;
|
|
2062
|
+
create_redirect?: boolean | undefined;
|
|
2063
|
+
include_descendants?: boolean | undefined;
|
|
2064
|
+
};
|
|
2065
|
+
};
|
|
2066
|
+
output: {
|
|
2067
|
+
error: {
|
|
2068
|
+
code: "PAGE_NOT_FOUND";
|
|
2069
|
+
message: "Page not found";
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
outputFormat: "json";
|
|
2073
|
+
status: 404;
|
|
1914
2074
|
} | {
|
|
1915
2075
|
input: {
|
|
1916
2076
|
json: {
|
|
@@ -1969,13 +2129,104 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1969
2129
|
};
|
|
1970
2130
|
};
|
|
1971
2131
|
output: {
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
2132
|
+
page: {
|
|
2133
|
+
_id: string;
|
|
2134
|
+
path: string;
|
|
2135
|
+
commentCount: number;
|
|
2136
|
+
createdAt: string;
|
|
2137
|
+
revision?: string | {
|
|
2138
|
+
_id: string;
|
|
2139
|
+
path: string;
|
|
2140
|
+
body: string;
|
|
2141
|
+
format: string;
|
|
2142
|
+
createdAt: string;
|
|
2143
|
+
author?: {
|
|
2144
|
+
_id: string;
|
|
2145
|
+
username: string;
|
|
2146
|
+
name: string;
|
|
2147
|
+
email: string;
|
|
2148
|
+
createdAt: string;
|
|
2149
|
+
id?: string | undefined;
|
|
2150
|
+
image?: string | null | undefined;
|
|
2151
|
+
} | null | undefined;
|
|
2152
|
+
meta?: {
|
|
2153
|
+
toc?: {
|
|
2154
|
+
level: number;
|
|
2155
|
+
text: string;
|
|
2156
|
+
anchorId: string;
|
|
2157
|
+
}[] | undefined;
|
|
2158
|
+
wikiLinks?: {
|
|
2159
|
+
raw: string;
|
|
2160
|
+
target: string;
|
|
2161
|
+
displayText?: string | undefined;
|
|
2162
|
+
}[] | undefined;
|
|
2163
|
+
mentions?: {
|
|
2164
|
+
username: string;
|
|
2165
|
+
}[] | undefined;
|
|
2166
|
+
codeBlockLanguages?: string[] | undefined;
|
|
2167
|
+
} | undefined;
|
|
2168
|
+
renderedAst?: import("hono/utils/types").JSONValue | undefined;
|
|
2169
|
+
rendererVersion?: string | undefined;
|
|
2170
|
+
parentRevisionId?: string | null | undefined;
|
|
2171
|
+
type?: "snapshot" | "incremental" | undefined;
|
|
2172
|
+
savedBy?: string | {
|
|
2173
|
+
_id: string;
|
|
2174
|
+
username: string;
|
|
2175
|
+
name: string;
|
|
2176
|
+
email: string;
|
|
2177
|
+
createdAt: string;
|
|
2178
|
+
id?: string | undefined;
|
|
2179
|
+
image?: string | null | undefined;
|
|
2180
|
+
} | null | undefined;
|
|
2181
|
+
contributors?: (string | {
|
|
2182
|
+
_id: string;
|
|
2183
|
+
username: string;
|
|
2184
|
+
name: string;
|
|
2185
|
+
email: string;
|
|
2186
|
+
createdAt: string;
|
|
2187
|
+
id?: string | undefined;
|
|
2188
|
+
image?: string | null | undefined;
|
|
2189
|
+
})[] | undefined;
|
|
2190
|
+
message?: string | undefined;
|
|
2191
|
+
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
2192
|
+
} | undefined;
|
|
2193
|
+
redirectTo?: string | null | undefined;
|
|
2194
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
2195
|
+
grant?: number | undefined;
|
|
2196
|
+
grantedUsers?: string[] | undefined;
|
|
2197
|
+
creator?: string | {
|
|
2198
|
+
_id: string;
|
|
2199
|
+
username: string;
|
|
2200
|
+
name: string;
|
|
2201
|
+
email: string;
|
|
2202
|
+
createdAt: string;
|
|
2203
|
+
id?: string | undefined;
|
|
2204
|
+
image?: string | null | undefined;
|
|
2205
|
+
} | null | undefined;
|
|
2206
|
+
lastUpdateUser?: string | {
|
|
2207
|
+
_id: string;
|
|
2208
|
+
username: string;
|
|
2209
|
+
name: string;
|
|
2210
|
+
email: string;
|
|
2211
|
+
createdAt: string;
|
|
2212
|
+
id?: string | undefined;
|
|
2213
|
+
image?: string | null | undefined;
|
|
2214
|
+
} | null | undefined;
|
|
2215
|
+
liker?: string[] | undefined;
|
|
2216
|
+
extended?: {
|
|
2217
|
+
[x: string]: any;
|
|
2218
|
+
} | undefined;
|
|
2219
|
+
updatedAt?: string | undefined;
|
|
2220
|
+
currentRevision?: string | null | undefined;
|
|
2221
|
+
yjsCheckpointAt?: string | null | undefined;
|
|
2222
|
+
latestRevision?: string | undefined;
|
|
2223
|
+
likerCount?: number | undefined;
|
|
2224
|
+
seenUsersCount?: number | undefined;
|
|
1975
2225
|
};
|
|
2226
|
+
renamed_count: number;
|
|
1976
2227
|
};
|
|
1977
2228
|
outputFormat: "json";
|
|
1978
|
-
status:
|
|
2229
|
+
status: 200;
|
|
1979
2230
|
} | {
|
|
1980
2231
|
input: {
|
|
1981
2232
|
json: {
|
|
@@ -1999,19 +2250,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1999
2250
|
} & {
|
|
2000
2251
|
"/pages/rename-subtree": {
|
|
2001
2252
|
$post: {
|
|
2002
|
-
input: {
|
|
2003
|
-
json: {
|
|
2004
|
-
old_path: string;
|
|
2005
|
-
new_path: string;
|
|
2006
|
-
create_redirect?: boolean | undefined;
|
|
2007
|
-
};
|
|
2008
|
-
};
|
|
2009
|
-
output: {
|
|
2010
|
-
renamed_count: number;
|
|
2011
|
-
};
|
|
2012
|
-
outputFormat: "json";
|
|
2013
|
-
status: 200;
|
|
2014
|
-
} | {
|
|
2015
2253
|
input: {
|
|
2016
2254
|
json: {
|
|
2017
2255
|
old_path: string;
|
|
@@ -2054,6 +2292,19 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
2054
2292
|
};
|
|
2055
2293
|
outputFormat: "json";
|
|
2056
2294
|
status: 401;
|
|
2295
|
+
} | {
|
|
2296
|
+
input: {
|
|
2297
|
+
json: {
|
|
2298
|
+
old_path: string;
|
|
2299
|
+
new_path: string;
|
|
2300
|
+
create_redirect?: boolean | undefined;
|
|
2301
|
+
};
|
|
2302
|
+
};
|
|
2303
|
+
output: {
|
|
2304
|
+
renamed_count: number;
|
|
2305
|
+
};
|
|
2306
|
+
outputFormat: "json";
|
|
2307
|
+
status: 200;
|
|
2057
2308
|
};
|
|
2058
2309
|
};
|
|
2059
2310
|
}, "/">;
|