dineway 0.2.25 → 0.2.26
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/{activity-Bm5x0dik.mjs → activity-C6JLcUzM.mjs} +2 -2
- package/dist/{activity-events-DpvhcjTP.mjs → activity-events-u9wIH8CQ.mjs} +1 -1
- package/dist/{allowed-origins-M5Rcl6XL.mjs → allowed-origins-CjTNO3cD.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +13 -13
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +4 -3
- package/dist/{api-Cod3v4JU.mjs → api-COtLcrtJ.mjs} +16 -16
- package/dist/{api-tokens-BFgXg0l2.mjs → api-tokens-CI5sgE1g.mjs} +1 -1
- package/dist/{apply-Hodkn7PL.mjs → apply-DNy1dp8W.mjs} +20 -18
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +3 -3
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +193 -82
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +6 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +6 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +17 -16
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +8 -7
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +8 -7
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +8 -7
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +14 -13
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +14 -13
- package/dist/astro/routes/api/admin/bylines/index.mjs +14 -13
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +12 -11
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -9
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +24 -23
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +24 -23
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +29 -28
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +29 -28
- package/dist/astro/routes/api/admin/context/diff.mjs +28 -27
- package/dist/astro/routes/api/admin/context/index.mjs +29 -28
- package/dist/astro/routes/api/admin/context/stale.mjs +28 -27
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +24 -23
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +28 -27
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +28 -27
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +25 -24
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +54 -53
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +54 -53
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +46 -45
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +53 -52
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +53 -52
- package/dist/astro/routes/api/admin/plugins/index.mjs +46 -45
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +46 -45
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +53 -52
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +46 -45
- package/dist/astro/routes/api/admin/plugins/updates.mjs +46 -45
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +29 -28
- package/dist/astro/routes/api/admin/review-requests/index.mjs +29 -28
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +46 -45
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +46 -45
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -5
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +6 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +10 -9
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -8
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +9 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +8 -7
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +6 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +11 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -8
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -9
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -9
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +10 -9
- package/dist/astro/routes/api/auth/signup/request.mjs +9 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +13 -12
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +12 -11
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +16 -15
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +16 -15
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +13 -12
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -6
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +18 -17
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +9 -8
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +33 -32
- package/dist/astro/routes/api/import/wordpress/media.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +10 -9
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +32 -31
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +29 -28
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +21 -20
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +37 -36
- package/dist/astro/routes/api/integrations/_provider_.mjs +6 -6
- package/dist/astro/routes/api/integrations/index.mjs +5 -5
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +66 -65
- package/dist/astro/routes/api/media/_id_/confirm.mjs +9 -8
- package/dist/astro/routes/api/media/_id_.mjs +8 -7
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- 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 +10 -9
- package/dist/astro/routes/api/media.mjs +11 -10
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +29 -28
- package/dist/astro/routes/api/menus/_name_/items.mjs +29 -28
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +29 -28
- package/dist/astro/routes/api/menus/_name_/translations.mjs +29 -28
- package/dist/astro/routes/api/menus/_name_.mjs +29 -28
- package/dist/astro/routes/api/menus/index.mjs +29 -28
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +5 -4
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -9
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -9
- package/dist/astro/routes/api/redirects/_id_.mjs +30 -29
- package/dist/astro/routes/api/redirects/index.mjs +30 -29
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +48 -47
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +48 -47
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +48 -47
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +48 -47
- package/dist/astro/routes/api/schema/collections/index.mjs +48 -47
- package/dist/astro/routes/api/schema/index.mjs +8 -7
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +46 -45
- package/dist/astro/routes/api/schema/orphans/index.mjs +46 -45
- package/dist/astro/routes/api/search/enable.mjs +11 -10
- package/dist/astro/routes/api/search/index.mjs +10 -9
- package/dist/astro/routes/api/search/rebuild.mjs +11 -10
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +10 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +29 -28
- package/dist/astro/routes/api/sections/index.mjs +29 -28
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings.mjs +29 -28
- package/dist/astro/routes/api/setup/admin-verify.mjs +12 -11
- package/dist/astro/routes/api/setup/admin.mjs +10 -9
- package/dist/astro/routes/api/setup/dev-bypass.mjs +24 -23
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +25 -24
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +32 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +32 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +32 -31
- package/dist/astro/routes/api/taxonomies/index.mjs +32 -31
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +28 -27
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +29 -28
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +29 -28
- package/dist/astro/routes/api/widget-areas/_name_.mjs +26 -25
- package/dist/astro/routes/api/widget-areas/index.mjs +29 -28
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +5 -5
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +12 -11
- package/dist/astro/routes/sitemap.xml.mjs +11 -10
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +13 -12
- package/dist/{audit-nenmMR-2.mjs → audit-BGHS3IuK.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-B7PdECn6.mjs → auth-control-guard-BQLSUQd7.mjs} +1 -1
- package/dist/{authorize-DTvHe9bm.mjs → authorize-D8etr-1g.mjs} +1 -1
- package/dist/{briefing-CpU_z8qH.mjs → briefing-DcDVI-0v.mjs} +5 -5
- package/dist/{briefing-PxagUoJJ.mjs → briefing-Yao75K3z.mjs} +1 -1
- package/dist/{bundle-dsO2-7eh.mjs → bundle-MGZ2MLSb.mjs} +2 -2
- package/dist/{byline-DEBDPF8R.mjs → byline-CbFno1Kd.mjs} +4 -4
- package/dist/{byline-fields-BQRx17y_.mjs → byline-fields-C0IOddTf.mjs} +1 -1
- package/dist/{byline-fields-HoyRUnBy.d.mts → byline-fields-CjCCA-Wn.d.mts} +36 -12
- package/dist/{bylines-C7hm1-iI.mjs → bylines-BotyuTdY.mjs} +3 -3
- package/dist/{bylines-YK6eGHvV.mjs → bylines-DXXMlc1A.mjs} +5 -5
- package/dist/{cache-BuVpjvBc.mjs → cache-Cf5yPNNw.mjs} +1 -1
- package/dist/{chunks-B-1_U3oF.mjs → chunks-Dh8yqZt3.mjs} +1 -1
- package/dist/cli/index.mjs +29 -27
- package/dist/cli/plugin-kit.d.mts +9 -9
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +11 -11
- package/dist/client/index.mjs +2 -2
- package/dist/{client-factory-Nyp2sznG.mjs → client-factory-BDDerNBz.mjs} +1 -1
- package/dist/{comment-BX6H4NF-.mjs → comment-eqM9KHbj.mjs} +1 -1
- package/dist/{comment-reaction-QSENU_3S.mjs → comment-reaction-mHuRHspq.mjs} +1 -1
- package/dist/{comments-BHSYG53k.mjs → comments-BFbF0xaG.mjs} +1 -1
- package/dist/{content-Bg_hMt4Q.mjs → content-C0qGd2Nt.mjs} +2 -2
- package/dist/{content-refresh-CHBBZGwf.mjs → content-refresh-BkGWtwUN.mjs} +2 -2
- package/dist/{context-BGt7zfQ-.mjs → context-BEgiPeP-.mjs} +8 -8
- package/dist/{context-BHXgPEPC.mjs → context-CnCdZ2xZ.mjs} +2 -2
- package/dist/{context-route-helpers-SwM-_GT4.mjs → context-route-helpers-CXxj6-jq.mjs} +2 -2
- package/dist/{dashboard-ByLUL4c3.mjs → dashboard-B8Sk45s8.mjs} +4 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-XqdFNsv_.mjs → device-flow-DCbF6FAE.mjs} +4 -4
- package/dist/{discovery-DvuRcbP-.mjs → discovery-CUX99M46.mjs} +7 -3
- package/dist/{field-defs-cache-sSdDeJXP.mjs → field-defs-cache-7Ka899yA.mjs} +1 -1
- package/dist/{fts-manager-C7pxxk6B.mjs → fts-manager-D4K5mA0j.mjs} +1 -1
- package/dist/{hitl-requests-D7pfIM6q.mjs → hitl-requests-DU4wJSml.mjs} +2 -2
- package/dist/{hitl-route-helpers-Br9uvIQs.mjs → hitl-route-helpers-CkRqaLaJ.mjs} +5 -5
- package/dist/{import-CrsquhXj.mjs → import-BcSW07F1.mjs} +7 -7
- package/dist/{index-NdJMMO48.d.mts → index-C7X4h_27.d.mts} +3 -3
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +76 -75
- package/dist/{integration-credentials-B7Pj6YCv.mjs → integration-credentials-ylo0bguS.mjs} +2 -2
- package/dist/{jsonld-CfUj_enm.d.mts → jsonld-thSA4Rua.d.mts} +2 -2
- package/dist/{load-Bul8Tk6e.mjs → load-B1cm00WU.mjs} +1 -1
- package/dist/{loader-BCr2VSzt.mjs → loader-CsX5pTud.mjs} +2 -2
- package/dist/{manifest-schema-U5qGq-iB.mjs → manifest-schema-VGSvatoU.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-C1lIimd0.mjs → mcp-reviewed-executor-lqfDtcFo.mjs} +5 -5
- package/dist/media/index.d.mts +1 -1
- package/dist/media/local-runtime.d.mts +11 -11
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-D8pQJSug.mjs → media-DNde5-Am.mjs} +1 -1
- package/dist/{menus-DSWeEWXl.mjs → menus-D_pqSYJ3.mjs} +5 -5
- package/dist/{menus-3B-PGTX3.mjs → menus-oIJaGGUU.mjs} +1 -1
- package/dist/{oauth-authorization-CMU5kREy.mjs → oauth-authorization-DHeVHdGr.mjs} +4 -4
- package/dist/{oauth-clients-CLdR0WyA.mjs → oauth-clients-8cVhd-8W.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/page/index.d.mts +10 -10
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-DEG06jjr.mjs → parse-RN_EgAxL.mjs} +1 -1
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-D8YxTh9q.mjs → plugins-DMImBiT9.mjs} +5 -5
- package/dist/{preview-Bn59ztjn.mjs → preview-DDtW5YuZ.mjs} +2 -2
- package/dist/{provider-loader-jdkZM6xZ.d.mts → provider-loader-DZ9uy48J.d.mts} +1 -1
- package/dist/public-discovery-BlJ80Hoh.mjs +30 -0
- package/dist/{public-url-DifBmsDt.d.mts → public-url-Binfty0i.d.mts} +1 -1
- package/dist/{public-url-DFX2c_20.d.mts → public-url-BuERxOoY.d.mts} +17 -2
- package/dist/{publication-authorization-BmazS4K0.mjs → publication-authorization-DYAGeWto.mjs} +15 -10
- package/dist/{query-CrUftarl.mjs → query-DzsPhsZk.mjs} +12 -12
- package/dist/{query-DPC5GT6e.mjs → query-qvv6Rar8.mjs} +2 -2
- package/dist/{rate-limit-DvGL45wH.mjs → rate-limit-BIuuIxP3.mjs} +2 -2
- package/dist/{redirect-8B-gorhg.mjs → redirect-B_9GwIZd.mjs} +1 -1
- package/dist/{redirects-DdPaQiWQ.mjs → redirects-Cj4lrY_X.mjs} +6 -2
- package/dist/{redirects-D2SVS1zo.mjs → redirects-DvsWZIiC.mjs} +3 -3
- package/dist/{registry-D3n4-yUl.mjs → registry-BwcF6gAj.mjs} +11 -5
- package/dist/{request-meta-DZTiCIQR.mjs → request-meta-C0druWvK.mjs} +1 -1
- package/dist/{review-requests-BQbmYLnz.mjs → review-requests-B2tCLjdA.mjs} +2 -2
- package/dist/{review-requests-D5CJ4JCy.mjs → review-requests-Bo4jcxtU.mjs} +1 -1
- package/dist/{review-route-helpers-DYiujAPM.mjs → review-route-helpers-CeYzVpNa.mjs} +2 -2
- package/dist/{runner-BWZ87FK-.mjs → runner-CQnzfBpD.mjs} +475 -461
- package/dist/{runner-BITx7yBF.d.mts → runner-DnswPQIl.d.mts} +1 -1
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +3 -3
- package/dist/schema-86uC3yVE.mjs +8 -0
- package/dist/{search-B_ir6H6m.mjs → search-CeXUu1KD.mjs} +3 -3
- package/dist/{sections-pRy07N5I.mjs → sections-BQdtDQUw.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +18 -17
- package/dist/seo/index.d.mts +4 -4
- package/dist/seo/index.mjs +8 -7
- package/dist/{seo-DdNntVj-.mjs → seo-BVmdKP7v.mjs} +1 -1
- package/dist/{seo-C4nlxiaY.mjs → seo-BpuKUrBs.mjs} +1 -1
- package/dist/{service-D6fJX7D7.mjs → service-CSeV_04p.mjs} +2 -2
- package/dist/{settings-C4OMR0zf.mjs → settings-ClnGCe1a.mjs} +2 -2
- package/dist/{settings-D-a7uy2z.mjs → settings-DXp6vRdV.mjs} +3 -3
- package/dist/{site-activity-CnrmnFRy.mjs → site-activity-By0wWO0g.mjs} +1 -1
- package/dist/{site-context-Bdsobbh9.mjs → site-context-DRSrU7hX.mjs} +14 -14
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{store-DerEE3jG.mjs → store-C6bydUdt.mjs} +1 -1
- package/dist/{taxonomies-6bWkaa_G.mjs → taxonomies-CHHgZFzB.mjs} +3 -3
- package/dist/{taxonomies-FKTevd14.mjs → taxonomies-Dfmkapin.mjs} +5 -5
- package/dist/{taxonomy-BU0eCfij.mjs → taxonomy-BUo9B6qp.mjs} +2 -2
- package/dist/{types-C9F2TLQV.mjs → types-CFvpEEOl.mjs} +1 -1
- package/dist/{types-B6r_SMeR.d.mts → types-DCkWipbM.d.mts} +1 -1
- package/dist/{types-B2kbOwSj.d.mts → types-VkWKA-R2.d.mts} +12 -1
- package/dist/{types-BkQ-l1Y5.d.mts → types-ZDyMKdrZ.d.mts} +51 -24
- package/dist/{types-C8cUW9dh.d.mts → types-gG3syKwc.d.mts} +1 -0
- package/dist/ui/server-runtime.d.mts +13 -13
- package/dist/ui/server-runtime.mjs +21 -20
- package/dist/{user-BV02bsWz.mjs → user-BprdjWGE.mjs} +2 -2
- package/dist/{validate-Drps_jbV.mjs → validate-Cdvc9APD.mjs} +7 -1
- package/dist/{validate-Bc9gaua6.d.mts → validate-SXACKtqW.d.mts} +4 -3
- package/dist/version-BjNGau7O.mjs +6 -0
- package/dist/{widgets-BFqy7PYs.mjs → widgets-DMzBMhsO.mjs} +2 -2
- package/dist/{zod-generator-BlY_vGgR.mjs → zod-generator-C0nwBbg8.mjs} +1 -1
- package/package.json +3 -3
- package/dist/schema-kk9-6bUd.mjs +0 -8
- package/dist/version-BohmuXyf.mjs +0 -6
- /package/dist/{actor-D3A5PNkH.mjs → actor-Bu9whHez.mjs} +0 -0
- /package/dist/{adapters-DUVI3Mpc.d.mts → adapters-BZWb3OVu.d.mts} +0 -0
- /package/dist/{api-tokens-CbMAy6xF.mjs → api-tokens-BkXlt3V6.mjs} +0 -0
- /package/dist/{byline-fields-DPi4Ri_5.mjs → byline-fields-CS1Hi2N4.mjs} +0 -0
- /package/dist/{challenge-store-DtdQHXf5.mjs → challenge-store-DvRxUsXv.mjs} +0 -0
- /package/dist/{components-DGu-rih7.mjs → components-D5HxUv7y.mjs} +0 -0
- /package/dist/{cron-BjKHo0QD.mjs → cron-fQf7oVvf.mjs} +0 -0
- /package/dist/{default-CO47mlSA.mjs → default-CnbyLh9W.mjs} +0 -0
- /package/dist/{email-console-CFE1ay18.mjs → email-console-vFj2FFuJ.mjs} +0 -0
- /package/dist/{error-Jz0EtEwI.mjs → error-DWL9Pwyt.mjs} +0 -0
- /package/dist/{escape-HmHTC1Is.mjs → escape-DBggE3jq.mjs} +0 -0
- /package/dist/{experimental-workflows-EYZRNkRR.mjs → experimental-workflows-Dvn_xgew.mjs} +0 -0
- /package/dist/{media-allowlist-9u_gxMG2.mjs → media-allowlist-D3AHS_q3.mjs} +0 -0
- /package/dist/{media-url-DVoOhf4X.mjs → media-url-LSeVcoln.mjs} +0 -0
- /package/dist/{mode-DqpBaEOy.mjs → mode-DYsXVFoY.mjs} +0 -0
- /package/dist/{oauth-state-store-HdGg_nSm.mjs → oauth-state-store-CUU4azTF.mjs} +0 -0
- /package/dist/{oauth-user-lookup-CP16vyFW.mjs → oauth-user-lookup-CRFHKN_W.mjs} +0 -0
- /package/dist/{output-CXOC3BFr.mjs → output-13u4dvu-.mjs} +0 -0
- /package/dist/{parser-buoH2frr.mjs → parser-Co69H1x-.mjs} +0 -0
- /package/dist/{passkey-config-T47FwLtS.mjs → passkey-config-e-0KLl2R.mjs} +0 -0
- /package/dist/{placeholder-BsYSFPjY.d.mts → placeholder-DeJydgkj.d.mts} +0 -0
- /package/dist/{portable-text-Dm0bgrdZ.d.mts → portable-text-B7E-ali_.d.mts} +0 -0
- /package/dist/{portable-text-DQHE3b5v.mjs → portable-text-C8Tvp4_g.mjs} +0 -0
- /package/dist/{provider-loader-Dxka0BDp.mjs → provider-loader-BIxppPHS.mjs} +0 -0
- /package/dist/{public-url-CIAtNGEg.mjs → public-url-jFEiiLag.mjs} +0 -0
- /package/dist/{redirect-CzqnLxK-.mjs → redirect-C2bJtYhP.mjs} +0 -0
- /package/dist/{resolve-CThKf9_X.mjs → resolve-Doh2USIE.mjs} +0 -0
- /package/dist/{review-payload-BysRWpxS.mjs → review-payload-Cg9dtFgV.mjs} +0 -0
- /package/dist/{secrets-Dw3lXI42.mjs → secrets-re9BzPUD.mjs} +0 -0
- /package/dist/{seo-contributions-BGBehNCN.mjs → seo-contributions-CPDwm9MH.mjs} +0 -0
- /package/dist/{service-DOdvCW-9.mjs → service-CY0aH6eI.mjs} +0 -0
- /package/dist/{session-user-CYjNeJoD.mjs → session-user-DTopk3zO.mjs} +0 -0
- /package/dist/{setup-complete-Blqo_adb.mjs → setup-complete-BcjodOdW.mjs} +0 -0
- /package/dist/{setup-nonce-CGUTFWgQ.mjs → setup-nonce-C76FNEst.mjs} +0 -0
- /package/dist/{sidecar-client-C6ylL-0S.mjs → sidecar-client-CQF4fcO7.mjs} +0 -0
- /package/dist/{site-url-CK5vBdFu.mjs → site-url-C1PUhgWO.mjs} +0 -0
- /package/dist/{ssrf-Dz2hqAiG.mjs → ssrf-CxOWiF0p.mjs} +0 -0
- /package/dist/{status-xz9JACSX.mjs → status-DvSRKIiF.mjs} +0 -0
- /package/dist/{tokens-DiodRT2y.mjs → tokens-COJxRo8q.mjs} +0 -0
- /package/dist/{transport-zquJ7Bzm.mjs → transport-BDQ73F0l.mjs} +0 -0
- /package/dist/{transport-DKy93p6V.d.mts → transport-BfF60P73.d.mts} +0 -0
- /package/dist/{trusted-proxy-NySPw95m.mjs → trusted-proxy-j2KYPN4r.mjs} +0 -0
- /package/dist/{types-DY9lJRpo.d.mts → types-B0P-ECRI.d.mts} +0 -0
- /package/dist/{types-C2LBO0t8.d.mts → types-C0hcZkqG.d.mts} +0 -0
- /package/dist/{types-BaKec6bx.d.mts → types-Cnz2EIEp.d.mts} +0 -0
- /package/dist/{types-ftxcMx5-.mjs → types-DA4L0OLk.mjs} +0 -0
- /package/dist/{types-Gd4kXLsa.d.mts → types-DN82MbYv.d.mts} +0 -0
- /package/dist/{types-C1LdZbQb.mjs → types-gnLXQcvx.mjs} +0 -0
- /package/dist/{url-C05Zz4pW.mjs → url-BG-3f-Vy.mjs} +0 -0
- /package/dist/{url-guoXQQcV.mjs → url-Bm__30we.mjs} +0 -0
- /package/dist/{utils-BPzpVHqR.mjs → utils-D_bwAtcb.mjs} +0 -0
- /package/dist/{wordpress-slugs-fMvfO22_.mjs → wordpress-slugs-CuizIp_V.mjs} +0 -0
package/dist/page/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Dt as PublicSchemaNode, Et as PublicPageSchema, F as PageMetadataContribution, M as PageFragmentContribution, Tt as PublicPageImage, wt as PublicPageContext } from "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../public-url-
|
|
7
|
-
import "../validate-
|
|
8
|
-
import "../byline-fields-
|
|
9
|
-
import "../types-
|
|
10
|
-
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-
|
|
1
|
+
import { Dt as PublicSchemaNode, Et as PublicPageSchema, F as PageMetadataContribution, M as PageFragmentContribution, Tt as PublicPageImage, wt as PublicPageContext } from "../types-ZDyMKdrZ.mjs";
|
|
2
|
+
import "../types-gG3syKwc.mjs";
|
|
3
|
+
import "../runner-DnswPQIl.mjs";
|
|
4
|
+
import "../index-C7X4h_27.mjs";
|
|
5
|
+
import "../types-C0hcZkqG.mjs";
|
|
6
|
+
import "../public-url-BuERxOoY.mjs";
|
|
7
|
+
import "../validate-SXACKtqW.mjs";
|
|
8
|
+
import "../byline-fields-CjCCA-Wn.mjs";
|
|
9
|
+
import "../types-Cnz2EIEp.mjs";
|
|
10
|
+
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-thSA4Rua.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/page/index.d.ts
|
|
13
13
|
/**
|
package/dist/page/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as createPublicPageContext, a as createSha256CspHash, c as resolvePageMetadata, d as buildBlogPostingJsonLd, f as buildWebSiteJsonLd, h as resolvePageImage, i as resolveFragments, l as safeJsonLdSerialize, m as imageMetadataContributions, n as generateSiteSeoContributions, o as escapeHtmlAttr, p as cleanJsonLd, r as renderFragments, s as renderPageMetadata, t as generateBaseSeoContributions, u as mergePageSchema } from "../seo-contributions-
|
|
1
|
+
import { _ as createPublicPageContext, a as createSha256CspHash, c as resolvePageMetadata, d as buildBlogPostingJsonLd, f as buildWebSiteJsonLd, h as resolvePageImage, i as resolveFragments, l as safeJsonLdSerialize, m as imageMetadataContributions, n as generateSiteSeoContributions, o as escapeHtmlAttr, p as cleanJsonLd, r as renderFragments, s as renderPageMetadata, t as generateBaseSeoContributions, u as mergePageSchema } from "../seo-contributions-CPDwm9MH.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/page/index.ts
|
|
4
4
|
/**
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./runner-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./public-url-
|
|
7
|
-
import "./validate-
|
|
8
|
-
import "./byline-fields-
|
|
9
|
-
import "./types-
|
|
1
|
+
import "./types-ZDyMKdrZ.mjs";
|
|
2
|
+
import "./types-gG3syKwc.mjs";
|
|
3
|
+
import "./runner-DnswPQIl.mjs";
|
|
4
|
+
import "./index-C7X4h_27.mjs";
|
|
5
|
+
import "./types-C0hcZkqG.mjs";
|
|
6
|
+
import "./public-url-BuERxOoY.mjs";
|
|
7
|
+
import "./validate-SXACKtqW.mjs";
|
|
8
|
+
import "./byline-fields-CjCCA-Wn.mjs";
|
|
9
|
+
import "./types-Cnz2EIEp.mjs";
|
|
10
10
|
import { DinewayHandlers } from "./astro/types.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/plugin-utils.d.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../public-url-
|
|
7
|
-
import "../validate-
|
|
8
|
-
import "../byline-fields-
|
|
9
|
-
import "../types-
|
|
1
|
+
import { Ft as StandardPluginDefinition, ko as PluginDescriptor, kt as ResolvedPlugin } from "../types-ZDyMKdrZ.mjs";
|
|
2
|
+
import "../types-gG3syKwc.mjs";
|
|
3
|
+
import "../runner-DnswPQIl.mjs";
|
|
4
|
+
import "../index-C7X4h_27.mjs";
|
|
5
|
+
import "../types-C0hcZkqG.mjs";
|
|
6
|
+
import "../public-url-BuERxOoY.mjs";
|
|
7
|
+
import "../validate-SXACKtqW.mjs";
|
|
8
|
+
import "../byline-fields-CjCCA-Wn.mjs";
|
|
9
|
+
import "../types-Cnz2EIEp.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/plugins/adapt-sandbox-entry.d.ts
|
|
12
12
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as validatePluginIdentifier, t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-F8-DUraK.mjs";
|
|
3
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
3
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Dh8yqZt3.mjs";
|
|
4
4
|
import { t as OptionsRepository } from "./options-DQPTH5n0.mjs";
|
|
5
|
-
import { n as createPluginContext, t as PluginContextFactory } from "./context-
|
|
6
|
-
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-
|
|
7
|
-
import { t as extractRequestMeta } from "./request-meta-
|
|
8
|
-
import { r as setCronTasksEnabled } from "./cron-
|
|
5
|
+
import { n as createPluginContext, t as PluginContextFactory } from "./context-BEgiPeP-.mjs";
|
|
6
|
+
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-re9BzPUD.mjs";
|
|
7
|
+
import { t as extractRequestMeta } from "./request-meta-C0druWvK.mjs";
|
|
8
|
+
import { r as setCronTasksEnabled } from "./cron-fQf7oVvf.mjs";
|
|
9
9
|
import { Migrator, sql } from "kysely";
|
|
10
10
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as loadBetterSqlite3, t as createDatabase } from "./connection-CiJWiWya.mjs";
|
|
2
2
|
import { runWithContext } from "./request-context.mjs";
|
|
3
|
-
import { a as verifyPreviewSignature, t as buildPreviewSignatureHeader } from "./sidecar-client-
|
|
4
|
-
import { t as generatePreviewToken } from "./tokens-
|
|
3
|
+
import { a as verifyPreviewSignature, t as buildPreviewSignatureHeader } from "./sidecar-client-CQF4fcO7.mjs";
|
|
4
|
+
import { t as generatePreviewToken } from "./tokens-COJxRo8q.mjs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
import { ulid } from "ulidx";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schema/public-discovery.ts
|
|
4
|
+
/** A declared discovery boundary, not an authorization policy for CMS reads. */
|
|
5
|
+
const publicDiscoveryRulesSchema = z.object({
|
|
6
|
+
excludeIfTrue: z.array(z.string().min(1).max(63).regex(/^[a-z][a-z0-9_]*$/)).max(16).refine((fields) => new Set(fields).size === fields.length, "Discovery fields must be unique").optional(),
|
|
7
|
+
requireLiveRevision: z.boolean().optional()
|
|
8
|
+
}).strict();
|
|
9
|
+
function parsePublicDiscoveryRules(value) {
|
|
10
|
+
return publicDiscoveryRulesSchema.parse(value);
|
|
11
|
+
}
|
|
12
|
+
/** Reject stale declarations before either SQL discovery or snapshot eligibility runs. */
|
|
13
|
+
function publicDiscoveryExclusions(collection) {
|
|
14
|
+
const exclusions = (collection.publicDiscovery && parsePublicDiscoveryRules(collection.publicDiscovery))?.excludeIfTrue ?? [];
|
|
15
|
+
for (const field of exclusions) if (!collection.fields.some((candidate) => candidate.slug === field && candidate.type === "boolean")) throw new Error(`Public discovery for ${collection.slug} requires boolean field ${field}`);
|
|
16
|
+
return exclusions;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Apply declared exclusions to a native Live record or pre-mutation snapshot.
|
|
20
|
+
* Callers must separately check published/deleted status, SEO and canonical URLs.
|
|
21
|
+
* This does not authorize CMS access or make a Draft snapshot public.
|
|
22
|
+
*/
|
|
23
|
+
function satisfiesPublicDiscoveryRules(collection, content) {
|
|
24
|
+
const exclusions = publicDiscoveryExclusions(collection);
|
|
25
|
+
if (collection.publicDiscovery?.requireLiveRevision && !content.liveRevisionId) return false;
|
|
26
|
+
return exclusions.every((field) => content.data[field] == null || content.data[field] === false || content.data[field] === 0);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { satisfiesPublicDiscoveryRules as i, publicDiscoveryExclusions as n, publicDiscoveryRulesSchema as r, parsePublicDiscoveryRules as t };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as CollectionWithFields } from "./types-VkWKA-R2.mjs";
|
|
2
|
+
import { t as Database } from "./types-gG3syKwc.mjs";
|
|
2
3
|
import { Kysely } from "kysely";
|
|
4
|
+
import { z } from "zod";
|
|
3
5
|
|
|
4
6
|
//#region src/i18n/config.d.ts
|
|
5
7
|
/**
|
|
@@ -77,6 +79,19 @@ declare function listPublicContent(db: Kysely<Database>, options: PublicContentO
|
|
|
77
79
|
/** Resolve an explicit canonical without inventing path case or slash rules. */
|
|
78
80
|
declare function resolveCanonicalUrl(value: string, siteUrl?: string): string | null;
|
|
79
81
|
//#endregion
|
|
82
|
+
//#region src/schema/public-discovery.d.ts
|
|
83
|
+
type DiscoveryCollection = Pick<CollectionWithFields, "slug" | "fields" | "publicDiscovery">;
|
|
84
|
+
/** Reject stale declarations before either SQL discovery or snapshot eligibility runs. */
|
|
85
|
+
/**
|
|
86
|
+
* Apply declared exclusions to a native Live record or pre-mutation snapshot.
|
|
87
|
+
* Callers must separately check published/deleted status, SEO and canonical URLs.
|
|
88
|
+
* This does not authorize CMS access or make a Draft snapshot public.
|
|
89
|
+
*/
|
|
90
|
+
declare function satisfiesPublicDiscoveryRules(collection: DiscoveryCollection, content: {
|
|
91
|
+
data: Record<string, unknown>;
|
|
92
|
+
liveRevisionId?: unknown;
|
|
93
|
+
}): boolean;
|
|
94
|
+
//#endregion
|
|
80
95
|
//#region src/seo/public-url.d.ts
|
|
81
96
|
/** Collection routing accepts a complete stored path or a conventional slug pattern. */
|
|
82
97
|
interface ResolveContentUrlInput {
|
|
@@ -96,4 +111,4 @@ interface ResolveContentUrlInput {
|
|
|
96
111
|
*/
|
|
97
112
|
declare function resolveContentUrl(input: ResolveContentUrlInput): string | null;
|
|
98
113
|
//#endregion
|
|
99
|
-
export {
|
|
114
|
+
export { PublicContentEntry as a, I18nConfig as c, isI18nEnabled as d, resolveCanonicalUrl as i, getFallbackChain as l, resolveContentUrl as n, PublicContentOptions as o, satisfiesPublicDiscoveryRules as r, listPublicContent as s, ResolveContentUrlInput as t, getI18nConfig as u };
|
package/dist/{publication-authorization-BmazS4K0.mjs → publication-authorization-DYAGeWto.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
2
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
3
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
4
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
5
|
-
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-
|
|
6
|
-
import { t as SYSTEM_ACTOR_ID } from "./actor-
|
|
7
|
-
import { n as redactActivityRecord } from "./activity-
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CFvpEEOl.mjs";
|
|
2
|
+
import { t as SiteActivityRepository } from "./site-activity-By0wWO0g.mjs";
|
|
3
|
+
import { t as ReviewRequestRepository } from "./review-requests-Bo4jcxtU.mjs";
|
|
4
|
+
import { a as getSiteSettingsWithDb } from "./settings-DXp6vRdV.mjs";
|
|
5
|
+
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-Cg9dtFgV.mjs";
|
|
6
|
+
import { t as SYSTEM_ACTOR_ID } from "./actor-Bu9whHez.mjs";
|
|
7
|
+
import { n as redactActivityRecord } from "./activity-C6JLcUzM.mjs";
|
|
8
8
|
import { ulid } from "ulidx";
|
|
9
9
|
|
|
10
10
|
//#region src/database/repositories/content-release-grants.ts
|
|
@@ -13,7 +13,7 @@ var ContentReleaseGrantRepository = class {
|
|
|
13
13
|
this.db = db;
|
|
14
14
|
}
|
|
15
15
|
async createOrReplaceActive(input) {
|
|
16
|
-
|
|
16
|
+
const operation = async (transaction) => {
|
|
17
17
|
const existing = await findActiveForTarget(transaction, input.collection, input.entryId, input.operation);
|
|
18
18
|
if (existing?.actionHash === input.actionHash) return existing;
|
|
19
19
|
const now = input.createdAt ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -31,11 +31,16 @@ var ContentReleaseGrantRepository = class {
|
|
|
31
31
|
const created = await findById(transaction, id);
|
|
32
32
|
if (!created) throw new Error("Failed to create content release grant");
|
|
33
33
|
return created;
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
|
+
return this.db.isTransaction ? operation(this.db) : this.db.transaction().execute(operation);
|
|
35
36
|
}
|
|
36
37
|
async findById(id) {
|
|
37
38
|
return findById(this.db, id);
|
|
38
39
|
}
|
|
40
|
+
async findConfirmedPublication(input) {
|
|
41
|
+
const row = await this.db.selectFrom("_dineway_content_release_grants").selectAll().where("collection", "=", input.collection).where("entry_id", "=", input.entryId).where("reviewed_rev", "=", input.reviewedRev).where("draft_revision_id", "=", input.draftRevisionId).where("live_revision_id", input.liveRevisionId === null ? "is" : "=", input.liveRevisionId).where("operation", "=", "publish").where("status", "=", "consumed").where("authorization_method", "=", "human_action").where("authorized_by_actor_type", "=", "user").where("authorized_by_actor_id", "=", input.actorId).orderBy("created_at", "desc").orderBy("id", "desc").executeTakeFirst();
|
|
42
|
+
return row ? rowToGrant(row) : null;
|
|
43
|
+
}
|
|
39
44
|
async findActiveForTarget(collection, entryId, operation) {
|
|
40
45
|
return findActiveForTarget(this.db, collection, entryId, operation);
|
|
41
46
|
}
|
|
@@ -1153,4 +1158,4 @@ function errorReason(error) {
|
|
|
1153
1158
|
}
|
|
1154
1159
|
|
|
1155
1160
|
//#endregion
|
|
1156
|
-
export {
|
|
1161
|
+
export { HITL_REQUEST_PRIORITIES as a, ContentReleaseGrantRepository as c, ReleasePayloadBuilder as i, PublicationAuthorizationService as n, HITL_REQUEST_STATUSES as o, publicationReceipt as r, HitlRequestRepository as s, PublicationAuthorizationError as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CQnzfBpD.mjs";
|
|
2
2
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-CVssduLe.mjs";
|
|
3
3
|
import { getRequestContext } from "./request-context.mjs";
|
|
4
|
-
import { i as encodeCursor } from "./types-
|
|
5
|
-
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-
|
|
4
|
+
import { i as encodeCursor } from "./types-CFvpEEOl.mjs";
|
|
5
|
+
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-CsX5pTud.mjs";
|
|
6
6
|
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-D51qOseS.mjs";
|
|
7
7
|
import { r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
|
8
8
|
|
|
@@ -596,9 +596,9 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
596
596
|
let needsQueryPath = parsed.some((item) => item.credits.length === 0 && (dataStr(item.data, "authorId") !== "" || dataStr(item.data, "primaryBylineId") !== ""));
|
|
597
597
|
let hasCustomFields = false;
|
|
598
598
|
if (!needsQueryPath) try {
|
|
599
|
-
const { getDb } = await import("./loader-
|
|
599
|
+
const { getDb } = await import("./loader-CsX5pTud.mjs").then((n) => n.i);
|
|
600
600
|
const db = await getDb();
|
|
601
|
-
const { getBylineFieldDefs } = await import("./field-defs-cache-
|
|
601
|
+
const { getBylineFieldDefs } = await import("./field-defs-cache-7Ka899yA.mjs").then((n) => n.t);
|
|
602
602
|
hasCustomFields = (await getBylineFieldDefs(db)).length > 0;
|
|
603
603
|
} catch (error) {
|
|
604
604
|
if (!isMissingTableError(error)) needsQueryPath = true;
|
|
@@ -612,7 +612,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
try {
|
|
615
|
-
const { getBylinesForEntries } = await import("./bylines-
|
|
615
|
+
const { getBylinesForEntries } = await import("./bylines-DXXMlc1A.mjs").then((n) => n.t);
|
|
616
616
|
const refs = entries.map((entry) => {
|
|
617
617
|
const data = entryData(entry);
|
|
618
618
|
const id = dataStr(data, "id");
|
|
@@ -670,12 +670,12 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
670
670
|
byTaxonomy: grouped
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
const { primeFoldedEntryTerms } = await import("./taxonomies-
|
|
673
|
+
const { primeFoldedEntryTerms } = await import("./taxonomies-Dfmkapin.mjs").then((n) => n.u);
|
|
674
674
|
primeFoldedEntryTerms(type, perEntry, { locale });
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
677
|
try {
|
|
678
|
-
const { getAllTermsForEntries } = await import("./taxonomies-
|
|
678
|
+
const { getAllTermsForEntries } = await import("./taxonomies-Dfmkapin.mjs").then((n) => n.u);
|
|
679
679
|
const ids = entries.map((entry) => dataStr(entryData(entry), "id")).filter(Boolean);
|
|
680
680
|
if (ids.length === 0) return;
|
|
681
681
|
const termsMap = await getAllTermsForEntries(type, ids, { locale });
|
|
@@ -709,9 +709,9 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
709
709
|
*/
|
|
710
710
|
async function getTranslations(type, id) {
|
|
711
711
|
try {
|
|
712
|
-
const db = (await import("./loader-
|
|
712
|
+
const db = (await import("./loader-CsX5pTud.mjs").then((n) => n.i)).getDb;
|
|
713
713
|
const dbInstance = await db();
|
|
714
|
-
const { ContentRepository } = await import("./content-
|
|
714
|
+
const { ContentRepository } = await import("./content-C0qGd2Nt.mjs").then((n) => n.n);
|
|
715
715
|
const repo = new ContentRepository(dbInstance);
|
|
716
716
|
const item = await repo.findByIdOrSlug(type, id);
|
|
717
717
|
if (!item) return {
|
|
@@ -779,8 +779,8 @@ async function resolveDinewayPath(path) {
|
|
|
779
779
|
const hasDbOverride = !!getRequestContext()?.db;
|
|
780
780
|
let patterns = !hasDbOverride ? cachedUrlPatterns : null;
|
|
781
781
|
if (!patterns) {
|
|
782
|
-
const { getDb } = await import("./loader-
|
|
783
|
-
const { SchemaRegistry } = await import("./registry-
|
|
782
|
+
const { getDb } = await import("./loader-CsX5pTud.mjs").then((n) => n.i);
|
|
783
|
+
const { SchemaRegistry } = await import("./registry-BwcF6gAj.mjs").then((n) => n.r);
|
|
784
784
|
patterns = (await new SchemaRegistry(await getDb()).listCollections()).filter((collection) => collection.urlPattern).map((collection) => {
|
|
785
785
|
const { regex, paramNames } = patternToRegex(collection.urlPattern);
|
|
786
786
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { r as getDb } from "./loader-CsX5pTud.mjs";
|
|
2
2
|
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
3
3
|
import { r as requestCached } from "./request-cache-CBFjCwSt.mjs";
|
|
4
|
-
import { n as SchemaRegistry } from "./registry-
|
|
4
|
+
import { n as SchemaRegistry } from "./registry-BwcF6gAj.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/schema/query.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as apiError } from "./error-
|
|
2
|
-
import { n as normalizeTrustedHeaders } from "./trusted-proxy-
|
|
1
|
+
import { t as apiError } from "./error-DWL9Pwyt.mjs";
|
|
2
|
+
import { n as normalizeTrustedHeaders } from "./trusted-proxy-j2KYPN4r.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/rate-limit.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as currentTimestampValue } from "./dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
2
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CFvpEEOl.mjs";
|
|
3
3
|
import { i as matchPattern, n as interpolateDestination, r as isPattern, t as compilePattern } from "./patterns-CoqlXUvk.mjs";
|
|
4
4
|
import { sql } from "kysely";
|
|
5
5
|
import { ulid } from "ulidx";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as publicDiscoveryRulesSchema } from "./public-discovery-BlJ80Hoh.mjs";
|
|
2
|
+
import { t as isSafeHref } from "./url-BG-3f-Vy.mjs";
|
|
3
|
+
import { n as isTerminalStatus, t as REDIRECT_RULE_STATUSES } from "./status-DvSRKIiF.mjs";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
|
|
5
6
|
//#region src/api/schemas/common.ts
|
|
@@ -539,6 +540,7 @@ const createCollectionBody = z.object({
|
|
|
539
540
|
source: z.string().regex(collectionSourcePattern).optional(),
|
|
540
541
|
urlPattern: urlPatternSchema.optional(),
|
|
541
542
|
urlField: urlFieldSchema.optional(),
|
|
543
|
+
publicDiscovery: publicDiscoveryRulesSchema.nullish(),
|
|
542
544
|
hasSeo: z.boolean().optional()
|
|
543
545
|
}).meta({ id: "CreateCollectionBody" });
|
|
544
546
|
const updateCollectionBody = z.object({
|
|
@@ -549,6 +551,7 @@ const updateCollectionBody = z.object({
|
|
|
549
551
|
supports: z.array(collectionSupportValues).optional(),
|
|
550
552
|
urlPattern: urlPatternSchema.nullish(),
|
|
551
553
|
urlField: urlFieldSchema.nullish(),
|
|
554
|
+
publicDiscovery: publicDiscoveryRulesSchema.nullish(),
|
|
552
555
|
hasSeo: z.boolean().optional(),
|
|
553
556
|
commentsEnabled: z.boolean().optional(),
|
|
554
557
|
commentsModeration: z.enum([
|
|
@@ -605,6 +608,7 @@ const collectionSchema = z.object({
|
|
|
605
608
|
source: z.string().nullable(),
|
|
606
609
|
urlPattern: z.string().nullable(),
|
|
607
610
|
urlField: z.string().nullish(),
|
|
611
|
+
publicDiscovery: publicDiscoveryRulesSchema.nullish(),
|
|
608
612
|
hasSeo: z.boolean(),
|
|
609
613
|
createdAt: z.string(),
|
|
610
614
|
updatedAt: z.string()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "./options-DQPTH5n0.mjs";
|
|
2
|
-
import { t as RedirectRepository } from "./redirect-
|
|
2
|
+
import { t as RedirectRepository } from "./redirect-B_9GwIZd.mjs";
|
|
3
3
|
import { a as validateDestinationParams, i as matchPattern, n as interpolateDestination, o as validatePattern, r as isPattern, t as compilePattern } from "./patterns-CoqlXUvk.mjs";
|
|
4
|
-
import { i as invalidateRedirectCache } from "./cache-
|
|
5
|
-
import { n as isTerminalStatus } from "./status-
|
|
4
|
+
import { i as invalidateRedirectCache } from "./cache-Cf5yPNNw.mjs";
|
|
5
|
+
import { n as isTerminalStatus } from "./status-DvSRKIiF.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/redirects/loops.ts
|
|
8
8
|
/**
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CQnzfBpD.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
3
|
import { i as currentTimestamp, l as listTablesLike, n as columnExists, u as tableExists } from "./dialect-helpers-fk43GbDb.mjs";
|
|
4
4
|
import { n as contentLocaleUpdatedIndexName, t as contentLocaleCreatedIndexName } from "./content-index-names-Bbu1FY1r.mjs";
|
|
5
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
5
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Dh8yqZt3.mjs";
|
|
6
6
|
import { t as withTransaction } from "./transaction-Chz7SBGr.mjs";
|
|
7
7
|
import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-B7TDDFMG.mjs";
|
|
8
|
-
import { a as markContentMediaUsageCollectionStaleSafely, n as deleteContentMediaUsageCollection } from "./content-refresh-
|
|
9
|
-
import { t as FTSManager } from "./fts-manager-
|
|
8
|
+
import { a as markContentMediaUsageCollectionStaleSafely, n as deleteContentMediaUsageCollection } from "./content-refresh-BkGWtwUN.mjs";
|
|
9
|
+
import { t as FTSManager } from "./fts-manager-D4K5mA0j.mjs";
|
|
10
10
|
import { t as buildStableHash } from "./stable-hash-DshcXvRE.mjs";
|
|
11
|
+
import { t as parsePublicDiscoveryRules } from "./public-discovery-BlJ80Hoh.mjs";
|
|
11
12
|
import { sql } from "kysely";
|
|
12
13
|
import { ulid } from "ulidx";
|
|
13
14
|
|
|
@@ -143,6 +144,7 @@ var SchemaRegistry = class {
|
|
|
143
144
|
if (input.urlField) this.validateSlug(input.urlField, "field");
|
|
144
145
|
await this.checkLabelUniqueness(input.label, input.labelSingular);
|
|
145
146
|
await this.checkUrlPatternUniqueness(input.urlPattern);
|
|
147
|
+
const publicDiscovery = input.publicDiscovery == null ? void 0 : parsePublicDiscoveryRules(input.publicDiscovery);
|
|
146
148
|
const id = ulid();
|
|
147
149
|
const hasSeo = input.hasSeo ?? input.supports?.includes("seo") ?? false;
|
|
148
150
|
await withTransaction(this.db, async (trx) => {
|
|
@@ -158,7 +160,8 @@ var SchemaRegistry = class {
|
|
|
158
160
|
has_seo: hasSeo ? 1 : 0,
|
|
159
161
|
comments_enabled: input.commentsEnabled ? 1 : 0,
|
|
160
162
|
url_pattern: input.urlPattern ?? null,
|
|
161
|
-
url_field: input.urlField || null
|
|
163
|
+
url_field: input.urlField || null,
|
|
164
|
+
public_discovery: publicDiscovery ? JSON.stringify(publicDiscovery) : null
|
|
162
165
|
}).execute();
|
|
163
166
|
await this.createContentTable(input.slug, trx);
|
|
164
167
|
});
|
|
@@ -182,6 +185,7 @@ var SchemaRegistry = class {
|
|
|
182
185
|
await this.checkUrlPatternUniqueness(input.urlPattern, slug);
|
|
183
186
|
}
|
|
184
187
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
188
|
+
const publicDiscovery = input.publicDiscovery === void 0 ? existing.publicDiscovery : input.publicDiscovery === null ? void 0 : parsePublicDiscoveryRules(input.publicDiscovery);
|
|
185
189
|
const supportsArray = input.supports ?? existing.supports;
|
|
186
190
|
const hasSeo = input.hasSeo !== void 0 ? input.hasSeo : input.supports !== void 0 ? supportsArray.includes("seo") : existing.hasSeo;
|
|
187
191
|
return withTransaction(this.db, async (trx) => {
|
|
@@ -193,6 +197,7 @@ var SchemaRegistry = class {
|
|
|
193
197
|
supports: input.supports ? JSON.stringify(input.supports) : JSON.stringify(existing.supports),
|
|
194
198
|
url_pattern: input.urlPattern !== void 0 ? input.urlPattern ?? null : existing.urlPattern ?? null,
|
|
195
199
|
url_field: input.urlField !== void 0 ? input.urlField || null : existing.urlField ?? null,
|
|
200
|
+
public_discovery: publicDiscovery ? JSON.stringify(publicDiscovery) : null,
|
|
196
201
|
has_seo: hasSeo ? 1 : 0,
|
|
197
202
|
comments_enabled: input.commentsEnabled !== void 0 ? input.commentsEnabled ? 1 : 0 : existing.commentsEnabled ? 1 : 0,
|
|
198
203
|
comments_moderation: input.commentsModeration ?? existing.commentsModeration,
|
|
@@ -655,6 +660,7 @@ var SchemaRegistry = class {
|
|
|
655
660
|
hasSeo: row.has_seo === 1,
|
|
656
661
|
urlPattern: row.url_pattern ?? void 0,
|
|
657
662
|
urlField: row.url_field ?? void 0,
|
|
663
|
+
publicDiscovery: row.public_discovery == null ? void 0 : parsePublicDiscoveryRules(JSON.parse(row.public_discovery)),
|
|
658
664
|
commentsEnabled: row.comments_enabled === 1,
|
|
659
665
|
commentsModeration: moderation === "all" || moderation === "first_time" || moderation === "none" ? moderation : "first_time",
|
|
660
666
|
commentsClosedAfterDays: row.comments_closed_after_days ?? 90,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
2
|
-
import { t as ReviewPayloadBuilder } from "./review-payload-
|
|
1
|
+
import { t as ReviewRequestRepository } from "./review-requests-Bo4jcxtU.mjs";
|
|
2
|
+
import { t as ReviewPayloadBuilder } from "./review-payload-Cg9dtFgV.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/review-requests.ts
|
|
5
5
|
async function handleReviewRequestCreate(db, handlers, input) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as resolveActorIdentity } from "./actor-
|
|
2
|
-
import { p as logSiteActivitySafely } from "./activity-events-
|
|
1
|
+
import { n as resolveActorIdentity } from "./actor-Bu9whHez.mjs";
|
|
2
|
+
import { p as logSiteActivitySafely } from "./activity-events-u9wIH8CQ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/review-route-helpers.ts
|
|
5
5
|
function resolveReviewRouteActor(locals) {
|