emdash 0.18.0 → 0.19.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/dist/api/route-utils.d.mts +2 -2
- package/dist/api/route-utils.mjs +14 -14
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-Cs7DAACP.mjs → api-BZ6bhjYs.mjs} +88 -16
- package/dist/api-BZ6bhjYs.mjs.map +1 -0
- package/dist/{apply-BWMV4Zmw.mjs → apply-hQkKKBCf.mjs} +23 -23
- package/dist/apply-hQkKKBCf.mjs.map +1 -0
- package/dist/astro/index.d.mts +8 -8
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +113 -23
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +7 -7
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware.d.mts +26 -4
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +205 -173
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +5 -5
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +8 -8
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +8 -8
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +8 -8
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/index.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +8 -8
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +5 -5
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +4 -4
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +31 -31
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +31 -31
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/index.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +31 -31
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +30 -30
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +31 -31
- package/dist/astro/routes/api/admin/plugins/updates.mjs +30 -30
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +30 -30
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +30 -30
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +4 -4
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/accept.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
- package/dist/astro/routes/api/auth/invite/register-options.mjs +6 -6
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +6 -6
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +7 -7
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +9 -8
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +12 -10
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +9 -8
- package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/authors.d.mts +8 -0
- package/dist/astro/routes/api/content/_collection_/authors.d.mts.map +1 -0
- package/dist/astro/routes/api/content/_collection_/authors.mjs +19 -0
- package/dist/astro/routes/api/content/_collection_/authors.mjs.map +1 -0
- package/dist/astro/routes/api/content/_collection_/index.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +7 -7
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/import/probe.d.mts +2 -2
- package/dist/astro/routes/api/import/probe.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +7 -7
- package/dist/astro/routes/api/import/wordpress/execute.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +9 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +9 -9
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +28 -28
- package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +3 -3
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +3 -3
- package/dist/astro/routes/api/media/providers/index.mjs +3 -3
- package/dist/astro/routes/api/media/upload-url.mjs +6 -6
- package/dist/astro/routes/api/media.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/items.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_/translations.mjs +7 -7
- package/dist/astro/routes/api/menus/_name_.mjs +7 -7
- package/dist/astro/routes/api/menus/index.mjs +7 -7
- package/dist/astro/routes/api/oauth/authorize.mjs +1 -1
- package/dist/astro/routes/api/oauth/device/authorize.mjs +4 -4
- package/dist/astro/routes/api/oauth/device/code.mjs +5 -5
- package/dist/astro/routes/api/oauth/device/token.mjs +5 -5
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/revoke.mjs +4 -4
- package/dist/astro/routes/api/oauth/token.mjs +4 -4
- package/dist/astro/routes/api/openapi.json.mjs +17 -3
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +9 -9
- package/dist/astro/routes/api/redirects/404s/summary.mjs +9 -9
- package/dist/astro/routes/api/redirects/_id_.mjs +10 -10
- package/dist/astro/routes/api/redirects/index.mjs +10 -10
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +3 -3
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +30 -30
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +30 -30
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +30 -30
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +30 -30
- package/dist/astro/routes/api/schema/collections/index.mjs +30 -30
- package/dist/astro/routes/api/schema/index.mjs +6 -6
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +30 -30
- package/dist/astro/routes/api/schema/orphans/index.mjs +30 -30
- package/dist/astro/routes/api/search/enable.mjs +9 -9
- package/dist/astro/routes/api/search/index.mjs +8 -8
- package/dist/astro/routes/api/search/rebuild.mjs +9 -9
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +8 -8
- package/dist/astro/routes/api/sections/_slug_.mjs +8 -8
- package/dist/astro/routes/api/sections/index.mjs +8 -8
- package/dist/astro/routes/api/settings/email.mjs +5 -5
- package/dist/astro/routes/api/settings.mjs +12 -12
- package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
- package/dist/astro/routes/api/setup/admin.mjs +6 -6
- package/dist/astro/routes/api/setup/dev-bypass.mjs +18 -18
- package/dist/astro/routes/api/setup/dev-reset.mjs +3 -3
- package/dist/astro/routes/api/setup/index.mjs +21 -21
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +5 -5
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +11 -11
- package/dist/astro/routes/api/taxonomies/index.mjs +11 -11
- package/dist/astro/routes/api/themes/preview.mjs +5 -5
- package/dist/astro/routes/api/typegen.mjs +5 -5
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +6 -6
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +8 -8
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +8 -8
- package/dist/astro/routes/api/widget-areas/_name_.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/index.mjs +8 -8
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +6 -6
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +6 -6
- package/dist/astro/routes/sitemap.xml.mjs +6 -6
- package/dist/astro/types.d.mts +15 -8
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/{authorize-CotM4Yiu.mjs → authorize-C_8t2KGa.mjs} +2 -2
- package/dist/{authorize-CotM4Yiu.mjs.map → authorize-C_8t2KGa.mjs.map} +1 -1
- package/dist/{byline-CWQ9aSoz.mjs → byline-DUx48sJp.mjs} +6 -6
- package/dist/{byline-CWQ9aSoz.mjs.map → byline-DUx48sJp.mjs.map} +1 -1
- package/dist/{byline-fields-Dr-xcb6S.mjs → byline-fields-51kg6Vuv.mjs} +3 -3
- package/dist/{byline-fields-Dr-xcb6S.mjs.map → byline-fields-51kg6Vuv.mjs.map} +1 -1
- package/dist/{byline-fields-DC3Wkk-U.mjs → byline-fields-C_OsR-KF.mjs} +2 -2
- package/dist/{byline-fields-DC3Wkk-U.mjs.map → byline-fields-C_OsR-KF.mjs.map} +1 -1
- package/dist/{byline-fields-BNy7Ng1U.d.mts → byline-fields-DYXKDuNX.d.mts} +26 -2
- package/dist/byline-fields-DYXKDuNX.d.mts.map +1 -0
- package/dist/{byline-registry-CxK5g559.mjs → byline-registry-CWP7I71B.mjs} +3 -3
- package/dist/{byline-registry-CxK5g559.mjs.map → byline-registry-CWP7I71B.mjs.map} +1 -1
- package/dist/{bylines-LJMgENMI.mjs → bylines-Cx5n-WqP.mjs} +3 -3
- package/dist/{bylines-LJMgENMI.mjs.map → bylines-Cx5n-WqP.mjs.map} +1 -1
- package/dist/{bylines-BJSva1Un.mjs → bylines-wurS258E.mjs} +50 -6
- package/dist/{bylines-BJSva1Un.mjs.map → bylines-wurS258E.mjs.map} +1 -1
- package/dist/{cache-lZL7SgVb.mjs → cache-B_HzASVT.mjs} +3 -3
- package/dist/{cache-lZL7SgVb.mjs.map → cache-B_HzASVT.mjs.map} +1 -1
- package/dist/{chunks-BU-vP9Dh.mjs → chunks-BerYVuve.mjs} +2 -2
- package/dist/{chunks-BU-vP9Dh.mjs.map → chunks-BerYVuve.mjs.map} +1 -1
- package/dist/cli/index.mjs +40 -27
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{comment-C4jVbCM8.mjs → comment-sqQxNpN3.mjs} +2 -2
- package/dist/{comment-C4jVbCM8.mjs.map → comment-sqQxNpN3.mjs.map} +1 -1
- package/dist/{comments-BTAbC0Ek.mjs → comments-CJ0RZsYR.mjs} +3 -3
- package/dist/{comments-BTAbC0Ek.mjs.map → comments-CJ0RZsYR.mjs.map} +1 -1
- package/dist/{content-CyqOmOzm.mjs → content-BIlVx-RX.mjs} +132 -43
- package/dist/content-BIlVx-RX.mjs.map +1 -0
- package/dist/{context-DZ7bEh5-.mjs → context-GG52SPgh.mjs} +10 -10
- package/dist/{context-DZ7bEh5-.mjs.map → context-GG52SPgh.mjs.map} +1 -1
- package/dist/{cron-DZovZUnC.mjs → cron-BJ2ClIlj.mjs} +4 -3
- package/dist/cron-BJ2ClIlj.mjs.map +1 -0
- package/dist/{dashboard-B5WQpNTP.mjs → dashboard-2JgAMWxK.mjs} +4 -4
- package/dist/{dashboard-B5WQpNTP.mjs.map → dashboard-2JgAMWxK.mjs.map} +1 -1
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{device-flow-ptLrVINd.mjs → device-flow-s6_q3T7A.mjs} +2 -2
- package/dist/{device-flow-ptLrVINd.mjs.map → device-flow-s6_q3T7A.mjs.map} +1 -1
- package/dist/{error-DJOsMVSt.mjs → error-RwM4dD35.mjs} +2 -2
- package/dist/{error-DJOsMVSt.mjs.map → error-RwM4dD35.mjs.map} +1 -1
- package/dist/{fts-manager-DR1ERA0c.mjs → fts-manager-1RgHmopc.mjs} +2 -2
- package/dist/{fts-manager-DR1ERA0c.mjs.map → fts-manager-1RgHmopc.mjs.map} +1 -1
- package/dist/{index-D60_SzHG.d.mts → index-BpYeJO1E.d.mts} +2 -2
- package/dist/{index-D60_SzHG.d.mts.map → index-BpYeJO1E.d.mts.map} +1 -1
- package/dist/{index-CjKdMZ3U.d.mts → index-FfiTQJq2.d.mts} +199 -17
- package/dist/index-FfiTQJq2.d.mts.map +1 -0
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +43 -43
- package/dist/{load-6ZrRhepW.mjs → load-B84ohfBk.mjs} +2 -2
- package/dist/{load-6ZrRhepW.mjs.map → load-B84ohfBk.mjs.map} +1 -1
- package/dist/{loader-Dyx8dhFV.mjs → loader-CpZKpFz0.mjs} +32 -30
- package/dist/loader-CpZKpFz0.mjs.map +1 -0
- package/dist/media/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +7 -7
- package/dist/media/local-runtime.mjs +6 -6
- package/dist/{media-C-oovGCG.mjs → media-JOf3pNkw.mjs} +2 -2
- package/dist/{media-C-oovGCG.mjs.map → media-JOf3pNkw.mjs.map} +1 -1
- package/dist/{menus-DugoYwTX.mjs → menus-DX4_E01q.mjs} +3 -3
- package/dist/{menus-DugoYwTX.mjs.map → menus-DX4_E01q.mjs.map} +1 -1
- package/dist/{menus-BKkxXCmd.mjs → menus-Dp9xporj.mjs} +86 -9
- package/dist/menus-Dp9xporj.mjs.map +1 -0
- package/dist/{normalize-DVV8nbrL.mjs → normalize-CK5o04zr.mjs} +2 -2
- package/dist/{normalize-DVV8nbrL.mjs.map → normalize-CK5o04zr.mjs.map} +1 -1
- package/dist/{oauth-authorization-DvBAL75d.mjs → oauth-authorization-1aPAYjiC.mjs} +2 -2
- package/dist/{oauth-authorization-DvBAL75d.mjs.map → oauth-authorization-1aPAYjiC.mjs.map} +1 -1
- package/dist/{options-BL4X94qY.mjs → options-BPCVnesz.mjs} +1 -1
- package/dist/{options-BL4X94qY.mjs.map → options-BPCVnesz.mjs.map} +1 -1
- package/dist/{options-tb7DJROi.d.mts → options-D4MnavW_.d.mts} +3 -3
- package/dist/{options-tb7DJROi.d.mts.map → options-D4MnavW_.d.mts.map} +1 -1
- package/dist/{parse-BBkFmLVr.mjs → parse-CrGndy1A.mjs} +2 -2
- package/dist/{parse-BBkFmLVr.mjs.map → parse-CrGndy1A.mjs.map} +1 -1
- package/dist/{patterns-CqG5Ya3i.mjs → patterns-p-RBdTbM.mjs} +1 -1
- package/dist/{patterns-CqG5Ya3i.mjs.map → patterns-p-RBdTbM.mjs.map} +1 -1
- package/dist/plugin-utils.d.mts +7 -7
- package/dist/plugins/adapt-sandbox-entry.d.mts +7 -7
- package/dist/{query-Ctlq1aOk.mjs → query-BFQ029Ts.mjs} +21 -15
- package/dist/query-BFQ029Ts.mjs.map +1 -0
- package/dist/{rate-limit-CH6W6ikK.mjs → rate-limit-ClFFUga6.mjs} +2 -2
- package/dist/{rate-limit-CH6W6ikK.mjs.map → rate-limit-ClFFUga6.mjs.map} +1 -1
- package/dist/{redirect-C6tJA7tk.mjs → redirect-CRWIt8Zj.mjs} +3 -3
- package/dist/{redirect-C6tJA7tk.mjs.map → redirect-CRWIt8Zj.mjs.map} +1 -1
- package/dist/{redirects-C0L9JUk4.mjs → redirects-DEygMrRO.mjs} +25 -3
- package/dist/redirects-DEygMrRO.mjs.map +1 -0
- package/dist/{redirects-CacE9eQa.mjs → redirects-OIu6vQ2i.mjs} +5 -5
- package/dist/{redirects-CacE9eQa.mjs.map → redirects-OIu6vQ2i.mjs.map} +1 -1
- package/dist/{registry-CIDxZbhh.mjs → registry-brYh-rAT.mjs} +6 -6
- package/dist/{registry-CIDxZbhh.mjs.map → registry-brYh-rAT.mjs.map} +1 -1
- package/dist/{request-cache-BYMs-BGX.mjs → request-cache-D32LpnmI.mjs} +1 -1
- package/dist/{request-cache-BYMs-BGX.mjs.map → request-cache-D32LpnmI.mjs.map} +1 -1
- package/dist/{runner-pt6Wl-l-.mjs → runner--4wMWwKM.mjs} +217 -166
- package/dist/runner--4wMWwKM.mjs.map +1 -0
- package/dist/{runner-DM1yR5qd.d.mts → runner-BcRuXq_h.d.mts} +2 -2
- package/dist/{runner-DM1yR5qd.d.mts.map → runner-BcRuXq_h.d.mts.map} +1 -1
- package/dist/runtime.d.mts +7 -7
- package/dist/runtime.mjs +2 -2
- package/dist/{schema-B4tk0HAG.mjs → schema-CS7Eg5gh.mjs} +5 -5
- package/dist/{schema-B4tk0HAG.mjs.map → schema-CS7Eg5gh.mjs.map} +1 -1
- package/dist/{search-f-fNfwab.mjs → search-o-aQzHI1.mjs} +4 -4
- package/dist/{search-f-fNfwab.mjs.map → search-o-aQzHI1.mjs.map} +1 -1
- package/dist/{secrets-YYbTgB1w.mjs → secrets-C_ZtRos3.mjs} +2 -2
- package/dist/{secrets-YYbTgB1w.mjs.map → secrets-C_ZtRos3.mjs.map} +1 -1
- package/dist/{sections-biElLfT9.mjs → sections-DhsZ0ns9.mjs} +3 -3
- package/dist/{sections-biElLfT9.mjs.map → sections-DhsZ0ns9.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +16 -16
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-BR39kvTF.mjs → seo-B5e6y9Wk.mjs} +2 -2
- package/dist/{seo-BR39kvTF.mjs.map → seo-B5e6y9Wk.mjs.map} +1 -1
- package/dist/{service-BhR2acnc.mjs → service-DAxg8RPR.mjs} +2 -2
- package/dist/{service-BhR2acnc.mjs.map → service-DAxg8RPR.mjs.map} +1 -1
- package/dist/{settings-b5zW1R1T.mjs → settings-B1p-gPUK.mjs} +5 -5
- package/dist/{settings-b5zW1R1T.mjs.map → settings-B1p-gPUK.mjs.map} +1 -1
- package/dist/{settings-D_NJvjgN.mjs → settings-DIsbHTRE.mjs} +3 -3
- package/dist/{settings-D_NJvjgN.mjs.map → settings-DIsbHTRE.mjs.map} +1 -1
- package/dist/{setup-complete-VoEZfasi.mjs → setup-complete-Yuv78yua.mjs} +2 -2
- package/dist/{setup-complete-VoEZfasi.mjs.map → setup-complete-Yuv78yua.mjs.map} +1 -1
- package/dist/{site-url-Cm8-sJy7.mjs → site-url-mEVmwIFi.mjs} +2 -2
- package/dist/{site-url-Cm8-sJy7.mjs.map → site-url-mEVmwIFi.mjs.map} +1 -1
- package/dist/{taxonomies-Crtzy4MT.mjs → taxonomies-BEW7S5AI.mjs} +7 -6
- package/dist/taxonomies-BEW7S5AI.mjs.map +1 -0
- package/dist/{taxonomies-Mhn9rjTQ.mjs → taxonomies-UusDXv3C.mjs} +4 -4
- package/dist/{taxonomies-Mhn9rjTQ.mjs.map → taxonomies-UusDXv3C.mjs.map} +1 -1
- package/dist/{taxonomy-DTZrIQpi.mjs → taxonomy-CdllE4oq.mjs} +3 -3
- package/dist/{taxonomy-DTZrIQpi.mjs.map → taxonomy-CdllE4oq.mjs.map} +1 -1
- package/dist/{transaction-NQj4VJ7Z.mjs → transaction-x2tJQ-A1.mjs} +1 -1
- package/dist/{transaction-NQj4VJ7Z.mjs.map → transaction-x2tJQ-A1.mjs.map} +1 -1
- package/dist/{transport-OnMNbsIA.d.mts → transport-BwQeeY2p.d.mts} +1 -1
- package/dist/{transport-OnMNbsIA.d.mts.map → transport-BwQeeY2p.d.mts.map} +1 -1
- package/dist/{types-K3MDsxpy.mjs → types-BXSUSAjt.mjs} +16 -3
- package/dist/{types-K3MDsxpy.mjs.map → types-BXSUSAjt.mjs.map} +1 -1
- package/dist/{types-D8bhH891.mjs → types-DZk_y-MU.mjs} +1 -1
- package/dist/{types-D8bhH891.mjs.map → types-DZk_y-MU.mjs.map} +1 -1
- package/dist/{types-DawhLFwy.d.mts → types-OT_Es5mp.d.mts} +26 -1
- package/dist/{types-DawhLFwy.d.mts.map → types-OT_Es5mp.d.mts.map} +1 -1
- package/dist/{types-i8_uzhMD.d.mts → types-WVmpZBJV.d.mts} +18 -3
- package/dist/types-WVmpZBJV.d.mts.map +1 -0
- package/dist/{user-DzEUl5zA.mjs → user-C0um7wrg.mjs} +18 -2
- package/dist/user-C0um7wrg.mjs.map +1 -0
- package/dist/{validate-Dy6nkNls.d.mts → validate-BPAHUSge.d.mts} +10 -2
- package/dist/validate-BPAHUSge.d.mts.map +1 -0
- package/dist/{validate-JCXcsqiY.mjs → validate-ZP9Dvg0P.mjs} +6 -3
- package/dist/validate-ZP9Dvg0P.mjs.map +1 -0
- package/dist/{validation-Bq-VyKJg.mjs → validation-CE5i4q0c.mjs} +5 -5
- package/dist/{validation-Bq-VyKJg.mjs.map → validation-CE5i4q0c.mjs.map} +1 -1
- package/dist/version-Dw0JXu45.mjs +7 -0
- package/dist/{version-CnS-Cr8A.mjs.map → version-Dw0JXu45.mjs.map} +1 -1
- package/dist/{widgets-Bap1eS1X.mjs → widgets-ClEnYQCH.mjs} +2 -2
- package/dist/{widgets-Bap1eS1X.mjs.map → widgets-ClEnYQCH.mjs.map} +1 -1
- package/dist/{zod-generator-BSDpkqSH.mjs → zod-generator-Djo_VHCt.mjs} +2 -2
- package/dist/{zod-generator-BSDpkqSH.mjs.map → zod-generator-Djo_VHCt.mjs.map} +1 -1
- package/package.json +5 -5
- package/src/api/handlers/content.ts +107 -8
- package/src/api/handlers/index.ts +2 -0
- package/src/api/openapi/document.ts +25 -0
- package/src/api/schemas/content.ts +33 -0
- package/src/astro/integration/index.ts +98 -0
- package/src/astro/integration/routes.ts +6 -0
- package/src/astro/integration/virtual-modules.ts +39 -0
- package/src/astro/integration/vite-config.ts +12 -0
- package/src/astro/middleware.ts +28 -0
- package/src/astro/routes/api/content/[collection]/[id]/discard-draft.ts +4 -2
- package/src/astro/routes/api/content/[collection]/[id]/publish.ts +4 -2
- package/src/astro/routes/api/content/[collection]/[id]/schedule.ts +8 -4
- package/src/astro/routes/api/content/[collection]/[id]/unpublish.ts +4 -2
- package/src/astro/routes/api/content/[collection]/[id].ts +4 -2
- package/src/astro/routes/api/content/[collection]/authors.ts +34 -0
- package/src/astro/types.ts +8 -1
- package/src/bylines/index.ts +57 -0
- package/src/cli/commands/export-seed.ts +28 -12
- package/src/components/EmDashImage.astro +22 -4
- package/src/components/Image.astro +20 -3
- package/src/database/migrations/043_content_references.ts +121 -0
- package/src/database/migrations/runner.ts +2 -0
- package/src/database/repositories/content.ts +225 -67
- package/src/database/repositories/index.ts +7 -0
- package/src/database/repositories/relation.ts +467 -0
- package/src/database/repositories/types.ts +31 -0
- package/src/database/repositories/user.ts +18 -0
- package/src/database/types.ts +34 -0
- package/src/emdash-runtime.ts +141 -42
- package/src/index.ts +8 -1
- package/src/loader.ts +67 -34
- package/src/media/responsive.ts +125 -0
- package/src/plugins/cron.ts +3 -2
- package/src/plugins/index.ts +5 -0
- package/src/plugins/scheduler/node.ts +9 -2
- package/src/query.ts +32 -5
- package/src/scheduled-publish.ts +153 -0
- package/src/seed/apply.ts +16 -6
- package/src/seed/types.ts +9 -0
- package/src/seed/validate.ts +15 -0
- package/src/taxonomies/index.ts +1 -0
- package/src/virtual-modules.d.ts +11 -0
- package/dist/api-Cs7DAACP.mjs.map +0 -1
- package/dist/apply-BWMV4Zmw.mjs.map +0 -1
- package/dist/byline-fields-BNy7Ng1U.d.mts.map +0 -1
- package/dist/content-CyqOmOzm.mjs.map +0 -1
- package/dist/cron-DZovZUnC.mjs.map +0 -1
- package/dist/index-CjKdMZ3U.d.mts.map +0 -1
- package/dist/loader-Dyx8dhFV.mjs.map +0 -1
- package/dist/menus-BKkxXCmd.mjs.map +0 -1
- package/dist/query-Ctlq1aOk.mjs.map +0 -1
- package/dist/redirects-C0L9JUk4.mjs.map +0 -1
- package/dist/runner-pt6Wl-l-.mjs.map +0 -1
- package/dist/taxonomies-Crtzy4MT.mjs.map +0 -1
- package/dist/types-i8_uzhMD.d.mts.map +0 -1
- package/dist/user-DzEUl5zA.mjs.map +0 -1
- package/dist/validate-Dy6nkNls.d.mts.map +0 -1
- package/dist/validate-JCXcsqiY.mjs.map +0 -1
- package/dist/version-CnS-Cr8A.mjs +0 -7
- package/src/plugins/scheduler/piggyback.ts +0 -71
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "../../../../../dialect-helpers-DRI5pyY3.mjs";
|
|
2
2
|
import { n as slugify } from "../../../../../slugify-Cjh1ssOZ.mjs";
|
|
3
3
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
4
|
-
import "../../../../../types-
|
|
5
|
-
import "../../../../../request-cache-
|
|
6
|
-
import "../../../../../byline-registry-
|
|
7
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
4
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
5
|
+
import "../../../../../request-cache-D32LpnmI.mjs";
|
|
6
|
+
import "../../../../../byline-registry-CWP7I71B.mjs";
|
|
7
|
+
import { t as BylineRepository } from "../../../../../byline-DUx48sJp.mjs";
|
|
8
8
|
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../../../../../ssrf-BsVGIE0Z.mjs";
|
|
9
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
10
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
11
|
-
import "../../../../../redirects-
|
|
12
|
-
import { h as wpPluginExecuteBody } from "../../../../../byline-fields-
|
|
9
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
10
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
11
|
+
import "../../../../../redirects-DEygMrRO.mjs";
|
|
12
|
+
import { h as wpPluginExecuteBody } from "../../../../../byline-fields-51kg6Vuv.mjs";
|
|
13
13
|
import "../../../../../api/schemas/index.mjs";
|
|
14
14
|
import { s as getSource } from "../../../../../import-Dh8bWmyq.mjs";
|
|
15
15
|
import "../../../../../ssrf-BvgVcfNQ.mjs";
|
|
16
16
|
import { m as resolveImportByline } from "../../../../../utils-C4Ih4DML.mjs";
|
|
17
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
17
|
+
import { n as requirePerm } from "../../../../../authorize-C_8t2KGa.mjs";
|
|
18
18
|
import { ContentRepository, SchemaRegistry } from "emdash";
|
|
19
19
|
|
|
20
20
|
//#region src/astro/routes/api/import/wordpress-plugin/execute.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { r as handleError } from "../../../error-
|
|
4
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
2
|
+
import "../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { r as handleError } from "../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as VERSION, t as COMMIT } from "../../../version-Dw0JXu45.mjs";
|
|
5
5
|
import { t as getAuthMode } from "../../../mode-BjlXswIw.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/astro/routes/api/manifest.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { t as apiError } from "../../../error-
|
|
4
|
-
import {
|
|
5
|
-
import "../../../byline-fields-
|
|
2
|
+
import "../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { t as apiError } from "../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { En as contentBylineInputSchema, ln as contentSeoInput } from "../../../redirects-DEygMrRO.mjs";
|
|
5
|
+
import "../../../byline-fields-51kg6Vuv.mjs";
|
|
6
6
|
import "../../../api/schemas/index.mjs";
|
|
7
7
|
import { i as hasScope } from "../../../api-tokens-B6VgoE6M.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
@@ -645,7 +645,7 @@ function createMcpServer() {
|
|
|
645
645
|
requireRole(extra, Role.EDITOR);
|
|
646
646
|
const ec = getEmDash(extra);
|
|
647
647
|
try {
|
|
648
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
648
|
+
const { SchemaRegistry } = await import("../../../schema-CS7Eg5gh.mjs").then((n) => n.t);
|
|
649
649
|
return jsonResult({ items: await new SchemaRegistry(ec.db).listCollections() });
|
|
650
650
|
} catch (error) {
|
|
651
651
|
return respondHandlerError(error, "SCHEMA_LIST_ERROR");
|
|
@@ -661,7 +661,7 @@ function createMcpServer() {
|
|
|
661
661
|
requireRole(extra, Role.EDITOR);
|
|
662
662
|
const ec = getEmDash(extra);
|
|
663
663
|
try {
|
|
664
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
664
|
+
const { SchemaRegistry } = await import("../../../schema-CS7Eg5gh.mjs").then((n) => n.t);
|
|
665
665
|
const collection = await new SchemaRegistry(ec.db).getCollectionWithFields(args.slug);
|
|
666
666
|
if (!collection) return respondError("NOT_FOUND", `Collection '${args.slug}' not found`);
|
|
667
667
|
return jsonResult(collection);
|
|
@@ -691,7 +691,7 @@ function createMcpServer() {
|
|
|
691
691
|
requireRole(extra, Role.ADMIN);
|
|
692
692
|
const ec = getEmDash(extra);
|
|
693
693
|
try {
|
|
694
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
694
|
+
const { SchemaRegistry } = await import("../../../schema-CS7Eg5gh.mjs").then((n) => n.t);
|
|
695
695
|
const collection = await new SchemaRegistry(ec.db).createCollection({
|
|
696
696
|
slug: args.slug,
|
|
697
697
|
label: args.label,
|
|
@@ -719,7 +719,7 @@ function createMcpServer() {
|
|
|
719
719
|
requireRole(extra, Role.ADMIN);
|
|
720
720
|
const ec = getEmDash(extra);
|
|
721
721
|
try {
|
|
722
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
722
|
+
const { SchemaRegistry } = await import("../../../schema-CS7Eg5gh.mjs").then((n) => n.t);
|
|
723
723
|
await new SchemaRegistry(ec.db).deleteCollection(args.slug, { force: args.force });
|
|
724
724
|
ec.invalidateUrlPatternCache();
|
|
725
725
|
return jsonResult({ deleted: args.slug });
|
|
@@ -773,7 +773,7 @@ function createMcpServer() {
|
|
|
773
773
|
requireRole(extra, Role.ADMIN);
|
|
774
774
|
const ec = getEmDash(extra);
|
|
775
775
|
try {
|
|
776
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
776
|
+
const { SchemaRegistry } = await import("../../../schema-CS7Eg5gh.mjs").then((n) => n.t);
|
|
777
777
|
return jsonResult(await new SchemaRegistry(ec.db).createField(args.collection, {
|
|
778
778
|
slug: args.slug,
|
|
779
779
|
label: args.label,
|
|
@@ -803,7 +803,7 @@ function createMcpServer() {
|
|
|
803
803
|
requireRole(extra, Role.ADMIN);
|
|
804
804
|
const ec = getEmDash(extra);
|
|
805
805
|
try {
|
|
806
|
-
const { SchemaRegistry } = await import("../../../schema-
|
|
806
|
+
const { SchemaRegistry } = await import("../../../schema-CS7Eg5gh.mjs").then((n) => n.t);
|
|
807
807
|
await new SchemaRegistry(ec.db).deleteField(args.collection, args.fieldSlug);
|
|
808
808
|
return jsonResult({
|
|
809
809
|
deleted: args.fieldSlug,
|
|
@@ -924,7 +924,7 @@ function createMcpServer() {
|
|
|
924
924
|
requireScope(extra, "content:read");
|
|
925
925
|
const ec = getEmDash(extra);
|
|
926
926
|
try {
|
|
927
|
-
const { searchWithDb } = await import("../../../search-
|
|
927
|
+
const { searchWithDb } = await import("../../../search-o-aQzHI1.mjs").then((n) => n.t);
|
|
928
928
|
return jsonResult(await searchWithDb(ec.db, args.query, {
|
|
929
929
|
collections: args.collections,
|
|
930
930
|
locale: args.locale,
|
|
@@ -943,7 +943,7 @@ function createMcpServer() {
|
|
|
943
943
|
requireScope(extra, "content:read");
|
|
944
944
|
const ec = getEmDash(extra);
|
|
945
945
|
try {
|
|
946
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
946
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-UusDXv3C.mjs").then((n) => n.l);
|
|
947
947
|
return unwrap(await handleTaxonomyList(ec.db, { locale: args.locale }));
|
|
948
948
|
} catch (error) {
|
|
949
949
|
return respondHandlerError(error, "TAXONOMY_LIST_ERROR");
|
|
@@ -963,12 +963,12 @@ function createMcpServer() {
|
|
|
963
963
|
requireScope(extra, "content:read");
|
|
964
964
|
const ec = getEmDash(extra);
|
|
965
965
|
try {
|
|
966
|
-
const { handleTaxonomyList } = await import("../../../taxonomies-
|
|
966
|
+
const { handleTaxonomyList } = await import("../../../taxonomies-UusDXv3C.mjs").then((n) => n.l);
|
|
967
967
|
const listResult = await handleTaxonomyList(ec.db, { locale: args.locale });
|
|
968
968
|
if (!listResult.success) return unwrap(listResult);
|
|
969
969
|
if (!listResult.data.taxonomies.find((t) => t.name === args.taxonomy)) return respondError("NOT_FOUND", `Taxonomy '${args.taxonomy}' not found`);
|
|
970
|
-
const { TaxonomyRepository } = await import("../../../taxonomy-
|
|
971
|
-
const { decodeCursor, encodeCursor, InvalidCursorError } = await import("../../../types-
|
|
970
|
+
const { TaxonomyRepository } = await import("../../../taxonomy-CdllE4oq.mjs").then((n) => n.n);
|
|
971
|
+
const { decodeCursor, encodeCursor, InvalidCursorError } = await import("../../../types-BXSUSAjt.mjs").then((n) => n.o);
|
|
972
972
|
const repo = new TaxonomyRepository(ec.db);
|
|
973
973
|
const limit = Math.min(args.limit ?? 50, 100);
|
|
974
974
|
const terms = await repo.findByName(args.taxonomy, { locale: args.locale });
|
|
@@ -1022,7 +1022,7 @@ function createMcpServer() {
|
|
|
1022
1022
|
requireRole(extra, Role.EDITOR);
|
|
1023
1023
|
const ec = getEmDash(extra);
|
|
1024
1024
|
try {
|
|
1025
|
-
const { handleTermCreate } = await import("../../../taxonomies-
|
|
1025
|
+
const { handleTermCreate } = await import("../../../taxonomies-UusDXv3C.mjs").then((n) => n.l);
|
|
1026
1026
|
return unwrap(await handleTermCreate(ec.db, args.taxonomy, {
|
|
1027
1027
|
slug: args.slug,
|
|
1028
1028
|
label: args.label,
|
|
@@ -1051,7 +1051,7 @@ function createMcpServer() {
|
|
|
1051
1051
|
requireRole(extra, Role.EDITOR);
|
|
1052
1052
|
const ec = getEmDash(extra);
|
|
1053
1053
|
try {
|
|
1054
|
-
const { handleTermUpdate } = await import("../../../taxonomies-
|
|
1054
|
+
const { handleTermUpdate } = await import("../../../taxonomies-UusDXv3C.mjs").then((n) => n.l);
|
|
1055
1055
|
return unwrap(await handleTermUpdate(ec.db, args.taxonomy, args.termSlug, {
|
|
1056
1056
|
slug: args.slug,
|
|
1057
1057
|
label: args.label,
|
|
@@ -1075,7 +1075,7 @@ function createMcpServer() {
|
|
|
1075
1075
|
requireRole(extra, Role.EDITOR);
|
|
1076
1076
|
const ec = getEmDash(extra);
|
|
1077
1077
|
try {
|
|
1078
|
-
const { handleTermDelete } = await import("../../../taxonomies-
|
|
1078
|
+
const { handleTermDelete } = await import("../../../taxonomies-UusDXv3C.mjs").then((n) => n.l);
|
|
1079
1079
|
return unwrap(await handleTermDelete(ec.db, args.taxonomy, args.termSlug));
|
|
1080
1080
|
} catch (error) {
|
|
1081
1081
|
return respondHandlerError(error, "TAXONOMY_TERM_DELETE_ERROR");
|
|
@@ -1090,7 +1090,7 @@ function createMcpServer() {
|
|
|
1090
1090
|
requireScope(extra, "content:read");
|
|
1091
1091
|
const ec = getEmDash(extra);
|
|
1092
1092
|
try {
|
|
1093
|
-
const { handleTermTranslations } = await import("../../../taxonomies-
|
|
1093
|
+
const { handleTermTranslations } = await import("../../../taxonomies-UusDXv3C.mjs").then((n) => n.l);
|
|
1094
1094
|
return unwrap(await handleTermTranslations(ec.db, args.id));
|
|
1095
1095
|
} catch (error) {
|
|
1096
1096
|
return respondHandlerError(error, "TERM_TRANSLATIONS_ERROR");
|
|
@@ -1105,7 +1105,7 @@ function createMcpServer() {
|
|
|
1105
1105
|
requireScope(extra, "content:read");
|
|
1106
1106
|
const ec = getEmDash(extra);
|
|
1107
1107
|
try {
|
|
1108
|
-
const { handleMenuList } = await import("../../../menus-
|
|
1108
|
+
const { handleMenuList } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1109
1109
|
return unwrap(await handleMenuList(ec.db, { locale: args.locale }));
|
|
1110
1110
|
} catch (error) {
|
|
1111
1111
|
return respondHandlerError(error, "MENU_LIST_ERROR");
|
|
@@ -1123,7 +1123,7 @@ function createMcpServer() {
|
|
|
1123
1123
|
requireScope(extra, "content:read");
|
|
1124
1124
|
const ec = getEmDash(extra);
|
|
1125
1125
|
try {
|
|
1126
|
-
const { handleMenuGet } = await import("../../../menus-
|
|
1126
|
+
const { handleMenuGet } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1127
1127
|
return unwrap(await handleMenuGet(ec.db, args.name, { locale: args.locale }));
|
|
1128
1128
|
} catch (error) {
|
|
1129
1129
|
return respondHandlerError(error, "MENU_GET_ERROR");
|
|
@@ -1138,7 +1138,7 @@ function createMcpServer() {
|
|
|
1138
1138
|
requireScope(extra, "content:read");
|
|
1139
1139
|
const ec = getEmDash(extra);
|
|
1140
1140
|
try {
|
|
1141
|
-
const { handleMenuTranslations } = await import("../../../menus-
|
|
1141
|
+
const { handleMenuTranslations } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1142
1142
|
return unwrap(await handleMenuTranslations(ec.db, args.id));
|
|
1143
1143
|
} catch (error) {
|
|
1144
1144
|
return respondHandlerError(error, "MENU_TRANSLATIONS_ERROR");
|
|
@@ -1158,7 +1158,7 @@ function createMcpServer() {
|
|
|
1158
1158
|
requireRole(extra, Role.EDITOR);
|
|
1159
1159
|
const ec = getEmDash(extra);
|
|
1160
1160
|
try {
|
|
1161
|
-
const { handleMenuCreate } = await import("../../../menus-
|
|
1161
|
+
const { handleMenuCreate } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1162
1162
|
return unwrap(await handleMenuCreate(ec.db, {
|
|
1163
1163
|
name: args.name,
|
|
1164
1164
|
label: args.label,
|
|
@@ -1182,7 +1182,7 @@ function createMcpServer() {
|
|
|
1182
1182
|
requireRole(extra, Role.EDITOR);
|
|
1183
1183
|
const ec = getEmDash(extra);
|
|
1184
1184
|
try {
|
|
1185
|
-
const { handleMenuUpdate } = await import("../../../menus-
|
|
1185
|
+
const { handleMenuUpdate } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1186
1186
|
return unwrap(await handleMenuUpdate(ec.db, args.name, {
|
|
1187
1187
|
label: args.label,
|
|
1188
1188
|
locale: args.locale
|
|
@@ -1204,7 +1204,7 @@ function createMcpServer() {
|
|
|
1204
1204
|
requireRole(extra, Role.EDITOR);
|
|
1205
1205
|
const ec = getEmDash(extra);
|
|
1206
1206
|
try {
|
|
1207
|
-
const { handleMenuDelete } = await import("../../../menus-
|
|
1207
|
+
const { handleMenuDelete } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1208
1208
|
return unwrap(await handleMenuDelete(ec.db, args.name, { locale: args.locale }));
|
|
1209
1209
|
} catch (error) {
|
|
1210
1210
|
return respondHandlerError(error, "MENU_DELETE_ERROR");
|
|
@@ -1239,7 +1239,7 @@ function createMcpServer() {
|
|
|
1239
1239
|
requireRole(extra, Role.EDITOR);
|
|
1240
1240
|
const ec = getEmDash(extra);
|
|
1241
1241
|
try {
|
|
1242
|
-
const { handleMenuSetItems } = await import("../../../menus-
|
|
1242
|
+
const { handleMenuSetItems } = await import("../../../menus-DX4_E01q.mjs").then((n) => n.d);
|
|
1243
1243
|
return unwrap(await handleMenuSetItems(ec.db, args.name, args.items, { locale: args.locale }));
|
|
1244
1244
|
} catch (error) {
|
|
1245
1245
|
return respondHandlerError(error, "MENU_SET_ITEMS_ERROR");
|
|
@@ -1286,7 +1286,7 @@ function createMcpServer() {
|
|
|
1286
1286
|
requireRole(extra, Role.EDITOR);
|
|
1287
1287
|
const ec = getEmDash(extra);
|
|
1288
1288
|
try {
|
|
1289
|
-
const { handleSettingsGet } = await import("../../../settings-
|
|
1289
|
+
const { handleSettingsGet } = await import("../../../settings-DIsbHTRE.mjs").then((n) => n.r);
|
|
1290
1290
|
return unwrap(await handleSettingsGet(ec.db, ec.storage));
|
|
1291
1291
|
} catch (error) {
|
|
1292
1292
|
return respondHandlerError(error, "SETTINGS_READ_ERROR");
|
|
@@ -1312,7 +1312,7 @@ function createMcpServer() {
|
|
|
1312
1312
|
requireRole(extra, Role.ADMIN);
|
|
1313
1313
|
const ec = getEmDash(extra);
|
|
1314
1314
|
try {
|
|
1315
|
-
const { handleSettingsUpdate } = await import("../../../settings-
|
|
1315
|
+
const { handleSettingsUpdate } = await import("../../../settings-DIsbHTRE.mjs").then((n) => n.r);
|
|
1316
1316
|
return unwrap(await handleSettingsUpdate(ec.db, ec.storage, args));
|
|
1317
1317
|
} catch (error) {
|
|
1318
1318
|
return respondHandlerError(error, "SETTINGS_UPDATE_ERROR");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import { Vt as mediaConfirmBody } from "../../../../../redirects-
|
|
6
|
-
import "../../../../../byline-fields-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
5
|
+
import { Vt as mediaConfirmBody } from "../../../../../redirects-DEygMrRO.mjs";
|
|
6
|
+
import "../../../../../byline-fields-51kg6Vuv.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-
|
|
8
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-C_8t2KGa.mjs";
|
|
9
9
|
import { MediaRepository } from "emdash";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/media/[id]/confirm.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
5
|
-
import { Yt as mediaUpdateBody } from "../../../../redirects-
|
|
6
|
-
import "../../../../byline-fields-
|
|
2
|
+
import "../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-CrGndy1A.mjs";
|
|
5
|
+
import { Yt as mediaUpdateBody } from "../../../../redirects-DEygMrRO.mjs";
|
|
6
|
+
import "../../../../byline-fields-51kg6Vuv.mjs";
|
|
7
7
|
import "../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-
|
|
8
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../authorize-C_8t2KGa.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/media/[id].ts
|
|
11
11
|
const prerender = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { r as handleError, t as apiError } from "../../../../../error-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/media/file/[...key].ts
|
|
6
6
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
2
|
+
import "../../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as requirePerm } from "../../../../../../authorize-C_8t2KGa.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/[providerId]/[itemId].ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
2
|
+
import "../../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as requirePerm } from "../../../../../../authorize-C_8t2KGa.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/[providerId]/index.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { n as apiSuccess, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as apiSuccess, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as requirePerm } from "../../../../../authorize-C_8t2KGa.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/media/providers/index.ts
|
|
7
7
|
const prerender = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../types-
|
|
2
|
+
import "../../../../types-BXSUSAjt.mjs";
|
|
3
3
|
import { n as normalizeMime, t as matchesMimeAllowlist } from "../../../../mime-CCEzze7W.mjs";
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../parse-
|
|
6
|
-
import { Xt as mediaUploadUrlBody, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../../redirects-
|
|
7
|
-
import "../../../../byline-fields-
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Xt as mediaUploadUrlBody, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../../redirects-DEygMrRO.mjs";
|
|
7
|
+
import "../../../../byline-fields-51kg6Vuv.mjs";
|
|
8
8
|
import "../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../authorize-C_8t2KGa.mjs";
|
|
10
10
|
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../../media-allowlist-CMcoYIjQ.mjs";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
import * as path from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../types-
|
|
3
|
-
import { t as MediaRepository } from "../../../media-
|
|
2
|
+
import "../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { t as MediaRepository } from "../../../media-JOf3pNkw.mjs";
|
|
4
4
|
import { t as generatePlaceholder } from "../../../placeholder-BZxr8W1j.mjs";
|
|
5
5
|
import { n as normalizeMime, t as matchesMimeAllowlist } from "../../../mime-CCEzze7W.mjs";
|
|
6
6
|
import { t as computeContentHash } from "../../../hash-9w3pd3-m.mjs";
|
|
7
|
-
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../error-
|
|
8
|
-
import { i as parseQuery, t as isParseError } from "../../../parse-
|
|
9
|
-
import { Bt as formatFileSize, Gt as mediaListQuery, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../redirects-
|
|
10
|
-
import "../../../byline-fields-
|
|
7
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../error-RwM4dD35.mjs";
|
|
8
|
+
import { i as parseQuery, t as isParseError } from "../../../parse-CrGndy1A.mjs";
|
|
9
|
+
import { Bt as formatFileSize, Gt as mediaListQuery, zt as DEFAULT_MAX_UPLOAD_SIZE } from "../../../redirects-DEygMrRO.mjs";
|
|
10
|
+
import "../../../byline-fields-51kg6Vuv.mjs";
|
|
11
11
|
import "../../../api/schemas/index.mjs";
|
|
12
|
-
import { n as requirePerm } from "../../../authorize-
|
|
12
|
+
import { n as requirePerm } from "../../../authorize-C_8t2KGa.mjs";
|
|
13
13
|
import { n as resolveFieldAllowlist, t as GLOBAL_UPLOAD_ALLOWLIST } from "../../../media-allowlist-CMcoYIjQ.mjs";
|
|
14
14
|
import { ulid } from "ulidx";
|
|
15
15
|
import * as path from "node:path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import { a as handleMenuItemDelete, s as handleMenuItemUpdate } from "../../../../../../menus-
|
|
4
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../../../byline-fields-
|
|
2
|
+
import "../../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { a as handleMenuItemDelete, s as handleMenuItemUpdate } from "../../../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Pn as localeFilterQuery, lt as updateMenuItemBody } from "../../../../../../redirects-DEygMrRO.mjs";
|
|
7
|
+
import "../../../../../../byline-fields-51kg6Vuv.mjs";
|
|
8
8
|
import "../../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../../authorize-C_8t2KGa.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/menus/[name]/items/[id].ts
|
|
12
12
|
const prerender = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { i as handleMenuItemCreate } from "../../../../../menus-
|
|
4
|
-
import { a as unwrapResult, r as handleError } from "../../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../../byline-fields-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { i as handleMenuItemCreate } from "../../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, r as handleError } from "../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Pn as localeFilterQuery, et as createMenuItemBody } from "../../../../../redirects-DEygMrRO.mjs";
|
|
7
|
+
import "../../../../../byline-fields-51kg6Vuv.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../authorize-C_8t2KGa.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/menus/[name]/items.ts
|
|
12
12
|
const prerender = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { o as handleMenuItemReorder } from "../../../../../menus-
|
|
4
|
-
import { a as unwrapResult, r as handleError } from "../../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../../byline-fields-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { o as handleMenuItemReorder } from "../../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, r as handleError } from "../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Pn as localeFilterQuery, st as reorderMenuItemsBody } from "../../../../../redirects-DEygMrRO.mjs";
|
|
7
|
+
import "../../../../../byline-fields-51kg6Vuv.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../authorize-C_8t2KGa.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/menus/[name]/reorder.ts
|
|
12
12
|
const prerender = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { l as handleMenuTranslations, r as handleMenuGet, t as handleMenuCreate } from "../../../../../menus-
|
|
4
|
-
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../../byline-fields-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { l as handleMenuTranslations, r as handleMenuGet, t as handleMenuCreate } from "../../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, i as requireDb, r as handleError } from "../../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Pn as localeFilterQuery } from "../../../../../redirects-DEygMrRO.mjs";
|
|
7
|
+
import "../../../../../byline-fields-51kg6Vuv.mjs";
|
|
8
8
|
import "../../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../../authorize-C_8t2KGa.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/menus/[name]/translations.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../types-
|
|
3
|
-
import { n as handleMenuDelete, r as handleMenuGet, u as handleMenuUpdate } from "../../../../menus-
|
|
4
|
-
import { a as unwrapResult, r as handleError } from "../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-
|
|
6
|
-
import {
|
|
7
|
-
import "../../../../byline-fields-
|
|
2
|
+
import "../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { n as handleMenuDelete, r as handleMenuGet, u as handleMenuUpdate } from "../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, r as handleError } from "../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { Pn as localeFilterQuery, ct as updateMenuBody } from "../../../../redirects-DEygMrRO.mjs";
|
|
7
|
+
import "../../../../byline-fields-51kg6Vuv.mjs";
|
|
8
8
|
import "../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../authorize-C_8t2KGa.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/menus/[name].ts
|
|
12
12
|
const prerender = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../types-
|
|
3
|
-
import { c as handleMenuList, t as handleMenuCreate } from "../../../../menus-
|
|
4
|
-
import { a as unwrapResult, r as handleError } from "../../../../error-
|
|
5
|
-
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-
|
|
6
|
-
import { $ as createMenuBody,
|
|
7
|
-
import "../../../../byline-fields-
|
|
2
|
+
import "../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { c as handleMenuList, t as handleMenuCreate } from "../../../../menus-DX4_E01q.mjs";
|
|
4
|
+
import { a as unwrapResult, r as handleError } from "../../../../error-RwM4dD35.mjs";
|
|
5
|
+
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../parse-CrGndy1A.mjs";
|
|
6
|
+
import { $ as createMenuBody, Pn as localeFilterQuery } from "../../../../redirects-DEygMrRO.mjs";
|
|
7
|
+
import "../../../../byline-fields-51kg6Vuv.mjs";
|
|
8
8
|
import "../../../../api/schemas/index.mjs";
|
|
9
|
-
import { n as requirePerm } from "../../../../authorize-
|
|
9
|
+
import { n as requirePerm } from "../../../../authorize-C_8t2KGa.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/routes/api/menus/index.ts
|
|
12
12
|
const prerender = false;
|
|
@@ -3,7 +3,7 @@ import { n as VALID_SCOPES } from "../../../../api-tokens-B6VgoE6M.mjs";
|
|
|
3
3
|
import { t as escapeHtml } from "../../../../escape-bIyGoW5W.mjs";
|
|
4
4
|
import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "../../../../oauth-clients-8mPDStMv.mjs";
|
|
5
5
|
import "../../../../oauth-user-lookup-BdDSDvjF.mjs";
|
|
6
|
-
import { n as handleAuthorizationApproval, t as buildDeniedRedirect } from "../../../../oauth-authorization-
|
|
6
|
+
import { n as handleAuthorizationApproval, t as buildDeniedRedirect } from "../../../../oauth-authorization-1aPAYjiC.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/oauth/authorize.ts
|
|
9
9
|
const prerender = false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
5
5
|
import "../../../../../api-tokens-B6VgoE6M.mjs";
|
|
6
6
|
import "../../../../../oauth-user-lookup-BdDSDvjF.mjs";
|
|
7
|
-
import { t as handleDeviceAuthorize } from "../../../../../device-flow-
|
|
7
|
+
import { t as handleDeviceAuthorize } from "../../../../../device-flow-s6_q3T7A.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/oauth/device/authorize.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
5
5
|
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-B4AfnoAp.mjs";
|
|
6
6
|
import { n as getPublicOrigin } from "../../../../../public-url-egRHCy1m.mjs";
|
|
7
7
|
import "../../../../../api-tokens-B6VgoE6M.mjs";
|
|
8
8
|
import "../../../../../oauth-user-lookup-BdDSDvjF.mjs";
|
|
9
|
-
import { n as handleDeviceCodeRequest } from "../../../../../device-flow-
|
|
10
|
-
import { n as getClientIp, r as rateLimitResponse, t as checkRateLimit } from "../../../../../rate-limit-
|
|
9
|
+
import { n as handleDeviceCodeRequest } from "../../../../../device-flow-s6_q3T7A.mjs";
|
|
10
|
+
import { n as getClientIp, r as rateLimitResponse, t as checkRateLimit } from "../../../../../rate-limit-ClFFUga6.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/api/oauth/device/code.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
2
|
+
import "../../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { a as unwrapResult, r as handleError, t as apiError } from "../../../../../error-RwM4dD35.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-CrGndy1A.mjs";
|
|
5
5
|
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-B4AfnoAp.mjs";
|
|
6
6
|
import "../../../../../api-tokens-B6VgoE6M.mjs";
|
|
7
7
|
import "../../../../../oauth-user-lookup-BdDSDvjF.mjs";
|
|
8
|
-
import { r as handleDeviceTokenExchange } from "../../../../../device-flow-
|
|
9
|
-
import { n as getClientIp, r as rateLimitResponse, t as checkRateLimit } from "../../../../../rate-limit-
|
|
8
|
+
import { r as handleDeviceTokenExchange } from "../../../../../device-flow-s6_q3T7A.mjs";
|
|
9
|
+
import { n as getClientIp, r as rateLimitResponse, t as checkRateLimit } from "../../../../../rate-limit-ClFFUga6.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/oauth/device/token.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../../base64-CqR-7kqF.mjs";
|
|
2
|
-
import "../../../../types-
|
|
3
|
-
import { r as handleError, t as apiError } from "../../../../error-
|
|
2
|
+
import "../../../../types-BXSUSAjt.mjs";
|
|
3
|
+
import { r as handleError, t as apiError } from "../../../../error-RwM4dD35.mjs";
|
|
4
4
|
import { t as handleOAuthClientCreate } from "../../../../oauth-clients-8mPDStMv.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/astro/routes/api/oauth/register.ts
|