dineway 0.2.30 → 0.2.32
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/NOTICE +5 -0
- package/dist/{activity-DTJtloA1.mjs → activity-CfryM8jO.mjs} +2 -2
- package/dist/{activity-events-C1U22VYR.mjs → activity-events-BVo9rMUz.mjs} +1 -1
- package/dist/{allowed-origins-C-7CVG6J.mjs → allowed-origins-DtBQa4JR.mjs} +1 -1
- package/dist/api/route-utils.d.mts +10 -10
- package/dist/api/route-utils.mjs +14 -14
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-Ct2tjecP.mjs → api-DF92r_un.mjs} +19 -19
- package/dist/{api-tokens-d43xs7C1.mjs → api-tokens-CSomx-l3.mjs} +1 -1
- package/dist/{apply-D5i71kfi.mjs → apply-Bs2jXsms.mjs} +19 -19
- package/dist/astro/index.d.mts +11 -11
- package/dist/astro/index.mjs +32 -4
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.mjs +33 -8
- package/dist/astro/middleware/redirect.mjs +5 -5
- package/dist/astro/middleware/request-context.mjs +2 -2
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +151 -108
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +6 -6
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +6 -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 +18 -18
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +9 -9
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +9 -9
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +9 -9
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +16 -16
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +16 -16
- package/dist/astro/routes/api/admin/bylines/index.mjs +16 -16
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +30 -30
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +30 -30
- package/dist/astro/routes/api/admin/context/diff.mjs +29 -29
- package/dist/astro/routes/api/admin/context/index.mjs +30 -30
- package/dist/astro/routes/api/admin/context/stale.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +25 -25
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +29 -29
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +26 -26
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +60 -56
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +60 -56
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +59 -55
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +59 -55
- package/dist/astro/routes/api/admin/plugins/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +59 -55
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +52 -48
- package/dist/astro/routes/api/admin/plugins/updates.mjs +52 -48
- package/dist/astro/routes/api/admin/review-requests/_id_/image.d.mts +7 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +62 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +24 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +38 -30
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.d.mts +7 -0
- package/dist/astro/routes/api/admin/review-requests/_id_/revoke.mjs +35 -0
- package/dist/astro/routes/api/admin/review-requests/index.mjs +35 -30
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +52 -48
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +52 -48
- 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 +7 -7
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +6 -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 +10 -10
- package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
- package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -9
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +9 -9
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +8 -8
- 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 +6 -6
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +11 -11
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -10
- 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 +10 -10
- package/dist/astro/routes/api/auth/signup/request.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +13 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +12 -12
- 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 +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +8 -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 +17 -17
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +14 -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 +11 -11
- package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/trash.mjs +7 -7
- package/dist/astro/routes/api/dashboard.mjs +8 -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 +19 -19
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +35 -35
- package/dist/astro/routes/api/import/wordpress/media.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +34 -34
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +31 -31
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +22 -22
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +9 -9
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +40 -40
- package/dist/astro/routes/api/integration/artifact.d.mts +7 -0
- package/dist/astro/routes/api/integration/artifact.mjs +39 -0
- package/dist/astro/routes/api/integration/dispatch.d.mts +7 -0
- package/dist/astro/routes/api/integration/dispatch.mjs +121 -0
- package/dist/astro/routes/api/integrations/_provider_.mjs +6 -6
- package/dist/astro/routes/api/integrations/index.mjs +5 -5
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +130 -107
- package/dist/astro/routes/api/media/_id_/confirm.mjs +10 -10
- package/dist/astro/routes/api/media/_id_.mjs +7 -7
- 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 +11 -11
- package/dist/astro/routes/api/media.mjs +13 -13
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_/items.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_/translations.mjs +30 -30
- package/dist/astro/routes/api/menus/_name_.mjs +30 -30
- package/dist/astro/routes/api/menus/index.mjs +30 -30
- 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 +4 -4
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +31 -31
- package/dist/astro/routes/api/redirects/index.mjs +31 -31
- 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 +54 -50
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +54 -50
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +54 -50
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +54 -50
- package/dist/astro/routes/api/schema/collections/index.mjs +54 -50
- package/dist/astro/routes/api/schema/index.mjs +8 -8
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +52 -48
- package/dist/astro/routes/api/schema/orphans/index.mjs +52 -48
- package/dist/astro/routes/api/search/enable.mjs +11 -11
- package/dist/astro/routes/api/search/index.mjs +10 -10
- package/dist/astro/routes/api/search/rebuild.mjs +11 -11
- package/dist/astro/routes/api/search/stats.mjs +6 -6
- package/dist/astro/routes/api/search/suggest.mjs +10 -10
- package/dist/astro/routes/api/sections/_slug_.mjs +30 -30
- package/dist/astro/routes/api/sections/index.mjs +30 -30
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings/reviews.d.mts +8 -0
- package/dist/astro/routes/api/settings/reviews.mjs +57 -0
- package/dist/astro/routes/api/settings.mjs +30 -30
- package/dist/astro/routes/api/setup/admin-verify.mjs +12 -12
- package/dist/astro/routes/api/setup/admin.mjs +10 -10
- package/dist/astro/routes/api/setup/dev-bypass.mjs +25 -25
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +27 -27
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +6 -6
- package/dist/astro/routes/api/system/heartbeat.d.mts +7 -0
- package/dist/astro/routes/api/system/heartbeat.mjs +23 -0
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +33 -33
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +33 -33
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +33 -33
- package/dist/astro/routes/api/taxonomies/index.mjs +33 -33
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +29 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +30 -30
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +30 -30
- package/dist/astro/routes/api/widget-areas/_name_.mjs +27 -27
- package/dist/astro/routes/api/widget-areas/index.mjs +30 -30
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +6 -6
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +12 -12
- package/dist/astro/routes/sitemap.xml.mjs +11 -11
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +12 -12
- package/dist/{audit-CLEMKs-Q.mjs → audit-CYjfxG9i.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-Bg93z3D6.mjs → auth-control-guard-CITT8ZA_.mjs} +1 -1
- package/dist/{authorize-Dg75h4BN.mjs → authorize-KcI0pAfN.mjs} +1 -1
- package/dist/{briefing-32h1e5FV.mjs → briefing-BgQTljQt.mjs} +21 -12
- package/dist/{briefing-BbpmZz_4.mjs → briefing-r3hXCDQC.mjs} +1 -1
- package/dist/{bundle-Cn8X5ATg.mjs → bundle-S6zx-V4D.mjs} +2 -2
- package/dist/{byline-BfL607qj.mjs → byline-Ctil4rij.mjs} +6 -6
- package/dist/{byline-fields-nVUlDAl0.d.mts → byline-fields-DNXKWUW9.d.mts} +15 -14
- package/dist/{byline-fields-GoUVaGw4.mjs → byline-fields-DiCyW6eQ.mjs} +1 -1
- package/dist/{byline-fields-C4OeOttq.mjs → byline-fields-QpmruT5r.mjs} +5 -4
- package/dist/{byline-registry-CF9nobxT.mjs → byline-registry-rkr73qSE.mjs} +2 -2
- package/dist/{bylines-DpjxbnYL.mjs → bylines-BcuBpzVi.mjs} +3 -3
- package/dist/{bylines-Cy5KBNpg.mjs → bylines-v_ZUQnR-.mjs} +5 -5
- package/dist/{cache-Bwds591_.mjs → cache-V2BCplaY.mjs} +2 -2
- package/dist/{chunks-0oflHOGr.mjs → chunks-CnuL55JE.mjs} +1 -1
- package/dist/cli/index.mjs +202 -32
- 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 +34 -11
- package/dist/client/index.mjs +24 -20
- package/dist/{client-factory-Dr5FUjPd.mjs → client-factory-C-y9VZDX.mjs} +1 -1
- package/dist/{comment-CLb7ynlP.mjs → comment-_nvJSS-A.mjs} +1 -1
- package/dist/{comment-reaction-HMk3Ugvo.mjs → comment-reaction-DhVgJ17S.mjs} +1 -1
- package/dist/{comments-D5I0CLKB.mjs → comments-D4mIDjvA.mjs} +1 -1
- package/dist/{content-DW-BRHF4.mjs → content-CVCrcuvD.mjs} +2 -2
- package/dist/{content-refresh-iarREtUO.mjs → content-refresh-QvBIyb_g.mjs} +6 -6
- package/dist/{context-DJ1J727I.mjs → context-JjKucxBm.mjs} +2 -2
- package/dist/{context-ChMi9sZc.mjs → context-MftkHbWx.mjs} +13 -10
- package/dist/{context-route-helpers-Bd8p_JI2.mjs → context-route-helpers-e1APrqSm.mjs} +2 -2
- package/dist/{dashboard-CdsvXt0T.mjs → dashboard-ZJ7sMcBI.mjs} +4 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql-http.d.mts +1 -1
- package/dist/db/libsql-http.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/libsql.mjs +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{device-flow-BED7L-O7.mjs → device-flow-eOcL5m0Q.mjs} +5 -5
- package/dist/{discovery-yoK6-UaX.mjs → discovery-CJkuHGhZ.mjs} +3 -3
- package/dist/{enrich-Uw_OA9Ve.mjs → enrich-KErvJOuI.mjs} +1 -1
- package/dist/evidence-6IUv9ML3.mjs +251 -0
- package/dist/{field-defs-cache-Cf3F5lHw.mjs → field-defs-cache-CwrIyZFT.mjs} +4 -4
- package/dist/{service-BB1n90wh.mjs → forgeway-account-lYJ8iX3G.mjs} +1 -103
- package/dist/{fts-manager-Bv4U_Qw0.mjs → fts-manager-DX7ZkrCa.mjs} +1 -1
- package/dist/{hitl-requests-DmA_ViQf.mjs → hitl-requests-CmYVunm-.mjs} +2 -2
- package/dist/{hitl-route-helpers-DRdeq7Ld.mjs → hitl-route-helpers-CRm537zS.mjs} +5 -5
- package/dist/{import-iQ3y2-4Q.mjs → import-DqRAgsKr.mjs} +7 -7
- package/dist/{index-DXcPysP3.d.mts → index-Co7xtjkd.d.mts} +3 -3
- package/dist/index.d.mts +15 -15
- package/dist/index.mjs +86 -83
- package/dist/{integration-credentials-CTrvXgEc.mjs → integration-credentials-qudN6yRr.mjs} +2 -2
- package/dist/{jsonld-Bv20fcwc.d.mts → jsonld-DTd-AVWg.d.mts} +2 -2
- package/dist/{load-dOITHB_Z.mjs → load-fCOciq0Q.mjs} +1 -1
- package/dist/{loader-BFsHwbxI.mjs → loader-BDje8ME2.mjs} +2 -2
- package/dist/{manifest-schema-owbEUmv1.mjs → manifest-schema-CfKD0thC.mjs} +1 -1
- package/dist/{mcp-reviewed-executor-BUEO0Osb.mjs → mcp-reviewed-executor-DmhM3Cy6.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-allowlist-BdbIzYO3.mjs → media-allowlist-DaG6lNoy.mjs} +1 -1
- package/dist/{media-Dnpc2hW8.mjs → media-dvRjj4po.mjs} +1 -1
- package/dist/{menus-BRMcey1A.mjs → menus-CZbz5L_V.mjs} +6 -6
- package/dist/{menus-F1fYny2w.mjs → menus-CpuR4Qkm.mjs} +2 -2
- package/dist/{oauth-authorization-TG2Kxgur.mjs → oauth-authorization-Jf5e3azH.mjs} +5 -5
- package/dist/{oauth-clients-DLJMG4h7.mjs → oauth-clients-tovQ4D4h.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-CJC9DGe9.mjs → parse-IsGn-5lt.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-BwvsQ0s1.mjs → plugins-DXyLI3Hb.mjs} +6 -5
- package/dist/policy-950odoX_.mjs +124 -0
- package/dist/{preview-CjL_29aE.mjs → preview-BXmS1SXL.mjs} +2 -2
- package/dist/{provider-loader-CGoW_-Bs.d.mts → provider-loader-DDq7R_RN.d.mts} +1 -1
- package/dist/{public-url-CbmE-u2t.d.mts → public-url-BQ9vf0AS.d.mts} +2 -2
- package/dist/{public-url-DfDWSNjk.d.mts → public-url-CT-T1D_w.d.mts} +1 -1
- package/dist/{publication-authorization-BQpdXnha.mjs → publication-authorization-C-vYPGD8.mjs} +73 -11
- package/dist/{query-qGr7GGfF.mjs → query-CrW2yI6G.mjs} +13 -13
- package/dist/{query-DQOB6OEA.mjs → query-DcB9uGTW.mjs} +3 -3
- package/dist/{rate-limit-JhnJUEno.mjs → rate-limit-DEkoxTsP.mjs} +2 -2
- package/dist/{redirect-DtjSpGWp.mjs → redirect-DG-o0CKV.mjs} +2 -2
- package/dist/{redirects-CY6GCHPX.mjs → redirects-Bjp4iKJU.mjs} +4 -4
- package/dist/{redirects-C9pg6Dcg.mjs → redirects-N8gmWhVM.mjs} +2 -2
- package/dist/{registry-Czz6avGn.mjs → registry-D-IV_h50.mjs} +7 -7
- package/dist/request-context.d.mts +2 -0
- package/dist/{request-meta-DnZm9Kbu.mjs → request-meta-BW0the1R.mjs} +1 -1
- package/dist/{review-payload-BuLgXTY6.mjs → review-payload-f1L4lzQg.mjs} +1 -1
- package/dist/{review-requests-lVwh6U-G.mjs → review-requests-BTKfeWlS.mjs} +17 -48
- package/dist/{review-requests-D-lhld0A.mjs → review-requests-DICrYH2-.mjs} +70 -7
- package/dist/{review-route-helpers-3MNvw1AH.mjs → review-route-helpers-DaZBBps8.mjs} +2 -2
- package/dist/revocation-CkTOhdlw.mjs +42 -0
- package/dist/{runner-CPugEIU8.mjs → runner-DJiRFyLI.mjs} +545 -475
- package/dist/{runner-CvwzNJHj.d.mts → runner-Dye73myO.d.mts} +1 -1
- package/dist/runs-DEujUDOj.mjs +1234 -0
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +3 -3
- package/dist/schema-IjuRxkqq.mjs +8 -0
- package/dist/{search-D-wOjRiP.mjs → search-DxUKN9Zz.mjs} +3 -3
- package/dist/{secrets-MqvM60s_.mjs → secrets-AdCrGg1c.mjs} +1 -1
- package/dist/{sections-jAOXJcIV.mjs → sections-BPFOEMK6.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +19 -19
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +7 -7
- package/dist/{seo-Cbj0_Opd.mjs → seo-DWHdo5aW.mjs} +1 -1
- package/dist/{seo-B0n_oZM5.mjs → seo-GfovzqpU.mjs} +1 -1
- package/dist/{service-TRFrPW8z.mjs → service-BrNKVCjC.mjs} +2 -2
- package/dist/service-DbgjHWyW.mjs +18 -0
- package/dist/service-DeX1PRNt.mjs +121 -0
- package/dist/{settings-CYt46_A5.mjs → settings-BKEHw6Bu.mjs} +2 -2
- package/dist/{settings-Bx3wzDK_.mjs → settings-CAsQLi0N.mjs} +4 -4
- package/dist/{site-activity-MiKT38qx.mjs → site-activity-7oezuHXK.mjs} +1 -1
- package/dist/{site-context-CqNMaJ5s.mjs → site-context-CA7rbxux.mjs} +15 -15
- package/dist/{ssrf-D00lPvtF.mjs → ssrf-C7tTSD1r.mjs} +13 -2
- 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-BtCoeap4.mjs → store-c4qx3gVh.mjs} +1 -1
- package/dist/submission-C47cHBIg.mjs +67 -0
- package/dist/{taxonomies-iZGA_8zf.mjs → taxonomies-93DV-1QT.mjs} +6 -6
- package/dist/{taxonomies-BMArg_t1.mjs → taxonomies-ALDiRQ84.mjs} +3 -3
- package/dist/{taxonomy-DKG0n_q8.mjs → taxonomy-BOBTJ_aE.mjs} +2 -2
- package/dist/{types-m37xNtUj.d.mts → types-6KmeXInJ.d.mts} +1 -1
- package/dist/{types-B7Ifhtyz.d.mts → types-BRCUO8NR.d.mts} +31 -2
- package/dist/{types-DXwmu5rT.mjs → types-BpSTdH1H.mjs} +1 -1
- package/dist/{types-30cGytTh.d.mts → types-TpXK8km5.d.mts} +64 -45
- package/dist/ui/server-runtime.d.mts +13 -13
- package/dist/ui/server-runtime.mjs +20 -20
- package/dist/{user-D-dGG5Om.mjs → user-D0NJ7gYf.mjs} +2 -2
- package/dist/{utils-iGiCys50.mjs → utils-BK2efsHv.mjs} +1 -1
- package/dist/{validate-AzYhwCD8.mjs → validate-C9g9iX3q.mjs} +2 -2
- package/dist/{validate-BRq01mTo.d.mts → validate-CDWVODvc.d.mts} +3 -3
- package/dist/version-9orir5LL.mjs +6 -0
- package/dist/{widgets-B18H_Xgl.mjs → widgets-Cm5Qx2Np.mjs} +3 -3
- package/dist/{wordpress-slugs-BYW2B_5x.mjs → wordpress-slugs-WdPZaVXf.mjs} +1 -1
- package/dist/worker-D7OccgB8.mjs +224 -0
- package/dist/{zod-generator-3jqAzlTK.mjs → zod-generator-DS5oZNaL.mjs} +2 -2
- package/licenses/forgeway.txt +201 -0
- package/package.json +6 -3
- package/LICENSE +0 -9
- package/dist/schema-DxDfwabF.mjs +0 -8
- package/dist/version-_iWin2_c.mjs +0 -6
- /package/dist/{actor-BraTCiOp.mjs → actor-DrJJsvy6.mjs} +0 -0
- /package/dist/{adapters-C-iHnQYy.d.mts → adapters-DHt3f2lu.d.mts} +0 -0
- /package/dist/{api-tokens-CZ472rzA.mjs → api-tokens-CmT83Bgj.mjs} +0 -0
- /package/dist/{challenge-store-Dae5cL-_.mjs → challenge-store-CYrg4F4t.mjs} +0 -0
- /package/dist/{components-CINP4h-l.mjs → components-DAq_4iPX.mjs} +0 -0
- /package/dist/{context-types-fEeyXC1D.mjs → context-types-CPWAJRs5.mjs} +0 -0
- /package/dist/{cron-DIsnItPn.mjs → cron-mGVPQ5e6.mjs} +0 -0
- /package/dist/{default-D8jeKsT3.mjs → default-BeIzUa1e.mjs} +0 -0
- /package/dist/{email-console-DRb6jkoC.mjs → email-console-Bfi_exVg.mjs} +0 -0
- /package/dist/{error-BPA9T0AW.mjs → error-DLg1H2LT.mjs} +0 -0
- /package/dist/{escape-DgNqnHuj.mjs → escape-C6lkys0j.mjs} +0 -0
- /package/dist/{experimental-workflows-DOo7QDRn.mjs → experimental-workflows-B9x8delL.mjs} +0 -0
- /package/dist/{hash-CEky-IDp.mjs → hash-jhbF98tT.mjs} +0 -0
- /package/dist/{libsql-dialect-DMqpBfJI.mjs → libsql-dialect-CANq6UNI.mjs} +0 -0
- /package/dist/{media-url-BhbJfG3Y.mjs → media-url-CL3NzgLh.mjs} +0 -0
- /package/dist/{mime-Bg7yUeHW.mjs → mime-CDTtL7jE.mjs} +0 -0
- /package/dist/{mode-fm1eCVhz.mjs → mode-D554vAgH.mjs} +0 -0
- /package/dist/{normalize-BY2gOygP.mjs → normalize-Ev3FiBMx.mjs} +0 -0
- /package/dist/{oauth-state-store-Dbj-J0K5.mjs → oauth-state-store-Do1a_o3H.mjs} +0 -0
- /package/dist/{oauth-user-lookup-D2NAYPjU.mjs → oauth-user-lookup-B451pZmd.mjs} +0 -0
- /package/dist/{output-A4ZfzzA0.mjs → output-8j9oltTf.mjs} +0 -0
- /package/dist/{parser-C3ux7a3Y.mjs → parser-C9rzPuSZ.mjs} +0 -0
- /package/dist/{passkey-config-DUc1iP_-.mjs → passkey-config-CRN44T04.mjs} +0 -0
- /package/dist/{patterns-CP9gkiCE.mjs → patterns-3XE9bU4r.mjs} +0 -0
- /package/dist/{placeholder-0cGpMonY.d.mts → placeholder-D03pGvqM.d.mts} +0 -0
- /package/dist/{portable-text-Cu4n_8zI.d.mts → portable-text-BdRm4uZq.d.mts} +0 -0
- /package/dist/{portable-text-U85hOafW.mjs → portable-text-tIk9_uz_.mjs} +0 -0
- /package/dist/{process-cache-DsMwJ3LM.mjs → process-cache-B-L-A9zg.mjs} +0 -0
- /package/dist/{provider-loader-BPHG3BR5.mjs → provider-loader-C4i82ll1.mjs} +0 -0
- /package/dist/{public-url-CmBKcpsJ.mjs → public-url-BVIjzMo3.mjs} +0 -0
- /package/dist/{public-url-DjWfilkD.mjs → public-url-oudwI7K0.mjs} +0 -0
- /package/dist/{redirect-D_bb_Cc3.mjs → redirect-Dp5u-8dH.mjs} +0 -0
- /package/dist/{request-cache-DoT2mKBT.mjs → request-cache-BruBnFAR.mjs} +0 -0
- /package/dist/{resolve-BDWXnk_V.mjs → resolve-pZ4NQM-X.mjs} +0 -0
- /package/dist/{seo-contributions-DzusM9lG.mjs → seo-contributions-BAtRDXEQ.mjs} +0 -0
- /package/dist/{session-user-BT8vRgt3.mjs → session-user-DyqWGIh4.mjs} +0 -0
- /package/dist/{setup-complete-BRbTCbUF.mjs → setup-complete-C8LTo8cO.mjs} +0 -0
- /package/dist/{setup-nonce-220YhE1R.mjs → setup-nonce-D-CEYlw7.mjs} +0 -0
- /package/dist/{sidecar-client-SDgPreXV.mjs → sidecar-client-Bw2C0XTf.mjs} +0 -0
- /package/dist/{site-url-AGgA46Lw.mjs → site-url-DoZf_jVj.mjs} +0 -0
- /package/dist/{stable-hash-_A3p1ln2.mjs → stable-hash-DF7R5eN8.mjs} +0 -0
- /package/dist/{status-BdZSXIP_.mjs → status-Bba6RbkS.mjs} +0 -0
- /package/dist/{tokens-ShJZm_QS.mjs → tokens-c-qxNqzC.mjs} +0 -0
- /package/dist/{transaction-L0tzAOfM.mjs → transaction-BGQgnwUi.mjs} +0 -0
- /package/dist/{transport-DtrY0-hI.mjs → transport-BddGhTAI.mjs} +0 -0
- /package/dist/{transport-SoRbXDM4.d.mts → transport-ktLL9r2O.d.mts} +0 -0
- /package/dist/{trusted-proxy-9b2fSXK2.mjs → trusted-proxy-CdEl6g6B.mjs} +0 -0
- /package/dist/{types-ZdWRfUsC.d.mts → types--3oJQ0hs.d.mts} +0 -0
- /package/dist/{types-dgGPmsl_.mjs → types-BQZFeZjd.mjs} +0 -0
- /package/dist/{types-B-nDjnzA.mjs → types-BbkkkAb6.mjs} +0 -0
- /package/dist/{types-D1l9cCKM.mjs → types-C0DPvhR5.mjs} +0 -0
- /package/dist/{types-Cd_2Jeqp.d.mts → types-CKIt_jmM.d.mts} +0 -0
- /package/dist/{types-D8iukuuI.d.mts → types-CLMOusxP.d.mts} +0 -0
- /package/dist/{types-BdsNqnHA.d.mts → types-CPaVj_GC.d.mts} +0 -0
- /package/dist/{types-B-KSspMO.d.mts → types-CU3Wn2HC.d.mts} +0 -0
- /package/dist/{url-CmjWycVK.mjs → url-Dumsft7G.mjs} +0 -0
package/dist/runtime.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
|
10
|
-
import { t as getMediaProvider } from "./provider-loader-
|
|
1
|
+
import { Hs as dinewayLoader, Ls as CollectionFilter, Rs as EntryData, Us as getDb, zs as EntryFilter } from "./types-TpXK8km5.mjs";
|
|
2
|
+
import "./types-BRCUO8NR.mjs";
|
|
3
|
+
import "./runner-Dye73myO.mjs";
|
|
4
|
+
import "./index-Co7xtjkd.mjs";
|
|
5
|
+
import "./types-CPaVj_GC.mjs";
|
|
6
|
+
import "./public-url-BQ9vf0AS.mjs";
|
|
7
|
+
import "./validate-CDWVODvc.mjs";
|
|
8
|
+
import "./byline-fields-DNXKWUW9.mjs";
|
|
9
|
+
import "./types--3oJQ0hs.mjs";
|
|
10
|
+
import { t as getMediaProvider } from "./provider-loader-DDq7R_RN.mjs";
|
|
11
11
|
export { type CollectionFilter, type EntryData, type EntryFilter, dinewayLoader, getDb, getMediaProvider };
|
package/dist/runtime.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "./base64-F8-DUraK.mjs";
|
|
3
|
-
import "./types-
|
|
4
|
-
import { n as dinewayLoader, r as getDb } from "./loader-
|
|
5
|
-
import { t as getMediaProvider } from "./provider-loader-
|
|
3
|
+
import "./types-BpSTdH1H.mjs";
|
|
4
|
+
import { n as dinewayLoader, r as getDb } from "./loader-BDje8ME2.mjs";
|
|
5
|
+
import { t as getMediaProvider } from "./provider-loader-C4i82ll1.mjs";
|
|
6
6
|
|
|
7
7
|
export { dinewayLoader, getDb, getMediaProvider };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as __exportAll } from "./runner-DJiRFyLI.mjs";
|
|
2
|
+
import { n as SchemaRegistry } from "./registry-D-IV_h50.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/schema/index.ts
|
|
5
|
+
var schema_exports = /* @__PURE__ */ __exportAll({ SchemaRegistry: () => SchemaRegistry });
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { schema_exports as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-DJiRFyLI.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
|
-
import { r as getDb } from "./loader-
|
|
4
|
-
import { t as FTSManager } from "./fts-manager-
|
|
3
|
+
import { r as getDb } from "./loader-BDje8ME2.mjs";
|
|
4
|
+
import { t as FTSManager } from "./fts-manager-DX7ZkrCa.mjs";
|
|
5
5
|
import { sql } from "kysely";
|
|
6
6
|
import { toPlainText } from "@portabletext/toolkit";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-F8-DUraK.mjs";
|
|
2
2
|
import { t as after } from "./after-BfniwgIf.mjs";
|
|
3
3
|
import { t as OptionsRepository } from "./options-1dBRkoCl.mjs";
|
|
4
|
-
import { r as processCachedAsync, t as createProcessCache } from "./process-cache-
|
|
4
|
+
import { r as processCachedAsync, t as createProcessCache } from "./process-cache-B-L-A9zg.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config/secrets.ts
|
|
7
7
|
const ENCRYPTION_KEY_PREFIX = "dineway_enc_v1_";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-BpSTdH1H.mjs";
|
|
2
|
+
import { r as getDb } from "./loader-BDje8ME2.mjs";
|
|
3
3
|
import { ulid } from "ulidx";
|
|
4
4
|
|
|
5
5
|
//#region src/sections/index.ts
|
package/dist/seed/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import { _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, h as SeedSection, i as defaultSeed, l as SeedContentEntry, m as SeedRedirect, n as loadSeed, o as SeedApplyOptions, p as SeedMenuItem, r as loadUserSeed, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, y as SeedWidgetArea } from "../validate-
|
|
1
|
+
import "../types-BRCUO8NR.mjs";
|
|
2
|
+
import { _ as SeedTaxonomyTerm, a as applySeed, b as ValidationResult, c as SeedCollection, d as SeedFile, f as SeedMenu, g as SeedTaxonomy, h as SeedSection, i as defaultSeed, l as SeedContentEntry, m as SeedRedirect, n as loadSeed, o as SeedApplyOptions, p as SeedMenuItem, r as loadUserSeed, s as SeedApplyResult, t as validateSeed, u as SeedField, v as SeedWidget, y as SeedWidgetArea } from "../validate-CDWVODvc.mjs";
|
|
3
3
|
export { type SeedApplyOptions, type SeedApplyResult, type SeedCollection, type SeedContentEntry, type SeedField, type SeedFile, type SeedMenu, type SeedMenuItem, type SeedRedirect, type SeedSection, type SeedTaxonomy, type SeedTaxonomyTerm, type SeedWidget, type SeedWidgetArea, type ValidationResult, applySeed, defaultSeed, loadSeed, loadUserSeed, validateSeed };
|
package/dist/seed/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../base64-F8-DUraK.mjs";
|
|
3
|
-
import "../types-
|
|
4
|
-
import "../loader-
|
|
3
|
+
import "../types-BpSTdH1H.mjs";
|
|
4
|
+
import "../loader-BDje8ME2.mjs";
|
|
5
5
|
import "../object-cache-D51qOseS.mjs";
|
|
6
6
|
import "../revision-De7OmYVD.mjs";
|
|
7
|
-
import "../content-
|
|
8
|
-
import "../media-
|
|
9
|
-
import "../taxonomy-
|
|
7
|
+
import "../content-CVCrcuvD.mjs";
|
|
8
|
+
import "../media-dvRjj4po.mjs";
|
|
9
|
+
import "../taxonomy-BOBTJ_aE.mjs";
|
|
10
10
|
import "../options-1dBRkoCl.mjs";
|
|
11
|
-
import "../redirect-
|
|
12
|
-
import "../request-cache-
|
|
13
|
-
import "../byline-registry-
|
|
14
|
-
import "../field-defs-cache-
|
|
15
|
-
import "../byline-
|
|
16
|
-
import "../content-refresh-
|
|
17
|
-
import "../fts-manager-
|
|
11
|
+
import "../redirect-DG-o0CKV.mjs";
|
|
12
|
+
import "../request-cache-BruBnFAR.mjs";
|
|
13
|
+
import "../byline-registry-rkr73qSE.mjs";
|
|
14
|
+
import "../field-defs-cache-CwrIyZFT.mjs";
|
|
15
|
+
import "../byline-Ctil4rij.mjs";
|
|
16
|
+
import "../content-refresh-QvBIyb_g.mjs";
|
|
17
|
+
import "../fts-manager-DX7ZkrCa.mjs";
|
|
18
18
|
import "../public-discovery-CyDzK1-S.mjs";
|
|
19
|
-
import "../registry-
|
|
20
|
-
import "../settings-
|
|
21
|
-
import "../ssrf-
|
|
22
|
-
import { t as validateSeed } from "../validate-
|
|
23
|
-
import { t as applySeed } from "../apply-
|
|
24
|
-
import { t as defaultSeed } from "../default-
|
|
25
|
-
import { n as loadUserSeed, t as loadSeed } from "../load-
|
|
19
|
+
import "../registry-D-IV_h50.mjs";
|
|
20
|
+
import "../settings-CAsQLi0N.mjs";
|
|
21
|
+
import "../ssrf-C7tTSD1r.mjs";
|
|
22
|
+
import { t as validateSeed } from "../validate-C9g9iX3q.mjs";
|
|
23
|
+
import { t as applySeed } from "../apply-Bs2jXsms.mjs";
|
|
24
|
+
import { t as defaultSeed } from "../default-BeIzUa1e.mjs";
|
|
25
|
+
import { n as loadUserSeed, t as loadSeed } from "../load-fCOciq0Q.mjs";
|
|
26
26
|
|
|
27
27
|
export { applySeed, defaultSeed, loadSeed, loadUserSeed, validateSeed };
|
package/dist/seo/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as ContentSeo } from "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import { a as PublicContentEntry, i as resolveCanonicalUrl, n as resolveContentUrl, o as PublicContentOptions, r as satisfiesPublicDiscoveryRules, s as listPublicContent, t as ResolveContentUrlInput } from "../public-url-
|
|
1
|
+
import { a as ContentSeo } from "../types-6KmeXInJ.mjs";
|
|
2
|
+
import "../types-BRCUO8NR.mjs";
|
|
3
|
+
import { a as PublicContentEntry, i as resolveCanonicalUrl, n as resolveContentUrl, o as PublicContentOptions, r as satisfiesPublicDiscoveryRules, s as listPublicContent, t as ResolveContentUrlInput } from "../public-url-BQ9vf0AS.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/seo/index.d.ts
|
|
6
6
|
/**
|
package/dist/seo/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../dialect-helpers-fk43GbDb.mjs";
|
|
2
2
|
import "../base64-F8-DUraK.mjs";
|
|
3
|
-
import "../types-
|
|
4
|
-
import "../content-refresh-
|
|
5
|
-
import "../fts-manager-
|
|
3
|
+
import "../types-BpSTdH1H.mjs";
|
|
4
|
+
import "../content-refresh-QvBIyb_g.mjs";
|
|
5
|
+
import "../fts-manager-DX7ZkrCa.mjs";
|
|
6
6
|
import { i as satisfiesPublicDiscoveryRules } from "../public-discovery-CyDzK1-S.mjs";
|
|
7
|
-
import "../registry-
|
|
8
|
-
import { n as resolveCanonicalUrl, t as listPublicContent } from "../discovery-
|
|
9
|
-
import { t as resolveContentUrl } from "../public-url-
|
|
10
|
-
import { t as buildSeoImageUrl } from "../media-url-
|
|
7
|
+
import "../registry-D-IV_h50.mjs";
|
|
8
|
+
import { n as resolveCanonicalUrl, t as listPublicContent } from "../discovery-CJkuHGhZ.mjs";
|
|
9
|
+
import { t as resolveContentUrl } from "../public-url-oudwI7K0.mjs";
|
|
10
|
+
import { t as buildSeoImageUrl } from "../media-url-CL3NzgLh.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/seo/index.ts
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as invalidateCollectionCache } from "./object-cache-D51qOseS.mjs";
|
|
2
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
2
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-CnuL55JE.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/database/repositories/seo.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { t as CommentRepository } from "./comment-
|
|
3
|
-
import { t as escapeHtml } from "./escape-
|
|
2
|
+
import { t as CommentRepository } from "./comment-_nvJSS-A.mjs";
|
|
3
|
+
import { t as escapeHtml } from "./escape-C6lkys0j.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/comments/notifications.ts
|
|
6
6
|
const NOTIFICATION_SOURCE = "dineway-comments";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as DinewayToolsService, r as integrationResponse } from "./service-DeX1PRNt.mjs";
|
|
2
|
+
import { r as getSiteIntegrationCatalog, t as SiteIntegrationRuns } from "./runs-DEujUDOj.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/service.ts
|
|
5
|
+
function createSiteIntegrationService(options, actorId) {
|
|
6
|
+
const runs = new SiteIntegrationRuns(options);
|
|
7
|
+
return new DinewayToolsService({
|
|
8
|
+
discover: (input) => integrationResponse(async () => (await getSiteIntegrationCatalog()).discover(input)),
|
|
9
|
+
inspect: (input) => integrationResponse(async () => (await getSiteIntegrationCatalog()).get(input.provider, input.endpoint).detail),
|
|
10
|
+
run: (input, requestOptions) => integrationResponse(() => runs.run(actorId, input, requestOptions)),
|
|
11
|
+
getRun: (id) => integrationResponse(() => runs.get(actorId, id)),
|
|
12
|
+
listRuns: (input) => integrationResponse(() => runs.list(actorId, input)),
|
|
13
|
+
stopRun: (id) => integrationResponse(() => runs.stop(actorId, id))
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { createSiteIntegrationService as t };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
//#region src/dineway-tools/service.ts
|
|
2
|
+
const TERMINAL_RUN_STATUSES = new Set([
|
|
3
|
+
"COMPLETED",
|
|
4
|
+
"FAILED",
|
|
5
|
+
"STOPPED",
|
|
6
|
+
"TIME_OUT"
|
|
7
|
+
]);
|
|
8
|
+
const DEFAULT_WAIT_TIMEOUT_MS = 3e5;
|
|
9
|
+
const DEFAULT_POLL_INTERVAL_MS = 1e3;
|
|
10
|
+
var DinewayToolsError = class extends Error {
|
|
11
|
+
name = "DinewayToolsError";
|
|
12
|
+
constructor(message, code, statusCode) {
|
|
13
|
+
super(message);
|
|
14
|
+
this.code = code;
|
|
15
|
+
this.statusCode = statusCode;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var DinewayToolsService = class {
|
|
19
|
+
now;
|
|
20
|
+
sleep;
|
|
21
|
+
constructor(client, dependencies = {}) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
this.now = dependencies.now ?? Date.now;
|
|
24
|
+
this.sleep = dependencies.sleep ?? abortableSleep;
|
|
25
|
+
}
|
|
26
|
+
async discover(request) {
|
|
27
|
+
return unwrapIntegrationResponse(await this.client.discover(request), "TOOLS_DISCOVER_FAILED", "Failed to discover Integration endpoints.");
|
|
28
|
+
}
|
|
29
|
+
async inspect(request) {
|
|
30
|
+
return unwrapIntegrationResponse(await this.client.inspect(request), "TOOLS_INSPECT_FAILED", "Failed to inspect the Integration endpoint.");
|
|
31
|
+
}
|
|
32
|
+
async run(request, options = {}) {
|
|
33
|
+
return unwrapIntegrationResponse(await this.client.run(request, options), "TOOLS_RUN_FAILED", "Failed to run the Integration endpoint.", credentialValues(request.credential));
|
|
34
|
+
}
|
|
35
|
+
async listRuns(options = {}) {
|
|
36
|
+
return unwrapIntegrationResponse(await this.client.listRuns({
|
|
37
|
+
...options,
|
|
38
|
+
limit: options.limit ?? 20
|
|
39
|
+
}), "TOOLS_RUNS_LIST_FAILED", "Failed to list Integration runs.");
|
|
40
|
+
}
|
|
41
|
+
async getRun(runId, signal) {
|
|
42
|
+
return unwrapIntegrationResponse(await this.client.getRun(runId, { signal }), "TOOLS_RUN_GET_FAILED", "Failed to get the Integration run.");
|
|
43
|
+
}
|
|
44
|
+
async stopRun(runId, request = {}, signal) {
|
|
45
|
+
return unwrapIntegrationResponse(await this.client.stopRun(runId, request, { signal }), "TOOLS_RUN_STOP_FAILED", "Failed to stop the Integration run.", credentialValues(request.credential));
|
|
46
|
+
}
|
|
47
|
+
async waitForRun(runId, options = {}) {
|
|
48
|
+
const timeoutMs = options.timeoutMs ?? DEFAULT_WAIT_TIMEOUT_MS;
|
|
49
|
+
const pollIntervalMs = options.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS;
|
|
50
|
+
if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) throw new DinewayToolsError("Run wait timeout must be a positive number of milliseconds.", "INVALID_WAIT_TIMEOUT");
|
|
51
|
+
if (!Number.isFinite(pollIntervalMs) || pollIntervalMs < 0) throw new DinewayToolsError("Run poll interval must be a non-negative number of milliseconds.", "INVALID_POLL_INTERVAL");
|
|
52
|
+
const startedAt = this.now();
|
|
53
|
+
while (true) {
|
|
54
|
+
throwIfAborted(options.signal);
|
|
55
|
+
const run = await this.getRun(runId, options.signal);
|
|
56
|
+
if (isTerminalIntegrationRun(run)) return run;
|
|
57
|
+
if (this.now() - startedAt >= timeoutMs) throw new DinewayToolsError(`Timed out waiting for Integration run ${runId}. The run may still be active.`, "RUN_WAIT_TIMEOUT");
|
|
58
|
+
await this.sleep(pollIntervalMs, options.signal);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
function isTerminalIntegrationRun(run) {
|
|
63
|
+
return TERMINAL_RUN_STATUSES.has(run.status);
|
|
64
|
+
}
|
|
65
|
+
function unwrapIntegrationResponse(response, fallbackCode, fallbackMessage, sensitiveValues = []) {
|
|
66
|
+
if (response.data !== null && response.data !== void 0) return response.data;
|
|
67
|
+
const error = response.error;
|
|
68
|
+
const message = typeof error?.message === "string" && error.message.trim().length > 0 ? error.message : fallbackMessage;
|
|
69
|
+
const code = typeof error?.code === "string" ? error.code : typeof error?.error === "string" ? error.error : fallbackCode;
|
|
70
|
+
const statusCode = typeof error?.statusCode === "number" ? error.statusCode : void 0;
|
|
71
|
+
throw new DinewayToolsError(redactValues(message, sensitiveValues), code, statusCode);
|
|
72
|
+
}
|
|
73
|
+
function credentialValues(credential) {
|
|
74
|
+
if (!credential) return [];
|
|
75
|
+
return credential.type === "token" ? [credential.value] : [credential.username, credential.password];
|
|
76
|
+
}
|
|
77
|
+
function redactValues(message, sensitiveValues) {
|
|
78
|
+
let redacted = message;
|
|
79
|
+
for (const value of sensitiveValues) if (value.length > 0) redacted = redacted.replaceAll(value, "[REDACTED]");
|
|
80
|
+
return redacted;
|
|
81
|
+
}
|
|
82
|
+
function throwIfAborted(signal) {
|
|
83
|
+
if (signal?.aborted) throw signal.reason instanceof Error ? signal.reason : /* @__PURE__ */ new Error("Operation aborted");
|
|
84
|
+
}
|
|
85
|
+
async function abortableSleep(durationMs, signal) {
|
|
86
|
+
throwIfAborted(signal);
|
|
87
|
+
await new Promise((resolve, reject) => {
|
|
88
|
+
const finish = () => {
|
|
89
|
+
if (signal) signal.removeEventListener("abort", onAbort);
|
|
90
|
+
resolve();
|
|
91
|
+
};
|
|
92
|
+
const timer = setTimeout(finish, durationMs);
|
|
93
|
+
if (!signal) return;
|
|
94
|
+
const onAbort = () => {
|
|
95
|
+
clearTimeout(timer);
|
|
96
|
+
reject(signal.reason instanceof Error ? signal.reason : /* @__PURE__ */ new Error("Operation aborted"));
|
|
97
|
+
};
|
|
98
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
async function integrationResponse(operation) {
|
|
102
|
+
try {
|
|
103
|
+
return {
|
|
104
|
+
data: await operation(),
|
|
105
|
+
error: null
|
|
106
|
+
};
|
|
107
|
+
} catch (error) {
|
|
108
|
+
return {
|
|
109
|
+
data: null,
|
|
110
|
+
error: {
|
|
111
|
+
name: "IntegrationError",
|
|
112
|
+
error: error instanceof DinewayToolsError ? error.code : "INTEGRATION_ERROR",
|
|
113
|
+
statusCode: error instanceof DinewayToolsError ? error.statusCode ?? 500 : 500,
|
|
114
|
+
message: error instanceof DinewayToolsError ? error.message : "Integration request failed."
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
//#endregion
|
|
121
|
+
export { DinewayToolsService as n, integrationResponse as r, DinewayToolsError as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import { a as getSiteSettingsWithDb, s as setSiteSettings } from "./settings-
|
|
1
|
+
import { a as __exportAll } from "./runner-DJiRFyLI.mjs";
|
|
2
|
+
import { a as getSiteSettingsWithDb, s as setSiteSettings } from "./settings-CAsQLi0N.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/settings.ts
|
|
5
5
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getRequestContext } from "./request-context.mjs";
|
|
2
|
-
import { r as getDb } from "./loader-
|
|
2
|
+
import { r as getDb } from "./loader-BDje8ME2.mjs";
|
|
3
3
|
import { t as after } from "./after-BfniwgIf.mjs";
|
|
4
4
|
import { l as invalidateObjectCache, n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
5
|
-
import { t as MediaRepository } from "./media-
|
|
5
|
+
import { t as MediaRepository } from "./media-dvRjj4po.mjs";
|
|
6
6
|
import { t as OptionsRepository } from "./options-1dBRkoCl.mjs";
|
|
7
|
-
import { n as peekRequestCache, r as requestCached } from "./request-cache-
|
|
8
|
-
import { n as invalidateProcessCache, r as processCachedAsync, t as createProcessCache } from "./process-cache-
|
|
7
|
+
import { n as peekRequestCache, r as requestCached } from "./request-cache-BruBnFAR.mjs";
|
|
8
|
+
import { n as invalidateProcessCache, r as processCachedAsync, t as createProcessCache } from "./process-cache-B-L-A9zg.mjs";
|
|
9
9
|
import { i as resolvePublicMediaUrl } from "./url-C_pLSrGZ.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/settings/index.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
2
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
3
|
-
import { t as ContentRepository } from "./content-
|
|
4
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
5
|
-
import {
|
|
6
|
-
import { o as HitlRequestRepository } from "./publication-authorization-
|
|
7
|
-
import { r as isPattern } from "./patterns-
|
|
8
|
-
import {
|
|
9
|
-
import { t as FTSManager } from "./fts-manager-
|
|
10
|
-
import { n as SchemaRegistry } from "./registry-
|
|
11
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
12
|
-
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-
|
|
13
|
-
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-
|
|
14
|
-
import { m as normalizeUrl } from "./utils-
|
|
15
|
-
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-
|
|
16
|
-
import { s as searchCollection } from "./search-
|
|
2
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-BpSTdH1H.mjs";
|
|
3
|
+
import { t as ContentRepository } from "./content-CVCrcuvD.mjs";
|
|
4
|
+
import { t as SiteActivityRepository } from "./site-activity-7oezuHXK.mjs";
|
|
5
|
+
import { n as ReviewRequestRepository } from "./review-requests-DICrYH2-.mjs";
|
|
6
|
+
import { o as HitlRequestRepository } from "./publication-authorization-C-vYPGD8.mjs";
|
|
7
|
+
import { r as isPattern } from "./patterns-3XE9bU4r.mjs";
|
|
8
|
+
import { i as parseSiteBriefingScope, o as ContextRepository, u as handlePluginList } from "./briefing-BgQTljQt.mjs";
|
|
9
|
+
import { t as FTSManager } from "./fts-manager-DX7ZkrCa.mjs";
|
|
10
|
+
import { n as SchemaRegistry } from "./registry-D-IV_h50.mjs";
|
|
11
|
+
import { a as getSiteSettingsWithDb } from "./settings-CAsQLi0N.mjs";
|
|
12
|
+
import { n as buildStableActionHash, t as ReviewPayloadBuilder } from "./review-payload-f1L4lzQg.mjs";
|
|
13
|
+
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-B9x8delL.mjs";
|
|
14
|
+
import { m as normalizeUrl } from "./utils-BK2efsHv.mjs";
|
|
15
|
+
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-WdPZaVXf.mjs";
|
|
16
|
+
import { s as searchCollection } from "./search-DxUKN9Zz.mjs";
|
|
17
17
|
import { sql } from "kysely";
|
|
18
18
|
import { ulid } from "ulidx";
|
|
19
19
|
import { Role } from "@dineway-ai/auth";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lookup } from "node:dns/promises";
|
|
1
|
+
import { lookup, resolve4, resolve6 } from "node:dns/promises";
|
|
2
2
|
|
|
3
3
|
//#region src/security/ssrf.ts
|
|
4
4
|
/**
|
|
@@ -172,6 +172,16 @@ function validateExternalUrl(url) {
|
|
|
172
172
|
const nodeDnsResolver = async (hostname) => {
|
|
173
173
|
return (await lookup(hostname, { all: true })).map((entry) => entry.address);
|
|
174
174
|
};
|
|
175
|
+
const workersDnsResolver = async (hostname) => {
|
|
176
|
+
const results = await Promise.allSettled([resolve4(hostname), resolve6(hostname)]);
|
|
177
|
+
const addresses = [];
|
|
178
|
+
for (const result of results) if (result.status === "fulfilled") addresses.push(...result.value);
|
|
179
|
+
else {
|
|
180
|
+
const error = result.reason;
|
|
181
|
+
if (!error || typeof error !== "object" || !("code" in error) || !["ENODATA", "ENOTFOUND"].includes(String(error.code))) throw new SsrfError("DNS address records could not be checked");
|
|
182
|
+
}
|
|
183
|
+
return addresses;
|
|
184
|
+
};
|
|
175
185
|
/**
|
|
176
186
|
* Validate a URL and resolve hostnames before network I/O.
|
|
177
187
|
*
|
|
@@ -182,7 +192,8 @@ async function resolveAndValidateExternalUrl(url, options = {}) {
|
|
|
182
192
|
const parsed = validateExternalUrl(url);
|
|
183
193
|
const hostname = getNormalizedHostname(parsed);
|
|
184
194
|
if (isIpLiteral(hostname)) return parsed;
|
|
185
|
-
const
|
|
195
|
+
const runtimeResolver = globalThis.navigator?.userAgent === "Cloudflare-Workers" ? workersDnsResolver : nodeDnsResolver;
|
|
196
|
+
const resolver = options.resolver ?? defaultDnsResolver ?? runtimeResolver;
|
|
186
197
|
let addresses;
|
|
187
198
|
try {
|
|
188
199
|
addresses = await resolver(hostname);
|
package/dist/storage/local.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ListOptions, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, u as SignedUploadUrl } from "../types-
|
|
1
|
+
import { a as ListOptions, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, u as SignedUploadUrl } from "../types-CLMOusxP.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/local.d.ts
|
|
4
4
|
/**
|
package/dist/storage/local.mjs
CHANGED
package/dist/storage/s3.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ListOptions, c as S3StorageConfig, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, u as SignedUploadUrl } from "../types-
|
|
1
|
+
import { a as ListOptions, c as S3StorageConfig, d as Storage, l as SignedUploadOptions, o as ListResult, p as UploadResult, r as DownloadResult, u as SignedUploadUrl } from "../types-CLMOusxP.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/s3.d.ts
|
|
4
4
|
/**
|
package/dist/storage/s3.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DinewayStorageError } from "../types-
|
|
1
|
+
import { t as DinewayStorageError } from "../types-BQZFeZjd.mjs";
|
|
2
2
|
import { DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
3
3
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as encodeBase64url, n as decodeBase64url } from "./base64-F8-DUraK.mjs";
|
|
2
|
-
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-
|
|
2
|
+
import { i as parseEncryptionKeys, t as DinewaySecretsError } from "./secrets-AdCrGg1c.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/database/repositories/integration-credentials.ts
|
|
5
5
|
var IntegrationCredentialRepository = class {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { t as buildStableHash } from "./stable-hash-DF7R5eN8.mjs";
|
|
2
|
+
import { n as ReviewRequestRepository } from "./review-requests-DICrYH2-.mjs";
|
|
3
|
+
import { t as ReviewPayloadBuilder } from "./review-payload-f1L4lzQg.mjs";
|
|
4
|
+
import { i as reviewDraft } from "./evidence-6IUv9ML3.mjs";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
|
|
7
|
+
//#region src/review-automation/submission.ts
|
|
8
|
+
var ReviewSubmissionError = class extends Error {};
|
|
9
|
+
async function submitAutomatedReview(db, handlers, input) {
|
|
10
|
+
const built = await new ReviewPayloadBuilder(handlers).buildContentReviewPayload(input);
|
|
11
|
+
const contentHash = await buildStableHash(reviewDraft(built));
|
|
12
|
+
const targetKey = await buildStableHash({
|
|
13
|
+
collection: built.collection,
|
|
14
|
+
id: built.entryId,
|
|
15
|
+
actionHash: built.actionHash
|
|
16
|
+
});
|
|
17
|
+
const content = await handlers.handleContentGet(input.collection, input.id);
|
|
18
|
+
if (!content.success || !content.data) throw new ReviewSubmissionError("The submitted content could not be read.");
|
|
19
|
+
const scheduledAt = content.data.item.scheduledAt ?? null;
|
|
20
|
+
return db.transaction().execute(async (trx) => {
|
|
21
|
+
const reviews = new ReviewRequestRepository(trx);
|
|
22
|
+
const existing = await trx.selectFrom("_dineway_review_jobs").select("review_id").where("target_key", "=", targetKey).executeTakeFirst();
|
|
23
|
+
if (existing) {
|
|
24
|
+
const item = await reviews.findById(existing.review_id);
|
|
25
|
+
if (!item || item.status === "rejected" || item.revokedAt) throw new ReviewSubmissionError("Edit the content before submitting a rejected or revoked target again.");
|
|
26
|
+
return {
|
|
27
|
+
item,
|
|
28
|
+
created: false
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const rejected = await trx.selectFrom("_dineway_review_requests").select("review_payload").where("collection", "=", built.collection).where("entry_id", "=", built.entryId).where("status", "=", "rejected").execute();
|
|
32
|
+
for (const row of rejected) if (await buildStableHash(z.object({ diff: z.object({ draft: z.unknown().optional() }).optional() }).parse(JSON.parse(row.review_payload)).diff?.draft) === contentHash) throw new ReviewSubmissionError("This content was rejected. Change it before submitting a new review.");
|
|
33
|
+
const approved = await reviews.findApprovedForTarget(built);
|
|
34
|
+
if (approved) return {
|
|
35
|
+
item: approved,
|
|
36
|
+
created: false
|
|
37
|
+
};
|
|
38
|
+
const item = await reviews.create({
|
|
39
|
+
...built,
|
|
40
|
+
riskReason: input.riskReason,
|
|
41
|
+
requestedByActorType: input.actor.actorType,
|
|
42
|
+
requestedByActorId: input.actor.actorId,
|
|
43
|
+
requestedAuthMetadata: input.actor.authMetadata
|
|
44
|
+
});
|
|
45
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
46
|
+
await trx.insertInto("_dineway_review_jobs").values({
|
|
47
|
+
review_id: item.id,
|
|
48
|
+
target_key: targetKey,
|
|
49
|
+
content_hash: contentHash,
|
|
50
|
+
state: "queued",
|
|
51
|
+
release_state: "none",
|
|
52
|
+
evidence_json: null,
|
|
53
|
+
reason: "Automated review in progress",
|
|
54
|
+
release_reason: null,
|
|
55
|
+
scheduled_at: scheduledAt,
|
|
56
|
+
created_at: now,
|
|
57
|
+
updated_at: now
|
|
58
|
+
}).execute();
|
|
59
|
+
return {
|
|
60
|
+
item: await reviews.findById(item.id),
|
|
61
|
+
created: true
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { submitAutomatedReview as n, ReviewSubmissionError as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-DJiRFyLI.mjs";
|
|
2
2
|
import { getRequestContext } from "./request-context.mjs";
|
|
3
|
-
import { a as resetTaxonomyNamesCache, o as isMissingTableError, r as getDb } from "./loader-
|
|
3
|
+
import { a as resetTaxonomyNamesCache, o as isMissingTableError, r as getDb } from "./loader-BDje8ME2.mjs";
|
|
4
4
|
import { d as invalidateTaxonomyObjectCache, f as isObjectCacheActive, n as cachedQuery, t as CacheNamespace } from "./object-cache-D51qOseS.mjs";
|
|
5
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-
|
|
6
|
-
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached } from "./request-cache-
|
|
7
|
-
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-
|
|
5
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-CnuL55JE.mjs";
|
|
6
|
+
import { i as setRequestCacheEntry, n as peekRequestCache, r as requestCached } from "./request-cache-BruBnFAR.mjs";
|
|
7
|
+
import { n as resolveLocaleChain, t as resolveLocale } from "./resolve-pZ4NQM-X.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/taxonomies/index.ts
|
|
10
10
|
/**
|
|
@@ -393,7 +393,7 @@ function primeFoldedEntryTerms(collection, perEntry, options = {}) {
|
|
|
393
393
|
* Get entries by term.
|
|
394
394
|
*/
|
|
395
395
|
async function getEntriesByTerm(collection, taxonomyName, termSlug, options = {}) {
|
|
396
|
-
const { getDinewayCollection } = await import("./query-
|
|
396
|
+
const { getDinewayCollection } = await import("./query-CrW2yI6G.mjs").then((n) => n.o);
|
|
397
397
|
const queryOptions = { where: { [taxonomyName]: termSlug } };
|
|
398
398
|
if (options.locale !== void 0) queryOptions.locale = options.locale;
|
|
399
399
|
const { entries } = await getDinewayCollection(collection, queryOptions);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
2
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
3
|
-
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-
|
|
1
|
+
import { a as __exportAll } from "./runner-DJiRFyLI.mjs";
|
|
2
|
+
import { t as TaxonomyRepository } from "./taxonomy-BOBTJ_aE.mjs";
|
|
3
|
+
import { c as invalidateTaxonomyDefsCache, l as invalidateTermCache } from "./taxonomies-93DV-1QT.mjs";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/taxonomies.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-DJiRFyLI.mjs";
|
|
2
2
|
import { d as invalidateTaxonomyObjectCache } from "./object-cache-D51qOseS.mjs";
|
|
3
3
|
import { ulid } from "ulidx";
|
|
4
4
|
|
|
@@ -226,7 +226,7 @@ var TaxonomyRepository = class {
|
|
|
226
226
|
*/
|
|
227
227
|
async countEntriesForTerms(translationGroups) {
|
|
228
228
|
if (translationGroups.length === 0) return /* @__PURE__ */ new Map();
|
|
229
|
-
const { chunks, SQL_BATCH_SIZE } = await import("./chunks-
|
|
229
|
+
const { chunks, SQL_BATCH_SIZE } = await import("./chunks-CnuL55JE.mjs").then((n) => n.r);
|
|
230
230
|
const counts = /* @__PURE__ */ new Map();
|
|
231
231
|
for (const chunk of chunks(translationGroups, SQL_BATCH_SIZE)) {
|
|
232
232
|
const rows = await this.db.selectFrom("content_taxonomies").select(["taxonomy_id", (eb) => eb.fn.count("entry_id").as("count")]).where("taxonomy_id", "in", chunk).groupBy("taxonomy_id").execute();
|