dineway 0.2.34 → 0.2.36
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-D-yGV7cW.mjs → activity-events-CiFN61xq.mjs} +1 -1
- package/dist/{allowed-origins-DV3LWuWW.mjs → allowed-origins-Cp7BI3L9.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +11 -11
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +5 -5
- package/dist/{api-CL4pG2zf.mjs → api-BotAYpCU.mjs} +8 -8
- package/dist/{api-tokens-_6tMD1W4.mjs → api-tokens-OAgvq4xg.mjs} +1 -1
- package/dist/{apply-CYLUMiZg.mjs → apply-BTfAReIv.mjs} +13 -13
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +5 -4
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/redirect.mjs +2 -2
- package/dist/astro/middleware/request-context.mjs +3 -3
- 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 +83 -83
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +7 -7
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +7 -7
- 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 +14 -14
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +3 -3
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +9 -9
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +9 -9
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/index.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +13 -12
- package/dist/astro/routes/api/admin/comments/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +23 -24
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +23 -24
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +28 -29
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +28 -29
- package/dist/astro/routes/api/admin/context/diff.mjs +27 -28
- package/dist/astro/routes/api/admin/context/index.mjs +28 -29
- package/dist/astro/routes/api/admin/context/stale.mjs +27 -28
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +23 -24
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +27 -28
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +27 -28
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +24 -25
- 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 +50 -51
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +50 -51
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +42 -43
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +49 -50
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +49 -50
- package/dist/astro/routes/api/admin/plugins/index.mjs +42 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +42 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +49 -50
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +42 -43
- package/dist/astro/routes/api/admin/plugins/updates.mjs +42 -43
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +15 -15
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +25 -19
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +36 -37
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/index.mjs +34 -35
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +42 -43
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +42 -43
- 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 +7 -7
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +7 -7
- 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 +8 -8
- 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 +7 -7
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +3 -3
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +7 -7
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +13 -13
- 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 +73 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +85 -46
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +14 -14
- 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 +16 -16
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +15 -16
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +8 -8
- 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 +15 -16
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +11 -11
- 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 +10 -10
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/trash.mjs +8 -8
- package/dist/astro/routes/api/dashboard.mjs +5 -5
- 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 +16 -16
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +29 -30
- package/dist/astro/routes/api/import/wordpress/media.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +31 -32
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +28 -29
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +19 -19
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +33 -34
- package/dist/astro/routes/api/integration/artifact.mjs +5 -5
- package/dist/astro/routes/api/integration/dispatch.mjs +9 -9
- package/dist/astro/routes/api/integrations/_provider_.mjs +7 -7
- package/dist/astro/routes/api/integrations/index.mjs +6 -6
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +61 -62
- package/dist/astro/routes/api/media/_id_/confirm.mjs +9 -9
- package/dist/astro/routes/api/media/_id_.mjs +9 -9
- 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 +27 -28
- package/dist/astro/routes/api/menus/_name_/items.mjs +27 -28
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +27 -28
- package/dist/astro/routes/api/menus/_name_/translations.mjs +27 -28
- package/dist/astro/routes/api/menus/_name_.mjs +27 -28
- package/dist/astro/routes/api/menus/index.mjs +27 -28
- 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 +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 +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 +5 -5
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +9 -9
- package/dist/astro/routes/api/redirects/404s/summary.mjs +9 -9
- package/dist/astro/routes/api/redirects/_id_.mjs +28 -29
- package/dist/astro/routes/api/redirects/index.mjs +28 -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 +44 -45
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +44 -45
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +44 -45
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +44 -45
- package/dist/astro/routes/api/schema/collections/index.mjs +44 -45
- package/dist/astro/routes/api/schema/index.mjs +8 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +42 -43
- package/dist/astro/routes/api/schema/orphans/index.mjs +42 -43
- package/dist/astro/routes/api/search/enable.mjs +10 -10
- package/dist/astro/routes/api/search/index.mjs +9 -9
- package/dist/astro/routes/api/search/rebuild.mjs +10 -10
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +9 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +28 -29
- package/dist/astro/routes/api/sections/index.mjs +28 -29
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings/reviews.mjs +6 -6
- package/dist/astro/routes/api/settings.mjs +28 -29
- 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 +17 -17
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +19 -19
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +7 -7
- package/dist/astro/routes/api/system/heartbeat.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +30 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +30 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +30 -31
- package/dist/astro/routes/api/taxonomies/index.mjs +30 -31
- package/dist/astro/routes/api/themes/preview.mjs +5 -5
- 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 +27 -28
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +28 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +28 -29
- package/dist/astro/routes/api/widget-areas/_name_.mjs +25 -26
- package/dist/astro/routes/api/widget-areas/index.mjs +28 -29
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +3 -3
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +10 -10
- package/dist/astro/routes/sitemap.xml.mjs +9 -9
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/types.d.mts +12 -12
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-D4WW-wFF.mjs → auth-control-guard-DPOSBNFI.mjs} +1 -1
- package/dist/{authorize-EnP57AQl.mjs → authorize-CXIjxIfC.mjs} +1 -1
- package/dist/{briefing-CkCi6S-W.mjs → briefing-5zf0YZbR.mjs} +3 -3
- package/dist/{briefing-BXsVwd4P.mjs → briefing-DiupPvyN.mjs} +1 -1
- package/dist/{bundle-Cgak1zGE.mjs → bundle-DImnxo71.mjs} +1 -1
- package/dist/{byline-fields-BGEIA9dZ.mjs → byline-fields-DGNKitg3.mjs} +2 -2
- package/dist/{byline-fields-BmkhEDFF.d.mts → byline-fields-sT8qm0iY.d.mts} +16 -16
- package/dist/{bylines-LqNRjma2.mjs → bylines-CXyKpVLQ.mjs} +2 -2
- package/dist/cli/index.mjs +28 -28
- 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/{comment-Bi7cJ9SS.mjs → comment-kgLTdtQD.mjs} +13 -6
- package/dist/{comments-Dg_gWBEB.mjs → comments-ZYK_cZvx.mjs} +1 -1
- package/dist/{content-NobcQti0.mjs → content-D9xKUSno.mjs} +50 -7
- package/dist/{content-refresh-l4mPoGeX.mjs → content-refresh-9M9cc55-.mjs} +1 -1
- package/dist/{context-B0SG9Xkc.mjs → context-BU8AbLmY.mjs} +2 -2
- package/dist/{context-6uqzU-M9.mjs → context-C5lPtfeh.mjs} +6 -6
- package/dist/{context-route-helpers-C8s26uDT.mjs → context-route-helpers-CWAHJFl3.mjs} +1 -1
- package/dist/{dashboard-B-OybCMw.mjs → dashboard-BnD5krLg.mjs} +2 -2
- package/dist/database/batch.d.mts +3 -1
- package/dist/database/batch.mjs +25 -2
- package/dist/database/d1/index.d.mts +9 -9
- package/dist/database/d1/index.mjs +3 -3
- package/dist/db/d1.d.mts +1 -1
- package/dist/db/d1.mjs +1 -1
- 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-DhpCzMo0.mjs → device-flow-Prqg6ycD.mjs} +3 -3
- package/dist/{discovery-CqXbN0WZ.mjs → discovery-CYcZJ1o3.mjs} +3 -3
- package/dist/{evidence-xJf8hQgH.mjs → evidence-krrA3uiG.mjs} +5 -5
- package/dist/{hitl-requests-evSsel48.mjs → hitl-requests-CGjA1jND.mjs} +2 -2
- package/dist/{hitl-route-helpers-D2kJSOFX.mjs → hitl-route-helpers-BxSL0iZB.mjs} +4 -4
- package/dist/{import-Jpta-CYE.mjs → import-CayDCPaH.mjs} +6 -6
- package/dist/{index-CSUSBfdD.d.mts → index-mlJSqFkG.d.mts} +3 -3
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +75 -76
- package/dist/{integration-credentials-BrQr0fb_.mjs → integration-credentials-Br16M1VE.mjs} +2 -2
- package/dist/{jsonld-CqIVIeZK.d.mts → jsonld-DzI2Ma14.d.mts} +2 -2
- package/dist/{manifest-schema-DG29meRy.mjs → manifest-schema-DBXM_g8l.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-DAZL3Ckt.mjs → mcp-reviewed-executor-RJ71uyQb.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 +1 -1
- package/dist/{media-3fK0u-bo.mjs → media-BZqwtRTZ.mjs} +11 -3
- package/dist/{menus-CbR_J8cJ.mjs → menus-2o-DVcwA.mjs} +4 -4
- package/dist/{oauth-authorization--0UtTZpv.mjs → oauth-authorization-B_mmz7O2.mjs} +4 -4
- package/dist/{oauth-clients-D4WBYaYW.mjs → oauth-clients-Cr4pdIAE.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--7nG62_h.mjs → parse-BscLr3p2.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-DK1wLuao.mjs → plugins-f48yrwfI.mjs} +5 -5
- package/dist/{preview-q0pkibNO.mjs → preview-E1xKZGsX.mjs} +2 -2
- package/dist/{provider-loader-C0GaLwKB.d.mts → provider-loader-H2wdGD0o.d.mts} +1 -1
- package/dist/{public-url-B9zEdO8p.d.mts → public-url-4jAdQgr3.d.mts} +1 -1
- package/dist/{public-url-BV-YQ_LF.d.mts → public-url-zoO-QbN6.d.mts} +2 -2
- package/dist/{publication-authorization-BrEZ2TsE.mjs → publication-authorization-Dq_20SZR.mjs} +5 -6
- package/dist/{query-DAS6VbMS.mjs → query-BkWWdxyb.mjs} +1 -1
- package/dist/{query-CEn9HXnf.mjs → query-D6oNo9iz.mjs} +5 -5
- package/dist/{rate-limit-Dd1TnzZP.mjs → rate-limit-RaBJEgyt.mjs} +2 -2
- package/dist/{redirects-DmOdfRjI.mjs → redirects-D16GFaOa.mjs} +2 -2
- package/dist/{redirects-UCXyL0lP.mjs → redirects-DpRiuRWn.mjs} +3 -3
- package/dist/{registry-RD9qTnYL.mjs → registry-DcV93OL_.mjs} +3 -3
- package/dist/{release-BR08Slqf.mjs → release-CZfAeyXm.mjs} +2 -2
- package/dist/{request-meta-BOcuHAXD.mjs → request-meta-C6yGqnGD.mjs} +1 -1
- package/dist/{content-De_XeXy_.mjs → review-payload-LLIi1sxO.mjs} +161 -5
- package/dist/{review-requests-CyfWbJ6W.mjs → review-requests-C7prIbCo.mjs} +1 -1
- package/dist/{review-route-helpers-lKA-CXms.mjs → review-route-helpers-BYx3Px90.mjs} +1 -1
- package/dist/{runner-JnJSGXEB.d.mts → runner-Cxl-vyk2.d.mts} +1 -1
- package/dist/{runs-B5BExdKO.mjs → runs-B8kCirJ6.mjs} +2 -2
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +1 -1
- package/dist/{schema-DLMkODQc.mjs → schema-DFeC5axi.mjs} +1 -1
- package/dist/{search-CRzWNfxX.mjs → search-C9qOBgvo.mjs} +1 -1
- package/dist/{secrets-Cg0D2gQW.mjs → secrets-BP2YTPWn.mjs} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +12 -12
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +7 -7
- package/dist/{seo-B_tBFyud.mjs → seo-Bypxm1iD.mjs} +1 -1
- package/dist/{service-DilVsWGD.mjs → service-DOFqfUVv.mjs} +45 -20
- package/dist/{service--bQht6oN.mjs → service-mJBl4ZP4.mjs} +2 -2
- package/dist/{settings-Deqx3Upy.mjs → settings-2p7TuNWG.mjs} +1 -1
- package/dist/{settings-DFzevIrU.mjs → settings-DRFy8JQx.mjs} +2 -2
- package/dist/{site-context-vCiDRr4H.mjs → site-context-D9oETfxF.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 +2 -2
- package/dist/{store-C1yDxxfv.mjs → store-CjmmGlVw.mjs} +2 -2
- package/dist/submission-BLvkvewK.mjs +411 -0
- package/dist/{taxonomies-4cnTcbD6.mjs → taxonomies-C5ayPp3T.mjs} +1 -1
- package/dist/{taxonomies-CllxqaH0.mjs → taxonomies-DW6Fps-w.mjs} +2 -2
- package/dist/{trusted-proxy-CAW9o4Dw.mjs → trusted-proxy-CvDP0g0F.mjs} +1 -1
- package/dist/{types-CFgTpfPk.d.mts → types-BFoQ5a1v.d.mts} +1 -1
- package/dist/{types-QjOcidFc.d.mts → types-jefx_scD.d.mts} +82 -16
- package/dist/ui/server-runtime.d.mts +13 -13
- package/dist/ui/server-runtime.mjs +19 -19
- package/dist/{validate-A27peRc4.d.mts → validate-CCOsvPg2.d.mts} +3 -3
- package/dist/{validate-Wl4MSf3V.mjs → validate-CupwWNWL.mjs} +1 -1
- package/dist/version-fsTzG0GS.mjs +6 -0
- package/dist/{widgets-Di-6yDH7.mjs → widgets-DbOctkXv.mjs} +1 -1
- package/dist/{worker-RpaMP71d.mjs → worker-wjRq4FI9.mjs} +7 -7
- package/dist/{zod-generator-Cylvl_SM.mjs → zod-generator-BzACAoR5.mjs} +1 -1
- package/package.json +3 -3
- package/dist/review-payload-DEylbssM.mjs +0 -159
- package/dist/submission-BsHNfHc7.mjs +0 -155
- package/dist/version-BWxyC5s4.mjs +0 -6
- /package/dist/{activity-CZnq5YlZ.mjs → activity-BbtYp_4V.mjs} +0 -0
- /package/dist/{adapters-BQ8CQbBm.d.mts → adapters-Rol-inz6.d.mts} +0 -0
- /package/dist/{api-tokens-D5K_Csub.mjs → api-tokens-DA18zxza.mjs} +0 -0
- /package/dist/{byline-fields-Qg8TesxL.mjs → byline-fields-CY6V0ew1.mjs} +0 -0
- /package/dist/{bylines-7BQxRGyG.mjs → bylines-gSAfpHl4.mjs} +0 -0
- /package/dist/{cache-CSTy-R-K.mjs → cache-DZDOBJv3.mjs} +0 -0
- /package/dist/{challenge-store-D-_-VavY.mjs → challenge-store-DFGsDtCj.mjs} +0 -0
- /package/dist/{client-factory-BLSkgsTg.mjs → client-factory-6vLLT06O.mjs} +0 -0
- /package/dist/{comment-reaction-BLqIj5mx.mjs → comment-reaction-Cun5eIXL.mjs} +0 -0
- /package/dist/{components-BWQUCJEr.mjs → components-gMTtJqHg.mjs} +0 -0
- /package/dist/{context-types-DqTo6C79.mjs → context-types-DLD_HnKT.mjs} +0 -0
- /package/dist/{cron-D7zB6m8i.mjs → cron-BVYo08mi.mjs} +0 -0
- /package/dist/{d1-dialect-B1b8cmxX.mjs → d1-dialect-BBxPg6Om.mjs} +0 -0
- /package/dist/{default-D9zxuUU7.mjs → default-w3MwLng7.mjs} +0 -0
- /package/dist/{email-console-BONByQiC.mjs → email-console-CpvgEN1w.mjs} +0 -0
- /package/dist/{error-Dd8LtpG5.mjs → error-B-44r5TD.mjs} +0 -0
- /package/dist/{escape-BWC4s5bV.mjs → escape-B1GM0yJU.mjs} +0 -0
- /package/dist/{experimental-workflows-M5D3RTFo.mjs → experimental-workflows-fzJHB3ZI.mjs} +0 -0
- /package/dist/{forgeway-account-BeKJlKh1.mjs → forgeway-account-CnWOIusE.mjs} +0 -0
- /package/dist/{fts-manager-BeWtB7ZD.mjs → fts-manager-DA74x_uP.mjs} +0 -0
- /package/dist/{hash-lNx3KJis.mjs → hash-DvMZXj2L.mjs} +0 -0
- /package/dist/{load-Dc5ttyg4.mjs → load-B2oitobd.mjs} +0 -0
- /package/dist/{media-allowlist-rN4qIF6W.mjs → media-allowlist-CyByjUXh.mjs} +0 -0
- /package/dist/{media-url-B4YtTY6c.mjs → media-url-D-elxQjL.mjs} +0 -0
- /package/dist/{migrations-CMdxWKx-.mjs → migrations-C7YXse7V.mjs} +0 -0
- /package/dist/{mode-CPf_KZ37.mjs → mode-BJwb_MgK.mjs} +0 -0
- /package/dist/{oauth-authority-CCqo4eBm.mjs → oauth-authority-DOjME4Hh.mjs} +0 -0
- /package/dist/{oauth-state-store-CMgcimzA.mjs → oauth-state-store-D2H9hKcN.mjs} +0 -0
- /package/dist/{output-BYpiVUBf.mjs → output-CdmbQioY.mjs} +0 -0
- /package/dist/{parser-BV0wzQHo.mjs → parser-ehIlj32k.mjs} +0 -0
- /package/dist/{passkey-config-BG4GO4OO.mjs → passkey-config-sUQoLEj_.mjs} +0 -0
- /package/dist/{placeholder-BHTaoCYx.d.mts → placeholder-CQKI6vLd.d.mts} +0 -0
- /package/dist/{policy-Dej7NJFD.mjs → policy-CrK1vl8l.mjs} +0 -0
- /package/dist/{portable-text-FKf3IrPz.d.mts → portable-text-BE7nszX6.d.mts} +0 -0
- /package/dist/{portable-text-B9YuySom.mjs → portable-text-DH3Om_2D.mjs} +0 -0
- /package/dist/{provider-loader-3MY1SjzA.mjs → provider-loader-Dnv2neOu.mjs} +0 -0
- /package/dist/{public-discovery-BAbOvKiR.mjs → public-discovery-CTql6jdZ.mjs} +0 -0
- /package/dist/{public-url-D5Wjq0sy.mjs → public-url-4sMO36Gw.mjs} +0 -0
- /package/dist/{public-url-C7pbmS_7.mjs → public-url-DNt9A1yS.mjs} +0 -0
- /package/dist/{redirect-Bx96u2nS.mjs → redirect-Cjjb5VYr.mjs} +0 -0
- /package/dist/{resolve-C80Pm2DW.mjs → resolve-CpOV2jt_.mjs} +0 -0
- /package/dist/{revocation-B7GL5fMl.mjs → revocation-DZ8e4JCS.mjs} +0 -0
- /package/dist/{runtime-env-CQVAWHzH.mjs → runtime-env-v-1UXPAH.mjs} +0 -0
- /package/dist/{sections-BwUjOGqn.mjs → sections-CkoQY7Z9.mjs} +0 -0
- /package/dist/{seo-BOTuCeh-.mjs → seo-DYpc_rQ1.mjs} +0 -0
- /package/dist/{seo-contributions-Dt57p6Sq.mjs → seo-contributions-atY3jZEV.mjs} +0 -0
- /package/dist/{service-wYQ_ePZ4.mjs → service-CeEi6nax.mjs} +0 -0
- /package/dist/{session-user-DeqTcAmR.mjs → session-user-DacoiKrJ.mjs} +0 -0
- /package/dist/{setup-complete-BFqudwbW.mjs → setup-complete-CWMnrNFN.mjs} +0 -0
- /package/dist/{setup-nonce-CAqDUxxU.mjs → setup-nonce-BUmfCiY1.mjs} +0 -0
- /package/dist/{sidecar-client-CnpGTvYq.mjs → sidecar-client-CbrX8nuw.mjs} +0 -0
- /package/dist/{site-url-wXFqbm9c.mjs → site-url-DoTPKRND.mjs} +0 -0
- /package/dist/{ssrf-LN16WMip.mjs → ssrf-COxLChKv.mjs} +0 -0
- /package/dist/{state-jyNZ6-7L.mjs → state-D8AogXCV.mjs} +0 -0
- /package/dist/{status-Bwkeuz8g.mjs → status-DBSB6tdS.mjs} +0 -0
- /package/dist/{tokens-Bjuf1HID.mjs → tokens-I3tSjoFI.mjs} +0 -0
- /package/dist/{transport-C0jj-Nc8.d.mts → transport-CZbtxgKZ.d.mts} +0 -0
- /package/dist/{transport-472KVGBe.mjs → transport-aPKvM53n.mjs} +0 -0
- /package/dist/{types-Bs-7Geuh.d.mts → types-1qU0-N1P.d.mts} +0 -0
- /package/dist/{types-BDq9t5lG.mjs → types-BKsk4nnM.mjs} +0 -0
- /package/dist/{types-CwkJp6zr.d.mts → types-BWsEjujW.d.mts} +0 -0
- /package/dist/{types-DTjrkhKU.d.mts → types-CAD4OvmF.d.mts} +0 -0
- /package/dist/{types-7Th6Mwz3.d.mts → types-CVRNRAA5.d.mts} +0 -0
- /package/dist/{types-D17dJRht.mjs → types-ChSk0dmw.mjs} +0 -0
- /package/dist/{types-b2sq7ZDk.d.mts → types-DNPP-eu4.d.mts} +0 -0
- /package/dist/{types-DkXuBo8k.d.mts → types-SddyDti7.d.mts} +0 -0
- /package/dist/{url-D375-6LM.mjs → url-Ce0qtSdB.mjs} +0 -0
- /package/dist/{url-bv5i4JN0.mjs → url-DfqolpO2.mjs} +0 -0
- /package/dist/{utils-Cglcqpm2.mjs → utils-BoWkoty8.mjs} +0 -0
- /package/dist/{wordpress-slugs-vOx7R1dM.mjs → wordpress-slugs-pQlLXbKn.mjs} +0 -0
- /package/dist/{workers-build-BaQCrSmf.mjs → workers-build-QVrquLLe.mjs} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import { t 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 { d as Storage } from "../types-
|
|
8
|
-
import "../public-url-
|
|
9
|
-
import "../validate-
|
|
10
|
-
import "../byline-fields-
|
|
11
|
-
import "../types-
|
|
1
|
+
import "../types-jefx_scD.mjs";
|
|
2
|
+
import { t as Database } from "../types-CVRNRAA5.mjs";
|
|
3
|
+
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-CQKI6vLd.mjs";
|
|
4
|
+
import "../runner-Cxl-vyk2.mjs";
|
|
5
|
+
import "../index-mlJSqFkG.mjs";
|
|
6
|
+
import "../types-SddyDti7.mjs";
|
|
7
|
+
import { d as Storage } from "../types-BWsEjujW.mjs";
|
|
8
|
+
import "../public-url-zoO-QbN6.mjs";
|
|
9
|
+
import "../validate-CCOsvPg2.mjs";
|
|
10
|
+
import "../byline-fields-sT8qm0iY.mjs";
|
|
11
|
+
import "../types-CAD4OvmF.mjs";
|
|
12
12
|
import "../index.mjs";
|
|
13
13
|
import { Kysely } from "kysely";
|
|
14
14
|
|
|
@@ -24,7 +24,7 @@ var MediaRepository = class {
|
|
|
24
24
|
/**
|
|
25
25
|
* Create a new media item
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
prepareCreate(input) {
|
|
28
28
|
const id = ulid();
|
|
29
29
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
30
30
|
const row = {
|
|
@@ -44,8 +44,16 @@ var MediaRepository = class {
|
|
|
44
44
|
created_at: now,
|
|
45
45
|
author_id: input.authorId ?? null
|
|
46
46
|
};
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
return {
|
|
48
|
+
id,
|
|
49
|
+
item: this.rowToItem(row),
|
|
50
|
+
statement: this.db.insertInto("media").values(row).compile()
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
async create(input) {
|
|
54
|
+
const prepared = this.prepareCreate(input);
|
|
55
|
+
await this.db.executeQuery(prepared.statement);
|
|
56
|
+
return prepared.item;
|
|
49
57
|
}
|
|
50
58
|
/**
|
|
51
59
|
* Create a pending media item (for signed URL upload flow)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
2
2
|
import { r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
3
3
|
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-BGjIlY9s.mjs";
|
|
4
|
-
import { t as CommentRepository } from "./comment-
|
|
4
|
+
import { t as CommentRepository } from "./comment-kgLTdtQD.mjs";
|
|
5
5
|
import { r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
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-
|
|
6
|
+
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-CpOV2jt_.mjs";
|
|
7
|
+
import { n as sanitizeHref } from "./url-DfqolpO2.mjs";
|
|
8
|
+
import { t as CommentReactionRepository } from "./comment-reaction-Cun5eIXL.mjs";
|
|
9
9
|
import { sql } from "kysely";
|
|
10
10
|
|
|
11
11
|
//#region src/comments/ranking.ts
|
|
@@ -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-DA18zxza.mjs";
|
|
4
|
+
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-fzJHB3ZI.mjs";
|
|
5
|
+
import { c as validateRedirectUri, s as validateClientRedirectUri } from "./oauth-clients-Cr4pdIAE.mjs";
|
|
6
|
+
import { t as readTokenAuthority } from "./oauth-authority-DOjME4Hh.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-DA18zxza.mjs";
|
|
2
|
+
import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-fzJHB3ZI.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/oauth/redirect-uri.ts
|
|
5
5
|
/**
|
package/dist/page/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 "../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 PublicPageSchema, Et as PublicPageImage, F as PageMetadataContribution, M as PageFragmentContribution, Ot as PublicSchemaNode, Tt as PublicPageContext } from "../types-jefx_scD.mjs";
|
|
2
|
+
import "../types-CVRNRAA5.mjs";
|
|
3
|
+
import "../runner-Cxl-vyk2.mjs";
|
|
4
|
+
import "../index-mlJSqFkG.mjs";
|
|
5
|
+
import "../types-SddyDti7.mjs";
|
|
6
|
+
import "../public-url-zoO-QbN6.mjs";
|
|
7
|
+
import "../validate-CCOsvPg2.mjs";
|
|
8
|
+
import "../byline-fields-sT8qm0iY.mjs";
|
|
9
|
+
import "../types-CAD4OvmF.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-DzI2Ma14.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-atY3jZEV.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-jefx_scD.mjs";
|
|
2
|
+
import "./types-CVRNRAA5.mjs";
|
|
3
|
+
import "./runner-Cxl-vyk2.mjs";
|
|
4
|
+
import "./index-mlJSqFkG.mjs";
|
|
5
|
+
import "./types-SddyDti7.mjs";
|
|
6
|
+
import "./public-url-zoO-QbN6.mjs";
|
|
7
|
+
import "./validate-CCOsvPg2.mjs";
|
|
8
|
+
import "./byline-fields-sT8qm0iY.mjs";
|
|
9
|
+
import "./types-CAD4OvmF.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 { At as ResolvedPlugin, It as StandardPluginDefinition, jo as PluginDescriptor } 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-
|
|
1
|
+
import { At as ResolvedPlugin, It as StandardPluginDefinition, jo as PluginDescriptor } from "../types-jefx_scD.mjs";
|
|
2
|
+
import "../types-CVRNRAA5.mjs";
|
|
3
|
+
import "../runner-Cxl-vyk2.mjs";
|
|
4
|
+
import "../index-mlJSqFkG.mjs";
|
|
5
|
+
import "../types-SddyDti7.mjs";
|
|
6
|
+
import "../public-url-zoO-QbN6.mjs";
|
|
7
|
+
import "../validate-CCOsvPg2.mjs";
|
|
8
|
+
import "../byline-fields-sT8qm0iY.mjs";
|
|
9
|
+
import "../types-CAD4OvmF.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/plugins/adapt-sandbox-entry.d.ts
|
|
12
12
|
/**
|
|
@@ -2,11 +2,11 @@ import { r as validatePluginIdentifier, t as validateIdentifier } from "./valida
|
|
|
2
2
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-Cz-aU0X1.mjs";
|
|
3
3
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BnG3LPMN.mjs";
|
|
4
4
|
import { t as OptionsRepository } from "./options-BcqHWpc-.mjs";
|
|
5
|
-
import { n as createPluginContext, t as PluginContextFactory } from "./context-
|
|
6
|
-
import { t as readRuntimeEnv } from "./runtime-env-
|
|
7
|
-
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-
|
|
8
|
-
import { t as extractRequestMeta } from "./request-meta-
|
|
9
|
-
import { r as setCronTasksEnabled } from "./cron-
|
|
5
|
+
import { n as createPluginContext, t as PluginContextFactory } from "./context-C5lPtfeh.mjs";
|
|
6
|
+
import { t as readRuntimeEnv } from "./runtime-env-v-1UXPAH.mjs";
|
|
7
|
+
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-BP2YTPWn.mjs";
|
|
8
|
+
import { t as extractRequestMeta } from "./request-meta-C6yGqnGD.mjs";
|
|
9
|
+
import { r as setCronTasksEnabled } from "./cron-BVYo08mi.mjs";
|
|
10
10
|
import { sql } from "kysely";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as loadBetterSqlite3, t as createDatabase } from "./connection-DJ3GzHVH.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-CbrX8nuw.mjs";
|
|
4
|
+
import { t as generatePreviewToken } from "./tokens-I3tSjoFI.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 { t as Database } from "./types-
|
|
1
|
+
import { i as CollectionWithFields } from "./types-1qU0-N1P.mjs";
|
|
2
|
+
import { t as Database } from "./types-CVRNRAA5.mjs";
|
|
3
3
|
import { Kysely } from "kysely";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
package/dist/{publication-authorization-BrEZ2TsE.mjs → publication-authorization-Dq_20SZR.mjs}
RENAMED
|
@@ -3,15 +3,14 @@ import { r as currentIsoTimestampValue } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-BqxIv8Il.mjs";
|
|
4
4
|
import { r as getOAuthTokenHash, t as SYSTEM_ACTOR_ID } from "./actor-DxUAJgQX.mjs";
|
|
5
5
|
import { o as invalidateCollectionCache } from "./object-cache-BGjIlY9s.mjs";
|
|
6
|
-
import { t as ContentRepository } from "./content-
|
|
6
|
+
import { t as ContentRepository } from "./content-D9xKUSno.mjs";
|
|
7
7
|
import { t as SiteActivityRepository } from "./site-activity-BrN2NviL.mjs";
|
|
8
8
|
import { n as stableStringify } from "./stable-hash-DEtJgcp7.mjs";
|
|
9
9
|
import { r as ReviewRequestRepository } from "./review-requests-BF2eEKr8.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { n as redactActivityRecord } from "./activity-CZnq5YlZ.mjs";
|
|
10
|
+
import { i as invalidateRedirectCache } from "./cache-DZDOBJv3.mjs";
|
|
11
|
+
import { n as buildStableActionHash, t as ReviewPayloadBuilder, w as prepareContentPublication } from "./review-payload-LLIi1sxO.mjs";
|
|
12
|
+
import { a as getSiteSettingsWithDb } from "./settings-DRFy8JQx.mjs";
|
|
13
|
+
import { n as redactActivityRecord } from "./activity-BbtYp_4V.mjs";
|
|
15
14
|
import { sql } from "kysely";
|
|
16
15
|
import { ulid } from "ulidx";
|
|
17
16
|
import { canActOnOwn, hasPermission, hasScope, toRoleLevel } from "@dineway-ai/auth";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
2
2
|
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-BGjIlY9s.mjs";
|
|
3
3
|
import { r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
4
|
-
import { n as SchemaRegistry } from "./registry-
|
|
4
|
+
import { n as SchemaRegistry } from "./registry-DcV93OL_.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/schema/query.ts
|
|
7
7
|
/**
|
|
@@ -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-CXyKpVLQ.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-DW6Fps-w.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-DW6Fps-w.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 });
|
|
@@ -712,7 +712,7 @@ async function getTranslations(type, id) {
|
|
|
712
712
|
try {
|
|
713
713
|
const db = (await import("./loader-Cgsx23wU.mjs").then((n) => n.i)).getDb;
|
|
714
714
|
const dbInstance = await db();
|
|
715
|
-
const { ContentRepository } = await import("./content-
|
|
715
|
+
const { ContentRepository } = await import("./content-D9xKUSno.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 {
|
|
@@ -781,7 +781,7 @@ async function resolveDinewayPath(path) {
|
|
|
781
781
|
let patterns = !hasDbOverride ? cachedUrlPatterns : null;
|
|
782
782
|
if (!patterns) {
|
|
783
783
|
const { getDb } = await import("./loader-Cgsx23wU.mjs").then((n) => n.i);
|
|
784
|
-
const { SchemaRegistry } = await import("./registry-
|
|
784
|
+
const { SchemaRegistry } = await import("./registry-DcV93OL_.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-B-44r5TD.mjs";
|
|
2
|
+
import { n as normalizeTrustedHeaders } from "./trusted-proxy-CvDP0g0F.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/rate-limit.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "./options-BcqHWpc-.mjs";
|
|
2
2
|
import { t as RedirectRepository } from "./redirect-HLI3wT5Y.mjs";
|
|
3
3
|
import { a as validateDestinationParams, i as matchPattern, n as interpolateDestination, o as validatePattern, r as isPattern, t as compilePattern } from "./patterns-CZ7D4y_R.mjs";
|
|
4
|
-
import { i as invalidateRedirectCache } from "./cache-
|
|
5
|
-
import { n as isTerminalStatus } from "./status-
|
|
4
|
+
import { i as invalidateRedirectCache } from "./cache-DZDOBJv3.mjs";
|
|
5
|
+
import { n as isTerminalStatus } from "./status-DBSB6tdS.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/redirects/loops.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as publicDiscoveryRulesSchema } from "./public-discovery-
|
|
2
|
-
import { t as isSafeHref } from "./url-
|
|
3
|
-
import { n as isTerminalStatus, t as REDIRECT_RULE_STATUSES } from "./status-
|
|
1
|
+
import { r as publicDiscoveryRulesSchema } from "./public-discovery-CTql6jdZ.mjs";
|
|
2
|
+
import { t as isSafeHref } from "./url-DfqolpO2.mjs";
|
|
3
|
+
import { n as isTerminalStatus, t as REDIRECT_RULE_STATUSES } from "./status-DBSB6tdS.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/api/schemas/common.ts
|
|
@@ -6,9 +6,9 @@ import { n as contentLocaleUpdatedIndexName, t as contentLocaleCreatedIndexName
|
|
|
6
6
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BnG3LPMN.mjs";
|
|
7
7
|
import { t as buildStableHash } from "./stable-hash-DEtJgcp7.mjs";
|
|
8
8
|
import { a as RESERVED_COLLECTION_SLUGS, o as RESERVED_FIELD_SLUGS, r as FIELD_TYPE_TO_COLUMN } from "./types-CyBH89BS.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-9M9cc55-.mjs";
|
|
10
|
+
import { r as parseSearchConfig, t as FTSManager } from "./fts-manager-DA74x_uP.mjs";
|
|
11
|
+
import { t as parsePublicDiscoveryRules } from "./public-discovery-CTql6jdZ.mjs";
|
|
12
12
|
import { sql } from "kysely";
|
|
13
13
|
import { ulid } from "ulidx";
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as migrateD1, t as MIGRATION_NAMES } from "./runner-CVeq0266.mjs";
|
|
2
2
|
import { atomicBatch, ensureAtomicBatchSchema, isD1Database } from "./database/batch.mjs";
|
|
3
|
-
import { t as pluginMigrationTableNames } from "./migrations-
|
|
4
|
-
import { n as d1ReleaseRevision } from "./state-
|
|
3
|
+
import { t as pluginMigrationTableNames } from "./migrations-C7YXse7V.mjs";
|
|
4
|
+
import { n as d1ReleaseRevision } from "./state-D8AogXCV.mjs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { CompiledQuery, sql } from "kysely";
|
|
7
7
|
|
|
@@ -1,22 +1,69 @@
|
|
|
1
1
|
import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
3
|
import { r as isI18nEnabled } from "./config-XW5tMrH8.mjs";
|
|
4
|
+
import { r as encodeBase64, t as decodeBase64 } from "./base64-Cz-aU0X1.mjs";
|
|
4
5
|
import { n as ScheduledNotDueError, t as DinewayValidationError } from "./types-BqxIv8Il.mjs";
|
|
5
6
|
import { t as contentWriteChecks } from "./atomic-authority-CnBQJ14T.mjs";
|
|
6
7
|
import { o as invalidateCollectionCache, s as invalidateCommentObjectCache } from "./object-cache-BGjIlY9s.mjs";
|
|
7
8
|
import { t as RevisionRepository } from "./revision-090sZyGc.mjs";
|
|
8
|
-
import { t as ContentRepository } from "./content-
|
|
9
|
+
import { t as ContentRepository } from "./content-D9xKUSno.mjs";
|
|
9
10
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BnG3LPMN.mjs";
|
|
10
11
|
import { t as UserRepository } from "./user-1-YV30lf.mjs";
|
|
12
|
+
import { n as stableStringify, t as buildStableHash } from "./stable-hash-DEtJgcp7.mjs";
|
|
11
13
|
import { t as RedirectRepository } from "./redirect-HLI3wT5Y.mjs";
|
|
12
14
|
import { r as requestCached } from "./request-cache-DPmV5nk4.mjs";
|
|
13
15
|
import { t as BylineRepository } from "./byline-DEZKlzD9.mjs";
|
|
14
16
|
import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-D_ae-u_U.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import { t as SeoRepository } from "./seo-
|
|
17
|
-
import { i as invalidateRedirectCache } from "./cache-CSTy-R-K.mjs";
|
|
17
|
+
import { i as invalidateRedirectCache } from "./cache-DZDOBJv3.mjs";
|
|
18
|
+
import { t as SeoRepository } from "./seo-DYpc_rQ1.mjs";
|
|
18
19
|
import { sql } from "kysely";
|
|
19
20
|
|
|
21
|
+
//#region src/api/rev.ts
|
|
22
|
+
/**
|
|
23
|
+
* Generate a _rev token from a content item's version and updatedAt.
|
|
24
|
+
*/
|
|
25
|
+
function encodeRev(item) {
|
|
26
|
+
return encodeBase64(`${item.version}:${item.updatedAt}`);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Decode a _rev token into its components.
|
|
30
|
+
* Returns null if the token is malformed.
|
|
31
|
+
*/
|
|
32
|
+
function decodeRev(rev) {
|
|
33
|
+
try {
|
|
34
|
+
const decoded = decodeBase64(rev);
|
|
35
|
+
const colonIdx = decoded.indexOf(":");
|
|
36
|
+
if (colonIdx === -1) return null;
|
|
37
|
+
const version = parseInt(decoded.slice(0, colonIdx), 10);
|
|
38
|
+
const updatedAt = decoded.slice(colonIdx + 1);
|
|
39
|
+
if (isNaN(version) || !updatedAt) return null;
|
|
40
|
+
return {
|
|
41
|
+
version,
|
|
42
|
+
updatedAt
|
|
43
|
+
};
|
|
44
|
+
} catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Validate a _rev token against a content item.
|
|
50
|
+
* Returns null if valid (or if no _rev provided), or an error message if invalid.
|
|
51
|
+
*/
|
|
52
|
+
function validateRev(rev, item) {
|
|
53
|
+
if (!rev) return { valid: true };
|
|
54
|
+
const decoded = decodeRev(rev);
|
|
55
|
+
if (!decoded) return {
|
|
56
|
+
valid: false,
|
|
57
|
+
message: "Malformed _rev token"
|
|
58
|
+
};
|
|
59
|
+
if (decoded.version !== item.version || decoded.updatedAt !== item.updatedAt) return {
|
|
60
|
+
valid: false,
|
|
61
|
+
message: "Content has been modified since last read (version conflict)"
|
|
62
|
+
};
|
|
63
|
+
return { valid: true };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
20
67
|
//#region src/api/handlers/validate-media-fields.ts
|
|
21
68
|
function asMediaRef(value) {
|
|
22
69
|
if (value === null || value === void 0) return null;
|
|
@@ -1227,4 +1274,113 @@ function prepareNonTranslatableFields(db, collectionSlug, updatedItemId, transla
|
|
|
1227
1274
|
}
|
|
1228
1275
|
|
|
1229
1276
|
//#endregion
|
|
1230
|
-
|
|
1277
|
+
//#region src/site-context/action-hash.ts
|
|
1278
|
+
async function buildStableActionHash(value) {
|
|
1279
|
+
return buildStableHash(value);
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
//#endregion
|
|
1283
|
+
//#region src/site-context/review-payload.ts
|
|
1284
|
+
var ReviewPayloadBuilder = class {
|
|
1285
|
+
constructor(handlers) {
|
|
1286
|
+
this.handlers = handlers;
|
|
1287
|
+
}
|
|
1288
|
+
async buildContentReviewPayload(input) {
|
|
1289
|
+
const actionType = input.actionType ?? "content.publish";
|
|
1290
|
+
const content = await this.loadContent(input.collection, input.id);
|
|
1291
|
+
const compare = await this.loadCompare(input.collection, content.entryId);
|
|
1292
|
+
const live = asRecord(compare.live);
|
|
1293
|
+
const draft = asRecord(compare.draft) ?? content.data;
|
|
1294
|
+
const displayTitle = stringOrNull(draft.title) ?? content.displayTitle;
|
|
1295
|
+
const hasChanges = typeof compare.hasChanges === "boolean" ? compare.hasChanges : stableStringify(live) !== stableStringify(draft);
|
|
1296
|
+
const actionHash = await buildStableActionHash({
|
|
1297
|
+
actionType,
|
|
1298
|
+
collection: input.collection,
|
|
1299
|
+
entryId: content.entryId,
|
|
1300
|
+
liveRevisionId: content.liveRevisionId,
|
|
1301
|
+
draftRevisionId: content.draftRevisionId,
|
|
1302
|
+
reviewedRev: content.reviewedRev,
|
|
1303
|
+
live,
|
|
1304
|
+
draft
|
|
1305
|
+
});
|
|
1306
|
+
const scope = `content:${input.collection}:${content.entryId}`;
|
|
1307
|
+
const summary = input.summary ?? `Review ${actionType} for ${input.collection}/${displayTitle ?? content.entryId}`;
|
|
1308
|
+
return {
|
|
1309
|
+
collection: input.collection,
|
|
1310
|
+
entryId: content.entryId,
|
|
1311
|
+
scope,
|
|
1312
|
+
liveRevisionId: content.liveRevisionId,
|
|
1313
|
+
draftRevisionId: content.draftRevisionId,
|
|
1314
|
+
reviewedRev: content.reviewedRev,
|
|
1315
|
+
actionType,
|
|
1316
|
+
actionHash,
|
|
1317
|
+
reviewPayload: {
|
|
1318
|
+
kind: "content_review",
|
|
1319
|
+
actionType,
|
|
1320
|
+
summary,
|
|
1321
|
+
target: {
|
|
1322
|
+
collection: input.collection,
|
|
1323
|
+
entryId: content.entryId,
|
|
1324
|
+
scope,
|
|
1325
|
+
liveRevisionId: content.liveRevisionId,
|
|
1326
|
+
draftRevisionId: content.draftRevisionId,
|
|
1327
|
+
reviewedRev: content.reviewedRev,
|
|
1328
|
+
actionHash
|
|
1329
|
+
},
|
|
1330
|
+
content: {
|
|
1331
|
+
id: content.entryId,
|
|
1332
|
+
slug: content.slug,
|
|
1333
|
+
status: content.status,
|
|
1334
|
+
title: displayTitle,
|
|
1335
|
+
updatedAt: content.updatedAt
|
|
1336
|
+
},
|
|
1337
|
+
diff: {
|
|
1338
|
+
hasChanges,
|
|
1339
|
+
live,
|
|
1340
|
+
draft
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
async loadContent(collection, id) {
|
|
1346
|
+
const result = await this.handlers.handleContentGet(collection, id);
|
|
1347
|
+
if (!result.success) throw new Error(result.error?.message ?? `Content item not found: ${collection}/${id}`);
|
|
1348
|
+
const payload = asRecord(result.data);
|
|
1349
|
+
const item = asRecord(payload?.item);
|
|
1350
|
+
if (!payload || !item) throw new Error("Content get response did not include an item");
|
|
1351
|
+
const entryId = stringOrNull(item.id);
|
|
1352
|
+
const reviewedRev = stringOrNull(payload._rev);
|
|
1353
|
+
if (!entryId) throw new Error("Content item is missing id");
|
|
1354
|
+
if (!reviewedRev) throw new Error("Content item is missing _rev for review binding");
|
|
1355
|
+
const data = asRecord(item.data) ?? {};
|
|
1356
|
+
const title = stringOrNull(data.title) ?? stringOrNull(item.title) ?? stringOrNull(item.slug);
|
|
1357
|
+
return {
|
|
1358
|
+
entryId,
|
|
1359
|
+
reviewedRev,
|
|
1360
|
+
liveRevisionId: stringOrNull(item.liveRevisionId),
|
|
1361
|
+
draftRevisionId: stringOrNull(item.draftRevisionId),
|
|
1362
|
+
slug: stringOrNull(item.slug),
|
|
1363
|
+
status: stringOrNull(item.status),
|
|
1364
|
+
updatedAt: stringOrNull(item.updatedAt),
|
|
1365
|
+
displayTitle: title,
|
|
1366
|
+
data
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
async loadCompare(collection, id) {
|
|
1370
|
+
const result = await this.handlers.handleContentCompare(collection, id);
|
|
1371
|
+
if (!result.success) throw new Error(result.error?.message ?? `Failed to compare content: ${collection}/${id}`);
|
|
1372
|
+
return asRecord(result.data) ?? {};
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
function asRecord(value) {
|
|
1376
|
+
return isRecord(value) ? value : null;
|
|
1377
|
+
}
|
|
1378
|
+
function isRecord(value) {
|
|
1379
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1380
|
+
}
|
|
1381
|
+
function stringOrNull(value) {
|
|
1382
|
+
return typeof value === "string" && value.length > 0 ? value : null;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
//#endregion
|
|
1386
|
+
export { validateRev as A, handleContentUpdate as C, validateMediaFields as D, validateContentDataFields as E, decodeRev as O, handleContentUnschedule as S, prepareNonTranslatableFields as T, handleContentPublish as _, handleContentCompare as a, handleContentTranslations as b, handleContentCreate as c, handleContentDuplicate as d, handleContentGet as f, handleContentPermanentDelete as g, handleContentListTrashed as h, handleContentAuthors as i, encodeRev as k, handleContentDelete as l, handleContentList as m, buildStableActionHash as n, handleContentCountScheduled as o, handleContentGetIncludingTrashed as p, contentWriteConfiguration as r, handleContentCountTrashed as s, ReviewPayloadBuilder as t, handleContentDiscardDraft as u, handleContentRestore as v, prepareContentPublication as w, handleContentUnpublish as x, handleContentSchedule as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as RejectedReviewContentError, r as ReviewRequestRepository } from "./review-requests-BF2eEKr8.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { r as submitAutomatedReview, t as ReviewSubmissionError } from "./submission-BLvkvewK.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-DxUAJgQX.mjs";
|
|
2
|
-
import { p as logSiteActivitySafely } from "./activity-events-
|
|
2
|
+
import { p as logSiteActivitySafely } from "./activity-events-CiFN61xq.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/review-route-helpers.ts
|
|
5
5
|
function resolveReviewRouteActor(locals) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as decodeBase64url, r as encodeBase64 } from "./base64-Cz-aU0X1.mjs";
|
|
2
2
|
import { i as encodeCursor, r as decodeCursor } from "./types-BqxIv8Il.mjs";
|
|
3
3
|
import { t as buildStableHash } from "./stable-hash-DEtJgcp7.mjs";
|
|
4
|
-
import { t as DinewayToolsError } from "./service-
|
|
5
|
-
import { t as DinewaySecretsError } from "./secrets-
|
|
4
|
+
import { t as DinewayToolsError } from "./service-CeEi6nax.mjs";
|
|
5
|
+
import { t as DinewaySecretsError } from "./secrets-BP2YTPWn.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import MiniSearch from "minisearch";
|
|
8
8
|
|