dineway 0.2.34 → 0.2.35
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-CwhrR7H5.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 +4 -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 +82 -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-BmkhEDFF.d.mts → byline-fields-BO96fXLv.d.mts} +14 -14
- package/dist/{byline-fields-BGEIA9dZ.mjs → byline-fields-DGNKitg3.mjs} +2 -2
- 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-BUiFEiCZ.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-CI700CW4.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-Tt_IGMno.d.mts} +75 -15
- 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-DpT-k_Ny.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 +2 -2
- 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,16 +1,16 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../../options-BcqHWpc-.mjs";
|
|
2
|
-
import "../../../../../../context-types-
|
|
3
|
-
import "../../../../../../public-discovery-
|
|
4
|
-
import { n as apiSuccess, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse
|
|
6
|
-
import "../../../../../../redirects-
|
|
7
|
-
import { b as passkeyRegisterVerifyBody } from "../../../../../../byline-fields-
|
|
8
|
-
import "../../../../../../status-
|
|
2
|
+
import "../../../../../../context-types-DLD_HnKT.mjs";
|
|
3
|
+
import "../../../../../../public-discovery-CTql6jdZ.mjs";
|
|
4
|
+
import { n as apiSuccess, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-BscLr3p2.mjs";
|
|
6
|
+
import "../../../../../../redirects-DpRiuRWn.mjs";
|
|
7
|
+
import { b as passkeyRegisterVerifyBody } from "../../../../../../byline-fields-DGNKitg3.mjs";
|
|
8
|
+
import "../../../../../../status-DBSB6tdS.mjs";
|
|
9
9
|
import "../../../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as getPublicOrigin } from "../../../../../../public-url-
|
|
11
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-
|
|
12
|
-
import { n as createChallengeStore } from "../../../../../../challenge-store-
|
|
13
|
-
import { t as getPasskeyConfig } from "../../../../../../passkey-config-
|
|
10
|
+
import { n as getPublicOrigin } from "../../../../../../public-url-4sMO36Gw.mjs";
|
|
11
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-Cp7BI3L9.mjs";
|
|
12
|
+
import { n as createChallengeStore } from "../../../../../../challenge-store-DFGsDtCj.mjs";
|
|
13
|
+
import { t as getPasskeyConfig } from "../../../../../../passkey-config-sUQoLEj_.mjs";
|
|
14
14
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
15
15
|
import { registerPasskey, verifyRegistrationResponse } from "@dineway-ai/auth/passkey";
|
|
16
16
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BcqHWpc-.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import "../../../../../public-discovery-
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse
|
|
6
|
-
import "../../../../../redirects-
|
|
7
|
-
import { S as passkeyVerifyBody } from "../../../../../byline-fields-
|
|
8
|
-
import "../../../../../status-
|
|
2
|
+
import "../../../../../context-types-DLD_HnKT.mjs";
|
|
3
|
+
import "../../../../../public-discovery-CTql6jdZ.mjs";
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-B-44r5TD.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-BscLr3p2.mjs";
|
|
6
|
+
import "../../../../../redirects-DpRiuRWn.mjs";
|
|
7
|
+
import { S as passkeyVerifyBody } from "../../../../../byline-fields-DGNKitg3.mjs";
|
|
8
|
+
import "../../../../../status-DBSB6tdS.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
11
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
12
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
13
|
-
import { t as getPasskeyConfig } from "../../../../../passkey-config-
|
|
10
|
+
import { n as getPublicOrigin } from "../../../../../public-url-4sMO36Gw.mjs";
|
|
11
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-Cp7BI3L9.mjs";
|
|
12
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-DFGsDtCj.mjs";
|
|
13
|
+
import { t as getPasskeyConfig } from "../../../../../passkey-config-sUQoLEj_.mjs";
|
|
14
14
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
15
15
|
import { PasskeyAuthenticationError, authenticateWithPasskey } from "@dineway-ai/auth/passkey";
|
|
16
16
|
|
|
@@ -3,9 +3,9 @@ import { AtomicWriteConflict, atomicBatch } from "../../../../../database/batch.
|
|
|
3
3
|
import "../../../../../base64-Cz-aU0X1.mjs";
|
|
4
4
|
import "../../../../../types-BqxIv8Il.mjs";
|
|
5
5
|
import { t as AuditRepository } from "../../../../../audit-F5iWkbcJ.mjs";
|
|
6
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
7
|
-
import { i as hasScope$1, n as TOKEN_PREFIXES, r as generatePrefixedToken } from "../../../../../api-tokens-
|
|
8
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
6
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-B-44r5TD.mjs";
|
|
7
|
+
import { i as hasScope$1, n as TOKEN_PREFIXES, r as generatePrefixedToken } from "../../../../../api-tokens-DA18zxza.mjs";
|
|
8
|
+
import { n as getPublicOrigin } from "../../../../../public-url-4sMO36Gw.mjs";
|
|
9
9
|
import { sql } from "kysely";
|
|
10
10
|
import { ulid } from "ulidx";
|
|
11
11
|
import { Role } from "@dineway-ai/auth";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../../../d1-binding-D6HZa3ks.mjs";
|
|
2
2
|
import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "../../../../../database/batch.mjs";
|
|
3
3
|
import { r as currentIsoTimestampValue } from "../../../../../dialect-helpers-C6xtO-Ui.mjs";
|
|
4
|
-
import { o as hashPrefixedToken } from "../../../../../api-tokens-
|
|
5
|
-
import { t as escapeHtml } from "../../../../../escape-
|
|
4
|
+
import { o as hashPrefixedToken } from "../../../../../api-tokens-DA18zxza.mjs";
|
|
5
|
+
import { t as escapeHtml } from "../../../../../escape-B1GM0yJU.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/auth/setup-token/verify.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BcqHWpc-.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import "../../../../../public-discovery-
|
|
4
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
5
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse
|
|
6
|
-
import "../../../../../redirects-
|
|
7
|
-
import { C as signupCompleteBody } from "../../../../../byline-fields-
|
|
8
|
-
import "../../../../../status-
|
|
2
|
+
import "../../../../../context-types-DLD_HnKT.mjs";
|
|
3
|
+
import "../../../../../public-discovery-CTql6jdZ.mjs";
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-B-44r5TD.mjs";
|
|
5
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-BscLr3p2.mjs";
|
|
6
|
+
import "../../../../../redirects-DpRiuRWn.mjs";
|
|
7
|
+
import { C as signupCompleteBody } from "../../../../../byline-fields-DGNKitg3.mjs";
|
|
8
|
+
import "../../../../../status-DBSB6tdS.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
11
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
12
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
13
|
-
import { t as getPasskeyConfig } from "../../../../../passkey-config-
|
|
10
|
+
import { n as getPublicOrigin } from "../../../../../public-url-4sMO36Gw.mjs";
|
|
11
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-Cp7BI3L9.mjs";
|
|
12
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-DFGsDtCj.mjs";
|
|
13
|
+
import { t as getPasskeyConfig } from "../../../../../passkey-config-sUQoLEj_.mjs";
|
|
14
14
|
import { SignupError, completeSignup } from "@dineway-ai/auth";
|
|
15
15
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
16
16
|
import { registerPasskey, verifyRegistrationResponse } from "@dineway-ai/auth/passkey";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BcqHWpc-.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import "../../../../../runtime-env-
|
|
4
|
-
import "../../../../../public-discovery-
|
|
5
|
-
import { n as apiSuccess, t as apiError } from "../../../../../error-
|
|
6
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse
|
|
7
|
-
import "../../../../../redirects-
|
|
8
|
-
import { w as signupRequestBody } from "../../../../../byline-fields-
|
|
9
|
-
import "../../../../../status-
|
|
2
|
+
import "../../../../../context-types-DLD_HnKT.mjs";
|
|
3
|
+
import "../../../../../runtime-env-v-1UXPAH.mjs";
|
|
4
|
+
import "../../../../../public-discovery-CTql6jdZ.mjs";
|
|
5
|
+
import { n as apiSuccess, t as apiError } from "../../../../../error-B-44r5TD.mjs";
|
|
6
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-BscLr3p2.mjs";
|
|
7
|
+
import "../../../../../redirects-DpRiuRWn.mjs";
|
|
8
|
+
import { w as signupRequestBody } from "../../../../../byline-fields-DGNKitg3.mjs";
|
|
9
|
+
import "../../../../../status-DBSB6tdS.mjs";
|
|
10
10
|
import "../../../../../api/schemas/index.mjs";
|
|
11
|
-
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-
|
|
12
|
-
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-
|
|
13
|
-
import { t as getSiteBaseUrl } from "../../../../../site-url-
|
|
11
|
+
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-CvDP0g0F.mjs";
|
|
12
|
+
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-RaBJEgyt.mjs";
|
|
13
|
+
import { t as getSiteBaseUrl } from "../../../../../site-url-DoTPKRND.mjs";
|
|
14
14
|
import { requestSignup } from "@dineway-ai/auth";
|
|
15
15
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
16
16
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
1
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-B-44r5TD.mjs";
|
|
2
2
|
import { SignupError, roleFromLevel, validateSignupToken } from "@dineway-ai/auth";
|
|
3
3
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
4
4
|
|
|
@@ -1,5 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Hs as Comment, a as CommentAfterModerateEvent, j as ModerationDecision, l as CommentModerateEvent, n as CollectionCommentSettings, r as CommentAfterCreateEvent, s as CommentBeforeCreateEvent } from "../../../../../../types-Tt_IGMno.mjs";
|
|
2
|
+
import { t as Database } from "../../../../../../types-CVRNRAA5.mjs";
|
|
3
|
+
import "../../../../../../runner-Cxl-vyk2.mjs";
|
|
4
|
+
import { AtomicBatch } from "../../../../../../database/batch.mjs";
|
|
5
|
+
import "../../../../../../index-mlJSqFkG.mjs";
|
|
6
|
+
import "../../../../../../types-SddyDti7.mjs";
|
|
7
|
+
import "../../../../../../public-url-zoO-QbN6.mjs";
|
|
8
|
+
import "../../../../../../validate-CCOsvPg2.mjs";
|
|
9
|
+
import "../../../../../../byline-fields-BO96fXLv.mjs";
|
|
10
|
+
import "../../../../../../types-CAD4OvmF.mjs";
|
|
11
|
+
import { Kysely } from "kysely";
|
|
12
|
+
import { APIContext, APIRoute } from "astro";
|
|
2
13
|
|
|
14
|
+
//#region src/comments/service.d.ts
|
|
15
|
+
interface CommentCreateInput {
|
|
16
|
+
collection: string;
|
|
17
|
+
contentId: string;
|
|
18
|
+
parentId?: string | null;
|
|
19
|
+
authorName: string;
|
|
20
|
+
authorEmail: string;
|
|
21
|
+
authorUserId?: string | null;
|
|
22
|
+
body: string;
|
|
23
|
+
ipHash?: string | null;
|
|
24
|
+
userAgent?: string | null;
|
|
25
|
+
}
|
|
26
|
+
interface CommentCreateResult {
|
|
27
|
+
comment: Comment;
|
|
28
|
+
decision: ModerationDecision;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Hook runner interface — injected from the runtime so the service
|
|
32
|
+
* doesn't need to know about the hook pipeline internals.
|
|
33
|
+
*/
|
|
34
|
+
interface CommentHookRunner {
|
|
35
|
+
/** Run comment:beforeCreate pipeline. Returns modified event or false. */
|
|
36
|
+
runBeforeCreate(event: CommentBeforeCreateEvent): Promise<CommentBeforeCreateEvent | false>;
|
|
37
|
+
/** Run comment:moderate exclusive hook. Returns moderation decision. */
|
|
38
|
+
runModerate(event: CommentModerateEvent): Promise<ModerationDecision>;
|
|
39
|
+
/** Run comment:afterCreate after the comment's batch has committed. */
|
|
40
|
+
fireAfterCreate(event: CommentAfterCreateEvent): void | Promise<void>;
|
|
41
|
+
/** Fire comment:afterModerate (fire-and-forget). */
|
|
42
|
+
fireAfterModerate(event: CommentAfterModerateEvent): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create a comment through the full hook pipeline.
|
|
46
|
+
*
|
|
47
|
+
* Returns null if the comment was rejected by a beforeCreate handler.
|
|
48
|
+
*/
|
|
49
|
+
declare function prepareComment(db: Kysely<Database>, input: CommentCreateInput, collectionSettings: CollectionCommentSettings, hooks: CommentHookRunner, contentInfo?: {
|
|
50
|
+
id: string;
|
|
51
|
+
collection: string;
|
|
52
|
+
slug: string;
|
|
53
|
+
title?: string;
|
|
54
|
+
author?: {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string | null;
|
|
57
|
+
email: string;
|
|
58
|
+
};
|
|
59
|
+
}): Promise<(CommentCreateResult & {
|
|
60
|
+
batch: AtomicBatch;
|
|
61
|
+
afterCommit: () => Promise<void>;
|
|
62
|
+
}) | null>;
|
|
63
|
+
//#endregion
|
|
3
64
|
//#region src/astro/routes/api/comments/[collection]/[contentId]/index.d.ts
|
|
4
65
|
declare const prerender = false;
|
|
5
66
|
/**
|
|
@@ -9,6 +70,16 @@ declare const GET: APIRoute;
|
|
|
9
70
|
/**
|
|
10
71
|
* Submit a comment (public, gated by anti-spam checks)
|
|
11
72
|
*/
|
|
73
|
+
interface PreparedCommentRequest {
|
|
74
|
+
comment: NonNullable<Awaited<ReturnType<typeof prepareComment>>>["comment"];
|
|
75
|
+
batch: AtomicBatch;
|
|
76
|
+
afterCommit: () => Promise<Response>;
|
|
77
|
+
}
|
|
78
|
+
declare function prepareCommentRequest({
|
|
79
|
+
params,
|
|
80
|
+
request,
|
|
81
|
+
locals
|
|
82
|
+
}: APIContext): Promise<Response | PreparedCommentRequest>;
|
|
12
83
|
declare const POST: APIRoute;
|
|
13
84
|
//#endregion
|
|
14
|
-
export { GET, POST, prerender };
|
|
85
|
+
export { GET, POST, PreparedCommentRequest, prepareCommentRequest, prerender };
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
+
import "../../../../../../d1-binding-D6HZa3ks.mjs";
|
|
2
|
+
import { atomicBatch, rowUnchanged } from "../../../../../../database/batch.mjs";
|
|
1
3
|
import { t as validateIdentifier } from "../../../../../../validate-Co3j6T_K.mjs";
|
|
4
|
+
import { r as currentIsoTimestampValue } from "../../../../../../dialect-helpers-C6xtO-Ui.mjs";
|
|
2
5
|
import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
3
6
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
4
7
|
import "../../../../../../after-BVaUn7bK.mjs";
|
|
5
8
|
import "../../../../../../object-cache-BGjIlY9s.mjs";
|
|
6
|
-
import
|
|
9
|
+
import "../../../../../../comment-kgLTdtQD.mjs";
|
|
7
10
|
import "../../../../../../options-BcqHWpc-.mjs";
|
|
8
|
-
import "../../../../../../context-types-
|
|
9
|
-
import "../../../../../../runtime-env-
|
|
10
|
-
import { a as resolveSecretsCached } from "../../../../../../secrets-
|
|
11
|
-
import "../../../../../../public-discovery-
|
|
12
|
-
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
13
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse
|
|
14
|
-
import { _t as createCommentBody } from "../../../../../../redirects-
|
|
15
|
-
import "../../../../../../byline-fields-
|
|
16
|
-
import "../../../../../../status-
|
|
11
|
+
import "../../../../../../context-types-DLD_HnKT.mjs";
|
|
12
|
+
import "../../../../../../runtime-env-v-1UXPAH.mjs";
|
|
13
|
+
import { a as resolveSecretsCached } from "../../../../../../secrets-BP2YTPWn.mjs";
|
|
14
|
+
import "../../../../../../public-discovery-CTql6jdZ.mjs";
|
|
15
|
+
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
16
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-BscLr3p2.mjs";
|
|
17
|
+
import { _t as createCommentBody } from "../../../../../../redirects-DpRiuRWn.mjs";
|
|
18
|
+
import "../../../../../../byline-fields-DGNKitg3.mjs";
|
|
19
|
+
import "../../../../../../status-DBSB6tdS.mjs";
|
|
17
20
|
import "../../../../../../api/schemas/index.mjs";
|
|
18
|
-
import "../../../../../../trusted-proxy-
|
|
19
|
-
import { t as extractRequestMeta } from "../../../../../../request-meta-
|
|
20
|
-
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-
|
|
21
|
-
import { t as getSiteBaseUrl } from "../../../../../../site-url-
|
|
22
|
-
import { i as sendCommentNotification,
|
|
21
|
+
import "../../../../../../trusted-proxy-CvDP0g0F.mjs";
|
|
22
|
+
import { t as extractRequestMeta } from "../../../../../../request-meta-C6yGqnGD.mjs";
|
|
23
|
+
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-ZYK_cZvx.mjs";
|
|
24
|
+
import { t as getSiteBaseUrl } from "../../../../../../site-url-DoTPKRND.mjs";
|
|
25
|
+
import { i as sendCommentNotification, n as prepareComment } from "../../../../../../service-DOFqfUVv.mjs";
|
|
26
|
+
import { sql } from "kysely";
|
|
23
27
|
|
|
24
28
|
//#region src/astro/routes/api/comments/[collection]/[contentId]/index.ts
|
|
25
29
|
const prerender = false;
|
|
@@ -48,10 +52,7 @@ const GET = async ({ params, url, locals }) => {
|
|
|
48
52
|
return handleError(error, "Failed to list comments", "COMMENT_LIST_ERROR");
|
|
49
53
|
}
|
|
50
54
|
};
|
|
51
|
-
|
|
52
|
-
* Submit a comment (public, gated by anti-spam checks)
|
|
53
|
-
*/
|
|
54
|
-
const POST = async ({ params, request, locals }) => {
|
|
55
|
+
async function prepareCommentRequest({ params, request, locals }) {
|
|
55
56
|
const { dineway, user } = locals;
|
|
56
57
|
const { collection, contentId } = params;
|
|
57
58
|
if (!collection || !contentId) return apiError("VALIDATION_ERROR", "Collection and content ID required", 400);
|
|
@@ -76,11 +77,20 @@ const POST = async ({ params, request, locals }) => {
|
|
|
76
77
|
"published_at"
|
|
77
78
|
]).where("id", "=", contentId).where("status", "=", "published").where("deleted_at", "is", null).executeTakeFirst();
|
|
78
79
|
if (!contentRow) return apiError("NOT_FOUND", "Content not found", 404);
|
|
80
|
+
const checks = [rowUnchanged("_dineway_collections", {
|
|
81
|
+
slug: collection,
|
|
82
|
+
...collectionRow
|
|
83
|
+
}), rowUnchanged(`ec_${collection}`, {
|
|
84
|
+
...contentRow,
|
|
85
|
+
status: "published",
|
|
86
|
+
deleted_at: null
|
|
87
|
+
})];
|
|
79
88
|
if (collectionRow.comments_closed_after_days > 0) {
|
|
80
89
|
const publishedAt = contentRow.published_at;
|
|
81
90
|
if (publishedAt) {
|
|
82
91
|
const closedDate = new Date(publishedAt);
|
|
83
92
|
closedDate.setDate(closedDate.getDate() + collectionRow.comments_closed_after_days);
|
|
93
|
+
checks.push(sql`${currentIsoTimestampValue(dineway.db)} <= ${closedDate.toISOString()}`);
|
|
84
94
|
if (/* @__PURE__ */ new Date() > closedDate) return apiError("COMMENTS_CLOSED", "Comments are closed for this content", 403);
|
|
85
95
|
}
|
|
86
96
|
}
|
|
@@ -95,6 +105,8 @@ const POST = async ({ params, request, locals }) => {
|
|
|
95
105
|
else ipHash = "unknown";
|
|
96
106
|
const unknownBucketLimit = ipHash === "unknown" ? 20 : void 0;
|
|
97
107
|
if (await checkRateLimit(dineway.db, ipHash, unknownBucketLimit)) return apiError("RATE_LIMITED", "Too many comments. Please try again later.", 429);
|
|
108
|
+
checks.push(sql`(SELECT COUNT(*) FROM _dineway_comments WHERE ip_hash = ${ipHash}
|
|
109
|
+
AND created_at > ${(/* @__PURE__ */ new Date(Date.now() - 6e5)).toISOString()}) < ${unknownBucketLimit ?? 5}`);
|
|
98
110
|
const collectionSettings = {
|
|
99
111
|
commentsEnabled: collectionRow.comments_enabled === 1,
|
|
100
112
|
commentsModeration: collectionRow.comments_moderation,
|
|
@@ -111,10 +123,11 @@ const POST = async ({ params, request, locals }) => {
|
|
|
111
123
|
}
|
|
112
124
|
let resolvedParentId = body.parentId ?? null;
|
|
113
125
|
if (body.parentId) {
|
|
114
|
-
const parent = await
|
|
126
|
+
const parent = await dineway.db.selectFrom("_dineway_comments").selectAll().where("id", "=", body.parentId).executeTakeFirst();
|
|
115
127
|
if (!parent) return apiError("VALIDATION_ERROR", "Parent comment not found", 400);
|
|
116
|
-
if (parent.collection !== collection || parent.
|
|
117
|
-
|
|
128
|
+
if (parent.collection !== collection || parent.content_id !== contentId) return apiError("VALIDATION_ERROR", "Parent comment belongs to different content", 400);
|
|
129
|
+
checks.push(rowUnchanged("_dineway_comments", parent));
|
|
130
|
+
resolvedParentId = parent.parent_id ?? parent.id;
|
|
118
131
|
}
|
|
119
132
|
const hookRunner = {
|
|
120
133
|
async runBeforeCreate(event) {
|
|
@@ -136,7 +149,7 @@ const POST = async ({ params, request, locals }) => {
|
|
|
136
149
|
return result.result;
|
|
137
150
|
},
|
|
138
151
|
fireAfterCreate(event) {
|
|
139
|
-
dineway.hooks.runCommentAfterCreate(event).catch((err) => console.error("[comments] afterCreate error:", err instanceof Error ? err.message : err));
|
|
152
|
+
return dineway.hooks.runCommentAfterCreate(event).catch((err) => console.error("[comments] afterCreate error:", err instanceof Error ? err.message : err));
|
|
140
153
|
},
|
|
141
154
|
fireAfterModerate(event) {
|
|
142
155
|
dineway.hooks.runCommentAfterModerate(event).catch((err) => console.error("[comments] afterModerate error:", err instanceof Error ? err.message : err));
|
|
@@ -151,13 +164,16 @@ const POST = async ({ params, request, locals }) => {
|
|
|
151
164
|
"email",
|
|
152
165
|
"email_verified"
|
|
153
166
|
]).where("id", "=", typedContent.author_id).executeTakeFirst();
|
|
154
|
-
if (authorRow && authorRow.email_verified)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
167
|
+
if (authorRow && authorRow.email_verified) {
|
|
168
|
+
checks.push(rowUnchanged("users", authorRow));
|
|
169
|
+
contentAuthor = {
|
|
170
|
+
id: authorRow.id,
|
|
171
|
+
name: authorRow.name,
|
|
172
|
+
email: authorRow.email
|
|
173
|
+
};
|
|
174
|
+
}
|
|
159
175
|
}
|
|
160
|
-
const result = await
|
|
176
|
+
const result = await prepareComment(dineway.db, {
|
|
161
177
|
collection,
|
|
162
178
|
contentId,
|
|
163
179
|
parentId: resolvedParentId,
|
|
@@ -174,26 +190,49 @@ const POST = async ({ params, request, locals }) => {
|
|
|
174
190
|
author: contentAuthor
|
|
175
191
|
});
|
|
176
192
|
if (!result) return apiError("COMMENT_REJECTED", "Comment was rejected", 403);
|
|
177
|
-
if (result.comment.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
if (result.comment.collection !== collection || result.comment.contentId !== contentId || result.comment.parentId !== resolvedParentId) return apiError("COMMENT_REJECTED", "Comment hooks cannot change its target", 403);
|
|
194
|
+
let completed;
|
|
195
|
+
const afterCommit = () => completed ??= (async () => {
|
|
196
|
+
await result.afterCommit();
|
|
197
|
+
if (result.comment.status === "approved" && dineway.email && contentAuthor) try {
|
|
198
|
+
const adminBaseUrl = await getSiteBaseUrl(dineway.db, request);
|
|
199
|
+
await sendCommentNotification({
|
|
200
|
+
email: dineway.email,
|
|
201
|
+
comment: result.comment,
|
|
202
|
+
contentAuthor,
|
|
203
|
+
adminBaseUrl
|
|
204
|
+
});
|
|
205
|
+
} catch (err) {
|
|
206
|
+
console.error("[comments] notification error:", err instanceof Error ? err.message : err);
|
|
207
|
+
}
|
|
208
|
+
return apiSuccess({
|
|
209
|
+
id: result.comment.id,
|
|
210
|
+
status: result.comment.status,
|
|
211
|
+
message: result.comment.status === "approved" ? "Comment published" : "Comment submitted for review"
|
|
212
|
+
}, 201);
|
|
213
|
+
})();
|
|
214
|
+
return {
|
|
215
|
+
comment: result.comment,
|
|
216
|
+
batch: {
|
|
217
|
+
checks: [...checks, ...result.batch.checks ?? []],
|
|
218
|
+
statements: result.batch.statements
|
|
219
|
+
},
|
|
220
|
+
afterCommit
|
|
221
|
+
};
|
|
222
|
+
} catch (error) {
|
|
223
|
+
return handleError(error, "Failed to submit comment", "COMMENT_CREATE_ERROR");
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const POST = async (context) => {
|
|
227
|
+
const prepared = await prepareCommentRequest(context);
|
|
228
|
+
if (prepared instanceof Response) return prepared;
|
|
229
|
+
try {
|
|
230
|
+
await atomicBatch(context.locals.dineway.db, prepared.batch);
|
|
231
|
+
return await prepared.afterCommit();
|
|
193
232
|
} catch (error) {
|
|
194
233
|
return handleError(error, "Failed to submit comment", "COMMENT_CREATE_ERROR");
|
|
195
234
|
}
|
|
196
235
|
};
|
|
197
236
|
|
|
198
237
|
//#endregion
|
|
199
|
-
export { GET, POST, prerender };
|
|
238
|
+
export { GET, POST, prepareCommentRequest, prerender };
|
|
@@ -2,22 +2,22 @@ import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
|
2
2
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
3
3
|
import "../../../../../../after-BVaUn7bK.mjs";
|
|
4
4
|
import { s as invalidateCommentObjectCache } from "../../../../../../object-cache-BGjIlY9s.mjs";
|
|
5
|
-
import "../../../../../../comment-
|
|
5
|
+
import "../../../../../../comment-kgLTdtQD.mjs";
|
|
6
6
|
import "../../../../../../options-BcqHWpc-.mjs";
|
|
7
|
-
import "../../../../../../context-types-
|
|
8
|
-
import "../../../../../../runtime-env-
|
|
9
|
-
import { a as resolveSecretsCached } from "../../../../../../secrets-
|
|
10
|
-
import "../../../../../../public-discovery-
|
|
11
|
-
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
12
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse
|
|
13
|
-
import { vt as createReactionBody } from "../../../../../../redirects-
|
|
14
|
-
import "../../../../../../byline-fields-
|
|
15
|
-
import "../../../../../../status-
|
|
7
|
+
import "../../../../../../context-types-DLD_HnKT.mjs";
|
|
8
|
+
import "../../../../../../runtime-env-v-1UXPAH.mjs";
|
|
9
|
+
import { a as resolveSecretsCached } from "../../../../../../secrets-BP2YTPWn.mjs";
|
|
10
|
+
import "../../../../../../public-discovery-CTql6jdZ.mjs";
|
|
11
|
+
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
12
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-BscLr3p2.mjs";
|
|
13
|
+
import { vt as createReactionBody } from "../../../../../../redirects-DpRiuRWn.mjs";
|
|
14
|
+
import "../../../../../../byline-fields-DGNKitg3.mjs";
|
|
15
|
+
import "../../../../../../status-DBSB6tdS.mjs";
|
|
16
16
|
import "../../../../../../api/schemas/index.mjs";
|
|
17
|
-
import "../../../../../../trusted-proxy-
|
|
18
|
-
import { t as extractRequestMeta } from "../../../../../../request-meta-
|
|
19
|
-
import { t as CommentReactionRepository } from "../../../../../../comment-reaction-
|
|
20
|
-
import { c as hashIp } from "../../../../../../comments-
|
|
17
|
+
import "../../../../../../trusted-proxy-CvDP0g0F.mjs";
|
|
18
|
+
import { t as extractRequestMeta } from "../../../../../../request-meta-C6yGqnGD.mjs";
|
|
19
|
+
import { t as CommentReactionRepository } from "../../../../../../comment-reaction-Cun5eIXL.mjs";
|
|
20
|
+
import { c as hashIp } from "../../../../../../comments-ZYK_cZvx.mjs";
|
|
21
21
|
|
|
22
22
|
//#region src/api/handlers/comment-reactions.ts
|
|
23
23
|
const REACTION_RATE_LIMIT = 30;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as unwrapResult, t as apiError } from "../../../../../../error-
|
|
2
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
1
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
2
|
+
import { n as requirePerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/content/[collection]/[id]/compare.ts
|
|
5
5
|
const prerender = false;
|
|
@@ -2,10 +2,10 @@ import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
|
2
2
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
3
3
|
import "../../../../../../actor-DxUAJgQX.mjs";
|
|
4
4
|
import "../../../../../../site-activity-BrN2NviL.mjs";
|
|
5
|
-
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-
|
|
6
|
-
import "../../../../../../activity-
|
|
7
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
8
|
-
import { t as requireOwnerPerm } from "../../../../../../authorize-
|
|
5
|
+
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
6
|
+
import "../../../../../../activity-BbtYp_4V.mjs";
|
|
7
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-CiFN61xq.mjs";
|
|
8
|
+
import { t as requireOwnerPerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/content/[collection]/[id]/discard-draft.ts
|
|
11
11
|
const prerender = false;
|
|
@@ -2,10 +2,10 @@ import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
|
2
2
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
3
3
|
import "../../../../../../actor-DxUAJgQX.mjs";
|
|
4
4
|
import "../../../../../../site-activity-BrN2NviL.mjs";
|
|
5
|
-
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-
|
|
6
|
-
import "../../../../../../activity-
|
|
7
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
8
|
-
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../../authorize-
|
|
5
|
+
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
6
|
+
import "../../../../../../activity-BbtYp_4V.mjs";
|
|
7
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-CiFN61xq.mjs";
|
|
8
|
+
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/content/[collection]/[id]/duplicate.ts
|
|
11
11
|
const prerender = false;
|
|
@@ -2,10 +2,10 @@ import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
|
2
2
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
3
3
|
import "../../../../../../actor-DxUAJgQX.mjs";
|
|
4
4
|
import "../../../../../../site-activity-BrN2NviL.mjs";
|
|
5
|
-
import { a as unwrapResult, t as apiError } from "../../../../../../error-
|
|
6
|
-
import "../../../../../../activity-
|
|
7
|
-
import { n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
8
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
5
|
+
import { a as unwrapResult, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
6
|
+
import "../../../../../../activity-BbtYp_4V.mjs";
|
|
7
|
+
import { n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-CiFN61xq.mjs";
|
|
8
|
+
import { n as requirePerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/astro/routes/api/content/[collection]/[id]/permanent.ts
|
|
11
11
|
const prerender = false;
|
|
@@ -7,23 +7,23 @@ import "../../../../../../types-BqxIv8Il.mjs";
|
|
|
7
7
|
import "../../../../../../after-BVaUn7bK.mjs";
|
|
8
8
|
import { t as RevisionRepository } from "../../../../../../revision-090sZyGc.mjs";
|
|
9
9
|
import "../../../../../../options-BcqHWpc-.mjs";
|
|
10
|
-
import "../../../../../../context-types-
|
|
11
|
-
import "../../../../../../runtime-env-
|
|
12
|
-
import { a as resolveSecretsCached } from "../../../../../../secrets-
|
|
13
|
-
import "../../../../../../content-refresh-
|
|
14
|
-
import "../../../../../../fts-manager-
|
|
15
|
-
import "../../../../../../public-discovery-
|
|
16
|
-
import { n as SchemaRegistry } from "../../../../../../registry-
|
|
17
|
-
import { t as resolveContentUrl } from "../../../../../../public-url-
|
|
18
|
-
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
19
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse
|
|
20
|
-
import { in as contentPreviewUrlBody } from "../../../../../../redirects-
|
|
21
|
-
import "../../../../../../byline-fields-
|
|
22
|
-
import "../../../../../../status-
|
|
10
|
+
import "../../../../../../context-types-DLD_HnKT.mjs";
|
|
11
|
+
import "../../../../../../runtime-env-v-1UXPAH.mjs";
|
|
12
|
+
import { a as resolveSecretsCached } from "../../../../../../secrets-BP2YTPWn.mjs";
|
|
13
|
+
import "../../../../../../content-refresh-9M9cc55-.mjs";
|
|
14
|
+
import "../../../../../../fts-manager-DA74x_uP.mjs";
|
|
15
|
+
import "../../../../../../public-discovery-CTql6jdZ.mjs";
|
|
16
|
+
import { n as SchemaRegistry } from "../../../../../../registry-DcV93OL_.mjs";
|
|
17
|
+
import { t as resolveContentUrl } from "../../../../../../public-url-DNt9A1yS.mjs";
|
|
18
|
+
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
19
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-BscLr3p2.mjs";
|
|
20
|
+
import { in as contentPreviewUrlBody } from "../../../../../../redirects-DpRiuRWn.mjs";
|
|
21
|
+
import "../../../../../../byline-fields-DGNKitg3.mjs";
|
|
22
|
+
import "../../../../../../status-DBSB6tdS.mjs";
|
|
23
23
|
import "../../../../../../api/schemas/index.mjs";
|
|
24
|
-
import { i as getPreviewUrl, r as buildPreviewUrl } from "../../../../../../preview-
|
|
25
|
-
import { t as generatePreviewToken } from "../../../../../../tokens-
|
|
26
|
-
import { n as requirePerm } from "../../../../../../authorize-
|
|
24
|
+
import { i as getPreviewUrl, r as buildPreviewUrl } from "../../../../../../preview-E1xKZGsX.mjs";
|
|
25
|
+
import { t as generatePreviewToken } from "../../../../../../tokens-I3tSjoFI.mjs";
|
|
26
|
+
import { n as requirePerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
27
27
|
|
|
28
28
|
//#region src/astro/routes/api/content/[collection]/[id]/preview-url.ts
|
|
29
29
|
const prerender = false;
|