dineway 0.2.25 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activity-Bm5x0dik.mjs → activity-DWlF3FUa.mjs} +2 -2
- package/dist/{activity-events-DpvhcjTP.mjs → activity-events-BYksOnTL.mjs} +1 -1
- package/dist/{adapters-DUVI3Mpc.d.mts → adapters-C-iHnQYy.d.mts} +8 -1
- package/dist/{allowed-origins-M5Rcl6XL.mjs → allowed-origins-DeknDs56.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +16 -15
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +5 -4
- package/dist/{api-Cod3v4JU.mjs → api-BTrQ7bjs.mjs} +21 -20
- package/dist/{api-tokens-BFgXg0l2.mjs → api-tokens-d43xs7C1.mjs} +1 -1
- package/dist/{apply-Hodkn7PL.mjs → apply-CS_138du.mjs} +22 -19
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +29 -7
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +6 -6
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +3 -3
- 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.mjs +203 -91
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +7 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +7 -6
- 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 +20 -19
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +10 -9
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +10 -9
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +10 -9
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +17 -16
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +17 -16
- package/dist/astro/routes/api/admin/bylines/index.mjs +17 -16
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +14 -13
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +11 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +11 -10
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +28 -26
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +28 -26
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +33 -31
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +33 -31
- package/dist/astro/routes/api/admin/context/diff.mjs +32 -30
- package/dist/astro/routes/api/admin/context/index.mjs +33 -31
- package/dist/astro/routes/api/admin/context/stale.mjs +32 -30
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +28 -26
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +32 -30
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +32 -30
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +29 -27
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
- 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 +59 -57
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +59 -57
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +51 -49
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +58 -56
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +58 -56
- package/dist/astro/routes/api/admin/plugins/index.mjs +51 -49
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +51 -49
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +58 -56
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +51 -49
- package/dist/astro/routes/api/admin/plugins/updates.mjs +51 -49
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +33 -31
- package/dist/astro/routes/api/admin/review-requests/index.mjs +33 -31
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +51 -49
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +51 -49
- 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 +8 -7
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
- package/dist/astro/routes/api/admin/users/index.mjs +7 -6
- package/dist/astro/routes/api/auth/dev-bypass.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +12 -11
- package/dist/astro/routes/api/auth/invite/index.mjs +9 -8
- package/dist/astro/routes/api/auth/invite/register-options.mjs +11 -10
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +11 -10
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +10 -9
- 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 +7 -6
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +13 -12
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +11 -10
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +12 -11
- package/dist/astro/routes/api/auth/passkey/verify.mjs +12 -11
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +12 -11
- package/dist/astro/routes/api/auth/signup/request.mjs +11 -10
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +15 -14
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +14 -13
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +54 -15
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +19 -18
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +9 -8
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +19 -18
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +16 -14
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +12 -11
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +12 -11
- package/dist/astro/routes/api/content/_collection_/trash.mjs +8 -7
- package/dist/astro/routes/api/dashboard.mjs +9 -8
- 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 +21 -20
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +9 -8
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +38 -36
- package/dist/astro/routes/api/import/wordpress/media.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +13 -12
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +37 -35
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +34 -32
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +24 -23
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +43 -41
- package/dist/astro/routes/api/integrations/_provider_.mjs +7 -7
- package/dist/astro/routes/api/integrations/index.mjs +6 -6
- package/dist/astro/routes/api/manifest.mjs +5 -5
- package/dist/astro/routes/api/mcp.mjs +70 -68
- package/dist/astro/routes/api/media/_id_/confirm.mjs +11 -10
- package/dist/astro/routes/api/media/_id_.mjs +9 -8
- 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 +12 -11
- package/dist/astro/routes/api/media.mjs +15 -14
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +33 -31
- package/dist/astro/routes/api/menus/_name_/items.mjs +33 -31
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +33 -31
- package/dist/astro/routes/api/menus/_name_/translations.mjs +33 -31
- package/dist/astro/routes/api/menus/_name_.mjs +33 -31
- package/dist/astro/routes/api/menus/index.mjs +33 -31
- 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 +5 -4
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +12 -11
- package/dist/astro/routes/api/redirects/404s/summary.mjs +12 -11
- package/dist/astro/routes/api/redirects/_id_.mjs +34 -32
- package/dist/astro/routes/api/redirects/index.mjs +34 -32
- 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 +53 -51
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +53 -51
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +53 -51
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +53 -51
- package/dist/astro/routes/api/schema/collections/index.mjs +53 -51
- package/dist/astro/routes/api/schema/index.mjs +9 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +51 -49
- package/dist/astro/routes/api/schema/orphans/index.mjs +51 -49
- package/dist/astro/routes/api/search/enable.mjs +12 -11
- package/dist/astro/routes/api/search/index.mjs +11 -10
- package/dist/astro/routes/api/search/rebuild.mjs +12 -11
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +11 -10
- package/dist/astro/routes/api/sections/_slug_.mjs +33 -31
- package/dist/astro/routes/api/sections/index.mjs +33 -31
- package/dist/astro/routes/api/settings/email.mjs +4 -4
- package/dist/astro/routes/api/settings.mjs +33 -31
- package/dist/astro/routes/api/setup/admin-verify.mjs +14 -13
- package/dist/astro/routes/api/setup/admin.mjs +12 -11
- package/dist/astro/routes/api/setup/dev-bypass.mjs +28 -26
- package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
- package/dist/astro/routes/api/setup/index.mjs +30 -28
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +7 -7
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +36 -34
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +36 -34
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +36 -34
- package/dist/astro/routes/api/taxonomies/index.mjs +36 -34
- package/dist/astro/routes/api/themes/preview.mjs +5 -5
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +3 -3
- 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 +32 -30
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +33 -31
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +33 -31
- package/dist/astro/routes/api/widget-areas/_name_.mjs +30 -28
- package/dist/astro/routes/api/widget-areas/index.mjs +33 -31
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +7 -7
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +14 -13
- package/dist/astro/routes/sitemap.xml.mjs +13 -12
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +13 -12
- package/dist/{audit-nenmMR-2.mjs → audit-CmiNnrbj.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-B7PdECn6.mjs → auth-control-guard-Bg93z3D6.mjs} +1 -1
- package/dist/{authorize-DTvHe9bm.mjs → authorize-Dg75h4BN.mjs} +1 -1
- package/dist/{briefing-PxagUoJJ.mjs → briefing-BoIXsh3Y.mjs} +1 -1
- package/dist/{briefing-CpU_z8qH.mjs → briefing-Cd2HhhHi.mjs} +7 -7
- package/dist/{bundle-dsO2-7eh.mjs → bundle-DicQY2p2.mjs} +2 -2
- package/dist/{byline-DEBDPF8R.mjs → byline-MGIfM2Is.mjs} +6 -6
- package/dist/{byline-fields-HoyRUnBy.d.mts → byline-fields-BJ5_tYj8.d.mts} +31 -7
- package/dist/{byline-fields-BQRx17y_.mjs → byline-fields-C4OeOttq.mjs} +3 -3
- package/dist/{byline-fields-DPi4Ri_5.mjs → byline-fields-GoUVaGw4.mjs} +1 -1
- package/dist/{byline-registry-BLgrU3dA.mjs → byline-registry-CF9nobxT.mjs} +2 -2
- package/dist/{bylines-YK6eGHvV.mjs → bylines-CL8Z6AxI.mjs} +5 -5
- package/dist/{bylines-C7hm1-iI.mjs → bylines-t_uHsP44.mjs} +3 -3
- package/dist/{cache-BuVpjvBc.mjs → cache-DrNKKDn0.mjs} +2 -2
- package/dist/{chunks-B-1_U3oF.mjs → chunks-Bw3_BuVW.mjs} +1 -1
- package/dist/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +399 -135
- package/dist/cli/plugin-kit.d.mts +9 -9
- package/dist/cli/plugin-kit.mjs +2 -2
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +11 -11
- package/dist/client/index.mjs +2 -2
- package/dist/{client-factory-Nyp2sznG.mjs → client-factory-DXfeovxp.mjs} +3 -2
- package/dist/{comment-BX6H4NF-.mjs → comment-DuDtCn-f.mjs} +1 -1
- package/dist/{comment-reaction-QSENU_3S.mjs → comment-reaction-NZjadbiB.mjs} +1 -1
- package/dist/{comments-BHSYG53k.mjs → comments-Csi3B9JI.mjs} +1 -1
- package/dist/{connection-CiJWiWya.mjs → connection-DJ3GzHVH.mjs} +2 -3
- package/dist/{content-Bg_hMt4Q.mjs → content-CzUrmMC3.mjs} +5 -117
- package/dist/{content-refresh-CHBBZGwf.mjs → content-refresh-C_jcjzOr.mjs} +5 -5
- package/dist/{context-BGt7zfQ-.mjs → context-BET1jeas.mjs} +11 -11
- package/dist/{context-BHXgPEPC.mjs → context-D1WiuHGe.mjs} +2 -2
- package/dist/{context-route-helpers-SwM-_GT4.mjs → context-route-helpers-CgVXswZ_.mjs} +2 -2
- package/dist/{dashboard-ByLUL4c3.mjs → dashboard-CKAH1KwM.mjs} +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.mjs +10 -2
- package/dist/db/libsql-http.d.mts +27 -0
- package/dist/db/libsql-http.mjs +29 -0
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/libsql.mjs +3 -43
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-XqdFNsv_.mjs → device-flow-BED7L-O7.mjs} +5 -5
- package/dist/{discovery-DvuRcbP-.mjs → discovery-SVnRaAxj.mjs} +9 -49
- package/dist/{enrich-Ck9tfMqe.mjs → enrich-Uw_OA9Ve.mjs} +1 -1
- package/dist/{field-defs-cache-sSdDeJXP.mjs → field-defs-cache-BIHTU5Yj.mjs} +4 -4
- package/dist/{fts-manager-C7pxxk6B.mjs → fts-manager-BB44uXMm.mjs} +1 -1
- package/dist/{hitl-requests-D7pfIM6q.mjs → hitl-requests-D117gyhv.mjs} +2 -2
- package/dist/{hitl-route-helpers-Br9uvIQs.mjs → hitl-route-helpers-BasbaWwG.mjs} +5 -5
- package/dist/{import-CrsquhXj.mjs → import-BCY1k1zB.mjs} +8 -8
- package/dist/{index-NdJMMO48.d.mts → index-DNNw5fp0.d.mts} +3 -3
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +87 -84
- package/dist/{integration-credentials-B7Pj6YCv.mjs → integration-credentials-CTrvXgEc.mjs} +2 -2
- package/dist/{jsonld-CfUj_enm.d.mts → jsonld-CxMRDv02.d.mts} +2 -2
- package/dist/libsql-dialect-DMqpBfJI.mjs +47 -0
- package/dist/{load-Bul8Tk6e.mjs → load-C-cMlsPv.mjs} +1 -1
- package/dist/{loader-BCr2VSzt.mjs → loader-CsX5pTud.mjs} +2 -2
- package/dist/{manifest-schema-U5qGq-iB.mjs → manifest-schema-owbEUmv1.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-C1lIimd0.mjs → mcp-reviewed-executor-BwI0ylf3.mjs} +6 -6
- package/dist/media/image-endpoint.mjs +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +11 -11
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-D8pQJSug.mjs → media-4xtXwq7L.mjs} +1 -1
- package/dist/{media-allowlist-9u_gxMG2.mjs → media-allowlist-BdbIzYO3.mjs} +1 -1
- package/dist/{menus-3B-PGTX3.mjs → menus-CRmcWAM5.mjs} +2 -2
- package/dist/{menus-DSWeEWXl.mjs → menus-Cu3TUXyl.mjs} +6 -6
- package/dist/{oauth-authorization-CMU5kREy.mjs → oauth-authorization-TG2Kxgur.mjs} +5 -5
- package/dist/{oauth-clients-CLdR0WyA.mjs → oauth-clients-DLJMG4h7.mjs} +2 -2
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/page/index.d.mts +10 -10
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-DEG06jjr.mjs → parse-CJC9DGe9.mjs} +1 -1
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-D8YxTh9q.mjs → plugins-BC9Rb6PJ.mjs} +6 -6
- package/dist/{preview-Bn59ztjn.mjs → preview-CjL_29aE.mjs} +3 -3
- package/dist/{provider-loader-jdkZM6xZ.d.mts → provider-loader-CGoW_-Bs.d.mts} +1 -1
- package/dist/public-discovery-CyDzK1-S.mjs +30 -0
- package/dist/{public-url-DifBmsDt.d.mts → public-url-BPnL5sTj.d.mts} +1 -1
- package/dist/public-url-DjWfilkD.mjs +46 -0
- package/dist/{public-url-DFX2c_20.d.mts → public-url-UpDevWVD.d.mts} +17 -2
- package/dist/{publication-authorization-BmazS4K0.mjs → publication-authorization-Bq4B0KIL.mjs} +15 -10
- package/dist/{query-CrUftarl.mjs → query-BAfn0Uxp.mjs} +13 -13
- package/dist/{query-DPC5GT6e.mjs → query-MvFwA1uK.mjs} +3 -3
- package/dist/{rate-limit-DvGL45wH.mjs → rate-limit-JhnJUEno.mjs} +2 -2
- package/dist/{redirect-8B-gorhg.mjs → redirect-CnG6nJ4H.mjs} +2 -2
- package/dist/{redirects-DdPaQiWQ.mjs → redirects-C9pg6Dcg.mjs} +6 -2
- package/dist/{redirects-D2SVS1zo.mjs → redirects-lCwNKPUn.mjs} +5 -5
- package/dist/{registry-D3n4-yUl.mjs → registry-QxrUJAWY.mjs} +14 -8
- package/dist/{request-meta-DZTiCIQR.mjs → request-meta-DnZm9Kbu.mjs} +1 -1
- package/dist/{review-payload-BysRWpxS.mjs → review-payload-BuLgXTY6.mjs} +1 -1
- package/dist/{review-requests-D5CJ4JCy.mjs → review-requests-DaYnr3XR.mjs} +1 -1
- package/dist/{review-requests-BQbmYLnz.mjs → review-requests-uI-yUXcr.mjs} +2 -2
- package/dist/{review-route-helpers-DYiujAPM.mjs → review-route-helpers-BvX04ahf.mjs} +2 -2
- package/dist/revision-De7OmYVD.mjs +118 -0
- package/dist/{runner-BWZ87FK-.mjs → runner-CQnzfBpD.mjs} +475 -461
- package/dist/{runner-BITx7yBF.d.mts → runner-o39FihbH.d.mts} +1 -1
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +3 -3
- package/dist/schema-CD3EA3nN.mjs +8 -0
- package/dist/{search-B_ir6H6m.mjs → search-BtCHwx_Z.mjs} +3 -3
- package/dist/{secrets-Dw3lXI42.mjs → secrets-MqvM60s_.mjs} +2 -2
- package/dist/{sections-pRy07N5I.mjs → sections-BM88PvRO.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +22 -20
- package/dist/seo/index.d.mts +4 -4
- package/dist/seo/index.mjs +9 -7
- package/dist/{seo-C4nlxiaY.mjs → seo-BhMH6i2e.mjs} +1 -1
- package/dist/{seo-DdNntVj-.mjs → seo-CTXMR4YD.mjs} +1 -1
- package/dist/{service-D6fJX7D7.mjs → service-evnf21UO.mjs} +2 -2
- package/dist/{settings-D-a7uy2z.mjs → settings-CCqefqC9.mjs} +6 -6
- package/dist/{settings-C4OMR0zf.mjs → settings-COtVNdOx.mjs} +2 -2
- package/dist/{setup-complete-Blqo_adb.mjs → setup-complete-C8LTo8cO.mjs} +1 -1
- package/dist/{site-activity-CnrmnFRy.mjs → site-activity-kfZ9X0no.mjs} +1 -1
- package/dist/{site-context-Bdsobbh9.mjs → site-context-D2DmqFnD.mjs} +15 -15
- package/dist/{site-url-CK5vBdFu.mjs → site-url-AGgA46Lw.mjs} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{store-DerEE3jG.mjs → store-BtCoeap4.mjs} +1 -1
- package/dist/{taxonomies-6bWkaa_G.mjs → taxonomies-DxtqEjcj.mjs} +3 -3
- package/dist/{taxonomies-FKTevd14.mjs → taxonomies-xvaQ7gVM.mjs} +6 -6
- package/dist/{taxonomy-BU0eCfij.mjs → taxonomy--vcXXfwc.mjs} +2 -2
- package/dist/{types-C8cUW9dh.d.mts → types-B2W3CeZN.d.mts} +1 -0
- package/dist/{types-BkQ-l1Y5.d.mts → types-BcpWwh4c.d.mts} +51 -24
- package/dist/{types-C9F2TLQV.mjs → types-CFvpEEOl.mjs} +1 -1
- package/dist/{types-B2kbOwSj.d.mts → types-Cd_2Jeqp.d.mts} +12 -1
- package/dist/{types-B6r_SMeR.d.mts → types-m37xNtUj.d.mts} +1 -1
- package/dist/ui/server-runtime.d.mts +13 -13
- package/dist/ui/server-runtime.mjs +23 -22
- package/dist/{user-BV02bsWz.mjs → user-Dn3wV227.mjs} +2 -2
- package/dist/{utils-BPzpVHqR.mjs → utils-iGiCys50.mjs} +1 -1
- package/dist/{validate-Drps_jbV.mjs → validate-BHVQSpUy.mjs} +8 -2
- package/dist/{validate-Bc9gaua6.d.mts → validate-BiPYhXNZ.d.mts} +4 -3
- package/dist/version-BbuynKOY.mjs +6 -0
- package/dist/{widgets-BFqy7PYs.mjs → widgets-CBCHUg_u.mjs} +3 -3
- package/dist/{wordpress-slugs-fMvfO22_.mjs → wordpress-slugs-BYW2B_5x.mjs} +1 -1
- package/dist/{zod-generator-BlY_vGgR.mjs → zod-generator-DMlY4cI3.mjs} +2 -2
- package/package.json +11 -4
- package/src/components/DinewayImage.astro +4 -0
- package/dist/schema-kk9-6bUd.mjs +0 -8
- package/dist/version-BohmuXyf.mjs +0 -6
- /package/dist/{actor-D3A5PNkH.mjs → actor-BraTCiOp.mjs} +0 -0
- /package/dist/{api-tokens-CbMAy6xF.mjs → api-tokens-CZ472rzA.mjs} +0 -0
- /package/dist/{challenge-store-DtdQHXf5.mjs → challenge-store-ugPhBaVf.mjs} +0 -0
- /package/dist/{components-DGu-rih7.mjs → components-CINP4h-l.mjs} +0 -0
- /package/dist/{context-types-eBuMDAg-.mjs → context-types-fEeyXC1D.mjs} +0 -0
- /package/dist/{cron-BjKHo0QD.mjs → cron-DIsnItPn.mjs} +0 -0
- /package/dist/{default-CO47mlSA.mjs → default-D8jeKsT3.mjs} +0 -0
- /package/dist/{email-console-CFE1ay18.mjs → email-console-DRb6jkoC.mjs} +0 -0
- /package/dist/{error-Jz0EtEwI.mjs → error-BPA9T0AW.mjs} +0 -0
- /package/dist/{escape-HmHTC1Is.mjs → escape-DgNqnHuj.mjs} +0 -0
- /package/dist/{experimental-workflows-EYZRNkRR.mjs → experimental-workflows-DOo7QDRn.mjs} +0 -0
- /package/dist/{hash-mxxx2oPW.mjs → hash-CEky-IDp.mjs} +0 -0
- /package/dist/{media-url-DVoOhf4X.mjs → media-url-BhbJfG3Y.mjs} +0 -0
- /package/dist/{mime-C0vOHFm7.mjs → mime-Bg7yUeHW.mjs} +0 -0
- /package/dist/{mode-DqpBaEOy.mjs → mode-CgD_xAEJ.mjs} +0 -0
- /package/dist/{normalize-Cyt7JdF7.mjs → normalize-BY2gOygP.mjs} +0 -0
- /package/dist/{oauth-state-store-HdGg_nSm.mjs → oauth-state-store-Dbj-J0K5.mjs} +0 -0
- /package/dist/{oauth-user-lookup-CP16vyFW.mjs → oauth-user-lookup-D2NAYPjU.mjs} +0 -0
- /package/dist/{options-DQPTH5n0.mjs → options-1dBRkoCl.mjs} +0 -0
- /package/dist/{output-CXOC3BFr.mjs → output-A4ZfzzA0.mjs} +0 -0
- /package/dist/{parser-buoH2frr.mjs → parser-C3ux7a3Y.mjs} +0 -0
- /package/dist/{passkey-config-T47FwLtS.mjs → passkey-config-DUc1iP_-.mjs} +0 -0
- /package/dist/{patterns-CoqlXUvk.mjs → patterns-CP9gkiCE.mjs} +0 -0
- /package/dist/{placeholder-BsYSFPjY.d.mts → placeholder-0cGpMonY.d.mts} +0 -0
- /package/dist/{portable-text-Dm0bgrdZ.d.mts → portable-text-Cu4n_8zI.d.mts} +0 -0
- /package/dist/{portable-text-DQHE3b5v.mjs → portable-text-U85hOafW.mjs} +0 -0
- /package/dist/{process-cache-CCDgti7j.mjs → process-cache-DsMwJ3LM.mjs} +0 -0
- /package/dist/{provider-loader-Dxka0BDp.mjs → provider-loader-BPHG3BR5.mjs} +0 -0
- /package/dist/{public-url-CIAtNGEg.mjs → public-url-CmBKcpsJ.mjs} +0 -0
- /package/dist/{redirect-CzqnLxK-.mjs → redirect-D_bb_Cc3.mjs} +0 -0
- /package/dist/{request-cache-CBFjCwSt.mjs → request-cache-DoT2mKBT.mjs} +0 -0
- /package/dist/{resolve-CThKf9_X.mjs → resolve-BDWXnk_V.mjs} +0 -0
- /package/dist/{seo-contributions-BGBehNCN.mjs → seo-contributions-DzusM9lG.mjs} +0 -0
- /package/dist/{service-DOdvCW-9.mjs → service-BB1n90wh.mjs} +0 -0
- /package/dist/{session-user-CYjNeJoD.mjs → session-user-BQZHuGOS.mjs} +0 -0
- /package/dist/{setup-nonce-CGUTFWgQ.mjs → setup-nonce-220YhE1R.mjs} +0 -0
- /package/dist/{sidecar-client-C6ylL-0S.mjs → sidecar-client-SDgPreXV.mjs} +0 -0
- /package/dist/{ssrf-Dz2hqAiG.mjs → ssrf-D00lPvtF.mjs} +0 -0
- /package/dist/{stable-hash-DshcXvRE.mjs → stable-hash-_A3p1ln2.mjs} +0 -0
- /package/dist/{status-xz9JACSX.mjs → status-BdZSXIP_.mjs} +0 -0
- /package/dist/{tokens-DiodRT2y.mjs → tokens-ShJZm_QS.mjs} +0 -0
- /package/dist/{transaction-Chz7SBGr.mjs → transaction-L0tzAOfM.mjs} +0 -0
- /package/dist/{transport-zquJ7Bzm.mjs → transport-DtrY0-hI.mjs} +0 -0
- /package/dist/{transport-DKy93p6V.d.mts → transport-SoRbXDM4.d.mts} +0 -0
- /package/dist/{trusted-proxy-NySPw95m.mjs → trusted-proxy-9b2fSXK2.mjs} +0 -0
- /package/dist/{types-DY9lJRpo.d.mts → types-B-KSspMO.d.mts} +0 -0
- /package/dist/{types-ftxcMx5-.mjs → types-B-nDjnzA.mjs} +0 -0
- /package/dist/{types-C2LBO0t8.d.mts → types-BdsNqnHA.d.mts} +0 -0
- /package/dist/{types-B7TDDFMG.mjs → types-D1l9cCKM.mjs} +0 -0
- /package/dist/{types-Gd4kXLsa.d.mts → types-D8iukuuI.d.mts} +0 -0
- /package/dist/{types-BaKec6bx.d.mts → types-ZdWRfUsC.d.mts} +0 -0
- /package/dist/{types-C1LdZbQb.mjs → types-dgGPmsl_.mjs} +0 -0
- /package/dist/{url-guoXQQcV.mjs → url-C_pLSrGZ.mjs} +0 -0
- /package/dist/{url-C05Zz4pW.mjs → url-CmjWycVK.mjs} +0 -0
package/dist/media/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as MediaValue, a as ComponentEmbed, b as mediaItemToValue, c as EmbedResult, d as MediaListResult, f as MediaProvider, g as MediaUploadInput, h as MediaProviderItem, i as AudioEmbed, l as ImageEmbed, m as MediaProviderDescriptor, n as generatePlaceholder, o as CreateMediaProviderFn, p as MediaProviderCapabilities, r as normalizeMediaValue, s as EmbedOptions, t as PlaceholderData, u as MediaListOptions, v as ThumbnailOptions, y as VideoEmbed } from "../placeholder-
|
|
1
|
+
import { _ as MediaValue, a as ComponentEmbed, b as mediaItemToValue, c as EmbedResult, d as MediaListResult, f as MediaProvider, g as MediaUploadInput, h as MediaProviderItem, i as AudioEmbed, l as ImageEmbed, m as MediaProviderDescriptor, n as generatePlaceholder, o as CreateMediaProviderFn, p as MediaProviderCapabilities, r as normalizeMediaValue, s as EmbedOptions, t as PlaceholderData, u as MediaListOptions, v as ThumbnailOptions, y as VideoEmbed } from "../placeholder-0cGpMonY.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/media/enrich.d.ts
|
|
4
4
|
/**
|
package/dist/media/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as normalizeMediaValue } from "../normalize-
|
|
2
|
-
import { n as generatePlaceholder, t as enrichImageMetadata } from "../enrich-
|
|
1
|
+
import { n as normalizeMediaValue } from "../normalize-BY2gOygP.mjs";
|
|
2
|
+
import { n as generatePlaceholder, t as enrichImageMetadata } from "../enrich-Uw_OA9Ve.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/media/types.ts
|
|
5
5
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import { t as Database } from "../types-
|
|
3
|
-
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-
|
|
4
|
-
import "../runner-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../types-
|
|
7
|
-
import { d as Storage } from "../types-
|
|
8
|
-
import "../public-url-
|
|
9
|
-
import "../validate-
|
|
10
|
-
import "../byline-fields-
|
|
11
|
-
import "../types-
|
|
1
|
+
import "../types-BcpWwh4c.mjs";
|
|
2
|
+
import { t as Database } from "../types-B2W3CeZN.mjs";
|
|
3
|
+
import { h as MediaProviderItem, o as CreateMediaProviderFn } from "../placeholder-0cGpMonY.mjs";
|
|
4
|
+
import "../runner-o39FihbH.mjs";
|
|
5
|
+
import "../index-DNNw5fp0.mjs";
|
|
6
|
+
import "../types-BdsNqnHA.mjs";
|
|
7
|
+
import { d as Storage } from "../types-D8iukuuI.mjs";
|
|
8
|
+
import "../public-url-UpDevWVD.mjs";
|
|
9
|
+
import "../validate-BiPYhXNZ.mjs";
|
|
10
|
+
import "../byline-fields-BJ5_tYj8.mjs";
|
|
11
|
+
import "../types-ZdWRfUsC.mjs";
|
|
12
12
|
import "../index.mjs";
|
|
13
13
|
import { Kysely } from "kysely";
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../base64-F8-DUraK.mjs";
|
|
2
|
-
import "../types-
|
|
3
|
-
import { t as MediaRepository } from "../media-
|
|
2
|
+
import "../types-CFvpEEOl.mjs";
|
|
3
|
+
import { t as MediaRepository } from "../media-4xtXwq7L.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/media/local-runtime.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CQnzfBpD.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "./config-CVssduLe.mjs";
|
|
3
3
|
import { c as invalidateMenuObjectCache } from "./object-cache-D51qOseS.mjs";
|
|
4
|
-
import { t as withTransaction } from "./transaction-
|
|
4
|
+
import { t as withTransaction } from "./transaction-L0tzAOfM.mjs";
|
|
5
5
|
import { ulid } from "ulidx";
|
|
6
6
|
|
|
7
7
|
//#region src/database/repositories/menu.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
2
|
+
import { r as getDb } from "./loader-CsX5pTud.mjs";
|
|
3
3
|
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
4
|
-
import { t as CommentRepository } from "./comment-
|
|
5
|
-
import { r as requestCached } from "./request-cache-
|
|
6
|
-
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-
|
|
7
|
-
import { n as sanitizeHref } from "./url-
|
|
8
|
-
import { t as CommentReactionRepository } from "./comment-reaction-
|
|
4
|
+
import { t as CommentRepository } from "./comment-DuDtCn-f.mjs";
|
|
5
|
+
import { r as requestCached } from "./request-cache-DoT2mKBT.mjs";
|
|
6
|
+
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-BDWXnk_V.mjs";
|
|
7
|
+
import { n as sanitizeHref } from "./url-CmjWycVK.mjs";
|
|
8
|
+
import { t as CommentReactionRepository } from "./comment-reaction-NZjadbiB.mjs";
|
|
9
9
|
import { sql } from "kysely";
|
|
10
10
|
|
|
11
11
|
//#region src/comments/ranking.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as withTransaction } from "./transaction-
|
|
2
|
-
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-
|
|
3
|
-
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
4
|
-
import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-
|
|
5
|
-
import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-
|
|
1
|
+
import { t as withTransaction } from "./transaction-L0tzAOfM.mjs";
|
|
2
|
+
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-CZ472rzA.mjs";
|
|
3
|
+
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-DOo7QDRn.mjs";
|
|
4
|
+
import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-DLJMG4h7.mjs";
|
|
5
|
+
import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-D2NAYPjU.mjs";
|
|
6
6
|
import { clampScopes, computeS256Challenge, secureCompare } from "@dineway-ai/auth";
|
|
7
7
|
import { generateCodeVerifier } from "arctic";
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as validateScopes } from "./api-tokens-
|
|
2
|
-
import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
1
|
+
import { s as validateScopes } from "./api-tokens-CZ472rzA.mjs";
|
|
2
|
+
import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-DOo7QDRn.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/oauth/redirect-uri.ts
|
|
5
5
|
/**
|
package/dist/page/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Dt as PublicSchemaNode, Et as PublicPageSchema, F as PageMetadataContribution, M as PageFragmentContribution, Tt as PublicPageImage, wt as PublicPageContext } from "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../public-url-
|
|
7
|
-
import "../validate-
|
|
8
|
-
import "../byline-fields-
|
|
9
|
-
import "../types-
|
|
10
|
-
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-
|
|
1
|
+
import { Dt as PublicSchemaNode, Et as PublicPageSchema, F as PageMetadataContribution, M as PageFragmentContribution, Tt as PublicPageImage, wt as PublicPageContext } from "../types-BcpWwh4c.mjs";
|
|
2
|
+
import "../types-B2W3CeZN.mjs";
|
|
3
|
+
import "../runner-o39FihbH.mjs";
|
|
4
|
+
import "../index-DNNw5fp0.mjs";
|
|
5
|
+
import "../types-BdsNqnHA.mjs";
|
|
6
|
+
import "../public-url-UpDevWVD.mjs";
|
|
7
|
+
import "../validate-BiPYhXNZ.mjs";
|
|
8
|
+
import "../byline-fields-BJ5_tYj8.mjs";
|
|
9
|
+
import "../types-ZdWRfUsC.mjs";
|
|
10
|
+
import { _ as CreatePublicPageContextInput, a as generateSiteSeoContributions, c as ResolvedPageMetadata, d as renderPageMetadata, f as resolvePageMetadata, g as resolvePageImage, h as imageMetadataContributions, i as generateBaseSeoContributions, l as createSha256CspHash, m as mergePageSchema, n as buildWebSiteJsonLd, o as renderFragments, p as safeJsonLdSerialize, r as cleanJsonLd, s as resolveFragments, t as buildBlogPostingJsonLd, u as escapeHtmlAttr, v as createPublicPageContext } from "../jsonld-CxMRDv02.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/page/index.d.ts
|
|
13
13
|
/**
|
package/dist/page/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as createPublicPageContext, a as createSha256CspHash, c as resolvePageMetadata, d as buildBlogPostingJsonLd, f as buildWebSiteJsonLd, h as resolvePageImage, i as resolveFragments, l as safeJsonLdSerialize, m as imageMetadataContributions, n as generateSiteSeoContributions, o as escapeHtmlAttr, p as cleanJsonLd, r as renderFragments, s as renderPageMetadata, t as generateBaseSeoContributions, u as mergePageSchema } from "../seo-contributions-
|
|
1
|
+
import { _ as createPublicPageContext, a as createSha256CspHash, c as resolvePageMetadata, d as buildBlogPostingJsonLd, f as buildWebSiteJsonLd, h as resolvePageImage, i as resolveFragments, l as safeJsonLdSerialize, m as imageMetadataContributions, n as generateSiteSeoContributions, o as escapeHtmlAttr, p as cleanJsonLd, r as renderFragments, s as renderPageMetadata, t as generateBaseSeoContributions, u as mergePageSchema } from "../seo-contributions-DzusM9lG.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/page/index.ts
|
|
4
4
|
/**
|
package/dist/plugin-utils.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./runner-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./public-url-
|
|
7
|
-
import "./validate-
|
|
8
|
-
import "./byline-fields-
|
|
9
|
-
import "./types-
|
|
1
|
+
import "./types-BcpWwh4c.mjs";
|
|
2
|
+
import "./types-B2W3CeZN.mjs";
|
|
3
|
+
import "./runner-o39FihbH.mjs";
|
|
4
|
+
import "./index-DNNw5fp0.mjs";
|
|
5
|
+
import "./types-BdsNqnHA.mjs";
|
|
6
|
+
import "./public-url-UpDevWVD.mjs";
|
|
7
|
+
import "./validate-BiPYhXNZ.mjs";
|
|
8
|
+
import "./byline-fields-BJ5_tYj8.mjs";
|
|
9
|
+
import "./types-ZdWRfUsC.mjs";
|
|
10
10
|
import { DinewayHandlers } from "./astro/types.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/plugin-utils.d.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../types-
|
|
6
|
-
import "../public-url-
|
|
7
|
-
import "../validate-
|
|
8
|
-
import "../byline-fields-
|
|
9
|
-
import "../types-
|
|
1
|
+
import { Ft as StandardPluginDefinition, ko as PluginDescriptor, kt as ResolvedPlugin } from "../types-BcpWwh4c.mjs";
|
|
2
|
+
import "../types-B2W3CeZN.mjs";
|
|
3
|
+
import "../runner-o39FihbH.mjs";
|
|
4
|
+
import "../index-DNNw5fp0.mjs";
|
|
5
|
+
import "../types-BdsNqnHA.mjs";
|
|
6
|
+
import "../public-url-UpDevWVD.mjs";
|
|
7
|
+
import "../validate-BiPYhXNZ.mjs";
|
|
8
|
+
import "../byline-fields-BJ5_tYj8.mjs";
|
|
9
|
+
import "../types-ZdWRfUsC.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/plugins/adapt-sandbox-entry.d.ts
|
|
12
12
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as validatePluginIdentifier, t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
2
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-F8-DUraK.mjs";
|
|
3
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
4
|
-
import { t as OptionsRepository } from "./options-
|
|
5
|
-
import { n as createPluginContext, t as PluginContextFactory } from "./context-
|
|
6
|
-
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-
|
|
7
|
-
import { t as extractRequestMeta } from "./request-meta-
|
|
8
|
-
import { r as setCronTasksEnabled } from "./cron-
|
|
3
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bw3_BuVW.mjs";
|
|
4
|
+
import { t as OptionsRepository } from "./options-1dBRkoCl.mjs";
|
|
5
|
+
import { n as createPluginContext, t as PluginContextFactory } from "./context-BET1jeas.mjs";
|
|
6
|
+
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-MqvM60s_.mjs";
|
|
7
|
+
import { t as extractRequestMeta } from "./request-meta-DnZm9Kbu.mjs";
|
|
8
|
+
import { r as setCronTasksEnabled } from "./cron-DIsnItPn.mjs";
|
|
9
9
|
import { Migrator, sql } from "kysely";
|
|
10
10
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as loadBetterSqlite3, t as createDatabase } from "./connection-
|
|
1
|
+
import { n as loadBetterSqlite3, t as createDatabase } from "./connection-DJ3GzHVH.mjs";
|
|
2
2
|
import { runWithContext } from "./request-context.mjs";
|
|
3
|
-
import { a as verifyPreviewSignature, t as buildPreviewSignatureHeader } from "./sidecar-client-
|
|
4
|
-
import { t as generatePreviewToken } from "./tokens-
|
|
3
|
+
import { a as verifyPreviewSignature, t as buildPreviewSignatureHeader } from "./sidecar-client-SDgPreXV.mjs";
|
|
4
|
+
import { t as generatePreviewToken } from "./tokens-ShJZm_QS.mjs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
import { ulid } from "ulidx";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schema/public-discovery.ts
|
|
4
|
+
/** A declared discovery boundary, not an authorization policy for CMS reads. */
|
|
5
|
+
const publicDiscoveryRulesSchema = z.object({
|
|
6
|
+
excludeIfTrue: z.array(z.string().min(1).max(63).regex(/^[a-z][a-z0-9_]*$/)).max(16).refine((fields) => new Set(fields).size === fields.length, "Discovery fields must be unique").optional(),
|
|
7
|
+
requireLiveRevision: z.boolean().optional()
|
|
8
|
+
}).strict();
|
|
9
|
+
function parsePublicDiscoveryRules(value) {
|
|
10
|
+
return publicDiscoveryRulesSchema.parse(value);
|
|
11
|
+
}
|
|
12
|
+
/** Reject stale declarations before either SQL discovery or snapshot eligibility runs. */
|
|
13
|
+
function publicDiscoveryExclusions(collection) {
|
|
14
|
+
const exclusions = (collection.publicDiscovery && parsePublicDiscoveryRules(collection.publicDiscovery))?.excludeIfTrue ?? [];
|
|
15
|
+
for (const field of exclusions) if (!collection.fields.some((candidate) => candidate.slug === field && candidate.type === "boolean")) throw new Error(`Public discovery for ${collection.slug} requires boolean field ${field}`);
|
|
16
|
+
return exclusions;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Apply declared exclusions to a native Live record or pre-mutation snapshot.
|
|
20
|
+
* Callers must separately check published/deleted status, SEO and canonical URLs.
|
|
21
|
+
* This does not authorize CMS access or make a Draft snapshot public.
|
|
22
|
+
*/
|
|
23
|
+
function satisfiesPublicDiscoveryRules(collection, content) {
|
|
24
|
+
const exclusions = publicDiscoveryExclusions(collection);
|
|
25
|
+
if (collection.publicDiscovery?.requireLiveRevision && !content.liveRevisionId) return false;
|
|
26
|
+
return exclusions.every((field) => content.data[field] == null || content.data[field] === false || content.data[field] === 0);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { satisfiesPublicDiscoveryRules as i, publicDiscoveryExclusions as n, publicDiscoveryRulesSchema as r, parsePublicDiscoveryRules as t };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/seo/public-url.ts
|
|
2
|
+
const PLACEHOLDER_RE = /\{[^}]+\}/;
|
|
3
|
+
const MULTIPLE_SLASHES_RE = /\/+/g;
|
|
4
|
+
const UNSAFE_SLUG_RE = /[\\/?#\s]/;
|
|
5
|
+
const UNSAFE_PATH_RE = /[\\?#\s]/;
|
|
6
|
+
const DOT_SEGMENT_RE = /(?:^|\/)\.{1,2}(?:\/|$)/;
|
|
7
|
+
/**
|
|
8
|
+
* Returns a same-origin public URL, or null when the collection has no usable route.
|
|
9
|
+
* urlField paths are authoritative, including case, trailing slash and locale prefix.
|
|
10
|
+
* Pattern routes add locale prefixes and preserve the declared slash convention. Never infer a route from
|
|
11
|
+
* a collection name when the site has not declared one.
|
|
12
|
+
*/
|
|
13
|
+
function resolveContentUrl(input) {
|
|
14
|
+
const { cfg, urlField, urlPattern } = input;
|
|
15
|
+
const locale = input.locale || cfg?.defaultLocale;
|
|
16
|
+
if (cfg && (!locale || !cfg.locales.includes(locale))) return null;
|
|
17
|
+
let path;
|
|
18
|
+
if (urlField) {
|
|
19
|
+
const value = input.data?.[urlField];
|
|
20
|
+
if (typeof value !== "string" || !value) return null;
|
|
21
|
+
path = value;
|
|
22
|
+
} else {
|
|
23
|
+
if (!urlPattern?.includes("{slug}") || !input.slug || UNSAFE_SLUG_RE.test(input.slug)) return null;
|
|
24
|
+
if (input.slug === "." || input.slug === "..") return null;
|
|
25
|
+
path = urlPattern.replaceAll("{slug}", encodeURIComponent(input.slug));
|
|
26
|
+
if (PLACEHOLDER_RE.test(path)) return null;
|
|
27
|
+
if (!path.startsWith("/")) path = `/${path}`;
|
|
28
|
+
if (path.startsWith("//")) return null;
|
|
29
|
+
path = path.replace(MULTIPLE_SLASHES_RE, "/");
|
|
30
|
+
if (cfg && (locale !== cfg.defaultLocale || cfg.prefixDefaultLocale)) path = `/${locale}${path}`;
|
|
31
|
+
}
|
|
32
|
+
if (!path.startsWith("/") || path.startsWith("//") || UNSAFE_PATH_RE.test(path)) return null;
|
|
33
|
+
try {
|
|
34
|
+
if (DOT_SEGMENT_RE.test(decodeURIComponent(path))) return null;
|
|
35
|
+
const origin = new URL(input.siteUrl);
|
|
36
|
+
if (!["http:", "https:"].includes(origin.protocol) || origin.username || origin.password) return null;
|
|
37
|
+
const url = new URL(path, origin.origin);
|
|
38
|
+
if (url.origin !== origin.origin) return null;
|
|
39
|
+
return url.href;
|
|
40
|
+
} catch {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { resolveContentUrl as t };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as CollectionWithFields } from "./types-Cd_2Jeqp.mjs";
|
|
2
|
+
import { t as Database } from "./types-B2W3CeZN.mjs";
|
|
2
3
|
import { Kysely } from "kysely";
|
|
4
|
+
import { z } from "zod";
|
|
3
5
|
|
|
4
6
|
//#region src/i18n/config.d.ts
|
|
5
7
|
/**
|
|
@@ -77,6 +79,19 @@ declare function listPublicContent(db: Kysely<Database>, options: PublicContentO
|
|
|
77
79
|
/** Resolve an explicit canonical without inventing path case or slash rules. */
|
|
78
80
|
declare function resolveCanonicalUrl(value: string, siteUrl?: string): string | null;
|
|
79
81
|
//#endregion
|
|
82
|
+
//#region src/schema/public-discovery.d.ts
|
|
83
|
+
type DiscoveryCollection = Pick<CollectionWithFields, "slug" | "fields" | "publicDiscovery">;
|
|
84
|
+
/** Reject stale declarations before either SQL discovery or snapshot eligibility runs. */
|
|
85
|
+
/**
|
|
86
|
+
* Apply declared exclusions to a native Live record or pre-mutation snapshot.
|
|
87
|
+
* Callers must separately check published/deleted status, SEO and canonical URLs.
|
|
88
|
+
* This does not authorize CMS access or make a Draft snapshot public.
|
|
89
|
+
*/
|
|
90
|
+
declare function satisfiesPublicDiscoveryRules(collection: DiscoveryCollection, content: {
|
|
91
|
+
data: Record<string, unknown>;
|
|
92
|
+
liveRevisionId?: unknown;
|
|
93
|
+
}): boolean;
|
|
94
|
+
//#endregion
|
|
80
95
|
//#region src/seo/public-url.d.ts
|
|
81
96
|
/** Collection routing accepts a complete stored path or a conventional slug pattern. */
|
|
82
97
|
interface ResolveContentUrlInput {
|
|
@@ -96,4 +111,4 @@ interface ResolveContentUrlInput {
|
|
|
96
111
|
*/
|
|
97
112
|
declare function resolveContentUrl(input: ResolveContentUrlInput): string | null;
|
|
98
113
|
//#endregion
|
|
99
|
-
export {
|
|
114
|
+
export { PublicContentEntry as a, I18nConfig as c, isI18nEnabled as d, resolveCanonicalUrl as i, getFallbackChain as l, resolveContentUrl as n, PublicContentOptions as o, satisfiesPublicDiscoveryRules as r, listPublicContent as s, ResolveContentUrlInput as t, getI18nConfig as u };
|
package/dist/{publication-authorization-BmazS4K0.mjs → publication-authorization-Bq4B0KIL.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
2
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
3
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
4
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
5
|
-
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-
|
|
6
|
-
import { t as SYSTEM_ACTOR_ID } from "./actor-
|
|
7
|
-
import { n as redactActivityRecord } from "./activity-
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CFvpEEOl.mjs";
|
|
2
|
+
import { t as SiteActivityRepository } from "./site-activity-kfZ9X0no.mjs";
|
|
3
|
+
import { t as ReviewRequestRepository } from "./review-requests-DaYnr3XR.mjs";
|
|
4
|
+
import { a as getSiteSettingsWithDb } from "./settings-CCqefqC9.mjs";
|
|
5
|
+
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-BuLgXTY6.mjs";
|
|
6
|
+
import { t as SYSTEM_ACTOR_ID } from "./actor-BraTCiOp.mjs";
|
|
7
|
+
import { n as redactActivityRecord } from "./activity-DWlF3FUa.mjs";
|
|
8
8
|
import { ulid } from "ulidx";
|
|
9
9
|
|
|
10
10
|
//#region src/database/repositories/content-release-grants.ts
|
|
@@ -13,7 +13,7 @@ var ContentReleaseGrantRepository = class {
|
|
|
13
13
|
this.db = db;
|
|
14
14
|
}
|
|
15
15
|
async createOrReplaceActive(input) {
|
|
16
|
-
|
|
16
|
+
const operation = async (transaction) => {
|
|
17
17
|
const existing = await findActiveForTarget(transaction, input.collection, input.entryId, input.operation);
|
|
18
18
|
if (existing?.actionHash === input.actionHash) return existing;
|
|
19
19
|
const now = input.createdAt ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -31,11 +31,16 @@ var ContentReleaseGrantRepository = class {
|
|
|
31
31
|
const created = await findById(transaction, id);
|
|
32
32
|
if (!created) throw new Error("Failed to create content release grant");
|
|
33
33
|
return created;
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
|
+
return this.db.isTransaction ? operation(this.db) : this.db.transaction().execute(operation);
|
|
35
36
|
}
|
|
36
37
|
async findById(id) {
|
|
37
38
|
return findById(this.db, id);
|
|
38
39
|
}
|
|
40
|
+
async findConfirmedPublication(input) {
|
|
41
|
+
const row = await this.db.selectFrom("_dineway_content_release_grants").selectAll().where("collection", "=", input.collection).where("entry_id", "=", input.entryId).where("reviewed_rev", "=", input.reviewedRev).where("draft_revision_id", "=", input.draftRevisionId).where("live_revision_id", input.liveRevisionId === null ? "is" : "=", input.liveRevisionId).where("operation", "=", "publish").where("status", "=", "consumed").where("authorization_method", "=", "human_action").where("authorized_by_actor_type", "=", "user").where("authorized_by_actor_id", "=", input.actorId).orderBy("created_at", "desc").orderBy("id", "desc").executeTakeFirst();
|
|
42
|
+
return row ? rowToGrant(row) : null;
|
|
43
|
+
}
|
|
39
44
|
async findActiveForTarget(collection, entryId, operation) {
|
|
40
45
|
return findActiveForTarget(this.db, collection, entryId, operation);
|
|
41
46
|
}
|
|
@@ -1153,4 +1158,4 @@ function errorReason(error) {
|
|
|
1153
1158
|
}
|
|
1154
1159
|
|
|
1155
1160
|
//#endregion
|
|
1156
|
-
export {
|
|
1161
|
+
export { HITL_REQUEST_PRIORITIES as a, ContentReleaseGrantRepository as c, ReleasePayloadBuilder as i, PublicationAuthorizationService as n, HITL_REQUEST_STATUSES as o, publicationReceipt as r, HitlRequestRepository as s, PublicationAuthorizationError as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CQnzfBpD.mjs";
|
|
2
2
|
import { n as getI18nConfig, r as isI18nEnabled, t as getFallbackChain } from "./config-CVssduLe.mjs";
|
|
3
3
|
import { getRequestContext } from "./request-context.mjs";
|
|
4
|
-
import { i as encodeCursor } from "./types-
|
|
5
|
-
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-
|
|
4
|
+
import { i as encodeCursor } from "./types-CFvpEEOl.mjs";
|
|
5
|
+
import { o as isMissingTableError, s as takeLiveCollectionMeta, t as CURSOR_RAW_VALUES } from "./loader-CsX5pTud.mjs";
|
|
6
6
|
import { i as contentNamespaces, n as cachedQuery, u as invalidateSchemaObjectCache } from "./object-cache-D51qOseS.mjs";
|
|
7
|
-
import { r as requestCached } from "./request-cache-
|
|
7
|
+
import { r as requestCached } from "./request-cache-DoT2mKBT.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/visual-editing/editable.ts
|
|
10
10
|
/**
|
|
@@ -596,9 +596,9 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
596
596
|
let needsQueryPath = parsed.some((item) => item.credits.length === 0 && (dataStr(item.data, "authorId") !== "" || dataStr(item.data, "primaryBylineId") !== ""));
|
|
597
597
|
let hasCustomFields = false;
|
|
598
598
|
if (!needsQueryPath) try {
|
|
599
|
-
const { getDb } = await import("./loader-
|
|
599
|
+
const { getDb } = await import("./loader-CsX5pTud.mjs").then((n) => n.i);
|
|
600
600
|
const db = await getDb();
|
|
601
|
-
const { getBylineFieldDefs } = await import("./field-defs-cache-
|
|
601
|
+
const { getBylineFieldDefs } = await import("./field-defs-cache-BIHTU5Yj.mjs").then((n) => n.t);
|
|
602
602
|
hasCustomFields = (await getBylineFieldDefs(db)).length > 0;
|
|
603
603
|
} catch (error) {
|
|
604
604
|
if (!isMissingTableError(error)) needsQueryPath = true;
|
|
@@ -612,7 +612,7 @@ async function hydrateEntryBylines(type, entries) {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
try {
|
|
615
|
-
const { getBylinesForEntries } = await import("./bylines-
|
|
615
|
+
const { getBylinesForEntries } = await import("./bylines-CL8Z6AxI.mjs").then((n) => n.t);
|
|
616
616
|
const refs = entries.map((entry) => {
|
|
617
617
|
const data = entryData(entry);
|
|
618
618
|
const id = dataStr(data, "id");
|
|
@@ -670,12 +670,12 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
670
670
|
byTaxonomy: grouped
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
const { primeFoldedEntryTerms } = await import("./taxonomies-
|
|
673
|
+
const { primeFoldedEntryTerms } = await import("./taxonomies-xvaQ7gVM.mjs").then((n) => n.u);
|
|
674
674
|
primeFoldedEntryTerms(type, perEntry, { locale });
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
677
|
try {
|
|
678
|
-
const { getAllTermsForEntries } = await import("./taxonomies-
|
|
678
|
+
const { getAllTermsForEntries } = await import("./taxonomies-xvaQ7gVM.mjs").then((n) => n.u);
|
|
679
679
|
const ids = entries.map((entry) => dataStr(entryData(entry), "id")).filter(Boolean);
|
|
680
680
|
if (ids.length === 0) return;
|
|
681
681
|
const termsMap = await getAllTermsForEntries(type, ids, { locale });
|
|
@@ -709,9 +709,9 @@ async function hydrateEntryTerms(type, entries, locale) {
|
|
|
709
709
|
*/
|
|
710
710
|
async function getTranslations(type, id) {
|
|
711
711
|
try {
|
|
712
|
-
const db = (await import("./loader-
|
|
712
|
+
const db = (await import("./loader-CsX5pTud.mjs").then((n) => n.i)).getDb;
|
|
713
713
|
const dbInstance = await db();
|
|
714
|
-
const { ContentRepository } = await import("./content-
|
|
714
|
+
const { ContentRepository } = await import("./content-CzUrmMC3.mjs").then((n) => n.n);
|
|
715
715
|
const repo = new ContentRepository(dbInstance);
|
|
716
716
|
const item = await repo.findByIdOrSlug(type, id);
|
|
717
717
|
if (!item) return {
|
|
@@ -779,8 +779,8 @@ async function resolveDinewayPath(path) {
|
|
|
779
779
|
const hasDbOverride = !!getRequestContext()?.db;
|
|
780
780
|
let patterns = !hasDbOverride ? cachedUrlPatterns : null;
|
|
781
781
|
if (!patterns) {
|
|
782
|
-
const { getDb } = await import("./loader-
|
|
783
|
-
const { SchemaRegistry } = await import("./registry-
|
|
782
|
+
const { getDb } = await import("./loader-CsX5pTud.mjs").then((n) => n.i);
|
|
783
|
+
const { SchemaRegistry } = await import("./registry-QxrUJAWY.mjs").then((n) => n.r);
|
|
784
784
|
patterns = (await new SchemaRegistry(await getDb()).listCollections()).filter((collection) => collection.urlPattern).map((collection) => {
|
|
785
785
|
const { regex, paramNames } = patternToRegex(collection.urlPattern);
|
|
786
786
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { r as getDb } from "./loader-CsX5pTud.mjs";
|
|
2
2
|
import { n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
3
|
-
import { r as requestCached } from "./request-cache-
|
|
4
|
-
import { n as SchemaRegistry } from "./registry-
|
|
3
|
+
import { r as requestCached } from "./request-cache-DoT2mKBT.mjs";
|
|
4
|
+
import { n as SchemaRegistry } from "./registry-QxrUJAWY.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/schema/query.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as apiError } from "./error-
|
|
2
|
-
import { n as normalizeTrustedHeaders } from "./trusted-proxy-
|
|
1
|
+
import { t as apiError } from "./error-BPA9T0AW.mjs";
|
|
2
|
+
import { n as normalizeTrustedHeaders } from "./trusted-proxy-9b2fSXK2.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/rate-limit.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as currentTimestampValue } from "./dialect-helpers-fk43GbDb.mjs";
|
|
2
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
3
|
-
import { i as matchPattern, n as interpolateDestination, r as isPattern, t as compilePattern } from "./patterns-
|
|
2
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CFvpEEOl.mjs";
|
|
3
|
+
import { i as matchPattern, n as interpolateDestination, r as isPattern, t as compilePattern } from "./patterns-CP9gkiCE.mjs";
|
|
4
4
|
import { sql } from "kysely";
|
|
5
5
|
import { ulid } from "ulidx";
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as publicDiscoveryRulesSchema } from "./public-discovery-CyDzK1-S.mjs";
|
|
2
|
+
import { t as isSafeHref } from "./url-CmjWycVK.mjs";
|
|
3
|
+
import { n as isTerminalStatus, t as REDIRECT_RULE_STATUSES } from "./status-BdZSXIP_.mjs";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
|
|
5
6
|
//#region src/api/schemas/common.ts
|
|
@@ -539,6 +540,7 @@ const createCollectionBody = z.object({
|
|
|
539
540
|
source: z.string().regex(collectionSourcePattern).optional(),
|
|
540
541
|
urlPattern: urlPatternSchema.optional(),
|
|
541
542
|
urlField: urlFieldSchema.optional(),
|
|
543
|
+
publicDiscovery: publicDiscoveryRulesSchema.nullish(),
|
|
542
544
|
hasSeo: z.boolean().optional()
|
|
543
545
|
}).meta({ id: "CreateCollectionBody" });
|
|
544
546
|
const updateCollectionBody = z.object({
|
|
@@ -549,6 +551,7 @@ const updateCollectionBody = z.object({
|
|
|
549
551
|
supports: z.array(collectionSupportValues).optional(),
|
|
550
552
|
urlPattern: urlPatternSchema.nullish(),
|
|
551
553
|
urlField: urlFieldSchema.nullish(),
|
|
554
|
+
publicDiscovery: publicDiscoveryRulesSchema.nullish(),
|
|
552
555
|
hasSeo: z.boolean().optional(),
|
|
553
556
|
commentsEnabled: z.boolean().optional(),
|
|
554
557
|
commentsModeration: z.enum([
|
|
@@ -605,6 +608,7 @@ const collectionSchema = z.object({
|
|
|
605
608
|
source: z.string().nullable(),
|
|
606
609
|
urlPattern: z.string().nullable(),
|
|
607
610
|
urlField: z.string().nullish(),
|
|
611
|
+
publicDiscovery: publicDiscoveryRulesSchema.nullish(),
|
|
608
612
|
hasSeo: z.boolean(),
|
|
609
613
|
createdAt: z.string(),
|
|
610
614
|
updatedAt: z.string()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as OptionsRepository } from "./options-
|
|
2
|
-
import { t as RedirectRepository } from "./redirect-
|
|
3
|
-
import { a as validateDestinationParams, i as matchPattern, n as interpolateDestination, o as validatePattern, r as isPattern, t as compilePattern } from "./patterns-
|
|
4
|
-
import { i as invalidateRedirectCache } from "./cache-
|
|
5
|
-
import { n as isTerminalStatus } from "./status-
|
|
1
|
+
import { t as OptionsRepository } from "./options-1dBRkoCl.mjs";
|
|
2
|
+
import { t as RedirectRepository } from "./redirect-CnG6nJ4H.mjs";
|
|
3
|
+
import { a as validateDestinationParams, i as matchPattern, n as interpolateDestination, o as validatePattern, r as isPattern, t as compilePattern } from "./patterns-CP9gkiCE.mjs";
|
|
4
|
+
import { i as invalidateRedirectCache } from "./cache-DrNKKDn0.mjs";
|
|
5
|
+
import { n as isTerminalStatus } from "./status-BdZSXIP_.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/redirects/loops.ts
|
|
8
8
|
/**
|