emdash 1.5.0 → 1.6.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/action-token-DyXQ5VhB.mjs +26 -0
- package/dist/action-token-DyXQ5VhB.mjs.map +1 -0
- package/dist/activation-BRmrunZ3.mjs +387 -0
- package/dist/activation-BRmrunZ3.mjs.map +1 -0
- package/dist/adapters-CMuwJgdX.d.mts +173 -0
- package/dist/adapters-CMuwJgdX.d.mts.map +1 -0
- package/dist/after-B8cG5P6f.mjs +53 -0
- package/dist/after-B8cG5P6f.mjs.map +1 -0
- package/dist/allowed-origins-CUNAP6hl.mjs +116 -0
- package/dist/allowed-origins-CUNAP6hl.mjs.map +1 -0
- package/dist/api/route-utils.d.mts +4 -4
- package/dist/api/route-utils.mjs +6 -5
- package/dist/api/route-utils.mjs.map +1 -1
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +7 -7
- package/dist/api-tokens-BIwfh_Ke.mjs +173 -0
- package/dist/api-tokens-BIwfh_Ke.mjs.map +1 -0
- package/dist/apply-CmE9k57Q.mjs +1774 -0
- package/dist/apply-CmE9k57Q.mjs.map +1 -0
- package/dist/approvals-DbCK12-7.mjs +460 -0
- package/dist/approvals-DbCK12-7.mjs.map +1 -0
- package/dist/artifact-fetch-DXHP2vKC.mjs +659 -0
- package/dist/artifact-fetch-DXHP2vKC.mjs.map +1 -0
- package/dist/artifacts-a_0bb4Ks.mjs +323 -0
- package/dist/artifacts-a_0bb4Ks.mjs.map +1 -0
- package/dist/astro/image-endpoint.d.mts.map +1 -1
- package/dist/astro/image-endpoint.mjs +12 -4
- package/dist/astro/image-endpoint.mjs.map +1 -1
- package/dist/astro/index.d.mts +17 -17
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +28 -12
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +17 -15
- package/dist/astro/middleware/auth.d.mts.map +1 -1
- package/dist/astro/middleware/auth.mjs +31 -20
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware/media-usage-write-fence.mjs +2 -2
- package/dist/astro/middleware/redirect.d.mts +2 -1
- package/dist/astro/middleware/redirect.d.mts.map +1 -1
- package/dist/astro/middleware/redirect.mjs +29 -19
- package/dist/astro/middleware/redirect.mjs.map +1 -1
- package/dist/astro/middleware/request-context.d.mts.map +1 -1
- package/dist/astro/middleware/request-context.mjs +6 -5
- package/dist/astro/middleware/request-context.mjs.map +1 -1
- package/dist/astro/middleware.d.mts +19 -21
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +179 -129
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/PluginRegistry.d.mts +2 -3
- package/dist/astro/routes/PluginRegistry.d.mts.map +1 -1
- package/dist/astro/routes/PluginRegistry.mjs +1 -1
- package/dist/astro/routes/PluginRegistry.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
- 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 +4 -5
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/_slug_.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +8 -11
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +7 -9
- package/dist/astro/routes/api/admin/byline-fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +6 -7
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -10
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +10 -12
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_.mjs +7 -8
- package/dist/astro/routes/api/admin/comments/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/bulk.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/counts.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/index.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/core-update.mjs +6 -6
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +3 -3
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- package/dist/astro/routes/api/admin/media-usage/activation.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/activation.mjs +8 -10
- package/dist/astro/routes/api/admin/media-usage/activation.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +7 -8
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +7 -8
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/progress.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/progress.mjs +6 -8
- package/dist/astro/routes/api/admin/media-usage/progress.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/repair.mjs +6 -7
- package/dist/astro/routes/api/admin/media-usage/repair.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs +7 -8
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +7 -8
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs.map +1 -1
- 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 +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +5 -5
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +9 -8
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +8 -7
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +7 -7
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +14 -13
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +10 -10
- package/dist/astro/routes/api/admin/plugins/registry/publisher-handle.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/registry/verify.mjs +8 -8
- package/dist/astro/routes/api/admin/plugins/updates.mjs +7 -7
- package/dist/astro/routes/api/admin/scheduled-policy-rejections/_collection_/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +3 -3
- package/dist/astro/routes/api/admin/transfer/_...path_.mjs +1 -1
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs +7 -8
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs +7 -8
- package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/approvals/index.mjs +9 -10
- package/dist/astro/routes/api/admin/transfer/approvals/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/capabilities.mjs +9 -10
- package/dist/astro/routes/api/admin/transfer/capabilities.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs +9 -10
- package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs +9 -10
- package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs +9 -10
- package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/transfer/exports/index.mjs +11 -13
- package/dist/astro/routes/api/admin/transfer/exports/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs +10 -11
- package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs +11 -12
- package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs +9 -10
- package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs +10 -11
- package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs +8 -9
- package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/index.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/transfer/imports/index.mjs +13 -15
- package/dist/astro/routes/api/admin/transfer/imports/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +4 -4
- package/dist/astro/routes/api/admin/users/index.mjs +3 -3
- package/dist/astro/routes/api/auth/dev-bypass.mjs +2 -2
- package/dist/astro/routes/api/auth/handover.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +10 -9
- package/dist/astro/routes/api/auth/invite/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- 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.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +7 -6
- package/dist/astro/routes/api/auth/magic-link/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/me.mjs +4 -4
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +6 -5
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs.map +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +7 -7
- package/dist/astro/routes/api/auth/passkey/verify.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -9
- package/dist/astro/routes/api/auth/passkey/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/complete.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/signup/complete.mjs +10 -9
- package/dist/astro/routes/api/auth/signup/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/register-options.d.mts +8 -0
- package/dist/astro/routes/api/auth/signup/register-options.d.mts.map +1 -0
- package/dist/astro/routes/api/auth/signup/register-options.mjs +44 -0
- package/dist/astro/routes/api/auth/signup/register-options.mjs.map +1 -0
- package/dist/astro/routes/api/auth/signup/request.mjs +7 -7
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/calendar.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +6 -7
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs.map +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.d.mts.map +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +11 -12
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +9 -10
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -7
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/lock.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/publish.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +9 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +6 -7
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +6 -7
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.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/editors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/room.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +16 -19
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +9 -10
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +19 -19
- package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +6 -6
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/dev/scheduled-tasks.mjs +4 -3
- package/dist/astro/routes/api/dev/scheduled-tasks.mjs.map +1 -1
- package/dist/astro/routes/api/health.mjs +3 -3
- package/dist/astro/routes/api/import/probe.d.mts +4 -4
- package/dist/astro/routes/api/import/probe.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/analyze.d.mts +3 -3
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +16 -16
- package/dist/astro/routes/api/import/wordpress/execute.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.d.mts +15 -15
- package/dist/astro/routes/api/import/wordpress/media.d.mts.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.mjs +9 -8
- package/dist/astro/routes/api/import/wordpress/media.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +16 -16
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +16 -16
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +13 -13
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +84 -77
- package/dist/astro/routes/api/mcp.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.mjs +7 -7
- package/dist/astro/routes/api/media/_id_/replace.d.mts.map +1 -1
- package/dist/astro/routes/api/media/_id_/replace.mjs +8 -6
- package/dist/astro/routes/api/media/_id_/replace.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/upload.mjs +5 -5
- package/dist/astro/routes/api/media/_id_/usage.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/media/_id_.mjs +11 -8
- package/dist/astro/routes/api/media/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/media/asset/_id_/_filename_.mjs +3 -3
- package/dist/astro/routes/api/media/file/_...key_.d.mts.map +1 -1
- package/dist/astro/routes/api/media/file/_...key_.mjs +7 -5
- package/dist/astro/routes/api/media/file/_...key_.mjs.map +1 -1
- package/dist/astro/routes/api/media/folders/_id_.mjs +5 -5
- package/dist/astro/routes/api/media/folders/index.mjs +5 -5
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.d.mts.map +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +10 -4
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs.map +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +7 -7
- package/dist/astro/routes/api/media.mjs +9 -9
- package/dist/astro/routes/api/menus/_name_/items/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +8 -6
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items.mjs +7 -6
- package/dist/astro/routes/api/menus/_name_/items.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +7 -6
- package/dist/astro/routes/api/menus/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/translations.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_/translations.mjs +7 -9
- package/dist/astro/routes/api/menus/_name_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/_name_.mjs +9 -6
- package/dist/astro/routes/api/menus/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/index.d.mts.map +1 -1
- package/dist/astro/routes/api/menus/index.mjs +8 -6
- package/dist/astro/routes/api/menus/index.mjs.map +1 -1
- package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/code.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/token.mjs +5 -5
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
- package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
- package/dist/astro/routes/api/oauth/token.mjs +4 -4
- package/dist/astro/routes/api/openapi.json.mjs +9 -9
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +2 -2
- package/dist/astro/routes/api/redirects/404s/index.d.mts.map +1 -1
- package/dist/astro/routes/api/redirects/404s/index.mjs +8 -11
- package/dist/astro/routes/api/redirects/404s/index.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -7
- package/dist/astro/routes/api/redirects/404s/summary.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +9 -12
- package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/index.d.mts.map +1 -1
- package/dist/astro/routes/api/redirects/index.mjs +8 -10
- package/dist/astro/routes/api/redirects/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/_id_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/relations/_id_/index.mjs +8 -11
- package/dist/astro/routes/api/relations/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/index.d.mts.map +1 -1
- package/dist/astro/routes/api/relations/index.mjs +7 -9
- package/dist/astro/routes/api/relations/index.mjs.map +1 -1
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +6 -6
- package/dist/astro/routes/api/schema/block-types/_slug_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs +7 -9
- package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs +6 -7
- package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs.map +1 -1
- package/dist/astro/routes/api/schema/block-types/index.d.mts.map +1 -1
- package/dist/astro/routes/api/schema/block-types/index.mjs +7 -9
- package/dist/astro/routes/api/schema/block-types/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.d.mts.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +8 -11
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.d.mts.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +7 -9
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +6 -7
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +8 -11
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.d.mts.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +7 -9
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/reorder.mjs +6 -7
- package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +4 -5
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +6 -7
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +4 -5
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.d.mts.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +8 -5
- package/dist/astro/routes/api/search/enable.mjs.map +1 -1
- package/dist/astro/routes/api/search/index.d.mts.map +1 -1
- package/dist/astro/routes/api/search/index.mjs +7 -4
- package/dist/astro/routes/api/search/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/rebuild.d.mts.map +1 -1
- package/dist/astro/routes/api/search/rebuild.mjs +8 -5
- package/dist/astro/routes/api/search/rebuild.mjs.map +1 -1
- package/dist/astro/routes/api/search/stats.d.mts.map +1 -1
- package/dist/astro/routes/api/search/stats.mjs +6 -3
- package/dist/astro/routes/api/search/stats.mjs.map +1 -1
- package/dist/astro/routes/api/search/suggest.d.mts.map +1 -1
- package/dist/astro/routes/api/search/suggest.mjs +7 -4
- package/dist/astro/routes/api/search/suggest.mjs.map +1 -1
- package/dist/astro/routes/api/sections/_slug_.d.mts.map +1 -1
- package/dist/astro/routes/api/sections/_slug_.mjs +8 -11
- package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/sections/index.d.mts.map +1 -1
- package/dist/astro/routes/api/sections/index.mjs +7 -9
- package/dist/astro/routes/api/sections/index.mjs.map +1 -1
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +3 -3
- package/dist/astro/routes/api/settings/backups/export.mjs +4 -4
- package/dist/astro/routes/api/settings/backups/index.mjs +5 -5
- package/dist/astro/routes/api/settings/domain-notify.mjs +6 -6
- package/dist/astro/routes/api/settings/domain.mjs +6 -6
- package/dist/astro/routes/api/settings/email.mjs +5 -5
- package/dist/astro/routes/api/settings.mjs +5 -5
- package/dist/astro/routes/api/setup/admin-verify.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/admin-verify.mjs +12 -11
- package/dist/astro/routes/api/setup/admin-verify.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin.mjs +7 -7
- package/dist/astro/routes/api/setup/dev-bypass.mjs +8 -8
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +8 -8
- package/dist/astro/routes/api/setup/status.mjs +2 -2
- package/dist/astro/routes/api/site/domain-proof.mjs +2 -2
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +6 -7
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +7 -9
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +9 -12
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +7 -9
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +6 -7
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_.mjs +9 -12
- package/dist/astro/routes/api/taxonomies/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/bulk-tag.mjs +12 -13
- package/dist/astro/routes/api/taxonomies/bulk-tag.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/index.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/index.mjs +8 -10
- package/dist/astro/routes/api/taxonomies/index.mjs.map +1 -1
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/visual-editing/action-token.mjs +3 -3
- package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs +3 -3
- package/dist/astro/routes/api/visual-editing/toolbar-labels.mjs +1 -1
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +6 -5
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +8 -6
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +7 -6
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.mjs +6 -4
- package/dist/astro/routes/api/widget-areas/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/index.d.mts.map +1 -1
- package/dist/astro/routes/api/widget-areas/index.mjs +8 -6
- package/dist/astro/routes/api/widget-areas/index.mjs.map +1 -1
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +2 -2
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +5 -5
- package/dist/astro/routes/sitemap.xml.mjs +3 -3
- package/dist/astro/types.d.mts +82 -69
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/auth/providers/microsoft.d.mts +1 -1
- package/dist/authoritative-records-DFHFmreO.mjs +5183 -0
- package/dist/authoritative-records-DFHFmreO.mjs.map +1 -0
- package/dist/authorize-6a0h5NN5.mjs +74 -0
- package/dist/authorize-6a0h5NN5.mjs.map +1 -0
- package/dist/backup-GBRxixs1.mjs +246 -0
- package/dist/backup-GBRxixs1.mjs.map +1 -0
- package/dist/block-types-BeLZ85Sw.mjs +132 -0
- package/dist/block-types-BeLZ85Sw.mjs.map +1 -0
- package/dist/block-values-BRJZHvF4.mjs +215 -0
- package/dist/block-values-BRJZHvF4.mjs.map +1 -0
- package/dist/byline-BufjxQyd.mjs +930 -0
- package/dist/byline-BufjxQyd.mjs.map +1 -0
- package/dist/byline-fields-Bw7z2opJ.mjs +123 -0
- package/dist/byline-fields-Bw7z2opJ.mjs.map +1 -0
- package/dist/byline-registry-edmv55U7.mjs +406 -0
- package/dist/byline-registry-edmv55U7.mjs.map +1 -0
- package/dist/bylines-C8ZT6iWw.mjs +234 -0
- package/dist/bylines-C8ZT6iWw.mjs.map +1 -0
- package/dist/bylines-a01JW9yq.mjs +150 -0
- package/dist/bylines-a01JW9yq.mjs.map +1 -0
- package/dist/cache-LOb3NthC.mjs +151 -0
- package/dist/cache-LOb3NthC.mjs.map +1 -0
- package/dist/canonical-CUkatNPc.mjs +174 -0
- package/dist/canonical-CUkatNPc.mjs.map +1 -0
- package/dist/capture-triggers-BK2pp_kZ.mjs +362 -0
- package/dist/capture-triggers-BK2pp_kZ.mjs.map +1 -0
- package/dist/checksum-C8lkApUe.mjs +162 -0
- package/dist/checksum-C8lkApUe.mjs.map +1 -0
- package/dist/chunks-CvgCLYip.mjs +25 -0
- package/dist/chunks-CvgCLYip.mjs.map +1 -0
- package/dist/cli/index.mjs +24 -24
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +63 -63
- package/dist/client/index.d.mts.map +1 -1
- package/dist/client/index.mjs +6 -4
- package/dist/client/index.mjs.map +1 -1
- package/dist/collection-slugs-cache-CLR_8fY5.mjs +91 -0
- package/dist/collection-slugs-cache-CLR_8fY5.mjs.map +1 -0
- package/dist/comment-C163Gl_4.mjs +335 -0
- package/dist/comment-C163Gl_4.mjs.map +1 -0
- package/dist/comment-reaction-1Df3G-ij.mjs +85 -0
- package/dist/comment-reaction-1Df3G-ij.mjs.map +1 -0
- package/dist/comments-BFyw2y-m.mjs +99 -0
- package/dist/comments-BFyw2y-m.mjs.map +1 -0
- package/dist/comments-D73Sy_2U.mjs +195 -0
- package/dist/comments-D73Sy_2U.mjs.map +1 -0
- package/dist/components-DjV1sxUL.mjs +112 -0
- package/dist/components-DjV1sxUL.mjs.map +1 -0
- package/dist/config-B27hvMjf.d.mts +7274 -0
- package/dist/config-B27hvMjf.d.mts.map +1 -0
- package/dist/config-DLzKVQBA.d.mts +41 -0
- package/dist/config-DLzKVQBA.d.mts.map +1 -0
- package/dist/config-DeluGa9H.mjs +228 -0
- package/dist/config-DeluGa9H.mjs.map +1 -0
- package/dist/connection-D6aKSo2Y.mjs +36 -0
- package/dist/connection-D6aKSo2Y.mjs.map +1 -0
- package/dist/content-2gjSbGP3.mjs +2295 -0
- package/dist/content-2gjSbGP3.mjs.map +1 -0
- package/dist/content-list-query-B9SlIDbL.d.mts +26 -0
- package/dist/content-list-query-B9SlIDbL.d.mts.map +1 -0
- package/dist/content-repair-Dizo4qiY.mjs +443 -0
- package/dist/content-repair-Dizo4qiY.mjs.map +1 -0
- package/dist/content-save-BKDTKmkx.mjs +202 -0
- package/dist/content-save-BKDTKmkx.mjs.map +1 -0
- package/dist/context-DCQrjN95.mjs +2242 -0
- package/dist/context-DCQrjN95.mjs.map +1 -0
- package/dist/credits-Bxp4F72g.mjs +110 -0
- package/dist/credits-Bxp4F72g.mjs.map +1 -0
- package/dist/cron-DEV8oz3R.mjs +310 -0
- package/dist/cron-DEV8oz3R.mjs.map +1 -0
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql-migrations.d.mts +1 -1
- package/dist/db/libsql-migrations.mjs +2 -2
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres-migrations.d.mts +1 -1
- package/dist/db/postgres-migrations.mjs +2 -2
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite-migrations.d.mts +1 -1
- package/dist/db/sqlite-migrations.mjs +2 -2
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/db/sqlite.mjs +1 -1
- package/dist/default-DKs7zP7m.mjs +81 -0
- package/dist/default-DKs7zP7m.mjs.map +1 -0
- package/dist/deferred-tasks-B5LQWb5F.d.mts +10 -0
- package/dist/deferred-tasks-B5LQWb5F.d.mts.map +1 -0
- package/dist/device-flow-D6kyi3jX.mjs +519 -0
- package/dist/device-flow-D6kyi3jX.mjs.map +1 -0
- package/dist/dialect-helpers-DRe1Y08G.mjs +355 -0
- package/dist/dialect-helpers-DRe1Y08G.mjs.map +1 -0
- package/dist/digest-DSsUd9oL.mjs +194 -0
- package/dist/digest-DSsUd9oL.mjs.map +1 -0
- package/dist/direct-executor-DAcU8MTG.mjs +117 -0
- package/dist/direct-executor-DAcU8MTG.mjs.map +1 -0
- package/dist/email-console-CBZpj1VI.mjs +50 -0
- package/dist/email-console-CBZpj1VI.mjs.map +1 -0
- package/dist/email-locale-CGjBa23b.mjs +25 -0
- package/dist/email-locale-CGjBa23b.mjs.map +1 -0
- package/dist/email-smtp-CE6nESRL.mjs +643 -0
- package/dist/email-smtp-CE6nESRL.mjs.map +1 -0
- package/dist/emdash-runtime-CF6KAut9.mjs +5576 -0
- package/dist/emdash-runtime-CF6KAut9.mjs.map +1 -0
- package/dist/enrich-C4vKniyi.mjs +203 -0
- package/dist/enrich-C4vKniyi.mjs.map +1 -0
- package/dist/entry-lock-DJgDNfMf.mjs +1230 -0
- package/dist/entry-lock-DJgDNfMf.mjs.map +1 -0
- package/dist/entry-lock-GKD0lJI5.mjs +207 -0
- package/dist/entry-lock-GKD0lJI5.mjs.map +1 -0
- package/dist/entry-locks-B58Q9LZh.mjs +173 -0
- package/dist/entry-locks-B58Q9LZh.mjs.map +1 -0
- package/dist/env-types-EL7WTMzr.mjs +38 -0
- package/dist/env-types-EL7WTMzr.mjs.map +1 -0
- package/dist/error-0Y0dFPxm.mjs +82 -0
- package/dist/error-0Y0dFPxm.mjs.map +1 -0
- package/dist/errors-OTWh4SC_.mjs +502 -0
- package/dist/errors-OTWh4SC_.mjs.map +1 -0
- package/dist/errors-u5rZhbVQ.mjs +120 -0
- package/dist/errors-u5rZhbVQ.mjs.map +1 -0
- package/dist/fence-CkdbSoZX.mjs +162 -0
- package/dist/fence-CkdbSoZX.mjs.map +1 -0
- package/dist/field-defs-cache-BW0Y9Wrp.mjs +79 -0
- package/dist/field-defs-cache-BW0Y9Wrp.mjs.map +1 -0
- package/dist/field-map-Bhqs6zUK.mjs +84 -0
- package/dist/field-map-Bhqs6zUK.mjs.map +1 -0
- package/dist/fts-manager-m8GPxogO.mjs +532 -0
- package/dist/fts-manager-m8GPxogO.mjs.map +1 -0
- package/dist/gc-CEhfEMLY.mjs +62 -0
- package/dist/gc-CEhfEMLY.mjs.map +1 -0
- package/dist/hook-result-CG0uHAT5.d.mts +31 -0
- package/dist/hook-result-CG0uHAT5.d.mts.map +1 -0
- package/dist/hook-result-mOyk-VCt.mjs +3855 -0
- package/dist/hook-result-mOyk-VCt.mjs.map +1 -0
- package/dist/hreflang-B1E64c5R.d.mts +51 -0
- package/dist/hreflang-B1E64c5R.d.mts.map +1 -0
- package/dist/hreflang-DaMRoUor.mjs +105 -0
- package/dist/hreflang-DaMRoUor.mjs.map +1 -0
- package/dist/http-route-dispatch-Y8bwyixm.mjs +348 -0
- package/dist/http-route-dispatch-Y8bwyixm.mjs.map +1 -0
- package/dist/identity-cqdOzgy9.mjs +35 -0
- package/dist/identity-cqdOzgy9.mjs.map +1 -0
- package/dist/index-CzbH8FX2.d.mts +261 -0
- package/dist/index-CzbH8FX2.d.mts.map +1 -0
- package/dist/index.d.mts +25 -25
- package/dist/index.mjs +60 -53
- package/dist/index.mjs.map +1 -1
- package/dist/install-finalization-B02IcpqW.mjs +58 -0
- package/dist/install-finalization-B02IcpqW.mjs.map +1 -0
- package/dist/json-recordset-2VNAgija.mjs +12 -0
- package/dist/json-recordset-2VNAgija.mjs.map +1 -0
- package/dist/json-schema-CnImQ4DF.mjs +15 -0
- package/dist/json-schema-CnImQ4DF.mjs.map +1 -0
- package/dist/keys-B5WUGmYK.mjs +61 -0
- package/dist/keys-B5WUGmYK.mjs.map +1 -0
- package/dist/kinds-DyAmbNrx.mjs +974 -0
- package/dist/kinds-DyAmbNrx.mjs.map +1 -0
- package/dist/lifecycle-1Nl01SeB.mjs +53 -0
- package/dist/lifecycle-1Nl01SeB.mjs.map +1 -0
- package/dist/limits-BuiMu9zx.mjs +44 -0
- package/dist/limits-BuiMu9zx.mjs.map +1 -0
- package/dist/load-CEt0TQ4_.mjs +36 -0
- package/dist/load-CEt0TQ4_.mjs.map +1 -0
- package/dist/loader-DF6J1Fpd.mjs +1537 -0
- package/dist/loader-DF6J1Fpd.mjs.map +1 -0
- package/dist/loops-3DdrfQ6y.mjs +217 -0
- package/dist/loops-3DdrfQ6y.mjs.map +1 -0
- package/dist/manifest-builder-Dcfqd9Aw.mjs +196 -0
- package/dist/manifest-builder-Dcfqd9Aw.mjs.map +1 -0
- package/dist/manifest-schema-Pi_JP_Wi.mjs +497 -0
- package/dist/manifest-schema-Pi_JP_Wi.mjs.map +1 -0
- package/dist/marketplace-BsMC_Z7o.mjs +257 -0
- package/dist/marketplace-BsMC_Z7o.mjs.map +1 -0
- package/dist/marketplace-D9fChLav.mjs +965 -0
- package/dist/marketplace-D9fChLav.mjs.map +1 -0
- package/dist/media/image-endpoint.d.mts +33 -1
- package/dist/media/image-endpoint.d.mts.map +1 -1
- package/dist/media/image-endpoint.mjs +77 -1
- package/dist/media/image-endpoint.mjs.map +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +17 -17
- package/dist/media/local-runtime.mjs +3 -3
- package/dist/media--P-IEycF.mjs +2813 -0
- package/dist/media--P-IEycF.mjs.map +1 -0
- package/dist/media-CTA82rU1.mjs +295 -0
- package/dist/media-CTA82rU1.mjs.map +1 -0
- package/dist/media-Cq_oKN_Y.mjs +425 -0
- package/dist/media-Cq_oKN_Y.mjs.map +1 -0
- package/dist/media-DRDkfiDv.d.mts +203 -0
- package/dist/media-DRDkfiDv.d.mts.map +1 -0
- package/dist/media-allowlist-C_kSleFj.mjs +103 -0
- package/dist/media-allowlist-C_kSleFj.mjs.map +1 -0
- package/dist/media-folders-Lc9Ks8az.mjs +205 -0
- package/dist/media-folders-Lc9Ks8az.mjs.map +1 -0
- package/dist/media-url-BEvOId4Z.mjs +43 -0
- package/dist/media-url-BEvOId4Z.mjs.map +1 -0
- package/dist/media-usage-D6LjfdGn.mjs +282 -0
- package/dist/media-usage-D6LjfdGn.mjs.map +1 -0
- package/dist/media-usage-activation-i6tqb6cn.mjs +78 -0
- package/dist/media-usage-activation-i6tqb6cn.mjs.map +1 -0
- package/dist/media-usage-work-C5HHgfEU.mjs +1036 -0
- package/dist/media-usage-work-C5HHgfEU.mjs.map +1 -0
- package/dist/media-usage-work-CxqS_Ny9.mjs +151 -0
- package/dist/media-usage-work-CxqS_Ny9.mjs.map +1 -0
- package/dist/menu-CvWToneO.mjs +420 -0
- package/dist/menu-CvWToneO.mjs.map +1 -0
- package/dist/menus-BzjHvAM4.mjs +434 -0
- package/dist/menus-BzjHvAM4.mjs.map +1 -0
- package/dist/menus-CnEw5nz8.mjs +92 -0
- package/dist/menus-CnEw5nz8.mjs.map +1 -0
- package/dist/menus-DoVbs2sn.mjs +433 -0
- package/dist/menus-DoVbs2sn.mjs.map +1 -0
- package/dist/migrations/index.d.mts +1 -1
- package/dist/migrations/index.mjs +2 -2
- package/dist/mime-C_YV5Mjm.mjs +90 -0
- package/dist/mime-C_YV5Mjm.mjs.map +1 -0
- package/dist/node-sqlite-compat-DHFDZMe2.mjs +68 -0
- package/dist/node-sqlite-compat-DHFDZMe2.mjs.map +1 -0
- package/dist/oauth-authorization-CvT-8KtG.mjs +287 -0
- package/dist/oauth-authorization-CvT-8KtG.mjs.map +1 -0
- package/dist/oauth-clients-ohsH0FlQ.mjs +266 -0
- package/dist/oauth-clients-ohsH0FlQ.mjs.map +1 -0
- package/dist/oauth-state-store-V4y2qZwD.mjs +80 -0
- package/dist/oauth-state-store-V4y2qZwD.mjs.map +1 -0
- package/dist/oauth-user-lookup-D2NTHxcr.mjs +26 -0
- package/dist/oauth-user-lookup-D2NTHxcr.mjs.map +1 -0
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/object-cache-I4Re7BOR.mjs +807 -0
- package/dist/object-cache-I4Re7BOR.mjs.map +1 -0
- package/dist/options-CbSYZAwr.d.mts +81 -0
- package/dist/options-CbSYZAwr.d.mts.map +1 -0
- package/dist/page/index.d.mts +2 -2
- package/dist/parse-BTfkfMuL.mjs +82 -0
- package/dist/parse-BTfkfMuL.mjs.map +1 -0
- package/dist/parse-CBM779p-.d.mts +180 -0
- package/dist/parse-CBM779p-.d.mts.map +1 -0
- package/dist/parts-i0nNljq-.mjs +68 -0
- package/dist/parts-i0nNljq-.mjs.map +1 -0
- package/dist/passkey-config-D9iYgt4G.mjs +46 -0
- package/dist/passkey-config-D9iYgt4G.mjs.map +1 -0
- package/dist/paths-B1TgS0ir.mjs +77 -0
- package/dist/paths-B1TgS0ir.mjs.map +1 -0
- package/dist/placeholder-PFMxMYTa.d.mts +316 -0
- package/dist/placeholder-PFMxMYTa.d.mts.map +1 -0
- package/dist/plan-DQoNgF2Y.mjs +135 -0
- package/dist/plan-DQoNgF2Y.mjs.map +1 -0
- package/dist/plugin-settings-CKffVNYE.mjs +162 -0
- package/dist/plugin-settings-CKffVNYE.mjs.map +1 -0
- package/dist/plugin-test-runtime.d.mts +23 -22
- package/dist/plugin-test-runtime.d.mts.map +1 -1
- package/dist/plugin-test-runtime.mjs +9 -8
- package/dist/plugin-types.d.mts +2 -2
- package/dist/plugin-utils.d.mts +15 -15
- package/dist/plugins/adapt-sandbox-entry.d.mts +15 -15
- package/dist/plugins/adapt-sandbox-entry.mjs +4 -4
- package/dist/plugins/host.d.mts +6 -6
- package/dist/plugins/host.mjs +8 -7
- package/dist/plugins-DDiWIA_N.mjs +261 -0
- package/dist/plugins-DDiWIA_N.mjs.map +1 -0
- package/dist/policy-72PGoCgJ.mjs +56 -0
- package/dist/policy-72PGoCgJ.mjs.map +1 -0
- package/dist/portable-text-D18C1jR6.mjs +457 -0
- package/dist/portable-text-D18C1jR6.mjs.map +1 -0
- package/dist/protocol-CbSoh3FE.d.mts +65 -0
- package/dist/protocol-CbSoh3FE.d.mts.map +1 -0
- package/dist/public-plugin-api-routes-Bq55wwHn.mjs +323 -0
- package/dist/public-plugin-api-routes-Bq55wwHn.mjs.map +1 -0
- package/dist/public-submission-BEcSmcWi.mjs +253 -0
- package/dist/public-submission-BEcSmcWi.mjs.map +1 -0
- package/dist/public-url-DYZMfvpa.mjs +123 -0
- package/dist/public-url-DYZMfvpa.mjs.map +1 -0
- package/dist/query-CslUTGOV.mjs +1221 -0
- package/dist/query-CslUTGOV.mjs.map +1 -0
- package/dist/query-Cv8bjIwl.mjs +41 -0
- package/dist/query-Cv8bjIwl.mjs.map +1 -0
- package/dist/range-CzdsIs-O.mjs +51 -0
- package/dist/range-CzdsIs-O.mjs.map +1 -0
- package/dist/rate-limit-iZgsy_oY.mjs +127 -0
- package/dist/rate-limit-iZgsy_oY.mjs.map +1 -0
- package/dist/receipt-CqxAacXn.mjs +43 -0
- package/dist/receipt-CqxAacXn.mjs.map +1 -0
- package/dist/redirect-3A3kqsD-.mjs +19 -0
- package/dist/redirect-3A3kqsD-.mjs.map +1 -0
- package/dist/redirect-DsaFuuQi.mjs +466 -0
- package/dist/redirect-DsaFuuQi.mjs.map +1 -0
- package/dist/redirect-paths-DgkkN0qJ.mjs +36 -0
- package/dist/redirect-paths-DgkkN0qJ.mjs.map +1 -0
- package/dist/redirects-DfvdrgF1.mjs +446 -0
- package/dist/redirects-DfvdrgF1.mjs.map +1 -0
- package/dist/redirects-Yo8YTJMV.mjs +148 -0
- package/dist/redirects-Yo8YTJMV.mjs.map +1 -0
- package/dist/registry/testing.mjs +2 -2
- package/dist/registry-2vAYgqCz.mjs +755 -0
- package/dist/registry-2vAYgqCz.mjs.map +1 -0
- package/dist/registry-COR9pjyi.mjs +1449 -0
- package/dist/registry-COR9pjyi.mjs.map +1 -0
- package/dist/registry-CSLrHSx1.mjs +6139 -0
- package/dist/registry-CSLrHSx1.mjs.map +1 -0
- package/dist/relations-5fVj42fZ.mjs +798 -0
- package/dist/relations-5fVj42fZ.mjs.map +1 -0
- package/dist/request-context.d.mts +2 -2
- package/dist/request-meta-B0TPrDpq.mjs +141 -0
- package/dist/request-meta-B0TPrDpq.mjs.map +1 -0
- package/dist/resolve--EmZidEz.mjs +92 -0
- package/dist/resolve--EmZidEz.mjs.map +1 -0
- package/dist/revision-Dk9VI8Vf.mjs +503 -0
- package/dist/revision-Dk9VI8Vf.mjs.map +1 -0
- package/dist/rooms/index.d.mts +15 -15
- package/dist/rooms/index.mjs +3 -3
- package/dist/rooms/node/index.d.mts +15 -15
- package/dist/rooms/node/index.mjs +6 -6
- package/dist/rooms/notifications.d.mts +15 -15
- package/dist/rooms/notifications.mjs +2 -2
- package/dist/rooms/room.d.mts +15 -15
- package/dist/rooms/room.mjs +2 -2
- package/dist/rooms/site.d.mts +15 -15
- package/dist/rooms/site.mjs +4 -4
- package/dist/rooms-AcO0YNUt.mjs +335 -0
- package/dist/rooms-AcO0YNUt.mjs.map +1 -0
- package/dist/rooms-B2P1xIS_.d.mts +4778 -0
- package/dist/rooms-B2P1xIS_.d.mts.map +1 -0
- package/dist/rooms-C08U-F8Y.mjs +169 -0
- package/dist/rooms-C08U-F8Y.mjs.map +1 -0
- package/dist/route-cache-CvTJlNVT.mjs +30 -0
- package/dist/route-cache-CvTJlNVT.mjs.map +1 -0
- package/dist/route-wire-NAkNES3Z.mjs +197 -0
- package/dist/route-wire-NAkNES3Z.mjs.map +1 -0
- package/dist/routes-BScyES_G.mjs +272 -0
- package/dist/routes-BScyES_G.mjs.map +1 -0
- package/dist/runner-C6gBIcTD.d.mts +79 -0
- package/dist/runner-C6gBIcTD.d.mts.map +1 -0
- package/dist/runner-Nv0yWP-G.mjs +6964 -0
- package/dist/runner-Nv0yWP-G.mjs.map +1 -0
- package/dist/runtime-holder-DkZ_0f7A.mjs +36 -0
- package/dist/runtime-holder-DkZ_0f7A.mjs.map +1 -0
- package/dist/runtime.d.mts +16 -16
- package/dist/runtime.mjs +1 -1
- package/dist/scheduler-health-B5n19775.mjs +31 -0
- package/dist/scheduler-health-B5n19775.mjs.map +1 -0
- package/dist/schema/project-env-types.mjs +6 -6
- package/dist/schema-B7ODIkP4.mjs +13 -0
- package/dist/schema-B7ODIkP4.mjs.map +1 -0
- package/dist/schema-D04_n_7j.mjs +815 -0
- package/dist/schema-D04_n_7j.mjs.map +1 -0
- package/dist/scopes-CHc86VzZ.mjs +34 -0
- package/dist/scopes-CHc86VzZ.mjs.map +1 -0
- package/dist/search-BxBg7Xq1.mjs +503 -0
- package/dist/search-BxBg7Xq1.mjs.map +1 -0
- package/dist/search-SRLBXKJU.mjs +12 -0
- package/dist/search-SRLBXKJU.mjs.map +1 -0
- package/dist/secrets-O25WpEe_.mjs +369 -0
- package/dist/secrets-O25WpEe_.mjs.map +1 -0
- package/dist/sections-BK7soA2U.mjs +222 -0
- package/dist/sections-BK7soA2U.mjs.map +1 -0
- package/dist/sections-CLejSkAG.mjs +129 -0
- package/dist/sections-CLejSkAG.mjs.map +1 -0
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +4 -4
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +3 -3
- package/dist/seo-Ie7B6cud.mjs +194 -0
- package/dist/seo-Ie7B6cud.mjs.map +1 -0
- package/dist/service-DbKGSUHC.mjs +150 -0
- package/dist/service-DbKGSUHC.mjs.map +1 -0
- package/dist/session-user-BrCPLyWB.mjs +61 -0
- package/dist/session-user-BrCPLyWB.mjs.map +1 -0
- package/dist/settings-BApLX_aS.mjs +413 -0
- package/dist/settings-BApLX_aS.mjs.map +1 -0
- package/dist/settings-Ces2K0VL.mjs +74 -0
- package/dist/settings-Ces2K0VL.mjs.map +1 -0
- package/dist/settings-DMHIgDyb.mjs +66 -0
- package/dist/settings-DMHIgDyb.mjs.map +1 -0
- package/dist/settings-DgnWX0GN.mjs +157 -0
- package/dist/settings-DgnWX0GN.mjs.map +1 -0
- package/dist/setup-complete-DQ1nNEjm.mjs +65 -0
- package/dist/setup-complete-DQ1nNEjm.mjs.map +1 -0
- package/dist/setup-nonce-5k8BY3W_.mjs +25 -0
- package/dist/setup-nonce-5k8BY3W_.mjs.map +1 -0
- package/dist/site-domain-B2KvJstd.mjs +131 -0
- package/dist/site-domain-B2KvJstd.mjs.map +1 -0
- package/dist/site-settings-B7VxSqP6.mjs +50 -0
- package/dist/site-settings-B7VxSqP6.mjs.map +1 -0
- package/dist/site-title-DHgWlyMw.mjs +14 -0
- package/dist/site-title-DHgWlyMw.mjs.map +1 -0
- package/dist/site-url-OBYES-gb.mjs +45 -0
- package/dist/site-url-OBYES-gb.mjs.map +1 -0
- package/dist/sitemap-name-BZXv5sf0.mjs +26 -0
- package/dist/sitemap-name-BZXv5sf0.mjs.map +1 -0
- package/dist/slug-CFsfrxUp.mjs +16 -0
- package/dist/slug-CFsfrxUp.mjs.map +1 -0
- package/dist/snapshot-BaIv7afB.mjs +466 -0
- package/dist/snapshot-BaIv7afB.mjs.map +1 -0
- package/dist/snapshot-VQM7BcdM.mjs +184 -0
- package/dist/snapshot-VQM7BcdM.mjs.map +1 -0
- package/dist/ssrf-Em0CeaaN.mjs +406 -0
- package/dist/ssrf-Em0CeaaN.mjs.map +1 -0
- package/dist/stage-Ctas_E7M.mjs +662 -0
- package/dist/stage-Ctas_E7M.mjs.map +1 -0
- package/dist/staged-C746SkS0.mjs +686 -0
- package/dist/staged-C746SkS0.mjs.map +1 -0
- package/dist/start-user-session-CdyNie0P.mjs +9 -0
- package/dist/start-user-session-CdyNie0P.mjs.map +1 -0
- package/dist/state-Cdkt6b1h.mjs +282 -0
- package/dist/state-Cdkt6b1h.mjs.map +1 -0
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +2 -2
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/storage-query-DdKo8oes.d.mts +1614 -0
- package/dist/storage-query-DdKo8oes.d.mts.map +1 -0
- package/dist/tar-Tbl91sMI.mjs +449 -0
- package/dist/tar-Tbl91sMI.mjs.map +1 -0
- package/dist/target-Bjxlaj4T.mjs +27 -0
- package/dist/target-Bjxlaj4T.mjs.map +1 -0
- package/dist/taxonomies-D5bavOHA.mjs +937 -0
- package/dist/taxonomies-D5bavOHA.mjs.map +1 -0
- package/dist/taxonomies-DApyZAJq.mjs +722 -0
- package/dist/taxonomies-DApyZAJq.mjs.map +1 -0
- package/dist/taxonomy-D4Fl2smf.mjs +593 -0
- package/dist/taxonomy-D4Fl2smf.mjs.map +1 -0
- package/dist/tokens-DvEbszXd.mjs +171 -0
- package/dist/tokens-DvEbszXd.mjs.map +1 -0
- package/dist/transaction-D5Kq7MTL.mjs +44 -0
- package/dist/transaction-D5Kq7MTL.mjs.map +1 -0
- package/dist/transfer-BwKpOrTV.mjs +8963 -0
- package/dist/transfer-BwKpOrTV.mjs.map +1 -0
- package/dist/transfer-CafpWTD6.mjs +166 -0
- package/dist/transfer-CafpWTD6.mjs.map +1 -0
- package/dist/transfer-download-H8beYs2r.mjs +33 -0
- package/dist/transfer-download-H8beYs2r.mjs.map +1 -0
- package/dist/transformations-DX_dwSfp.mjs +196 -0
- package/dist/transformations-DX_dwSfp.mjs.map +1 -0
- package/dist/transport-7mI_Nvnn.d.mts +42 -0
- package/dist/transport-7mI_Nvnn.d.mts.map +1 -0
- package/dist/transport-Cs1Xl7-v.mjs +144 -0
- package/dist/transport-Cs1Xl7-v.mjs.map +1 -0
- package/dist/trusted-proxy-DaSru7xW.mjs +51 -0
- package/dist/trusted-proxy-DaSru7xW.mjs.map +1 -0
- package/dist/turnstile-DNR0cwtt.mjs +58 -0
- package/dist/turnstile-DNR0cwtt.mjs.map +1 -0
- package/dist/types-8q-gxKfV.d.mts +935 -0
- package/dist/types-8q-gxKfV.d.mts.map +1 -0
- package/dist/types-BBH-w_KS.mjs.map +1 -1
- package/dist/types-BE4og6EZ.d.mts +292 -0
- package/dist/types-BE4og6EZ.d.mts.map +1 -0
- package/dist/types-BbOWBoRk.d.mts +384 -0
- package/dist/types-BbOWBoRk.d.mts.map +1 -0
- package/dist/types-BmBK2cqf.mjs.map +1 -1
- package/dist/types-C3tTVw9y.mjs +37 -0
- package/dist/types-C3tTVw9y.mjs.map +1 -0
- package/dist/types-CTQEkZcI.mjs +16 -0
- package/dist/types-CTQEkZcI.mjs.map +1 -0
- package/dist/types-CbfB5YfA.d.mts +209 -0
- package/dist/types-CbfB5YfA.d.mts.map +1 -0
- package/dist/types-CeknTiV0.d.mts +93 -0
- package/dist/types-CeknTiV0.d.mts.map +1 -0
- package/dist/types-CpFfDrGH.mjs.map +1 -1
- package/dist/types-DHjtQujX.mjs +77 -0
- package/dist/types-DHjtQujX.mjs.map +1 -0
- package/dist/types-EYyvAjNA.d.mts +125 -0
- package/dist/types-EYyvAjNA.d.mts.map +1 -0
- package/dist/types-VMZCO8hc.d.mts +366 -0
- package/dist/types-VMZCO8hc.d.mts.map +1 -0
- package/dist/types-YTpIfKXX.d.mts +1756 -0
- package/dist/types-YTpIfKXX.d.mts.map +1 -0
- package/dist/types-iSBIMGiz.d.mts +227 -0
- package/dist/types-iSBIMGiz.d.mts.map +1 -0
- package/dist/upload-attempts-ChkgAfye.mjs +32 -0
- package/dist/upload-attempts-ChkgAfye.mjs.map +1 -0
- package/dist/url-CBR5ZBBQ.mjs +87 -0
- package/dist/url-CBR5ZBBQ.mjs.map +1 -0
- package/dist/url-pattern-DViEwhDu.mjs +41 -0
- package/dist/url-pattern-DViEwhDu.mjs.map +1 -0
- package/dist/urls-BCnpTM3T.mjs +79 -0
- package/dist/urls-BCnpTM3T.mjs.map +1 -0
- package/dist/user-Cy4kOmtD.mjs +184 -0
- package/dist/user-Cy4kOmtD.mjs.map +1 -0
- package/dist/utils-0R0olFJs.d.mts +374 -0
- package/dist/utils-0R0olFJs.d.mts.map +1 -0
- package/dist/utils-DIfKXQ5o.mjs +450 -0
- package/dist/utils-DIfKXQ5o.mjs.map +1 -0
- package/dist/validate-CYHbSQ-M.d.mts +472 -0
- package/dist/validate-CYHbSQ-M.d.mts.map +1 -0
- package/dist/validate-DBnEN6hU.mjs +524 -0
- package/dist/validate-DBnEN6hU.mjs.map +1 -0
- package/dist/validation-Becbh-zl.mjs +204 -0
- package/dist/validation-Becbh-zl.mjs.map +1 -0
- package/dist/version-BE4RahxC.mjs +7 -0
- package/dist/version-BE4RahxC.mjs.map +1 -0
- package/dist/version-C3C6o1xi.mjs +9 -0
- package/dist/version-C3C6o1xi.mjs.map +1 -0
- package/dist/version-PIyVra05.mjs +49 -0
- package/dist/version-PIyVra05.mjs.map +1 -0
- package/dist/video-Cgw31pIP.mjs +18 -0
- package/dist/video-Cgw31pIP.mjs.map +1 -0
- package/dist/virtual-modules-DAvm-Tct.mjs +565 -0
- package/dist/virtual-modules-DAvm-Tct.mjs.map +1 -0
- package/dist/widgets-HYhp_QtR.mjs +134 -0
- package/dist/widgets-HYhp_QtR.mjs.map +1 -0
- package/dist/wxr-CDtij4U5.mjs +1054 -0
- package/dist/wxr-CDtij4U5.mjs.map +1 -0
- package/dist/wxr-taxonomies-fliLjgKD.mjs +735 -0
- package/dist/wxr-taxonomies-fliLjgKD.mjs.map +1 -0
- package/dist/wxr-taxonomies-uZgPVgPe.d.mts +34 -0
- package/dist/wxr-taxonomies-uZgPVgPe.d.mts.map +1 -0
- package/package.json +11 -10
- package/src/after.ts +17 -10
- package/src/api/error.ts +0 -13
- package/src/api/handlers/manifest.ts +1 -0
- package/src/api/handlers/media-allowlist.ts +66 -7
- package/src/api/handlers/media-usage.ts +2 -1
- package/src/api/handlers/media.ts +4 -2
- package/src/api/handlers/seo.ts +19 -7
- package/src/api/openapi/document.ts +1 -1
- package/src/api/schemas/auth.ts +7 -0
- package/src/api/schemas/media-usage.ts +1 -0
- package/src/api/schemas/media.ts +13 -3
- package/src/api/schemas/schema.ts +14 -0
- package/src/api/search.ts +15 -0
- package/src/api/types.ts +3 -0
- package/src/astro/image-endpoint.ts +30 -4
- package/src/astro/integration/dev-scheduler-bridge.ts +1 -2
- package/src/astro/integration/index.ts +22 -1
- package/src/astro/integration/routes.ts +4 -0
- package/src/astro/integration/virtual-modules.ts +3 -6
- package/src/astro/integration/vite-config.ts +13 -6
- package/src/astro/middleware/auth.ts +18 -11
- package/src/astro/middleware/redirect.ts +41 -23
- package/src/astro/middleware/request-context.ts +4 -2
- package/src/astro/middleware/scoped-db.ts +4 -4
- package/src/astro/middleware.ts +288 -204
- package/src/astro/prefetch.ts +21 -17
- package/src/astro/public-plugin-api-routes.ts +4 -4
- package/src/astro/routes/PluginRegistry.tsx +2 -3
- package/src/astro/routes/api/admin/byline-fields/[slug]/usage.ts +4 -3
- package/src/astro/routes/api/admin/byline-fields/[slug].ts +10 -7
- package/src/astro/routes/api/admin/byline-fields/index.ts +7 -5
- package/src/astro/routes/api/admin/byline-fields/reorder.ts +4 -3
- package/src/astro/routes/api/admin/bylines/[id]/index.ts +4 -3
- package/src/astro/routes/api/admin/bylines/[id]/translations.ts +7 -5
- package/src/astro/routes/api/admin/comments/[id]/status.ts +4 -3
- package/src/astro/routes/api/admin/comments/[id].ts +7 -5
- package/src/astro/routes/api/admin/comments/bulk.ts +4 -3
- package/src/astro/routes/api/admin/comments/counts.ts +4 -3
- package/src/astro/routes/api/admin/comments/index.ts +4 -3
- package/src/astro/routes/api/admin/media-usage/activation.ts +7 -5
- package/src/astro/routes/api/admin/media-usage/collection-deletions/index.ts +4 -3
- package/src/astro/routes/api/admin/media-usage/collection-deletions/retry.ts +4 -3
- package/src/astro/routes/api/admin/media-usage/progress.ts +7 -5
- package/src/astro/routes/api/admin/media-usage/repair.ts +4 -3
- package/src/astro/routes/api/admin/media-usage/work/index.ts +4 -3
- package/src/astro/routes/api/admin/media-usage/work/retry.ts +4 -3
- package/src/astro/routes/api/admin/plugins/registry/artifact.ts +7 -4
- package/src/astro/routes/api/admin/transfer/approvals/[id]/approve.ts +4 -3
- package/src/astro/routes/api/admin/transfer/approvals/[id]/deny.ts +4 -3
- package/src/astro/routes/api/admin/transfer/approvals/index.ts +4 -3
- package/src/astro/routes/api/admin/transfer/capabilities.ts +4 -3
- package/src/astro/routes/api/admin/transfer/exports/[id]/advance.ts +4 -3
- package/src/astro/routes/api/admin/transfer/exports/[id]/archive.ts +4 -3
- package/src/astro/routes/api/admin/transfer/exports/[id]/files/[...path].ts +4 -3
- package/src/astro/routes/api/admin/transfer/exports/[id]/index.ts +4 -3
- package/src/astro/routes/api/admin/transfer/exports/[id]/manifest.ts +4 -3
- package/src/astro/routes/api/admin/transfer/exports/index.ts +7 -5
- package/src/astro/routes/api/admin/transfer/imports/[id]/abandon.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/advance.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/analyze.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/cancel.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/execute.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/files/[...path].ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/index.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/missing.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/plan.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/[id]/receipt.ts +4 -3
- package/src/astro/routes/api/admin/transfer/imports/index.ts +7 -5
- package/src/astro/routes/api/auth/invite/complete.ts +2 -1
- package/src/astro/routes/api/auth/magic-link/verify.ts +2 -1
- package/src/astro/routes/api/auth/oauth/[provider]/callback.ts +2 -1
- package/src/astro/routes/api/auth/passkey/verify.ts +2 -1
- package/src/astro/routes/api/auth/signup/complete.ts +2 -1
- package/src/astro/routes/api/auth/signup/register-options.ts +69 -0
- package/src/astro/routes/api/comments/[collection]/[contentId]/index.ts +7 -5
- package/src/astro/routes/api/comments/[collection]/[contentId]/reactions.ts +7 -5
- package/src/astro/routes/api/content/[collection]/[id]/discard-draft.ts +3 -13
- package/src/astro/routes/api/content/[collection]/[id]/duplicate.ts +3 -13
- package/src/astro/routes/api/content/[collection]/[id]/lock.ts +19 -19
- package/src/astro/routes/api/content/[collection]/[id]/publish.ts +3 -12
- package/src/astro/routes/api/content/[collection]/[id]/references/[relation]/children.ts +4 -3
- package/src/astro/routes/api/content/[collection]/[id]/references/[relation]/parents.ts +4 -3
- package/src/astro/routes/api/content/[collection]/[id]/terms/[taxonomy].ts +11 -19
- package/src/astro/routes/api/content/[collection]/[id]/unpublish.ts +3 -12
- package/src/astro/routes/api/content/[collection]/[id].ts +12 -34
- package/src/astro/routes/api/import/wordpress/execute.ts +1 -4
- package/src/astro/routes/api/import/wordpress/media.ts +3 -2
- package/src/astro/routes/api/import/wordpress-plugin/execute.ts +1 -4
- package/src/astro/routes/api/media/[id]/replace.ts +11 -2
- package/src/astro/routes/api/media/[id].ts +16 -3
- package/src/astro/routes/api/media/file/[...key].ts +11 -0
- package/src/astro/routes/api/media/providers/[providerId]/[itemId].ts +18 -2
- package/src/astro/routes/api/menus/[name]/items/[id].ts +6 -0
- package/src/astro/routes/api/menus/[name]/items.ts +4 -1
- package/src/astro/routes/api/menus/[name]/reorder.ts +4 -1
- package/src/astro/routes/api/menus/[name]/translations.ts +7 -5
- package/src/astro/routes/api/menus/[name].ts +10 -1
- package/src/astro/routes/api/menus/index.ts +7 -1
- package/src/astro/routes/api/redirects/404s/index.ts +10 -7
- package/src/astro/routes/api/redirects/404s/summary.ts +4 -3
- package/src/astro/routes/api/redirects/[id].ts +10 -7
- package/src/astro/routes/api/redirects/index.ts +7 -5
- package/src/astro/routes/api/relations/[id]/index.ts +10 -7
- package/src/astro/routes/api/relations/index.ts +7 -5
- package/src/astro/routes/api/schema/block-types/[slug]/index.ts +7 -5
- package/src/astro/routes/api/schema/block-types/[slug]/versions/[version]/activate.ts +4 -3
- package/src/astro/routes/api/schema/block-types/index.ts +7 -5
- package/src/astro/routes/api/schema/collections/[slug]/fields/[fieldSlug].ts +10 -7
- package/src/astro/routes/api/schema/collections/[slug]/fields/index.ts +7 -5
- package/src/astro/routes/api/schema/collections/[slug]/fields/reorder.ts +4 -3
- package/src/astro/routes/api/schema/collections/[slug]/index.ts +10 -7
- package/src/astro/routes/api/schema/collections/index.ts +7 -5
- package/src/astro/routes/api/schema/collections/reorder.ts +4 -3
- package/src/astro/routes/api/schema/index.ts +4 -3
- package/src/astro/routes/api/schema/orphans/[slug].ts +4 -3
- package/src/astro/routes/api/schema/orphans/index.ts +4 -3
- package/src/astro/routes/api/search/enable.ts +4 -0
- package/src/astro/routes/api/search/index.ts +5 -3
- package/src/astro/routes/api/search/rebuild.ts +4 -0
- package/src/astro/routes/api/search/stats.ts +4 -0
- package/src/astro/routes/api/search/suggest.ts +4 -0
- package/src/astro/routes/api/sections/[slug].ts +10 -7
- package/src/astro/routes/api/sections/index.ts +7 -5
- package/src/astro/routes/api/setup/admin-verify.ts +2 -1
- package/src/astro/routes/api/taxonomies/[name]/reorder.ts +4 -3
- package/src/astro/routes/api/taxonomies/[name]/terms/[slug]/translations.ts +7 -5
- package/src/astro/routes/api/taxonomies/[name]/terms/[slug].ts +10 -7
- package/src/astro/routes/api/taxonomies/[name]/terms/index.ts +7 -5
- package/src/astro/routes/api/taxonomies/[name]/translations.ts +4 -3
- package/src/astro/routes/api/taxonomies/[name].ts +10 -7
- package/src/astro/routes/api/taxonomies/bulk-tag.ts +4 -3
- package/src/astro/routes/api/taxonomies/index.ts +7 -5
- package/src/astro/routes/api/widget-areas/[name]/reorder.ts +3 -0
- package/src/astro/routes/api/widget-areas/[name]/widgets/[id].ts +6 -0
- package/src/astro/routes/api/widget-areas/[name]/widgets.ts +3 -0
- package/src/astro/routes/api/widget-areas/[name].ts +6 -0
- package/src/astro/routes/api/widget-areas/index.ts +6 -0
- package/src/astro/session-user.ts +8 -4
- package/src/astro/types.ts +77 -53
- package/src/auth/start-user-session.ts +16 -0
- package/src/cleanup.ts +24 -5
- package/src/client/index.ts +5 -3
- package/src/client/portable-text.ts +9 -1
- package/src/comments/public-submission.ts +1 -1
- package/src/components/Code.astro +6 -1
- package/src/components/Comments.astro +17 -6
- package/src/components/InlinePortableTextEditor.tsx +9 -1
- package/src/database/dialect-helpers.ts +18 -3
- package/src/database/migrations/098_user_last_login.ts +13 -0
- package/src/database/migrations/runner.ts +2 -0
- package/src/database/repositories/content.ts +37 -0
- package/src/database/repositories/media-folders.ts +2 -6
- package/src/database/repositories/media.ts +16 -7
- package/src/database/repositories/revision.ts +2 -2
- package/src/database/repositories/seo.ts +34 -10
- package/src/database/repositories/types.ts +2 -2
- package/src/database/repositories/user.ts +2 -2
- package/src/database/types.ts +1 -0
- package/src/db/node-sqlite-compat.ts +13 -0
- package/src/emdash-runtime.ts +775 -308
- package/src/mcp/server.ts +27 -34
- package/src/media/image-endpoint.ts +84 -0
- package/src/media/url.ts +16 -3
- package/src/media/usage/content-fields.ts +7 -5
- package/src/media/usage/content-lock.ts +71 -0
- package/src/media/usage/content-refresh.ts +3 -72
- package/src/media/usage/content-snapshots.ts +26 -0
- package/src/media/usage/extractor.ts +132 -32
- package/src/media/usage/types.ts +3 -1
- package/src/object-cache/index.ts +16 -12
- package/src/plugins/context.ts +22 -1
- package/src/plugins/http-route-dispatch.ts +16 -8
- package/src/plugins/lifecycle.ts +16 -4
- package/src/plugins/sandbox/proxy.ts +2 -2
- package/src/plugins/scheduler/node.ts +17 -11
- package/src/plugins/state.ts +236 -78
- package/src/query.ts +36 -5
- package/src/scheduled-publish.ts +54 -6
- package/src/schema/block-type-contract.ts +35 -4
- package/src/schema/block-type-registry.ts +1 -1
- package/src/schema/types.ts +3 -0
- package/src/search/fts-manager.ts +79 -19
- package/src/search/query.ts +212 -101
- package/src/search/types.ts +6 -1
- package/src/virtual-modules.d.ts +3 -10
- package/dist/action-token-CKphU6ur.mjs +0 -26
- package/dist/action-token-CKphU6ur.mjs.map +0 -1
- package/dist/activation-X5iMalte.mjs +0 -387
- package/dist/activation-X5iMalte.mjs.map +0 -1
- package/dist/adapters-DFsc9XjW.d.mts +0 -173
- package/dist/adapters-DFsc9XjW.d.mts.map +0 -1
- package/dist/after-B3AvMfBQ.mjs +0 -50
- package/dist/after-B3AvMfBQ.mjs.map +0 -1
- package/dist/allowed-origins-BFDNF-05.mjs +0 -116
- package/dist/allowed-origins-BFDNF-05.mjs.map +0 -1
- package/dist/api-tokens-D27OQ0oQ.mjs +0 -173
- package/dist/api-tokens-D27OQ0oQ.mjs.map +0 -1
- package/dist/apply-Culv7QJl.mjs +0 -1774
- package/dist/apply-Culv7QJl.mjs.map +0 -1
- package/dist/approvals-oLE5G5jw.mjs +0 -460
- package/dist/approvals-oLE5G5jw.mjs.map +0 -1
- package/dist/artifact-fetch-ByK_1pck.mjs +0 -659
- package/dist/artifact-fetch-ByK_1pck.mjs.map +0 -1
- package/dist/artifacts-BXKMIV2F.mjs +0 -323
- package/dist/artifacts-BXKMIV2F.mjs.map +0 -1
- package/dist/authoritative-records-Cd5BVXRs.mjs +0 -5183
- package/dist/authoritative-records-Cd5BVXRs.mjs.map +0 -1
- package/dist/authorize-B-4ogCQG.mjs +0 -74
- package/dist/authorize-B-4ogCQG.mjs.map +0 -1
- package/dist/backup-BQhg3MEK.mjs +0 -246
- package/dist/backup-BQhg3MEK.mjs.map +0 -1
- package/dist/block-types-BTzqdEZV.mjs +0 -132
- package/dist/block-types-BTzqdEZV.mjs.map +0 -1
- package/dist/block-values-DzZIh7WN.mjs +0 -215
- package/dist/block-values-DzZIh7WN.mjs.map +0 -1
- package/dist/byline--sweE_MZ.mjs +0 -930
- package/dist/byline--sweE_MZ.mjs.map +0 -1
- package/dist/byline-fields-Czdq4Yad.mjs +0 -123
- package/dist/byline-fields-Czdq4Yad.mjs.map +0 -1
- package/dist/byline-registry-Cr7kjrxM.mjs +0 -406
- package/dist/byline-registry-Cr7kjrxM.mjs.map +0 -1
- package/dist/bylines-DnuH3H8z.mjs +0 -234
- package/dist/bylines-DnuH3H8z.mjs.map +0 -1
- package/dist/bylines-txlwgzIK.mjs +0 -150
- package/dist/bylines-txlwgzIK.mjs.map +0 -1
- package/dist/cache-BjnpmIpb.mjs +0 -151
- package/dist/cache-BjnpmIpb.mjs.map +0 -1
- package/dist/canonical-Cb-rJGRU.mjs +0 -174
- package/dist/canonical-Cb-rJGRU.mjs.map +0 -1
- package/dist/capture-triggers-BZmIEdX2.mjs +0 -362
- package/dist/capture-triggers-BZmIEdX2.mjs.map +0 -1
- package/dist/checksum-CH9TyM-N.mjs +0 -162
- package/dist/checksum-CH9TyM-N.mjs.map +0 -1
- package/dist/chunks-DRnEstVb.mjs +0 -25
- package/dist/chunks-DRnEstVb.mjs.map +0 -1
- package/dist/collection-slugs-cache-CYMrqHZ6.mjs +0 -91
- package/dist/collection-slugs-cache-CYMrqHZ6.mjs.map +0 -1
- package/dist/comment-BGeXmJ8F.mjs +0 -335
- package/dist/comment-BGeXmJ8F.mjs.map +0 -1
- package/dist/comment-reaction-ty-JEDYR.mjs +0 -85
- package/dist/comment-reaction-ty-JEDYR.mjs.map +0 -1
- package/dist/comments-ByrrLvZL.mjs +0 -99
- package/dist/comments-ByrrLvZL.mjs.map +0 -1
- package/dist/comments-DqhARoef.mjs +0 -195
- package/dist/comments-DqhARoef.mjs.map +0 -1
- package/dist/components-u2HE5Mu9.mjs +0 -112
- package/dist/components-u2HE5Mu9.mjs.map +0 -1
- package/dist/config-B4F2ttAZ.d.mts +0 -7230
- package/dist/config-B4F2ttAZ.d.mts.map +0 -1
- package/dist/config-BnrtMvHW.mjs +0 -228
- package/dist/config-BnrtMvHW.mjs.map +0 -1
- package/dist/config-DEse9gaE.d.mts +0 -41
- package/dist/config-DEse9gaE.d.mts.map +0 -1
- package/dist/connection-BaIVuaDX.mjs +0 -36
- package/dist/connection-BaIVuaDX.mjs.map +0 -1
- package/dist/content-Dxztag5t.mjs +0 -2270
- package/dist/content-Dxztag5t.mjs.map +0 -1
- package/dist/content-list-query-yYbBU-dB.d.mts +0 -26
- package/dist/content-list-query-yYbBU-dB.d.mts.map +0 -1
- package/dist/content-repair-2PdahlgZ.mjs +0 -443
- package/dist/content-repair-2PdahlgZ.mjs.map +0 -1
- package/dist/content-save-KMll0S7E.mjs +0 -202
- package/dist/content-save-KMll0S7E.mjs.map +0 -1
- package/dist/context-C3OZjexd.mjs +0 -2225
- package/dist/context-C3OZjexd.mjs.map +0 -1
- package/dist/credits-C8uXoWfN.mjs +0 -110
- package/dist/credits-C8uXoWfN.mjs.map +0 -1
- package/dist/cron-CrjBjDuy.mjs +0 -310
- package/dist/cron-CrjBjDuy.mjs.map +0 -1
- package/dist/default-DPoN3H5H.mjs +0 -81
- package/dist/default-DPoN3H5H.mjs.map +0 -1
- package/dist/deferred-tasks-uSx5qCFn.d.mts +0 -10
- package/dist/deferred-tasks-uSx5qCFn.d.mts.map +0 -1
- package/dist/device-flow-hT8lKWXq.mjs +0 -519
- package/dist/device-flow-hT8lKWXq.mjs.map +0 -1
- package/dist/dialect-helpers-DqUMP9fJ.mjs +0 -350
- package/dist/dialect-helpers-DqUMP9fJ.mjs.map +0 -1
- package/dist/digest-xYRiuW_E.mjs +0 -194
- package/dist/digest-xYRiuW_E.mjs.map +0 -1
- package/dist/direct-executor-CZ2SH1bq.mjs +0 -117
- package/dist/direct-executor-CZ2SH1bq.mjs.map +0 -1
- package/dist/email-console-CochjAlh.mjs +0 -50
- package/dist/email-console-CochjAlh.mjs.map +0 -1
- package/dist/email-locale-BoxaIPG8.mjs +0 -25
- package/dist/email-locale-BoxaIPG8.mjs.map +0 -1
- package/dist/email-smtp-BnHR_Ccx.mjs +0 -643
- package/dist/email-smtp-BnHR_Ccx.mjs.map +0 -1
- package/dist/emdash-runtime-CXsdCQnM.mjs +0 -5262
- package/dist/emdash-runtime-CXsdCQnM.mjs.map +0 -1
- package/dist/enrich-BReo_COC.mjs +0 -203
- package/dist/enrich-BReo_COC.mjs.map +0 -1
- package/dist/entry-lock-BfnhlRhC.mjs +0 -207
- package/dist/entry-lock-BfnhlRhC.mjs.map +0 -1
- package/dist/entry-lock-DsVhZcJN.mjs +0 -1228
- package/dist/entry-lock-DsVhZcJN.mjs.map +0 -1
- package/dist/entry-locks-D_kjygT1.mjs +0 -173
- package/dist/entry-locks-D_kjygT1.mjs.map +0 -1
- package/dist/env-types-CXI9uaMU.mjs +0 -38
- package/dist/env-types-CXI9uaMU.mjs.map +0 -1
- package/dist/error-DcDNU7hZ.mjs +0 -92
- package/dist/error-DcDNU7hZ.mjs.map +0 -1
- package/dist/errors-CJ6711al.mjs +0 -120
- package/dist/errors-CJ6711al.mjs.map +0 -1
- package/dist/errors-CwYHYcWF.mjs +0 -502
- package/dist/errors-CwYHYcWF.mjs.map +0 -1
- package/dist/fence-C3MLClBo.mjs +0 -162
- package/dist/fence-C3MLClBo.mjs.map +0 -1
- package/dist/field-defs-cache-Cpk0eFsQ.mjs +0 -79
- package/dist/field-defs-cache-Cpk0eFsQ.mjs.map +0 -1
- package/dist/field-map-6o9hPcRl.mjs +0 -84
- package/dist/field-map-6o9hPcRl.mjs.map +0 -1
- package/dist/fts-manager-B3iLXCGz.mjs +0 -500
- package/dist/fts-manager-B3iLXCGz.mjs.map +0 -1
- package/dist/gc-D24C-KP7.mjs +0 -62
- package/dist/gc-D24C-KP7.mjs.map +0 -1
- package/dist/hook-result-BU5rI-6M.d.mts +0 -31
- package/dist/hook-result-BU5rI-6M.d.mts.map +0 -1
- package/dist/hook-result-CO4E3zDv.mjs +0 -3854
- package/dist/hook-result-CO4E3zDv.mjs.map +0 -1
- package/dist/hreflang-Bzvlo9Ci.mjs +0 -105
- package/dist/hreflang-Bzvlo9Ci.mjs.map +0 -1
- package/dist/hreflang-Ds0WbBOu.d.mts +0 -51
- package/dist/hreflang-Ds0WbBOu.d.mts.map +0 -1
- package/dist/http-route-dispatch-BsjkWBZF.mjs +0 -348
- package/dist/http-route-dispatch-BsjkWBZF.mjs.map +0 -1
- package/dist/identity-CahxkBZC.mjs +0 -35
- package/dist/identity-CahxkBZC.mjs.map +0 -1
- package/dist/index-BauU0yTw.d.mts +0 -261
- package/dist/index-BauU0yTw.d.mts.map +0 -1
- package/dist/install-finalization-CIl610wT.mjs +0 -58
- package/dist/install-finalization-CIl610wT.mjs.map +0 -1
- package/dist/json-recordset-CrS6ZqMk.mjs +0 -12
- package/dist/json-recordset-CrS6ZqMk.mjs.map +0 -1
- package/dist/json-schema-CBcJlGcY.mjs +0 -15
- package/dist/json-schema-CBcJlGcY.mjs.map +0 -1
- package/dist/keys-DJ62Wt5b.mjs +0 -61
- package/dist/keys-DJ62Wt5b.mjs.map +0 -1
- package/dist/kinds-D7_f3Qu3.mjs +0 -974
- package/dist/kinds-D7_f3Qu3.mjs.map +0 -1
- package/dist/lifecycle-DPCkpFHV.mjs +0 -49
- package/dist/lifecycle-DPCkpFHV.mjs.map +0 -1
- package/dist/limits-Bv6mXNM-.mjs +0 -44
- package/dist/limits-Bv6mXNM-.mjs.map +0 -1
- package/dist/load-r9P0fsRH.mjs +0 -36
- package/dist/load-r9P0fsRH.mjs.map +0 -1
- package/dist/loader-CSEfTKzr.mjs +0 -1537
- package/dist/loader-CSEfTKzr.mjs.map +0 -1
- package/dist/loops-BxzrcxPO.mjs +0 -217
- package/dist/loops-BxzrcxPO.mjs.map +0 -1
- package/dist/manifest-builder-BLWqITXR.mjs +0 -196
- package/dist/manifest-builder-BLWqITXR.mjs.map +0 -1
- package/dist/manifest-schema-BRpk5V7x.mjs +0 -497
- package/dist/manifest-schema-BRpk5V7x.mjs.map +0 -1
- package/dist/marketplace-5YFgYPVr.mjs +0 -257
- package/dist/marketplace-5YFgYPVr.mjs.map +0 -1
- package/dist/marketplace-zPVE4UY5.mjs +0 -965
- package/dist/marketplace-zPVE4UY5.mjs.map +0 -1
- package/dist/media-C5fg1Xte.d.mts +0 -203
- package/dist/media-C5fg1Xte.d.mts.map +0 -1
- package/dist/media-CPETKjop.mjs +0 -424
- package/dist/media-CPETKjop.mjs.map +0 -1
- package/dist/media-Cid3xIHk.mjs +0 -294
- package/dist/media-Cid3xIHk.mjs.map +0 -1
- package/dist/media-DJaAAYI2.mjs +0 -2805
- package/dist/media-DJaAAYI2.mjs.map +0 -1
- package/dist/media-allowlist-B7JwNf-U.mjs +0 -75
- package/dist/media-allowlist-B7JwNf-U.mjs.map +0 -1
- package/dist/media-folders-BI7B7XUM.mjs +0 -210
- package/dist/media-folders-BI7B7XUM.mjs.map +0 -1
- package/dist/media-url-xWuPVfqO.mjs +0 -43
- package/dist/media-url-xWuPVfqO.mjs.map +0 -1
- package/dist/media-usage-SwtWPxy4.mjs +0 -282
- package/dist/media-usage-SwtWPxy4.mjs.map +0 -1
- package/dist/media-usage-activation-BTa1H4wE.mjs +0 -78
- package/dist/media-usage-activation-BTa1H4wE.mjs.map +0 -1
- package/dist/media-usage-work-BxHWfbKq.mjs +0 -1036
- package/dist/media-usage-work-BxHWfbKq.mjs.map +0 -1
- package/dist/media-usage-work-DYenZS8y.mjs +0 -151
- package/dist/media-usage-work-DYenZS8y.mjs.map +0 -1
- package/dist/menu-FtSf33fF.mjs +0 -420
- package/dist/menu-FtSf33fF.mjs.map +0 -1
- package/dist/menus--MSfZ5Eu.mjs +0 -433
- package/dist/menus--MSfZ5Eu.mjs.map +0 -1
- package/dist/menus-C8h6Jtpu.mjs +0 -92
- package/dist/menus-C8h6Jtpu.mjs.map +0 -1
- package/dist/menus-CpFAi_LK.mjs +0 -434
- package/dist/menus-CpFAi_LK.mjs.map +0 -1
- package/dist/mime-Dx6aHTsR.mjs +0 -82
- package/dist/mime-Dx6aHTsR.mjs.map +0 -1
- package/dist/node-sqlite-compat-DvYkqx7Q.mjs +0 -63
- package/dist/node-sqlite-compat-DvYkqx7Q.mjs.map +0 -1
- package/dist/oauth-authorization-CBxtOboy.mjs +0 -287
- package/dist/oauth-authorization-CBxtOboy.mjs.map +0 -1
- package/dist/oauth-clients-HLGHmHqI.mjs +0 -266
- package/dist/oauth-clients-HLGHmHqI.mjs.map +0 -1
- package/dist/oauth-state-store-B4YAveSb.mjs +0 -80
- package/dist/oauth-state-store-B4YAveSb.mjs.map +0 -1
- package/dist/oauth-user-lookup-CTYMaKlq.mjs +0 -26
- package/dist/oauth-user-lookup-CTYMaKlq.mjs.map +0 -1
- package/dist/object-cache-DeATK4vw.mjs +0 -805
- package/dist/object-cache-DeATK4vw.mjs.map +0 -1
- package/dist/options-BJZMHnpx.d.mts +0 -81
- package/dist/options-BJZMHnpx.d.mts.map +0 -1
- package/dist/parse-B1E5cdyD.mjs +0 -82
- package/dist/parse-B1E5cdyD.mjs.map +0 -1
- package/dist/parse-Clt6wmpy.d.mts +0 -178
- package/dist/parse-Clt6wmpy.d.mts.map +0 -1
- package/dist/parts-CMwESQ6e.mjs +0 -68
- package/dist/parts-CMwESQ6e.mjs.map +0 -1
- package/dist/passkey-config-DiVZI-cx.mjs +0 -46
- package/dist/passkey-config-DiVZI-cx.mjs.map +0 -1
- package/dist/paths-NrYImb_h.mjs +0 -77
- package/dist/paths-NrYImb_h.mjs.map +0 -1
- package/dist/placeholder-B0vI-EQ9.d.mts +0 -316
- package/dist/placeholder-B0vI-EQ9.d.mts.map +0 -1
- package/dist/plan-CSb3BdFS.mjs +0 -135
- package/dist/plan-CSb3BdFS.mjs.map +0 -1
- package/dist/plugin-settings-HdYYRFi3.mjs +0 -162
- package/dist/plugin-settings-HdYYRFi3.mjs.map +0 -1
- package/dist/plugins-Bc70Xs37.mjs +0 -261
- package/dist/plugins-Bc70Xs37.mjs.map +0 -1
- package/dist/policy-C-ngDrxa.mjs +0 -56
- package/dist/policy-C-ngDrxa.mjs.map +0 -1
- package/dist/portable-text-T17rOqF7.mjs +0 -454
- package/dist/portable-text-T17rOqF7.mjs.map +0 -1
- package/dist/protocol-CmSX4cXv.d.mts +0 -65
- package/dist/protocol-CmSX4cXv.d.mts.map +0 -1
- package/dist/public-plugin-api-routes-_xsWTlwE.mjs +0 -316
- package/dist/public-plugin-api-routes-_xsWTlwE.mjs.map +0 -1
- package/dist/public-submission-ui3pFYtq.mjs +0 -253
- package/dist/public-submission-ui3pFYtq.mjs.map +0 -1
- package/dist/public-url-DMRZPAiW.mjs +0 -123
- package/dist/public-url-DMRZPAiW.mjs.map +0 -1
- package/dist/query-C1K9PzUc.mjs +0 -41
- package/dist/query-C1K9PzUc.mjs.map +0 -1
- package/dist/query-DdmHrvie.mjs +0 -1201
- package/dist/query-DdmHrvie.mjs.map +0 -1
- package/dist/range-BaF0521t.mjs +0 -51
- package/dist/range-BaF0521t.mjs.map +0 -1
- package/dist/rate-limit-6MngP0_m.mjs +0 -127
- package/dist/rate-limit-6MngP0_m.mjs.map +0 -1
- package/dist/receipt-BFm5eaN7.mjs +0 -43
- package/dist/receipt-BFm5eaN7.mjs.map +0 -1
- package/dist/redirect-ChcHI1KC.mjs +0 -466
- package/dist/redirect-ChcHI1KC.mjs.map +0 -1
- package/dist/redirect-EpidEf_5.mjs +0 -19
- package/dist/redirect-EpidEf_5.mjs.map +0 -1
- package/dist/redirect-paths-B9cXh9Wv.mjs +0 -36
- package/dist/redirect-paths-B9cXh9Wv.mjs.map +0 -1
- package/dist/redirects-D3zHoxhn.mjs +0 -446
- package/dist/redirects-D3zHoxhn.mjs.map +0 -1
- package/dist/redirects-dFPJ0HrD.mjs +0 -148
- package/dist/redirects-dFPJ0HrD.mjs.map +0 -1
- package/dist/registry-CDzYrAFY.mjs +0 -6074
- package/dist/registry-CDzYrAFY.mjs.map +0 -1
- package/dist/registry-Cf9vkVxW.mjs +0 -1449
- package/dist/registry-Cf9vkVxW.mjs.map +0 -1
- package/dist/registry-mZi_lxtT.mjs +0 -755
- package/dist/registry-mZi_lxtT.mjs.map +0 -1
- package/dist/relations-Eyop_U4o.mjs +0 -798
- package/dist/relations-Eyop_U4o.mjs.map +0 -1
- package/dist/request-meta-DsSkOdO0.mjs +0 -141
- package/dist/request-meta-DsSkOdO0.mjs.map +0 -1
- package/dist/resolve-s7ANHtFx.mjs +0 -92
- package/dist/resolve-s7ANHtFx.mjs.map +0 -1
- package/dist/revision-D7EedSdU.mjs +0 -503
- package/dist/revision-D7EedSdU.mjs.map +0 -1
- package/dist/rooms-CSNLTJsG.mjs +0 -331
- package/dist/rooms-CSNLTJsG.mjs.map +0 -1
- package/dist/rooms-CVsLla78.mjs +0 -169
- package/dist/rooms-CVsLla78.mjs.map +0 -1
- package/dist/rooms-CyXG83RZ.d.mts +0 -4653
- package/dist/rooms-CyXG83RZ.d.mts.map +0 -1
- package/dist/route-cache-CBpXPq-N.mjs +0 -30
- package/dist/route-cache-CBpXPq-N.mjs.map +0 -1
- package/dist/route-wire-DKSTaEz_.mjs +0 -197
- package/dist/route-wire-DKSTaEz_.mjs.map +0 -1
- package/dist/routes-QcHRiebw.mjs +0 -272
- package/dist/routes-QcHRiebw.mjs.map +0 -1
- package/dist/runner-4BfB04Rg.mjs +0 -6950
- package/dist/runner-4BfB04Rg.mjs.map +0 -1
- package/dist/runner-CAHS_KER.d.mts +0 -79
- package/dist/runner-CAHS_KER.d.mts.map +0 -1
- package/dist/runtime-holder-0g6pqbzx.mjs +0 -36
- package/dist/runtime-holder-0g6pqbzx.mjs.map +0 -1
- package/dist/scheduler-health-C5HEg2Yl.mjs +0 -31
- package/dist/scheduler-health-C5HEg2Yl.mjs.map +0 -1
- package/dist/schema-DS7ooMmp.mjs +0 -13
- package/dist/schema-DS7ooMmp.mjs.map +0 -1
- package/dist/schema-Mjtj7n1t.mjs +0 -815
- package/dist/schema-Mjtj7n1t.mjs.map +0 -1
- package/dist/scopes-BaR6WUyq.mjs +0 -34
- package/dist/scopes-BaR6WUyq.mjs.map +0 -1
- package/dist/search-B9RFgr0N.mjs +0 -450
- package/dist/search-B9RFgr0N.mjs.map +0 -1
- package/dist/secrets-C4UrjPiG.mjs +0 -369
- package/dist/secrets-C4UrjPiG.mjs.map +0 -1
- package/dist/sections-Bfa0oF8Q.mjs +0 -129
- package/dist/sections-Bfa0oF8Q.mjs.map +0 -1
- package/dist/sections-Bn2C6we7.mjs +0 -222
- package/dist/sections-Bn2C6we7.mjs.map +0 -1
- package/dist/seo-DPW6k5_-.mjs +0 -188
- package/dist/seo-DPW6k5_-.mjs.map +0 -1
- package/dist/service-B4mHMku9.mjs +0 -150
- package/dist/service-B4mHMku9.mjs.map +0 -1
- package/dist/session-user-CF2jNfj7.mjs +0 -61
- package/dist/session-user-CF2jNfj7.mjs.map +0 -1
- package/dist/settings-4r88LLIM.mjs +0 -66
- package/dist/settings-4r88LLIM.mjs.map +0 -1
- package/dist/settings-BB2xxz3Y.mjs +0 -74
- package/dist/settings-BB2xxz3Y.mjs.map +0 -1
- package/dist/settings-BTkGl-bX.mjs +0 -413
- package/dist/settings-BTkGl-bX.mjs.map +0 -1
- package/dist/settings-y8Jx8b7g.mjs +0 -157
- package/dist/settings-y8Jx8b7g.mjs.map +0 -1
- package/dist/setup-complete-BGRiC59t.mjs +0 -65
- package/dist/setup-complete-BGRiC59t.mjs.map +0 -1
- package/dist/setup-nonce-D43FsOgZ.mjs +0 -25
- package/dist/setup-nonce-D43FsOgZ.mjs.map +0 -1
- package/dist/site-domain-CFX7g6ik.mjs +0 -131
- package/dist/site-domain-CFX7g6ik.mjs.map +0 -1
- package/dist/site-settings-C0D9fv7e.mjs +0 -50
- package/dist/site-settings-C0D9fv7e.mjs.map +0 -1
- package/dist/site-title-C0JVN6en.mjs +0 -14
- package/dist/site-title-C0JVN6en.mjs.map +0 -1
- package/dist/site-url-DzVnHJ8j.mjs +0 -45
- package/dist/site-url-DzVnHJ8j.mjs.map +0 -1
- package/dist/sitemap-name-Ja_Cvwx9.mjs +0 -26
- package/dist/sitemap-name-Ja_Cvwx9.mjs.map +0 -1
- package/dist/slug-CO2jtUda.mjs +0 -16
- package/dist/slug-CO2jtUda.mjs.map +0 -1
- package/dist/snapshot-C9OWUtFr.mjs +0 -466
- package/dist/snapshot-C9OWUtFr.mjs.map +0 -1
- package/dist/snapshot-CR5tan8p.mjs +0 -184
- package/dist/snapshot-CR5tan8p.mjs.map +0 -1
- package/dist/ssrf-Lj1KZxYt.mjs +0 -406
- package/dist/ssrf-Lj1KZxYt.mjs.map +0 -1
- package/dist/stage-ChbGIslu.mjs +0 -662
- package/dist/stage-ChbGIslu.mjs.map +0 -1
- package/dist/staged-BN8pRZwX.mjs +0 -686
- package/dist/staged-BN8pRZwX.mjs.map +0 -1
- package/dist/state-DtcE0eN3.mjs +0 -178
- package/dist/state-DtcE0eN3.mjs.map +0 -1
- package/dist/storage-query-BDUX3Cef.d.mts +0 -1608
- package/dist/storage-query-BDUX3Cef.d.mts.map +0 -1
- package/dist/tar-CAvEHFbE.mjs +0 -449
- package/dist/tar-CAvEHFbE.mjs.map +0 -1
- package/dist/target-BM_6fT9m.mjs +0 -27
- package/dist/target-BM_6fT9m.mjs.map +0 -1
- package/dist/taxonomies-BMuFLd53.mjs +0 -722
- package/dist/taxonomies-BMuFLd53.mjs.map +0 -1
- package/dist/taxonomies-ClkYcmcH.mjs +0 -937
- package/dist/taxonomies-ClkYcmcH.mjs.map +0 -1
- package/dist/taxonomy-s1GcBCRo.mjs +0 -593
- package/dist/taxonomy-s1GcBCRo.mjs.map +0 -1
- package/dist/tokens-Cpm6FIKJ.mjs +0 -171
- package/dist/tokens-Cpm6FIKJ.mjs.map +0 -1
- package/dist/transaction-SKrr6u84.mjs +0 -44
- package/dist/transaction-SKrr6u84.mjs.map +0 -1
- package/dist/transfer-B3CsI5MG.mjs +0 -8963
- package/dist/transfer-B3CsI5MG.mjs.map +0 -1
- package/dist/transfer-DqUiK3ca.mjs +0 -166
- package/dist/transfer-DqUiK3ca.mjs.map +0 -1
- package/dist/transfer-download-CWPfhL91.mjs +0 -33
- package/dist/transfer-download-CWPfhL91.mjs.map +0 -1
- package/dist/transformations-ClH4dJeM.mjs +0 -196
- package/dist/transformations-ClH4dJeM.mjs.map +0 -1
- package/dist/transport-C6Ps8ejN.mjs +0 -144
- package/dist/transport-C6Ps8ejN.mjs.map +0 -1
- package/dist/transport-D4hWYmO_.d.mts +0 -42
- package/dist/transport-D4hWYmO_.d.mts.map +0 -1
- package/dist/trusted-proxy-CWX1sqgb.mjs +0 -51
- package/dist/trusted-proxy-CWX1sqgb.mjs.map +0 -1
- package/dist/turnstile-B6zM50Mh.mjs +0 -58
- package/dist/turnstile-B6zM50Mh.mjs.map +0 -1
- package/dist/types-Ba3bWb9D.mjs +0 -37
- package/dist/types-Ba3bWb9D.mjs.map +0 -1
- package/dist/types-C0M6z2A4.mjs +0 -16
- package/dist/types-C0M6z2A4.mjs.map +0 -1
- package/dist/types-CG1dR_Cm.d.mts +0 -934
- package/dist/types-CG1dR_Cm.d.mts.map +0 -1
- package/dist/types-CImd8MBY.d.mts +0 -1756
- package/dist/types-CImd8MBY.d.mts.map +0 -1
- package/dist/types-CML-oGr6.d.mts +0 -293
- package/dist/types-CML-oGr6.d.mts.map +0 -1
- package/dist/types-CZO9f_vJ.d.mts +0 -381
- package/dist/types-CZO9f_vJ.d.mts.map +0 -1
- package/dist/types-DLKviL1s.d.mts +0 -93
- package/dist/types-DLKviL1s.d.mts.map +0 -1
- package/dist/types-Df0R58Wu.mjs +0 -77
- package/dist/types-Df0R58Wu.mjs.map +0 -1
- package/dist/types-DwNwhyWP.d.mts +0 -227
- package/dist/types-DwNwhyWP.d.mts.map +0 -1
- package/dist/types-DwZgl0Zn.d.mts +0 -366
- package/dist/types-DwZgl0Zn.d.mts.map +0 -1
- package/dist/types-Dyb_OuSw.d.mts +0 -125
- package/dist/types-Dyb_OuSw.d.mts.map +0 -1
- package/dist/types-iOnPkHRk.d.mts +0 -209
- package/dist/types-iOnPkHRk.d.mts.map +0 -1
- package/dist/upload-attempts-5Ot7-vsw.mjs +0 -32
- package/dist/upload-attempts-5Ot7-vsw.mjs.map +0 -1
- package/dist/url-ZCjpMO-q.mjs +0 -74
- package/dist/url-ZCjpMO-q.mjs.map +0 -1
- package/dist/url-pattern-BQT-sGmD.mjs +0 -41
- package/dist/url-pattern-BQT-sGmD.mjs.map +0 -1
- package/dist/urls-Cq_hUk4P.mjs +0 -79
- package/dist/urls-Cq_hUk4P.mjs.map +0 -1
- package/dist/user-C4km6fox.mjs +0 -184
- package/dist/user-C4km6fox.mjs.map +0 -1
- package/dist/utils-Cpo0_V09.d.mts +0 -374
- package/dist/utils-Cpo0_V09.d.mts.map +0 -1
- package/dist/utils-DMDmdhU3.mjs +0 -450
- package/dist/utils-DMDmdhU3.mjs.map +0 -1
- package/dist/validate-BNupiQtz.mjs +0 -524
- package/dist/validate-BNupiQtz.mjs.map +0 -1
- package/dist/validate-DBfkJa3O.d.mts +0 -472
- package/dist/validate-DBfkJa3O.d.mts.map +0 -1
- package/dist/validation-W_efZFgP.mjs +0 -204
- package/dist/validation-W_efZFgP.mjs.map +0 -1
- package/dist/version-C61rw8-y.mjs +0 -9
- package/dist/version-C61rw8-y.mjs.map +0 -1
- package/dist/version-DhGLeLRo.mjs +0 -7
- package/dist/version-DhGLeLRo.mjs.map +0 -1
- package/dist/version-eqLBDtcz.mjs +0 -49
- package/dist/version-eqLBDtcz.mjs.map +0 -1
- package/dist/video-My3h7vwE.mjs +0 -18
- package/dist/video-My3h7vwE.mjs.map +0 -1
- package/dist/virtual-modules-BZKqvjRC.mjs +0 -568
- package/dist/virtual-modules-BZKqvjRC.mjs.map +0 -1
- package/dist/widgets-DAdni19y.mjs +0 -134
- package/dist/widgets-DAdni19y.mjs.map +0 -1
- package/dist/wxr-DDPJOgkM.mjs +0 -1054
- package/dist/wxr-DDPJOgkM.mjs.map +0 -1
- package/dist/wxr-taxonomies-B0U2fJgs.mjs +0 -735
- package/dist/wxr-taxonomies-B0U2fJgs.mjs.map +0 -1
- package/dist/wxr-taxonomies-CyP2k4-Q.d.mts +0 -34
- package/dist/wxr-taxonomies-CyP2k4-Q.d.mts.map +0 -1
|
@@ -1,798 +0,0 @@
|
|
|
1
|
-
import { i as getLocaleCandidates, o as getLocaleRank } from "./config-Cs_AwWXI.mjs";
|
|
2
|
-
import { t as ContentRepository } from "./content-Dxztag5t.mjs";
|
|
3
|
-
import { d as invalidateCollectionCache } from "./object-cache-DeATK4vw.mjs";
|
|
4
|
-
import { hasRoomNotifier, notifyEntryGroups } from "./rooms/notifications.mjs";
|
|
5
|
-
import { r as requestCached } from "./request-cache-BYMs-BGX.mjs";
|
|
6
|
-
import { a as InvalidCursorError } from "./types-BBH-w_KS.mjs";
|
|
7
|
-
import { t as RevisionRepository } from "./revision-D7EedSdU.mjs";
|
|
8
|
-
import { t as withTransaction } from "./transaction-SKrr6u84.mjs";
|
|
9
|
-
import { d as RelationRepository, l as readStagedReferences, s as pageStagedGroups } from "./staged-BN8pRZwX.mjs";
|
|
10
|
-
import { n as SchemaRegistry } from "./registry-CDzYrAFY.mjs";
|
|
11
|
-
import { s as invalidateSchemaCache } from "./zod-generator-ChRSYUix.mjs";
|
|
12
|
-
|
|
13
|
-
//#region src/api/handlers/validate-references.ts
|
|
14
|
-
function validationError(message) {
|
|
15
|
-
return {
|
|
16
|
-
success: false,
|
|
17
|
-
error: {
|
|
18
|
-
code: "VALIDATION_ERROR",
|
|
19
|
-
message
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function isRecord$1(value) {
|
|
24
|
-
return typeof value === "object" && value !== null;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Every reference field on a collection that is bound to a relation, by field
|
|
28
|
-
* slug — the key the entry API takes a selection under.
|
|
29
|
-
*/
|
|
30
|
-
function referenceFieldConstraints(db, collection) {
|
|
31
|
-
return requestCached(`reference-field-constraints:${collection}`, async () => {
|
|
32
|
-
const fields = await db.selectFrom("_emdash_fields").innerJoin("_emdash_collections", "_emdash_collections.id", "_emdash_fields.collection_id").select([
|
|
33
|
-
"_emdash_fields.slug",
|
|
34
|
-
"_emdash_fields.required",
|
|
35
|
-
"_emdash_fields.validation"
|
|
36
|
-
]).where("_emdash_collections.slug", "=", collection).where("_emdash_fields.type", "=", "reference").execute();
|
|
37
|
-
const relations = await db.selectFrom("_emdash_relations").select([
|
|
38
|
-
"id",
|
|
39
|
-
"slug",
|
|
40
|
-
"max_children_per_parent",
|
|
41
|
-
"max_parents_per_child"
|
|
42
|
-
]).execute();
|
|
43
|
-
const limits = new Map(relations.map((r) => [r.slug, r]));
|
|
44
|
-
const constraints = /* @__PURE__ */ new Map();
|
|
45
|
-
for (const field of fields) {
|
|
46
|
-
if (!field.validation) continue;
|
|
47
|
-
let parsed;
|
|
48
|
-
try {
|
|
49
|
-
parsed = JSON.parse(field.validation);
|
|
50
|
-
} catch {
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (!isRecord$1(parsed) || typeof parsed.relation !== "string") continue;
|
|
54
|
-
const relation = limits.get(parsed.relation);
|
|
55
|
-
const relationSide = parsed.relationSide === "child" ? "child" : "parent";
|
|
56
|
-
const onChildSide = relationSide === "child";
|
|
57
|
-
constraints.set(field.slug, {
|
|
58
|
-
slug: field.slug,
|
|
59
|
-
relation: parsed.relation,
|
|
60
|
-
relationId: relation?.id ?? null,
|
|
61
|
-
relationSide,
|
|
62
|
-
maxSelected: onChildSide ? relation?.max_parents_per_child ?? null : relation?.max_children_per_parent ?? null,
|
|
63
|
-
maxOpposite: onChildSide ? relation?.max_children_per_parent ?? null : relation?.max_parents_per_child ?? null,
|
|
64
|
-
required: field.required === 1
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return constraints;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* The field viewing one end of a relation, for the relation-scoped routes, which
|
|
72
|
-
* address a relation rather than a field. At most one field binds each
|
|
73
|
-
* (relation, side), so this is unambiguous.
|
|
74
|
-
*/
|
|
75
|
-
function constraintsForRelationSide(constraints, relation, side) {
|
|
76
|
-
for (const field of constraints.values()) if (field.relation === relation && field.relationSide === side) return field;
|
|
77
|
-
}
|
|
78
|
-
function validateReferenceSelection(constraints, childIds) {
|
|
79
|
-
const max = constraints.maxSelected;
|
|
80
|
-
if (max !== null && childIds.length > max) return validationError(max === 1 ? `Field '${constraints.slug}' accepts a single reference, received ${childIds.length}.` : `Field '${constraints.slug}' accepts at most ${max} references, received ${childIds.length}.`);
|
|
81
|
-
if (constraints.required && childIds.length === 0) return validationError(`Field '${constraints.slug}' is required and must reference at least one entry.`);
|
|
82
|
-
return {
|
|
83
|
-
success: true,
|
|
84
|
-
data: true
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
async function validateRequiredReferencesPresent(db, collection, references, translationOf) {
|
|
88
|
-
if (translationOf) return {
|
|
89
|
-
success: true,
|
|
90
|
-
data: true
|
|
91
|
-
};
|
|
92
|
-
const constraints = await referenceFieldConstraints(db, collection);
|
|
93
|
-
for (const field of constraints.values()) {
|
|
94
|
-
if (!field.required) continue;
|
|
95
|
-
if (references && Object.hasOwn(references, field.slug)) continue;
|
|
96
|
-
return validationError(`Field '${field.slug}' is required and must reference at least one entry.`);
|
|
97
|
-
}
|
|
98
|
-
return {
|
|
99
|
-
success: true,
|
|
100
|
-
data: true
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region src/api/handlers/relations.ts
|
|
106
|
-
/** Map an edge-read failure: a bad pagination cursor is a 400 client error,
|
|
107
|
-
* everything else is the generic 500-shaped reference-read error. */
|
|
108
|
-
function referencesGetError(error) {
|
|
109
|
-
if (error instanceof InvalidCursorError) return {
|
|
110
|
-
success: false,
|
|
111
|
-
error: {
|
|
112
|
-
code: "INVALID_CURSOR",
|
|
113
|
-
message: error.message
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
return {
|
|
117
|
-
success: false,
|
|
118
|
-
error: {
|
|
119
|
-
code: "REFERENCES_GET_ERROR",
|
|
120
|
-
message: "Failed to get references"
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function isRecord(value) {
|
|
125
|
-
return typeof value === "object" && value !== null;
|
|
126
|
-
}
|
|
127
|
-
/** True for SQLite UNIQUE / Postgres unique_violation messages (matches the
|
|
128
|
-
* fingerprint used in the content handlers). Narrow enough not to catch NOT
|
|
129
|
-
* NULL / CHECK violations whose messages also say "constraint". */
|
|
130
|
-
function isUniqueViolation(error) {
|
|
131
|
-
const message = error instanceof Error ? error.message.toLowerCase() : "";
|
|
132
|
-
return message.includes("unique constraint failed") || message.includes("duplicate key");
|
|
133
|
-
}
|
|
134
|
-
async function handleRelationCreate(db, input) {
|
|
135
|
-
try {
|
|
136
|
-
const repo = new RelationRepository(db);
|
|
137
|
-
const registry = new SchemaRegistry(db);
|
|
138
|
-
for (const collection of [input.parentCollection, input.childCollection]) if (!await registry.getCollection(collection)) return {
|
|
139
|
-
success: false,
|
|
140
|
-
error: {
|
|
141
|
-
code: "COLLECTION_NOT_FOUND",
|
|
142
|
-
message: `Collection '${collection}' not found`
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
return {
|
|
146
|
-
success: true,
|
|
147
|
-
data: { relation: await repo.create(input) }
|
|
148
|
-
};
|
|
149
|
-
} catch (error) {
|
|
150
|
-
if (isUniqueViolation(error)) return {
|
|
151
|
-
success: false,
|
|
152
|
-
error: {
|
|
153
|
-
code: "CONFLICT",
|
|
154
|
-
message: "A relation with this slug already exists"
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
return {
|
|
158
|
-
success: false,
|
|
159
|
-
error: {
|
|
160
|
-
code: "RELATION_CREATE_ERROR",
|
|
161
|
-
message: "Failed to create relation"
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
async function handleRelationGet(db, id) {
|
|
167
|
-
try {
|
|
168
|
-
const repo = new RelationRepository(db);
|
|
169
|
-
const relation = await repo.findById(id);
|
|
170
|
-
if (!relation) return {
|
|
171
|
-
success: false,
|
|
172
|
-
error: {
|
|
173
|
-
code: "NOT_FOUND",
|
|
174
|
-
message: "Relation not found"
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
const [boundFields, edgeCounts] = await Promise.all([fieldsBoundToRelation(db, relation.slug), repo.countEdgesByRelation()]);
|
|
178
|
-
return {
|
|
179
|
-
success: true,
|
|
180
|
-
data: { relation: {
|
|
181
|
-
...relation,
|
|
182
|
-
boundFields,
|
|
183
|
-
linkCount: edgeCounts.get(relation.id) ?? 0
|
|
184
|
-
} }
|
|
185
|
-
};
|
|
186
|
-
} catch {
|
|
187
|
-
return {
|
|
188
|
-
success: false,
|
|
189
|
-
error: {
|
|
190
|
-
code: "RELATION_GET_ERROR",
|
|
191
|
-
message: "Failed to get relation"
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* List relations, optionally only those `collection` takes part in.
|
|
198
|
-
*
|
|
199
|
-
* The admin's relation picker filters this way: a reference field can only bind
|
|
200
|
-
* to a relation with its own collection on one end.
|
|
201
|
-
*/
|
|
202
|
-
async function handleRelationList(db, opts = {}) {
|
|
203
|
-
try {
|
|
204
|
-
const repo = new RelationRepository(db);
|
|
205
|
-
const [relations, boundByRelation, edgeCounts] = await Promise.all([
|
|
206
|
-
opts.collection ? repo.findForCollection(opts.collection) : repo.list(),
|
|
207
|
-
fieldsBoundByRelation(db),
|
|
208
|
-
repo.countEdgesByRelation()
|
|
209
|
-
]);
|
|
210
|
-
return {
|
|
211
|
-
success: true,
|
|
212
|
-
data: { relations: relations.map((relation) => ({
|
|
213
|
-
...relation,
|
|
214
|
-
boundFields: boundByRelation.get(relation.slug) ?? [],
|
|
215
|
-
linkCount: edgeCounts.get(relation.id) ?? 0
|
|
216
|
-
})) }
|
|
217
|
-
};
|
|
218
|
-
} catch {
|
|
219
|
-
return {
|
|
220
|
-
success: false,
|
|
221
|
-
error: {
|
|
222
|
-
code: "RELATION_LIST_ERROR",
|
|
223
|
-
message: "Failed to list relations"
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
async function handleRelationUpdate(db, id, input) {
|
|
229
|
-
try {
|
|
230
|
-
const relation = await new RelationRepository(db).update(id, input);
|
|
231
|
-
if (!relation) return {
|
|
232
|
-
success: false,
|
|
233
|
-
error: {
|
|
234
|
-
code: "NOT_FOUND",
|
|
235
|
-
message: "Relation not found"
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
return {
|
|
239
|
-
success: true,
|
|
240
|
-
data: { relation }
|
|
241
|
-
};
|
|
242
|
-
} catch {
|
|
243
|
-
return {
|
|
244
|
-
success: false,
|
|
245
|
-
error: {
|
|
246
|
-
code: "RELATION_UPDATE_ERROR",
|
|
247
|
-
message: "Failed to update relation"
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Every reference field on the site, grouped by the slug of the relation it
|
|
254
|
-
* binds.
|
|
255
|
-
*
|
|
256
|
-
* Filtered in JS rather than through `json_extract`: `_emdash_fields` holds one
|
|
257
|
-
* row per field on the whole site, and the reference-typed subset of that is
|
|
258
|
-
* small enough that a scan beats a dialect-specific JSON path. Grouping the
|
|
259
|
-
* whole set in one pass also keeps the relations list to a single scan instead
|
|
260
|
-
* of one per row.
|
|
261
|
-
*/
|
|
262
|
-
async function fieldsBoundByRelation(db) {
|
|
263
|
-
const rows = await db.selectFrom("_emdash_fields").innerJoin("_emdash_collections", "_emdash_collections.id", "_emdash_fields.collection_id").select([
|
|
264
|
-
"_emdash_fields.slug as fieldSlug",
|
|
265
|
-
"_emdash_collections.slug as collectionSlug",
|
|
266
|
-
"_emdash_fields.validation as validation"
|
|
267
|
-
]).where("_emdash_fields.type", "=", "reference").execute();
|
|
268
|
-
const byRelation = /* @__PURE__ */ new Map();
|
|
269
|
-
for (const row of rows) {
|
|
270
|
-
if (!row.validation) continue;
|
|
271
|
-
let parsed;
|
|
272
|
-
try {
|
|
273
|
-
parsed = JSON.parse(row.validation);
|
|
274
|
-
} catch {
|
|
275
|
-
continue;
|
|
276
|
-
}
|
|
277
|
-
if (!isRecord(parsed) || typeof parsed.relation !== "string") continue;
|
|
278
|
-
const bound = {
|
|
279
|
-
collectionSlug: row.collectionSlug,
|
|
280
|
-
fieldSlug: row.fieldSlug,
|
|
281
|
-
side: parsed.relationSide === "child" ? "child" : "parent"
|
|
282
|
-
};
|
|
283
|
-
const list = byRelation.get(parsed.relation);
|
|
284
|
-
if (list) list.push(bound);
|
|
285
|
-
else byRelation.set(parsed.relation, [bound]);
|
|
286
|
-
}
|
|
287
|
-
return byRelation;
|
|
288
|
-
}
|
|
289
|
-
/** Every reference field bound to one relation, across both of its ends. */
|
|
290
|
-
async function fieldsBoundToRelation(db, relationSlug) {
|
|
291
|
-
return (await fieldsBoundByRelation(db)).get(relationSlug) ?? [];
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Delete a relation, the reference fields bound to it, and its edges.
|
|
295
|
-
*
|
|
296
|
-
* A relation is only ever deleted deliberately — from the relations admin page,
|
|
297
|
-
* or by the checkbox on a field delete — and it cannot leave a field pointing at
|
|
298
|
-
* nothing, so the fields go with it either way. Callers show the count first;
|
|
299
|
-
* `deletedFields` reports what actually went.
|
|
300
|
-
*
|
|
301
|
-
* Order matters: fields first, then the relation row and its edges. On D1
|
|
302
|
-
* `withTransaction` degrades to sequential statements, so an interrupted run
|
|
303
|
-
* leaves a relation with fewer bound fields — visible on the relations page and
|
|
304
|
-
* finishable — rather than fields pointing at a relation that no longer exists.
|
|
305
|
-
*/
|
|
306
|
-
async function handleRelationDelete(db, id) {
|
|
307
|
-
try {
|
|
308
|
-
const relation = await new RelationRepository(db).findById(id);
|
|
309
|
-
if (!relation) return {
|
|
310
|
-
success: false,
|
|
311
|
-
error: {
|
|
312
|
-
code: "NOT_FOUND",
|
|
313
|
-
message: "Relation not found"
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
const bound = await fieldsBoundToRelation(db, relation.slug);
|
|
317
|
-
if (!await withTransaction(db, async (trx) => {
|
|
318
|
-
const registry = new SchemaRegistry(trx);
|
|
319
|
-
for (const field of bound) await registry.deleteField(field.collectionSlug, field.fieldSlug);
|
|
320
|
-
return new RelationRepository(trx).delete(id);
|
|
321
|
-
})) return {
|
|
322
|
-
success: false,
|
|
323
|
-
error: {
|
|
324
|
-
code: "NOT_FOUND",
|
|
325
|
-
message: "Relation not found"
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
for (const collection of new Set(bound.map((f) => f.collectionSlug))) {
|
|
329
|
-
invalidateCollectionCache(collection);
|
|
330
|
-
invalidateSchemaCache(collection);
|
|
331
|
-
}
|
|
332
|
-
return {
|
|
333
|
-
success: true,
|
|
334
|
-
data: {
|
|
335
|
-
deleted: true,
|
|
336
|
-
deletedFields: bound.map((f) => `${f.collectionSlug}.${f.fieldSlug}`)
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
} catch (error) {
|
|
340
|
-
console.error("Relation delete error:", error);
|
|
341
|
-
return {
|
|
342
|
-
success: false,
|
|
343
|
-
error: {
|
|
344
|
-
code: "RELATION_DELETE_ERROR",
|
|
345
|
-
message: "Failed to delete relation"
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Display title for a resolved entry: the collection's configured `titleField`,
|
|
352
|
-
* then `title`, then `name`, else null.
|
|
353
|
-
*/
|
|
354
|
-
function entryTitle(data, titleField) {
|
|
355
|
-
if (titleField) {
|
|
356
|
-
const configured = data[titleField];
|
|
357
|
-
if (typeof configured === "string" && configured.length > 0) return configured;
|
|
358
|
-
}
|
|
359
|
-
if (typeof data.title === "string" && data.title.length > 0) return data.title;
|
|
360
|
-
if (typeof data.name === "string" && data.name.length > 0) return data.name;
|
|
361
|
-
return null;
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* The collection's configured `titleField`, memoized for the request: a single
|
|
365
|
-
* content read hydrates every reference field, and several of them commonly
|
|
366
|
-
* target the same collection.
|
|
367
|
-
*/
|
|
368
|
-
async function getReferenceTitleField(db, collection) {
|
|
369
|
-
return requestCached(`reference-title-field:${collection}`, async () => {
|
|
370
|
-
return (await db.selectFrom("_emdash_collections").select("title_field").where("slug", "=", collection).executeTakeFirst())?.title_field ?? void 0;
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
/** Resolve a relation from an id OR its slug. */
|
|
374
|
-
async function resolveRelation(repo, idOrSlug) {
|
|
375
|
-
return await repo.findById(idOrSlug) ?? await repo.findBySlug(idOrSlug);
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Pick the locale variant matching `locale`, falling back to the first entry
|
|
379
|
-
* (lowest locale code). The fallback is intentional — an edge is keyed by
|
|
380
|
-
* `translation_group`, so a referenced entry that exists only in another locale
|
|
381
|
-
* is still a real reference — but the returned ref carries the variant's actual
|
|
382
|
-
* `locale` so callers never mistake a fallback for the requested locale.
|
|
383
|
-
*/
|
|
384
|
-
function pickVariant(items, locale) {
|
|
385
|
-
if (locale === null) return items[0];
|
|
386
|
-
const candidates = getLocaleCandidates(locale);
|
|
387
|
-
let best;
|
|
388
|
-
let bestRank = candidates.length;
|
|
389
|
-
for (const item of items) {
|
|
390
|
-
if (item.locale === null) continue;
|
|
391
|
-
const rank = getLocaleRank(item.locale, locale);
|
|
392
|
-
if (rank < bestRank) {
|
|
393
|
-
best = item;
|
|
394
|
-
bestRank = rank;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
return best ?? items[0];
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Resolve edge groups to loadable entries in `collection` at `locale`.
|
|
401
|
-
* Dangling groups (no surviving entry) are skipped — cleanup is a later slice.
|
|
402
|
-
*
|
|
403
|
-
* All groups are loaded in one batched query (chunked at `SQL_BATCH_SIZE`)
|
|
404
|
-
* rather than a `findTranslations` per edge, so a parent with N children costs
|
|
405
|
-
* a constant number of queries, not N+1. Edge order (the caller's `sort_order`)
|
|
406
|
-
* is preserved by iterating `edges`.
|
|
407
|
-
*
|
|
408
|
-
* `includeDrafts` is false for callers without `content:read_drafts`: the load
|
|
409
|
-
* is restricted to published entries so a draft/scheduled entry referenced by an
|
|
410
|
-
* edge is skipped exactly like a dangling one, never leaking its id/slug/locale.
|
|
411
|
-
*/
|
|
412
|
-
function resolveEntries(content, collection, edges, pick, locale, includeDrafts, titleField) {
|
|
413
|
-
return resolveGroupSelection(content, collection, edges.map((edge) => ({
|
|
414
|
-
group: pick(edge),
|
|
415
|
-
sortOrder: edge.sortOrder
|
|
416
|
-
})), locale, includeDrafts, titleField);
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* `resolveEntries` for a selection that has no links behind it yet — a pending
|
|
420
|
-
* one staged in a draft revision, which is already a list of translation groups
|
|
421
|
-
* in the order the editor chose. Position stands in for the `sort_order` the
|
|
422
|
-
* links will carry once it is published.
|
|
423
|
-
*/
|
|
424
|
-
function resolveEntryGroups(content, collection, groups, locale, includeDrafts, titleField) {
|
|
425
|
-
return resolveGroupSelection(content, collection, groups.map((group, index) => ({
|
|
426
|
-
group,
|
|
427
|
-
sortOrder: index
|
|
428
|
-
})), locale, includeDrafts, titleField);
|
|
429
|
-
}
|
|
430
|
-
async function resolveGroupSelection(content, collection, selection, locale, includeDrafts, titleField) {
|
|
431
|
-
const all = await content.findTranslationsForGroups(collection, selection.map((entry) => entry.group), { publishedOnly: !includeDrafts });
|
|
432
|
-
const variantsByGroup = /* @__PURE__ */ new Map();
|
|
433
|
-
for (const item of all) {
|
|
434
|
-
if (item.translationGroup == null) continue;
|
|
435
|
-
const list = variantsByGroup.get(item.translationGroup);
|
|
436
|
-
if (list) list.push(item);
|
|
437
|
-
else variantsByGroup.set(item.translationGroup, [item]);
|
|
438
|
-
}
|
|
439
|
-
const refs = [];
|
|
440
|
-
for (const selected of selection) {
|
|
441
|
-
const variants = variantsByGroup.get(selected.group);
|
|
442
|
-
if (!variants) continue;
|
|
443
|
-
const entry = pickVariant(variants, locale);
|
|
444
|
-
if (!entry) continue;
|
|
445
|
-
refs.push({
|
|
446
|
-
id: entry.id,
|
|
447
|
-
slug: entry.slug,
|
|
448
|
-
collection,
|
|
449
|
-
title: entryTitle(entry.data, titleField),
|
|
450
|
-
locale: entry.locale,
|
|
451
|
-
translationGroup: entry.translationGroup,
|
|
452
|
-
sortOrder: selected.sortOrder
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
return refs;
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* The page of a pending selection this end stages, when there is one.
|
|
459
|
-
*
|
|
460
|
-
* These routes address a relation and a side; a staged selection is keyed by the
|
|
461
|
-
* field slug the entry API takes it under, so the field viewing this end is what
|
|
462
|
-
* connects them. Returns undefined when the caller may not see drafts, the entry
|
|
463
|
-
* has no draft, or the draft stages nothing for this field — all of which mean
|
|
464
|
-
* the published links are the answer.
|
|
465
|
-
*/
|
|
466
|
-
async function stagedPageFor(db, options) {
|
|
467
|
-
if (!options.includeDrafts || !options.draftRevisionId) return void 0;
|
|
468
|
-
const field = constraintsForRelationSide(await referenceFieldConstraints(db, options.collection), options.relationSlug, options.side);
|
|
469
|
-
if (!field) return void 0;
|
|
470
|
-
const groups = readStagedReferences((await new RevisionRepository(db).findById(options.draftRevisionId))?.data)?.[field.slug];
|
|
471
|
-
if (!groups) return void 0;
|
|
472
|
-
return pageStagedGroups(groups, options.page);
|
|
473
|
-
}
|
|
474
|
-
async function handleReferenceChildrenGet(db, collection, entryId, relation, page = {}, includeDrafts = false) {
|
|
475
|
-
try {
|
|
476
|
-
const repo = new RelationRepository(db);
|
|
477
|
-
const content = new ContentRepository(db);
|
|
478
|
-
const rel = await resolveRelation(repo, relation);
|
|
479
|
-
if (!rel) return {
|
|
480
|
-
success: false,
|
|
481
|
-
error: {
|
|
482
|
-
code: "NOT_FOUND",
|
|
483
|
-
message: "Relation not found"
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
if (collection !== rel.parentCollection) return {
|
|
487
|
-
success: false,
|
|
488
|
-
error: {
|
|
489
|
-
code: "VALIDATION_ERROR",
|
|
490
|
-
message: "Entry is not the parent side of this relation"
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
const entry = await content.findByIdOrSlug(collection, entryId);
|
|
494
|
-
if (!entry?.translationGroup || !includeDrafts && entry.status !== "published") return {
|
|
495
|
-
success: false,
|
|
496
|
-
error: {
|
|
497
|
-
code: "NOT_FOUND",
|
|
498
|
-
message: "Content entry not found"
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
const titleField = await getReferenceTitleField(db, rel.childCollection);
|
|
502
|
-
const staged = await stagedPageFor(db, {
|
|
503
|
-
collection,
|
|
504
|
-
relationSlug: rel.slug,
|
|
505
|
-
side: "parent",
|
|
506
|
-
draftRevisionId: entry.draftRevisionId,
|
|
507
|
-
includeDrafts,
|
|
508
|
-
page
|
|
509
|
-
});
|
|
510
|
-
if (staged) return {
|
|
511
|
-
success: true,
|
|
512
|
-
data: {
|
|
513
|
-
children: await resolveEntryGroups(content, rel.childCollection, staged.groups, entry.locale, includeDrafts, titleField),
|
|
514
|
-
nextCursor: staged.nextCursor
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
const edges = await repo.getChildrenPage(rel.id, entry.translationGroup, page);
|
|
518
|
-
return {
|
|
519
|
-
success: true,
|
|
520
|
-
data: {
|
|
521
|
-
children: await resolveEntries(content, rel.childCollection, edges.items, (e) => e.childGroup, entry.locale, includeDrafts, titleField),
|
|
522
|
-
nextCursor: edges.nextCursor
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
|
-
} catch (error) {
|
|
526
|
-
return referencesGetError(error);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
/**
|
|
530
|
-
* Resolve a bound field's selection to what the link table stores, without
|
|
531
|
-
* writing anything and without needing the selecting entry to exist.
|
|
532
|
-
*
|
|
533
|
-
* The field decides the relation and the end it views: a field on the `parent`
|
|
534
|
-
* end selects children, one on the `child` end selects the parents pointing at
|
|
535
|
-
* it. `entryGroup` is the selecting entry's own translation group when it has
|
|
536
|
-
* one — the far-side count discounts links it already holds, since replacing a
|
|
537
|
-
* selection with itself adds nothing. A new entry passes `null`: it holds no
|
|
538
|
-
* links yet.
|
|
539
|
-
*/
|
|
540
|
-
async function resolveReferenceTargets(db, collection, constraints, selectedIds, entryGroup) {
|
|
541
|
-
const repo = new RelationRepository(db);
|
|
542
|
-
const content = new ContentRepository(db);
|
|
543
|
-
const side = constraints.relationSide;
|
|
544
|
-
const rel = await resolveRelation(repo, constraints.relation);
|
|
545
|
-
if (!rel) return {
|
|
546
|
-
success: false,
|
|
547
|
-
error: {
|
|
548
|
-
code: "NOT_FOUND",
|
|
549
|
-
message: "Relation not found"
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
const ownCollection = side === "parent" ? rel.parentCollection : rel.childCollection;
|
|
553
|
-
const otherCollection = side === "parent" ? rel.childCollection : rel.parentCollection;
|
|
554
|
-
if (collection !== ownCollection) return {
|
|
555
|
-
success: false,
|
|
556
|
-
error: {
|
|
557
|
-
code: "VALIDATION_ERROR",
|
|
558
|
-
message: `Entry is not the ${side} side of this relation`
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
const selection = validateReferenceSelection(constraints, selectedIds);
|
|
562
|
-
if (!selection.success) return selection;
|
|
563
|
-
const resolved = await content.findManyByIdOrSlug(otherCollection, selectedIds);
|
|
564
|
-
const groups = [];
|
|
565
|
-
for (const selectedId of selectedIds) {
|
|
566
|
-
const other = resolved.get(selectedId);
|
|
567
|
-
if (!other?.translationGroup) return {
|
|
568
|
-
success: false,
|
|
569
|
-
error: {
|
|
570
|
-
code: "NOT_FOUND",
|
|
571
|
-
message: `${side === "parent" ? "Child" : "Parent"} entry '${selectedId}' not found in ${otherCollection}`
|
|
572
|
-
}
|
|
573
|
-
};
|
|
574
|
-
groups.push(other.translationGroup);
|
|
575
|
-
}
|
|
576
|
-
const far = await validateOppositeSideLimit(db, {
|
|
577
|
-
relationId: rel.id,
|
|
578
|
-
farLimit: side === "parent" ? rel.maxParentsPerChild : rel.maxChildrenPerParent,
|
|
579
|
-
side,
|
|
580
|
-
entryGroup,
|
|
581
|
-
groups,
|
|
582
|
-
labels: selectedIds
|
|
583
|
-
});
|
|
584
|
-
if (!far.success) return far;
|
|
585
|
-
return {
|
|
586
|
-
success: true,
|
|
587
|
-
data: {
|
|
588
|
-
relation: rel.id,
|
|
589
|
-
side,
|
|
590
|
-
groups
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* Check what a selection does to the *other* end's cardinality.
|
|
596
|
-
*
|
|
597
|
-
* Cardinality binds both ends, but only one end ever selects: a field on the
|
|
598
|
-
* parent side that hands a child its second parent breaks `maxParentsPerChild`
|
|
599
|
-
* even though the parent's own limit is untouched. Links the selecting entry
|
|
600
|
-
* already holds are discounted — replacing a selection with itself adds nothing.
|
|
601
|
-
*
|
|
602
|
-
* `labels` names each group the way the caller addressed it, so the message
|
|
603
|
-
* quotes the id someone typed. Publication has only the groups, which it stages;
|
|
604
|
-
* it quotes those.
|
|
605
|
-
*/
|
|
606
|
-
async function validateOppositeSideLimit(db, options) {
|
|
607
|
-
const { farLimit, side, groups } = options;
|
|
608
|
-
if (farLimit === null || groups.length === 0) return {
|
|
609
|
-
success: true,
|
|
610
|
-
data: true
|
|
611
|
-
};
|
|
612
|
-
const counts = await new RelationRepository(db).countEdgesByGroup(options.relationId, side === "parent" ? "child" : "parent", groups, options.entryGroup);
|
|
613
|
-
for (const [index, group] of groups.entries()) {
|
|
614
|
-
if ((counts.get(group) ?? 0) + 1 <= farLimit) continue;
|
|
615
|
-
const farSide = side === "parent" ? "parent" : "child";
|
|
616
|
-
const label = options.labels?.[index] ?? group;
|
|
617
|
-
return {
|
|
618
|
-
success: false,
|
|
619
|
-
error: {
|
|
620
|
-
code: "VALIDATION_ERROR",
|
|
621
|
-
message: farLimit === 1 ? `Entry '${label}' already has a ${farSide} on this relation, which allows one.` : `Entry '${label}' already has the maximum of ${farLimit} ${farSide} entries on this relation.`
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
}
|
|
625
|
-
return {
|
|
626
|
-
success: true,
|
|
627
|
-
data: true
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* {@link resolveReferenceTargets} for an entry that already exists, anchoring the
|
|
632
|
-
* selection on that entry's translation group.
|
|
633
|
-
*/
|
|
634
|
-
async function resolveReferenceSide(db, collection, entryId, constraints, selectedIds) {
|
|
635
|
-
const entry = await new ContentRepository(db).findByIdOrSlug(collection, entryId);
|
|
636
|
-
if (!entry?.translationGroup) return {
|
|
637
|
-
success: false,
|
|
638
|
-
error: {
|
|
639
|
-
code: "NOT_FOUND",
|
|
640
|
-
message: "Content entry not found"
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
const resolved = await resolveReferenceTargets(db, collection, constraints, selectedIds, entry.translationGroup);
|
|
644
|
-
if (!resolved.success) return resolved;
|
|
645
|
-
return {
|
|
646
|
-
success: true,
|
|
647
|
-
data: {
|
|
648
|
-
...resolved.data,
|
|
649
|
-
entryGroup: entry.translationGroup
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* Replace one end's links from an already-resolved selection.
|
|
655
|
-
*
|
|
656
|
-
* Resolution has already proved the relation, the entry and every selected entry
|
|
657
|
-
* exist, so nothing here fails on the caller's input. What it can still hit is
|
|
658
|
-
* the far end's limit closing between resolving and writing — a slot another
|
|
659
|
-
* request took in that window. The write refuses the edge rather than exceeding
|
|
660
|
-
* the limit, and throws so the save reports it; the throw carries an `apiError`
|
|
661
|
-
* the content handlers map to a response.
|
|
662
|
-
*/
|
|
663
|
-
async function writeReferenceSelection(db, selection) {
|
|
664
|
-
const repo = new RelationRepository(db);
|
|
665
|
-
const rel = await resolveRelation(repo, selection.relation);
|
|
666
|
-
if (!rel) return;
|
|
667
|
-
const parentSide = selection.side === "parent";
|
|
668
|
-
const before = !hasRoomNotifier() ? [] : parentSide ? await repo.getChildren(rel.id, selection.entryGroup) : await repo.getParents(rel.id, selection.entryGroup);
|
|
669
|
-
const rejected = parentSide ? await repo.setChildren(rel.id, selection.entryGroup, selection.groups) : await repo.setParents(rel.id, selection.entryGroup, selection.groups);
|
|
670
|
-
if (rejected.length > 0) {
|
|
671
|
-
const farSide = selection.side === "parent" ? "parent" : "child";
|
|
672
|
-
throw Object.assign(/* @__PURE__ */ new Error(`Entry '${rejected[0]}' already has the maximum number of ${farSide} entries on this relation.`), { apiError: { code: "VALIDATION_ERROR" } });
|
|
673
|
-
}
|
|
674
|
-
invalidateCollectionCache(rel.parentCollection);
|
|
675
|
-
if (rel.childCollection !== rel.parentCollection) invalidateCollectionCache(rel.childCollection);
|
|
676
|
-
const [ownCollection, farCollection] = parentSide ? [rel.parentCollection, rel.childCollection] : [rel.childCollection, rel.parentCollection];
|
|
677
|
-
const linked = new Set(before.map((link) => parentSide ? link.childGroup : link.parentGroup));
|
|
678
|
-
const added = selection.groups.filter((group) => !linked.has(group));
|
|
679
|
-
const removed = [...linked].filter((group) => !selection.groups.includes(group));
|
|
680
|
-
await notifyEntryGroups(db, ownCollection, [selection.entryGroup], ["references"]);
|
|
681
|
-
await notifyEntryGroups(db, farCollection, [...added, ...removed], ["references"]);
|
|
682
|
-
}
|
|
683
|
-
/**
|
|
684
|
-
* Replace a reference field's selection on one entry, addressed by field slug.
|
|
685
|
-
*
|
|
686
|
-
* The field decides which relation and which end: a field bound to the parent
|
|
687
|
-
* end replaces that entry's children, one bound to the child end replaces the
|
|
688
|
-
* parents pointing at it. This is what the entry create/update body writes
|
|
689
|
-
* through, so a site addresses a selection the way it addresses any other field.
|
|
690
|
-
*/
|
|
691
|
-
async function setReferenceSelection(db, collection, entryId, fieldSlug, selectedIds) {
|
|
692
|
-
const resolved = await resolveReferenceSelection(db, collection, entryId, fieldSlug, selectedIds);
|
|
693
|
-
if (!resolved.success) return resolved;
|
|
694
|
-
await writeReferenceSelection(db, resolved.data);
|
|
695
|
-
return {
|
|
696
|
-
success: true,
|
|
697
|
-
data: {
|
|
698
|
-
relationId: resolved.data.relation,
|
|
699
|
-
entryGroup: resolved.data.entryGroup
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* `setReferenceSelection` up to but not including the write.
|
|
705
|
-
*
|
|
706
|
-
* A collection that keeps drafts stages the result in its draft revision instead
|
|
707
|
-
* of writing links, so a save reports a bad id or an over-long selection exactly
|
|
708
|
-
* as a direct write would, and publication has nothing left to resolve.
|
|
709
|
-
*/
|
|
710
|
-
async function resolveReferenceSelection(db, collection, entryId, fieldSlug, selectedIds) {
|
|
711
|
-
const constraints = (await referenceFieldConstraints(db, collection)).get(fieldSlug);
|
|
712
|
-
if (!constraints) return notAReferenceField(fieldSlug, collection);
|
|
713
|
-
return resolveReferenceSide(db, collection, entryId, constraints, selectedIds);
|
|
714
|
-
}
|
|
715
|
-
/**
|
|
716
|
-
* `resolveReferenceSelection` for an entry that does not exist yet.
|
|
717
|
-
*
|
|
718
|
-
* A create resolves its whole payload before it writes its row, because on D1
|
|
719
|
-
* that row is committed the moment it is written: a selection that cannot be
|
|
720
|
-
* resolved has to be refused while there is still nothing to take back.
|
|
721
|
-
*
|
|
722
|
-
* `entryGroup` is the group the new row will join — a new translation inherits
|
|
723
|
-
* the source's — or null when the row starts a group of its own and so holds no
|
|
724
|
-
* links yet.
|
|
725
|
-
*/
|
|
726
|
-
async function resolveReferenceSelectionTargets(db, collection, fieldSlug, selectedIds, entryGroup) {
|
|
727
|
-
const constraints = (await referenceFieldConstraints(db, collection)).get(fieldSlug);
|
|
728
|
-
if (!constraints) return notAReferenceField(fieldSlug, collection);
|
|
729
|
-
return resolveReferenceTargets(db, collection, constraints, selectedIds, entryGroup);
|
|
730
|
-
}
|
|
731
|
-
function notAReferenceField(fieldSlug, collection) {
|
|
732
|
-
return {
|
|
733
|
-
success: false,
|
|
734
|
-
error: {
|
|
735
|
-
code: "VALIDATION_ERROR",
|
|
736
|
-
message: `Field '${fieldSlug}' is not a reference field on ${collection}`
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
async function handleReferenceParentsGet(db, collection, entryId, relation, page = {}, includeDrafts = false) {
|
|
741
|
-
try {
|
|
742
|
-
const repo = new RelationRepository(db);
|
|
743
|
-
const content = new ContentRepository(db);
|
|
744
|
-
const rel = await resolveRelation(repo, relation);
|
|
745
|
-
if (!rel) return {
|
|
746
|
-
success: false,
|
|
747
|
-
error: {
|
|
748
|
-
code: "NOT_FOUND",
|
|
749
|
-
message: "Relation not found"
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
|
-
if (collection !== rel.childCollection) return {
|
|
753
|
-
success: false,
|
|
754
|
-
error: {
|
|
755
|
-
code: "VALIDATION_ERROR",
|
|
756
|
-
message: "Entry is not the child side of this relation"
|
|
757
|
-
}
|
|
758
|
-
};
|
|
759
|
-
const entry = await content.findByIdOrSlug(collection, entryId);
|
|
760
|
-
if (!entry?.translationGroup || !includeDrafts && entry.status !== "published") return {
|
|
761
|
-
success: false,
|
|
762
|
-
error: {
|
|
763
|
-
code: "NOT_FOUND",
|
|
764
|
-
message: "Content entry not found"
|
|
765
|
-
}
|
|
766
|
-
};
|
|
767
|
-
const titleField = await getReferenceTitleField(db, rel.parentCollection);
|
|
768
|
-
const staged = await stagedPageFor(db, {
|
|
769
|
-
collection,
|
|
770
|
-
relationSlug: rel.slug,
|
|
771
|
-
side: "child",
|
|
772
|
-
draftRevisionId: entry.draftRevisionId,
|
|
773
|
-
includeDrafts,
|
|
774
|
-
page
|
|
775
|
-
});
|
|
776
|
-
if (staged) return {
|
|
777
|
-
success: true,
|
|
778
|
-
data: {
|
|
779
|
-
parents: await resolveEntryGroups(content, rel.parentCollection, staged.groups, entry.locale, includeDrafts, titleField),
|
|
780
|
-
nextCursor: staged.nextCursor
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
const edges = await repo.getParentsPage(rel.id, entry.translationGroup, page);
|
|
784
|
-
return {
|
|
785
|
-
success: true,
|
|
786
|
-
data: {
|
|
787
|
-
parents: await resolveEntries(content, rel.parentCollection, edges.items, (e) => e.parentGroup, entry.locale, includeDrafts, titleField),
|
|
788
|
-
nextCursor: edges.nextCursor
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
} catch (error) {
|
|
792
|
-
return referencesGetError(error);
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
//#endregion
|
|
797
|
-
export { referenceFieldConstraints as _, handleRelationCreate as a, handleRelationList as c, resolveEntryGroups as d, resolveReferenceSelection as f, writeReferenceSelection as g, validateOppositeSideLimit as h, handleReferenceParentsGet as i, handleRelationUpdate as l, setReferenceSelection as m, getReferenceTitleField as n, handleRelationDelete as o, resolveReferenceSelectionTargets as p, handleReferenceChildrenGet as r, handleRelationGet as s, fieldsBoundToRelation as t, resolveEntries as u, validateReferenceSelection as v, validateRequiredReferencesPresent as y };
|
|
798
|
-
//# sourceMappingURL=relations-Eyop_U4o.mjs.map
|