dineway 0.1.25 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/{activity-events-CjOgr0Uv.mjs → activity-events-CpcTzKpF.mjs} +1 -1
- package/dist/{allowed-origins-3nAx5Xeo.mjs → allowed-origins-3RuuoFjC.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +8 -8
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-BRxIrKsY.mjs → api-CXQfCGRX.mjs} +14 -14
- package/dist/{api-tokens-DAMwe5Kj.mjs → api-tokens-BFg7tiOQ.mjs} +1 -1
- package/dist/api-tokens-L0o9Bd7v.mjs +3 -0
- package/dist/{apply-D7vu4aFn.mjs → apply-TIoQ00aH.mjs} +14 -14
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +15 -3
- package/dist/astro/middleware/auth.d.mts +10 -10
- package/dist/astro/middleware/auth.mjs +7 -5
- package/dist/astro/middleware/redirect.mjs +3 -3
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +29 -0
- package/dist/astro/middleware/seed.mjs +134 -0
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +63 -62
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +14 -14
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +7 -7
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +24 -24
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +24 -24
- package/dist/astro/routes/api/admin/context/diff.mjs +23 -23
- package/dist/astro/routes/api/admin/context/index.mjs +24 -24
- package/dist/astro/routes/api/admin/context/stale.mjs +23 -23
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +23 -23
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +23 -23
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +21 -21
- 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 +39 -39
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +32 -32
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/index.mjs +32 -32
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +32 -32
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +32 -32
- package/dist/astro/routes/api/admin/plugins/updates.mjs +32 -32
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +23 -23
- package/dist/astro/routes/api/admin/review-requests/index.mjs +8 -8
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +32 -32
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +32 -32
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- 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 +9 -9
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +8 -8
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +10 -6
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +8 -8
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/setup-token/index.d.mts +7 -0
- package/dist/astro/routes/api/auth/setup-token/index.mjs +62 -0
- package/dist/astro/routes/api/auth/setup-token/verify.d.mts +8 -0
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +112 -0
- package/dist/astro/routes/api/auth/signup/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +10 -10
- 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 +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +22 -22
- 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 +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +10 -10
- 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 +8 -8
- package/dist/astro/routes/api/content/_collection_/index.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +4 -4
- 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 +10 -10
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +6 -6
- package/dist/astro/routes/api/import/wordpress/execute.mjs +25 -25
- package/dist/astro/routes/api/import/wordpress/media.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +28 -28
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +25 -25
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +27 -27
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +45 -45
- package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- 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 +8 -8
- package/dist/astro/routes/api/media.mjs +10 -10
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_/items.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_/translations.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_.mjs +24 -24
- package/dist/astro/routes/api/menus/index.mjs +24 -24
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +3 -3
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +8 -8
- package/dist/astro/routes/api/redirects/404s/summary.mjs +8 -8
- package/dist/astro/routes/api/redirects/_id_.mjs +25 -25
- package/dist/astro/routes/api/redirects/index.mjs +25 -25
- 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 +33 -33
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +33 -33
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +33 -33
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +33 -33
- package/dist/astro/routes/api/schema/collections/index.mjs +33 -33
- package/dist/astro/routes/api/schema/index.mjs +6 -6
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +32 -32
- package/dist/astro/routes/api/schema/orphans/index.mjs +32 -32
- package/dist/astro/routes/api/search/enable.mjs +9 -9
- package/dist/astro/routes/api/search/index.mjs +8 -8
- package/dist/astro/routes/api/search/rebuild.mjs +9 -9
- package/dist/astro/routes/api/search/stats.mjs +5 -5
- package/dist/astro/routes/api/search/suggest.mjs +8 -8
- package/dist/astro/routes/api/sections/_slug_.mjs +24 -24
- package/dist/astro/routes/api/sections/index.mjs +24 -24
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings.mjs +24 -24
- package/dist/astro/routes/api/setup/admin-verify.mjs +11 -11
- package/dist/astro/routes/api/setup/admin.mjs +9 -9
- package/dist/astro/routes/api/setup/dev-bypass.mjs +18 -18
- 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 +5 -5
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +26 -26
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +26 -26
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +26 -26
- package/dist/astro/routes/api/taxonomies/index.mjs +26 -26
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +24 -24
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +24 -24
- package/dist/astro/routes/api/widget-areas/_name_.mjs +22 -22
- package/dist/astro/routes/api/widget-areas/index.mjs +24 -24
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +4 -4
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +4 -4
- package/dist/astro/routes/sitemap.xml.mjs +5 -5
- package/dist/astro/types.d.mts +13 -13
- package/dist/audit-NgiRzqP9.mjs +126 -0
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-_5V1x8U8.mjs → auth-control-guard-1FHtkDP6.mjs} +1 -1
- package/dist/{authorize-BgIG3yfN.mjs → authorize-BbIhZi3a.mjs} +1 -1
- package/dist/{briefing-PFT3T6KW.mjs → briefing-DD82WaEy.mjs} +1 -1
- package/dist/{briefing-Dk4I4VC8.mjs → briefing-Jsxs587i.mjs} +6 -6
- package/dist/{byline-9WeA8b0a.mjs → byline-DpNNSjET.mjs} +2 -2
- package/dist/{bylines-CaPwztlL.mjs → bylines-75_STR73.mjs} +3 -3
- package/dist/{bylines-DXqaE0d1.d.mts → bylines-D9TSSOe0.d.mts} +29 -29
- package/dist/{cache-BhJYDPP8.mjs → cache-DQyZ-QaB.mjs} +1 -1
- package/dist/cli/index.mjs +38 -21
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/{context-CnrsB3lh.mjs → context-DgqEfcWz.mjs} +2 -2
- package/dist/{context-DRq-f4sM.mjs → context-Ufrm1lOv.mjs} +4 -4
- package/dist/{context-route-helpers-CdFWd8GK.mjs → context-route-helpers-Dq5U_AXp.mjs} +1 -1
- package/dist/{dashboard-DdqRifyu.mjs → dashboard-BC9bgPOH.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-AsTA1k4t.mjs → device-flow-CTS91g4A.mjs} +5 -5
- package/dist/{hitl-requests-DcTPiuog.mjs → hitl-requests-DaRuZ7tb.mjs} +2 -2
- package/dist/{hitl-route-helpers-CNqNbune.mjs → hitl-route-helpers-DcPySbZ3.mjs} +4 -4
- package/dist/{import-BO_gy5vZ.mjs → import-DQ4Rfh5h.mjs} +2 -2
- package/dist/{import-CzZYGhnG.mjs → import-DSXK3aQF.mjs} +3 -3
- package/dist/{index-CxVXYBXq.d.mts → index-2tBfB_8X.d.mts} +3 -3
- package/dist/{index-DUurmpun.d.mts → index-CpbixmRL.d.mts} +2 -2
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +56 -55
- package/dist/{jsonld-C3uKF39u.d.mts → jsonld-BhdZoeR1.d.mts} +2 -2
- package/dist/media/index.d.mts +2 -2
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +12 -12
- package/dist/{media-allowlist-D85gK3We.mjs → media-allowlist-D8gsm8_t.mjs} +1 -1
- package/dist/{menus-DXaFTRyU.mjs → menus-DOaL6NaF.mjs} +1 -1
- package/dist/{menus-DtoRO2gt.mjs → menus-DzG3-9tQ.mjs} +4 -4
- package/dist/{oauth-authorization-CRwAJzzA.mjs → oauth-authorization-DyOFXQWq.mjs} +5 -5
- package/dist/{oauth-clients-BlHrNh_u.mjs → oauth-clients-BMs_bmoz.mjs} +2 -2
- package/dist/page/index.d.mts +2 -2
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-BBfZRZYb.mjs → parse-D7Tu6ku4.mjs} +1 -1
- package/dist/{placeholder-2N6m2_O6.d.mts → placeholder-BZpCpid_.d.mts} +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +10 -10
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-CxUx-b5a.mjs → plugins-DCDVDF4B.mjs} +3 -4
- package/dist/{preview-B-MTC5mp.mjs → preview-5HuX6fjF.mjs} +2 -2
- package/dist/{provider-loader-DJ5sLxNP.d.mts → provider-loader-BaZhx7E3.d.mts} +1 -1
- package/dist/{query-CH1GaJmt.mjs → query-BnRpB09I.mjs} +3 -3
- package/dist/{query-D5CIGQv4.mjs → query-DHvNhBhi.mjs} +8 -8
- package/dist/{rate-limit-5ZeKz7oo.mjs → rate-limit-BWP_kKiZ.mjs} +2 -2
- package/dist/{redirect-hKO66LS_.mjs → redirect-BaVvo2te.mjs} +1 -1
- package/dist/{redirects-Dk7N_YeP.mjs → redirects-Ba-lJA5j.mjs} +3 -3
- package/dist/{redirects-BO0fI750.mjs → redirects-CoYlqu8e.mjs} +1 -1
- package/dist/{registry-CYO6XQ-4.mjs → registry-i__XP2WV.mjs} +4 -4
- package/dist/{request-meta-BVx9KkL-.mjs → request-meta-DUGfAeXy.mjs} +1 -1
- package/dist/{review-requests-CO-vO0O0.mjs → review-requests-DuIxM4YM.mjs} +1 -1
- package/dist/{runner-BJm_NJr2.d.mts → runner-pAnQS6iI.d.mts} +1 -1
- package/dist/{runtime-fyApolZR.d.mts → runtime-BM9sqnzO.d.mts} +11 -11
- package/dist/runtime.d.mts +11 -11
- package/dist/runtime.mjs +2 -2
- package/dist/{schema-mjeMcn_6.mjs → schema-U-SeFWwn.mjs} +1 -1
- package/dist/{search-DjaP_Dw-.mjs → search-Cl9preJT.mjs} +2 -2
- package/dist/{sections-DA3GMhNG.mjs → sections-Zx-2q9IH.mjs} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +13 -13
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-DASNc4gD.mjs → seo-BPb_reaG.mjs} +1 -1
- package/dist/{service-Dada1k5R.mjs → service-wPGgmbUa.mjs} +1 -1
- package/dist/{settings-D2k1JraC.mjs → settings-DORe02PC.mjs} +2 -2
- package/dist/{settings-BJW_lmrM.mjs → settings-nr15a8uv.mjs} +1 -1
- package/dist/{site-context-Dr_5pFHr.mjs → site-context-DuBQk6Mp.mjs} +12 -12
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{taxonomies-DVXCWoUF.mjs → taxonomies-BVBKoXRf.mjs} +5 -5
- package/dist/{taxonomies-CZJazF0N.mjs → taxonomies-DGaw_-aU.mjs} +2 -2
- package/dist/{taxonomy-DpXdVSSR.mjs → taxonomy-BvXRL85P.mjs} +1 -1
- package/dist/{types-DzBAohLy.d.mts → types-BIM7jwxr.d.mts} +1 -1
- package/dist/ui/server-runtime.d.mts +7 -7
- package/dist/ui/server-runtime.mjs +13 -13
- package/dist/{validate-BikB29gc.d.mts → validate-BzUCAU2a.d.mts} +3 -3
- package/dist/{validate-BGpmNtMe.mjs → validate-JE-WfUQ5.mjs} +1 -1
- package/dist/version-C-Dcb5bX.mjs +6 -0
- package/dist/{widgets-BFh1UZN5.mjs → widgets-Cj6ULpED.mjs} +2 -2
- package/dist/{wordpress-slugs-BzMv9U-N.mjs → wordpress-slugs-hqItqJrQ.mjs} +1 -1
- package/dist/{zod-generator-vOxhed6n.mjs → zod-generator-C4BgFBZV.mjs} +1 -1
- package/package.json +8 -4
- package/dist/api-tokens-BZ9aAeCo.mjs +0 -3
- package/dist/version-pVYv71Mu.mjs +0 -6
- /package/dist/{adapters-C0EARyCK.d.mts → adapters-kZjS7plb.d.mts} +0 -0
- /package/dist/{challenge-store-B9odzfeh.mjs → challenge-store-cJam-E5R.mjs} +0 -0
- /package/dist/{chunks-BjOMG4LF.mjs → chunks-D8KL0nCY.mjs} +0 -0
- /package/dist/{comments-85tbgZQN.mjs → comments-yTbeIYc2.mjs} +0 -0
- /package/dist/{components-DAy-UvX7.mjs → components-BJfa-F6n.mjs} +0 -0
- /package/dist/{context-types-BWspNMDr.mjs → context-types-BrSQNye5.mjs} +0 -0
- /package/dist/{cron-fV9baRVc.mjs → cron-D7FDsRu-.mjs} +0 -0
- /package/dist/{db-errors-BnUbfGsK.mjs → db-errors-DHJCB_gY.mjs} +0 -0
- /package/dist/{default-CiZ8bvSC.mjs → default-5A3XVR7L.mjs} +0 -0
- /package/dist/{email-console-_pTim1bU.mjs → email-console-Bs1qKx59.mjs} +0 -0
- /package/dist/{entity-aliases-PJV8IxDq.mjs → entity-aliases-uOrKvlPg.mjs} +0 -0
- /package/dist/{error-Dyf9fGZE.mjs → error-DLkgOP5m.mjs} +0 -0
- /package/dist/{escape-DA8zlB7z.mjs → escape-r8_GbEU2.mjs} +0 -0
- /package/dist/{experimental-workflows-C7o_9V7S.mjs → experimental-workflows-BbZbIEZp.mjs} +0 -0
- /package/dist/{fts-manager-DYRy6HVi.mjs → fts-manager-DnfOsF4s.mjs} +0 -0
- /package/dist/{hash-DHSsP6_G.mjs → hash-DFFrkivP.mjs} +0 -0
- /package/dist/{load-5R4qZ4zn.mjs → load-BCCcmoW9.mjs} +0 -0
- /package/dist/{loader-dt5DoyI1.mjs → loader-p2imNN98.mjs} +0 -0
- /package/dist/{manifest-schema-CU0XL_ZK.mjs → manifest-schema-C6fzQoWn.mjs} +0 -0
- /package/dist/{mime-DltzYYAL.mjs → mime-DYP4V5Ks.mjs} +0 -0
- /package/dist/{mode-BI1kRvlT.mjs → mode-Bd55iLcP.mjs} +0 -0
- /package/dist/{normalize-ba36HTxZ.mjs → normalize-BY_EJnd9.mjs} +0 -0
- /package/dist/{oauth-state-store-DZs1UZwT.mjs → oauth-state-store-BRSUEkmx.mjs} +0 -0
- /package/dist/{oauth-user-lookup-B7-6YI3R.mjs → oauth-user-lookup-DdcI8ZVL.mjs} +0 -0
- /package/dist/{parser-wEX7xttr.mjs → parser-egIGEco-.mjs} +0 -0
- /package/dist/{passkey-config-CDew7KVU.mjs → passkey-config-AX4sjpQ4.mjs} +0 -0
- /package/dist/{patterns-BKmjvM7K.mjs → patterns-CiyXeDgr.mjs} +0 -0
- /package/dist/{placeholder-BAy3k441.mjs → placeholder-b0Ufu0La.mjs} +0 -0
- /package/dist/{provider-loader-CCPAVrIg.mjs → provider-loader-BdRV01gr.mjs} +0 -0
- /package/dist/{public-url-DuRGs0uF.mjs → public-url-BL2r8dmQ.mjs} +0 -0
- /package/dist/{redirect-CbEyClKc.mjs → redirect-Ce_6Yb6z.mjs} +0 -0
- /package/dist/{request-cache-BzuhyUXj.mjs → request-cache-BpwuE2ix.mjs} +0 -0
- /package/dist/{review-requests-BYuoyse0.mjs → review-requests-CTUU_RJm.mjs} +0 -0
- /package/dist/{secrets-BIrqds5c.mjs → secrets-DfeNNoLa.mjs} +0 -0
- /package/dist/{seo-Dl4QE4El.mjs → seo-CJBiMDkj.mjs} +0 -0
- /package/dist/{seo-contributions-D_CLIsxJ.mjs → seo-contributions-C0LXoWw3.mjs} +0 -0
- /package/dist/{setup-complete-BvSeN5Wh.mjs → setup-complete-C2ztsNhJ.mjs} +0 -0
- /package/dist/{setup-nonce-ChVabyO2.mjs → setup-nonce-BTKq7uBi.mjs} +0 -0
- /package/dist/{sidecar-client-Dta0AELf.mjs → sidecar-client-lrf7ErYJ.mjs} +0 -0
- /package/dist/{site-activity-lsCX_cqp.mjs → site-activity-KFZprBZM.mjs} +0 -0
- /package/dist/{site-url-BketXXft.mjs → site-url-C18yBhtv.mjs} +0 -0
- /package/dist/{ssrf-z3oH8wjK.mjs → ssrf-KAIQS48_.mjs} +0 -0
- /package/dist/{tokens-BMTKHT6X.mjs → tokens-CsP8Se8S.mjs} +0 -0
- /package/dist/{transaction-qfqpPVpu.mjs → transaction-D0FOsb3X.mjs} +0 -0
- /package/dist/{transport-Dt7A12-i.mjs → transport-B7kO-4ee.mjs} +0 -0
- /package/dist/{transport-BZCHo8n0.d.mts → transport-qeWznEPc.d.mts} +0 -0
- /package/dist/{trusted-proxy-8N8sX1D1.mjs → trusted-proxy-Bbm6PLR6.mjs} +0 -0
- /package/dist/{types-DwIXYH8s.d.mts → types-B1NksXAb.d.mts} +0 -0
- /package/dist/{types-DbtpYtHx.d.mts → types-BBETcziA.d.mts} +0 -0
- /package/dist/{types-B7Uld4FZ.d.mts → types-BYjPylrZ.d.mts} +0 -0
- /package/dist/{types-BSP1HbdT.d.mts → types-BgE6gMFI.d.mts} +0 -0
- /package/dist/{types-zfg8SDVI.mjs → types-C3Em8xpG.mjs} +0 -0
- /package/dist/{types-iNqHe2-V.mjs → types-CNNQ8l0v.mjs} +0 -0
- /package/dist/{types-Brp7Hv9S.d.mts → types-DvwHUku7.d.mts} +0 -0
- /package/dist/{types-D0UvtzG1.d.mts → types-cn-fvYQ1.d.mts} +0 -0
- /package/dist/{types-CsX_6h1v.d.mts → types-t7_nCCA9.d.mts} +0 -0
- /package/dist/{url-DOS4RGym.mjs → url-BzhfYtRn.mjs} +0 -0
- /package/dist/{utils-BftjFpR0.mjs → utils-FEbQMgB5.mjs} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { c as inviteCompleteBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { c as inviteCompleteBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
11
|
-
import { t as getPasskeyConfig } from "../../../../../passkey-config-
|
|
8
|
+
import { n as getPublicOrigin } from "../../../../../public-url-BL2r8dmQ.mjs";
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-3RuuoFjC.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-cJam-E5R.mjs";
|
|
11
|
+
import { t as getPasskeyConfig } from "../../../../../passkey-config-AX4sjpQ4.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { InviteError, completeInvite } from "@dineway-ai/auth";
|
|
14
14
|
import { registerPasskey, verifyRegistrationResponse } from "@dineway-ai/auth/passkey";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { l as inviteCreateBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { l as inviteCreateBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { t as getSiteBaseUrl } from "../../../../../site-url-
|
|
8
|
+
import { t as getSiteBaseUrl } from "../../../../../site-url-C18yBhtv.mjs";
|
|
9
9
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
10
10
|
import { InviteError, Role, createInvite } from "@dineway-ai/auth";
|
|
11
11
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { u as inviteRegisterOptionsBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { u as inviteRegisterOptionsBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
9
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
10
|
-
import { t as getPasskeyConfig } from "../../../../../passkey-config-
|
|
8
|
+
import { n as getPublicOrigin } from "../../../../../public-url-BL2r8dmQ.mjs";
|
|
9
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-cJam-E5R.mjs";
|
|
10
|
+
import { t as getPasskeyConfig } from "../../../../../passkey-config-AX4sjpQ4.mjs";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { InviteError, validateInvite } from "@dineway-ai/auth";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as apiSuccess, r as handleError } from "../../../../error-
|
|
2
|
-
import { t as isSafeRedirect } from "../../../../redirect-
|
|
1
|
+
import { n as apiSuccess, r as handleError } from "../../../../error-DLkgOP5m.mjs";
|
|
2
|
+
import { t as isSafeRedirect } from "../../../../redirect-Ce_6Yb6z.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/auth/logout.ts
|
|
5
5
|
const prerender = false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { d as magicLinkSendBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { d as magicLinkSendBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-
|
|
9
|
-
import { t as getSiteBaseUrl } from "../../../../../site-url-
|
|
10
|
-
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-
|
|
8
|
+
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-Bbm6PLR6.mjs";
|
|
9
|
+
import { t as getSiteBaseUrl } from "../../../../../site-url-C18yBhtv.mjs";
|
|
10
|
+
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-BWP_kKiZ.mjs";
|
|
11
11
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
12
12
|
import { sendMagicLink } from "@dineway-ai/auth";
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as apiError } from "../../../../../error-
|
|
2
|
-
import { t as isSafeRedirect } from "../../../../../redirect-
|
|
1
|
+
import { t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
2
|
+
import { t as isSafeRedirect } from "../../../../../redirect-Ce_6Yb6z.mjs";
|
|
3
3
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
4
4
|
import { MagicLinkError, verifyMagicLink } from "@dineway-ai/auth";
|
|
5
5
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../../../../
|
|
2
|
-
import
|
|
3
|
-
import { n as
|
|
4
|
-
import "../../../../
|
|
5
|
-
import
|
|
1
|
+
import { t as OptionsRepository } from "../../../../options-BF11H_FD.mjs";
|
|
2
|
+
import "../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, t as apiError } from "../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { s as authMeActionBody } from "../../../../import-DQ4Rfh5h.mjs";
|
|
6
7
|
import "../../../../api/schemas/index.mjs";
|
|
7
8
|
|
|
8
9
|
//#region src/astro/routes/api/auth/me.ts
|
|
@@ -11,13 +12,16 @@ const GET = async ({ locals, session }) => {
|
|
|
11
12
|
const { user } = locals;
|
|
12
13
|
if (!user) return apiError("NOT_AUTHENTICATED", "Not authenticated", 401);
|
|
13
14
|
const isFirstLogin = !await session?.get("hasSeenWelcome");
|
|
15
|
+
let bootstrapSeeded = false;
|
|
16
|
+
if (locals.dineway?.db) bootstrapSeeded = !!await new OptionsRepository(locals.dineway.db).get("dineway:bootstrap_seeded_at");
|
|
14
17
|
return apiSuccess({
|
|
15
18
|
id: user.id,
|
|
16
19
|
email: user.email,
|
|
17
20
|
name: user.name,
|
|
18
21
|
role: user.role,
|
|
19
22
|
avatarUrl: user.avatarUrl,
|
|
20
|
-
isFirstLogin
|
|
23
|
+
isFirstLogin,
|
|
24
|
+
bootstrapSeeded
|
|
21
25
|
});
|
|
22
26
|
};
|
|
23
27
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as getPublicOrigin } from "../../../../../../public-url-
|
|
2
|
-
import { t as createOAuthStateStore } from "../../../../../../oauth-state-store-
|
|
1
|
+
import { n as getPublicOrigin } from "../../../../../../public-url-BL2r8dmQ.mjs";
|
|
2
|
+
import { t as createOAuthStateStore } from "../../../../../../oauth-state-store-BRSUEkmx.mjs";
|
|
3
3
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
4
4
|
import { OAuthError, Role, handleOAuthCallback } from "@dineway-ai/auth";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
2
|
-
import { t as createOAuthStateStore } from "../../../../../oauth-state-store-
|
|
1
|
+
import { n as getPublicOrigin } from "../../../../../public-url-BL2r8dmQ.mjs";
|
|
2
|
+
import { t as createOAuthStateStore } from "../../../../../oauth-state-store-BRSUEkmx.mjs";
|
|
3
3
|
import { createAuthorizationUrl } from "@dineway-ai/auth";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/auth/oauth/[provider].ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../../context-types-
|
|
2
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
3
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
4
|
-
import "../../../../../redirects-
|
|
5
|
-
import { h as passkeyRenameBody } from "../../../../../import-
|
|
1
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
2
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
3
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
4
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
5
|
+
import { h as passkeyRenameBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
6
6
|
import "../../../../../api/schemas/index.mjs";
|
|
7
7
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
8
8
|
|
|
@@ -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-DLkgOP5m.mjs";
|
|
2
2
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/auth/passkey/index.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { f as passkeyOptionsBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { f as passkeyOptionsBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-
|
|
9
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
10
|
-
import { n as createChallengeStore, t as cleanupExpiredChallenges } from "../../../../../challenge-store-
|
|
11
|
-
import { t as getPasskeyConfig } from "../../../../../passkey-config-
|
|
12
|
-
import { n as getClientIp, r as rateLimitResponse, t as checkRateLimit } from "../../../../../rate-limit-
|
|
8
|
+
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-Bbm6PLR6.mjs";
|
|
9
|
+
import { n as getPublicOrigin } from "../../../../../public-url-BL2r8dmQ.mjs";
|
|
10
|
+
import { n as createChallengeStore, t as cleanupExpiredChallenges } from "../../../../../challenge-store-cJam-E5R.mjs";
|
|
11
|
+
import { t as getPasskeyConfig } from "../../../../../passkey-config-AX4sjpQ4.mjs";
|
|
12
|
+
import { n as getClientIp, r as rateLimitResponse, t as checkRateLimit } from "../../../../../rate-limit-BWP_kKiZ.mjs";
|
|
13
13
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
14
14
|
import { generateAuthenticationOptions } from "@dineway-ai/auth/passkey";
|
|
15
15
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-
|
|
5
|
-
import "../../../../../../redirects-
|
|
6
|
-
import { p as passkeyRegisterOptionsBody } from "../../../../../../import-
|
|
2
|
+
import "../../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { p as passkeyRegisterOptionsBody } from "../../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as getPublicOrigin } from "../../../../../../public-url-
|
|
9
|
-
import { n as createChallengeStore } from "../../../../../../challenge-store-
|
|
10
|
-
import { t as getPasskeyConfig } from "../../../../../../passkey-config-
|
|
8
|
+
import { n as getPublicOrigin } from "../../../../../../public-url-BL2r8dmQ.mjs";
|
|
9
|
+
import { n as createChallengeStore } from "../../../../../../challenge-store-cJam-E5R.mjs";
|
|
10
|
+
import { t as getPasskeyConfig } from "../../../../../../passkey-config-AX4sjpQ4.mjs";
|
|
11
11
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
12
12
|
import { generateRegistrationOptions } from "@dineway-ai/auth/passkey";
|
|
13
13
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, t as apiError } from "../../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
5
|
-
import "../../../../../../redirects-
|
|
6
|
-
import { m as passkeyRegisterVerifyBody } from "../../../../../../import-
|
|
2
|
+
import "../../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, t as apiError } from "../../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { m as passkeyRegisterVerifyBody } from "../../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as getPublicOrigin } from "../../../../../../public-url-
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../../challenge-store-
|
|
11
|
-
import { t as getPasskeyConfig } from "../../../../../../passkey-config-
|
|
8
|
+
import { n as getPublicOrigin } from "../../../../../../public-url-BL2r8dmQ.mjs";
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-3RuuoFjC.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../../challenge-store-cJam-E5R.mjs";
|
|
11
|
+
import { t as getPasskeyConfig } from "../../../../../../passkey-config-AX4sjpQ4.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { registerPasskey, verifyRegistrationResponse } from "@dineway-ai/auth/passkey";
|
|
14
14
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { g as passkeyVerifyBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { g as passkeyVerifyBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
11
|
-
import { t as getPasskeyConfig } from "../../../../../passkey-config-
|
|
8
|
+
import { n as getPublicOrigin } from "../../../../../public-url-BL2r8dmQ.mjs";
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-3RuuoFjC.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-cJam-E5R.mjs";
|
|
11
|
+
import { t as getPasskeyConfig } from "../../../../../passkey-config-AX4sjpQ4.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { PasskeyAuthenticationError, authenticateWithPasskey } from "@dineway-ai/auth/passkey";
|
|
14
14
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import "../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
+
import "../../../../../types-D1DjBFA9.mjs";
|
|
3
|
+
import { t as AuditRepository } from "../../../../../audit-NgiRzqP9.mjs";
|
|
4
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
5
|
+
import { n as getPublicOrigin } from "../../../../../public-url-BL2r8dmQ.mjs";
|
|
6
|
+
import { n as TOKEN_PREFIXES, r as generatePrefixedToken } from "../../../../../api-tokens-L0o9Bd7v.mjs";
|
|
7
|
+
import { ulid } from "ulidx";
|
|
8
|
+
import { Role } from "@dineway-ai/auth";
|
|
9
|
+
|
|
10
|
+
//#region src/astro/routes/api/auth/setup-token/index.ts
|
|
11
|
+
/**
|
|
12
|
+
* POST /_dineway/api/auth/setup-token
|
|
13
|
+
*
|
|
14
|
+
* Session-admin-only setup-link regeneration. API-token-authenticated requests
|
|
15
|
+
* are rejected to prevent PAT-to-session escalation.
|
|
16
|
+
*/
|
|
17
|
+
const prerender = false;
|
|
18
|
+
const SETUP_TOKEN_TYPE = "setup_link";
|
|
19
|
+
const SETUP_LINK_TTL_MS = 4320 * 60 * 1e3;
|
|
20
|
+
const POST = async ({ locals, request, url }) => {
|
|
21
|
+
const { dineway, user } = locals;
|
|
22
|
+
if (!dineway?.db) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
23
|
+
if (!user || user.role < Role.ADMIN) return apiError("FORBIDDEN", "Admin privileges required", 403);
|
|
24
|
+
if (locals.tokenScopes || locals.authToken) return apiError("FORBIDDEN", "Session authentication is required", 403);
|
|
25
|
+
try {
|
|
26
|
+
const { raw, hash } = generatePrefixedToken(TOKEN_PREFIXES.SETUP_LINK);
|
|
27
|
+
const expiresAt = new Date(Date.now() + SETUP_LINK_TTL_MS).toISOString();
|
|
28
|
+
await dineway.db.transaction().execute(async (trx) => {
|
|
29
|
+
await trx.deleteFrom("auth_tokens").where("user_id", "=", user.id).where("type", "=", SETUP_TOKEN_TYPE).execute();
|
|
30
|
+
await trx.insertInto("auth_tokens").values({
|
|
31
|
+
hash,
|
|
32
|
+
user_id: user.id,
|
|
33
|
+
email: user.email,
|
|
34
|
+
type: SETUP_TOKEN_TYPE,
|
|
35
|
+
role: null,
|
|
36
|
+
invited_by: null,
|
|
37
|
+
expires_at: expiresAt
|
|
38
|
+
}).execute();
|
|
39
|
+
});
|
|
40
|
+
const origin = getPublicOrigin(url, dineway.config);
|
|
41
|
+
const setupUrl = new URL("/_dineway/api/auth/setup-token/verify", origin);
|
|
42
|
+
setupUrl.searchParams.set("token", raw);
|
|
43
|
+
await new AuditRepository(dineway.db).log({
|
|
44
|
+
actorId: user.id,
|
|
45
|
+
actorIp: request.headers.get("x-forwarded-for") ?? void 0,
|
|
46
|
+
action: "settings_update",
|
|
47
|
+
resourceType: "auth_setup_token",
|
|
48
|
+
resourceId: ulid(),
|
|
49
|
+
details: { expiresAt },
|
|
50
|
+
status: "success"
|
|
51
|
+
});
|
|
52
|
+
return apiSuccess({
|
|
53
|
+
setupUrl: setupUrl.toString(),
|
|
54
|
+
expiresAt
|
|
55
|
+
}, 201);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
return handleError(error, "Failed to create setup link", "SETUP_TOKEN_CREATE_ERROR");
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { POST, prerender };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { o as hashPrefixedToken } from "../../../../../api-tokens-L0o9Bd7v.mjs";
|
|
2
|
+
import { t as escapeHtml } from "../../../../../escape-r8_GbEU2.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/astro/routes/api/auth/setup-token/verify.ts
|
|
5
|
+
const prerender = false;
|
|
6
|
+
const SETUP_TOKEN_TYPE = "setup_link";
|
|
7
|
+
const PASSKEY_REGISTRATION_PATH = "/_dineway/admin/settings/security?bootstrap=passkey";
|
|
8
|
+
const ADMIN_DASHBOARD_PATH = "/_dineway/admin";
|
|
9
|
+
const HTML_HEADERS = {
|
|
10
|
+
"Content-Type": "text/html; charset=utf-8",
|
|
11
|
+
"Cache-Control": "private, no-store"
|
|
12
|
+
};
|
|
13
|
+
function genericFailurePage() {
|
|
14
|
+
return htmlPage("Setup link unavailable", `<p>This setup link is invalid, expired, or has already been used.</p>`, 400);
|
|
15
|
+
}
|
|
16
|
+
function htmlPage(title, body, status = 200) {
|
|
17
|
+
return new Response(`<!DOCTYPE html>
|
|
18
|
+
<html lang="en">
|
|
19
|
+
<head>
|
|
20
|
+
<meta charset="utf-8">
|
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
22
|
+
<title>${escapeHtml(title)}</title>
|
|
23
|
+
<style>
|
|
24
|
+
:root { color-scheme: light dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
|
|
25
|
+
body { min-height: 100vh; margin: 0; display: grid; place-items: center; background: Canvas; color: CanvasText; }
|
|
26
|
+
main { width: min(100% - 32px, 440px); }
|
|
27
|
+
h1 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.2; }
|
|
28
|
+
p { margin: 0 0 20px; color: color-mix(in srgb, CanvasText 72%, transparent); line-height: 1.5; }
|
|
29
|
+
button { width: 100%; border: 0; border-radius: 6px; padding: 12px 14px; background: #111827; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
|
|
30
|
+
@media (prefers-color-scheme: dark) { button { background: #f9fafb; color: #111827; } }
|
|
31
|
+
</style>
|
|
32
|
+
</head>
|
|
33
|
+
<body>
|
|
34
|
+
<main>
|
|
35
|
+
<h1>${escapeHtml(title)}</h1>
|
|
36
|
+
${body}
|
|
37
|
+
</main>
|
|
38
|
+
</body>
|
|
39
|
+
</html>`, {
|
|
40
|
+
status,
|
|
41
|
+
headers: HTML_HEADERS
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function confirmationPage(token, email) {
|
|
45
|
+
const safeToken = escapeHtml(token);
|
|
46
|
+
return htmlPage("Complete Dineway admin setup", `<p>Continue as ${escapeHtml(email)} and register a passkey for future browser logins.</p>
|
|
47
|
+
<form method="post" action="/_dineway/api/auth/setup-token/verify">
|
|
48
|
+
<input type="hidden" name="token" value="${safeToken}">
|
|
49
|
+
<button type="submit">Complete login</button>
|
|
50
|
+
</form>`);
|
|
51
|
+
}
|
|
52
|
+
async function resolveSetupToken(db, rawToken) {
|
|
53
|
+
if (!rawToken?.startsWith("ec_slt_")) return null;
|
|
54
|
+
const hash = hashPrefixedToken(rawToken);
|
|
55
|
+
const row = await db.selectFrom("auth_tokens").innerJoin("users", "users.id", "auth_tokens.user_id").select([
|
|
56
|
+
"users.id as id",
|
|
57
|
+
"users.email as email",
|
|
58
|
+
"users.name as name",
|
|
59
|
+
"users.disabled as disabled",
|
|
60
|
+
"auth_tokens.expires_at as expires_at"
|
|
61
|
+
]).where("auth_tokens.hash", "=", hash).where("auth_tokens.type", "=", SETUP_TOKEN_TYPE).executeTakeFirst();
|
|
62
|
+
if (!row || row.disabled || new Date(row.expires_at) <= /* @__PURE__ */ new Date()) return null;
|
|
63
|
+
return {
|
|
64
|
+
id: row.id,
|
|
65
|
+
email: row.email,
|
|
66
|
+
name: row.name,
|
|
67
|
+
disabled: row.disabled
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
const GET = async ({ url, locals }) => {
|
|
71
|
+
const { dineway } = locals;
|
|
72
|
+
if (!dineway?.db) return genericFailurePage();
|
|
73
|
+
const token = url.searchParams.get("token");
|
|
74
|
+
const user = await resolveSetupToken(dineway.db, token);
|
|
75
|
+
if (!user || !token) return genericFailurePage();
|
|
76
|
+
return confirmationPage(token, user.email);
|
|
77
|
+
};
|
|
78
|
+
const POST = async ({ request, locals, session, redirect }) => {
|
|
79
|
+
const { dineway } = locals;
|
|
80
|
+
if (!dineway?.db) return genericFailurePage();
|
|
81
|
+
const tokenValue = (await request.formData().catch(() => null))?.get("token");
|
|
82
|
+
const token = typeof tokenValue === "string" ? tokenValue : null;
|
|
83
|
+
if (!token?.startsWith("ec_slt_")) return genericFailurePage();
|
|
84
|
+
const hash = hashPrefixedToken(token);
|
|
85
|
+
const result = await dineway.db.transaction().execute(async (trx) => {
|
|
86
|
+
const row = await trx.selectFrom("auth_tokens").innerJoin("users", "users.id", "auth_tokens.user_id").select([
|
|
87
|
+
"users.id as id",
|
|
88
|
+
"users.email as email",
|
|
89
|
+
"users.name as name",
|
|
90
|
+
"users.disabled as disabled",
|
|
91
|
+
"auth_tokens.expires_at as expires_at"
|
|
92
|
+
]).where("auth_tokens.hash", "=", hash).where("auth_tokens.type", "=", SETUP_TOKEN_TYPE).executeTakeFirst();
|
|
93
|
+
if (!row || row.disabled || new Date(row.expires_at) <= /* @__PURE__ */ new Date()) return null;
|
|
94
|
+
if (((await trx.deleteFrom("auth_tokens").where("hash", "=", hash).where("type", "=", SETUP_TOKEN_TYPE).executeTakeFirst()).numDeletedRows ?? 0n) === 0n) return null;
|
|
95
|
+
const credentialCount = await trx.selectFrom("credentials").select((eb) => eb.fn.countAll().as("count")).where("user_id", "=", row.id).executeTakeFirstOrThrow();
|
|
96
|
+
return {
|
|
97
|
+
user: {
|
|
98
|
+
id: row.id,
|
|
99
|
+
email: row.email,
|
|
100
|
+
name: row.name,
|
|
101
|
+
disabled: row.disabled
|
|
102
|
+
},
|
|
103
|
+
hasPasskeys: Number(credentialCount.count) > 0
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
if (!result) return genericFailurePage();
|
|
107
|
+
session?.set("user", { id: result.user.id });
|
|
108
|
+
return redirect(result.hasPasskeys ? ADMIN_DASHBOARD_PATH : PASSKEY_REGISTRATION_PATH);
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
//#endregion
|
|
112
|
+
export { GET, POST, prerender };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { _ as signupCompleteBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { _ as signupCompleteBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { n as getPublicOrigin } from "../../../../../public-url-
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
11
|
-
import { t as getPasskeyConfig } from "../../../../../passkey-config-
|
|
8
|
+
import { n as getPublicOrigin } from "../../../../../public-url-BL2r8dmQ.mjs";
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-3RuuoFjC.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-cJam-E5R.mjs";
|
|
11
|
+
import { t as getPasskeyConfig } from "../../../../../passkey-config-AX4sjpQ4.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { SignupError, completeSignup } from "@dineway-ai/auth";
|
|
14
14
|
import { registerPasskey, verifyRegistrationResponse } from "@dineway-ai/auth/passkey";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import "../../../../../context-types-
|
|
3
|
-
import { n as apiSuccess, t as apiError } from "../../../../../error-
|
|
4
|
-
import { n as parseBody, t as isParseError } from "../../../../../parse-
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { v as signupRequestBody } from "../../../../../import-
|
|
2
|
+
import "../../../../../context-types-BrSQNye5.mjs";
|
|
3
|
+
import { n as apiSuccess, t as apiError } from "../../../../../error-DLkgOP5m.mjs";
|
|
4
|
+
import { n as parseBody, t as isParseError } from "../../../../../parse-D7Tu6ku4.mjs";
|
|
5
|
+
import "../../../../../redirects-CoYlqu8e.mjs";
|
|
6
|
+
import { v as signupRequestBody } from "../../../../../import-DQ4Rfh5h.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-
|
|
9
|
-
import { t as getSiteBaseUrl } from "../../../../../site-url-
|
|
10
|
-
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-
|
|
8
|
+
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-Bbm6PLR6.mjs";
|
|
9
|
+
import { t as getSiteBaseUrl } from "../../../../../site-url-C18yBhtv.mjs";
|
|
10
|
+
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-BWP_kKiZ.mjs";
|
|
11
11
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
12
12
|
import { requestSignup } from "@dineway-ai/auth";
|
|
13
13
|
|
|
@@ -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-DLkgOP5m.mjs";
|
|
2
2
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
3
3
|
import { SignupError, roleFromLevel, validateSignupToken } from "@dineway-ai/auth";
|
|
4
4
|
|
|
@@ -3,17 +3,17 @@ import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
|
3
3
|
import "../../../../../../types-D1DjBFA9.mjs";
|
|
4
4
|
import { t as CommentRepository } from "../../../../../../comment-BmJXz3lc.mjs";
|
|
5
5
|
import "../../../../../../options-BF11H_FD.mjs";
|
|
6
|
-
import "../../../../../../context-types-
|
|
7
|
-
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-
|
|
8
|
-
import { n as parseBody, t as isParseError } from "../../../../../../parse-
|
|
9
|
-
import { _t as createCommentBody } from "../../../../../../redirects-
|
|
10
|
-
import "../../../../../../import-
|
|
6
|
+
import "../../../../../../context-types-BrSQNye5.mjs";
|
|
7
|
+
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DLkgOP5m.mjs";
|
|
8
|
+
import { n as parseBody, t as isParseError } from "../../../../../../parse-D7Tu6ku4.mjs";
|
|
9
|
+
import { _t as createCommentBody } from "../../../../../../redirects-CoYlqu8e.mjs";
|
|
10
|
+
import "../../../../../../import-DQ4Rfh5h.mjs";
|
|
11
11
|
import "../../../../../../api/schemas/index.mjs";
|
|
12
|
-
import { t as extractRequestMeta } from "../../../../../../request-meta-
|
|
13
|
-
import { i as resolveSecretsCached } from "../../../../../../secrets-
|
|
14
|
-
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-
|
|
15
|
-
import { t as getSiteBaseUrl } from "../../../../../../site-url-
|
|
16
|
-
import { i as sendCommentNotification, t as createComment } from "../../../../../../service-
|
|
12
|
+
import { t as extractRequestMeta } from "../../../../../../request-meta-DUGfAeXy.mjs";
|
|
13
|
+
import { i as resolveSecretsCached } from "../../../../../../secrets-DfeNNoLa.mjs";
|
|
14
|
+
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-yTbeIYc2.mjs";
|
|
15
|
+
import { t as getSiteBaseUrl } from "../../../../../../site-url-C18yBhtv.mjs";
|
|
16
|
+
import { i as sendCommentNotification, t as createComment } from "../../../../../../service-wPGgmbUa.mjs";
|
|
17
17
|
|
|
18
18
|
//#region src/astro/routes/api/comments/[collection]/[contentId]/index.ts
|
|
19
19
|
const prerender = false;
|
|
@@ -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-DLkgOP5m.mjs";
|
|
2
|
+
import { n as requirePerm } from "../../../../../../authorize-BbIhZi3a.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/astro/routes/api/content/[collection]/[id]/compare.ts
|
|
5
5
|
const prerender = false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
2
|
import "../../../../../../types-D1DjBFA9.mjs";
|
|
3
|
-
import "../../../../../../site-activity-
|
|
4
|
-
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-
|
|
5
|
-
import { t as requireOwnerPerm } from "../../../../../../authorize-
|
|
6
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
3
|
+
import "../../../../../../site-activity-KFZprBZM.mjs";
|
|
4
|
+
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DLkgOP5m.mjs";
|
|
5
|
+
import { t as requireOwnerPerm } from "../../../../../../authorize-BbIhZi3a.mjs";
|
|
6
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-CpcTzKpF.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/content/[collection]/[id]/discard-draft.ts
|
|
9
9
|
const prerender = false;
|