dineway 0.1.47 → 0.1.48
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 +57 -54
- package/dist/{activity-events-CNk3clTT.mjs → activity-events-C9u37D5z.mjs} +1 -1
- package/dist/api/route-utils.d.mts +8 -22
- package/dist/api/route-utils.mjs +8 -8
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-ePsOhL3q.mjs → api-Eiy8_zVZ.mjs} +63 -16
- package/dist/{apply-BpRBCqUt.mjs → apply-CX3no7XE.mjs} +54 -48
- package/dist/astro/index.d.mts +8 -8
- package/dist/astro/index.mjs +67 -25
- package/dist/astro/middleware/auth.d.mts +7 -7
- package/dist/astro/middleware/auth.mjs +1 -1
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +2 -1
- package/dist/astro/middleware.mjs +362 -143
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +2 -2
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +2 -2
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
- package/dist/astro/routes/api/admin/briefing.mjs +14 -14
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/index.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +5 -5
- 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 +23 -23
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +23 -23
- package/dist/astro/routes/api/admin/context/diff.mjs +22 -22
- package/dist/astro/routes/api/admin/context/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/stale.mjs +22 -22
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +21 -21
- 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 +20 -20
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +1 -1
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +40 -40
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +35 -35
- package/dist/astro/routes/api/admin/plugins/updates.mjs +35 -35
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +22 -22
- package/dist/astro/routes/api/admin/review-requests/index.mjs +5 -5
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +35 -35
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +35 -35
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +2 -2
- package/dist/astro/routes/api/auth/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/register-options.mjs +4 -4
- package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
- package/dist/astro/routes/api/auth/me.mjs +5 -5
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/verify.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/index.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +5 -5
- package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +11 -9
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/authors.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/authors.mjs +16 -0
- package/dist/astro/routes/api/content/_collection_/index.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
- package/dist/astro/routes/api/dashboard.mjs +6 -6
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +2 -2
- package/dist/astro/routes/api/import/probe.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.mjs +23 -23
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +26 -26
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +24 -24
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +24 -24
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +46 -46
- package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
- package/dist/astro/routes/api/media/_id_.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +4 -4
- package/dist/astro/routes/api/media.mjs +4 -4
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/items.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_/translations.mjs +23 -23
- package/dist/astro/routes/api/menus/_name_.mjs +23 -23
- package/dist/astro/routes/api/menus/index.mjs +23 -23
- package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/authorize.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/token.mjs +2 -2
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/revoke.mjs +2 -2
- package/dist/astro/routes/api/oauth/token.mjs +3 -3
- package/dist/astro/routes/api/openapi.json.mjs +16 -2
- package/dist/astro/routes/api/redirects/404s/index.mjs +6 -6
- package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -6
- package/dist/astro/routes/api/redirects/_id_.mjs +24 -24
- package/dist/astro/routes/api/redirects/index.mjs +24 -24
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +36 -36
- package/dist/astro/routes/api/schema/collections/index.mjs +36 -36
- package/dist/astro/routes/api/schema/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +35 -35
- package/dist/astro/routes/api/schema/orphans/index.mjs +35 -35
- package/dist/astro/routes/api/search/enable.mjs +6 -6
- package/dist/astro/routes/api/search/index.mjs +6 -6
- package/dist/astro/routes/api/search/rebuild.mjs +6 -6
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +6 -6
- package/dist/astro/routes/api/sections/_slug_.mjs +23 -23
- package/dist/astro/routes/api/sections/index.mjs +23 -23
- package/dist/astro/routes/api/settings/email.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +23 -23
- package/dist/astro/routes/api/setup/admin-verify.mjs +6 -6
- package/dist/astro/routes/api/setup/admin.mjs +4 -4
- 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 +20 -20
- package/dist/astro/routes/api/setup/status.mjs +2 -2
- package/dist/astro/routes/api/snapshot.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +25 -25
- package/dist/astro/routes/api/taxonomies/index.mjs +25 -25
- package/dist/astro/routes/api/themes/preview.mjs +2 -2
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +22 -22
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_.mjs +21 -21
- package/dist/astro/routes/api/widget-areas/index.mjs +23 -23
- package/dist/astro/routes/robots.txt.mjs +45 -22
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +6 -6
- package/dist/astro/routes/sitemap.xml.mjs +6 -6
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +15 -8
- package/dist/{audit-DuRbTm8L.mjs → audit-D1cbG7xH.mjs} +1 -1
- package/dist/{briefing-C4fJSVYW.mjs → briefing-CObXGOGz.mjs} +1 -1
- package/dist/{briefing-BFEWeJtR.mjs → briefing-gKWiGLt1.mjs} +6 -6
- package/dist/{byline-CXQcMsBu.mjs → byline-1ntDwv8c.mjs} +5 -5
- package/dist/{byline-fields-D7TJ_oHF.mjs → byline-fields-B-ZkoVft.mjs} +2 -2
- package/dist/{byline-fields-Cuo-JI3B.d.mts → byline-fields-BX7rWKNU.d.mts} +54 -30
- package/dist/{byline-fields-Dc7L6Yry.mjs → byline-fields-C9_iaPaM.mjs} +1 -1
- package/dist/{byline-registry-CL8BxPPp.mjs → byline-registry-CUSvkasJ.mjs} +2 -2
- package/dist/{bylines-BgriNlW7.mjs → bylines-DtxChhN_.mjs} +38 -4
- package/dist/{bylines-D2vqm1aZ.mjs → bylines-bC15ZqAv.mjs} +2 -2
- package/dist/{cache-GRK71jOU.mjs → cache-DbKyr60Q.mjs} +2 -2
- package/dist/{chunks-DgEw12Bc.mjs → chunks-C5zp2xir.mjs} +1 -1
- package/dist/cli/index.mjs +42 -31
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{comment-ogMaF1gk.mjs → comment-CXDOQ93N.mjs} +1 -1
- package/dist/{comments-CTSOKrZq.mjs → comments-hK-rdzJ9.mjs} +1 -1
- package/dist/{content-BfyjOiMi.mjs → content-QaryevFO.mjs} +103 -40
- package/dist/{context-ZMHhwzkG.mjs → context-CoYb_fvK.mjs} +7 -7
- package/dist/{context-CdsYb1m8.mjs → context-DBL1ib4v.mjs} +2 -2
- package/dist/{context-route-helpers-YLWx2N1j.mjs → context-route-helpers-CYQVmbIm.mjs} +1 -1
- package/dist/{dashboard-D0gWuzNp.mjs → dashboard-DNlqsknJ.mjs} +4 -4
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{default-BHauvIdG.mjs → default-B6iaLvP7.mjs} +4 -2
- package/dist/{device-flow-B3_FEoMI.mjs → device-flow-DygsFPGL.mjs} +3 -3
- package/dist/{fts-manager-EHY2Kes9.mjs → fts-manager-CIZlScg5.mjs} +1 -1
- package/dist/{hitl-requests-B1Zqgut6.mjs → hitl-requests-CGQwOEiq.mjs} +2 -2
- package/dist/{hitl-route-helpers-CjpWUMuw.mjs → hitl-route-helpers-GSDLNPpN.mjs} +3 -3
- package/dist/{index-DJVaYiUV.d.mts → index-CwRuZ-u8.d.mts} +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +51 -51
- package/dist/{jsonld-AcPnCEGD.d.mts → jsonld-DZ67souc.d.mts} +1 -1
- package/dist/{load-BdbvtoDb.mjs → load-xE01Jm0V.mjs} +1 -1
- package/dist/{loader-Y0QvC_QO.mjs → loader-tg63WSY2.mjs} +138 -36
- package/dist/media/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +7 -7
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-DhBwiCYR.mjs → media-DUAjMfvR.mjs} +1 -1
- package/dist/{menus-fqqzXyHd.mjs → menus-DU1eZqw_.mjs} +13 -8
- package/dist/{menus-BzGQpw9d.mjs → menus-WpFRMXjz.mjs} +2 -2
- package/dist/{normalize-O-hi3a27.mjs → normalize-DUnoXAa9.mjs} +1 -1
- package/dist/{oauth-authorization-DsF81vki.mjs → oauth-authorization-D-1p52Je.mjs} +3 -3
- package/dist/{oauth-clients-Du-V0fEm.mjs → oauth-clients-CzeMGyUU.mjs} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/plugin-utils.d.mts +7 -7
- package/dist/plugins/adapt-sandbox-entry.d.mts +7 -7
- package/dist/{plugins-BQ5Joz6v.mjs → plugins-C57YQi4l.mjs} +195 -5
- package/dist/public-url-B5HaoGzj.d.mts +18 -0
- package/dist/{query-CSx0EdSW.mjs → query-BYc3oruA.mjs} +29 -18
- package/dist/{query-BJuUydtD.mjs → query-DKEwzobh.mjs} +3 -3
- package/dist/{redirect-BqFMj67n.mjs → redirect-C2zXRj3c.mjs} +2 -2
- package/dist/{redirects-CJwHl_YG.mjs → redirects-YZo_znWG.mjs} +4 -4
- package/dist/{redirects-q_cToaHv.mjs → redirects-ocRJmQHP.mjs} +23 -3
- package/dist/{registry-Cq3QRBW2.mjs → registry-CTkbIDB9.mjs} +38 -6
- package/dist/{review-requests-GYqjl2jO.mjs → review-requests-C0un5kdV.mjs} +1 -1
- package/dist/{review-requests-tPw8_pAO.mjs → review-requests-gGMyYYhy.mjs} +1 -1
- package/dist/{runner-DTfG5v0G.mjs → runner-B-tbV751.mjs} +233 -193
- package/dist/{runner-Cnz4dl0f.d.mts → runner-D4FL9usy.d.mts} +1 -1
- package/dist/{runtime-Cd-kjPfN.d.mts → runtime-DEWQpZ-4.d.mts} +154 -22
- package/dist/runtime.d.mts +8 -8
- package/dist/runtime.mjs +2 -2
- package/dist/schema-B6zyB-Xn.mjs +8 -0
- package/dist/{search-BAiFLz81.mjs → search-axGQ1KY3.mjs} +3 -3
- package/dist/{secrets-CPoFLJjm.mjs → secrets-062Izo8i.mjs} +1 -1
- package/dist/{sections-DsuIrFDC.mjs → sections-OLKgXL10.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +17 -17
- package/dist/seo/index.d.mts +1 -1
- package/dist/{seo-uMFBaR8G.mjs → seo-Cd45Po8L.mjs} +1 -1
- package/dist/{service-CifrxCru.mjs → service-Bwad8s5h.mjs} +1 -1
- package/dist/{settings-BYGdocdj.mjs → settings-lAHjaUit.mjs} +2 -2
- package/dist/{settings-DNRQuX3d.mjs → settings-yLjz_I4T.mjs} +4 -4
- package/dist/{setup-complete-4EiBS1E5.mjs → setup-complete--PradA4R.mjs} +1 -1
- package/dist/{site-activity-6x1JccoR.mjs → site-activity-D7Xyropw.mjs} +1 -1
- package/dist/{site-context-c1ZFa_OF.mjs → site-context-DaN9Z91j.mjs} +13 -13
- package/dist/{site-url-C-cu8Ff2.mjs → site-url-DpGZo9Z6.mjs} +1 -1
- package/dist/{taxonomies-faQVeMgj.mjs → taxonomies-CNOGeC-3.mjs} +9 -7
- package/dist/{taxonomies-CQFmkP5u.mjs → taxonomies-uXVEoQso.mjs} +3 -3
- package/dist/{taxonomy-BnH-6VsX.mjs → taxonomy-CBmkmMuU.mjs} +2 -2
- package/dist/{types-DEAQG87T.d.mts → types-CwawBUTa.d.mts} +1 -1
- package/dist/{types-B7_vSiPD.d.mts → types-DRIKLmJI.d.mts} +14 -2
- package/dist/{types-UGmU5sWx.d.mts → types-DSPGWjxO.d.mts} +1 -1
- package/dist/{types-Ck7-WoUD.mjs → types-DfuD0Afl.mjs} +9 -2
- package/dist/{types-DYKtk8f1.d.mts → types-eu5UDgHN.d.mts} +22 -0
- package/dist/ui/server-runtime.d.mts +58 -10
- package/dist/ui/server-runtime.mjs +97 -15
- package/dist/{user-CqZwN21P.mjs → user-DtNmjNYt.mjs} +15 -1
- package/dist/{validate-CK4a1sIF.mjs → validate-7SYRbz2f.mjs} +5 -2
- package/dist/{validate-BJuG-ISL.d.mts → validate-BMs11tan.d.mts} +10 -2
- package/dist/version-xlzMSXF2.mjs +6 -0
- package/dist/{widgets-CdDvF4fV.mjs → widgets-DR8EHuRO.mjs} +1 -1
- package/dist/{wordpress-slugs-B6Gw9q3Q.mjs → wordpress-slugs-Dvhxh4cl.mjs} +1 -1
- package/dist/{zod-generator-D1ROBNuC.mjs → zod-generator-BS9-umbk.mjs} +3 -2
- package/package.json +5 -5
- package/src/components/DinewayImage.astro +23 -5
- package/src/components/Image.astro +19 -3
- package/dist/schema-DmHMWnSA.mjs +0 -8
- package/dist/version-Cb1tZ6s_.mjs +0 -6
- /package/dist/{allowed-origins-QirBXiDj.mjs → allowed-origins-DhipQNLb.mjs} +0 -0
- /package/dist/{challenge-store-DFxX0_15.mjs → challenge-store-CRSz-Xim.mjs} +0 -0
- /package/dist/{entity-aliases-uOrKvlPg.mjs → entity-aliases-Egjmqc7I.mjs} +0 -0
- /package/dist/{experimental-workflows-CSMffP6q.mjs → experimental-workflows-Dh4DUoD_.mjs} +0 -0
- /package/dist/{mode-CZqCF9dZ.mjs → mode-CpyEz8pe.mjs} +0 -0
- /package/dist/{options-BF11H_FD.mjs → options-BvJoSSJR.mjs} +0 -0
- /package/dist/{patterns-D9iDO3j8.mjs → patterns-r-0n824Y.mjs} +0 -0
- /package/dist/{provider-loader-B5PMjpN7.d.mts → provider-loader-9it4vd6L.d.mts} +0 -0
- /package/dist/{request-cache-w5cj5itT.mjs → request-cache-CYMbwZc6.mjs} +0 -0
- /package/dist/{transaction-D0FOsb3X.mjs → transaction-CShMWIej.mjs} +0 -0
- /package/dist/{transport-DidKKxvW.d.mts → transport-BnsNxh2l.d.mts} +0 -0
- /package/dist/{types-DbZhHtqS.mjs → types-BO8TGjS8.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { m as inviteCompleteBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { m as inviteCompleteBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../public-url-DLUM5OOv.mjs";
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-DhipQNLb.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-CRSz-Xim.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../passkey-config-DzHQK90v.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { InviteError, completeInvite } from "@dineway-ai/auth";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { h as inviteCreateBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { h as inviteCreateBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
|
-
import { t as getSiteBaseUrl } from "../../../../../site-url-
|
|
8
|
+
import { t as getSiteBaseUrl } from "../../../../../site-url-DpGZo9Z6.mjs";
|
|
9
9
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
10
10
|
import { InviteError, Role, createInvite } from "@dineway-ai/auth";
|
|
11
11
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { g as inviteRegisterOptionsBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { g as inviteRegisterOptionsBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../public-url-DLUM5OOv.mjs";
|
|
9
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
9
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-CRSz-Xim.mjs";
|
|
10
10
|
import { t as getPasskeyConfig } from "../../../../../passkey-config-DzHQK90v.mjs";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { _ as magicLinkSendBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { _ as magicLinkSendBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-BgIIcbsN.mjs";
|
|
9
|
-
import { t as getSiteBaseUrl } from "../../../../../site-url-
|
|
9
|
+
import { t as getSiteBaseUrl } from "../../../../../site-url-DpGZo9Z6.mjs";
|
|
10
10
|
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-i0G3IAOX.mjs";
|
|
11
11
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
12
12
|
import { sendMagicLink } from "@dineway-ai/auth";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../types-
|
|
3
|
-
import { t as UserRepository } from "../../../../user-
|
|
4
|
-
import { t as OptionsRepository } from "../../../../options-
|
|
2
|
+
import "../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import { t as UserRepository } from "../../../../user-DtNmjNYt.mjs";
|
|
4
|
+
import { t as OptionsRepository } from "../../../../options-BvJoSSJR.mjs";
|
|
5
5
|
import "../../../../context-types-DQh_XKkn.mjs";
|
|
6
6
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-DCSuUAZW.mjs";
|
|
7
7
|
import { n as parseBody, t as isParseError } from "../../../../parse-CneSgl7-.mjs";
|
|
8
|
-
import "../../../../redirects-
|
|
9
|
-
import { p as authMeActionBody } from "../../../../byline-fields-
|
|
8
|
+
import "../../../../redirects-ocRJmQHP.mjs";
|
|
9
|
+
import { p as authMeActionBody } from "../../../../byline-fields-B-ZkoVft.mjs";
|
|
10
10
|
import "../../../../api/schemas/index.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/astro/routes/api/auth/me.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
2
2
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
3
3
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
4
|
-
import "../../../../../redirects-
|
|
5
|
-
import { x as passkeyRenameBody } from "../../../../../byline-fields-
|
|
4
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
5
|
+
import { x as passkeyRenameBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
6
6
|
import "../../../../../api/schemas/index.mjs";
|
|
7
7
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
8
8
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { v as passkeyOptionsBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { v as passkeyOptionsBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-BgIIcbsN.mjs";
|
|
9
9
|
import { n as getPublicOrigin } from "../../../../../public-url-DLUM5OOv.mjs";
|
|
10
|
-
import { n as createChallengeStore, t as cleanupExpiredChallenges } from "../../../../../challenge-store-
|
|
10
|
+
import { n as createChallengeStore, t as cleanupExpiredChallenges } from "../../../../../challenge-store-CRSz-Xim.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../passkey-config-DzHQK90v.mjs";
|
|
12
12
|
import { n as getClientIp, r as rateLimitResponse, t as checkRateLimit } from "../../../../../rate-limit-i0G3IAOX.mjs";
|
|
13
13
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../../redirects-
|
|
6
|
-
import { y as passkeyRegisterOptionsBody } from "../../../../../../byline-fields-
|
|
5
|
+
import "../../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { y as passkeyRegisterOptionsBody } from "../../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../../public-url-DLUM5OOv.mjs";
|
|
9
|
-
import { n as createChallengeStore } from "../../../../../../challenge-store-
|
|
9
|
+
import { n as createChallengeStore } from "../../../../../../challenge-store-CRSz-Xim.mjs";
|
|
10
10
|
import { t as getPasskeyConfig } from "../../../../../../passkey-config-DzHQK90v.mjs";
|
|
11
11
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
12
12
|
import { generateRegistrationOptions } from "@dineway-ai/auth/passkey";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../../redirects-
|
|
6
|
-
import { b as passkeyRegisterVerifyBody } from "../../../../../../byline-fields-
|
|
5
|
+
import "../../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { b as passkeyRegisterVerifyBody } from "../../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../../public-url-DLUM5OOv.mjs";
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../../challenge-store-
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../../allowed-origins-DhipQNLb.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../../challenge-store-CRSz-Xim.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../../passkey-config-DzHQK90v.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { registerPasskey, verifyRegistrationResponse } from "@dineway-ai/auth/passkey";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { S as passkeyVerifyBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { S as passkeyVerifyBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../public-url-DLUM5OOv.mjs";
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-DhipQNLb.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-CRSz-Xim.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../passkey-config-DzHQK90v.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { PasskeyAuthenticationError, authenticateWithPasskey } from "@dineway-ai/auth/passkey";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import { t as AuditRepository } from "../../../../../audit-
|
|
2
|
+
import "../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import { t as AuditRepository } from "../../../../../audit-D1cbG7xH.mjs";
|
|
4
4
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
5
5
|
import { n as getPublicOrigin } from "../../../../../public-url-DLUM5OOv.mjs";
|
|
6
6
|
import { i as hasScope, n as TOKEN_PREFIXES, r as generatePrefixedToken } from "../../../../../api-tokens-CYUoFGo7.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { C as signupCompleteBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { C as signupCompleteBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { n as getPublicOrigin } from "../../../../../public-url-DLUM5OOv.mjs";
|
|
9
|
-
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-
|
|
10
|
-
import { n as createChallengeStore } from "../../../../../challenge-store-
|
|
9
|
+
import { n as validateAllowedOrigins, t as getConfiguredAllowedOrigins } from "../../../../../allowed-origins-DhipQNLb.mjs";
|
|
10
|
+
import { n as createChallengeStore } from "../../../../../challenge-store-CRSz-Xim.mjs";
|
|
11
11
|
import { t as getPasskeyConfig } from "../../../../../passkey-config-DzHQK90v.mjs";
|
|
12
12
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
13
13
|
import { SignupError, completeSignup } from "@dineway-ai/auth";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "../../../../../options-
|
|
1
|
+
import { t as OptionsRepository } from "../../../../../options-BvJoSSJR.mjs";
|
|
2
2
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
3
3
|
import { n as apiSuccess, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
4
4
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
5
|
-
import "../../../../../redirects-
|
|
6
|
-
import { w as signupRequestBody } from "../../../../../byline-fields-
|
|
5
|
+
import "../../../../../redirects-ocRJmQHP.mjs";
|
|
6
|
+
import { w as signupRequestBody } from "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
7
7
|
import "../../../../../api/schemas/index.mjs";
|
|
8
8
|
import { t as getTrustedProxyHeaders } from "../../../../../trusted-proxy-BgIIcbsN.mjs";
|
|
9
|
-
import { t as getSiteBaseUrl } from "../../../../../site-url-
|
|
9
|
+
import { t as getSiteBaseUrl } from "../../../../../site-url-DpGZo9Z6.mjs";
|
|
10
10
|
import { n as getClientIp, t as checkRateLimit } from "../../../../../rate-limit-i0G3IAOX.mjs";
|
|
11
11
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
12
12
|
import { requestSignup } from "@dineway-ai/auth";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "../../../../../../validate-VPnKoIzW.mjs";
|
|
2
2
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
3
|
-
import "../../../../../../types-
|
|
4
|
-
import { t as CommentRepository } from "../../../../../../comment-
|
|
5
|
-
import "../../../../../../options-
|
|
3
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
4
|
+
import { t as CommentRepository } from "../../../../../../comment-CXDOQ93N.mjs";
|
|
5
|
+
import "../../../../../../options-BvJoSSJR.mjs";
|
|
6
6
|
import "../../../../../../context-types-DQh_XKkn.mjs";
|
|
7
7
|
import { a as unwrapResult, i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
8
8
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-CneSgl7-.mjs";
|
|
9
|
-
import { _t as createCommentBody } from "../../../../../../redirects-
|
|
10
|
-
import "../../../../../../byline-fields-
|
|
9
|
+
import { _t as createCommentBody } from "../../../../../../redirects-ocRJmQHP.mjs";
|
|
10
|
+
import "../../../../../../byline-fields-B-ZkoVft.mjs";
|
|
11
11
|
import "../../../../../../api/schemas/index.mjs";
|
|
12
12
|
import { t as extractRequestMeta } from "../../../../../../request-meta-DAb6xaP9.mjs";
|
|
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-
|
|
13
|
+
import { i as resolveSecretsCached } from "../../../../../../secrets-062Izo8i.mjs";
|
|
14
|
+
import { c as hashIp, s as handleCommentList, t as checkRateLimit } from "../../../../../../comments-hK-rdzJ9.mjs";
|
|
15
|
+
import { t as getSiteBaseUrl } from "../../../../../../site-url-DpGZo9Z6.mjs";
|
|
16
|
+
import { i as sendCommentNotification, t as createComment } from "../../../../../../service-Bwad8s5h.mjs";
|
|
17
17
|
|
|
18
18
|
//#region src/astro/routes/api/comments/[collection]/[contentId]/index.ts
|
|
19
19
|
const prerender = false;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import "../../../../../../site-activity-
|
|
2
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
5
5
|
import { t as requireOwnerPerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
6
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
6
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-C9u37D5z.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/content/[collection]/[id]/discard-draft.ts
|
|
9
9
|
const prerender = false;
|
|
10
|
-
const POST = async ({ params, locals, cache }) => {
|
|
10
|
+
const POST = async ({ params, locals, url, cache }) => {
|
|
11
11
|
const { dineway, user } = locals;
|
|
12
12
|
const collection = params.collection;
|
|
13
13
|
const id = params.id;
|
|
14
|
+
const locale = url.searchParams.get("locale") || void 0;
|
|
14
15
|
if (!dineway?.handleContentDiscardDraft || !dineway?.handleContentGet) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
15
|
-
const existing = await dineway.handleContentGet(collection, id);
|
|
16
|
+
const existing = await dineway.handleContentGet(collection, id, locale);
|
|
16
17
|
if (!existing.success) return apiError(existing.error?.code ?? "UNKNOWN_ERROR", existing.error?.message ?? "Unknown error", mapErrorStatus(existing.error?.code));
|
|
17
18
|
const existingData = existing.data && typeof existing.data === "object" ? existing.data : void 0;
|
|
18
19
|
const existingItem = existingData?.item && typeof existingData.item === "object" ? existingData.item : existingData;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import "../../../../../../site-activity-
|
|
2
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
5
5
|
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
6
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
6
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-C9u37D5z.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/content/[collection]/[id]/duplicate.ts
|
|
9
9
|
const prerender = false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import "../../../../../../site-activity-
|
|
2
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import { a as unwrapResult, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
5
5
|
import { n as requirePerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
6
|
-
import { n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
6
|
+
import { n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-C9u37D5z.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/content/[collection]/[id]/permanent.ts
|
|
9
9
|
const prerender = false;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../../../../connection-CiJWiWya.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "../../../../../../config-CVssduLe.mjs";
|
|
3
3
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
4
|
-
import "../../../../../../options-
|
|
4
|
+
import "../../../../../../options-BvJoSSJR.mjs";
|
|
5
5
|
import "../../../../../../context-types-DQh_XKkn.mjs";
|
|
6
6
|
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
7
7
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-CneSgl7-.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import "../../../../../../byline-fields-
|
|
8
|
+
import { rn as contentPreviewUrlBody } from "../../../../../../redirects-ocRJmQHP.mjs";
|
|
9
|
+
import "../../../../../../byline-fields-B-ZkoVft.mjs";
|
|
10
10
|
import "../../../../../../api/schemas/index.mjs";
|
|
11
11
|
import { i as getPreviewUrl } from "../../../../../../preview-D5rvDhRt.mjs";
|
|
12
12
|
import "../../../../../../tokens-CjSgb0AC.mjs";
|
|
13
|
-
import { i as resolveSecretsCached } from "../../../../../../secrets-
|
|
13
|
+
import { i as resolveSecretsCached } from "../../../../../../secrets-062Izo8i.mjs";
|
|
14
14
|
import { n as requirePerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/astro/routes/api/content/[collection]/[id]/preview-url.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import "../../../../../../site-activity-
|
|
2
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import "../../../../../../context-types-DQh_XKkn.mjs";
|
|
5
5
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
6
6
|
import { r as parseOptionalBody, t as isParseError } from "../../../../../../parse-CneSgl7-.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import "../../../../../../byline-fields-
|
|
7
|
+
import { in as contentPublishBody } from "../../../../../../redirects-ocRJmQHP.mjs";
|
|
8
|
+
import "../../../../../../byline-fields-B-ZkoVft.mjs";
|
|
9
9
|
import "../../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { t as requireOwnerPerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
11
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
11
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-C9u37D5z.mjs";
|
|
12
12
|
import { hasPermission } from "@dineway-ai/auth";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/api/content/[collection]/[id]/publish.ts
|
|
@@ -18,12 +18,13 @@ import { hasPermission } from "@dineway-ai/auth";
|
|
|
18
18
|
* POST /_dineway/api/content/{collection}/{id}/publish
|
|
19
19
|
*/
|
|
20
20
|
const prerender = false;
|
|
21
|
-
const POST = async ({ params, request, locals, cache }) => {
|
|
21
|
+
const POST = async ({ params, request, locals, url, cache }) => {
|
|
22
22
|
const { dineway, user } = locals;
|
|
23
23
|
const collection = params.collection;
|
|
24
24
|
const id = params.id;
|
|
25
|
+
const locale = url.searchParams.get("locale") || void 0;
|
|
25
26
|
if (!dineway?.handleContentPublish || !dineway?.handleContentGet) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
26
|
-
const existing = await dineway.handleContentGet(collection, id);
|
|
27
|
+
const existing = await dineway.handleContentGet(collection, id, locale);
|
|
27
28
|
if (!existing.success) return apiError(existing.error?.code ?? "UNKNOWN_ERROR", existing.error?.message ?? "Unknown error", mapErrorStatus(existing.error?.code));
|
|
28
29
|
const existingData = existing.data && typeof existing.data === "object" ? existing.data : void 0;
|
|
29
30
|
const existingItem = existingData?.item && typeof existingData.item === "object" ? existingData.item : existingData;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import "../../../../../../site-activity-
|
|
2
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
5
5
|
import { t as requireOwnerPerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
6
|
-
import { n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
6
|
+
import { n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-C9u37D5z.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/content/[collection]/[id]/restore.ts
|
|
9
9
|
const prerender = false;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import "../../../../../../site-activity-
|
|
2
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import "../../../../../../context-types-DQh_XKkn.mjs";
|
|
5
5
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
6
6
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-CneSgl7-.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import "../../../../../../byline-fields-
|
|
7
|
+
import { on as contentScheduleBody } from "../../../../../../redirects-ocRJmQHP.mjs";
|
|
8
|
+
import "../../../../../../byline-fields-B-ZkoVft.mjs";
|
|
9
9
|
import "../../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { t as requireOwnerPerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
11
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
11
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-C9u37D5z.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/api/content/[collection]/[id]/schedule.ts
|
|
14
14
|
const prerender = false;
|
|
@@ -23,14 +23,15 @@ function extractOwnership(data) {
|
|
|
23
23
|
resolvedId: typeof item?.id === "string" ? item.id : void 0
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
const POST = async ({ params, request, locals, cache }) => {
|
|
26
|
+
const POST = async ({ params, request, locals, url, cache }) => {
|
|
27
27
|
const { dineway, user } = locals;
|
|
28
28
|
const collection = params.collection;
|
|
29
29
|
const id = params.id;
|
|
30
|
+
const locale = url.searchParams.get("locale") || void 0;
|
|
30
31
|
const body = await parseBody(request, contentScheduleBody);
|
|
31
32
|
if (isParseError(body)) return body;
|
|
32
33
|
if (!dineway?.handleContentSchedule || !dineway?.handleContentGet) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
33
|
-
const existing = await dineway.handleContentGet(collection, id);
|
|
34
|
+
const existing = await dineway.handleContentGet(collection, id, locale);
|
|
34
35
|
if (!existing.success) return apiError(existing.error?.code ?? "UNKNOWN_ERROR", existing.error?.message ?? "Unknown error", mapErrorStatus(existing.error?.code));
|
|
35
36
|
const { authorId, resolvedId } = extractOwnership(existing.data);
|
|
36
37
|
const denied = requireOwnerPerm(user, authorId, "content:publish_own", "content:publish_any");
|
|
@@ -48,12 +49,13 @@ const POST = async ({ params, request, locals, cache }) => {
|
|
|
48
49
|
});
|
|
49
50
|
return unwrapResult(result);
|
|
50
51
|
};
|
|
51
|
-
const DELETE = async ({ params, locals, cache }) => {
|
|
52
|
+
const DELETE = async ({ params, locals, url, cache }) => {
|
|
52
53
|
const { dineway, user } = locals;
|
|
53
54
|
const collection = params.collection;
|
|
54
55
|
const id = params.id;
|
|
56
|
+
const locale = url.searchParams.get("locale") || void 0;
|
|
55
57
|
if (!dineway?.handleContentUnschedule || !dineway?.handleContentGet) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
56
|
-
const existing = await dineway.handleContentGet(collection, id);
|
|
58
|
+
const existing = await dineway.handleContentGet(collection, id, locale);
|
|
57
59
|
if (!existing.success) return apiError(existing.error?.code ?? "UNKNOWN_ERROR", existing.error?.message ?? "Unknown error", mapErrorStatus(existing.error?.code));
|
|
58
60
|
const { authorId, resolvedId } = extractOwnership(existing.data);
|
|
59
61
|
const denied = requireOwnerPerm(user, authorId, "content:publish_own", "content:publish_any");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../../../../../../../dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import { t as ContentRepository } from "../../../../../../../content-
|
|
2
|
+
import { t as ContentRepository } from "../../../../../../../content-QaryevFO.mjs";
|
|
3
3
|
import "../../../../../../../base64-C1Q9yr0B.mjs";
|
|
4
|
-
import "../../../../../../../types-
|
|
5
|
-
import { t as TaxonomyRepository } from "../../../../../../../taxonomy-
|
|
6
|
-
import "../../../../../../../request-cache-
|
|
4
|
+
import "../../../../../../../types-DfuD0Afl.mjs";
|
|
5
|
+
import { t as TaxonomyRepository } from "../../../../../../../taxonomy-CBmkmMuU.mjs";
|
|
6
|
+
import "../../../../../../../request-cache-CYMbwZc6.mjs";
|
|
7
7
|
import "../../../../../../../context-types-DQh_XKkn.mjs";
|
|
8
|
-
import "../../../../../../../loader-
|
|
8
|
+
import "../../../../../../../loader-tg63WSY2.mjs";
|
|
9
9
|
import "../../../../../../../resolve-DTuDyYKs.mjs";
|
|
10
|
-
import { c as invalidateTermCache } from "../../../../../../../taxonomies-
|
|
10
|
+
import { c as invalidateTermCache } from "../../../../../../../taxonomies-CNOGeC-3.mjs";
|
|
11
11
|
import { i as requireDb, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../../error-DCSuUAZW.mjs";
|
|
12
12
|
import { n as parseBody, t as isParseError } from "../../../../../../../parse-CneSgl7-.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import "../../../../../../../byline-fields-
|
|
13
|
+
import { ln as contentTermsBody } from "../../../../../../../redirects-ocRJmQHP.mjs";
|
|
14
|
+
import "../../../../../../../byline-fields-B-ZkoVft.mjs";
|
|
15
15
|
import "../../../../../../../api/schemas/index.mjs";
|
|
16
16
|
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../../../authorize-BLO0m7fW.mjs";
|
|
17
17
|
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import "../../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../../types-
|
|
3
|
-
import "../../../../../../site-activity-
|
|
2
|
+
import "../../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../../error-DCSuUAZW.mjs";
|
|
5
5
|
import { t as requireOwnerPerm } from "../../../../../../authorize-BLO0m7fW.mjs";
|
|
6
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-
|
|
6
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity } from "../../../../../../activity-events-C9u37D5z.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/content/[collection]/[id]/unpublish.ts
|
|
9
9
|
const prerender = false;
|
|
10
|
-
const POST = async ({ params, locals, cache }) => {
|
|
10
|
+
const POST = async ({ params, locals, url, cache }) => {
|
|
11
11
|
const { dineway, user } = locals;
|
|
12
12
|
const collection = params.collection;
|
|
13
13
|
const id = params.id;
|
|
14
|
+
const locale = url.searchParams.get("locale") || void 0;
|
|
14
15
|
if (!dineway?.handleContentUnpublish || !dineway?.handleContentGet) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
15
|
-
const existing = await dineway.handleContentGet(collection, id);
|
|
16
|
+
const existing = await dineway.handleContentGet(collection, id, locale);
|
|
16
17
|
if (!existing.success) return apiError(existing.error?.code ?? "UNKNOWN_ERROR", existing.error?.message ?? "Unknown error", mapErrorStatus(existing.error?.code));
|
|
17
18
|
const existingData = existing.data && typeof existing.data === "object" ? existing.data : void 0;
|
|
18
19
|
const existingItem = existingData?.item && typeof existingData.item === "object" ? existingData.item : existingData;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../../base64-C1Q9yr0B.mjs";
|
|
2
|
-
import "../../../../../types-
|
|
3
|
-
import "../../../../../site-activity-
|
|
2
|
+
import "../../../../../types-DfuD0Afl.mjs";
|
|
3
|
+
import "../../../../../site-activity-D7Xyropw.mjs";
|
|
4
4
|
import "../../../../../context-types-DQh_XKkn.mjs";
|
|
5
5
|
import { a as unwrapResult, o as mapErrorStatus, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
6
6
|
import { n as parseBody, t as isParseError } from "../../../../../parse-CneSgl7-.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import "../../../../../byline-fields-
|
|
7
|
+
import { pn as contentUpdateBody } from "../../../../../redirects-ocRJmQHP.mjs";
|
|
8
|
+
import "../../../../../byline-fields-B-ZkoVft.mjs";
|
|
9
9
|
import "../../../../../api/schemas/index.mjs";
|
|
10
10
|
import { n as requirePerm, t as requireOwnerPerm } from "../../../../../authorize-BLO0m7fW.mjs";
|
|
11
|
-
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity, t as activityChangedKeys } from "../../../../../activity-events-
|
|
11
|
+
import { a as extractActivityItemId, n as contentApiRouteSource, o as logContentActivity, t as activityChangedKeys } from "../../../../../activity-events-C9u37D5z.mjs";
|
|
12
12
|
import { hasPermission } from "@dineway-ai/auth";
|
|
13
13
|
|
|
14
14
|
//#region src/astro/routes/api/content/[collection]/[id].ts
|
|
@@ -87,12 +87,13 @@ const PUT = async ({ params, request, locals, cache }) => {
|
|
|
87
87
|
});
|
|
88
88
|
return unwrapResult(result);
|
|
89
89
|
};
|
|
90
|
-
const DELETE = async ({ params, locals, cache }) => {
|
|
90
|
+
const DELETE = async ({ params, locals, url, cache }) => {
|
|
91
91
|
const { dineway, user } = locals;
|
|
92
92
|
const collection = params.collection;
|
|
93
93
|
const id = params.id;
|
|
94
|
+
const locale = url.searchParams.get("locale") || void 0;
|
|
94
95
|
if (!dineway?.handleContentDelete || !dineway?.handleContentGet) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
95
|
-
const existing = await dineway.handleContentGet(collection, id);
|
|
96
|
+
const existing = await dineway.handleContentGet(collection, id, locale);
|
|
96
97
|
if (!existing.success) return apiError(existing.error?.code ?? "UNKNOWN_ERROR", existing.error?.message ?? "Unknown error", mapErrorStatus(existing.error?.code));
|
|
97
98
|
const deleteData = existing.data && typeof existing.data === "object" ? existing.data : void 0;
|
|
98
99
|
const deleteItem = deleteData?.item && typeof deleteData.item === "object" ? deleteData.item : deleteData;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as unwrapResult, t as apiError } from "../../../../../error-DCSuUAZW.mjs";
|
|
2
|
+
import { n as requirePerm } from "../../../../../authorize-BLO0m7fW.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/astro/routes/api/content/[collection]/authors.ts
|
|
5
|
+
const prerender = false;
|
|
6
|
+
const GET = async ({ params, locals }) => {
|
|
7
|
+
const { dineway, user } = locals;
|
|
8
|
+
const collection = params.collection;
|
|
9
|
+
const denied = requirePerm(user, "content:read_drafts");
|
|
10
|
+
if (denied) return denied;
|
|
11
|
+
if (!dineway?.handleContentAuthors) return apiError("NOT_CONFIGURED", "Dineway is not initialized", 500);
|
|
12
|
+
return unwrapResult(await dineway.handleContentAuthors(collection));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { GET, prerender };
|