@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,63 @@ import type { CrowiHonoBindings } from '../app';
|
|
|
4
4
|
export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
|
|
5
5
|
"/pages/:pageId/attachments/usage": {
|
|
6
6
|
$get: {
|
|
7
|
+
input: {
|
|
8
|
+
param: {
|
|
9
|
+
pageId: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
output: {
|
|
13
|
+
error: {
|
|
14
|
+
code: "INTERNAL_ERROR";
|
|
15
|
+
message: "Internal server error";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
outputFormat: "json";
|
|
19
|
+
status: 500;
|
|
20
|
+
} | {
|
|
21
|
+
input: {
|
|
22
|
+
param: {
|
|
23
|
+
pageId: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
output: {
|
|
27
|
+
error: {
|
|
28
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
29
|
+
message: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
outputFormat: "json";
|
|
33
|
+
status: 404;
|
|
34
|
+
} | {
|
|
35
|
+
input: {
|
|
36
|
+
param: {
|
|
37
|
+
pageId: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
output: {
|
|
41
|
+
error: {
|
|
42
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
43
|
+
message: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
outputFormat: "json";
|
|
47
|
+
status: 400;
|
|
48
|
+
} | {
|
|
49
|
+
input: {
|
|
50
|
+
param: {
|
|
51
|
+
pageId: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
output: {
|
|
55
|
+
error: {
|
|
56
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
57
|
+
message: "Authentication is required";
|
|
58
|
+
redirectTo?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
outputFormat: "json";
|
|
62
|
+
status: 401;
|
|
63
|
+
} | {
|
|
7
64
|
input: {
|
|
8
65
|
param: {
|
|
9
66
|
pageId: string;
|
|
@@ -80,7 +137,11 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
80
137
|
};
|
|
81
138
|
outputFormat: "json";
|
|
82
139
|
status: 200;
|
|
83
|
-
}
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
} & {
|
|
143
|
+
"/pages/:pageId/attachments": {
|
|
144
|
+
$get: {
|
|
84
145
|
input: {
|
|
85
146
|
param: {
|
|
86
147
|
pageId: string;
|
|
@@ -88,12 +149,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
88
149
|
};
|
|
89
150
|
output: {
|
|
90
151
|
error: {
|
|
91
|
-
code: "
|
|
92
|
-
message:
|
|
152
|
+
code: "INTERNAL_ERROR";
|
|
153
|
+
message: "Internal server error";
|
|
93
154
|
};
|
|
94
155
|
};
|
|
95
156
|
outputFormat: "json";
|
|
96
|
-
status:
|
|
157
|
+
status: 500;
|
|
97
158
|
} | {
|
|
98
159
|
input: {
|
|
99
160
|
param: {
|
|
@@ -102,13 +163,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
102
163
|
};
|
|
103
164
|
output: {
|
|
104
165
|
error: {
|
|
105
|
-
code: "
|
|
106
|
-
message:
|
|
107
|
-
redirectTo?: string | undefined;
|
|
166
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
167
|
+
message: string;
|
|
108
168
|
};
|
|
109
169
|
};
|
|
110
170
|
outputFormat: "json";
|
|
111
|
-
status:
|
|
171
|
+
status: 404;
|
|
112
172
|
} | {
|
|
113
173
|
input: {
|
|
114
174
|
param: {
|
|
@@ -117,12 +177,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
117
177
|
};
|
|
118
178
|
output: {
|
|
119
179
|
error: {
|
|
120
|
-
code: "
|
|
180
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
121
181
|
message: string;
|
|
122
182
|
};
|
|
123
183
|
};
|
|
124
184
|
outputFormat: "json";
|
|
125
|
-
status:
|
|
185
|
+
status: 400;
|
|
126
186
|
} | {
|
|
127
187
|
input: {
|
|
128
188
|
param: {
|
|
@@ -131,17 +191,14 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
131
191
|
};
|
|
132
192
|
output: {
|
|
133
193
|
error: {
|
|
134
|
-
code: "
|
|
135
|
-
message: "
|
|
194
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
195
|
+
message: "Authentication is required";
|
|
196
|
+
redirectTo?: string | undefined;
|
|
136
197
|
};
|
|
137
198
|
};
|
|
138
199
|
outputFormat: "json";
|
|
139
|
-
status:
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
} & {
|
|
143
|
-
"/pages/:pageId/attachments": {
|
|
144
|
-
$get: {
|
|
200
|
+
status: 401;
|
|
201
|
+
} | {
|
|
145
202
|
input: {
|
|
146
203
|
param: {
|
|
147
204
|
pageId: string;
|
|
@@ -175,68 +232,84 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
175
232
|
};
|
|
176
233
|
outputFormat: "json";
|
|
177
234
|
status: 200;
|
|
178
|
-
}
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
} & {
|
|
238
|
+
"/pages/:pageId/attachments": {
|
|
239
|
+
$post: {
|
|
179
240
|
input: {
|
|
180
241
|
param: {
|
|
181
242
|
pageId: string;
|
|
182
243
|
};
|
|
244
|
+
} & {
|
|
245
|
+
form: {
|
|
246
|
+
file?: any;
|
|
247
|
+
};
|
|
183
248
|
};
|
|
184
249
|
output: {
|
|
185
250
|
error: {
|
|
186
|
-
code: "
|
|
251
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
187
252
|
message: string;
|
|
188
253
|
};
|
|
189
254
|
};
|
|
190
255
|
outputFormat: "json";
|
|
191
|
-
status:
|
|
256
|
+
status: 500;
|
|
192
257
|
} | {
|
|
193
258
|
input: {
|
|
194
259
|
param: {
|
|
195
260
|
pageId: string;
|
|
196
261
|
};
|
|
262
|
+
} & {
|
|
263
|
+
form: {
|
|
264
|
+
file?: any;
|
|
265
|
+
};
|
|
197
266
|
};
|
|
198
267
|
output: {
|
|
199
268
|
error: {
|
|
200
|
-
code: "
|
|
201
|
-
message:
|
|
202
|
-
redirectTo?: string | undefined;
|
|
269
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
270
|
+
message: string;
|
|
203
271
|
};
|
|
204
272
|
};
|
|
205
273
|
outputFormat: "json";
|
|
206
|
-
status:
|
|
274
|
+
status: 404;
|
|
207
275
|
} | {
|
|
208
276
|
input: {
|
|
209
277
|
param: {
|
|
210
278
|
pageId: string;
|
|
211
279
|
};
|
|
280
|
+
} & {
|
|
281
|
+
form: {
|
|
282
|
+
file?: any;
|
|
283
|
+
};
|
|
212
284
|
};
|
|
213
285
|
output: {
|
|
214
286
|
error: {
|
|
215
|
-
code: "
|
|
287
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
216
288
|
message: string;
|
|
217
289
|
};
|
|
218
290
|
};
|
|
219
291
|
outputFormat: "json";
|
|
220
|
-
status:
|
|
292
|
+
status: 400;
|
|
221
293
|
} | {
|
|
222
294
|
input: {
|
|
223
295
|
param: {
|
|
224
296
|
pageId: string;
|
|
225
297
|
};
|
|
298
|
+
} & {
|
|
299
|
+
form: {
|
|
300
|
+
file?: any;
|
|
301
|
+
};
|
|
226
302
|
};
|
|
227
303
|
output: {
|
|
228
304
|
error: {
|
|
229
|
-
code: "
|
|
230
|
-
message: "
|
|
305
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
306
|
+
message: "Authentication is required";
|
|
307
|
+
redirectTo?: string | undefined;
|
|
231
308
|
};
|
|
232
309
|
};
|
|
233
310
|
outputFormat: "json";
|
|
234
|
-
status:
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
} & {
|
|
238
|
-
"/pages/:pageId/attachments": {
|
|
239
|
-
$post: {
|
|
311
|
+
status: 401;
|
|
312
|
+
} | {
|
|
240
313
|
input: {
|
|
241
314
|
param: {
|
|
242
315
|
pageId: string;
|
|
@@ -287,85 +360,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
287
360
|
};
|
|
288
361
|
output: {
|
|
289
362
|
error: {
|
|
290
|
-
code: "
|
|
291
|
-
message: string;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
outputFormat: "json";
|
|
295
|
-
status: 400;
|
|
296
|
-
} | {
|
|
297
|
-
input: {
|
|
298
|
-
param: {
|
|
299
|
-
pageId: string;
|
|
300
|
-
};
|
|
301
|
-
} & {
|
|
302
|
-
form: {
|
|
303
|
-
file?: any;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
output: {
|
|
307
|
-
error: {
|
|
308
|
-
code: "AUTHENTICATION_REQUIRED";
|
|
309
|
-
message: "Authentication is required";
|
|
310
|
-
redirectTo?: string | undefined;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
outputFormat: "json";
|
|
314
|
-
status: 401;
|
|
315
|
-
} | {
|
|
316
|
-
input: {
|
|
317
|
-
param: {
|
|
318
|
-
pageId: string;
|
|
319
|
-
};
|
|
320
|
-
} & {
|
|
321
|
-
form: {
|
|
322
|
-
file?: any;
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
output: {
|
|
326
|
-
error: {
|
|
327
|
-
code: "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
328
|
-
message: string;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
outputFormat: "json";
|
|
332
|
-
status: 404;
|
|
333
|
-
} | {
|
|
334
|
-
input: {
|
|
335
|
-
param: {
|
|
336
|
-
pageId: string;
|
|
337
|
-
};
|
|
338
|
-
} & {
|
|
339
|
-
form: {
|
|
340
|
-
file?: any;
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
output: {
|
|
344
|
-
error: {
|
|
345
|
-
code: "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
363
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
346
364
|
message: string;
|
|
347
365
|
};
|
|
348
366
|
};
|
|
349
367
|
outputFormat: "json";
|
|
350
368
|
status: 413;
|
|
351
|
-
} | {
|
|
352
|
-
input: {
|
|
353
|
-
param: {
|
|
354
|
-
pageId: string;
|
|
355
|
-
};
|
|
356
|
-
} & {
|
|
357
|
-
form: {
|
|
358
|
-
file?: any;
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
output: {
|
|
362
|
-
error: {
|
|
363
|
-
code: "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
364
|
-
message: string;
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
outputFormat: "json";
|
|
368
|
-
status: 500;
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
371
|
} & {
|
|
@@ -379,13 +379,13 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
379
379
|
};
|
|
380
380
|
};
|
|
381
381
|
output: {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
382
|
+
error: {
|
|
383
|
+
code: "INTERNAL_ERROR";
|
|
384
|
+
message: "Internal server error";
|
|
385
|
+
};
|
|
386
386
|
};
|
|
387
387
|
outputFormat: "json";
|
|
388
|
-
status:
|
|
388
|
+
status: 500;
|
|
389
389
|
} | {
|
|
390
390
|
input: {
|
|
391
391
|
form: {
|
|
@@ -429,14 +429,13 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
429
429
|
};
|
|
430
430
|
};
|
|
431
431
|
output: {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
} | undefined;
|
|
432
|
+
url: string;
|
|
433
|
+
filename: string;
|
|
434
|
+
mimeType: string;
|
|
435
|
+
sizeBytes: number;
|
|
437
436
|
};
|
|
438
437
|
outputFormat: "json";
|
|
439
|
-
status:
|
|
438
|
+
status: 200;
|
|
440
439
|
} | {
|
|
441
440
|
input: {
|
|
442
441
|
form: {
|
|
@@ -453,7 +452,7 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
453
452
|
} | undefined;
|
|
454
453
|
};
|
|
455
454
|
outputFormat: "json";
|
|
456
|
-
status:
|
|
455
|
+
status: 403;
|
|
457
456
|
} | {
|
|
458
457
|
input: {
|
|
459
458
|
form: {
|
|
@@ -470,7 +469,7 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
470
469
|
} | undefined;
|
|
471
470
|
};
|
|
472
471
|
outputFormat: "json";
|
|
473
|
-
status:
|
|
472
|
+
status: 413;
|
|
474
473
|
} | {
|
|
475
474
|
input: {
|
|
476
475
|
form: {
|
|
@@ -487,7 +486,7 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
487
486
|
} | undefined;
|
|
488
487
|
};
|
|
489
488
|
outputFormat: "json";
|
|
490
|
-
status:
|
|
489
|
+
status: 415;
|
|
491
490
|
} | {
|
|
492
491
|
input: {
|
|
493
492
|
form: {
|
|
@@ -497,13 +496,14 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
497
496
|
};
|
|
498
497
|
};
|
|
499
498
|
output: {
|
|
500
|
-
error:
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
499
|
+
error: "rate_limited" | "too_large" | "disallowed_type" | "no_permission";
|
|
500
|
+
message: string;
|
|
501
|
+
details?: {
|
|
502
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
503
|
+
} | undefined;
|
|
504
504
|
};
|
|
505
505
|
outputFormat: "json";
|
|
506
|
-
status:
|
|
506
|
+
status: 429;
|
|
507
507
|
};
|
|
508
508
|
};
|
|
509
509
|
} & {
|
|
@@ -515,30 +515,13 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
515
515
|
};
|
|
516
516
|
};
|
|
517
517
|
output: {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
_id: string;
|
|
522
|
-
username: string;
|
|
523
|
-
name: string;
|
|
524
|
-
email: string;
|
|
525
|
-
createdAt: string;
|
|
526
|
-
id?: string | undefined;
|
|
527
|
-
image?: string | null | undefined;
|
|
528
|
-
introduction?: string | undefined;
|
|
529
|
-
admin?: boolean | undefined;
|
|
530
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
518
|
+
error: {
|
|
519
|
+
code: "INTERNAL_ERROR";
|
|
520
|
+
message: "Internal server error";
|
|
531
521
|
};
|
|
532
|
-
page: string;
|
|
533
|
-
url: string;
|
|
534
|
-
filePath: string;
|
|
535
|
-
fileName: string;
|
|
536
|
-
originalName: string;
|
|
537
|
-
fileFormat: string;
|
|
538
|
-
fileSize: number;
|
|
539
522
|
};
|
|
540
523
|
outputFormat: "json";
|
|
541
|
-
status:
|
|
524
|
+
status: 500;
|
|
542
525
|
} | {
|
|
543
526
|
input: {
|
|
544
527
|
param: {
|
|
@@ -547,12 +530,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
547
530
|
};
|
|
548
531
|
output: {
|
|
549
532
|
error: {
|
|
550
|
-
code: "
|
|
533
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
551
534
|
message: string;
|
|
552
535
|
};
|
|
553
536
|
};
|
|
554
537
|
outputFormat: "json";
|
|
555
|
-
status:
|
|
538
|
+
status: 404;
|
|
556
539
|
} | {
|
|
557
540
|
input: {
|
|
558
541
|
param: {
|
|
@@ -561,13 +544,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
561
544
|
};
|
|
562
545
|
output: {
|
|
563
546
|
error: {
|
|
564
|
-
code: "
|
|
565
|
-
message:
|
|
566
|
-
redirectTo?: string | undefined;
|
|
547
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
548
|
+
message: string;
|
|
567
549
|
};
|
|
568
550
|
};
|
|
569
551
|
outputFormat: "json";
|
|
570
|
-
status:
|
|
552
|
+
status: 400;
|
|
571
553
|
} | {
|
|
572
554
|
input: {
|
|
573
555
|
param: {
|
|
@@ -576,12 +558,13 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
576
558
|
};
|
|
577
559
|
output: {
|
|
578
560
|
error: {
|
|
579
|
-
code: "
|
|
580
|
-
message:
|
|
561
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
562
|
+
message: "Authentication is required";
|
|
563
|
+
redirectTo?: string | undefined;
|
|
581
564
|
};
|
|
582
565
|
};
|
|
583
566
|
outputFormat: "json";
|
|
584
|
-
status:
|
|
567
|
+
status: 401;
|
|
585
568
|
} | {
|
|
586
569
|
input: {
|
|
587
570
|
param: {
|
|
@@ -589,13 +572,30 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
589
572
|
};
|
|
590
573
|
};
|
|
591
574
|
output: {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
575
|
+
createdAt: string;
|
|
576
|
+
_id: string;
|
|
577
|
+
creator: {
|
|
578
|
+
_id: string;
|
|
579
|
+
username: string;
|
|
580
|
+
name: string;
|
|
581
|
+
email: string;
|
|
582
|
+
createdAt: string;
|
|
583
|
+
id?: string | undefined;
|
|
584
|
+
image?: string | null | undefined;
|
|
585
|
+
introduction?: string | undefined;
|
|
586
|
+
admin?: boolean | undefined;
|
|
587
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
595
588
|
};
|
|
589
|
+
page: string;
|
|
590
|
+
url: string;
|
|
591
|
+
filePath: string;
|
|
592
|
+
fileName: string;
|
|
593
|
+
originalName: string;
|
|
594
|
+
fileFormat: string;
|
|
595
|
+
fileSize: number;
|
|
596
596
|
};
|
|
597
597
|
outputFormat: "json";
|
|
598
|
-
status:
|
|
598
|
+
status: 200;
|
|
599
599
|
};
|
|
600
600
|
};
|
|
601
601
|
} & {
|
|
@@ -607,10 +607,13 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
607
607
|
};
|
|
608
608
|
};
|
|
609
609
|
output: {
|
|
610
|
-
|
|
610
|
+
error: {
|
|
611
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
612
|
+
message: string;
|
|
613
|
+
};
|
|
611
614
|
};
|
|
612
615
|
outputFormat: "json";
|
|
613
|
-
status:
|
|
616
|
+
status: 500;
|
|
614
617
|
} | {
|
|
615
618
|
input: {
|
|
616
619
|
param: {
|
|
@@ -619,12 +622,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
619
622
|
};
|
|
620
623
|
output: {
|
|
621
624
|
error: {
|
|
622
|
-
code: "
|
|
625
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
623
626
|
message: string;
|
|
624
627
|
};
|
|
625
628
|
};
|
|
626
629
|
outputFormat: "json";
|
|
627
|
-
status:
|
|
630
|
+
status: 404;
|
|
628
631
|
} | {
|
|
629
632
|
input: {
|
|
630
633
|
param: {
|
|
@@ -633,13 +636,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
633
636
|
};
|
|
634
637
|
output: {
|
|
635
638
|
error: {
|
|
636
|
-
code: "
|
|
637
|
-
message:
|
|
638
|
-
redirectTo?: string | undefined;
|
|
639
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
640
|
+
message: string;
|
|
639
641
|
};
|
|
640
642
|
};
|
|
641
643
|
outputFormat: "json";
|
|
642
|
-
status:
|
|
644
|
+
status: 400;
|
|
643
645
|
} | {
|
|
644
646
|
input: {
|
|
645
647
|
param: {
|
|
@@ -648,12 +650,13 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
648
650
|
};
|
|
649
651
|
output: {
|
|
650
652
|
error: {
|
|
651
|
-
code: "
|
|
652
|
-
message:
|
|
653
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
654
|
+
message: "Authentication is required";
|
|
655
|
+
redirectTo?: string | undefined;
|
|
653
656
|
};
|
|
654
657
|
};
|
|
655
658
|
outputFormat: "json";
|
|
656
|
-
status:
|
|
659
|
+
status: 401;
|
|
657
660
|
} | {
|
|
658
661
|
input: {
|
|
659
662
|
param: {
|
|
@@ -661,13 +664,10 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
661
664
|
};
|
|
662
665
|
};
|
|
663
666
|
output: {
|
|
664
|
-
|
|
665
|
-
code: "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
666
|
-
message: string;
|
|
667
|
-
};
|
|
667
|
+
success: true;
|
|
668
668
|
};
|
|
669
669
|
outputFormat: "json";
|
|
670
|
-
status:
|
|
670
|
+
status: 200;
|
|
671
671
|
} | {
|
|
672
672
|
input: {
|
|
673
673
|
param: {
|
|
@@ -676,12 +676,12 @@ export declare const registerAttachmentRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
676
676
|
};
|
|
677
677
|
output: {
|
|
678
678
|
error: {
|
|
679
|
-
code: "
|
|
679
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
|
|
680
680
|
message: string;
|
|
681
681
|
};
|
|
682
682
|
};
|
|
683
683
|
outputFormat: "json";
|
|
684
|
-
status:
|
|
684
|
+
status: 403;
|
|
685
685
|
};
|
|
686
686
|
};
|
|
687
687
|
}, "/">;
|