@crowi/api 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/app.d.ts +8 -0
- package/dist/app.js +65 -0
- package/dist/app.js.map +1 -0
- package/dist/collab/attach.d.ts +33 -0
- package/dist/collab/attach.js +341 -0
- package/dist/collab/attach.js.map +1 -0
- package/dist/collab/extension-redis.d.ts +25 -0
- package/dist/collab/extension-redis.js +133 -0
- package/dist/collab/extension-redis.js.map +1 -0
- package/dist/common/functions/path2name.d.ts +1 -0
- package/dist/common/functions/path2name.js +22 -0
- package/dist/common/functions/path2name.js.map +1 -0
- package/dist/common/functions/renderIcon.d.ts +1 -0
- package/dist/common/functions/renderIcon.js +9 -0
- package/dist/common/functions/renderIcon.js.map +1 -0
- package/dist/controllers/admin.d.ts +3 -0
- package/dist/controllers/admin.js +474 -0
- package/dist/controllers/admin.js.map +1 -0
- package/dist/controllers/attachment.d.ts +4 -0
- package/dist/controllers/attachment.js +200 -0
- package/dist/controllers/attachment.js.map +1 -0
- package/dist/controllers/backlink.d.ts +3 -0
- package/dist/controllers/backlink.js +42 -0
- package/dist/controllers/backlink.js.map +1 -0
- package/dist/controllers/bookmark.d.ts +3 -0
- package/dist/controllers/bookmark.js +100 -0
- package/dist/controllers/bookmark.js.map +1 -0
- package/dist/controllers/comment.d.ts +3 -0
- package/dist/controllers/comment.js +111 -0
- package/dist/controllers/comment.js.map +1 -0
- package/dist/controllers/index.d.ts +25 -0
- package/dist/controllers/index.js +44 -0
- package/dist/controllers/index.js.map +1 -0
- package/dist/controllers/installer.d.ts +3 -0
- package/dist/controllers/installer.js +48 -0
- package/dist/controllers/installer.js.map +1 -0
- package/dist/controllers/login.d.ts +4 -0
- package/dist/controllers/login.js +438 -0
- package/dist/controllers/login.js.map +1 -0
- package/dist/controllers/logout.d.ts +5 -0
- package/dist/controllers/logout.js +11 -0
- package/dist/controllers/logout.js.map +1 -0
- package/dist/controllers/me.d.ts +4 -0
- package/dist/controllers/me.js +369 -0
- package/dist/controllers/me.js.map +1 -0
- package/dist/controllers/notification.d.ts +3 -0
- package/dist/controllers/notification.js +88 -0
- package/dist/controllers/notification.js.map +1 -0
- package/dist/controllers/page.d.ts +3 -0
- package/dist/controllers/page.js +881 -0
- package/dist/controllers/page.js.map +1 -0
- package/dist/controllers/revision.d.ts +3 -0
- package/dist/controllers/revision.js +91 -0
- package/dist/controllers/revision.js.map +1 -0
- package/dist/controllers/search.d.ts +3 -0
- package/dist/controllers/search.js +93 -0
- package/dist/controllers/search.js.map +1 -0
- package/dist/controllers/share.d.ts +3 -0
- package/dist/controllers/share.js +207 -0
- package/dist/controllers/share.js.map +1 -0
- package/dist/controllers/shareAccess.d.ts +3 -0
- package/dist/controllers/shareAccess.js +28 -0
- package/dist/controllers/shareAccess.js.map +1 -0
- package/dist/controllers/slack.d.ts +3 -0
- package/dist/controllers/slack.js +87 -0
- package/dist/controllers/slack.js.map +1 -0
- package/dist/controllers/tokenAuth.d.ts +10 -0
- package/dist/controllers/tokenAuth.js +292 -0
- package/dist/controllers/tokenAuth.js.map +1 -0
- package/dist/controllers/user.d.ts +3 -0
- package/dist/controllers/user.js +67 -0
- package/dist/controllers/user.js.map +1 -0
- package/dist/controllers/version.d.ts +4 -0
- package/dist/controllers/version.js +19 -0
- package/dist/controllers/version.js.map +1 -0
- package/dist/crowi/express-init.d.ts +4 -0
- package/dist/crowi/express-init.js +101 -0
- package/dist/crowi/express-init.js.map +1 -0
- package/dist/crowi/index.d.ts +245 -0
- package/dist/crowi/index.js +726 -0
- package/dist/crowi/index.js.map +1 -0
- package/dist/events/activity.d.ts +7 -0
- package/dist/events/activity.js +15 -0
- package/dist/events/activity.js.map +1 -0
- package/dist/events/bookmark.d.ts +8 -0
- package/dist/events/bookmark.js +16 -0
- package/dist/events/bookmark.js.map +1 -0
- package/dist/events/comment.d.ts +6 -0
- package/dist/events/comment.js +14 -0
- package/dist/events/comment.js.map +1 -0
- package/dist/events/config.d.ts +6 -0
- package/dist/events/config.js +12 -0
- package/dist/events/config.js.map +1 -0
- package/dist/events/index.d.ts +17 -0
- package/dist/events/index.js +22 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/mention-dispatch.d.ts +44 -0
- package/dist/events/mention-dispatch.js +151 -0
- package/dist/events/mention-dispatch.js.map +1 -0
- package/dist/events/notification.d.ts +7 -0
- package/dist/events/notification.js +15 -0
- package/dist/events/notification.js.map +1 -0
- package/dist/events/page.d.ts +44 -0
- package/dist/events/page.js +134 -0
- package/dist/events/page.js.map +1 -0
- package/dist/events/render-cache.d.ts +24 -0
- package/dist/events/render-cache.js +63 -0
- package/dist/events/render-cache.js.map +1 -0
- package/dist/events/user.d.ts +9 -0
- package/dist/events/user.js +39 -0
- package/dist/events/user.js.map +1 -0
- package/dist/form/admin/app.d.ts +2 -0
- package/dist/form/admin/app.js +9 -0
- package/dist/form/admin/app.js.map +1 -0
- package/dist/form/admin/auth.d.ts +2 -0
- package/dist/form/admin/auth.js +9 -0
- package/dist/form/admin/auth.js.map +1 -0
- package/dist/form/admin/aws.d.ts +2 -0
- package/dist/form/admin/aws.js +13 -0
- package/dist/form/admin/aws.js.map +1 -0
- package/dist/form/admin/github.d.ts +2 -0
- package/dist/form/admin/github.js +15 -0
- package/dist/form/admin/github.js.map +1 -0
- package/dist/form/admin/google.d.ts +2 -0
- package/dist/form/admin/google.js +13 -0
- package/dist/form/admin/google.js.map +1 -0
- package/dist/form/admin/mail.d.ts +2 -0
- package/dist/form/admin/mail.js +13 -0
- package/dist/form/admin/mail.js.map +1 -0
- package/dist/form/admin/sec.d.ts +2 -0
- package/dist/form/admin/sec.js +10 -0
- package/dist/form/admin/sec.js.map +1 -0
- package/dist/form/admin/slackSetting.d.ts +2 -0
- package/dist/form/admin/slackSetting.js +13 -0
- package/dist/form/admin/slackSetting.js.map +1 -0
- package/dist/form/admin/userEdit.d.ts +2 -0
- package/dist/form/admin/userEdit.js +9 -0
- package/dist/form/admin/userEdit.js.map +1 -0
- package/dist/form/admin/userInvite.d.ts +2 -0
- package/dist/form/admin/userInvite.js +9 -0
- package/dist/form/admin/userInvite.js.map +1 -0
- package/dist/form/comment.d.ts +2 -0
- package/dist/form/comment.js +9 -0
- package/dist/form/comment.js.map +1 -0
- package/dist/form/index.d.ts +25 -0
- package/dist/form/index.js +48 -0
- package/dist/form/index.js.map +1 -0
- package/dist/form/invited.d.ts +2 -0
- package/dist/form/invited.js +13 -0
- package/dist/form/invited.js.map +1 -0
- package/dist/form/login.d.ts +2 -0
- package/dist/form/login.js +11 -0
- package/dist/form/login.js.map +1 -0
- package/dist/form/me/apiToken.d.ts +2 -0
- package/dist/form/me/apiToken.js +9 -0
- package/dist/form/me/apiToken.js.map +1 -0
- package/dist/form/me/password.d.ts +2 -0
- package/dist/form/me/password.js +11 -0
- package/dist/form/me/password.js.map +1 -0
- package/dist/form/me/user.d.ts +2 -0
- package/dist/form/me/user.js +9 -0
- package/dist/form/me/user.js.map +1 -0
- package/dist/form/register.d.ts +2 -0
- package/dist/form/register.js +13 -0
- package/dist/form/register.js.map +1 -0
- package/dist/form/revision.d.ts +2 -0
- package/dist/form/revision.js +13 -0
- package/dist/form/revision.js.map +1 -0
- package/dist/hono/app.d.ts +19 -0
- package/dist/hono/app.js +21 -0
- package/dist/hono/app.js.map +1 -0
- package/dist/hono/handlers/_helpers/errors.d.ts +61 -0
- package/dist/hono/handlers/_helpers/errors.js +51 -0
- package/dist/hono/handlers/_helpers/errors.js.map +1 -0
- package/dist/hono/handlers/_helpers/user-shape.d.ts +46 -0
- package/dist/hono/handlers/_helpers/user-shape.js +23 -0
- package/dist/hono/handlers/_helpers/user-shape.js.map +1 -0
- package/dist/hono/handlers/access-token.d.ts +221 -0
- package/dist/hono/handlers/access-token.js +113 -0
- package/dist/hono/handlers/access-token.js.map +1 -0
- package/dist/hono/handlers/activation.d.ts +117 -0
- package/dist/hono/handlers/activation.js +77 -0
- package/dist/hono/handlers/activation.js.map +1 -0
- package/dist/hono/handlers/admin/app.d.ts +123 -0
- package/dist/hono/handlers/admin/app.js +76 -0
- package/dist/hono/handlers/admin/app.js.map +1 -0
- package/dist/hono/handlers/admin/auth.d.ts +127 -0
- package/dist/hono/handlers/admin/auth.js +91 -0
- package/dist/hono/handlers/admin/auth.js.map +1 -0
- package/dist/hono/handlers/admin/mail.d.ts +168 -0
- package/dist/hono/handlers/admin/mail.js +76 -0
- package/dist/hono/handlers/admin/mail.js.map +1 -0
- package/dist/hono/handlers/admin/plugins.d.ts +409 -0
- package/dist/hono/handlers/admin/plugins.js +257 -0
- package/dist/hono/handlers/admin/plugins.js.map +1 -0
- package/dist/hono/handlers/admin/search.d.ts +57 -0
- package/dist/hono/handlers/admin/search.js +55 -0
- package/dist/hono/handlers/admin/search.js.map +1 -0
- package/dist/hono/handlers/admin/security.d.ts +112 -0
- package/dist/hono/handlers/admin/security.js +71 -0
- package/dist/hono/handlers/admin/security.js.map +1 -0
- package/dist/hono/handlers/admin/share.d.ts +106 -0
- package/dist/hono/handlers/admin/share.js +55 -0
- package/dist/hono/handlers/admin/share.js.map +1 -0
- package/dist/hono/handlers/admin/storage.d.ts +55 -0
- package/dist/hono/handlers/admin/storage.js +40 -0
- package/dist/hono/handlers/admin/storage.js.map +1 -0
- package/dist/hono/handlers/admin/users.d.ts +1230 -0
- package/dist/hono/handlers/admin/users.js +316 -0
- package/dist/hono/handlers/admin/users.js.map +1 -0
- package/dist/hono/handlers/adminCrypto.d.ts +110 -0
- package/dist/hono/handlers/adminCrypto.js +151 -0
- package/dist/hono/handlers/adminCrypto.js.map +1 -0
- package/dist/hono/handlers/app.d.ts +26 -0
- package/dist/hono/handlers/app.js +34 -0
- package/dist/hono/handlers/app.js.map +1 -0
- package/dist/hono/handlers/attachment-stream.d.ts +4 -0
- package/dist/hono/handlers/attachment-stream.js +211 -0
- package/dist/hono/handlers/attachment-stream.js.map +1 -0
- package/dist/hono/handlers/attachment.d.ts +687 -0
- package/dist/hono/handlers/attachment.js +566 -0
- package/dist/hono/handlers/attachment.js.map +1 -0
- package/dist/hono/handlers/autocomplete.d.ts +160 -0
- package/dist/hono/handlers/autocomplete.js +181 -0
- package/dist/hono/handlers/autocomplete.js.map +1 -0
- package/dist/hono/handlers/backlink.d.ts +78 -0
- package/dist/hono/handlers/backlink.js +93 -0
- package/dist/hono/handlers/backlink.js.map +1 -0
- package/dist/hono/handlers/bookmark.d.ts +558 -0
- package/dist/hono/handlers/bookmark.js +166 -0
- package/dist/hono/handlers/bookmark.js.map +1 -0
- package/dist/hono/handlers/comment.d.ts +231 -0
- package/dist/hono/handlers/comment.js +191 -0
- package/dist/hono/handlers/comment.js.map +1 -0
- package/dist/hono/handlers/draft.d.ts +136 -0
- package/dist/hono/handlers/draft.js +191 -0
- package/dist/hono/handlers/draft.js.map +1 -0
- package/dist/hono/handlers/emailChange.d.ts +124 -0
- package/dist/hono/handlers/emailChange.js +79 -0
- package/dist/hono/handlers/emailChange.js.map +1 -0
- package/dist/hono/handlers/installer.d.ts +94 -0
- package/dist/hono/handlers/installer.js +93 -0
- package/dist/hono/handlers/installer.js.map +1 -0
- package/dist/hono/handlers/inviteAccept.d.ts +180 -0
- package/dist/hono/handlers/inviteAccept.js +94 -0
- package/dist/hono/handlers/inviteAccept.js.map +1 -0
- package/dist/hono/handlers/me.d.ts +401 -0
- package/dist/hono/handlers/me.js +390 -0
- package/dist/hono/handlers/me.js.map +1 -0
- package/dist/hono/handlers/notification.d.ts +274 -0
- package/dist/hono/handlers/notification.js +224 -0
- package/dist/hono/handlers/notification.js.map +1 -0
- package/dist/hono/handlers/oauth.d.ts +299 -0
- package/dist/hono/handlers/oauth.js +443 -0
- package/dist/hono/handlers/oauth.js.map +1 -0
- package/dist/hono/handlers/page-collab.d.ts +79 -0
- package/dist/hono/handlers/page-collab.js +98 -0
- package/dist/hono/handlers/page-collab.js.map +1 -0
- package/dist/hono/handlers/page-preview.d.ts +48 -0
- package/dist/hono/handlers/page-preview.js +83 -0
- package/dist/hono/handlers/page-preview.js.map +1 -0
- package/dist/hono/handlers/page.d.ts +2059 -0
- package/dist/hono/handlers/page.js +793 -0
- package/dist/hono/handlers/page.js.map +1 -0
- package/dist/hono/handlers/passwordReset.d.ts +181 -0
- package/dist/hono/handlers/passwordReset.js +101 -0
- package/dist/hono/handlers/passwordReset.js.map +1 -0
- package/dist/hono/handlers/presence.d.ts +178 -0
- package/dist/hono/handlers/presence.js +163 -0
- package/dist/hono/handlers/presence.js.map +1 -0
- package/dist/hono/handlers/revision.d.ts +345 -0
- package/dist/hono/handlers/revision.js +202 -0
- package/dist/hono/handlers/revision.js.map +1 -0
- package/dist/hono/handlers/search.d.ts +208 -0
- package/dist/hono/handlers/search.js +152 -0
- package/dist/hono/handlers/search.js.map +1 -0
- package/dist/hono/handlers/tokenAuth.d.ts +369 -0
- package/dist/hono/handlers/tokenAuth.js +240 -0
- package/dist/hono/handlers/tokenAuth.js.map +1 -0
- package/dist/hono/handlers/user.d.ts +710 -0
- package/dist/hono/handlers/user.js +212 -0
- package/dist/hono/handlers/user.js.map +1 -0
- package/dist/hono/index.d.ts +289 -0
- package/dist/hono/index.js +240 -0
- package/dist/hono/index.js.map +1 -0
- package/dist/hono/middleware/admin.d.ts +5 -0
- package/dist/hono/middleware/admin.js +34 -0
- package/dist/hono/middleware/admin.js.map +1 -0
- package/dist/hono/middleware/auth.d.ts +54 -0
- package/dist/hono/middleware/auth.js +142 -0
- package/dist/hono/middleware/auth.js.map +1 -0
- package/dist/hono/middleware/cors.d.ts +3 -0
- package/dist/hono/middleware/cors.js +86 -0
- package/dist/hono/middleware/cors.js.map +1 -0
- package/dist/hono/middleware/default-hook.d.ts +8 -0
- package/dist/hono/middleware/default-hook.js +17 -0
- package/dist/hono/middleware/default-hook.js.map +1 -0
- package/dist/hono/middleware/error-handler.d.ts +2 -0
- package/dist/hono/middleware/error-handler.js +20 -0
- package/dist/hono/middleware/error-handler.js.map +1 -0
- package/dist/hono/middleware/rate-limit.d.ts +57 -0
- package/dist/hono/middleware/rate-limit.js +42 -0
- package/dist/hono/middleware/rate-limit.js.map +1 -0
- package/dist/hono/middleware/require-scope.d.ts +50 -0
- package/dist/hono/middleware/require-scope.js +64 -0
- package/dist/hono/middleware/require-scope.js.map +1 -0
- package/dist/hono/path-rewrite.d.ts +15 -0
- package/dist/hono/path-rewrite.js +59 -0
- package/dist/hono/path-rewrite.js.map +1 -0
- package/dist/mail/i18n/en.d.ts +2 -0
- package/dist/mail/i18n/en.js +66 -0
- package/dist/mail/i18n/en.js.map +1 -0
- package/dist/mail/i18n/index.d.ts +46 -0
- package/dist/mail/i18n/index.js +31 -0
- package/dist/mail/i18n/index.js.map +1 -0
- package/dist/mail/i18n/ja.d.ts +2 -0
- package/dist/mail/i18n/ja.js +66 -0
- package/dist/mail/i18n/ja.js.map +1 -0
- package/dist/mcp/attach.d.ts +25 -0
- package/dist/mcp/attach.js +104 -0
- package/dist/mcp/attach.js.map +1 -0
- package/dist/mcp/dispatch.d.ts +59 -0
- package/dist/mcp/dispatch.js +70 -0
- package/dist/mcp/dispatch.js.map +1 -0
- package/dist/mcp/result.d.ts +40 -0
- package/dist/mcp/result.js +78 -0
- package/dist/mcp/result.js.map +1 -0
- package/dist/mcp/server.d.ts +67 -0
- package/dist/mcp/server.js +113 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tools/page.d.ts +2 -0
- package/dist/mcp/tools/page.js +256 -0
- package/dist/mcp/tools/page.js.map +1 -0
- package/dist/mcp/tools/search.d.ts +2 -0
- package/dist/mcp/tools/search.js +36 -0
- package/dist/mcp/tools/search.js.map +1 -0
- package/dist/middlewares/accessTokenParser.d.ts +4 -0
- package/dist/middlewares/accessTokenParser.js +29 -0
- package/dist/middlewares/accessTokenParser.js.map +1 -0
- package/dist/middlewares/adminRequired.d.ts +10 -0
- package/dist/middlewares/adminRequired.js +35 -0
- package/dist/middlewares/adminRequired.js.map +1 -0
- package/dist/middlewares/applicationInstalled.d.ts +3 -0
- package/dist/middlewares/applicationInstalled.js +20 -0
- package/dist/middlewares/applicationInstalled.js.map +1 -0
- package/dist/middlewares/applicationNotInstalled.d.ts +3 -0
- package/dist/middlewares/applicationNotInstalled.js +13 -0
- package/dist/middlewares/applicationNotInstalled.js.map +1 -0
- package/dist/middlewares/basicAuth.d.ts +4 -0
- package/dist/middlewares/basicAuth.js +23 -0
- package/dist/middlewares/basicAuth.js.map +1 -0
- package/dist/middlewares/csrfVerify.d.ts +4 -0
- package/dist/middlewares/csrfVerify.js +24 -0
- package/dist/middlewares/csrfVerify.js.map +1 -0
- package/dist/middlewares/encodeSpace.d.ts +3 -0
- package/dist/middlewares/encodeSpace.js +14 -0
- package/dist/middlewares/encodeSpace.js.map +1 -0
- package/dist/middlewares/fileAccessRightOrLoginRequired.d.ts +4 -0
- package/dist/middlewares/fileAccessRightOrLoginRequired.js +29 -0
- package/dist/middlewares/fileAccessRightOrLoginRequired.js.map +1 -0
- package/dist/middlewares/index.d.ts +16 -0
- package/dist/middlewares/index.js +30 -0
- package/dist/middlewares/index.js.map +1 -0
- package/dist/middlewares/jwtAdminRequired.d.ts +8 -0
- package/dist/middlewares/jwtAdminRequired.js +35 -0
- package/dist/middlewares/jwtAdminRequired.js.map +1 -0
- package/dist/middlewares/jwtAuth.d.ts +4 -0
- package/dist/middlewares/jwtAuth.js +104 -0
- package/dist/middlewares/jwtAuth.js.map +1 -0
- package/dist/middlewares/loginChecker.d.ts +4 -0
- package/dist/middlewares/loginChecker.js +32 -0
- package/dist/middlewares/loginChecker.js.map +1 -0
- package/dist/middlewares/loginRequired.d.ts +4 -0
- package/dist/middlewares/loginRequired.js +88 -0
- package/dist/middlewares/loginRequired.js.map +1 -0
- package/dist/migration/cli-api.d.ts +83 -0
- package/dist/migration/cli-api.js +128 -0
- package/dist/migration/cli-api.js.map +1 -0
- package/dist/migration/migrations/index.d.ts +12 -0
- package/dist/migration/migrations/index.js +24 -0
- package/dist/migration/migrations/index.js.map +1 -0
- package/dist/migration/migrations/page-status-default.d.ts +25 -0
- package/dist/migration/migrations/page-status-default.js +79 -0
- package/dist/migration/migrations/page-status-default.js.map +1 -0
- package/dist/migration/migrations/revisions-schema-unify.d.ts +33 -0
- package/dist/migration/migrations/revisions-schema-unify.js +88 -0
- package/dist/migration/migrations/revisions-schema-unify.js.map +1 -0
- package/dist/migration/migrations/user-unique-prepare.d.ts +1 -0
- package/dist/migration/migrations/user-unique-prepare.js +214 -0
- package/dist/migration/migrations/user-unique-prepare.js.map +1 -0
- package/dist/migration/migrations/wikilink-format.d.ts +97 -0
- package/dist/migration/migrations/wikilink-format.js +418 -0
- package/dist/migration/migrations/wikilink-format.js.map +1 -0
- package/dist/migration/rebuild-api.d.ts +50 -0
- package/dist/migration/rebuild-api.js +45 -0
- package/dist/migration/rebuild-api.js.map +1 -0
- package/dist/migration/rebuild-runner.d.ts +64 -0
- package/dist/migration/rebuild-runner.js +42 -0
- package/dist/migration/rebuild-runner.js.map +1 -0
- package/dist/migration/rebuilds/index.d.ts +26 -0
- package/dist/migration/rebuilds/index.js +69 -0
- package/dist/migration/rebuilds/index.js.map +1 -0
- package/dist/migration/registry.d.ts +15 -0
- package/dist/migration/registry.js +96 -0
- package/dist/migration/registry.js.map +1 -0
- package/dist/migration/run-boot-migrations.d.ts +31 -0
- package/dist/migration/run-boot-migrations.js +95 -0
- package/dist/migration/run-boot-migrations.js.map +1 -0
- package/dist/migration/runner.d.ts +120 -0
- package/dist/migration/runner.js +276 -0
- package/dist/migration/runner.js.map +1 -0
- package/dist/migration/types.d.ts +153 -0
- package/dist/migration/types.js +13 -0
- package/dist/migration/types.js.map +1 -0
- package/dist/models/activity.d.ts +34 -0
- package/dist/models/activity.js +263 -0
- package/dist/models/activity.js.map +1 -0
- package/dist/models/attachment.d.ts +25 -0
- package/dist/models/attachment.js +82 -0
- package/dist/models/attachment.js.map +1 -0
- package/dist/models/backlink.d.ts +19 -0
- package/dist/models/backlink.js +138 -0
- package/dist/models/backlink.js.map +1 -0
- package/dist/models/bookmark.d.ts +28 -0
- package/dist/models/bookmark.js +136 -0
- package/dist/models/bookmark.js.map +1 -0
- package/dist/models/comment.d.ts +21 -0
- package/dist/models/comment.js +87 -0
- package/dist/models/comment.js.map +1 -0
- package/dist/models/config-sensitive.d.ts +21 -0
- package/dist/models/config-sensitive.js +71 -0
- package/dist/models/config-sensitive.js.map +1 -0
- package/dist/models/config.d.ts +34 -0
- package/dist/models/config.js +161 -0
- package/dist/models/config.js.map +1 -0
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +55 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/migration-application.d.ts +54 -0
- package/dist/models/migration-application.js +36 -0
- package/dist/models/migration-application.js.map +1 -0
- package/dist/models/notification.d.ts +28 -0
- package/dist/models/notification.js +285 -0
- package/dist/models/notification.js.map +1 -0
- package/dist/models/oauth-authorization-code.d.ts +34 -0
- package/dist/models/oauth-authorization-code.js +100 -0
- package/dist/models/oauth-authorization-code.js.map +1 -0
- package/dist/models/oauth-client.d.ts +36 -0
- package/dist/models/oauth-client.js +56 -0
- package/dist/models/oauth-client.js.map +1 -0
- package/dist/models/oauth-device-code.d.ts +55 -0
- package/dist/models/oauth-device-code.js +158 -0
- package/dist/models/oauth-device-code.js.map +1 -0
- package/dist/models/oauth-refresh-token.d.ts +31 -0
- package/dist/models/oauth-refresh-token.js +118 -0
- package/dist/models/oauth-refresh-token.js.map +1 -0
- package/dist/models/page-yjs-update.d.ts +35 -0
- package/dist/models/page-yjs-update.js +33 -0
- package/dist/models/page-yjs-update.js.map +1 -0
- package/dist/models/page.d.ts +200 -0
- package/dist/models/page.js +1117 -0
- package/dist/models/page.js.map +1 -0
- package/dist/models/personal-access-token.d.ts +30 -0
- package/dist/models/personal-access-token.js +107 -0
- package/dist/models/personal-access-token.js.map +1 -0
- package/dist/models/plugin-render-cache.d.ts +40 -0
- package/dist/models/plugin-render-cache.js +39 -0
- package/dist/models/plugin-render-cache.js.map +1 -0
- package/dist/models/revision.d.ts +145 -0
- package/dist/models/revision.js +241 -0
- package/dist/models/revision.js.map +1 -0
- package/dist/models/share.d.ts +38 -0
- package/dist/models/share.js +137 -0
- package/dist/models/share.js.map +1 -0
- package/dist/models/shareAccess.d.ts +20 -0
- package/dist/models/shareAccess.js +45 -0
- package/dist/models/shareAccess.js.map +1 -0
- package/dist/models/tracking.d.ts +14 -0
- package/dist/models/tracking.js +14 -0
- package/dist/models/tracking.js.map +1 -0
- package/dist/models/updatePost.d.ts +25 -0
- package/dist/models/updatePost.js +87 -0
- package/dist/models/updatePost.js.map +1 -0
- package/dist/models/user.d.ts +144 -0
- package/dist/models/user.js +681 -0
- package/dist/models/user.js.map +1 -0
- package/dist/models/watcher.d.ts +23 -0
- package/dist/models/watcher.js +75 -0
- package/dist/models/watcher.js.map +1 -0
- package/dist/notifications/attach.d.ts +63 -0
- package/dist/notifications/attach.js +426 -0
- package/dist/notifications/attach.js.map +1 -0
- package/dist/notifications/channel.d.ts +13 -0
- package/dist/notifications/channel.js +18 -0
- package/dist/notifications/channel.js.map +1 -0
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/index.js +6 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/plugin-context.d.ts +22 -0
- package/dist/plugin/plugin-context.js +126 -0
- package/dist/plugin/plugin-context.js.map +1 -0
- package/dist/plugin/plugin-manager.d.ts +164 -0
- package/dist/plugin/plugin-manager.js +328 -0
- package/dist/plugin/plugin-manager.js.map +1 -0
- package/dist/plugin/plugin-namespace.d.ts +28 -0
- package/dist/plugin/plugin-namespace.js +53 -0
- package/dist/plugin/plugin-namespace.js.map +1 -0
- package/dist/plugin/registries.d.ts +38 -0
- package/dist/plugin/registries.js +71 -0
- package/dist/plugin/registries.js.map +1 -0
- package/dist/plugin/schema-serializer.d.ts +34 -0
- package/dist/plugin/schema-serializer.js +122 -0
- package/dist/plugin/schema-serializer.js.map +1 -0
- package/dist/plugin/topo-sort.d.ts +15 -0
- package/dist/plugin/topo-sort.js +59 -0
- package/dist/plugin/topo-sort.js.map +1 -0
- package/dist/presence/attach.d.ts +36 -0
- package/dist/presence/attach.js +399 -0
- package/dist/presence/attach.js.map +1 -0
- package/dist/renderer/__fixtures__/echo-embed.d.ts +27 -0
- package/dist/renderer/__fixtures__/echo-embed.js +24 -0
- package/dist/renderer/__fixtures__/echo-embed.js.map +1 -0
- package/dist/renderer/cache/index.d.ts +60 -0
- package/dist/renderer/cache/index.js +219 -0
- package/dist/renderer/cache/index.js.map +1 -0
- package/dist/renderer/cache/mongodb-cache.d.ts +82 -0
- package/dist/renderer/cache/mongodb-cache.js +180 -0
- package/dist/renderer/cache/mongodb-cache.js.map +1 -0
- package/dist/renderer/cache/reservation.d.ts +20 -0
- package/dist/renderer/cache/reservation.js +115 -0
- package/dist/renderer/cache/reservation.js.map +1 -0
- package/dist/renderer/core/_mdast-walk.d.ts +35 -0
- package/dist/renderer/core/_mdast-walk.js +45 -0
- package/dist/renderer/core/_mdast-walk.js.map +1 -0
- package/dist/renderer/core/code-block-dispatch.d.ts +31 -0
- package/dist/renderer/core/code-block-dispatch.js +166 -0
- package/dist/renderer/core/code-block-dispatch.js.map +1 -0
- package/dist/renderer/core/code-blocks.d.ts +12 -0
- package/dist/renderer/core/code-blocks.js +32 -0
- package/dist/renderer/core/code-blocks.js.map +1 -0
- package/dist/renderer/core/embed-tags.d.ts +14 -0
- package/dist/renderer/core/embed-tags.js +154 -0
- package/dist/renderer/core/embed-tags.js.map +1 -0
- package/dist/renderer/core/headings.d.ts +16 -0
- package/dist/renderer/core/headings.js +31 -0
- package/dist/renderer/core/headings.js.map +1 -0
- package/dist/renderer/core/index.d.ts +65 -0
- package/dist/renderer/core/index.js +83 -0
- package/dist/renderer/core/index.js.map +1 -0
- package/dist/renderer/core/mention-resolve.d.ts +39 -0
- package/dist/renderer/core/mention-resolve.js +75 -0
- package/dist/renderer/core/mention-resolve.js.map +1 -0
- package/dist/renderer/core/mentions.d.ts +2 -0
- package/dist/renderer/core/mentions.js +83 -0
- package/dist/renderer/core/mentions.js.map +1 -0
- package/dist/renderer/core/syntax-highlight.d.ts +21 -0
- package/dist/renderer/core/syntax-highlight.js +64 -0
- package/dist/renderer/core/syntax-highlight.js.map +1 -0
- package/dist/renderer/core/url-inline-expand.d.ts +9 -0
- package/dist/renderer/core/url-inline-expand.js +157 -0
- package/dist/renderer/core/url-inline-expand.js.map +1 -0
- package/dist/renderer/core/wikilinks.d.ts +2 -0
- package/dist/renderer/core/wikilinks.js +118 -0
- package/dist/renderer/core/wikilinks.js.map +1 -0
- package/dist/renderer/index.d.ts +67 -0
- package/dist/renderer/index.js +99 -0
- package/dist/renderer/index.js.map +1 -0
- package/dist/renderer/pipeline.d.ts +134 -0
- package/dist/renderer/pipeline.js +203 -0
- package/dist/renderer/pipeline.js.map +1 -0
- package/dist/renderer/registry.d.ts +83 -0
- package/dist/renderer/registry.js +130 -0
- package/dist/renderer/registry.js.map +1 -0
- package/dist/renderer/serialize.d.ts +27 -0
- package/dist/renderer/serialize.js +46 -0
- package/dist/renderer/serialize.js.map +1 -0
- package/dist/renderer/version.d.ts +30 -0
- package/dist/renderer/version.js +34 -0
- package/dist/renderer/version.js.map +1 -0
- package/dist/routes/admin.d.ts +4 -0
- package/dist/routes/admin.js +17 -0
- package/dist/routes/admin.js.map +1 -0
- package/dist/routes/api/admin.d.ts +4 -0
- package/dist/routes/api/admin.js +37 -0
- package/dist/routes/api/admin.js.map +1 -0
- package/dist/routes/api/attachment.d.ts +4 -0
- package/dist/routes/api/attachment.js +19 -0
- package/dist/routes/api/attachment.js.map +1 -0
- package/dist/routes/api/bookmark.d.ts +4 -0
- package/dist/routes/api/bookmark.js +15 -0
- package/dist/routes/api/bookmark.js.map +1 -0
- package/dist/routes/api/comment.d.ts +4 -0
- package/dist/routes/api/comment.js +14 -0
- package/dist/routes/api/comment.js.map +1 -0
- package/dist/routes/api/index.d.ts +4 -0
- package/dist/routes/api/index.js +36 -0
- package/dist/routes/api/index.js.map +1 -0
- package/dist/routes/api/like.d.ts +4 -0
- package/dist/routes/api/like.js +13 -0
- package/dist/routes/api/like.js.map +1 -0
- package/dist/routes/api/notification.d.ts +4 -0
- package/dist/routes/api/notification.js +15 -0
- package/dist/routes/api/notification.js.map +1 -0
- package/dist/routes/api/page.d.ts +4 -0
- package/dist/routes/api/page.js +24 -0
- package/dist/routes/api/page.js.map +1 -0
- package/dist/routes/api/revision.d.ts +4 -0
- package/dist/routes/api/revision.js +14 -0
- package/dist/routes/api/revision.js.map +1 -0
- package/dist/routes/api/share.d.ts +4 -0
- package/dist/routes/api/share.js +16 -0
- package/dist/routes/api/share.js.map +1 -0
- package/dist/routes/api/version.d.ts +4 -0
- package/dist/routes/api/version.js +10 -0
- package/dist/routes/api/version.js.map +1 -0
- package/dist/routes/index.d.ts +4 -0
- package/dist/routes/index.js +71 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/login.d.ts +4 -0
- package/dist/routes/login.js +18 -0
- package/dist/routes/login.js.map +1 -0
- package/dist/routes/me.d.ts +4 -0
- package/dist/routes/me.js +24 -0
- package/dist/routes/me.js.map +1 -0
- package/dist/routes/ts-rest/admin/app.d.ts +4 -0
- package/dist/routes/ts-rest/admin/app.js +67 -0
- package/dist/routes/ts-rest/admin/app.js.map +1 -0
- package/dist/routes/ts-rest/admin/auth.d.ts +4 -0
- package/dist/routes/ts-rest/admin/auth.js +95 -0
- package/dist/routes/ts-rest/admin/auth.js.map +1 -0
- package/dist/routes/ts-rest/admin/index.d.ts +10 -0
- package/dist/routes/ts-rest/admin/index.js +35 -0
- package/dist/routes/ts-rest/admin/index.js.map +1 -0
- package/dist/routes/ts-rest/admin/mail.d.ts +4 -0
- package/dist/routes/ts-rest/admin/mail.js +156 -0
- package/dist/routes/ts-rest/admin/mail.js.map +1 -0
- package/dist/routes/ts-rest/admin/plugins.d.ts +4 -0
- package/dist/routes/ts-rest/admin/plugins.js +317 -0
- package/dist/routes/ts-rest/admin/plugins.js.map +1 -0
- package/dist/routes/ts-rest/admin/search.d.ts +4 -0
- package/dist/routes/ts-rest/admin/search.js +67 -0
- package/dist/routes/ts-rest/admin/search.js.map +1 -0
- package/dist/routes/ts-rest/admin/security.d.ts +4 -0
- package/dist/routes/ts-rest/admin/security.js +114 -0
- package/dist/routes/ts-rest/admin/security.js.map +1 -0
- package/dist/routes/ts-rest/admin/share.d.ts +4 -0
- package/dist/routes/ts-rest/admin/share.js +69 -0
- package/dist/routes/ts-rest/admin/share.js.map +1 -0
- package/dist/routes/ts-rest/admin/storage.d.ts +4 -0
- package/dist/routes/ts-rest/admin/storage.js +59 -0
- package/dist/routes/ts-rest/admin/storage.js.map +1 -0
- package/dist/routes/ts-rest/admin/users.d.ts +4 -0
- package/dist/routes/ts-rest/admin/users.js +215 -0
- package/dist/routes/ts-rest/admin/users.js.map +1 -0
- package/dist/routes/ts-rest/adminCrypto.d.ts +4 -0
- package/dist/routes/ts-rest/adminCrypto.js +111 -0
- package/dist/routes/ts-rest/adminCrypto.js.map +1 -0
- package/dist/routes/ts-rest/app.d.ts +4 -0
- package/dist/routes/ts-rest/app.js +23 -0
- package/dist/routes/ts-rest/app.js.map +1 -0
- package/dist/routes/ts-rest/attachment.d.ts +4 -0
- package/dist/routes/ts-rest/attachment.js +830 -0
- package/dist/routes/ts-rest/attachment.js.map +1 -0
- package/dist/routes/ts-rest/auth.d.ts +4 -0
- package/dist/routes/ts-rest/auth.js +70 -0
- package/dist/routes/ts-rest/auth.js.map +1 -0
- package/dist/routes/ts-rest/autocomplete.d.ts +30 -0
- package/dist/routes/ts-rest/autocomplete.js +189 -0
- package/dist/routes/ts-rest/autocomplete.js.map +1 -0
- package/dist/routes/ts-rest/backlink.d.ts +4 -0
- package/dist/routes/ts-rest/backlink.js +106 -0
- package/dist/routes/ts-rest/backlink.js.map +1 -0
- package/dist/routes/ts-rest/bookmark.d.ts +4 -0
- package/dist/routes/ts-rest/bookmark.js +189 -0
- package/dist/routes/ts-rest/bookmark.js.map +1 -0
- package/dist/routes/ts-rest/comment.d.ts +4 -0
- package/dist/routes/ts-rest/comment.js +217 -0
- package/dist/routes/ts-rest/comment.js.map +1 -0
- package/dist/routes/ts-rest/draft.d.ts +22 -0
- package/dist/routes/ts-rest/draft.js +200 -0
- package/dist/routes/ts-rest/draft.js.map +1 -0
- package/dist/routes/ts-rest/index.d.ts +4 -0
- package/dist/routes/ts-rest/index.js +103 -0
- package/dist/routes/ts-rest/index.js.map +1 -0
- package/dist/routes/ts-rest/installer.d.ts +4 -0
- package/dist/routes/ts-rest/installer.js +77 -0
- package/dist/routes/ts-rest/installer.js.map +1 -0
- package/dist/routes/ts-rest/me.d.ts +4 -0
- package/dist/routes/ts-rest/me.js +410 -0
- package/dist/routes/ts-rest/me.js.map +1 -0
- package/dist/routes/ts-rest/notification.d.ts +4 -0
- package/dist/routes/ts-rest/notification.js +241 -0
- package/dist/routes/ts-rest/notification.js.map +1 -0
- package/dist/routes/ts-rest/page-collab.d.ts +29 -0
- package/dist/routes/ts-rest/page-collab.js +90 -0
- package/dist/routes/ts-rest/page-collab.js.map +1 -0
- package/dist/routes/ts-rest/page-preview.d.ts +26 -0
- package/dist/routes/ts-rest/page-preview.js +80 -0
- package/dist/routes/ts-rest/page-preview.js.map +1 -0
- package/dist/routes/ts-rest/page.d.ts +4 -0
- package/dist/routes/ts-rest/page.js +676 -0
- package/dist/routes/ts-rest/page.js.map +1 -0
- package/dist/routes/ts-rest/presence.d.ts +30 -0
- package/dist/routes/ts-rest/presence.js +155 -0
- package/dist/routes/ts-rest/presence.js.map +1 -0
- package/dist/routes/ts-rest/revision.d.ts +4 -0
- package/dist/routes/ts-rest/revision.js +240 -0
- package/dist/routes/ts-rest/revision.js.map +1 -0
- package/dist/routes/ts-rest/search.d.ts +4 -0
- package/dist/routes/ts-rest/search.js +121 -0
- package/dist/routes/ts-rest/search.js.map +1 -0
- package/dist/routes/ts-rest/tokenAuth.d.ts +4 -0
- package/dist/routes/ts-rest/tokenAuth.js +94 -0
- package/dist/routes/ts-rest/tokenAuth.js.map +1 -0
- package/dist/routes/ts-rest/user.d.ts +4 -0
- package/dist/routes/ts-rest/user.js +307 -0
- package/dist/routes/ts-rest/user.js.map +1 -0
- package/dist/service/config.d.ts +50 -0
- package/dist/service/config.js +202 -0
- package/dist/service/config.js.map +1 -0
- package/dist/service/lru.d.ts +11 -0
- package/dist/service/lru.js +47 -0
- package/dist/service/lru.js.map +1 -0
- package/dist/service/mail.d.ts +107 -0
- package/dist/service/mail.js +220 -0
- package/dist/service/mail.js.map +1 -0
- package/dist/service/notification.d.ts +9 -0
- package/dist/service/notification.js +19 -0
- package/dist/service/notification.js.map +1 -0
- package/dist/service/presence.d.ts +219 -0
- package/dist/service/presence.js +602 -0
- package/dist/service/presence.js.map +1 -0
- package/dist/types/error.d.ts +13 -0
- package/dist/types/error.js +13 -0
- package/dist/types/error.js.map +1 -0
- package/dist/types/express.d.ts +34 -0
- package/dist/types/express.js +50 -0
- package/dist/types/express.js.map +1 -0
- package/dist/types/mongoose-extensions.d.ts +8 -0
- package/dist/types/mongoose-extensions.js +24 -0
- package/dist/types/mongoose-extensions.js.map +1 -0
- package/dist/util/accessTokenParser.d.ts +1 -0
- package/dist/util/accessTokenParser.js +34 -0
- package/dist/util/accessTokenParser.js.map +1 -0
- package/dist/util/activityDefine.d.ts +15 -0
- package/dist/util/activityDefine.js +52 -0
- package/dist/util/activityDefine.js.map +1 -0
- package/dist/util/admin-config.d.ts +57 -0
- package/dist/util/admin-config.js +99 -0
- package/dist/util/admin-config.js.map +1 -0
- package/dist/util/admin-pager.d.ts +24 -0
- package/dist/util/admin-pager.js +73 -0
- package/dist/util/admin-pager.js.map +1 -0
- package/dist/util/apiPaginate.d.ts +11 -0
- package/dist/util/apiPaginate.js +33 -0
- package/dist/util/apiPaginate.js.map +1 -0
- package/dist/util/apiResponse.d.ts +9 -0
- package/dist/util/apiResponse.js +23 -0
- package/dist/util/apiResponse.js.map +1 -0
- package/dist/util/auth.d.ts +11 -0
- package/dist/util/auth.js +48 -0
- package/dist/util/auth.js.map +1 -0
- package/dist/util/auto-watch.d.ts +35 -0
- package/dist/util/auto-watch.js +24 -0
- package/dist/util/auto-watch.js.map +1 -0
- package/dist/util/autocomplete-match.d.ts +44 -0
- package/dist/util/autocomplete-match.js +80 -0
- package/dist/util/autocomplete-match.js.map +1 -0
- package/dist/util/aws-config-migration.d.ts +11 -0
- package/dist/util/aws-config-migration.js +68 -0
- package/dist/util/aws-config-migration.js.map +1 -0
- package/dist/util/boot-reporter.d.ts +130 -0
- package/dist/util/boot-reporter.js +242 -0
- package/dist/util/boot-reporter.js.map +1 -0
- package/dist/util/collab-cap.d.ts +39 -0
- package/dist/util/collab-cap.js +90 -0
- package/dist/util/collab-cap.js.map +1 -0
- package/dist/util/crypto.d.ts +39 -0
- package/dist/util/crypto.js +105 -0
- package/dist/util/crypto.js.map +1 -0
- package/dist/util/dedup-users.d.ts +96 -0
- package/dist/util/dedup-users.js +149 -0
- package/dist/util/dedup-users.js.map +1 -0
- package/dist/util/editor-cap-counter.d.ts +90 -0
- package/dist/util/editor-cap-counter.js +175 -0
- package/dist/util/editor-cap-counter.js.map +1 -0
- package/dist/util/fileUploader.d.ts +55 -0
- package/dist/util/fileUploader.js +70 -0
- package/dist/util/fileUploader.js.map +1 -0
- package/dist/util/formUtil.d.ts +2 -0
- package/dist/util/formUtil.js +15 -0
- package/dist/util/formUtil.js.map +1 -0
- package/dist/util/githubAuth.d.ts +2 -0
- package/dist/util/githubAuth.js +82 -0
- package/dist/util/githubAuth.js.map +1 -0
- package/dist/util/googleAuth.d.ts +2 -0
- package/dist/util/googleAuth.js +85 -0
- package/dist/util/googleAuth.js.map +1 -0
- package/dist/util/jwt.d.ts +50 -0
- package/dist/util/jwt.js +127 -0
- package/dist/util/jwt.js.map +1 -0
- package/dist/util/linkDetector.d.ts +3 -0
- package/dist/util/linkDetector.js +91 -0
- package/dist/util/linkDetector.js.map +1 -0
- package/dist/util/mail-token.d.ts +24 -0
- package/dist/util/mail-token.js +117 -0
- package/dist/util/mail-token.js.map +1 -0
- package/dist/util/mailer.d.ts +7 -0
- package/dist/util/mailer.js +98 -0
- package/dist/util/mailer.js.map +1 -0
- package/dist/util/map-duplicate-key-error.d.ts +26 -0
- package/dist/util/map-duplicate-key-error.js +41 -0
- package/dist/util/map-duplicate-key-error.js.map +1 -0
- package/dist/util/mongoose-paginate.d.ts +10 -0
- package/dist/util/mongoose-paginate.js +23 -0
- package/dist/util/mongoose-paginate.js.map +1 -0
- package/dist/util/notifications-token.d.ts +35 -0
- package/dist/util/notifications-token.js +140 -0
- package/dist/util/notifications-token.js.map +1 -0
- package/dist/util/oauth-client-seed.d.ts +2 -0
- package/dist/util/oauth-client-seed.js +48 -0
- package/dist/util/oauth-client-seed.js.map +1 -0
- package/dist/util/oauth-redirect-uri.d.ts +2 -0
- package/dist/util/oauth-redirect-uri.js +55 -0
- package/dist/util/oauth-redirect-uri.js.map +1 -0
- package/dist/util/page-response.d.ts +113 -0
- package/dist/util/page-response.js +154 -0
- package/dist/util/page-response.js.map +1 -0
- package/dist/util/page-search-index.d.ts +19 -0
- package/dist/util/page-search-index.js +91 -0
- package/dist/util/page-search-index.js.map +1 -0
- package/dist/util/page-status-migration.d.ts +23 -0
- package/dist/util/page-status-migration.js +48 -0
- package/dist/util/page-status-migration.js.map +1 -0
- package/dist/util/path.d.ts +2 -0
- package/dist/util/path.js +12 -0
- package/dist/util/path.js.map +1 -0
- package/dist/util/pkce.d.ts +13 -0
- package/dist/util/pkce.js +30 -0
- package/dist/util/pkce.js.map +1 -0
- package/dist/util/presence-token.d.ts +21 -0
- package/dist/util/presence-token.js +120 -0
- package/dist/util/presence-token.js.map +1 -0
- package/dist/util/rate-limit.d.ts +67 -0
- package/dist/util/rate-limit.js +87 -0
- package/dist/util/rate-limit.js.map +1 -0
- package/dist/util/rebuild-backlink.d.ts +25 -0
- package/dist/util/rebuild-backlink.js +7 -0
- package/dist/util/rebuild-backlink.js.map +1 -0
- package/dist/util/rebuild-renderer.d.ts +31 -0
- package/dist/util/rebuild-renderer.js +7 -0
- package/dist/util/rebuild-renderer.js.map +1 -0
- package/dist/util/redis-opts.d.ts +17 -0
- package/dist/util/redis-opts.js +40 -0
- package/dist/util/redis-opts.js.map +1 -0
- package/dist/util/regex.d.ts +2 -0
- package/dist/util/regex.js +8 -0
- package/dist/util/regex.js.map +1 -0
- package/dist/util/search-rebuild.d.ts +18 -0
- package/dist/util/search-rebuild.js +28 -0
- package/dist/util/search-rebuild.js.map +1 -0
- package/dist/util/ssr.d.ts +3 -0
- package/dist/util/ssr.js +9 -0
- package/dist/util/ssr.js.map +1 -0
- package/dist/util/storage-copy.d.ts +40 -0
- package/dist/util/storage-copy.js +123 -0
- package/dist/util/storage-copy.js.map +1 -0
- package/dist/util/ts-rest-helpers.d.ts +110 -0
- package/dist/util/ts-rest-helpers.js +110 -0
- package/dist/util/ts-rest-helpers.js.map +1 -0
- package/dist/util/url.d.ts +1 -0
- package/dist/util/url.js +11 -0
- package/dist/util/url.js.map +1 -0
- package/dist/util/user-code.d.ts +10 -0
- package/dist/util/user-code.js +55 -0
- package/dist/util/user-code.js.map +1 -0
- package/dist/util/view.d.ts +10 -0
- package/dist/util/view.js +99 -0
- package/dist/util/view.js.map +1 -0
- package/dist/util/watcher-backfill.d.ts +30 -0
- package/dist/util/watcher-backfill.js +43 -0
- package/dist/util/watcher-backfill.js.map +1 -0
- package/dist/util/ws-token.d.ts +24 -0
- package/dist/util/ws-token.js +134 -0
- package/dist/util/ws-token.js.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
import type { OpenAPIHono } from '@hono/zod-openapi';
|
|
2
|
+
import type Crowi from '../../crowi';
|
|
3
|
+
import type { CrowiHonoBindings } from '../app';
|
|
4
|
+
export declare const registerUserRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
|
|
5
|
+
"/user/:username": {
|
|
6
|
+
$get: {
|
|
7
|
+
input: {
|
|
8
|
+
param: {
|
|
9
|
+
username: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
output: {
|
|
13
|
+
user: {
|
|
14
|
+
_id: string;
|
|
15
|
+
username: string;
|
|
16
|
+
name: string;
|
|
17
|
+
email: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
image?: string | null | undefined;
|
|
21
|
+
introduction?: string | undefined;
|
|
22
|
+
admin?: boolean | undefined;
|
|
23
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
24
|
+
};
|
|
25
|
+
createdPagesCount: number;
|
|
26
|
+
bookmarksCount: number;
|
|
27
|
+
recentPages?: {
|
|
28
|
+
_id: string;
|
|
29
|
+
path: string;
|
|
30
|
+
commentCount: number;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
revision?: string | {
|
|
33
|
+
_id: string;
|
|
34
|
+
path: string;
|
|
35
|
+
body: string;
|
|
36
|
+
format: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
author?: {
|
|
39
|
+
_id: string;
|
|
40
|
+
username: string;
|
|
41
|
+
name: string;
|
|
42
|
+
email: string;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
image?: string | null | undefined;
|
|
46
|
+
} | null | undefined;
|
|
47
|
+
meta?: {
|
|
48
|
+
toc?: {
|
|
49
|
+
level: number;
|
|
50
|
+
text: string;
|
|
51
|
+
anchorId: string;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
wikiLinks?: {
|
|
54
|
+
raw: string;
|
|
55
|
+
target: string;
|
|
56
|
+
displayText?: string | undefined;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
mentions?: {
|
|
59
|
+
username: string;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
codeBlockLanguages?: string[] | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
renderedAst?: import("hono/utils/types").JSONValue | undefined;
|
|
64
|
+
rendererVersion?: string | undefined;
|
|
65
|
+
parentRevisionId?: string | null | undefined;
|
|
66
|
+
type?: "snapshot" | "incremental" | undefined;
|
|
67
|
+
savedBy?: string | {
|
|
68
|
+
_id: string;
|
|
69
|
+
username: string;
|
|
70
|
+
name: string;
|
|
71
|
+
email: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
id?: string | undefined;
|
|
74
|
+
image?: string | null | undefined;
|
|
75
|
+
} | null | undefined;
|
|
76
|
+
contributors?: (string | {
|
|
77
|
+
_id: string;
|
|
78
|
+
username: string;
|
|
79
|
+
name: string;
|
|
80
|
+
email: string;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
id?: string | undefined;
|
|
83
|
+
image?: string | null | undefined;
|
|
84
|
+
})[] | undefined;
|
|
85
|
+
message?: string | undefined;
|
|
86
|
+
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
redirectTo?: string | null | undefined;
|
|
89
|
+
status?: "deleted" | "deprecated" | "published" | "wip" | "draft" | null | undefined;
|
|
90
|
+
grant?: number | undefined;
|
|
91
|
+
grantedUsers?: string[] | undefined;
|
|
92
|
+
creator?: string | {
|
|
93
|
+
_id: string;
|
|
94
|
+
username: string;
|
|
95
|
+
name: string;
|
|
96
|
+
email: string;
|
|
97
|
+
createdAt: string;
|
|
98
|
+
id?: string | undefined;
|
|
99
|
+
image?: string | null | undefined;
|
|
100
|
+
} | null | undefined;
|
|
101
|
+
lastUpdateUser?: string | {
|
|
102
|
+
_id: string;
|
|
103
|
+
username: string;
|
|
104
|
+
name: string;
|
|
105
|
+
email: string;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
id?: string | undefined;
|
|
108
|
+
image?: string | null | undefined;
|
|
109
|
+
} | null | undefined;
|
|
110
|
+
liker?: string[] | undefined;
|
|
111
|
+
extended?: {
|
|
112
|
+
[x: string]: any;
|
|
113
|
+
} | undefined;
|
|
114
|
+
updatedAt?: string | undefined;
|
|
115
|
+
currentRevision?: string | null | undefined;
|
|
116
|
+
yjsCheckpointAt?: string | null | undefined;
|
|
117
|
+
latestRevision?: string | undefined;
|
|
118
|
+
likerCount?: number | undefined;
|
|
119
|
+
seenUsersCount?: number | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
recentBookmarks?: {
|
|
122
|
+
_id: string;
|
|
123
|
+
page: {
|
|
124
|
+
_id: string;
|
|
125
|
+
path: string;
|
|
126
|
+
commentCount: number;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
revision?: string | {
|
|
129
|
+
_id: string;
|
|
130
|
+
path: string;
|
|
131
|
+
body: string;
|
|
132
|
+
format: string;
|
|
133
|
+
createdAt: string;
|
|
134
|
+
author?: {
|
|
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
|
+
} | null | undefined;
|
|
143
|
+
meta?: {
|
|
144
|
+
toc?: {
|
|
145
|
+
level: number;
|
|
146
|
+
text: string;
|
|
147
|
+
anchorId: string;
|
|
148
|
+
}[] | undefined;
|
|
149
|
+
wikiLinks?: {
|
|
150
|
+
raw: string;
|
|
151
|
+
target: string;
|
|
152
|
+
displayText?: string | undefined;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
mentions?: {
|
|
155
|
+
username: string;
|
|
156
|
+
}[] | undefined;
|
|
157
|
+
codeBlockLanguages?: string[] | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
renderedAst?: import("hono/utils/types").JSONValue | undefined;
|
|
160
|
+
rendererVersion?: string | undefined;
|
|
161
|
+
parentRevisionId?: string | null | undefined;
|
|
162
|
+
type?: "snapshot" | "incremental" | undefined;
|
|
163
|
+
savedBy?: string | {
|
|
164
|
+
_id: string;
|
|
165
|
+
username: string;
|
|
166
|
+
name: string;
|
|
167
|
+
email: string;
|
|
168
|
+
createdAt: string;
|
|
169
|
+
id?: string | undefined;
|
|
170
|
+
image?: string | null | undefined;
|
|
171
|
+
} | null | undefined;
|
|
172
|
+
contributors?: (string | {
|
|
173
|
+
_id: string;
|
|
174
|
+
username: string;
|
|
175
|
+
name: string;
|
|
176
|
+
email: string;
|
|
177
|
+
createdAt: string;
|
|
178
|
+
id?: string | undefined;
|
|
179
|
+
image?: string | null | undefined;
|
|
180
|
+
})[] | undefined;
|
|
181
|
+
message?: string | undefined;
|
|
182
|
+
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
redirectTo?: string | null | undefined;
|
|
185
|
+
status?: "deleted" | "deprecated" | "published" | "wip" | "draft" | null | undefined;
|
|
186
|
+
grant?: number | undefined;
|
|
187
|
+
grantedUsers?: string[] | undefined;
|
|
188
|
+
creator?: string | {
|
|
189
|
+
_id: string;
|
|
190
|
+
username: string;
|
|
191
|
+
name: string;
|
|
192
|
+
email: string;
|
|
193
|
+
createdAt: string;
|
|
194
|
+
id?: string | undefined;
|
|
195
|
+
image?: string | null | undefined;
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
lastUpdateUser?: string | {
|
|
198
|
+
_id: string;
|
|
199
|
+
username: string;
|
|
200
|
+
name: string;
|
|
201
|
+
email: string;
|
|
202
|
+
createdAt: string;
|
|
203
|
+
id?: string | undefined;
|
|
204
|
+
image?: string | null | undefined;
|
|
205
|
+
} | null | undefined;
|
|
206
|
+
liker?: string[] | undefined;
|
|
207
|
+
extended?: {
|
|
208
|
+
[x: string]: any;
|
|
209
|
+
} | undefined;
|
|
210
|
+
updatedAt?: string | undefined;
|
|
211
|
+
currentRevision?: string | null | undefined;
|
|
212
|
+
yjsCheckpointAt?: string | null | undefined;
|
|
213
|
+
latestRevision?: string | undefined;
|
|
214
|
+
likerCount?: number | undefined;
|
|
215
|
+
seenUsersCount?: number | undefined;
|
|
216
|
+
};
|
|
217
|
+
user: string | {
|
|
218
|
+
_id: string;
|
|
219
|
+
username: string;
|
|
220
|
+
name: string;
|
|
221
|
+
email: string;
|
|
222
|
+
createdAt: string;
|
|
223
|
+
id?: string | undefined;
|
|
224
|
+
image?: string | null | undefined;
|
|
225
|
+
introduction?: string | undefined;
|
|
226
|
+
admin?: boolean | undefined;
|
|
227
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
228
|
+
};
|
|
229
|
+
createdAt: string;
|
|
230
|
+
}[] | undefined;
|
|
231
|
+
};
|
|
232
|
+
outputFormat: "json";
|
|
233
|
+
status: 200;
|
|
234
|
+
} | {
|
|
235
|
+
input: {
|
|
236
|
+
param: {
|
|
237
|
+
username: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
output: {
|
|
241
|
+
error: {
|
|
242
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
243
|
+
message: "Authentication is required";
|
|
244
|
+
redirectTo?: string | undefined;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
outputFormat: "json";
|
|
248
|
+
status: 401;
|
|
249
|
+
} | {
|
|
250
|
+
input: {
|
|
251
|
+
param: {
|
|
252
|
+
username: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
output: {
|
|
256
|
+
error: {
|
|
257
|
+
code: "USER_NOT_FOUND";
|
|
258
|
+
message: "User not found";
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
outputFormat: "json";
|
|
262
|
+
status: 404;
|
|
263
|
+
} | {
|
|
264
|
+
input: {
|
|
265
|
+
param: {
|
|
266
|
+
username: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
output: {
|
|
270
|
+
error: {
|
|
271
|
+
code: "INTERNAL_ERROR";
|
|
272
|
+
message: "Internal server error";
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
outputFormat: "json";
|
|
276
|
+
status: 500;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
} & {
|
|
280
|
+
"/user/:username/bookmarks": {
|
|
281
|
+
$get: {
|
|
282
|
+
input: {
|
|
283
|
+
param: {
|
|
284
|
+
username: string;
|
|
285
|
+
};
|
|
286
|
+
} & {
|
|
287
|
+
query: {
|
|
288
|
+
limit?: unknown;
|
|
289
|
+
offset?: unknown;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
output: {
|
|
293
|
+
bookmarks: {
|
|
294
|
+
_id: string;
|
|
295
|
+
page: {
|
|
296
|
+
_id: string;
|
|
297
|
+
path: string;
|
|
298
|
+
commentCount: number;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
revision?: string | {
|
|
301
|
+
_id: string;
|
|
302
|
+
path: string;
|
|
303
|
+
body: string;
|
|
304
|
+
format: string;
|
|
305
|
+
createdAt: string;
|
|
306
|
+
author?: {
|
|
307
|
+
_id: string;
|
|
308
|
+
username: string;
|
|
309
|
+
name: string;
|
|
310
|
+
email: string;
|
|
311
|
+
createdAt: string;
|
|
312
|
+
id?: string | undefined;
|
|
313
|
+
image?: string | null | undefined;
|
|
314
|
+
} | null | undefined;
|
|
315
|
+
meta?: {
|
|
316
|
+
toc?: {
|
|
317
|
+
level: number;
|
|
318
|
+
text: string;
|
|
319
|
+
anchorId: string;
|
|
320
|
+
}[] | undefined;
|
|
321
|
+
wikiLinks?: {
|
|
322
|
+
raw: string;
|
|
323
|
+
target: string;
|
|
324
|
+
displayText?: string | undefined;
|
|
325
|
+
}[] | undefined;
|
|
326
|
+
mentions?: {
|
|
327
|
+
username: string;
|
|
328
|
+
}[] | undefined;
|
|
329
|
+
codeBlockLanguages?: string[] | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
renderedAst?: import("hono/utils/types").JSONValue | undefined;
|
|
332
|
+
rendererVersion?: string | undefined;
|
|
333
|
+
parentRevisionId?: string | null | undefined;
|
|
334
|
+
type?: "snapshot" | "incremental" | undefined;
|
|
335
|
+
savedBy?: string | {
|
|
336
|
+
_id: string;
|
|
337
|
+
username: string;
|
|
338
|
+
name: string;
|
|
339
|
+
email: string;
|
|
340
|
+
createdAt: string;
|
|
341
|
+
id?: string | undefined;
|
|
342
|
+
image?: string | null | undefined;
|
|
343
|
+
} | null | undefined;
|
|
344
|
+
contributors?: (string | {
|
|
345
|
+
_id: string;
|
|
346
|
+
username: string;
|
|
347
|
+
name: string;
|
|
348
|
+
email: string;
|
|
349
|
+
createdAt: string;
|
|
350
|
+
id?: string | undefined;
|
|
351
|
+
image?: string | null | undefined;
|
|
352
|
+
})[] | undefined;
|
|
353
|
+
message?: string | undefined;
|
|
354
|
+
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
redirectTo?: string | null | undefined;
|
|
357
|
+
status?: "deleted" | "deprecated" | "published" | "wip" | "draft" | null | undefined;
|
|
358
|
+
grant?: number | undefined;
|
|
359
|
+
grantedUsers?: string[] | undefined;
|
|
360
|
+
creator?: string | {
|
|
361
|
+
_id: string;
|
|
362
|
+
username: string;
|
|
363
|
+
name: string;
|
|
364
|
+
email: string;
|
|
365
|
+
createdAt: string;
|
|
366
|
+
id?: string | undefined;
|
|
367
|
+
image?: string | null | undefined;
|
|
368
|
+
} | null | undefined;
|
|
369
|
+
lastUpdateUser?: string | {
|
|
370
|
+
_id: string;
|
|
371
|
+
username: string;
|
|
372
|
+
name: string;
|
|
373
|
+
email: string;
|
|
374
|
+
createdAt: string;
|
|
375
|
+
id?: string | undefined;
|
|
376
|
+
image?: string | null | undefined;
|
|
377
|
+
} | null | undefined;
|
|
378
|
+
liker?: string[] | undefined;
|
|
379
|
+
extended?: {
|
|
380
|
+
[x: string]: any;
|
|
381
|
+
} | undefined;
|
|
382
|
+
updatedAt?: string | undefined;
|
|
383
|
+
currentRevision?: string | null | undefined;
|
|
384
|
+
yjsCheckpointAt?: string | null | undefined;
|
|
385
|
+
latestRevision?: string | undefined;
|
|
386
|
+
likerCount?: number | undefined;
|
|
387
|
+
seenUsersCount?: number | undefined;
|
|
388
|
+
};
|
|
389
|
+
user: string | {
|
|
390
|
+
_id: string;
|
|
391
|
+
username: string;
|
|
392
|
+
name: string;
|
|
393
|
+
email: string;
|
|
394
|
+
createdAt: string;
|
|
395
|
+
id?: string | undefined;
|
|
396
|
+
image?: string | null | undefined;
|
|
397
|
+
introduction?: string | undefined;
|
|
398
|
+
admin?: boolean | undefined;
|
|
399
|
+
status?: 1 | 2 | 3 | 4 | 5 | undefined;
|
|
400
|
+
};
|
|
401
|
+
createdAt: string;
|
|
402
|
+
}[];
|
|
403
|
+
pager: {
|
|
404
|
+
prev: number | null;
|
|
405
|
+
next: number | null;
|
|
406
|
+
offset: number;
|
|
407
|
+
};
|
|
408
|
+
total: number;
|
|
409
|
+
};
|
|
410
|
+
outputFormat: "json";
|
|
411
|
+
status: 200;
|
|
412
|
+
} | {
|
|
413
|
+
input: {
|
|
414
|
+
param: {
|
|
415
|
+
username: string;
|
|
416
|
+
};
|
|
417
|
+
} & {
|
|
418
|
+
query: {
|
|
419
|
+
limit?: unknown;
|
|
420
|
+
offset?: unknown;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
output: {
|
|
424
|
+
error: {
|
|
425
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
426
|
+
message: "Authentication is required";
|
|
427
|
+
redirectTo?: string | undefined;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
outputFormat: "json";
|
|
431
|
+
status: 401;
|
|
432
|
+
} | {
|
|
433
|
+
input: {
|
|
434
|
+
param: {
|
|
435
|
+
username: string;
|
|
436
|
+
};
|
|
437
|
+
} & {
|
|
438
|
+
query: {
|
|
439
|
+
limit?: unknown;
|
|
440
|
+
offset?: unknown;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
output: {
|
|
444
|
+
error: {
|
|
445
|
+
code: "USER_NOT_FOUND";
|
|
446
|
+
message: "User not found";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
outputFormat: "json";
|
|
450
|
+
status: 404;
|
|
451
|
+
} | {
|
|
452
|
+
input: {
|
|
453
|
+
param: {
|
|
454
|
+
username: string;
|
|
455
|
+
};
|
|
456
|
+
} & {
|
|
457
|
+
query: {
|
|
458
|
+
limit?: unknown;
|
|
459
|
+
offset?: unknown;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
output: {
|
|
463
|
+
error: {
|
|
464
|
+
code: "INTERNAL_ERROR";
|
|
465
|
+
message: "Internal server error";
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
outputFormat: "json";
|
|
469
|
+
status: 500;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
} & {
|
|
473
|
+
"/user/:username/pages": {
|
|
474
|
+
$get: {
|
|
475
|
+
input: {
|
|
476
|
+
param: {
|
|
477
|
+
username: string;
|
|
478
|
+
};
|
|
479
|
+
} & {
|
|
480
|
+
query: {
|
|
481
|
+
limit?: unknown;
|
|
482
|
+
offset?: unknown;
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
output: {
|
|
486
|
+
pages: {
|
|
487
|
+
_id: string;
|
|
488
|
+
path: string;
|
|
489
|
+
commentCount: number;
|
|
490
|
+
createdAt: string;
|
|
491
|
+
revision?: string | {
|
|
492
|
+
_id: string;
|
|
493
|
+
path: string;
|
|
494
|
+
body: string;
|
|
495
|
+
format: string;
|
|
496
|
+
createdAt: string;
|
|
497
|
+
author?: {
|
|
498
|
+
_id: string;
|
|
499
|
+
username: string;
|
|
500
|
+
name: string;
|
|
501
|
+
email: string;
|
|
502
|
+
createdAt: string;
|
|
503
|
+
id?: string | undefined;
|
|
504
|
+
image?: string | null | undefined;
|
|
505
|
+
} | null | undefined;
|
|
506
|
+
meta?: {
|
|
507
|
+
toc?: {
|
|
508
|
+
level: number;
|
|
509
|
+
text: string;
|
|
510
|
+
anchorId: string;
|
|
511
|
+
}[] | undefined;
|
|
512
|
+
wikiLinks?: {
|
|
513
|
+
raw: string;
|
|
514
|
+
target: string;
|
|
515
|
+
displayText?: string | undefined;
|
|
516
|
+
}[] | undefined;
|
|
517
|
+
mentions?: {
|
|
518
|
+
username: string;
|
|
519
|
+
}[] | undefined;
|
|
520
|
+
codeBlockLanguages?: string[] | undefined;
|
|
521
|
+
} | undefined;
|
|
522
|
+
renderedAst?: import("hono/utils/types").JSONValue | undefined;
|
|
523
|
+
rendererVersion?: string | undefined;
|
|
524
|
+
parentRevisionId?: string | null | undefined;
|
|
525
|
+
type?: "snapshot" | "incremental" | undefined;
|
|
526
|
+
savedBy?: string | {
|
|
527
|
+
_id: string;
|
|
528
|
+
username: string;
|
|
529
|
+
name: string;
|
|
530
|
+
email: string;
|
|
531
|
+
createdAt: string;
|
|
532
|
+
id?: string | undefined;
|
|
533
|
+
image?: string | null | undefined;
|
|
534
|
+
} | null | undefined;
|
|
535
|
+
contributors?: (string | {
|
|
536
|
+
_id: string;
|
|
537
|
+
username: string;
|
|
538
|
+
name: string;
|
|
539
|
+
email: string;
|
|
540
|
+
createdAt: string;
|
|
541
|
+
id?: string | undefined;
|
|
542
|
+
image?: string | null | undefined;
|
|
543
|
+
})[] | undefined;
|
|
544
|
+
message?: string | undefined;
|
|
545
|
+
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
redirectTo?: string | null | undefined;
|
|
548
|
+
status?: "deleted" | "deprecated" | "published" | "wip" | "draft" | null | undefined;
|
|
549
|
+
grant?: number | undefined;
|
|
550
|
+
grantedUsers?: string[] | undefined;
|
|
551
|
+
creator?: string | {
|
|
552
|
+
_id: string;
|
|
553
|
+
username: string;
|
|
554
|
+
name: string;
|
|
555
|
+
email: string;
|
|
556
|
+
createdAt: string;
|
|
557
|
+
id?: string | undefined;
|
|
558
|
+
image?: string | null | undefined;
|
|
559
|
+
} | null | undefined;
|
|
560
|
+
lastUpdateUser?: string | {
|
|
561
|
+
_id: string;
|
|
562
|
+
username: string;
|
|
563
|
+
name: string;
|
|
564
|
+
email: string;
|
|
565
|
+
createdAt: string;
|
|
566
|
+
id?: string | undefined;
|
|
567
|
+
image?: string | null | undefined;
|
|
568
|
+
} | null | undefined;
|
|
569
|
+
liker?: string[] | undefined;
|
|
570
|
+
extended?: {
|
|
571
|
+
[x: string]: any;
|
|
572
|
+
} | undefined;
|
|
573
|
+
updatedAt?: string | undefined;
|
|
574
|
+
currentRevision?: string | null | undefined;
|
|
575
|
+
yjsCheckpointAt?: string | null | undefined;
|
|
576
|
+
latestRevision?: string | undefined;
|
|
577
|
+
likerCount?: number | undefined;
|
|
578
|
+
seenUsersCount?: number | undefined;
|
|
579
|
+
}[];
|
|
580
|
+
pager: {
|
|
581
|
+
prev: number | null;
|
|
582
|
+
next: number | null;
|
|
583
|
+
offset: number;
|
|
584
|
+
};
|
|
585
|
+
total: number;
|
|
586
|
+
};
|
|
587
|
+
outputFormat: "json";
|
|
588
|
+
status: 200;
|
|
589
|
+
} | {
|
|
590
|
+
input: {
|
|
591
|
+
param: {
|
|
592
|
+
username: string;
|
|
593
|
+
};
|
|
594
|
+
} & {
|
|
595
|
+
query: {
|
|
596
|
+
limit?: unknown;
|
|
597
|
+
offset?: unknown;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
output: {
|
|
601
|
+
error: {
|
|
602
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
603
|
+
message: "Authentication is required";
|
|
604
|
+
redirectTo?: string | undefined;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
outputFormat: "json";
|
|
608
|
+
status: 401;
|
|
609
|
+
} | {
|
|
610
|
+
input: {
|
|
611
|
+
param: {
|
|
612
|
+
username: string;
|
|
613
|
+
};
|
|
614
|
+
} & {
|
|
615
|
+
query: {
|
|
616
|
+
limit?: unknown;
|
|
617
|
+
offset?: unknown;
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
output: {
|
|
621
|
+
error: {
|
|
622
|
+
code: "USER_NOT_FOUND";
|
|
623
|
+
message: "User not found";
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
outputFormat: "json";
|
|
627
|
+
status: 404;
|
|
628
|
+
} | {
|
|
629
|
+
input: {
|
|
630
|
+
param: {
|
|
631
|
+
username: string;
|
|
632
|
+
};
|
|
633
|
+
} & {
|
|
634
|
+
query: {
|
|
635
|
+
limit?: unknown;
|
|
636
|
+
offset?: unknown;
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
output: {
|
|
640
|
+
error: {
|
|
641
|
+
code: "INTERNAL_ERROR";
|
|
642
|
+
message: "Internal server error";
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
outputFormat: "json";
|
|
646
|
+
status: 500;
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
} & {
|
|
650
|
+
"/users": {
|
|
651
|
+
$get: {
|
|
652
|
+
input: {
|
|
653
|
+
query: {
|
|
654
|
+
q?: string | undefined;
|
|
655
|
+
limit?: unknown;
|
|
656
|
+
offset?: unknown;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
output: {
|
|
660
|
+
users: {
|
|
661
|
+
_id: string;
|
|
662
|
+
username: string;
|
|
663
|
+
name: string;
|
|
664
|
+
image?: string | null | undefined;
|
|
665
|
+
}[];
|
|
666
|
+
pager: {
|
|
667
|
+
prev: number | null;
|
|
668
|
+
next: number | null;
|
|
669
|
+
offset: number;
|
|
670
|
+
};
|
|
671
|
+
total: number;
|
|
672
|
+
};
|
|
673
|
+
outputFormat: "json";
|
|
674
|
+
status: 200;
|
|
675
|
+
} | {
|
|
676
|
+
input: {
|
|
677
|
+
query: {
|
|
678
|
+
q?: string | undefined;
|
|
679
|
+
limit?: unknown;
|
|
680
|
+
offset?: unknown;
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
output: {
|
|
684
|
+
error: {
|
|
685
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
686
|
+
message: "Authentication is required";
|
|
687
|
+
redirectTo?: string | undefined;
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
outputFormat: "json";
|
|
691
|
+
status: 401;
|
|
692
|
+
} | {
|
|
693
|
+
input: {
|
|
694
|
+
query: {
|
|
695
|
+
q?: string | undefined;
|
|
696
|
+
limit?: unknown;
|
|
697
|
+
offset?: unknown;
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
output: {
|
|
701
|
+
error: {
|
|
702
|
+
code: "INTERNAL_ERROR";
|
|
703
|
+
message: "Internal server error";
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
outputFormat: "json";
|
|
707
|
+
status: 500;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
}, "/">;
|