dineway 0.2.36 → 0.2.38
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/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +5 -5
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-BotAYpCU.mjs → api-qTefA3vh.mjs} +4 -4
- package/dist/{apply-BTfAReIv.mjs → apply-CC0OQb8V.mjs} +9 -9
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +3 -3
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/request-context.d.mts +1 -1
- package/dist/astro/middleware/request-context.mjs +9 -8
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +42 -42
- package/dist/astro/routes/api/admin/briefing.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/index.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +3 -3
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +11 -11
- package/dist/astro/routes/api/admin/context/diff.mjs +11 -11
- package/dist/astro/routes/api/admin/context/index.mjs +11 -11
- package/dist/astro/routes/api/admin/context/stale.mjs +11 -11
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +12 -12
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +12 -12
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +11 -11
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/updates.mjs +20 -20
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +10 -10
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +15 -15
- package/dist/astro/routes/api/admin/review-requests/index.mjs +13 -13
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +20 -20
- package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/register-options.mjs +1 -1
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +3 -3
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +14 -14
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +15 -15
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +39 -39
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/items.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/translations.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_.mjs +12 -12
- package/dist/astro/routes/api/menus/index.mjs +12 -12
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +11 -11
- package/dist/astro/routes/api/redirects/index.mjs +11 -11
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/index.mjs +20 -20
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +20 -20
- package/dist/astro/routes/api/schema/orphans/index.mjs +20 -20
- package/dist/astro/routes/api/sections/_slug_.mjs +11 -11
- package/dist/astro/routes/api/sections/index.mjs +11 -11
- package/dist/astro/routes/api/settings/reviews.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +12 -12
- package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
- package/dist/astro/routes/api/setup/admin.mjs +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.mjs +6 -6
- package/dist/astro/routes/api/setup/index.mjs +7 -7
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- package/dist/astro/routes/api/snapshot.mjs +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/index.mjs +14 -14
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/index.mjs +11 -11
- package/dist/astro/routes/robots.txt.mjs +2 -2
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +2 -2
- package/dist/astro/routes/sitemap.xml.mjs +2 -2
- package/dist/astro/types.d.mts +2 -2
- package/dist/{briefing-5zf0YZbR.mjs → briefing-BiBHuHqK.mjs} +1 -1
- package/dist/{briefing-DiupPvyN.mjs → briefing-DQYj9x6H.mjs} +1 -1
- package/dist/{byline-DEZKlzD9.mjs → byline-BCPYEtzy.mjs} +1 -1
- package/dist/{byline-fields-sT8qm0iY.d.mts → byline-fields-S7igJ-zQ.d.mts} +32 -32
- package/dist/{bylines-gSAfpHl4.mjs → bylines-BkRyEw1m.mjs} +1 -1
- package/dist/{bylines-CXyKpVLQ.mjs → bylines-Do1KuJkk.mjs} +2 -2
- package/dist/cli/index.mjs +10 -10
- package/dist/cli/plugin-kit.d.mts +2 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/{comment-kgLTdtQD.mjs → comment-DX7gSK1w.mjs} +1 -1
- package/dist/{comments-ZYK_cZvx.mjs → comments-CFswogn0.mjs} +1 -1
- package/dist/{content-D9xKUSno.mjs → content-Bf6Z1KsW.mjs} +8 -7
- package/dist/{context-C5lPtfeh.mjs → context-4B6AEEJg.mjs} +3 -3
- package/dist/{context-BU8AbLmY.mjs → context-BrRrM0lb.mjs} +2 -2
- package/dist/{dashboard-BnD5krLg.mjs → dashboard-DHv8q_NK.mjs} +1 -1
- package/dist/database/batch.mjs +3 -1
- package/dist/database/d1/index.d.mts +2 -2
- package/dist/database/d1/index.mjs +2 -2
- package/dist/{evidence-krrA3uiG.mjs → evidence-CoLCtvqq.mjs} +1 -1
- package/dist/{hitl-requests-CGjA1jND.mjs → hitl-requests-B4am5rjr.mjs} +1 -1
- package/dist/{hitl-route-helpers-BxSL0iZB.mjs → hitl-route-helpers-CwIBl1Rq.mjs} +1 -1
- package/dist/{import-CayDCPaH.mjs → import-Bg-IiofM.mjs} +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +31 -31
- package/dist/{jsonld-DzI2Ma14.d.mts → jsonld-B2e_FWju.d.mts} +1 -1
- package/dist/{mcp-reviewed-executor-RJ71uyQb.mjs → mcp-reviewed-executor-B_65l7Hq.mjs} +3 -3
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/{menus-5liJusbp.mjs → menus-BJvvB0n9.mjs} +1 -1
- package/dist/{menus-2o-DVcwA.mjs → menus-DNcY6Do7.mjs} +2 -2
- package/dist/{object-cache-BGjIlY9s.mjs → object-cache-DYGlsI-R.mjs} +7 -1
- package/dist/page/index.d.mts +3 -3
- package/dist/plugin-utils.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{plugins-f48yrwfI.mjs → plugins-CE6y1ImU.mjs} +1 -1
- package/dist/{public-url-4jAdQgr3.d.mts → public-url-Dj1vD21t.d.mts} +1 -1
- package/dist/{publication-authorization-Dq_20SZR.mjs → publication-authorization-DEf-rGSM.mjs} +4 -4
- package/dist/{query-D6oNo9iz.mjs → query-COquV-XH.mjs} +5 -5
- package/dist/{query-BkWWdxyb.mjs → query-DnK6LJdA.mjs} +1 -1
- package/dist/{release-CZfAeyXm.mjs → release-DFBXSMnD.mjs} +1 -1
- package/dist/request-context.d.mts +9 -1
- package/dist/request-context.mjs +11 -1
- package/dist/{review-payload-LLIi1sxO.mjs → review-payload-CzN5RQL4.mjs} +4 -4
- package/dist/{review-requests-C7prIbCo.mjs → review-requests-CQX7T3MV.mjs} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/seed/index.mjs +6 -6
- package/dist/{seo-DYpc_rQ1.mjs → seo-B3cQl1r2.mjs} +1 -1
- package/dist/{service-DOFqfUVv.mjs → service-CMR5_eSN.mjs} +2 -2
- package/dist/{settings-2p7TuNWG.mjs → settings-DiAKrrP4.mjs} +1 -1
- package/dist/{settings-DRFy8JQx.mjs → settings-dNtUakSt.mjs} +1 -1
- package/dist/{site-context-D9oETfxF.mjs → site-context-BBmRiuZl.mjs} +5 -5
- package/dist/{submission-BLvkvewK.mjs → submission-eaVl2STP.mjs} +4 -4
- package/dist/{taxonomies-DW6Fps-w.mjs → taxonomies-Cz2F2QAm.mjs} +2 -2
- package/dist/{taxonomies-C5ayPp3T.mjs → taxonomies-H63wRvul.mjs} +2 -2
- package/dist/{taxonomy-DWxxLpp5.mjs → taxonomy-CAd9SL-L.mjs} +1 -1
- package/dist/{types-jefx_scD.d.mts → types-5xfwCI4m.d.mts} +4 -4
- package/dist/ui/server-runtime.d.mts +4 -4
- package/dist/ui/server-runtime.mjs +7 -7
- package/dist/version-9AyJ5JWH.mjs +6 -0
- package/dist/{worker-wjRq4FI9.mjs → worker-hQbWAsIT.mjs} +5 -5
- package/package.json +1 -1
- package/dist/version-fsTzG0GS.mjs +0 -6
- /package/dist/{allowed-origins-Cp7BI3L9.mjs → allowed-origins-B2Jh2tzw.mjs} +0 -0
- /package/dist/{challenge-store-DFGsDtCj.mjs → challenge-store-D-_-VavY.mjs} +0 -0
- /package/dist/{mode-BJwb_MgK.mjs → mode-CPf_KZ37.mjs} +0 -0
- /package/dist/{policy-CrK1vl8l.mjs → policy-Dej7NJFD.mjs} +0 -0
- /package/dist/{session-user-DacoiKrJ.mjs → session-user-DeqTcAmR.mjs} +0 -0
- /package/dist/{setup-complete-CWMnrNFN.mjs → setup-complete-CNhQl2Cu.mjs} +0 -0
- /package/dist/{state-D8AogXCV.mjs → state-jyNZ6-7L.mjs} +0 -0
- /package/dist/{workers-build-QVrquLLe.mjs → workers-build-BaQCrSmf.mjs} +0 -0
|
@@ -6,31 +6,31 @@ import "../../../../loader-Cgsx23wU.mjs";
|
|
|
6
6
|
import "../../../../actor-DxUAJgQX.mjs";
|
|
7
7
|
import "../../../../atomic-authority-CnBQJ14T.mjs";
|
|
8
8
|
import "../../../../after-BVaUn7bK.mjs";
|
|
9
|
-
import "../../../../object-cache-
|
|
9
|
+
import "../../../../object-cache-DYGlsI-R.mjs";
|
|
10
10
|
import "../../../../revision-090sZyGc.mjs";
|
|
11
|
-
import "../../../../content-
|
|
11
|
+
import "../../../../content-Bf6Z1KsW.mjs";
|
|
12
12
|
import "../../../../media-BZqwtRTZ.mjs";
|
|
13
13
|
import "../../../../user-1-YV30lf.mjs";
|
|
14
14
|
import "../../../../options-BcqHWpc-.mjs";
|
|
15
15
|
import "../../../../site-activity-BrN2NviL.mjs";
|
|
16
16
|
import "../../../../review-requests-BF2eEKr8.mjs";
|
|
17
|
-
import "../../../../publication-authorization-
|
|
18
|
-
import { g as RiskPolicyEvaluator, o as WidgetHitlPayloadBuilder } from "../../../../site-context-
|
|
17
|
+
import "../../../../publication-authorization-DEf-rGSM.mjs";
|
|
18
|
+
import { g as RiskPolicyEvaluator, o as WidgetHitlPayloadBuilder } from "../../../../site-context-BBmRiuZl.mjs";
|
|
19
19
|
import "../../../../redirect-HLI3wT5Y.mjs";
|
|
20
20
|
import "../../../../request-cache-DPmV5nk4.mjs";
|
|
21
21
|
import "../../../../byline-registry-CkuVVeJJ.mjs";
|
|
22
22
|
import "../../../../field-defs-cache-BKKFFf_V.mjs";
|
|
23
|
-
import "../../../../byline-
|
|
24
|
-
import "../../../../review-payload-
|
|
25
|
-
import "../../../../seo-
|
|
23
|
+
import "../../../../byline-BCPYEtzy.mjs";
|
|
24
|
+
import "../../../../review-payload-CzN5RQL4.mjs";
|
|
25
|
+
import "../../../../seo-B3cQl1r2.mjs";
|
|
26
26
|
import "../../../../context-types-DLD_HnKT.mjs";
|
|
27
|
-
import "../../../../briefing-
|
|
27
|
+
import "../../../../briefing-BiBHuHqK.mjs";
|
|
28
28
|
import "../../../../content-refresh-9M9cc55-.mjs";
|
|
29
29
|
import "../../../../fts-manager-DA74x_uP.mjs";
|
|
30
30
|
import "../../../../public-discovery-CTql6jdZ.mjs";
|
|
31
31
|
import "../../../../registry-DcV93OL_.mjs";
|
|
32
|
-
import "../../../../settings-
|
|
33
|
-
import "../../../../query-
|
|
32
|
+
import "../../../../settings-dNtUakSt.mjs";
|
|
33
|
+
import "../../../../query-DnK6LJdA.mjs";
|
|
34
34
|
import "../../../../zod-generator-BzACAoR5.mjs";
|
|
35
35
|
import "../../../../schema-DFeC5axi.mjs";
|
|
36
36
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-B-44r5TD.mjs";
|
|
@@ -45,7 +45,7 @@ import "../../../../utils-BoWkoty8.mjs";
|
|
|
45
45
|
import "../../../../search-C9qOBgvo.mjs";
|
|
46
46
|
import { i as rowToWidget } from "../../../../widgets-DbOctkXv.mjs";
|
|
47
47
|
import { n as requirePerm } from "../../../../authorize-CXIjxIfC.mjs";
|
|
48
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-
|
|
48
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-CwIBl1Rq.mjs";
|
|
49
49
|
import { ulid } from "ulidx";
|
|
50
50
|
import { z } from "zod";
|
|
51
51
|
|
|
@@ -3,11 +3,11 @@ import "../../base64-Cz-aU0X1.mjs";
|
|
|
3
3
|
import "../../types-BqxIv8Il.mjs";
|
|
4
4
|
import "../../loader-Cgsx23wU.mjs";
|
|
5
5
|
import "../../after-BVaUn7bK.mjs";
|
|
6
|
-
import "../../object-cache-
|
|
6
|
+
import "../../object-cache-DYGlsI-R.mjs";
|
|
7
7
|
import "../../media-BZqwtRTZ.mjs";
|
|
8
8
|
import "../../options-BcqHWpc-.mjs";
|
|
9
9
|
import "../../request-cache-DPmV5nk4.mjs";
|
|
10
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
10
|
+
import { a as getSiteSettingsWithDb } from "../../settings-dNtUakSt.mjs";
|
|
11
11
|
import { n as getPublicOrigin } from "../../public-url-4sMO36Gw.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/astro/routes/robots.txt.ts
|
|
@@ -5,7 +5,7 @@ import "../../base64-Cz-aU0X1.mjs";
|
|
|
5
5
|
import "../../types-BqxIv8Il.mjs";
|
|
6
6
|
import "../../loader-Cgsx23wU.mjs";
|
|
7
7
|
import "../../after-BVaUn7bK.mjs";
|
|
8
|
-
import "../../object-cache-
|
|
8
|
+
import "../../object-cache-DYGlsI-R.mjs";
|
|
9
9
|
import "../../media-BZqwtRTZ.mjs";
|
|
10
10
|
import "../../options-BcqHWpc-.mjs";
|
|
11
11
|
import "../../request-cache-DPmV5nk4.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../content-refresh-9M9cc55-.mjs";
|
|
|
13
13
|
import "../../fts-manager-DA74x_uP.mjs";
|
|
14
14
|
import "../../public-discovery-CTql6jdZ.mjs";
|
|
15
15
|
import "../../registry-DcV93OL_.mjs";
|
|
16
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
16
|
+
import { a as getSiteSettingsWithDb } from "../../settings-dNtUakSt.mjs";
|
|
17
17
|
import { t as listPublicContent } from "../../discovery-CYcZJ1o3.mjs";
|
|
18
18
|
import { t as handleSitemapData } from "../../seo-Bypxm1iD.mjs";
|
|
19
19
|
import { t as buildSeoImageUrl } from "../../media-url-D-elxQjL.mjs";
|
|
@@ -5,7 +5,7 @@ import "../../base64-Cz-aU0X1.mjs";
|
|
|
5
5
|
import "../../types-BqxIv8Il.mjs";
|
|
6
6
|
import "../../loader-Cgsx23wU.mjs";
|
|
7
7
|
import "../../after-BVaUn7bK.mjs";
|
|
8
|
-
import "../../object-cache-
|
|
8
|
+
import "../../object-cache-DYGlsI-R.mjs";
|
|
9
9
|
import "../../media-BZqwtRTZ.mjs";
|
|
10
10
|
import "../../options-BcqHWpc-.mjs";
|
|
11
11
|
import "../../request-cache-DPmV5nk4.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../content-refresh-9M9cc55-.mjs";
|
|
|
13
13
|
import "../../fts-manager-DA74x_uP.mjs";
|
|
14
14
|
import "../../public-discovery-CTql6jdZ.mjs";
|
|
15
15
|
import { n as SchemaRegistry } from "../../registry-DcV93OL_.mjs";
|
|
16
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
16
|
+
import { a as getSiteSettingsWithDb } from "../../settings-dNtUakSt.mjs";
|
|
17
17
|
import "../../discovery-CYcZJ1o3.mjs";
|
|
18
18
|
import { t as handleSitemapData } from "../../seo-Bypxm1iD.mjs";
|
|
19
19
|
import { n as getPublicOrigin } from "../../public-url-4sMO36Gw.mjs";
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ContentItem } from "../types-BFoQ5a1v.mjs";
|
|
2
|
-
import { Ao as DinewayConfig, At as ResolvedPlugin, B as PluginActor, E as HttpAccess, F as PageMetadataContribution, Ja as MediaResponse, Ks as MediaItem, M as PageFragmentContribution, Oo as PluginMcpRegistry, Tt as PublicPageContext, Ut as PublicationAuthorizationService, _o as EmailPipeline, bc as ContentListResponse, do as AtomicConfirmedContentAuthorizer, fo as ConfirmedContentAuthorizer, ht as PluginRouteAuthorization, ic as Element, lo as DinewayRuntime, mo as PublishConfirmedContentInput, mt as PluginRouteApiTokenPolicy, po as ConfirmedContentPublicationResult, qa as MediaListResponse, uo as SandboxedPluginEntry, vo as HookPipeline, wo as SandboxRunner, xc as ContentResponse } from "../types-
|
|
2
|
+
import { Ao as DinewayConfig, At as ResolvedPlugin, B as PluginActor, E as HttpAccess, F as PageMetadataContribution, Ja as MediaResponse, Ks as MediaItem, M as PageFragmentContribution, Oo as PluginMcpRegistry, Tt as PublicPageContext, Ut as PublicationAuthorizationService, _o as EmailPipeline, bc as ContentListResponse, do as AtomicConfirmedContentAuthorizer, fo as ConfirmedContentAuthorizer, ht as PluginRouteAuthorization, ic as Element, lo as DinewayRuntime, mo as PublishConfirmedContentInput, mt as PluginRouteApiTokenPolicy, po as ConfirmedContentPublicationResult, qa as MediaListResponse, uo as SandboxedPluginEntry, vo as HookPipeline, wo as SandboxRunner, xc as ContentResponse } from "../types-5xfwCI4m.mjs";
|
|
3
3
|
import { t as Database } from "../types-CVRNRAA5.mjs";
|
|
4
4
|
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-CQKI6vLd.mjs";
|
|
5
5
|
import "../runner-Cxl-vyk2.mjs";
|
|
@@ -8,7 +8,7 @@ import "../types-SddyDti7.mjs";
|
|
|
8
8
|
import { d as Storage } from "../types-BWsEjujW.mjs";
|
|
9
9
|
import "../public-url-zoO-QbN6.mjs";
|
|
10
10
|
import "../validate-CCOsvPg2.mjs";
|
|
11
|
-
import "../byline-fields-
|
|
11
|
+
import "../byline-fields-S7igJ-zQ.mjs";
|
|
12
12
|
import "../types-CAD4OvmF.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
14
14
|
import { Kysely } from "kysely";
|
|
@@ -4,7 +4,7 @@ import { t as SiteActivityRepository } from "./site-activity-BrN2NviL.mjs";
|
|
|
4
4
|
import { r as ReviewRequestRepository } from "./review-requests-BF2eEKr8.mjs";
|
|
5
5
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-DLD_HnKT.mjs";
|
|
6
6
|
import { n as SchemaRegistry } from "./registry-DcV93OL_.mjs";
|
|
7
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
7
|
+
import { a as getSiteSettingsWithDb } from "./settings-dNtUakSt.mjs";
|
|
8
8
|
import { sql } from "kysely";
|
|
9
9
|
import { ulid } from "ulidx";
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@ import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
|
3
3
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
4
4
|
import { l as listTablesLike } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
5
5
|
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-BqxIv8Il.mjs";
|
|
6
|
-
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-
|
|
6
|
+
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-DYGlsI-R.mjs";
|
|
7
7
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-BnG3LPMN.mjs";
|
|
8
8
|
import { i as setRequestCacheEntry, n as peekRequestCache, t as clearRequestCacheEntry } from "./request-cache-DPmV5nk4.mjs";
|
|
9
9
|
import { n as getBylineFieldDefs } from "./field-defs-cache-BKKFFf_V.mjs";
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
/** Valid role level values */
|
|
5
5
|
declare const VALID_ROLE_LEVELS: Set<number>;
|
|
6
6
|
/** Role level — coerces string/number to valid RoleLevel (10|20|30|40|50) */
|
|
7
|
-
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
7
|
+
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -807,8 +807,8 @@ declare const createCollectionBody: z.ZodObject<{
|
|
|
807
807
|
icon: z.ZodOptional<z.ZodString>;
|
|
808
808
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
809
809
|
search: "search";
|
|
810
|
-
revisions: "revisions";
|
|
811
810
|
drafts: "drafts";
|
|
811
|
+
revisions: "revisions";
|
|
812
812
|
preview: "preview";
|
|
813
813
|
scheduling: "scheduling";
|
|
814
814
|
}>>>;
|
|
@@ -828,8 +828,8 @@ declare const updateCollectionBody: z.ZodObject<{
|
|
|
828
828
|
icon: z.ZodOptional<z.ZodString>;
|
|
829
829
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
830
830
|
search: "search";
|
|
831
|
-
revisions: "revisions";
|
|
832
831
|
drafts: "drafts";
|
|
832
|
+
revisions: "revisions";
|
|
833
833
|
preview: "preview";
|
|
834
834
|
scheduling: "scheduling";
|
|
835
835
|
}>>>;
|
|
@@ -856,15 +856,15 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
856
856
|
string: "string";
|
|
857
857
|
number: "number";
|
|
858
858
|
boolean: "boolean";
|
|
859
|
-
file: "file";
|
|
860
859
|
json: "json";
|
|
861
860
|
url: "url";
|
|
861
|
+
file: "file";
|
|
862
862
|
slug: "slug";
|
|
863
|
-
text: "text";
|
|
864
|
-
select: "select";
|
|
865
863
|
image: "image";
|
|
866
864
|
datetime: "datetime";
|
|
865
|
+
text: "text";
|
|
867
866
|
integer: "integer";
|
|
867
|
+
select: "select";
|
|
868
868
|
multiSelect: "multiSelect";
|
|
869
869
|
portableText: "portableText";
|
|
870
870
|
reference: "reference";
|
|
@@ -888,11 +888,11 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
888
888
|
number: "number";
|
|
889
889
|
boolean: "boolean";
|
|
890
890
|
url: "url";
|
|
891
|
-
text: "text";
|
|
892
|
-
select: "select";
|
|
893
891
|
image: "image";
|
|
894
892
|
datetime: "datetime";
|
|
893
|
+
text: "text";
|
|
895
894
|
integer: "integer";
|
|
895
|
+
select: "select";
|
|
896
896
|
}>;
|
|
897
897
|
label: z.ZodString;
|
|
898
898
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -914,15 +914,15 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
914
914
|
string: "string";
|
|
915
915
|
number: "number";
|
|
916
916
|
boolean: "boolean";
|
|
917
|
-
file: "file";
|
|
918
917
|
json: "json";
|
|
919
918
|
url: "url";
|
|
919
|
+
file: "file";
|
|
920
920
|
slug: "slug";
|
|
921
|
-
text: "text";
|
|
922
|
-
select: "select";
|
|
923
921
|
image: "image";
|
|
924
922
|
datetime: "datetime";
|
|
923
|
+
text: "text";
|
|
925
924
|
integer: "integer";
|
|
925
|
+
select: "select";
|
|
926
926
|
multiSelect: "multiSelect";
|
|
927
927
|
portableText: "portableText";
|
|
928
928
|
reference: "reference";
|
|
@@ -946,11 +946,11 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
946
946
|
number: "number";
|
|
947
947
|
boolean: "boolean";
|
|
948
948
|
url: "url";
|
|
949
|
-
text: "text";
|
|
950
|
-
select: "select";
|
|
951
949
|
image: "image";
|
|
952
950
|
datetime: "datetime";
|
|
951
|
+
text: "text";
|
|
953
952
|
integer: "integer";
|
|
953
|
+
select: "select";
|
|
954
954
|
}>;
|
|
955
955
|
label: z.ZodString;
|
|
956
956
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1008,15 +1008,15 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
1008
1008
|
string: "string";
|
|
1009
1009
|
number: "number";
|
|
1010
1010
|
boolean: "boolean";
|
|
1011
|
-
file: "file";
|
|
1012
1011
|
json: "json";
|
|
1013
1012
|
url: "url";
|
|
1013
|
+
file: "file";
|
|
1014
1014
|
slug: "slug";
|
|
1015
|
-
text: "text";
|
|
1016
|
-
select: "select";
|
|
1017
1015
|
image: "image";
|
|
1018
1016
|
datetime: "datetime";
|
|
1017
|
+
text: "text";
|
|
1019
1018
|
integer: "integer";
|
|
1019
|
+
select: "select";
|
|
1020
1020
|
multiSelect: "multiSelect";
|
|
1021
1021
|
portableText: "portableText";
|
|
1022
1022
|
reference: "reference";
|
|
@@ -1083,15 +1083,15 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
1083
1083
|
string: "string";
|
|
1084
1084
|
number: "number";
|
|
1085
1085
|
boolean: "boolean";
|
|
1086
|
-
file: "file";
|
|
1087
1086
|
json: "json";
|
|
1088
1087
|
url: "url";
|
|
1088
|
+
file: "file";
|
|
1089
1089
|
slug: "slug";
|
|
1090
|
-
text: "text";
|
|
1091
|
-
select: "select";
|
|
1092
1090
|
image: "image";
|
|
1093
1091
|
datetime: "datetime";
|
|
1092
|
+
text: "text";
|
|
1094
1093
|
integer: "integer";
|
|
1094
|
+
select: "select";
|
|
1095
1095
|
multiSelect: "multiSelect";
|
|
1096
1096
|
portableText: "portableText";
|
|
1097
1097
|
reference: "reference";
|
|
@@ -1142,15 +1142,15 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1142
1142
|
string: "string";
|
|
1143
1143
|
number: "number";
|
|
1144
1144
|
boolean: "boolean";
|
|
1145
|
-
file: "file";
|
|
1146
1145
|
json: "json";
|
|
1147
1146
|
url: "url";
|
|
1147
|
+
file: "file";
|
|
1148
1148
|
slug: "slug";
|
|
1149
|
-
text: "text";
|
|
1150
|
-
select: "select";
|
|
1151
1149
|
image: "image";
|
|
1152
1150
|
datetime: "datetime";
|
|
1151
|
+
text: "text";
|
|
1153
1152
|
integer: "integer";
|
|
1153
|
+
select: "select";
|
|
1154
1154
|
multiSelect: "multiSelect";
|
|
1155
1155
|
portableText: "portableText";
|
|
1156
1156
|
reference: "reference";
|
|
@@ -1179,15 +1179,15 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
1179
1179
|
string: "string";
|
|
1180
1180
|
number: "number";
|
|
1181
1181
|
boolean: "boolean";
|
|
1182
|
-
file: "file";
|
|
1183
1182
|
json: "json";
|
|
1184
1183
|
url: "url";
|
|
1184
|
+
file: "file";
|
|
1185
1185
|
slug: "slug";
|
|
1186
|
-
text: "text";
|
|
1187
|
-
select: "select";
|
|
1188
1186
|
image: "image";
|
|
1189
1187
|
datetime: "datetime";
|
|
1188
|
+
text: "text";
|
|
1190
1189
|
integer: "integer";
|
|
1190
|
+
select: "select";
|
|
1191
1191
|
multiSelect: "multiSelect";
|
|
1192
1192
|
portableText: "portableText";
|
|
1193
1193
|
reference: "reference";
|
|
@@ -1368,13 +1368,13 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1368
1368
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1369
1369
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1370
1370
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1371
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1372
1371
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1373
1372
|
true: "true";
|
|
1374
1373
|
false: "false";
|
|
1375
1374
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1376
1375
|
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1377
1376
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1377
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1378
1378
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1379
1379
|
user: "user";
|
|
1380
1380
|
api_token: "api_token";
|
|
@@ -1545,7 +1545,7 @@ declare const signupCompleteBody: z.ZodObject<{
|
|
|
1545
1545
|
}, z.core.$strip>;
|
|
1546
1546
|
declare const inviteCreateBody: z.ZodObject<{
|
|
1547
1547
|
email: z.ZodString;
|
|
1548
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
1548
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
1549
1549
|
}, z.core.$strip>;
|
|
1550
1550
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1551
1551
|
token: z.ZodString;
|
|
@@ -1637,9 +1637,9 @@ declare const authMeActionBody: z.ZodObject<{
|
|
|
1637
1637
|
* from `referenceCollection` + `referenceId` (a translation_group id).
|
|
1638
1638
|
*/
|
|
1639
1639
|
declare const menuItemTypeEnum: z.ZodEnum<{
|
|
1640
|
-
custom: "custom";
|
|
1641
1640
|
collection: "collection";
|
|
1642
1641
|
taxonomy: "taxonomy";
|
|
1642
|
+
custom: "custom";
|
|
1643
1643
|
page: "page";
|
|
1644
1644
|
post: "post";
|
|
1645
1645
|
}>;
|
|
@@ -1654,9 +1654,9 @@ declare const updateMenuBody: z.ZodObject<{
|
|
|
1654
1654
|
}, z.core.$strict>;
|
|
1655
1655
|
declare const createMenuItemBody: z.ZodObject<{
|
|
1656
1656
|
type: z.ZodEnum<{
|
|
1657
|
-
custom: "custom";
|
|
1658
1657
|
collection: "collection";
|
|
1659
1658
|
taxonomy: "taxonomy";
|
|
1659
|
+
custom: "custom";
|
|
1660
1660
|
page: "page";
|
|
1661
1661
|
post: "post";
|
|
1662
1662
|
}>;
|
|
@@ -2097,15 +2097,15 @@ declare const usersListQuery: z.ZodObject<{
|
|
|
2097
2097
|
declare const userUpdateBody: z.ZodObject<{
|
|
2098
2098
|
name: z.ZodOptional<z.ZodString>;
|
|
2099
2099
|
email: z.ZodOptional<z.ZodString>;
|
|
2100
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
2100
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
2101
2101
|
}, z.core.$strip>;
|
|
2102
2102
|
declare const allowedDomainCreateBody: z.ZodObject<{
|
|
2103
2103
|
domain: z.ZodString;
|
|
2104
|
-
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
2104
|
+
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
|
|
2105
2105
|
}, z.core.$strip>;
|
|
2106
2106
|
declare const allowedDomainUpdateBody: z.ZodObject<{
|
|
2107
2107
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2108
|
-
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
2108
|
+
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
2109
2109
|
}, z.core.$strip>;
|
|
2110
2110
|
declare const userSchema: z.ZodObject<{
|
|
2111
2111
|
id: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
3
3
|
import { t as DinewayValidationError } from "./types-BqxIv8Il.mjs";
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
4
|
+
import { t as BylineRepository } from "./byline-BCPYEtzy.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/bylines.ts
|
|
7
7
|
var bylines_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
3
|
import { o as isMissingTableError, r as getDb } from "./loader-Cgsx23wU.mjs";
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
4
|
+
import { t as BylineRepository } from "./byline-BCPYEtzy.mjs";
|
|
5
5
|
import { n as resolveLocaleChain } from "./resolve-CpOV2jt_.mjs";
|
|
6
6
|
import { sql } from "kysely";
|
|
7
7
|
|
|
@@ -184,7 +184,7 @@ async function getBylinesForEntries(collection, entries) {
|
|
|
184
184
|
*/
|
|
185
185
|
async function getEntriesByByline(collection, byline, options = {}) {
|
|
186
186
|
validateIdentifier(collection, "collection");
|
|
187
|
-
const { getDinewayCollection } = await import("./query-
|
|
187
|
+
const { getDinewayCollection } = await import("./query-COquV-XH.mjs").then((n) => n.o);
|
|
188
188
|
const { entries } = await getDinewayCollection(collection, {
|
|
189
189
|
where: { byline },
|
|
190
190
|
...options.locale !== void 0 ? { locale: options.locale } : {},
|
package/dist/cli/index.mjs
CHANGED
|
@@ -12,18 +12,18 @@ import { o as isMissingTableError } from "../loader-Cgsx23wU.mjs";
|
|
|
12
12
|
import "../actor-DxUAJgQX.mjs";
|
|
13
13
|
import "../atomic-authority-CnBQJ14T.mjs";
|
|
14
14
|
import "../after-BVaUn7bK.mjs";
|
|
15
|
-
import "../object-cache-
|
|
15
|
+
import "../object-cache-DYGlsI-R.mjs";
|
|
16
16
|
import { n as slugify } from "../slugify-Di8Q_MFq.mjs";
|
|
17
17
|
import "../revision-090sZyGc.mjs";
|
|
18
|
-
import { t as ContentRepository } from "../content-
|
|
18
|
+
import { t as ContentRepository } from "../content-Bf6Z1KsW.mjs";
|
|
19
19
|
import { t as MediaRepository } from "../media-BZqwtRTZ.mjs";
|
|
20
|
-
import { t as TaxonomyRepository } from "../taxonomy-
|
|
20
|
+
import { t as TaxonomyRepository } from "../taxonomy-CAd9SL-L.mjs";
|
|
21
21
|
import { t as OptionsRepository } from "../options-BcqHWpc-.mjs";
|
|
22
22
|
import "../redirect-HLI3wT5Y.mjs";
|
|
23
23
|
import "../request-cache-DPmV5nk4.mjs";
|
|
24
24
|
import "../byline-registry-CkuVVeJJ.mjs";
|
|
25
25
|
import "../field-defs-cache-BKKFFf_V.mjs";
|
|
26
|
-
import { t as BylineRepository } from "../byline-
|
|
26
|
+
import { t as BylineRepository } from "../byline-BCPYEtzy.mjs";
|
|
27
27
|
import { n as DinewayToolsService, r as integrationResponse, t as DinewayToolsError } from "../service-CeEi6nax.mjs";
|
|
28
28
|
import "../runtime-env-v-1UXPAH.mjs";
|
|
29
29
|
import { i as parseEncryptionKeys, n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-BP2YTPWn.mjs";
|
|
@@ -32,21 +32,21 @@ import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../ssrf-COxL
|
|
|
32
32
|
import "../fts-manager-DA74x_uP.mjs";
|
|
33
33
|
import "../public-discovery-CTql6jdZ.mjs";
|
|
34
34
|
import { n as SchemaRegistry } from "../registry-DcV93OL_.mjs";
|
|
35
|
-
import "../settings-
|
|
36
|
-
import { n as VERSION } from "../version-
|
|
35
|
+
import "../settings-dNtUakSt.mjs";
|
|
36
|
+
import { n as VERSION } from "../version-9AyJ5JWH.mjs";
|
|
37
37
|
import { t as IntegrationCredentialStore } from "../store-CjmmGlVw.mjs";
|
|
38
38
|
import { a as reconcileManifestAccess, i as pluginManifestSchema } from "../manifest-schema-DBXM_g8l.mjs";
|
|
39
39
|
import "../migrations-C7YXse7V.mjs";
|
|
40
40
|
import { t as validateSeed } from "../validate-CupwWNWL.mjs";
|
|
41
|
-
import { t as applySeed } from "../apply-
|
|
42
|
-
import { n as validateWorkersBindings, t as WORKERS_BUILD_METADATA } from "../workers-build-
|
|
43
|
-
import { n as d1ReleaseRevision } from "../state-
|
|
41
|
+
import { t as applySeed } from "../apply-CC0OQb8V.mjs";
|
|
42
|
+
import { n as validateWorkersBindings, t as WORKERS_BUILD_METADATA } from "../workers-build-BaQCrSmf.mjs";
|
|
43
|
+
import { n as d1ReleaseRevision } from "../state-jyNZ6-7L.mjs";
|
|
44
44
|
import { a as createForgewayAccountClient, c as normalizeForgewayApiUrl, d as refreshForgewayAccountCredentials, f as removeStoredForgewayAccount, g as writeForgewayCredentials, h as readForgewayCredentials, i as completeForgewayAccountLogin, l as normalizeForgewayEmail, m as listForgewayCredentials, n as DEFAULT_FORGEWAY_API_BASE_URL, o as getForgewayDinewayAccount, p as sendForgewayAccountLoginLink, r as InvalidForgewayAccountCredentialsError, s as normalizeDinewayWebUrl, t as DEFAULT_DINEWAY_WEB_URL, u as readStoredForgewayAccount } from "../forgeway-account-CnWOIusE.mjs";
|
|
45
45
|
import { n as output, t as configureOutputMode } from "../output-CdmbQioY.mjs";
|
|
46
46
|
import { createHeaderAwareFetch, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
47
47
|
import { t as convertDataForRead } from "../portable-text-DH3Om_2D.mjs";
|
|
48
48
|
import { _ as saveMarketplaceCredential, a as ensureProjectGitignoreDinewayLocalState, c as resolveDinewayBaseUrl, d as getCredentials, f as getMarketplaceCredential, g as saveCredentials, h as resolveCredentialKey, i as DEFAULT_DINEWAY_URL, l as resolveDinewayToken, m as removeMarketplaceCredential, n as connectionArgs, o as ensureProjectGitignoreEntry, p as removeCredentials, r as createClientFromArgs, s as readProjectEnv, u as upsertProjectEnv } from "../client-factory-6vLLT06O.mjs";
|
|
49
|
-
import { t as migrateD1Release } from "../release-
|
|
49
|
+
import { t as migrateD1Release } from "../release-DFBXSMnD.mjs";
|
|
50
50
|
import { t as createD1Dialect } from "../d1-dialect-BBxPg6Om.mjs";
|
|
51
51
|
import { LocalStorage } from "../storage/local.mjs";
|
|
52
52
|
import { r as fileExists$11, t as bundleCommand } from "../bundle-DImnxo71.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../types-
|
|
1
|
+
import "../types-5xfwCI4m.mjs";
|
|
2
2
|
import "../types-CVRNRAA5.mjs";
|
|
3
3
|
import "../runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "../index-mlJSqFkG.mjs";
|
|
5
5
|
import "../types-SddyDti7.mjs";
|
|
6
6
|
import "../public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "../validate-CCOsvPg2.mjs";
|
|
8
|
-
import "../byline-fields-
|
|
8
|
+
import "../byline-fields-S7igJ-zQ.mjs";
|
|
9
9
|
import "../types-CAD4OvmF.mjs";
|
|
10
10
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
11
11
|
import { SubCommandsDef } from "citty";
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Ns as ReviewRequest, Ps as ReviewRequestStatus, Wt as PublicationPolicyOverride, Yt as PublicationReadinessResult, Zt as PublicationReceipt } from "../types-
|
|
1
|
+
import { Ns as ReviewRequest, Ps as ReviewRequestStatus, Wt as PublicationPolicyOverride, Yt as PublicationReadinessResult, Zt as PublicationReceipt } from "../types-5xfwCI4m.mjs";
|
|
2
2
|
import "../types-CVRNRAA5.mjs";
|
|
3
3
|
import "../runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "../index-mlJSqFkG.mjs";
|
|
5
5
|
import "../types-SddyDti7.mjs";
|
|
6
6
|
import "../public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "../validate-CCOsvPg2.mjs";
|
|
8
|
-
import "../byline-fields-
|
|
8
|
+
import "../byline-fields-S7igJ-zQ.mjs";
|
|
9
9
|
import "../types-CAD4OvmF.mjs";
|
|
10
10
|
import { a as tokenInterceptor, i as devBypassInterceptor, n as createTransport, r as csrfInterceptor, t as Interceptor } from "../transport-CZbtxgKZ.mjs";
|
|
11
11
|
import { n as markdownToPortableText, r as portableTextToMarkdown, t as PortableTextBlock } from "../portable-text-BE7nszX6.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as encodeCursor, r as decodeCursor } from "./types-BqxIv8Il.mjs";
|
|
2
|
-
import { s as invalidateCommentObjectCache } from "./object-cache-
|
|
2
|
+
import { s as invalidateCommentObjectCache } from "./object-cache-DYGlsI-R.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
@@ -4,7 +4,7 @@ import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
|
4
4
|
import { o as isPostgres } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
5
5
|
import { i as encodeCursor, n as ScheduledNotDueError, r as decodeCursor, t as DinewayValidationError } from "./types-BqxIv8Il.mjs";
|
|
6
6
|
import { t as contentWriteChecks } from "./atomic-authority-CnBQJ14T.mjs";
|
|
7
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
7
|
+
import { o as invalidateCollectionCache } from "./object-cache-DYGlsI-R.mjs";
|
|
8
8
|
import { n as slugify } from "./slugify-Di8Q_MFq.mjs";
|
|
9
9
|
import { t as RevisionRepository } from "./revision-090sZyGc.mjs";
|
|
10
10
|
import { sql } from "kysely";
|
|
@@ -219,13 +219,14 @@ var ContentRepository = class {
|
|
|
219
219
|
if (!definition) throw new DinewayValidationError("Content table not found");
|
|
220
220
|
const pairs = schema.rows.map((row) => row.name).filter((name) => !SYSTEM_COLUMNS.has(name)).map((name) => {
|
|
221
221
|
const column = sql.ref(name);
|
|
222
|
-
return sql`
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
return sql`(${sql.lit(name)}, (SELECT CASE
|
|
223
|
+
WHEN ${column} IS NULL THEN NULL
|
|
224
|
+
WHEN typeof(${column}) = 'text' AND substr(${column}, 1, 1) IN ('{', '[') AND json_valid(${column})
|
|
225
|
+
THEN ${column} ELSE json_quote(${column}) END FROM candidate))`;
|
|
226
226
|
});
|
|
227
|
-
snapshot = pairs.length ? sql`(WITH candidate AS (SELECT * FROM ${sql.table(tableName)} WHERE id = ${id})
|
|
228
|
-
|
|
227
|
+
snapshot = pairs.length ? sql`(WITH candidate AS (SELECT * FROM ${sql.table(tableName)} WHERE id = ${id}),
|
|
228
|
+
field_values(name, value) AS (VALUES ${sql.join(pairs)})
|
|
229
|
+
SELECT json_group_object(name, json(value)) FROM field_values WHERE value IS NOT NULL)` : sql`'{}'`;
|
|
229
230
|
checks.push(sql`EXISTS (SELECT 1 FROM sqlite_master WHERE name = ${tableName} AND sql = ${definition})`);
|
|
230
231
|
}
|
|
231
232
|
const revision = new RevisionRepository(this.db).prepareCreateSnapshot({
|
|
@@ -3,13 +3,13 @@ import { n as validateJsonFieldName } from "./validate-Co3j6T_K.mjs";
|
|
|
3
3
|
import { c as jsonExtractExpr } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
4
4
|
import { i as encodeCursor, r as decodeCursor } from "./types-BqxIv8Il.mjs";
|
|
5
5
|
import { t as contentWriteChecks } from "./atomic-authority-CnBQJ14T.mjs";
|
|
6
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
7
|
-
import { t as ContentRepository } from "./content-
|
|
6
|
+
import { o as invalidateCollectionCache } from "./object-cache-DYGlsI-R.mjs";
|
|
7
|
+
import { t as ContentRepository } from "./content-Bf6Z1KsW.mjs";
|
|
8
8
|
import { t as MediaRepository } from "./media-BZqwtRTZ.mjs";
|
|
9
9
|
import { t as UserRepository } from "./user-1-YV30lf.mjs";
|
|
10
10
|
import { t as OptionsRepository } from "./options-BcqHWpc-.mjs";
|
|
11
11
|
import { t as enrichImageMetadata } from "./enrich-BjF-J4sF.mjs";
|
|
12
|
-
import { t as SeoRepository } from "./seo-
|
|
12
|
+
import { t as SeoRepository } from "./seo-B3cQl1r2.mjs";
|
|
13
13
|
import { o as prepareContentMediaUsageCollectionStale } from "./content-refresh-9M9cc55-.mjs";
|
|
14
14
|
import { a as validateExternalUrl, i as stripCredentialHeaders, t as SsrfError } from "./ssrf-COxLChKv.mjs";
|
|
15
15
|
import { t as CronAccessImpl } from "./cron-BVYo08mi.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-
|
|
2
|
-
import { d as ContextRepository, i as parseSiteBriefingScope, n as SiteBriefingError } from "./briefing-
|
|
1
|
+
import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-BBmRiuZl.mjs";
|
|
2
|
+
import { d as ContextRepository, i as parseSiteBriefingScope, n as SiteBriefingError } from "./briefing-BiBHuHqK.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/context.ts
|
|
5
5
|
async function handleContextEntryList(db, input = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
2
|
-
import { t as ContentRepository } from "./content-
|
|
2
|
+
import { t as ContentRepository } from "./content-Bf6Z1KsW.mjs";
|
|
3
3
|
import { t as MediaRepository } from "./media-BZqwtRTZ.mjs";
|
|
4
4
|
import { t as UserRepository } from "./user-1-YV30lf.mjs";
|
|
5
5
|
import { r as ReviewRequestRepository } from "./review-requests-BF2eEKr8.mjs";
|
package/dist/database/batch.mjs
CHANGED
|
@@ -29,7 +29,9 @@ function isD1Database(db) {
|
|
|
29
29
|
function rowUnchanged(table, row) {
|
|
30
30
|
const entries = Object.entries(row);
|
|
31
31
|
if (!entries.length) throw new Error("An atomic row check requires a nonempty database row.");
|
|
32
|
-
|
|
32
|
+
const comparisons = entries.map(([column, value]) => sql`${sql.ref(column)} IS NOT DISTINCT FROM ${value}`);
|
|
33
|
+
const groups = Array.from({ length: Math.ceil(comparisons.length / 16) }, (_, index) => sql`(${sql.join(comparisons.slice(index * 16, (index + 1) * 16), sql` AND `)})`);
|
|
34
|
+
return sql`EXISTS (SELECT 1 FROM ${sql.table(table)} WHERE ${sql.join(groups, sql` AND `)})`;
|
|
33
35
|
}
|
|
34
36
|
/** Called during explicit schema installation, never during a user write. */
|
|
35
37
|
async function ensureAtomicBatchSchema(db) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { At as ResolvedPlugin, ac as D1Migration, cc as migrateD1, lc as D1SchemaObject, oc as D1MigrationOptions, sc as assertD1Migrations, uc as compileD1Schema } from "../../types-
|
|
1
|
+
import { At as ResolvedPlugin, ac as D1Migration, cc as migrateD1, lc as D1SchemaObject, oc as D1MigrationOptions, sc as assertD1Migrations, uc as compileD1Schema } from "../../types-5xfwCI4m.mjs";
|
|
2
2
|
import "../../types-CVRNRAA5.mjs";
|
|
3
3
|
import "../../runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "../../index-mlJSqFkG.mjs";
|
|
5
5
|
import "../../types-SddyDti7.mjs";
|
|
6
6
|
import "../../public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "../../validate-CCOsvPg2.mjs";
|
|
8
|
-
import "../../byline-fields-
|
|
8
|
+
import "../../byline-fields-S7igJ-zQ.mjs";
|
|
9
9
|
import "../../types-CAD4OvmF.mjs";
|
|
10
10
|
import { Kysely } from "kysely";
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@ import { o as assertD1Migrations, s as migrateD1 } from "../../runner-CVeq0266.m
|
|
|
2
2
|
import "../../d1-binding-D6HZa3ks.mjs";
|
|
3
3
|
import "../../dialect-helpers-C6xtO-Ui.mjs";
|
|
4
4
|
import "../../migrations-C7YXse7V.mjs";
|
|
5
|
-
import "../../state-
|
|
6
|
-
import { n as compileD1Schema, t as migrateD1Release } from "../../release-
|
|
5
|
+
import "../../state-jyNZ6-7L.mjs";
|
|
6
|
+
import { n as compileD1Schema, t as migrateD1Release } from "../../release-DFBXSMnD.mjs";
|
|
7
7
|
|
|
8
8
|
export { assertD1Migrations, compileD1Schema, migrateD1, migrateD1Release };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as encodeBase64url } from "./base64-Cz-aU0X1.mjs";
|
|
2
2
|
import { t as MediaRepository } from "./media-BZqwtRTZ.mjs";
|
|
3
3
|
import { t as buildStableHash } from "./stable-hash-DEtJgcp7.mjs";
|
|
4
|
-
import { a as selectActiveBriefingContextEntries, d as ContextRepository, i as parseSiteBriefingScope } from "./briefing-
|
|
4
|
+
import { a as selectActiveBriefingContextEntries, d as ContextRepository, i as parseSiteBriefingScope } from "./briefing-BiBHuHqK.mjs";
|
|
5
5
|
import { n as sha256, s as readBoundedBytes } from "./runs-B8kCirJ6.mjs";
|
|
6
6
|
import { c as loadContentMediaUsageFields } from "./content-refresh-9M9cc55-.mjs";
|
|
7
7
|
import { r as ssrfSafeFetch } from "./ssrf-COxLChKv.mjs";
|