@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
|
@@ -13,31 +13,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
output: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
name: string;
|
|
20
|
-
email: string;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
id?: string | undefined;
|
|
23
|
-
image?: string | null | undefined;
|
|
24
|
-
introduction?: string | undefined;
|
|
25
|
-
admin?: boolean | undefined;
|
|
26
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
27
|
-
}[];
|
|
28
|
-
pager: {
|
|
29
|
-
page: number;
|
|
30
|
-
pagesCount: number;
|
|
31
|
-
pages: number[];
|
|
32
|
-
total: number;
|
|
33
|
-
previous: number | null;
|
|
34
|
-
previousDots: boolean;
|
|
35
|
-
next: number | null;
|
|
36
|
-
nextDots: boolean;
|
|
16
|
+
error: {
|
|
17
|
+
code: "INTERNAL_ERROR";
|
|
18
|
+
message: "Internal server error";
|
|
37
19
|
};
|
|
38
20
|
};
|
|
39
21
|
outputFormat: "json";
|
|
40
|
-
status:
|
|
22
|
+
status: 500;
|
|
41
23
|
} | {
|
|
42
24
|
input: {
|
|
43
25
|
query: {
|
|
@@ -66,14 +48,31 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
66
48
|
};
|
|
67
49
|
};
|
|
68
50
|
output: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
51
|
+
users: {
|
|
52
|
+
_id: string;
|
|
53
|
+
username: string;
|
|
54
|
+
name: string;
|
|
55
|
+
email: string;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
id?: string | undefined;
|
|
58
|
+
image?: string | null | undefined;
|
|
59
|
+
introduction?: string | undefined;
|
|
60
|
+
admin?: boolean | undefined;
|
|
61
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
62
|
+
}[];
|
|
63
|
+
pager: {
|
|
64
|
+
page: number;
|
|
65
|
+
pagesCount: number;
|
|
66
|
+
pages: number[];
|
|
67
|
+
total: number;
|
|
68
|
+
previous: number | null;
|
|
69
|
+
previousDots: boolean;
|
|
70
|
+
next: number | null;
|
|
71
|
+
nextDots: boolean;
|
|
73
72
|
};
|
|
74
73
|
};
|
|
75
74
|
outputFormat: "json";
|
|
76
|
-
status:
|
|
75
|
+
status: 200;
|
|
77
76
|
} | {
|
|
78
77
|
input: {
|
|
79
78
|
query: {
|
|
@@ -85,12 +84,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
85
84
|
};
|
|
86
85
|
output: {
|
|
87
86
|
error: {
|
|
88
|
-
code: "
|
|
89
|
-
message: "
|
|
87
|
+
code: "ADMIN_REQUIRED";
|
|
88
|
+
message: "Admin permission required";
|
|
89
|
+
redirectTo?: string | undefined;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
outputFormat: "json";
|
|
93
|
-
status:
|
|
93
|
+
status: 403;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
} & {
|
|
@@ -102,21 +102,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
104
|
output: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
email: string;
|
|
110
|
-
createdAt: string;
|
|
111
|
-
id?: string | undefined;
|
|
112
|
-
image?: string | null | undefined;
|
|
113
|
-
introduction?: string | undefined;
|
|
114
|
-
admin?: boolean | undefined;
|
|
115
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
116
|
-
}[];
|
|
105
|
+
error: {
|
|
106
|
+
code: "INTERNAL_ERROR";
|
|
107
|
+
message: "Internal server error";
|
|
108
|
+
};
|
|
117
109
|
};
|
|
118
110
|
outputFormat: "json";
|
|
119
|
-
status:
|
|
111
|
+
status: 500;
|
|
120
112
|
} | {
|
|
121
113
|
input: {
|
|
122
114
|
query: {
|
|
@@ -139,14 +131,21 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
139
131
|
};
|
|
140
132
|
};
|
|
141
133
|
output: {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
134
|
+
users: {
|
|
135
|
+
_id: string;
|
|
136
|
+
username: string;
|
|
137
|
+
name: string;
|
|
138
|
+
email: string;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
id?: string | undefined;
|
|
141
|
+
image?: string | null | undefined;
|
|
142
|
+
introduction?: string | undefined;
|
|
143
|
+
admin?: boolean | undefined;
|
|
144
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
145
|
+
}[];
|
|
147
146
|
};
|
|
148
147
|
outputFormat: "json";
|
|
149
|
-
status:
|
|
148
|
+
status: 200;
|
|
150
149
|
} | {
|
|
151
150
|
input: {
|
|
152
151
|
query: {
|
|
@@ -155,12 +154,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
155
154
|
};
|
|
156
155
|
output: {
|
|
157
156
|
error: {
|
|
158
|
-
code: "
|
|
159
|
-
message: "
|
|
157
|
+
code: "ADMIN_REQUIRED";
|
|
158
|
+
message: "Admin permission required";
|
|
159
|
+
redirectTo?: string | undefined;
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
outputFormat: "json";
|
|
163
|
-
status:
|
|
163
|
+
status: 403;
|
|
164
164
|
};
|
|
165
165
|
};
|
|
166
166
|
} & {
|
|
@@ -173,20 +173,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
175
|
output: {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
} | {
|
|
181
|
-
email: string;
|
|
182
|
-
status: "exists";
|
|
183
|
-
} | {
|
|
184
|
-
email: string;
|
|
185
|
-
status: "failed";
|
|
186
|
-
})[];
|
|
176
|
+
error: {
|
|
177
|
+
code: "INTERNAL_ERROR";
|
|
178
|
+
message: "Internal server error";
|
|
179
|
+
};
|
|
187
180
|
};
|
|
188
181
|
outputFormat: "json";
|
|
189
|
-
status:
|
|
182
|
+
status: 500;
|
|
190
183
|
} | {
|
|
191
184
|
input: {
|
|
192
185
|
json: {
|
|
@@ -232,14 +225,20 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
232
225
|
};
|
|
233
226
|
};
|
|
234
227
|
output: {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
228
|
+
results: ({
|
|
229
|
+
email: string;
|
|
230
|
+
status: "created";
|
|
231
|
+
userId: string;
|
|
232
|
+
} | {
|
|
233
|
+
email: string;
|
|
234
|
+
status: "exists";
|
|
235
|
+
} | {
|
|
236
|
+
email: string;
|
|
237
|
+
status: "failed";
|
|
238
|
+
})[];
|
|
240
239
|
};
|
|
241
240
|
outputFormat: "json";
|
|
242
|
-
status:
|
|
241
|
+
status: 200;
|
|
243
242
|
} | {
|
|
244
243
|
input: {
|
|
245
244
|
json: {
|
|
@@ -249,12 +248,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
249
248
|
};
|
|
250
249
|
output: {
|
|
251
250
|
error: {
|
|
252
|
-
code: "
|
|
253
|
-
message: "
|
|
251
|
+
code: "ADMIN_REQUIRED";
|
|
252
|
+
message: "Admin permission required";
|
|
253
|
+
redirectTo?: string | undefined;
|
|
254
254
|
};
|
|
255
255
|
};
|
|
256
256
|
outputFormat: "json";
|
|
257
|
-
status:
|
|
257
|
+
status: 403;
|
|
258
258
|
};
|
|
259
259
|
};
|
|
260
260
|
} & {
|
|
@@ -271,21 +271,32 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
273
|
output: {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
error: {
|
|
275
|
+
code: "INTERNAL_ERROR";
|
|
276
|
+
message: "Internal server error";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
outputFormat: "json";
|
|
280
|
+
status: 500;
|
|
281
|
+
} | {
|
|
282
|
+
input: {
|
|
283
|
+
param: {
|
|
284
|
+
id: string;
|
|
285
|
+
};
|
|
286
|
+
} & {
|
|
287
|
+
json: {
|
|
277
288
|
name: string;
|
|
278
289
|
email: string;
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
output: {
|
|
293
|
+
error: {
|
|
294
|
+
code: "NOT_FOUND";
|
|
295
|
+
message: string;
|
|
285
296
|
};
|
|
286
297
|
};
|
|
287
298
|
outputFormat: "json";
|
|
288
|
-
status:
|
|
299
|
+
status: 404;
|
|
289
300
|
} | {
|
|
290
301
|
input: {
|
|
291
302
|
param: {
|
|
@@ -343,14 +354,21 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
343
354
|
};
|
|
344
355
|
};
|
|
345
356
|
output: {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
357
|
+
user: {
|
|
358
|
+
_id: string;
|
|
359
|
+
username: string;
|
|
360
|
+
name: string;
|
|
361
|
+
email: string;
|
|
362
|
+
createdAt: string;
|
|
363
|
+
id?: string | undefined;
|
|
364
|
+
image?: string | null | undefined;
|
|
365
|
+
introduction?: string | undefined;
|
|
366
|
+
admin?: boolean | undefined;
|
|
367
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
350
368
|
};
|
|
351
369
|
};
|
|
352
370
|
outputFormat: "json";
|
|
353
|
-
status:
|
|
371
|
+
status: 200;
|
|
354
372
|
} | {
|
|
355
373
|
input: {
|
|
356
374
|
param: {
|
|
@@ -364,12 +382,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
364
382
|
};
|
|
365
383
|
output: {
|
|
366
384
|
error: {
|
|
367
|
-
code: "
|
|
368
|
-
message:
|
|
385
|
+
code: "ADMIN_REQUIRED";
|
|
386
|
+
message: "Admin permission required";
|
|
387
|
+
redirectTo?: string | undefined;
|
|
369
388
|
};
|
|
370
389
|
};
|
|
371
390
|
outputFormat: "json";
|
|
372
|
-
status:
|
|
391
|
+
status: 403;
|
|
373
392
|
} | {
|
|
374
393
|
input: {
|
|
375
394
|
param: {
|
|
@@ -389,16 +408,15 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
389
408
|
};
|
|
390
409
|
outputFormat: "json";
|
|
391
410
|
status: 409;
|
|
392
|
-
}
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
} & {
|
|
414
|
+
"/admin/users/:id/admin": {
|
|
415
|
+
$put: {
|
|
393
416
|
input: {
|
|
394
417
|
param: {
|
|
395
418
|
id: string;
|
|
396
419
|
};
|
|
397
|
-
} & {
|
|
398
|
-
json: {
|
|
399
|
-
name: string;
|
|
400
|
-
email: string;
|
|
401
|
-
};
|
|
402
420
|
};
|
|
403
421
|
output: {
|
|
404
422
|
error: {
|
|
@@ -408,32 +426,20 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
408
426
|
};
|
|
409
427
|
outputFormat: "json";
|
|
410
428
|
status: 500;
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
|
-
} & {
|
|
414
|
-
"/admin/users/:id/admin": {
|
|
415
|
-
$put: {
|
|
429
|
+
} | {
|
|
416
430
|
input: {
|
|
417
431
|
param: {
|
|
418
432
|
id: string;
|
|
419
433
|
};
|
|
420
434
|
};
|
|
421
435
|
output: {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
name: string;
|
|
426
|
-
email: string;
|
|
427
|
-
createdAt: string;
|
|
428
|
-
id?: string | undefined;
|
|
429
|
-
image?: string | null | undefined;
|
|
430
|
-
introduction?: string | undefined;
|
|
431
|
-
admin?: boolean | undefined;
|
|
432
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
436
|
+
error: {
|
|
437
|
+
code: "NOT_FOUND";
|
|
438
|
+
message: string;
|
|
433
439
|
};
|
|
434
440
|
};
|
|
435
441
|
outputFormat: "json";
|
|
436
|
-
status:
|
|
442
|
+
status: 404;
|
|
437
443
|
} | {
|
|
438
444
|
input: {
|
|
439
445
|
param: {
|
|
@@ -476,14 +482,21 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
476
482
|
};
|
|
477
483
|
};
|
|
478
484
|
output: {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
485
|
+
user: {
|
|
486
|
+
_id: string;
|
|
487
|
+
username: string;
|
|
488
|
+
name: string;
|
|
489
|
+
email: string;
|
|
490
|
+
createdAt: string;
|
|
491
|
+
id?: string | undefined;
|
|
492
|
+
image?: string | null | undefined;
|
|
493
|
+
introduction?: string | undefined;
|
|
494
|
+
admin?: boolean | undefined;
|
|
495
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
483
496
|
};
|
|
484
497
|
};
|
|
485
498
|
outputFormat: "json";
|
|
486
|
-
status:
|
|
499
|
+
status: 200;
|
|
487
500
|
} | {
|
|
488
501
|
input: {
|
|
489
502
|
param: {
|
|
@@ -492,13 +505,18 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
492
505
|
};
|
|
493
506
|
output: {
|
|
494
507
|
error: {
|
|
495
|
-
code: "
|
|
496
|
-
message:
|
|
508
|
+
code: "ADMIN_REQUIRED";
|
|
509
|
+
message: "Admin permission required";
|
|
510
|
+
redirectTo?: string | undefined;
|
|
497
511
|
};
|
|
498
512
|
};
|
|
499
513
|
outputFormat: "json";
|
|
500
|
-
status:
|
|
501
|
-
}
|
|
514
|
+
status: 403;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
} & {
|
|
518
|
+
"/admin/users/:id/admin": {
|
|
519
|
+
$delete: {
|
|
502
520
|
input: {
|
|
503
521
|
param: {
|
|
504
522
|
id: string;
|
|
@@ -512,32 +530,20 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
512
530
|
};
|
|
513
531
|
outputFormat: "json";
|
|
514
532
|
status: 500;
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
} & {
|
|
518
|
-
"/admin/users/:id/admin": {
|
|
519
|
-
$delete: {
|
|
533
|
+
} | {
|
|
520
534
|
input: {
|
|
521
535
|
param: {
|
|
522
536
|
id: string;
|
|
523
537
|
};
|
|
524
538
|
};
|
|
525
539
|
output: {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
name: string;
|
|
530
|
-
email: string;
|
|
531
|
-
createdAt: string;
|
|
532
|
-
id?: string | undefined;
|
|
533
|
-
image?: string | null | undefined;
|
|
534
|
-
introduction?: string | undefined;
|
|
535
|
-
admin?: boolean | undefined;
|
|
536
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
540
|
+
error: {
|
|
541
|
+
code: "NOT_FOUND";
|
|
542
|
+
message: string;
|
|
537
543
|
};
|
|
538
544
|
};
|
|
539
545
|
outputFormat: "json";
|
|
540
|
-
status:
|
|
546
|
+
status: 404;
|
|
541
547
|
} | {
|
|
542
548
|
input: {
|
|
543
549
|
param: {
|
|
@@ -573,6 +579,28 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
573
579
|
};
|
|
574
580
|
outputFormat: "json";
|
|
575
581
|
status: 401;
|
|
582
|
+
} | {
|
|
583
|
+
input: {
|
|
584
|
+
param: {
|
|
585
|
+
id: string;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
output: {
|
|
589
|
+
user: {
|
|
590
|
+
_id: string;
|
|
591
|
+
username: string;
|
|
592
|
+
name: string;
|
|
593
|
+
email: string;
|
|
594
|
+
createdAt: string;
|
|
595
|
+
id?: string | undefined;
|
|
596
|
+
image?: string | null | undefined;
|
|
597
|
+
introduction?: string | undefined;
|
|
598
|
+
admin?: boolean | undefined;
|
|
599
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
outputFormat: "json";
|
|
603
|
+
status: 200;
|
|
576
604
|
} | {
|
|
577
605
|
input: {
|
|
578
606
|
param: {
|
|
@@ -588,6 +616,24 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
588
616
|
};
|
|
589
617
|
outputFormat: "json";
|
|
590
618
|
status: 403;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
} & {
|
|
622
|
+
"/admin/users/:id/status/active": {
|
|
623
|
+
$put: {
|
|
624
|
+
input: {
|
|
625
|
+
param: {
|
|
626
|
+
id: string;
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
output: {
|
|
630
|
+
error: {
|
|
631
|
+
code: "INTERNAL_ERROR";
|
|
632
|
+
message: "Internal server error";
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
outputFormat: "json";
|
|
636
|
+
status: 500;
|
|
591
637
|
} | {
|
|
592
638
|
input: {
|
|
593
639
|
param: {
|
|
@@ -610,17 +656,34 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
610
656
|
};
|
|
611
657
|
output: {
|
|
612
658
|
error: {
|
|
613
|
-
code: "
|
|
614
|
-
message:
|
|
659
|
+
code: "VALIDATION_ERROR";
|
|
660
|
+
message: string;
|
|
661
|
+
details?: {
|
|
662
|
+
fieldErrors: {
|
|
663
|
+
[x: string]: string[];
|
|
664
|
+
};
|
|
665
|
+
formErrors: string[];
|
|
666
|
+
} | undefined;
|
|
615
667
|
};
|
|
616
668
|
};
|
|
617
669
|
outputFormat: "json";
|
|
618
|
-
status:
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
670
|
+
status: 400;
|
|
671
|
+
} | {
|
|
672
|
+
input: {
|
|
673
|
+
param: {
|
|
674
|
+
id: string;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
output: {
|
|
678
|
+
error: {
|
|
679
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
680
|
+
message: "Authentication is required";
|
|
681
|
+
redirectTo?: string | undefined;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
outputFormat: "json";
|
|
685
|
+
status: 401;
|
|
686
|
+
} | {
|
|
624
687
|
input: {
|
|
625
688
|
param: {
|
|
626
689
|
id: string;
|
|
@@ -642,6 +705,53 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
642
705
|
};
|
|
643
706
|
outputFormat: "json";
|
|
644
707
|
status: 200;
|
|
708
|
+
} | {
|
|
709
|
+
input: {
|
|
710
|
+
param: {
|
|
711
|
+
id: string;
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
output: {
|
|
715
|
+
error: {
|
|
716
|
+
code: "ADMIN_REQUIRED";
|
|
717
|
+
message: "Admin permission required";
|
|
718
|
+
redirectTo?: string | undefined;
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
outputFormat: "json";
|
|
722
|
+
status: 403;
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
} & {
|
|
726
|
+
"/admin/users/:id/status/suspended": {
|
|
727
|
+
$put: {
|
|
728
|
+
input: {
|
|
729
|
+
param: {
|
|
730
|
+
id: string;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
output: {
|
|
734
|
+
error: {
|
|
735
|
+
code: "INTERNAL_ERROR";
|
|
736
|
+
message: "Internal server error";
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
outputFormat: "json";
|
|
740
|
+
status: 500;
|
|
741
|
+
} | {
|
|
742
|
+
input: {
|
|
743
|
+
param: {
|
|
744
|
+
id: string;
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
output: {
|
|
748
|
+
error: {
|
|
749
|
+
code: "NOT_FOUND";
|
|
750
|
+
message: string;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
outputFormat: "json";
|
|
754
|
+
status: 404;
|
|
645
755
|
} | {
|
|
646
756
|
input: {
|
|
647
757
|
param: {
|
|
@@ -684,14 +794,21 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
684
794
|
};
|
|
685
795
|
};
|
|
686
796
|
output: {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
797
|
+
user: {
|
|
798
|
+
_id: string;
|
|
799
|
+
username: string;
|
|
800
|
+
name: string;
|
|
801
|
+
email: string;
|
|
802
|
+
createdAt: string;
|
|
803
|
+
id?: string | undefined;
|
|
804
|
+
image?: string | null | undefined;
|
|
805
|
+
introduction?: string | undefined;
|
|
806
|
+
admin?: boolean | undefined;
|
|
807
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
691
808
|
};
|
|
692
809
|
};
|
|
693
810
|
outputFormat: "json";
|
|
694
|
-
status:
|
|
811
|
+
status: 200;
|
|
695
812
|
} | {
|
|
696
813
|
input: {
|
|
697
814
|
param: {
|
|
@@ -700,13 +817,18 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
700
817
|
};
|
|
701
818
|
output: {
|
|
702
819
|
error: {
|
|
703
|
-
code: "
|
|
704
|
-
message:
|
|
820
|
+
code: "ADMIN_REQUIRED";
|
|
821
|
+
message: "Admin permission required";
|
|
822
|
+
redirectTo?: string | undefined;
|
|
705
823
|
};
|
|
706
824
|
};
|
|
707
825
|
outputFormat: "json";
|
|
708
|
-
status:
|
|
709
|
-
}
|
|
826
|
+
status: 403;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
} & {
|
|
830
|
+
"/admin/users/:id/reset-password": {
|
|
831
|
+
$post: {
|
|
710
832
|
input: {
|
|
711
833
|
param: {
|
|
712
834
|
id: string;
|
|
@@ -720,32 +842,20 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
720
842
|
};
|
|
721
843
|
outputFormat: "json";
|
|
722
844
|
status: 500;
|
|
723
|
-
}
|
|
724
|
-
};
|
|
725
|
-
} & {
|
|
726
|
-
"/admin/users/:id/status/suspended": {
|
|
727
|
-
$put: {
|
|
845
|
+
} | {
|
|
728
846
|
input: {
|
|
729
847
|
param: {
|
|
730
848
|
id: string;
|
|
731
849
|
};
|
|
732
850
|
};
|
|
733
851
|
output: {
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
name: string;
|
|
738
|
-
email: string;
|
|
739
|
-
createdAt: string;
|
|
740
|
-
id?: string | undefined;
|
|
741
|
-
image?: string | null | undefined;
|
|
742
|
-
introduction?: string | undefined;
|
|
743
|
-
admin?: boolean | undefined;
|
|
744
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
852
|
+
error: {
|
|
853
|
+
code: "NOT_FOUND";
|
|
854
|
+
message: string;
|
|
745
855
|
};
|
|
746
856
|
};
|
|
747
857
|
outputFormat: "json";
|
|
748
|
-
status:
|
|
858
|
+
status: 404;
|
|
749
859
|
} | {
|
|
750
860
|
input: {
|
|
751
861
|
param: {
|
|
@@ -788,14 +898,22 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
788
898
|
};
|
|
789
899
|
};
|
|
790
900
|
output: {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
901
|
+
user: {
|
|
902
|
+
_id: string;
|
|
903
|
+
username: string;
|
|
904
|
+
name: string;
|
|
905
|
+
email: string;
|
|
906
|
+
createdAt: string;
|
|
907
|
+
id?: string | undefined;
|
|
908
|
+
image?: string | null | undefined;
|
|
909
|
+
introduction?: string | undefined;
|
|
910
|
+
admin?: boolean | undefined;
|
|
911
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
795
912
|
};
|
|
913
|
+
newPassword: string;
|
|
796
914
|
};
|
|
797
915
|
outputFormat: "json";
|
|
798
|
-
status:
|
|
916
|
+
status: 200;
|
|
799
917
|
} | {
|
|
800
918
|
input: {
|
|
801
919
|
param: {
|
|
@@ -804,13 +922,18 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
804
922
|
};
|
|
805
923
|
output: {
|
|
806
924
|
error: {
|
|
807
|
-
code: "
|
|
808
|
-
message:
|
|
925
|
+
code: "ADMIN_REQUIRED";
|
|
926
|
+
message: "Admin permission required";
|
|
927
|
+
redirectTo?: string | undefined;
|
|
809
928
|
};
|
|
810
929
|
};
|
|
811
930
|
outputFormat: "json";
|
|
812
|
-
status:
|
|
813
|
-
}
|
|
931
|
+
status: 403;
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/admin/users/:id/resend-invite": {
|
|
936
|
+
$post: {
|
|
814
937
|
input: {
|
|
815
938
|
param: {
|
|
816
939
|
id: string;
|
|
@@ -824,33 +947,20 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
824
947
|
};
|
|
825
948
|
outputFormat: "json";
|
|
826
949
|
status: 500;
|
|
827
|
-
}
|
|
828
|
-
};
|
|
829
|
-
} & {
|
|
830
|
-
"/admin/users/:id/reset-password": {
|
|
831
|
-
$post: {
|
|
950
|
+
} | {
|
|
832
951
|
input: {
|
|
833
952
|
param: {
|
|
834
953
|
id: string;
|
|
835
954
|
};
|
|
836
955
|
};
|
|
837
956
|
output: {
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
name: string;
|
|
842
|
-
email: string;
|
|
843
|
-
createdAt: string;
|
|
844
|
-
id?: string | undefined;
|
|
845
|
-
image?: string | null | undefined;
|
|
846
|
-
introduction?: string | undefined;
|
|
847
|
-
admin?: boolean | undefined;
|
|
848
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
957
|
+
error: {
|
|
958
|
+
code: "NOT_FOUND";
|
|
959
|
+
message: string;
|
|
849
960
|
};
|
|
850
|
-
newPassword: string;
|
|
851
961
|
};
|
|
852
962
|
outputFormat: "json";
|
|
853
|
-
status:
|
|
963
|
+
status: 404;
|
|
854
964
|
} | {
|
|
855
965
|
input: {
|
|
856
966
|
param: {
|
|
@@ -886,6 +996,28 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
886
996
|
};
|
|
887
997
|
outputFormat: "json";
|
|
888
998
|
status: 401;
|
|
999
|
+
} | {
|
|
1000
|
+
input: {
|
|
1001
|
+
param: {
|
|
1002
|
+
id: string;
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
output: {
|
|
1006
|
+
user: {
|
|
1007
|
+
_id: string;
|
|
1008
|
+
username: string;
|
|
1009
|
+
name: string;
|
|
1010
|
+
email: string;
|
|
1011
|
+
createdAt: string;
|
|
1012
|
+
id?: string | undefined;
|
|
1013
|
+
image?: string | null | undefined;
|
|
1014
|
+
introduction?: string | undefined;
|
|
1015
|
+
admin?: boolean | undefined;
|
|
1016
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
outputFormat: "json";
|
|
1020
|
+
status: 200;
|
|
889
1021
|
} | {
|
|
890
1022
|
input: {
|
|
891
1023
|
param: {
|
|
@@ -909,17 +1041,25 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
909
1041
|
};
|
|
910
1042
|
output: {
|
|
911
1043
|
error: {
|
|
912
|
-
code: "
|
|
1044
|
+
code: "CONFLICT";
|
|
913
1045
|
message: string;
|
|
914
1046
|
};
|
|
915
1047
|
};
|
|
916
1048
|
outputFormat: "json";
|
|
917
|
-
status:
|
|
918
|
-
}
|
|
1049
|
+
status: 409;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
} & {
|
|
1053
|
+
"/admin/users/:id/email": {
|
|
1054
|
+
$put: {
|
|
919
1055
|
input: {
|
|
920
1056
|
param: {
|
|
921
1057
|
id: string;
|
|
922
1058
|
};
|
|
1059
|
+
} & {
|
|
1060
|
+
json: {
|
|
1061
|
+
email: string;
|
|
1062
|
+
};
|
|
923
1063
|
};
|
|
924
1064
|
output: {
|
|
925
1065
|
error: {
|
|
@@ -929,11 +1069,7 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
929
1069
|
};
|
|
930
1070
|
outputFormat: "json";
|
|
931
1071
|
status: 500;
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/admin/users/:id/email": {
|
|
936
|
-
$put: {
|
|
1072
|
+
} | {
|
|
937
1073
|
input: {
|
|
938
1074
|
param: {
|
|
939
1075
|
id: string;
|
|
@@ -944,21 +1080,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
944
1080
|
};
|
|
945
1081
|
};
|
|
946
1082
|
output: {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
name: string;
|
|
951
|
-
email: string;
|
|
952
|
-
createdAt: string;
|
|
953
|
-
id?: string | undefined;
|
|
954
|
-
image?: string | null | undefined;
|
|
955
|
-
introduction?: string | undefined;
|
|
956
|
-
admin?: boolean | undefined;
|
|
957
|
-
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
1083
|
+
error: {
|
|
1084
|
+
code: "NOT_FOUND";
|
|
1085
|
+
message: string;
|
|
958
1086
|
};
|
|
959
1087
|
};
|
|
960
1088
|
outputFormat: "json";
|
|
961
|
-
status:
|
|
1089
|
+
status: 404;
|
|
962
1090
|
} | {
|
|
963
1091
|
input: {
|
|
964
1092
|
param: {
|
|
@@ -1013,14 +1141,21 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1013
1141
|
};
|
|
1014
1142
|
};
|
|
1015
1143
|
output: {
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1144
|
+
user: {
|
|
1145
|
+
_id: string;
|
|
1146
|
+
username: string;
|
|
1147
|
+
name: string;
|
|
1148
|
+
email: string;
|
|
1149
|
+
createdAt: string;
|
|
1150
|
+
id?: string | undefined;
|
|
1151
|
+
image?: string | null | undefined;
|
|
1152
|
+
introduction?: string | undefined;
|
|
1153
|
+
admin?: boolean | undefined;
|
|
1154
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
1020
1155
|
};
|
|
1021
1156
|
};
|
|
1022
1157
|
outputFormat: "json";
|
|
1023
|
-
status:
|
|
1158
|
+
status: 200;
|
|
1024
1159
|
} | {
|
|
1025
1160
|
input: {
|
|
1026
1161
|
param: {
|
|
@@ -1033,12 +1168,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1033
1168
|
};
|
|
1034
1169
|
output: {
|
|
1035
1170
|
error: {
|
|
1036
|
-
code: "
|
|
1037
|
-
message:
|
|
1171
|
+
code: "ADMIN_REQUIRED";
|
|
1172
|
+
message: "Admin permission required";
|
|
1173
|
+
redirectTo?: string | undefined;
|
|
1038
1174
|
};
|
|
1039
1175
|
};
|
|
1040
1176
|
outputFormat: "json";
|
|
1041
|
-
status:
|
|
1177
|
+
status: 403;
|
|
1042
1178
|
} | {
|
|
1043
1179
|
input: {
|
|
1044
1180
|
param: {
|
|
@@ -1057,24 +1193,6 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1057
1193
|
};
|
|
1058
1194
|
outputFormat: "json";
|
|
1059
1195
|
status: 409;
|
|
1060
|
-
} | {
|
|
1061
|
-
input: {
|
|
1062
|
-
param: {
|
|
1063
|
-
id: string;
|
|
1064
|
-
};
|
|
1065
|
-
} & {
|
|
1066
|
-
json: {
|
|
1067
|
-
email: string;
|
|
1068
|
-
};
|
|
1069
|
-
};
|
|
1070
|
-
output: {
|
|
1071
|
-
error: {
|
|
1072
|
-
code: "INTERNAL_ERROR";
|
|
1073
|
-
message: "Internal server error";
|
|
1074
|
-
};
|
|
1075
|
-
};
|
|
1076
|
-
outputFormat: "json";
|
|
1077
|
-
status: 500;
|
|
1078
1196
|
};
|
|
1079
1197
|
};
|
|
1080
1198
|
} & {
|
|
@@ -1082,10 +1200,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1082
1200
|
$get: {
|
|
1083
1201
|
input: {};
|
|
1084
1202
|
output: {
|
|
1085
|
-
|
|
1203
|
+
error: {
|
|
1204
|
+
code: "INTERNAL_ERROR";
|
|
1205
|
+
message: "Internal server error";
|
|
1206
|
+
};
|
|
1086
1207
|
};
|
|
1087
1208
|
outputFormat: "json";
|
|
1088
|
-
status:
|
|
1209
|
+
status: 500;
|
|
1089
1210
|
} | {
|
|
1090
1211
|
input: {};
|
|
1091
1212
|
output: {
|
|
@@ -1097,6 +1218,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1097
1218
|
};
|
|
1098
1219
|
outputFormat: "json";
|
|
1099
1220
|
status: 401;
|
|
1221
|
+
} | {
|
|
1222
|
+
input: {};
|
|
1223
|
+
output: {
|
|
1224
|
+
count: number;
|
|
1225
|
+
};
|
|
1226
|
+
outputFormat: "json";
|
|
1227
|
+
status: 200;
|
|
1100
1228
|
} | {
|
|
1101
1229
|
input: {};
|
|
1102
1230
|
output: {
|
|
@@ -1108,8 +1236,16 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1108
1236
|
};
|
|
1109
1237
|
outputFormat: "json";
|
|
1110
1238
|
status: 403;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
} & {
|
|
1242
|
+
"/admin/users/:id": {
|
|
1243
|
+
$delete: {
|
|
1244
|
+
input: {
|
|
1245
|
+
param: {
|
|
1246
|
+
id: string;
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1113
1249
|
output: {
|
|
1114
1250
|
error: {
|
|
1115
1251
|
code: "INTERNAL_ERROR";
|
|
@@ -1118,21 +1254,20 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1118
1254
|
};
|
|
1119
1255
|
outputFormat: "json";
|
|
1120
1256
|
status: 500;
|
|
1121
|
-
}
|
|
1122
|
-
};
|
|
1123
|
-
} & {
|
|
1124
|
-
"/admin/users/:id": {
|
|
1125
|
-
$delete: {
|
|
1257
|
+
} | {
|
|
1126
1258
|
input: {
|
|
1127
1259
|
param: {
|
|
1128
1260
|
id: string;
|
|
1129
1261
|
};
|
|
1130
1262
|
};
|
|
1131
1263
|
output: {
|
|
1132
|
-
|
|
1264
|
+
error: {
|
|
1265
|
+
code: "NOT_FOUND";
|
|
1266
|
+
message: string;
|
|
1267
|
+
};
|
|
1133
1268
|
};
|
|
1134
1269
|
outputFormat: "json";
|
|
1135
|
-
status:
|
|
1270
|
+
status: 404;
|
|
1136
1271
|
} | {
|
|
1137
1272
|
input: {
|
|
1138
1273
|
param: {
|
|
@@ -1175,14 +1310,10 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1175
1310
|
};
|
|
1176
1311
|
};
|
|
1177
1312
|
output: {
|
|
1178
|
-
|
|
1179
|
-
code: "ADMIN_REQUIRED";
|
|
1180
|
-
message: "Admin permission required";
|
|
1181
|
-
redirectTo?: string | undefined;
|
|
1182
|
-
};
|
|
1313
|
+
deletedId: string;
|
|
1183
1314
|
};
|
|
1184
1315
|
outputFormat: "json";
|
|
1185
|
-
status:
|
|
1316
|
+
status: 200;
|
|
1186
1317
|
} | {
|
|
1187
1318
|
input: {
|
|
1188
1319
|
param: {
|
|
@@ -1191,12 +1322,13 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1191
1322
|
};
|
|
1192
1323
|
output: {
|
|
1193
1324
|
error: {
|
|
1194
|
-
code: "
|
|
1195
|
-
message:
|
|
1325
|
+
code: "ADMIN_REQUIRED";
|
|
1326
|
+
message: "Admin permission required";
|
|
1327
|
+
redirectTo?: string | undefined;
|
|
1196
1328
|
};
|
|
1197
1329
|
};
|
|
1198
1330
|
outputFormat: "json";
|
|
1199
|
-
status:
|
|
1331
|
+
status: 403;
|
|
1200
1332
|
} | {
|
|
1201
1333
|
input: {
|
|
1202
1334
|
param: {
|
|
@@ -1211,20 +1343,6 @@ export declare const registerAdminUsersRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
1211
1343
|
};
|
|
1212
1344
|
outputFormat: "json";
|
|
1213
1345
|
status: 409;
|
|
1214
|
-
} | {
|
|
1215
|
-
input: {
|
|
1216
|
-
param: {
|
|
1217
|
-
id: string;
|
|
1218
|
-
};
|
|
1219
|
-
};
|
|
1220
|
-
output: {
|
|
1221
|
-
error: {
|
|
1222
|
-
code: "INTERNAL_ERROR";
|
|
1223
|
-
message: "Internal server error";
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
outputFormat: "json";
|
|
1227
|
-
status: 500;
|
|
1228
1346
|
};
|
|
1229
1347
|
};
|
|
1230
1348
|
}, "/">;
|