dineway 0.2.41 → 0.2.43
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-events-DkHsy7Y0.mjs → activity-events-D4JfWJFI.mjs} +1 -1
- package/dist/{allowed-origins-Clitkhiv.mjs → allowed-origins-SQbPK6WG.mjs} +1 -1
- package/dist/api/route-utils.d.mts +15 -15
- package/dist/api/route-utils.mjs +16 -16
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +6 -6
- package/dist/{api-CMbsIQ46.mjs → api-V-xnLN6S.mjs} +12 -12
- package/dist/{api-tokens-ciHNTdN2.mjs → api-tokens-yyJPh_qs.mjs} +1 -1
- package/dist/{apply-B5qoX19G.mjs → apply-DRFEUVGB.mjs} +17 -17
- package/dist/astro/index.d.mts +16 -16
- package/dist/astro/index.mjs +4 -4
- package/dist/astro/middleware/auth.d.mts +14 -14
- package/dist/astro/middleware/auth.mjs +4 -4
- 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.d.mts +2 -2
- package/dist/astro/middleware.mjs +92 -93
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +8 -8
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +8 -8
- 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 +26 -26
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +10 -10
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +10 -10
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +10 -10
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +18 -18
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +18 -18
- package/dist/astro/routes/api/admin/bylines/index.mjs +18 -18
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +16 -16
- package/dist/astro/routes/api/admin/comments/_id_.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/bulk.mjs +14 -14
- package/dist/astro/routes/api/admin/comments/counts.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/index.mjs +14 -14
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +34 -35
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +34 -35
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +40 -41
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +40 -41
- package/dist/astro/routes/api/admin/context/diff.mjs +39 -40
- package/dist/astro/routes/api/admin/context/index.mjs +40 -41
- package/dist/astro/routes/api/admin/context/stale.mjs +39 -40
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +34 -35
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +39 -40
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +39 -40
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +35 -36
- 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 +61 -62
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +61 -62
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +54 -55
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +61 -62
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +61 -62
- package/dist/astro/routes/api/admin/plugins/index.mjs +54 -55
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +54 -55
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +61 -62
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +54 -55
- package/dist/astro/routes/api/admin/plugins/updates.mjs +54 -55
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +24 -24
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +29 -30
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +45 -46
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/index.mjs +44 -45
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +54 -55
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +54 -55
- 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 +8 -8
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +8 -8
- package/dist/astro/routes/api/auth/dev-bypass.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +11 -11
- package/dist/astro/routes/api/auth/invite/index.mjs +9 -9
- package/dist/astro/routes/api/auth/invite/register-options.mjs +10 -10
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +11 -11
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +8 -8
- 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 +8 -8
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +12 -12
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/verify.mjs +11 -11
- package/dist/astro/routes/api/auth/setup-token/index.mjs +3 -3
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +11 -11
- package/dist/astro/routes/api/auth/signup/request.mjs +11 -11
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +14 -14
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +18 -18
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +20 -20
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +25 -26
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +25 -26
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +21 -21
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/trash.mjs +9 -9
- package/dist/astro/routes/api/dashboard.mjs +11 -11
- 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 +22 -22
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +14 -14
- package/dist/astro/routes/api/import/wordpress/execute.mjs +40 -41
- package/dist/astro/routes/api/import/wordpress/media.d.mts +14 -14
- package/dist/astro/routes/api/import/wordpress/media.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +43 -44
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +15 -15
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +40 -41
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +25 -25
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +14 -14
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +45 -46
- package/dist/astro/routes/api/integration/artifact.mjs +4 -4
- package/dist/astro/routes/api/integration/dispatch.mjs +8 -8
- 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 +3 -3
- package/dist/astro/routes/api/mcp.mjs +81 -82
- package/dist/astro/routes/api/media/_id_/confirm.mjs +9 -9
- package/dist/astro/routes/api/media/_id_.mjs +10 -10
- 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 -10
- package/dist/astro/routes/api/media.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +40 -41
- package/dist/astro/routes/api/menus/_name_/items.mjs +40 -41
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +40 -41
- package/dist/astro/routes/api/menus/_name_/translations.mjs +40 -41
- package/dist/astro/routes/api/menus/_name_.mjs +40 -41
- package/dist/astro/routes/api/menus/index.mjs +40 -41
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +5 -5
- package/dist/astro/routes/api/oauth/device/code.mjs +8 -8
- package/dist/astro/routes/api/oauth/device/token.mjs +7 -7
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +5 -5
- package/dist/astro/routes/api/oauth/token/revoke.mjs +5 -5
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +6 -6
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +40 -41
- package/dist/astro/routes/api/redirects/index.mjs +40 -41
- 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 +56 -57
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +56 -57
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +56 -57
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +56 -57
- package/dist/astro/routes/api/schema/collections/index.mjs +56 -57
- package/dist/astro/routes/api/schema/index.mjs +11 -11
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +54 -55
- package/dist/astro/routes/api/schema/orphans/index.mjs +54 -55
- package/dist/astro/routes/api/search/enable.mjs +15 -16
- package/dist/astro/routes/api/search/index.mjs +14 -15
- package/dist/astro/routes/api/search/rebuild.mjs +15 -16
- package/dist/astro/routes/api/search/stats.mjs +8 -9
- package/dist/astro/routes/api/search/suggest.mjs +14 -15
- package/dist/astro/routes/api/sections/_slug_.mjs +40 -41
- package/dist/astro/routes/api/sections/index.mjs +40 -41
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings/reviews.mjs +5 -5
- package/dist/astro/routes/api/settings.mjs +40 -41
- package/dist/astro/routes/api/setup/admin-verify.mjs +13 -13
- package/dist/astro/routes/api/setup/admin.mjs +11 -11
- package/dist/astro/routes/api/setup/dev-bypass.mjs +29 -30
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +31 -32
- package/dist/astro/routes/api/setup/status.mjs +2 -2
- package/dist/astro/routes/api/snapshot.mjs +5 -5
- package/dist/astro/routes/api/system/heartbeat.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +43 -44
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +43 -44
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +43 -44
- package/dist/astro/routes/api/taxonomies/index.mjs +43 -44
- 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 +1 -1
- 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 +39 -40
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +40 -41
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +40 -41
- package/dist/astro/routes/api/widget-areas/_name_.mjs +36 -37
- package/dist/astro/routes/api/widget-areas/index.mjs +40 -41
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +7 -7
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +14 -14
- package/dist/astro/routes/sitemap.xml.mjs +13 -13
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +4 -4
- package/dist/astro/types.d.mts +17 -17
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-DpUP6Fs_.mjs → auth-control-guard-D9oiZPtN.mjs} +1 -1
- package/dist/{authorize-DWNOqMKq.mjs → authorize-Cg8wByla.mjs} +1 -1
- package/dist/{briefing-DYiV93rg.mjs → briefing-BwDkIHys.mjs} +6 -6
- package/dist/{briefing-BzvBeIJh.mjs → briefing-xEDJ0OcA.mjs} +1 -1
- package/dist/{bundle-DWn5eFKz.mjs → bundle-CnJWXvur.mjs} +1 -1
- package/dist/{byline-3qjp1-oa.mjs → byline-Dznig_jr.mjs} +5 -5
- package/dist/{byline-fields-Bne2v0ti.d.mts → byline-fields-Bdq5wStT.d.mts} +19 -19
- package/dist/{byline-fields-wWu2Cb3l.mjs → byline-fields-Bnw5NflJ.mjs} +2 -2
- package/dist/{bylines-CGuJi-zu.mjs → bylines-BQMt9Kby.mjs} +4 -4
- package/dist/{bylines-BSn9O1Wx.mjs → bylines-umBrRU5P.mjs} +1 -1
- package/dist/cli/index.mjs +43 -41
- package/dist/cli/plugin-kit.d.mts +14 -14
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +16 -16
- package/dist/client/index.mjs +2 -2
- package/dist/{comment-BWDG1nQm.mjs → comment-CbGlRPPS.mjs} +1 -1
- package/dist/{comments-xkten8nV.mjs → comments-CaCApohz.mjs} +1 -1
- package/dist/{config-6R0bchVE.mjs → config---A7Bg68.mjs} +2 -0
- package/dist/{content-BigS8BAv.mjs → content-DbdiQEl7.mjs} +5 -5
- package/dist/{content-refresh-DJuFIqQ4.mjs → content-refresh-COi0WfKw.mjs} +3 -3
- package/dist/content-storage/index.d.mts +19 -6
- package/dist/content-storage/index.mjs +15 -16
- package/dist/content-storage/store.d.mts +2 -2
- package/dist/content-storage/store.mjs +2 -2
- package/dist/{content-write-DAZCNKWl.mjs → content-write-BJkjOdiq.mjs} +13 -50
- package/dist/{context-CCsI5nTK.mjs → context-DTj7OFVh.mjs} +2 -2
- package/dist/{context-route-helpers-TP3EqxRQ.mjs → context-route-helpers-CUrRB8qt.mjs} +1 -1
- package/dist/{context-0806nV9h.mjs → context-suF2JGdX.mjs} +5 -5
- package/dist/{dashboard-CSrnhBO6.mjs → dashboard-DNwOpH8d.mjs} +1 -1
- package/dist/database/batch.d.mts +1 -1
- package/dist/database/d1/index.d.mts +14 -14
- package/dist/database/d1/index.mjs +2 -2
- package/dist/db/index.d.mts +3 -3
- 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-SoZh-HvN.mjs → device-flow-C8gMXe3u.mjs} +3 -3
- package/dist/{discovery-49qXmdwv.mjs → discovery-CIgViNk9.mjs} +3 -3
- package/dist/{evidence-B3O9_VKm.mjs → evidence-0WP8WrwT.mjs} +4 -4
- package/dist/{hitl-requests-B5vOPseK.mjs → hitl-requests-BRrufqcM.mjs} +2 -2
- package/dist/{hitl-route-helpers-C3icmGdj.mjs → hitl-route-helpers-TzM35SHx.mjs} +4 -4
- package/dist/{import-CKnKQj3f.mjs → import-DSf-FzGX.mjs} +7 -7
- package/dist/{index-CLj17kW9.d.mts → index-_fCUsJx9.d.mts} +3 -3
- package/dist/index.d.mts +19 -19
- package/dist/index.mjs +85 -86
- package/dist/{integration-credentials-DpuRw1kx.mjs → integration-credentials-B23h97Ip.mjs} +2 -2
- package/dist/{jsonld-CN91qtDw.d.mts → jsonld-D1llK8pQ.d.mts} +2 -2
- package/dist/{loader-CCwWFQSh.mjs → loader-C9hvIKEW.mjs} +2 -2
- package/dist/{manifest-schema-DaQpgyTB.mjs → manifest-schema-B_rWNZn5.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-DA6Q9sDc.mjs → mcp-reviewed-executor-B_ztrZgH.mjs} +5 -5
- package/dist/media/index.d.mts +1 -1
- package/dist/media/local-runtime.d.mts +16 -16
- package/dist/{menus-CbBi7Ad7.mjs → menus-BfQjG9Wc.mjs} +1 -1
- package/dist/{menus-D0c8CeVg.mjs → menus-DL-BYzwG.mjs} +6 -6
- package/dist/{migration-DJuj7ZwN.mjs → migration-zOMc0bo0.mjs} +12 -11
- package/dist/{oauth-authorization-CSSRMOKn.mjs → oauth-authorization-D5_WocOq.mjs} +4 -4
- package/dist/{oauth-clients-DX5HIJJv.mjs → oauth-clients-Bx5PjpT3.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{object-cache-DyI1SOBK.mjs → object-cache-qP60KjUp.mjs} +1 -1
- package/dist/{owned-metadata-BPmUjZqI.mjs → owned-metadata-DhyklTd6.mjs} +1 -1
- package/dist/page/index.d.mts +15 -15
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-C6kCR1OT.mjs → parse-N4PAJGQr.mjs} +1 -1
- package/dist/plugin-utils.d.mts +14 -14
- package/dist/plugins/adapt-sandbox-entry.d.mts +14 -14
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-V0W65r3v.mjs → plugins-B6B7DbdT.mjs} +4 -4
- package/dist/{preview-CWiIjMDi.mjs → preview-DC1K_aSd.mjs} +2 -2
- package/dist/{provider-loader-oLKm1AU8.d.mts → provider-loader-Dl8SscrT.d.mts} +1 -1
- package/dist/{public-url-CKrUov8D.d.mts → public-url-C9ZgIcbF.d.mts} +1 -1
- package/dist/{public-url-CEC1vj02.d.mts → public-url-CvNSyMJJ.d.mts} +2 -2
- package/dist/{publication-authorization-wMR-tEQ_.mjs → publication-authorization-BciTXOB3.mjs} +6 -6
- package/dist/{query-DLnnpEuf.mjs → query-D0qnvePL.mjs} +3 -3
- package/dist/{query-DDi367tF.mjs → query-Dx_cCV3x.mjs} +10 -10
- package/dist/{rate-limit-DeVLLe4z.mjs → rate-limit-BzNkH-vQ.mjs} +2 -2
- package/dist/{redirects-BKi6mek4.mjs → redirects-Bhk-eoQ8.mjs} +1 -1
- package/dist/{redirects-I78-ZYLV.mjs → redirects-BwnvcNyN.mjs} +4 -4
- package/dist/{registry-zXXZezu-.mjs → registry-3xWpSYNI.mjs} +3 -3
- package/dist/{release-Cpi0-Bzq.mjs → release-CIYyinzY.mjs} +1 -1
- package/dist/request-context.d.mts +1 -1
- package/dist/{request-meta-DZYuLXx_.mjs → request-meta-DOBXMRX0.mjs} +1 -1
- package/dist/{review-requests-C-ScxD9n.mjs → review-requests-CIfXkXvt.mjs} +1 -1
- package/dist/{review-route-helpers-DXNDyx_q.mjs → review-route-helpers-CyTRL7Rm.mjs} +1 -1
- package/dist/{revision-B_HYO2AE.mjs → revision-BhnVYOMz.mjs} +2 -2
- package/dist/{revisions-CQ7rMP5d.mjs → revisions-C-T9CdGo.mjs} +7 -5
- package/dist/{runner-DXQkyPeX.d.mts → runner-DlkOiguI.d.mts} +1 -1
- package/dist/{runs-BjgLfqCn.mjs → runs-BGqkkqhp.mjs} +2 -2
- package/dist/{runtime-Bs2JMbb2.d.mts → runtime-Dx9QpCL5.d.mts} +2 -2
- package/dist/{runtime-Ch5G-tnG.mjs → runtime-Dz7vZRPU.mjs} +141 -2
- package/dist/runtime.d.mts +15 -15
- package/dist/runtime.mjs +5 -5
- package/dist/{schema-BA05k0TN.mjs → schema-2x9K4t9t.mjs} +1 -1
- package/dist/{search-DMrzhfx_.mjs → search--Qmm2s6n.mjs} +2 -2
- package/dist/{sections-BTrSEhqB.mjs → sections-0cg9Dhp6.mjs} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +24 -25
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +10 -10
- package/dist/{seo-DkjtBh-y.mjs → seo-BYBqbsZk.mjs} +1 -1
- package/dist/{seo-Cv7ud_m2.mjs → seo-DDKu_9zj.mjs} +5 -5
- package/dist/{service-BBJM08uD.mjs → service-CcUWmln9.mjs} +2 -2
- package/dist/{service-CkMuD5AE.mjs → service-Y-ZEhFVM.mjs} +3 -3
- package/dist/{settings-BUONaNnG.mjs → settings-D0SBKo-W.mjs} +3 -3
- package/dist/{settings-CI-NtWEc.mjs → settings-DM4P-jVe.mjs} +1 -1
- package/dist/{site-context-BW3GRCJH.mjs → site-context-DtmMzKtp.mjs} +11 -11
- 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-BzaAtszy.mjs → store-rYMso0t7.mjs} +1 -1
- package/dist/{submission-DLgjQ_Ew.mjs → submission-In_0Igp6.mjs} +6 -6
- package/dist/{taxonomies-C02-Vuh3.mjs → taxonomies-B-UkXVx-.mjs} +2 -2
- package/dist/{taxonomies-D5wO9zmB.mjs → taxonomies-D9cNfBL7.mjs} +4 -4
- package/dist/{taxonomy-BK7JmHlo.mjs → taxonomy-CtnjHXCZ.mjs} +3 -3
- package/dist/{types-ex-UrNlz.d.mts → types--vDpt_aS.d.mts} +1 -1
- package/dist/{types-qOEot0UQ.d.mts → types-CeFGasN8.d.mts} +2 -0
- package/dist/{types-C3jUu4Bc.d.mts → types-Dkj3EodZ.d.mts} +16 -16
- package/dist/ui/server-runtime.d.mts +18 -18
- package/dist/ui/server-runtime.mjs +23 -23
- package/dist/{validate-DUscf6VG.d.mts → validate-CleBZbkv.d.mts} +3 -3
- package/dist/{validate-C-yk7mmX.mjs → validate-WOW5vZz_.mjs} +1 -1
- package/dist/version-CCgLyHqU.mjs +6 -0
- package/dist/{version-store-B_THJCc0.d.mts → version-store-B6i81L9W.d.mts} +8 -2
- package/dist/{version-store-BXv2D0de.mjs → version-store-DH_PMO8_.mjs} +10 -2
- package/dist/{widgets-9xHBhL_L.mjs → widgets-P1hMbKIT.mjs} +2 -2
- package/dist/{worker-CC_Rt1pB.mjs → worker-DUtMI6XU.mjs} +6 -6
- package/dist/{write-intent-DuHVqks9.mjs → write-intent-BkgfwPO9.mjs} +3 -3
- package/dist/{zod-generator-B5Pt8fv0.mjs → zod-generator-DBu-v5Zy.mjs} +1 -1
- package/package.json +3 -3
- package/dist/text-extraction-CdqMGYQK.mjs +0 -96
- package/dist/version-BlE1LEPb.mjs +0 -6
- /package/dist/{activity-BuhkMdv8.mjs → activity-lyE6xCrf.mjs} +0 -0
- /package/dist/{adapter-symbols-B9mi-BUh.d.mts → adapter-symbols-Ce35rDR9.d.mts} +0 -0
- /package/dist/{adapters-lDnJjNDz.d.mts → adapters-cL325h6c.d.mts} +0 -0
- /package/dist/{api-tokens-CdfsE9PL.mjs → api-tokens-CK0aCsS2.mjs} +0 -0
- /package/dist/{byline-fields-DRMCc0V_.mjs → byline-fields-BAezRNxz.mjs} +0 -0
- /package/dist/{client-factory-BLbm250o.mjs → client-factory-8GnB8iz5.mjs} +0 -0
- /package/dist/{comment-reaction-B7pLTlQ7.mjs → comment-reaction-CFkwluRq.mjs} +0 -0
- /package/dist/{components-JA6tFHmE.mjs → components-DwWhSNHs.mjs} +0 -0
- /package/dist/{content-Dr22fzA_.mjs → content-C8i4DyTt.mjs} +0 -0
- /package/dist/{context-types-DDIJhGLs.mjs → context-types-B9ShQ_6c.mjs} +0 -0
- /package/dist/{default-C2azCFSB.mjs → default-BxRRjN_x.mjs} +0 -0
- /package/dist/{email-console-BYQp_5Qr.mjs → email-console-Bf9hXqbW.mjs} +0 -0
- /package/dist/{error-sL4aemcW.mjs → error-HuAkl_6r.mjs} +0 -0
- /package/dist/{escape-4_NNa6GR.mjs → escape-BfbDyuQ-.mjs} +0 -0
- /package/dist/{experimental-workflows-CPNiI2EL.mjs → experimental-workflows-BtKXzyIH.mjs} +0 -0
- /package/dist/{forgeway-account-YzraapbX.mjs → forgeway-account-B-z2_ZOQ.mjs} +0 -0
- /package/dist/{fts-manager-Zu5ITic0.mjs → fts-manager-BHwhq1lC.mjs} +0 -0
- /package/dist/{hash-qSYPMJ8w.mjs → hash-BinU5FKm.mjs} +0 -0
- /package/dist/{hook-events-BQw73jc7.d.mts → hook-events-lN-kz-4_.d.mts} +0 -0
- /package/dist/{load-CiRTddkJ.mjs → load-XTcFS1Dp.mjs} +0 -0
- /package/dist/{media-allowlist-C8HJ2O61.mjs → media-allowlist-DWz7rPit.mjs} +0 -0
- /package/dist/{media-url-D5E1a47B.mjs → media-url-VHHHoHGL.mjs} +0 -0
- /package/dist/{migrations-BAjF60cl.mjs → migrations-DTCIQJ2_.mjs} +0 -0
- /package/dist/{oauth-authority-DVlLFhsZ.mjs → oauth-authority-DgHy9_HI.mjs} +0 -0
- /package/dist/{oauth-state-store-nf-78RbK.mjs → oauth-state-store-DfH1iKMh.mjs} +0 -0
- /package/dist/{output-ljHaxIHX.mjs → output-4F_wq70p.mjs} +0 -0
- /package/dist/{parser-CTlxybRo.mjs → parser-CoH5-854.mjs} +0 -0
- /package/dist/{passkey-config-BLon3ct9.mjs → passkey-config-DDhmGNuM.mjs} +0 -0
- /package/dist/{placeholder-DdZV3I8x.d.mts → placeholder-CjKwIO3g.d.mts} +0 -0
- /package/dist/{portable-text-HNmwL-7L.d.mts → portable-text-BZYFFIgm.d.mts} +0 -0
- /package/dist/{portable-text-CSbRjM-T.mjs → portable-text-DeJeHr_T.mjs} +0 -0
- /package/dist/{provider-loader-DlaT1usE.mjs → provider-loader-BWu5kGxR.mjs} +0 -0
- /package/dist/{public-discovery-BnqYofSK.mjs → public-discovery-CGRirTJH.mjs} +0 -0
- /package/dist/{public-url-GQygrYmg.mjs → public-url-GzeLD6Ae.mjs} +0 -0
- /package/dist/{public-url-BHjYWuaN.mjs → public-url-NCefkiXz.mjs} +0 -0
- /package/dist/{redirect-CokmLN5o.mjs → redirect-BfI8s4uK.mjs} +0 -0
- /package/dist/{resolve-BxFGSKYu.mjs → resolve-BdDNBmaU.mjs} +0 -0
- /package/dist/{review-payload-Bhi52CbI.mjs → review-payload-mDJIgcFy.mjs} +0 -0
- /package/dist/{revocation-4we8kfBg.mjs → revocation-ibEJ8ZqU.mjs} +0 -0
- /package/dist/{scheduled-publish-eCNGpvNm.d.mts → scheduled-publish-7kZkKw7t.d.mts} +0 -0
- /package/dist/{secrets-CIYcw9T9.mjs → secrets-D52WNV_c.mjs} +0 -0
- /package/dist/{seo-contributions-ZKqrqsdT.mjs → seo-contributions-CusuPWzY.mjs} +0 -0
- /package/dist/{service-DeX1PRNt.mjs → service-DL1j3E4P.mjs} +0 -0
- /package/dist/{setup-complete-DoVbVrHx.mjs → setup-complete-eTV6C0-E.mjs} +0 -0
- /package/dist/{setup-nonce-B9IO7PbK.mjs → setup-nonce-CHug-ugA.mjs} +0 -0
- /package/dist/{sidecar-client-2hx5G46s.mjs → sidecar-client-D69s90P-.mjs} +0 -0
- /package/dist/{site-url-CYatfe3q.mjs → site-url-5O6ra5VE.mjs} +0 -0
- /package/dist/{ssrf-DcD8vn3E.mjs → ssrf-C7tTSD1r.mjs} +0 -0
- /package/dist/{status-B2xUokyJ.mjs → status-CDqWWt6i.mjs} +0 -0
- /package/dist/{tokens-D8HEH277.mjs → tokens-B6bMUhBx.mjs} +0 -0
- /package/dist/{transport-CVU5rp7W.d.mts → transport-Cm1beMRX.d.mts} +0 -0
- /package/dist/{transport-BHYE4pox.mjs → transport-DHTeMsJG.mjs} +0 -0
- /package/dist/{trusted-proxy-Dg3U9Lrv.mjs → trusted-proxy-Dmi1gZXh.mjs} +0 -0
- /package/dist/{types-C0heD9oI.d.mts → types-B2rEY0ik.d.mts} +0 -0
- /package/dist/{types-PxxPTFSl.d.mts → types-BSCBDV_V.d.mts} +0 -0
- /package/dist/{types-I5LHzk_M.d.mts → types-BjWhF4eO.d.mts} +0 -0
- /package/dist/{types-BJztoTbF.d.mts → types-BuplUVZ4.d.mts} +0 -0
- /package/dist/{types-Dpv_MvwZ.d.mts → types-CG9uGPBL.d.mts} +0 -0
- /package/dist/{types-DheoByey.d.mts → types-DLwh1QkC.d.mts} +0 -0
- /package/dist/{types-B3Uq7Czg.mjs → types-MCEx6w1B.mjs} +0 -0
- /package/dist/{types-Nm0cMxEh.mjs → types-PX2c4KA4.mjs} +0 -0
- /package/dist/{url-Coamqvs4.mjs → url--_ukDIsN.mjs} +0 -0
- /package/dist/{url-dn4mFfCI.mjs → url-RhtABurq.mjs} +0 -0
- /package/dist/{utils-CklSLz9F.mjs → utils-WY63JOPB.mjs} +0 -0
- /package/dist/{wordpress-slugs-yaeD7cxn.mjs → wordpress-slugs-qNcYNJGj.mjs} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import { n as Database } from "../types-
|
|
3
|
-
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-
|
|
4
|
-
import "../runner-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../types-
|
|
7
|
-
import "../types-
|
|
8
|
-
import "../adapters-
|
|
9
|
-
import "../runtime-
|
|
10
|
-
import "../hook-events-
|
|
11
|
-
import { d as Storage } from "../types-
|
|
12
|
-
import "../scheduled-publish-
|
|
13
|
-
import "../public-url-
|
|
14
|
-
import "../validate-
|
|
15
|
-
import "../byline-fields-
|
|
16
|
-
import "../types-
|
|
1
|
+
import "../types-Dkj3EodZ.mjs";
|
|
2
|
+
import { n as Database } from "../types-CG9uGPBL.mjs";
|
|
3
|
+
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CjKwIO3g.mjs";
|
|
4
|
+
import "../runner-DlkOiguI.mjs";
|
|
5
|
+
import "../index-_fCUsJx9.mjs";
|
|
6
|
+
import "../types-CeFGasN8.mjs";
|
|
7
|
+
import "../types-DLwh1QkC.mjs";
|
|
8
|
+
import "../adapters-cL325h6c.mjs";
|
|
9
|
+
import "../runtime-Dx9QpCL5.mjs";
|
|
10
|
+
import "../hook-events-lN-kz-4_.mjs";
|
|
11
|
+
import { d as Storage } from "../types-B2rEY0ik.mjs";
|
|
12
|
+
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
13
|
+
import "../public-url-CvNSyMJJ.mjs";
|
|
14
|
+
import "../validate-CleBZbkv.mjs";
|
|
15
|
+
import "../byline-fields-Bdq5wStT.mjs";
|
|
16
|
+
import "../types-BuplUVZ4.mjs";
|
|
17
17
|
import "../index.mjs";
|
|
18
18
|
import { Kysely } from "kysely";
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
3
3
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
4
|
-
import { c as invalidateMenuObjectCache } from "./object-cache-
|
|
4
|
+
import { c as invalidateMenuObjectCache } from "./object-cache-qP60KjUp.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { ulid } from "ulidx";
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
2
|
+
import { r as getDb } from "./loader-C9hvIKEW.mjs";
|
|
3
3
|
import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
|
|
4
|
-
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
5
|
-
import { t as CommentRepository } from "./comment-
|
|
6
|
-
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-
|
|
7
|
-
import { n as sanitizeHref } from "./url
|
|
8
|
-
import { t as CommentReactionRepository } from "./comment-reaction-
|
|
4
|
+
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-qP60KjUp.mjs";
|
|
5
|
+
import { t as CommentRepository } from "./comment-CbGlRPPS.mjs";
|
|
6
|
+
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-BdDNBmaU.mjs";
|
|
7
|
+
import { n as sanitizeHref } from "./url--_ukDIsN.mjs";
|
|
8
|
+
import { t as CommentReactionRepository } from "./comment-reaction-CFkwluRq.mjs";
|
|
9
9
|
import { sql } from "kysely";
|
|
10
10
|
|
|
11
11
|
//#region src/comments/ranking.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
|
-
import { a as validateContentStorage, i as resolveContentPartition, n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config
|
|
3
|
-
import {
|
|
4
|
-
import { n as readRevisionDataBatch, r as storedRevisionIndex } from "./revisions-
|
|
5
|
-
import { t as ContentRepository } from "./content-
|
|
6
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as contentItemSchema } from "./content-
|
|
2
|
+
import { a as validateContentStorage, i as resolveContentPartition, n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config---A7Bg68.mjs";
|
|
3
|
+
import { b as prepareContentChangeJournal, d as prepareContentProjection, h as cancelContentMigration, l as assertContentIndexFields, r as getContentStorage, u as contentProjectionValues, v as readContentPartitionRoute, y as contentChangeSequence } from "./runtime-Dz7vZRPU.mjs";
|
|
4
|
+
import { n as readRevisionDataBatch, r as storedRevisionIndex } from "./revisions-C-T9CdGo.mjs";
|
|
5
|
+
import { t as ContentRepository } from "./content-DbdiQEl7.mjs";
|
|
6
|
+
import { o as invalidateCollectionCache } from "./object-cache-qP60KjUp.mjs";
|
|
7
|
+
import { i as contentWriteConfiguration, k as snapshotPartitionDependencies } from "./content-write-BJkjOdiq.mjs";
|
|
8
|
+
import { o as contentVersionSchema } from "./version-store-DH_PMO8_.mjs";
|
|
9
|
+
import { a as contentItemSchema } from "./content-C8i4DyTt.mjs";
|
|
10
10
|
import { sql } from "kysely";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
@@ -15,6 +15,7 @@ import { z } from "zod";
|
|
|
15
15
|
async function migrateContentStorageConfig(db, previous, next) {
|
|
16
16
|
validateContentStorage(previous);
|
|
17
17
|
validateContentStorage(next);
|
|
18
|
+
await assertContentIndexFields(db, next);
|
|
18
19
|
if (previous.version === next.version) throw new ContentStorageError("INVALID_CONFIG", "A routing configuration change requires a new version.");
|
|
19
20
|
const oldDigest = await contentDigest(previous);
|
|
20
21
|
const digest = await contentDigest(next);
|
|
@@ -34,7 +35,7 @@ async function migrateContentStorageConfig(db, previous, next) {
|
|
|
34
35
|
for (const collection of new Set([...Object.keys(previous.rules), ...Object.keys(next.rules)])) {
|
|
35
36
|
const oldRule = previous.rules[collection];
|
|
36
37
|
const rule = next.rules[collection];
|
|
37
|
-
const rebuild = !oldRule || !rule || canonicalContentJson(oldRule.partitionBy) !== canonicalContentJson(rule.partitionBy);
|
|
38
|
+
const rebuild = !oldRule || !rule || canonicalContentJson(oldRule.partitionBy) !== canonicalContentJson(rule.partitionBy) || canonicalContentJson(oldRule.indexFields ?? []) !== canonicalContentJson(rule.indexFields ?? []);
|
|
38
39
|
if (rebuild && oldRule) {
|
|
39
40
|
checks.push(sql`NOT EXISTS (SELECT 1 FROM _dineway_content_locations WHERE collection=${collection} AND store<>'primary')`, sql`NOT EXISTS (SELECT 1 FROM revisions WHERE collection=${collection} AND json_type(data,'$.__dineway_content_storage__') IS NOT NULL)`);
|
|
40
41
|
statements.push(sql`DELETE FROM _dineway_content_locations WHERE collection=${collection}`.compile(db), sql`DELETE FROM _dineway_content_partitions WHERE collection=${collection}`.compile(db));
|
|
@@ -385,7 +386,7 @@ async function activateContentMigrationEntry(db, migration, entryId, archive) {
|
|
|
385
386
|
...contentMigrationSnapshotChecks(snapshot)
|
|
386
387
|
],
|
|
387
388
|
statements: [
|
|
388
|
-
prepareContentProjection(db, migration.collection, snapshot.item, schema.fields, false, saved.store === "primary"),
|
|
389
|
+
prepareContentProjection(db, migration.collection, snapshot.item, schema.fields, false, saved.store === "primary", storage.runtime.config.rules[migration.collection]?.indexFields),
|
|
389
390
|
...versions.revisions.map((revision) => db.updateTable("revisions").set({ data: saved.store === "primary" ? JSON.stringify(revision.value.data) : storedRevisionIndex(revision.value.command) }).where("id", "=", revision.id).compile()),
|
|
390
391
|
sql`UPDATE _dineway_content_locations SET store=${saved.store}, partition=${saved.partition}, routing_version=${saved.routingVersion}, version=${saved.version}, digest=${saved.digest} WHERE collection=${migration.collection} AND entry_id=${entryId}`.compile(db),
|
|
391
392
|
sql`UPDATE _dineway_content_migration_entries SET state='activated', updated_at=${(/* @__PURE__ */ new Date()).toISOString()} WHERE migration_id=${migration.id} AND entry_id=${entryId}`.compile(db),
|
|
@@ -484,7 +485,7 @@ async function rollbackContentMigration(db, migration, archive) {
|
|
|
484
485
|
...snapshot,
|
|
485
486
|
row: {
|
|
486
487
|
...snapshot.row,
|
|
487
|
-
...contentProjectionValues(snapshot.item, schema.fields, target.store === "primary")
|
|
488
|
+
...contentProjectionValues(snapshot.item, schema.fields, target.store === "primary", getContentStorage(db, migration.collection)?.runtime.config.rules[migration.collection]?.indexFields)
|
|
488
489
|
},
|
|
489
490
|
location: {
|
|
490
491
|
...snapshot.location,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
2
|
import { r as currentIsoTimestampValue } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
3
|
-
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-
|
|
4
|
-
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
5
|
-
import { c as validateRedirectUri, s as validateClientRedirectUri } from "./oauth-clients-
|
|
6
|
-
import { t as readTokenAuthority } from "./oauth-authority-
|
|
3
|
+
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-CK0aCsS2.mjs";
|
|
4
|
+
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-BtKXzyIH.mjs";
|
|
5
|
+
import { c as validateRedirectUri, s as validateClientRedirectUri } from "./oauth-clients-Bx5PjpT3.mjs";
|
|
6
|
+
import { t as readTokenAuthority } from "./oauth-authority-DgHy9_HI.mjs";
|
|
7
7
|
import { sql } from "kysely";
|
|
8
8
|
import { clampScopes, computeS256Challenge, secureCompare, toRoleLevel } from "@dineway-ai/auth";
|
|
9
9
|
import { generateCodeVerifier } from "arctic";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as validateScopes } from "./api-tokens-
|
|
2
|
-
import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
1
|
+
import { s as validateScopes } from "./api-tokens-CK0aCsS2.mjs";
|
|
2
|
+
import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-BtKXzyIH.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/oauth/redirect-uri.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getRequestContext } from "./request-context.mjs";
|
|
2
2
|
import { after } from "./after.mjs";
|
|
3
|
-
import { n as contentStorageCacheScope } from "./runtime-
|
|
3
|
+
import { n as contentStorageCacheScope } from "./runtime-Dz7vZRPU.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/object-cache/codec.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { rowUnchanged } from "./database/batch.mjs";
|
|
3
|
-
import { t as BylineRepository } from "./byline-
|
|
3
|
+
import { t as BylineRepository } from "./byline-Dznig_jr.mjs";
|
|
4
4
|
import { sql } from "kysely";
|
|
5
5
|
|
|
6
6
|
//#region src/content-storage/owned-metadata.ts
|
package/dist/page/index.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Dt as PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, Tt as PublicPageContext } from "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../types-
|
|
7
|
-
import "../adapters-
|
|
8
|
-
import "../runtime-
|
|
9
|
-
import "../hook-events-
|
|
10
|
-
import "../scheduled-publish-
|
|
11
|
-
import "../public-url-
|
|
12
|
-
import "../validate-
|
|
13
|
-
import "../byline-fields-
|
|
14
|
-
import "../types-
|
|
15
|
-
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 PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, Tt as PublicPageContext } from "../types-Dkj3EodZ.mjs";
|
|
2
|
+
import "../types-CG9uGPBL.mjs";
|
|
3
|
+
import "../runner-DlkOiguI.mjs";
|
|
4
|
+
import "../index-_fCUsJx9.mjs";
|
|
5
|
+
import "../types-CeFGasN8.mjs";
|
|
6
|
+
import "../types-DLwh1QkC.mjs";
|
|
7
|
+
import "../adapters-cL325h6c.mjs";
|
|
8
|
+
import "../runtime-Dx9QpCL5.mjs";
|
|
9
|
+
import "../hook-events-lN-kz-4_.mjs";
|
|
10
|
+
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
|
+
import "../public-url-CvNSyMJJ.mjs";
|
|
12
|
+
import "../validate-CleBZbkv.mjs";
|
|
13
|
+
import "../byline-fields-Bdq5wStT.mjs";
|
|
14
|
+
import "../types-BuplUVZ4.mjs";
|
|
15
|
+
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-D1llK8pQ.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/page/index.d.ts
|
|
18
18
|
/**
|
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-CusuPWzY.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/page/index.ts
|
|
4
4
|
/**
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./runner-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./adapters-
|
|
8
|
-
import "./runtime-
|
|
9
|
-
import "./hook-events-
|
|
10
|
-
import "./scheduled-publish-
|
|
11
|
-
import "./public-url-
|
|
12
|
-
import "./validate-
|
|
13
|
-
import "./byline-fields-
|
|
14
|
-
import "./types-
|
|
1
|
+
import "./types-Dkj3EodZ.mjs";
|
|
2
|
+
import "./types-CG9uGPBL.mjs";
|
|
3
|
+
import "./runner-DlkOiguI.mjs";
|
|
4
|
+
import "./index-_fCUsJx9.mjs";
|
|
5
|
+
import "./types-CeFGasN8.mjs";
|
|
6
|
+
import "./types-DLwh1QkC.mjs";
|
|
7
|
+
import "./adapters-cL325h6c.mjs";
|
|
8
|
+
import "./runtime-Dx9QpCL5.mjs";
|
|
9
|
+
import "./hook-events-lN-kz-4_.mjs";
|
|
10
|
+
import "./scheduled-publish-7kZkKw7t.mjs";
|
|
11
|
+
import "./public-url-CvNSyMJJ.mjs";
|
|
12
|
+
import "./validate-CleBZbkv.mjs";
|
|
13
|
+
import "./byline-fields-Bdq5wStT.mjs";
|
|
14
|
+
import "./types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayHandlers } from "./astro/types.mjs";
|
|
16
16
|
|
|
17
17
|
//#region src/plugin-utils.d.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { At as ResolvedPlugin, It as StandardPluginDefinition, ko as PluginDescriptor } from "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../types-
|
|
7
|
-
import "../adapters-
|
|
8
|
-
import "../runtime-
|
|
9
|
-
import "../hook-events-
|
|
10
|
-
import "../scheduled-publish-
|
|
11
|
-
import "../public-url-
|
|
12
|
-
import "../validate-
|
|
13
|
-
import "../byline-fields-
|
|
14
|
-
import "../types-
|
|
1
|
+
import { At as ResolvedPlugin, It as StandardPluginDefinition, ko as PluginDescriptor } from "../types-Dkj3EodZ.mjs";
|
|
2
|
+
import "../types-CG9uGPBL.mjs";
|
|
3
|
+
import "../runner-DlkOiguI.mjs";
|
|
4
|
+
import "../index-_fCUsJx9.mjs";
|
|
5
|
+
import "../types-CeFGasN8.mjs";
|
|
6
|
+
import "../types-DLwh1QkC.mjs";
|
|
7
|
+
import "../adapters-cL325h6c.mjs";
|
|
8
|
+
import "../runtime-Dx9QpCL5.mjs";
|
|
9
|
+
import "../hook-events-lN-kz-4_.mjs";
|
|
10
|
+
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
|
+
import "../public-url-CvNSyMJJ.mjs";
|
|
12
|
+
import "../validate-CleBZbkv.mjs";
|
|
13
|
+
import "../byline-fields-Bdq5wStT.mjs";
|
|
14
|
+
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/plugins/adapt-sandbox-entry.d.ts
|
|
17
17
|
/**
|
|
@@ -3,10 +3,10 @@ import { t as readRuntimeEnv } from "./runtime-env-DpYGy4pT.mjs";
|
|
|
3
3
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-qvSs0Gxy.mjs";
|
|
4
4
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bb56aCtB.mjs";
|
|
5
5
|
import { t as OptionsRepository } from "./options-yFkLUuTw.mjs";
|
|
6
|
-
import { a as setCronTasksEnabled, n as createPluginContext, t as PluginContextFactory } from "./context-
|
|
7
|
-
import { d as HookPipeline, p as resolveExclusiveHooks } from "./briefing-
|
|
8
|
-
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-
|
|
9
|
-
import { t as extractRequestMeta } from "./request-meta-
|
|
6
|
+
import { a as setCronTasksEnabled, n as createPluginContext, t as PluginContextFactory } from "./context-suF2JGdX.mjs";
|
|
7
|
+
import { d as HookPipeline, p as resolveExclusiveHooks } from "./briefing-BwDkIHys.mjs";
|
|
8
|
+
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-D52WNV_c.mjs";
|
|
9
|
+
import { t as extractRequestMeta } from "./request-meta-DOBXMRX0.mjs";
|
|
10
10
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
11
11
|
import { sql } from "kysely";
|
|
12
12
|
import { ulid } from "ulidx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { runWithContext } from "./request-context.mjs";
|
|
2
2
|
import { n as loadBetterSqlite3, t as createDatabase } from "./connection-DJ3GzHVH.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-D69s90P-.mjs";
|
|
4
|
+
import { t as generatePreviewToken } from "./tokens-B6bMUhBx.mjs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
import { ulid } from "ulidx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as CollectionWithFields } from "./types-
|
|
2
|
-
import { n as Database } from "./types-
|
|
1
|
+
import { i as CollectionWithFields } from "./types-BjWhF4eO.mjs";
|
|
2
|
+
import { n as Database } from "./types-CG9uGPBL.mjs";
|
|
3
3
|
import { Kysely } from "kysely";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
package/dist/{publication-authorization-wMR-tEQ_.mjs → publication-authorization-BciTXOB3.mjs}
RENAMED
|
@@ -2,16 +2,16 @@ import { AtomicWriteConflict, atomicBatch, isD1Database, rowUnchanged } from "./
|
|
|
2
2
|
import { r as currentIsoTimestampValue } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
|
|
4
4
|
import { r as getOAuthTokenHash, t as SYSTEM_ACTOR_ID } from "./actor-D0AW80ld.mjs";
|
|
5
|
-
import { r as prepareContentLifecycleEvents, t as ContentRepository } from "./content-
|
|
6
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
5
|
+
import { r as prepareContentLifecycleEvents, t as ContentRepository } from "./content-DbdiQEl7.mjs";
|
|
6
|
+
import { o as invalidateCollectionCache } from "./object-cache-qP60KjUp.mjs";
|
|
7
7
|
import { t as SiteActivityRepository } from "./site-activity-hpfJkmxQ.mjs";
|
|
8
8
|
import { n as stableStringify } from "./stable-hash-9RDJgfif.mjs";
|
|
9
9
|
import { r as ReviewRequestRepository } from "./review-requests-DZYM51yI.mjs";
|
|
10
10
|
import { i as invalidateRedirectCache } from "./cache-DsEbwFVE.mjs";
|
|
11
|
-
import { T as prepareContentPublication } from "./content-write-
|
|
12
|
-
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-
|
|
13
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
14
|
-
import { n as redactActivityRecord } from "./activity-
|
|
11
|
+
import { T as prepareContentPublication } from "./content-write-BJkjOdiq.mjs";
|
|
12
|
+
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-mDJIgcFy.mjs";
|
|
13
|
+
import { a as getSiteSettingsWithDb } from "./settings-D0SBKo-W.mjs";
|
|
14
|
+
import { n as redactActivityRecord } from "./activity-lyE6xCrf.mjs";
|
|
15
15
|
import { sql } from "kysely";
|
|
16
16
|
import { ulid } from "ulidx";
|
|
17
17
|
import { z } from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { r as getDb } from "./loader-C9hvIKEW.mjs";
|
|
2
2
|
import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
|
|
3
|
-
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-
|
|
4
|
-
import { n as SchemaRegistry } from "./registry-
|
|
3
|
+
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-qP60KjUp.mjs";
|
|
4
|
+
import { n as SchemaRegistry } from "./registry-3xWpSYNI.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/schema/query.ts
|
|
7
7
|
/**
|
|
@@ -2,9 +2,9 @@ import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
3
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-XW5tMrH8.mjs";
|
|
4
4
|
import { i as encodeCursor } from "./types-BI3ULB3A.mjs";
|
|
5
|
-
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-
|
|
5
|
+
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-C9hvIKEW.mjs";
|
|
6
6
|
import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
|
|
7
|
-
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-
|
|
7
|
+
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-qP60KjUp.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/visual-editing/editable.ts
|
|
10
10
|
/**
|
|
@@ -597,7 +597,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
597
597
|
let needsQueryPath = parsed.some((item) => item.credits.length === 0 && (dataStr(item.data, "authorId") !== "" || dataStr(item.data, "primaryBylineId") !== ""));
|
|
598
598
|
let hasCustomFields = false;
|
|
599
599
|
if (!needsQueryPath) try {
|
|
600
|
-
const { getDb } = await import("./loader-
|
|
600
|
+
const { getDb } = await import("./loader-C9hvIKEW.mjs").then((n) => n.i);
|
|
601
601
|
const db = await getDb();
|
|
602
602
|
const { getBylineFieldDefs } = await import("./field-defs-cache-dn5Tw79A.mjs").then((n) => n.t);
|
|
603
603
|
hasCustomFields = (await getBylineFieldDefs(db)).length > 0;
|
|
@@ -613,7 +613,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
try {
|
|
616
|
-
const { getBylinesForEntries } = await import("./bylines-
|
|
616
|
+
const { getBylinesForEntries } = await import("./bylines-BQMt9Kby.mjs").then((n) => n.t);
|
|
617
617
|
const refs = entries.map((entry) => {
|
|
618
618
|
const data = entryData(entry);
|
|
619
619
|
const id = dataStr(data, "id");
|
|
@@ -671,12 +671,12 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
671
671
|
byTaxonomy: grouped
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
const { primeFoldedEntryTerms } = await import("./taxonomies-
|
|
674
|
+
const { primeFoldedEntryTerms } = await import("./taxonomies-D9cNfBL7.mjs").then((n) => n.u);
|
|
675
675
|
primeFoldedEntryTerms(type, perEntry, { locale });
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
678
|
try {
|
|
679
|
-
const { getAllTermsForEntries } = await import("./taxonomies-
|
|
679
|
+
const { getAllTermsForEntries } = await import("./taxonomies-D9cNfBL7.mjs").then((n) => n.u);
|
|
680
680
|
const ids = entries.map((entry) => dataStr(entryData(entry), "id")).filter(Boolean);
|
|
681
681
|
if (ids.length === 0) return;
|
|
682
682
|
const termsMap = await getAllTermsForEntries(type, ids, { locale });
|
|
@@ -710,9 +710,9 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
710
710
|
*/
|
|
711
711
|
async function getTranslations(type, id) {
|
|
712
712
|
try {
|
|
713
|
-
const db = (await import("./loader-
|
|
713
|
+
const db = (await import("./loader-C9hvIKEW.mjs").then((n) => n.i)).getDb;
|
|
714
714
|
const dbInstance = await db();
|
|
715
|
-
const { ContentRepository } = await import("./content-
|
|
715
|
+
const { ContentRepository } = await import("./content-DbdiQEl7.mjs").then((n) => n.n);
|
|
716
716
|
const repo = new ContentRepository(dbInstance);
|
|
717
717
|
const item = await repo.findByIdOrSlug(type, id);
|
|
718
718
|
if (!item) return {
|
|
@@ -780,8 +780,8 @@ async function resolveDinewayPath(path) {
|
|
|
780
780
|
const hasDbOverride = !!getRequestContext()?.db && getRequestContext()?.dbIsIsolated !== false;
|
|
781
781
|
let patterns = !hasDbOverride ? cachedUrlPatterns : null;
|
|
782
782
|
if (!patterns) {
|
|
783
|
-
const { getDb } = await import("./loader-
|
|
784
|
-
const { SchemaRegistry } = await import("./registry-
|
|
783
|
+
const { getDb } = await import("./loader-C9hvIKEW.mjs").then((n) => n.i);
|
|
784
|
+
const { SchemaRegistry } = await import("./registry-3xWpSYNI.mjs").then((n) => n.r);
|
|
785
785
|
patterns = (await new SchemaRegistry(await getDb()).listCollections()).filter((collection) => collection.urlPattern).map((collection) => {
|
|
786
786
|
const { regex, paramNames } = patternToRegex(collection.urlPattern);
|
|
787
787
|
return {
|
|
@@ -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-HuAkl_6r.mjs";
|
|
2
|
+
import { n as normalizeTrustedHeaders } from "./trusted-proxy-Dmi1gZXh.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/rate-limit.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "./options-yFkLUuTw.mjs";
|
|
2
2
|
import { t as RedirectRepository } from "./redirect-CJ-FAbNK.mjs";
|
|
3
3
|
import { c as interpolateDestination, d as validateDestinationParams, f as validatePattern, i as invalidateRedirectCache, l as isPattern, s as compilePattern, u as matchPattern } from "./cache-DsEbwFVE.mjs";
|
|
4
|
-
import { n as isTerminalStatus } from "./status-
|
|
4
|
+
import { n as isTerminalStatus } from "./status-CDqWWt6i.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/redirects/loops.ts
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as publicDiscoveryRulesSchema } from "./public-discovery-
|
|
2
|
-
import { F as cursorPaginationQuery, H as slugPattern, L as httpUrl, R as localeCode, V as roleLevel } from "./content-
|
|
3
|
-
import { t as isSafeHref } from "./url
|
|
4
|
-
import { n as isTerminalStatus, t as REDIRECT_RULE_STATUSES } from "./status-
|
|
1
|
+
import { r as publicDiscoveryRulesSchema } from "./public-discovery-CGRirTJH.mjs";
|
|
2
|
+
import { F as cursorPaginationQuery, H as slugPattern, L as httpUrl, R as localeCode, V as roleLevel } from "./content-C8i4DyTt.mjs";
|
|
3
|
+
import { t as isSafeHref } from "./url--_ukDIsN.mjs";
|
|
4
|
+
import { n as isTerminalStatus, t as REDIRECT_RULE_STATUSES } from "./status-CDqWWt6i.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/api/schemas/media.ts
|
|
@@ -6,9 +6,9 @@ import { n as contentLocaleUpdatedIndexName, t as contentLocaleCreatedIndexName
|
|
|
6
6
|
import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-BgUxCuwu.mjs";
|
|
7
7
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bb56aCtB.mjs";
|
|
8
8
|
import { t as buildStableHash } from "./stable-hash-9RDJgfif.mjs";
|
|
9
|
-
import { a as markContentMediaUsageCollectionStaleSafely, n as deleteContentMediaUsageCollection } from "./content-refresh-
|
|
10
|
-
import { r as parseSearchConfig, t as FTSManager } from "./fts-manager-
|
|
11
|
-
import { t as parsePublicDiscoveryRules } from "./public-discovery-
|
|
9
|
+
import { a as markContentMediaUsageCollectionStaleSafely, n as deleteContentMediaUsageCollection } from "./content-refresh-COi0WfKw.mjs";
|
|
10
|
+
import { r as parseSearchConfig, t as FTSManager } from "./fts-manager-BHwhq1lC.mjs";
|
|
11
|
+
import { t as parsePublicDiscoveryRules } from "./public-discovery-CGRirTJH.mjs";
|
|
12
12
|
import { sql } from "kysely";
|
|
13
13
|
import { ulid } from "ulidx";
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as migrateD1, t as MIGRATION_NAMES } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { atomicBatch, ensureAtomicBatchSchema, isD1Database } from "./database/batch.mjs";
|
|
3
|
-
import { t as pluginMigrationTableNames } from "./migrations-
|
|
3
|
+
import { t as pluginMigrationTableNames } from "./migrations-DTCIQJ2_.mjs";
|
|
4
4
|
import { n as d1ReleaseRevision } from "./state-CKkqoA6i.mjs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { CompiledQuery, sql } from "kysely";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ContentStorageHookTarget } from "./hook-events-
|
|
1
|
+
import { r as ContentStorageHookTarget } from "./hook-events-lN-kz-4_.mjs";
|
|
2
2
|
import { QueryRecorder } from "./database/instrumentation.mjs";
|
|
3
3
|
import { Kysely, RawBuilder } from "kysely";
|
|
4
4
|
import { RoleLevel } from "@dineway-ai/auth";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as RejectedReviewContentError, r as ReviewRequestRepository } from "./review-requests-DZYM51yI.mjs";
|
|
2
|
-
import { r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-
|
|
2
|
+
import { r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-In_0Igp6.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
1
|
import { i as resolveActorIdentity } from "./actor-D0AW80ld.mjs";
|
|
2
|
-
import { p as logSiteActivitySafely } from "./activity-events-
|
|
2
|
+
import { p as logSiteActivitySafely } from "./activity-events-D4JfWJFI.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/review-route-helpers.ts
|
|
5
5
|
function resolveReviewRouteActor(locals) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { atomicBatch } from "./database/batch.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as readRevisionDataBatch, t as readRevisionData } from "./revisions-
|
|
3
|
+
import { g as contentPartitionWritable, r as getContentStorage } from "./runtime-Dz7vZRPU.mjs";
|
|
4
|
+
import { n as readRevisionDataBatch, t as readRevisionData } from "./revisions-C-T9CdGo.mjs";
|
|
5
5
|
import { t as DinewayValidationError } from "./types-BI3ULB3A.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
import { monotonicFactory } from "ulidx";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { o as ContentStorageError } from "./config
|
|
2
|
-
import { r as getContentStorage } from "./runtime-
|
|
1
|
+
import { o as ContentStorageError } from "./config---A7Bg68.mjs";
|
|
2
|
+
import { r as getContentStorage } from "./runtime-Dz7vZRPU.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/content-storage/revisions.ts
|
|
6
|
+
const selectedFieldsSchema = z.array(z.string().regex(/^[a-z][a-z0-9_]{0,62}$/)).max(98);
|
|
6
7
|
const locationSchema = z.object({
|
|
7
8
|
collection: z.string(),
|
|
8
9
|
entryId: z.string(),
|
|
@@ -27,7 +28,8 @@ async function readRevisionData(db, row) {
|
|
|
27
28
|
return (await readRevisionDataBatch(db, [row]))[0];
|
|
28
29
|
}
|
|
29
30
|
/** Keep revision history and comparisons bounded by store batches, not revision count. */
|
|
30
|
-
async function readRevisionDataBatch(db, rows) {
|
|
31
|
+
async function readRevisionDataBatch(db, rows, fields) {
|
|
32
|
+
if (fields) selectedFieldsSchema.parse(fields);
|
|
31
33
|
const result = rows.map((row) => z.record(z.string(), z.unknown()).parse(JSON.parse(row.data)));
|
|
32
34
|
const groups = /* @__PURE__ */ new Map();
|
|
33
35
|
for (const [index, row] of rows.entries()) {
|
|
@@ -45,10 +47,10 @@ async function readRevisionDataBatch(db, rows) {
|
|
|
45
47
|
for (const [collection, group] of groups) {
|
|
46
48
|
const storage = getContentStorage(db, collection);
|
|
47
49
|
if (!storage) throw new ContentStorageError("UNAVAILABLE", "The revision's content store is not configured.");
|
|
48
|
-
const values = await storage.coordinator.readLocations(group.map((item) => item.location));
|
|
50
|
+
const values = await storage.coordinator.readLocations(group.map((item) => item.location), fields);
|
|
49
51
|
for (const [offset, item] of group.entries()) result[item.index] = values[offset].data;
|
|
50
52
|
}
|
|
51
|
-
return result;
|
|
53
|
+
return fields ? result.map((data) => Object.fromEntries(fields.filter((field) => Object.hasOwn(data, field)).map((field) => [field, data[field]]))) : result;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
//#endregion
|