dineway 0.2.46 → 0.2.47
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 +10 -10
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-BSmjb74C.mjs → api-CJ_MN3ZM.mjs} +9 -9
- package/dist/{apply-Caad3Uh7.mjs → apply-AOuBTila.mjs} +14 -14
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +2 -2
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/redirect.mjs +3 -3
- package/dist/astro/middleware.mjs +53 -53
- package/dist/astro/routes/api/admin/briefing.mjs +15 -15
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +7 -7
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +7 -7
- package/dist/astro/routes/api/admin/bylines/index.mjs +7 -7
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/bulk.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/counts.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/index.mjs +4 -4
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +23 -23
- package/dist/astro/routes/api/admin/context/diff.mjs +23 -23
- package/dist/astro/routes/api/admin/context/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/stale.mjs +23 -23
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +24 -24
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +24 -24
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +24 -24
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +38 -38
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +34 -34
- package/dist/astro/routes/api/admin/plugins/updates.mjs +34 -34
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +15 -15
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +26 -26
- package/dist/astro/routes/api/admin/review-requests/index.mjs +25 -25
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +34 -34
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +34 -34
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +5 -5
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +14 -14
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/index.mjs +3 -3
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +8 -8
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +26 -26
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +24 -24
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +24 -24
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +27 -27
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +58 -58
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_/items.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_/translations.mjs +24 -24
- package/dist/astro/routes/api/menus/_name_.mjs +24 -24
- package/dist/astro/routes/api/menus/index.mjs +24 -24
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +23 -23
- package/dist/astro/routes/api/redirects/index.mjs +23 -23
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +34 -34
- package/dist/astro/routes/api/schema/collections/index.mjs +34 -34
- package/dist/astro/routes/api/schema/index.mjs +4 -4
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +34 -34
- package/dist/astro/routes/api/schema/orphans/index.mjs +34 -34
- package/dist/astro/routes/api/search/enable.mjs +4 -4
- package/dist/astro/routes/api/search/index.mjs +4 -4
- package/dist/astro/routes/api/search/rebuild.mjs +4 -4
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +4 -4
- package/dist/astro/routes/api/sections/_slug_.mjs +24 -24
- package/dist/astro/routes/api/sections/index.mjs +24 -24
- package/dist/astro/routes/api/settings.mjs +24 -24
- package/dist/astro/routes/api/setup/dev-bypass.mjs +17 -17
- package/dist/astro/routes/api/setup/index.mjs +17 -17
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +26 -26
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +26 -26
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +26 -26
- package/dist/astro/routes/api/taxonomies/index.mjs +26 -26
- package/dist/astro/routes/api/typegen.mjs +2 -2
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +23 -23
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +24 -24
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +24 -24
- package/dist/astro/routes/api/widget-areas/_name_.mjs +24 -24
- package/dist/astro/routes/api/widget-areas/index.mjs +24 -24
- package/dist/astro/routes/robots.txt.mjs +5 -5
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
- package/dist/astro/routes/sitemap.xml.mjs +9 -9
- package/dist/astro/session-driver.mjs +3 -3
- package/dist/astro/types.d.mts +2 -2
- package/dist/{briefing-CbsLoDJS.mjs → briefing-8OgwfN-y.mjs} +1 -1
- package/dist/{briefing-yQgD73g4.mjs → briefing-CQk5h4t6.mjs} +5 -5
- package/dist/{byline-BS25s1R-.mjs → byline-DGTZqRM0.mjs} +5 -5
- package/dist/{byline-fields-D6EXp7_j.d.mts → byline-fields-DvYufwxE.d.mts} +28 -28
- package/dist/{bylines-ZRvo3-j0.mjs → bylines-BO0rdeMa.mjs} +3 -3
- package/dist/{bylines-CLBeFLdo.mjs → bylines-D27pVrb-.mjs} +1 -1
- package/dist/cli/index.mjs +33 -27
- package/dist/cli/plugin-kit.d.mts +2 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/{comment-BTt78k0n.mjs → comment--XUWDcJD.mjs} +1 -1
- package/dist/{comments-Do2zF3as.mjs → comments-1RMjBvK3.mjs} +1 -1
- package/dist/{content-BZBomTNV.mjs → content-rb8lZEfT.mjs} +4 -4
- package/dist/{content-refresh-DbGFLB3p.mjs → content-refresh-Dl938dTm.mjs} +2 -2
- package/dist/content-storage/index.d.mts +4 -2
- package/dist/content-storage/index.mjs +13 -13
- package/dist/content-storage/store.d.mts +2 -2
- package/dist/content-storage/store.mjs +2 -2
- package/dist/{content-write-Bt_eiX9o.mjs → content-write-DPszY76R.mjs} +10 -10
- package/dist/{context-RtLnM2-Z.mjs → context-BrzB9nTR.mjs} +4 -4
- package/dist/{context-VxiTIEQa.mjs → context-I9mz_9uB.mjs} +2 -2
- package/dist/{dashboard-C_x53TcC.mjs → dashboard-CZtacCz9.mjs} +1 -1
- package/dist/database/d1/index.d.mts +2 -2
- package/dist/{discovery-DNwLsQqJ.mjs → discovery-BjyZQy47.mjs} +1 -1
- package/dist/{evidence-D3Tqm_ik.mjs → evidence-DE40B1zz.mjs} +2 -2
- package/dist/{hitl-requests-ysSO7eqS.mjs → hitl-requests-DsLqU9VX.mjs} +1 -1
- package/dist/{hitl-route-helpers-BLJYI67Y.mjs → hitl-route-helpers-BVgtDm47.mjs} +1 -1
- package/dist/{import-BkBVo6UM.mjs → import-DrzBQKha.mjs} +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +46 -46
- package/dist/{jsonld-BObNyc22.d.mts → jsonld-Qr9dwCK4.d.mts} +1 -1
- package/dist/{loader--zFg6meV.mjs → loader-Q07mEStb.mjs} +2 -2
- package/dist/{mcp-reviewed-executor-CiuVfiL_.mjs → mcp-reviewed-executor-mRdtNIf1.mjs} +2 -2
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/{menus-Dq323Wka.mjs → menus-Coq8FLPj.mjs} +3 -3
- package/dist/{menus-BoNLPIAK.mjs → menus-DDxZ0JiZ.mjs} +1 -1
- package/dist/{migration-BhVzGnj0.mjs → migration-B7DanZKm.mjs} +38 -8
- package/dist/{object-cache-Ue6kAfzf.mjs → object-cache-DeIkrWmq.mjs} +1 -1
- package/dist/{owned-metadata-bXhDX1WW.mjs → owned-metadata-LUF0xC0h.mjs} +1 -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-C10hTI65.mjs → plugins-Dh2fBfX7.mjs} +2 -2
- package/dist/{public-url-JnHtmWfz.d.mts → public-url-C60HX3NR.d.mts} +1 -1
- package/dist/{publication-authorization-DBNXaGgH.mjs → publication-authorization-e0sPJ9OP.mjs} +4 -4
- package/dist/{query-CNXVFYWz.mjs → query-BvYbhblK.mjs} +10 -10
- package/dist/{query-5edkcMYz.mjs → query-CyzBZrWv.mjs} +3 -3
- package/dist/{registry-DEKqjKIM.mjs → registry-BpNZLrXn.mjs} +1 -1
- package/dist/request-context.d.mts +1 -11
- package/dist/{review-requests-B7UdAl1r.mjs → review-requests-R9L2Aubm.mjs} +1 -1
- package/dist/{revision-BtgwJxxa.mjs → revision-DfrRhPgw.mjs} +2 -2
- package/dist/{revisions-CQZI886L.mjs → revisions-DnV1P4O5.mjs} +1 -1
- package/dist/{runtime-BLoyGKUx.mjs → runtime-CmupMaEb.mjs} +60 -58
- package/dist/runtime.d.mts +2 -2
- package/dist/runtime.mjs +3 -3
- package/dist/{schema-DIXUswIX.mjs → schema-siddXiB9.mjs} +1 -1
- package/dist/{search-TXLzVROW.mjs → search-giRjxqrh.mjs} +1 -1
- package/dist/{sections-zaZhTZqa.mjs → sections-DqBH0bCm.mjs} +1 -1
- package/dist/seed/index.mjs +17 -17
- package/dist/seo/index.mjs +5 -5
- package/dist/{seo-DdczIQvk.mjs → seo-Dsh31oy8.mjs} +1 -1
- package/dist/{seo-BQ7R2a1z.mjs → seo-TWEsRapq.mjs} +5 -5
- package/dist/{service-CUlcOLZj.mjs → service-CFLkZn2S.mjs} +2 -2
- package/dist/{settings-CoCGUtE6.mjs → settings-ByRmK-Mg.mjs} +1 -1
- package/dist/{settings-Bc2eQPR6.mjs → settings-Dn4XvS7H.mjs} +2 -2
- package/dist/{site-context-DkxgOnQl.mjs → site-context-CHfuvD9v.mjs} +6 -6
- package/dist/{submission-BNP2Sc3O.mjs → submission-C_DNrA5y.mjs} +4 -4
- package/dist/{taxonomies-CVe1PGaO.mjs → taxonomies-BCuDkFFS.mjs} +3 -3
- package/dist/{taxonomies-zgZ2HG_z.mjs → taxonomies-PWPhdhgN.mjs} +2 -2
- package/dist/{taxonomy-CcyZD5jQ.mjs → taxonomy-YxipNvfL.mjs} +3 -3
- package/dist/{types-jtUocGnQ.d.mts → types-1NHQF2Yh.d.mts} +2 -2
- package/dist/ui/server-runtime.d.mts +4 -4
- package/dist/ui/server-runtime.mjs +13 -13
- package/dist/version-DkCuTQ-N.mjs +6 -0
- package/dist/{version-store-DyYULGd3.mjs → version-store-B2n_Gfkq.mjs} +2 -10
- package/dist/{version-store-B6i81L9W.d.mts → version-store-mMm7pcYK.d.mts} +1 -36
- package/dist/{widgets-CJBk8bm7.mjs → widgets-C_9KBEwT.mjs} +1 -1
- package/dist/{worker-D82vT5OV.mjs → worker-Dl9S5-Tl.mjs} +3 -3
- package/dist/{write-intent-CjTERf3N.mjs → write-intent-4Q8sNg11.mjs} +2 -2
- package/package.json +3 -3
- package/dist/version-BJwTlK4L.mjs +0 -6
|
@@ -2,23 +2,23 @@ import "../../d1-binding-DrLMBUxu.mjs";
|
|
|
2
2
|
import "../../dialect-helpers-C6xtO-Ui.mjs";
|
|
3
3
|
import { n as getI18nConfig } from "../../config-XW5tMrH8.mjs";
|
|
4
4
|
import "../../config---A7Bg68.mjs";
|
|
5
|
-
import "../../runtime-
|
|
6
|
-
import "../../revisions-
|
|
5
|
+
import "../../runtime-CmupMaEb.mjs";
|
|
6
|
+
import "../../revisions-DnV1P4O5.mjs";
|
|
7
7
|
import "../../runtime-env-DpYGy4pT.mjs";
|
|
8
8
|
import "../../base64-qvSs0Gxy.mjs";
|
|
9
9
|
import "../../types-BI3ULB3A.mjs";
|
|
10
|
-
import "../../loader
|
|
10
|
+
import "../../loader-Q07mEStb.mjs";
|
|
11
11
|
import "../../request-cache-CizvDoxV.mjs";
|
|
12
|
-
import "../../object-cache-
|
|
12
|
+
import "../../object-cache-DeIkrWmq.mjs";
|
|
13
13
|
import "../../media-BjH5OD-A.mjs";
|
|
14
14
|
import "../../options-yFkLUuTw.mjs";
|
|
15
|
-
import "../../content-refresh-
|
|
15
|
+
import "../../content-refresh-Dl938dTm.mjs";
|
|
16
16
|
import "../../fts-manager-BHwhq1lC.mjs";
|
|
17
17
|
import "../../public-discovery-CGRirTJH.mjs";
|
|
18
|
-
import { n as SchemaRegistry } from "../../registry-
|
|
19
|
-
import { a as getSiteSettingsWithDb } from "../../settings-
|
|
20
|
-
import "../../discovery-
|
|
21
|
-
import { t as handleSitemapData } from "../../seo-
|
|
18
|
+
import { n as SchemaRegistry } from "../../registry-BpNZLrXn.mjs";
|
|
19
|
+
import { a as getSiteSettingsWithDb } from "../../settings-Dn4XvS7H.mjs";
|
|
20
|
+
import "../../discovery-BjyZQy47.mjs";
|
|
21
|
+
import { t as handleSitemapData } from "../../seo-Dsh31oy8.mjs";
|
|
22
22
|
import { n as getPublicOrigin } from "../../public-url-GzeLD6Ae.mjs";
|
|
23
23
|
|
|
24
24
|
//#region src/astro/routes/sitemap.xml.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../d1-binding-DrLMBUxu.mjs";
|
|
2
2
|
import { a as currentTimestampValue } from "../dialect-helpers-C6xtO-Ui.mjs";
|
|
3
3
|
import "../config---A7Bg68.mjs";
|
|
4
|
-
import "../runtime-
|
|
5
|
-
import "../revisions-
|
|
4
|
+
import "../runtime-CmupMaEb.mjs";
|
|
5
|
+
import "../revisions-DnV1P4O5.mjs";
|
|
6
6
|
import "../runtime-env-DpYGy4pT.mjs";
|
|
7
7
|
import "../base64-qvSs0Gxy.mjs";
|
|
8
8
|
import "../types-BI3ULB3A.mjs";
|
|
9
|
-
import { r as getDb } from "../loader
|
|
9
|
+
import { r as getDb } from "../loader-Q07mEStb.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/astro/session-driver.ts
|
|
12
12
|
function createDinewaySessionDriver(dbFactory = getDb) {
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ContentItem } from "../types--vDpt_aS.mjs";
|
|
2
|
-
import { At as ResolvedPlugin, B as PluginActor, E as HttpAccess, Eo as PluginMcpRegistry, F as PageMetadataContribution, Ga as MediaListResponse, Ka as MediaResponse, M as PageFragmentContribution, Oo as DinewayConfig, So as SandboxRunner, Tt as PublicPageContext, Ut as PublicationAuthorizationService, Ws as MediaItem, co as SandboxedPluginEntry, do as ConfirmedContentPublicationResult, fo as PublishConfirmedContentInput, go as HookPipeline, ho as EmailPipeline, ht as PluginRouteAuthorization, lo as AtomicConfirmedContentAuthorizer, mt as PluginRouteApiTokenPolicy, nc as Element, so as DinewayRuntime, uo as ConfirmedContentAuthorizer, vc as ContentListResponse, yc as ContentResponse } from "../types-
|
|
2
|
+
import { At as ResolvedPlugin, B as PluginActor, E as HttpAccess, Eo as PluginMcpRegistry, F as PageMetadataContribution, Ga as MediaListResponse, Ka as MediaResponse, M as PageFragmentContribution, Oo as DinewayConfig, So as SandboxRunner, Tt as PublicPageContext, Ut as PublicationAuthorizationService, Ws as MediaItem, co as SandboxedPluginEntry, do as ConfirmedContentPublicationResult, fo as PublishConfirmedContentInput, go as HookPipeline, ho as EmailPipeline, ht as PluginRouteAuthorization, lo as AtomicConfirmedContentAuthorizer, mt as PluginRouteApiTokenPolicy, nc as Element, so as DinewayRuntime, uo as ConfirmedContentAuthorizer, vc as ContentListResponse, yc as ContentResponse } from "../types-1NHQF2Yh.mjs";
|
|
3
3
|
import { n as Database } from "../types-CG9uGPBL.mjs";
|
|
4
4
|
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-CjKwIO3g.mjs";
|
|
5
5
|
import "../runner-DlkOiguI.mjs";
|
|
@@ -13,7 +13,7 @@ import { d as Storage } from "../types-B2rEY0ik.mjs";
|
|
|
13
13
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
14
14
|
import "../public-url-CvNSyMJJ.mjs";
|
|
15
15
|
import "../validate-CleBZbkv.mjs";
|
|
16
|
-
import "../byline-fields-
|
|
16
|
+
import "../byline-fields-DvYufwxE.mjs";
|
|
17
17
|
import "../types-BuplUVZ4.mjs";
|
|
18
18
|
import "../index.mjs";
|
|
19
19
|
import { Kysely } from "kysely";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
2
|
-
import { i as getContentStorageRuntime } from "./runtime-
|
|
2
|
+
import { i as getContentStorageRuntime } from "./runtime-CmupMaEb.mjs";
|
|
3
3
|
import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
|
|
4
|
-
import { o as contentStorageHookSchema } from "./content-
|
|
4
|
+
import { o as contentStorageHookSchema } from "./content-rb8lZEfT.mjs";
|
|
5
5
|
import { t as SiteActivityRepository } from "./site-activity-hpfJkmxQ.mjs";
|
|
6
6
|
import { r as ReviewRequestRepository } from "./review-requests-DZYM51yI.mjs";
|
|
7
|
-
import { t as PluginContextFactory } from "./context-
|
|
7
|
+
import { t as PluginContextFactory } from "./context-BrzB9nTR.mjs";
|
|
8
8
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-B9ShQ_6c.mjs";
|
|
9
|
-
import { n as SchemaRegistry } from "./registry-
|
|
10
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
9
|
+
import { n as SchemaRegistry } from "./registry-BpNZLrXn.mjs";
|
|
10
|
+
import { a as getSiteSettingsWithDb } from "./settings-Dn4XvS7H.mjs";
|
|
11
11
|
import { sql } from "kysely";
|
|
12
12
|
import { ulid } from "ulidx";
|
|
13
13
|
|
|
@@ -2,11 +2,11 @@ import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
|
2
2
|
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
|
-
import { r as getContentStorage } from "./runtime-
|
|
5
|
+
import { r as getContentStorage } from "./runtime-CmupMaEb.mjs";
|
|
6
6
|
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-BI3ULB3A.mjs";
|
|
7
7
|
import { i as setRequestCacheEntry, n as peekRequestCache, t as clearRequestCacheEntry } from "./request-cache-CizvDoxV.mjs";
|
|
8
8
|
import { n as getBylineFieldDefs } from "./field-defs-cache-dn5Tw79A.mjs";
|
|
9
|
-
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-
|
|
9
|
+
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-DeIkrWmq.mjs";
|
|
10
10
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bb56aCtB.mjs";
|
|
11
11
|
import { sql } from "kysely";
|
|
12
12
|
import { ulid } from "ulidx";
|
|
@@ -532,8 +532,8 @@ var BylineRepository = class {
|
|
|
532
532
|
async copyContentBylines(collectionSlug, sourceContentId, targetContentId) {
|
|
533
533
|
if (await this.db.selectFrom("_dineway_content_bylines").select("id").where("collection_slug", "=", collectionSlug).where("content_id", "=", targetContentId).executeTakeFirst()) return;
|
|
534
534
|
if (getContentStorage(this.db, collectionSlug)) {
|
|
535
|
-
const { snapshotOwnedContentMetadata } = await import("./owned-metadata-
|
|
536
|
-
const { prepareContentWrite } = await import("./content-write-
|
|
535
|
+
const { snapshotOwnedContentMetadata } = await import("./owned-metadata-LUF0xC0h.mjs").then((n) => n.n);
|
|
536
|
+
const { prepareContentWrite } = await import("./content-write-DPszY76R.mjs").then((n) => n.t);
|
|
537
537
|
const source = await snapshotOwnedContentMetadata(this.db, collectionSlug, sourceContentId);
|
|
538
538
|
const credits = await this.getContentBylines(collectionSlug, sourceContentId);
|
|
539
539
|
const write = await prepareContentWrite(this.db, collectionSlug, {
|
|
@@ -621,7 +621,7 @@ var BylineRepository = class {
|
|
|
621
621
|
}
|
|
622
622
|
async setContentBylines(collectionSlug, contentId, inputBylines) {
|
|
623
623
|
if (getContentStorage(this.db, collectionSlug)) {
|
|
624
|
-
const { prepareContentWrite } = await import("./content-write-
|
|
624
|
+
const { prepareContentWrite } = await import("./content-write-DPszY76R.mjs").then((n) => n.t);
|
|
625
625
|
const write = await prepareContentWrite(this.db, collectionSlug, {
|
|
626
626
|
id: contentId,
|
|
627
627
|
bylines: inputBylines,
|
|
@@ -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<50 |
|
|
7
|
+
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 20 | 10 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 20 | 10 | 30 | 40, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -864,10 +864,10 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
864
864
|
json: "json";
|
|
865
865
|
url: "url";
|
|
866
866
|
slug: "slug";
|
|
867
|
+
image: "image";
|
|
868
|
+
datetime: "datetime";
|
|
867
869
|
text: "text";
|
|
868
870
|
integer: "integer";
|
|
869
|
-
datetime: "datetime";
|
|
870
|
-
image: "image";
|
|
871
871
|
select: "select";
|
|
872
872
|
multiSelect: "multiSelect";
|
|
873
873
|
portableText: "portableText";
|
|
@@ -892,10 +892,10 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
892
892
|
number: "number";
|
|
893
893
|
boolean: "boolean";
|
|
894
894
|
url: "url";
|
|
895
|
+
image: "image";
|
|
896
|
+
datetime: "datetime";
|
|
895
897
|
text: "text";
|
|
896
898
|
integer: "integer";
|
|
897
|
-
datetime: "datetime";
|
|
898
|
-
image: "image";
|
|
899
899
|
select: "select";
|
|
900
900
|
}>;
|
|
901
901
|
label: z.ZodString;
|
|
@@ -922,10 +922,10 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
922
922
|
json: "json";
|
|
923
923
|
url: "url";
|
|
924
924
|
slug: "slug";
|
|
925
|
+
image: "image";
|
|
926
|
+
datetime: "datetime";
|
|
925
927
|
text: "text";
|
|
926
928
|
integer: "integer";
|
|
927
|
-
datetime: "datetime";
|
|
928
|
-
image: "image";
|
|
929
929
|
select: "select";
|
|
930
930
|
multiSelect: "multiSelect";
|
|
931
931
|
portableText: "portableText";
|
|
@@ -950,10 +950,10 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
950
950
|
number: "number";
|
|
951
951
|
boolean: "boolean";
|
|
952
952
|
url: "url";
|
|
953
|
+
image: "image";
|
|
954
|
+
datetime: "datetime";
|
|
953
955
|
text: "text";
|
|
954
956
|
integer: "integer";
|
|
955
|
-
datetime: "datetime";
|
|
956
|
-
image: "image";
|
|
957
957
|
select: "select";
|
|
958
958
|
}>;
|
|
959
959
|
label: z.ZodString;
|
|
@@ -1016,10 +1016,10 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
1016
1016
|
json: "json";
|
|
1017
1017
|
url: "url";
|
|
1018
1018
|
slug: "slug";
|
|
1019
|
+
image: "image";
|
|
1020
|
+
datetime: "datetime";
|
|
1019
1021
|
text: "text";
|
|
1020
1022
|
integer: "integer";
|
|
1021
|
-
datetime: "datetime";
|
|
1022
|
-
image: "image";
|
|
1023
1023
|
select: "select";
|
|
1024
1024
|
multiSelect: "multiSelect";
|
|
1025
1025
|
portableText: "portableText";
|
|
@@ -1091,10 +1091,10 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
1091
1091
|
json: "json";
|
|
1092
1092
|
url: "url";
|
|
1093
1093
|
slug: "slug";
|
|
1094
|
+
image: "image";
|
|
1095
|
+
datetime: "datetime";
|
|
1094
1096
|
text: "text";
|
|
1095
1097
|
integer: "integer";
|
|
1096
|
-
datetime: "datetime";
|
|
1097
|
-
image: "image";
|
|
1098
1098
|
select: "select";
|
|
1099
1099
|
multiSelect: "multiSelect";
|
|
1100
1100
|
portableText: "portableText";
|
|
@@ -1150,10 +1150,10 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1150
1150
|
json: "json";
|
|
1151
1151
|
url: "url";
|
|
1152
1152
|
slug: "slug";
|
|
1153
|
+
image: "image";
|
|
1154
|
+
datetime: "datetime";
|
|
1153
1155
|
text: "text";
|
|
1154
1156
|
integer: "integer";
|
|
1155
|
-
datetime: "datetime";
|
|
1156
|
-
image: "image";
|
|
1157
1157
|
select: "select";
|
|
1158
1158
|
multiSelect: "multiSelect";
|
|
1159
1159
|
portableText: "portableText";
|
|
@@ -1187,10 +1187,10 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
1187
1187
|
json: "json";
|
|
1188
1188
|
url: "url";
|
|
1189
1189
|
slug: "slug";
|
|
1190
|
+
image: "image";
|
|
1191
|
+
datetime: "datetime";
|
|
1190
1192
|
text: "text";
|
|
1191
1193
|
integer: "integer";
|
|
1192
|
-
datetime: "datetime";
|
|
1193
|
-
image: "image";
|
|
1194
1194
|
select: "select";
|
|
1195
1195
|
multiSelect: "multiSelect";
|
|
1196
1196
|
portableText: "portableText";
|
|
@@ -1238,8 +1238,8 @@ declare const createReactionBody: z.ZodObject<{
|
|
|
1238
1238
|
}, z.core.$strip>;
|
|
1239
1239
|
declare const commentStatusBody: z.ZodObject<{
|
|
1240
1240
|
status: z.ZodEnum<{
|
|
1241
|
-
pending: "pending";
|
|
1242
1241
|
approved: "approved";
|
|
1242
|
+
pending: "pending";
|
|
1243
1243
|
spam: "spam";
|
|
1244
1244
|
trash: "trash";
|
|
1245
1245
|
}>;
|
|
@@ -1255,8 +1255,8 @@ declare const commentBulkBody: z.ZodObject<{
|
|
|
1255
1255
|
}, z.core.$strip>;
|
|
1256
1256
|
declare const commentListQuery: z.ZodObject<{
|
|
1257
1257
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1258
|
-
pending: "pending";
|
|
1259
1258
|
approved: "approved";
|
|
1259
|
+
pending: "pending";
|
|
1260
1260
|
spam: "spam";
|
|
1261
1261
|
trash: "trash";
|
|
1262
1262
|
}>>;
|
|
@@ -1291,8 +1291,8 @@ declare const commentSchema: z.ZodObject<{
|
|
|
1291
1291
|
authorEmail: z.ZodString;
|
|
1292
1292
|
body: z.ZodString;
|
|
1293
1293
|
status: z.ZodEnum<{
|
|
1294
|
-
pending: "pending";
|
|
1295
1294
|
approved: "approved";
|
|
1295
|
+
pending: "pending";
|
|
1296
1296
|
spam: "spam";
|
|
1297
1297
|
trash: "trash";
|
|
1298
1298
|
}>;
|
|
@@ -1324,8 +1324,8 @@ declare const adminCommentListResponseSchema: z.ZodObject<{
|
|
|
1324
1324
|
authorEmail: z.ZodString;
|
|
1325
1325
|
body: z.ZodString;
|
|
1326
1326
|
status: z.ZodEnum<{
|
|
1327
|
-
pending: "pending";
|
|
1328
1327
|
approved: "approved";
|
|
1328
|
+
pending: "pending";
|
|
1329
1329
|
spam: "spam";
|
|
1330
1330
|
trash: "trash";
|
|
1331
1331
|
}>;
|
|
@@ -1373,11 +1373,11 @@ declare const contextEntryStaleQuery: z.ZodObject<{
|
|
|
1373
1373
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1374
1374
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1375
1375
|
scope: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1376
1377
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1377
1378
|
true: "true";
|
|
1378
1379
|
false: "false";
|
|
1379
1380
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1380
|
-
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1381
1381
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1382
1382
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1383
1383
|
user: "user";
|
|
@@ -1465,8 +1465,8 @@ declare const siteBriefingQuery: z.ZodObject<{
|
|
|
1465
1465
|
//#region src/api/schemas/hitl-requests.d.ts
|
|
1466
1466
|
declare const hitlRequestListQuery: z.ZodObject<{
|
|
1467
1467
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1468
|
-
pending: "pending";
|
|
1469
1468
|
approved: "approved";
|
|
1469
|
+
pending: "pending";
|
|
1470
1470
|
rejected: "rejected";
|
|
1471
1471
|
}>>;
|
|
1472
1472
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1499,8 +1499,8 @@ declare const reviewRequestCreateBody: z.ZodObject<{
|
|
|
1499
1499
|
}, z.core.$strip>;
|
|
1500
1500
|
declare const reviewRequestListQuery: z.ZodObject<{
|
|
1501
1501
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1502
|
-
pending: "pending";
|
|
1503
1502
|
approved: "approved";
|
|
1503
|
+
pending: "pending";
|
|
1504
1504
|
rejected: "rejected";
|
|
1505
1505
|
resolved: "resolved";
|
|
1506
1506
|
}>>;
|
|
@@ -1549,7 +1549,7 @@ declare const signupCompleteBody: z.ZodObject<{
|
|
|
1549
1549
|
}, z.core.$strip>;
|
|
1550
1550
|
declare const inviteCreateBody: z.ZodObject<{
|
|
1551
1551
|
email: z.ZodString;
|
|
1552
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 |
|
|
1552
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 20 | 10 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 20 | 10 | 30 | 40, unknown>>>;
|
|
1553
1553
|
}, z.core.$strip>;
|
|
1554
1554
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1555
1555
|
token: z.ZodString;
|
|
@@ -2101,15 +2101,15 @@ declare const usersListQuery: z.ZodObject<{
|
|
|
2101
2101
|
declare const userUpdateBody: z.ZodObject<{
|
|
2102
2102
|
name: z.ZodOptional<z.ZodString>;
|
|
2103
2103
|
email: z.ZodOptional<z.ZodString>;
|
|
2104
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 |
|
|
2104
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 20 | 10 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 20 | 10 | 30 | 40, unknown>>>;
|
|
2105
2105
|
}, z.core.$strip>;
|
|
2106
2106
|
declare const allowedDomainCreateBody: z.ZodObject<{
|
|
2107
2107
|
domain: z.ZodString;
|
|
2108
|
-
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<50 |
|
|
2108
|
+
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 20 | 10 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 20 | 10 | 30 | 40, unknown>>;
|
|
2109
2109
|
}, z.core.$strip>;
|
|
2110
2110
|
declare const allowedDomainUpdateBody: z.ZodObject<{
|
|
2111
2111
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2112
|
-
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 |
|
|
2112
|
+
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 20 | 10 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 20 | 10 | 30 | 40, unknown>>>;
|
|
2113
2113
|
}, z.core.$strip>;
|
|
2114
2114
|
declare const userSchema: z.ZodObject<{
|
|
2115
2115
|
id: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
|
-
import { o as isMissingTableError, r as getDb } from "./loader
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
3
|
+
import { o as isMissingTableError, r as getDb } from "./loader-Q07mEStb.mjs";
|
|
4
|
+
import { t as BylineRepository } from "./byline-DGTZqRM0.mjs";
|
|
5
5
|
import { n as resolveLocaleChain } from "./resolve-BdDNBmaU.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-BvYbhblK.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 } : {},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
3
3
|
import { t as DinewayValidationError } from "./types-BI3ULB3A.mjs";
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
4
|
+
import { t as BylineRepository } from "./byline-DGTZqRM0.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/bylines.ts
|
|
7
7
|
var bylines_exports = /* @__PURE__ */ __exportAll({
|
package/dist/cli/index.mjs
CHANGED
|
@@ -7,48 +7,48 @@ import { t as validateIdentifier } from "../validate-Co3j6T_K.mjs";
|
|
|
7
7
|
import { l as listTablesLike } from "../dialect-helpers-C6xtO-Ui.mjs";
|
|
8
8
|
import { n as getI18nConfig, r as isI18nEnabled } from "../config-XW5tMrH8.mjs";
|
|
9
9
|
import { a as validateContentStorage, n as contentDigest, r as contentStorageConfigSchema, t as canonicalContentJson } from "../config---A7Bg68.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import "../revisions-
|
|
10
|
+
import { c as installContentStorageConfig, f as freezeContentPartition, l as beginContentMigration, o as registerContentStorage, r as getContentStorage, t as assertContentStorageConfiguration, u as cancelContentMigration } from "../runtime-CmupMaEb.mjs";
|
|
11
|
+
import "../revisions-DnV1P4O5.mjs";
|
|
12
12
|
import "../runtime-env-DpYGy4pT.mjs";
|
|
13
13
|
import { i as encodeBase64url } from "../base64-qvSs0Gxy.mjs";
|
|
14
14
|
import "../types-BI3ULB3A.mjs";
|
|
15
|
-
import { o as isMissingTableError } from "../loader
|
|
15
|
+
import { o as isMissingTableError } from "../loader-Q07mEStb.mjs";
|
|
16
16
|
import "../actor-D0AW80ld.mjs";
|
|
17
17
|
import "../atomic-authority-Bf5QZboB.mjs";
|
|
18
|
-
import { t as ContentRepository } from "../content-
|
|
18
|
+
import { t as ContentRepository } from "../content-rb8lZEfT.mjs";
|
|
19
19
|
import "../request-cache-CizvDoxV.mjs";
|
|
20
20
|
import "../byline-registry-Caj0_gbU.mjs";
|
|
21
21
|
import "../field-defs-cache-dn5Tw79A.mjs";
|
|
22
|
-
import "../object-cache-
|
|
23
|
-
import { t as BylineRepository } from "../byline-
|
|
24
|
-
import "../owned-metadata-
|
|
22
|
+
import "../object-cache-DeIkrWmq.mjs";
|
|
23
|
+
import { t as BylineRepository } from "../byline-DGTZqRM0.mjs";
|
|
24
|
+
import "../owned-metadata-LUF0xC0h.mjs";
|
|
25
25
|
import { n as slugify } from "../slugify-DvoaEPtL.mjs";
|
|
26
|
-
import "../revision-
|
|
26
|
+
import "../revision-DfrRhPgw.mjs";
|
|
27
27
|
import { t as MediaRepository } from "../media-BjH5OD-A.mjs";
|
|
28
28
|
import "../user-Bl2_8rhJ.mjs";
|
|
29
29
|
import "../terms-EskuqbKE.mjs";
|
|
30
|
-
import { t as TaxonomyRepository } from "../taxonomy-
|
|
30
|
+
import { t as TaxonomyRepository } from "../taxonomy-YxipNvfL.mjs";
|
|
31
31
|
import { t as OptionsRepository } from "../options-yFkLUuTw.mjs";
|
|
32
32
|
import "../redirect-CJ-FAbNK.mjs";
|
|
33
|
-
import "../content-write-
|
|
34
|
-
import { n as assertContentVersionStore,
|
|
35
|
-
import "../write-intent-
|
|
36
|
-
import "../seo-
|
|
33
|
+
import "../content-write-DPszY76R.mjs";
|
|
34
|
+
import { n as assertContentVersionStore, o as installContentVersionStore, r as contentStoreCollectionFromFields, t as ContentVersionStore } from "../version-store-B2n_Gfkq.mjs";
|
|
35
|
+
import "../write-intent-4Q8sNg11.mjs";
|
|
36
|
+
import "../seo-TWEsRapq.mjs";
|
|
37
37
|
import { n as DinewayToolsService, r as integrationResponse, t as DinewayToolsError } from "../service-DL1j3E4P.mjs";
|
|
38
38
|
import { i as parseEncryptionKeys, n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-D52WNV_c.mjs";
|
|
39
|
-
import "../content-refresh-
|
|
39
|
+
import "../content-refresh-Dl938dTm.mjs";
|
|
40
40
|
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../ssrf-C7tTSD1r.mjs";
|
|
41
41
|
import "../fts-manager-BHwhq1lC.mjs";
|
|
42
42
|
import "../public-discovery-CGRirTJH.mjs";
|
|
43
|
-
import { n as SchemaRegistry } from "../registry-
|
|
44
|
-
import "../settings-
|
|
45
|
-
import { n as VERSION } from "../version-
|
|
43
|
+
import { n as SchemaRegistry } from "../registry-BpNZLrXn.mjs";
|
|
44
|
+
import "../settings-Dn4XvS7H.mjs";
|
|
45
|
+
import { n as VERSION } from "../version-DkCuTQ-N.mjs";
|
|
46
46
|
import { t as IntegrationCredentialStore } from "../store-rYMso0t7.mjs";
|
|
47
47
|
import { a as reconcileManifestAccess, i as pluginManifestSchema } from "../manifest-schema-B_rWNZn5.mjs";
|
|
48
48
|
import "../content-C8i4DyTt.mjs";
|
|
49
49
|
import "../migrations-DTCIQJ2_.mjs";
|
|
50
50
|
import { t as validateSeed } from "../validate-WOW5vZz_.mjs";
|
|
51
|
-
import { t as applySeed } from "../apply-
|
|
51
|
+
import { t as applySeed } from "../apply-AOuBTila.mjs";
|
|
52
52
|
import { n as validateWorkersBindings, t as WORKERS_BUILD_METADATA } from "../workers-build-4926MPc0.mjs";
|
|
53
53
|
import { n as d1ReleaseRevision } from "../state-CKkqoA6i.mjs";
|
|
54
54
|
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-CVSG1imu.mjs";
|
|
@@ -57,7 +57,7 @@ import { createHeaderAwareFetch, isRedirectResponse, resolveCustomHeaders } from
|
|
|
57
57
|
import { t as convertDataForRead } from "../portable-text-CJ9v0T_j.mjs";
|
|
58
58
|
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-8GnB8iz5.mjs";
|
|
59
59
|
import { t as migrateD1Release } from "../release-CIYyinzY.mjs";
|
|
60
|
-
import { a as verifyContentMigration, i as stageContentMigrationEntry, l as contentMigrationSnapshotSchema, n as completeContentMigration, o as verifyContentMigrationPage, r as rollbackContentMigration, s as bootstrapContentDirectoryPage, t as activateContentMigrationEntry, u as migrateContentStorageConfig } from "../migration-
|
|
60
|
+
import { a as verifyContentMigration, d as stageContentStorageBindings, i as stageContentMigrationEntry, l as contentMigrationSnapshotSchema, n as completeContentMigration, o as verifyContentMigrationPage, r as rollbackContentMigration, s as bootstrapContentDirectoryPage, t as activateContentMigrationEntry, u as migrateContentStorageConfig } from "../migration-B7DanZKm.mjs";
|
|
61
61
|
import { LocalStorage } from "../storage/local.mjs";
|
|
62
62
|
import { r as fileExists$11, t as bundleCommand } from "../bundle-CnJWXvur.mjs";
|
|
63
63
|
import { createRequire } from "node:module";
|
|
@@ -1103,15 +1103,11 @@ async function readContentStorageProject(options) {
|
|
|
1103
1103
|
database: select(main.config, mainBinding)
|
|
1104
1104
|
}];
|
|
1105
1105
|
for (const [store, descriptor] of Object.entries(config.stores)) {
|
|
1106
|
-
const
|
|
1107
|
-
config: z.string().min(1),
|
|
1108
|
-
binding: z.string().min(1)
|
|
1109
|
-
}).parse(descriptor.config.database);
|
|
1110
|
-
const worker = await loadProjectWrangler(cwd, target.config, options.environment);
|
|
1106
|
+
const { binding } = z.object({ binding: z.string().min(1) }).parse(descriptor.config);
|
|
1111
1107
|
targets.push({
|
|
1112
1108
|
store,
|
|
1113
1109
|
binding: `CONTENT_STORE_${targets.length}`,
|
|
1114
|
-
database: select(
|
|
1110
|
+
database: select(main.config, binding)
|
|
1115
1111
|
});
|
|
1116
1112
|
}
|
|
1117
1113
|
if (new Set(targets.map((target) => target.database.database_id)).size !== targets.length) throw new Error("Content stores must select distinct physical D1 databases.");
|
|
@@ -1200,6 +1196,7 @@ const actions = [
|
|
|
1200
1196
|
"install",
|
|
1201
1197
|
"schema",
|
|
1202
1198
|
"config",
|
|
1199
|
+
"stage-bindings",
|
|
1203
1200
|
"inventory",
|
|
1204
1201
|
"bootstrap",
|
|
1205
1202
|
"begin",
|
|
@@ -1245,9 +1242,18 @@ async function runContentStorageCommand(options) {
|
|
|
1245
1242
|
source: "primary"
|
|
1246
1243
|
};
|
|
1247
1244
|
}
|
|
1248
|
-
if (options.action === "config") {
|
|
1245
|
+
if (options.action === "config" || options.action === "stage-bindings") {
|
|
1249
1246
|
if (!options.previousConfig) throw new Error("Provide --previous-config with the exact previously installed contentStorage JSON.");
|
|
1250
|
-
|
|
1247
|
+
const previous = contentStorageConfigSchema.parse(JSON.parse(await readFile(resolve(project.cwd, options.previousConfig), "utf8")));
|
|
1248
|
+
for (const [name, store] of Object.entries(config.stores)) await assertContentVersionStore(databases[name], store.identity);
|
|
1249
|
+
if (options.action === "stage-bindings") {
|
|
1250
|
+
await stageContentStorageBindings(primary, previous, config);
|
|
1251
|
+
return {
|
|
1252
|
+
staged: config.version,
|
|
1253
|
+
sourceStoresPreserved: true
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
await migrateContentStorageConfig(primary, previous, config);
|
|
1251
1257
|
return {
|
|
1252
1258
|
installed: config.version,
|
|
1253
1259
|
sourceStoresPreserved: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../types-
|
|
1
|
+
import "../types-1NHQF2Yh.mjs";
|
|
2
2
|
import "../types-CG9uGPBL.mjs";
|
|
3
3
|
import "../runner-DlkOiguI.mjs";
|
|
4
4
|
import "../index-_fCUsJx9.mjs";
|
|
@@ -10,7 +10,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-DvYufwxE.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
16
16
|
import { SubCommandsDef } from "citty";
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ms as ReviewRequestStatus, Wt as PublicationPolicyOverride, Yt as PublicationReadinessResult, Zt as PublicationReceipt, js as ReviewRequest } from "../types-
|
|
1
|
+
import { Ms as ReviewRequestStatus, Wt as PublicationPolicyOverride, Yt as PublicationReadinessResult, Zt as PublicationReceipt, js as ReviewRequest } from "../types-1NHQF2Yh.mjs";
|
|
2
2
|
import "../types-CG9uGPBL.mjs";
|
|
3
3
|
import "../runner-DlkOiguI.mjs";
|
|
4
4
|
import "../index-_fCUsJx9.mjs";
|
|
@@ -10,7 +10,7 @@ import "../hook-events-lN-kz-4_.mjs";
|
|
|
10
10
|
import "../scheduled-publish-7kZkKw7t.mjs";
|
|
11
11
|
import "../public-url-CvNSyMJJ.mjs";
|
|
12
12
|
import "../validate-CleBZbkv.mjs";
|
|
13
|
-
import "../byline-fields-
|
|
13
|
+
import "../byline-fields-DvYufwxE.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
import { a as tokenInterceptor, i as devBypassInterceptor, n as createTransport, r as csrfInterceptor, t as Interceptor } from "../transport-Cm1beMRX.mjs";
|
|
16
16
|
import { n as markdownToPortableText, r as portableTextToMarkdown, t as PortableTextBlock } from "../portable-text-BZYFFIgm.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
|
|
2
|
-
import { s as invalidateCommentObjectCache } from "./object-cache-
|
|
2
|
+
import { s as invalidateCommentObjectCache } from "./object-cache-DeIkrWmq.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
@@ -3,13 +3,13 @@ import { AtomicWriteConflict, atomicBatch, isD1Database, rowUnchanged } from "./
|
|
|
3
3
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
4
4
|
import { o as isPostgres } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
5
5
|
import { n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config---A7Bg68.mjs";
|
|
6
|
-
import { a as hydrateContentRows,
|
|
6
|
+
import { a as hydrateContentRows, d as contentPartitionWritable, r as getContentStorage } from "./runtime-CmupMaEb.mjs";
|
|
7
7
|
import { i as encodeCursor, n as ScheduledNotDueError, r as decodeCursor, t as DinewayValidationError } from "./types-BI3ULB3A.mjs";
|
|
8
8
|
import { t as contentWriteChecks } from "./atomic-authority-Bf5QZboB.mjs";
|
|
9
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
10
|
-
import { i as storedContentSeo, r as snapshotOwnedContentMetadata, t as contentEventBylines } from "./owned-metadata-
|
|
9
|
+
import { o as invalidateCollectionCache } from "./object-cache-DeIkrWmq.mjs";
|
|
10
|
+
import { i as storedContentSeo, r as snapshotOwnedContentMetadata, t as contentEventBylines } from "./owned-metadata-LUF0xC0h.mjs";
|
|
11
11
|
import { n as slugify } from "./slugify-DvoaEPtL.mjs";
|
|
12
|
-
import { t as RevisionRepository } from "./revision-
|
|
12
|
+
import { t as RevisionRepository } from "./revision-DfrRhPgw.mjs";
|
|
13
13
|
import { sql } from "kysely";
|
|
14
14
|
import { ulid } from "ulidx";
|
|
15
15
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AtomicWriteConflict, atomicBatch } from "./database/batch.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
3
|
import { r as isI18nEnabled } from "./config-XW5tMrH8.mjs";
|
|
4
|
-
import { a as hydrateContentRows } from "./runtime-
|
|
5
|
-
import { t as readRevisionData } from "./revisions-
|
|
4
|
+
import { a as hydrateContentRows } from "./runtime-CmupMaEb.mjs";
|
|
5
|
+
import { t as readRevisionData } from "./revisions-DnV1P4O5.mjs";
|
|
6
6
|
import { i as encodeCursor, r as decodeCursor } from "./types-BI3ULB3A.mjs";
|
|
7
7
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bb56aCtB.mjs";
|
|
8
8
|
import { n as normalizeMime } from "./mime-FkfazULS.mjs";
|
|
@@ -3,7 +3,7 @@ import "../database/batch.mjs";
|
|
|
3
3
|
import { a as ContentStorageActivation, c as ContentStorageError, d as ContentStore, f as ContentStoreDescriptor, i as ContentPartitionRule, l as ContentStorageReplay, n as ContentPartitionContext, o as ContentStorageCommand, p as PreparedContentVersion, r as ContentPartitionResolver, s as ContentStorageConfig, t as ContentLocation, u as ContentStorageValue } from "../types-CeFGasN8.mjs";
|
|
4
4
|
import { a as registerContentStorage, i as hydrateContentRows, n as assertContentStorageConfiguration, o as ContentStorageCoordinator, r as getContentStorage, s as installContentStorageConfig, t as ContentStorageRuntime } from "../runtime-ecsN2xL9.mjs";
|
|
5
5
|
import "../hook-events-lN-kz-4_.mjs";
|
|
6
|
-
import { a as contentStoreCollectionSchema, c as
|
|
6
|
+
import { a as contentStoreCollectionSchema, c as canonicalContentJson, d as validateContentStorage, i as contentStoreCollectionFromFields, l as contentDigest, n as ContentVersionStore, o as contentVersionSchema, r as assertContentVersionStore, s as installContentVersionStore, t as ContentStoreCollection, u as resolveContentPartition } from "../version-store-mMm7pcYK.mjs";
|
|
7
7
|
import * as kysely from "kysely";
|
|
8
8
|
import { Kysely } from "kysely";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -22,6 +22,8 @@ declare function readRevisionDataBatch<DB>(db: Kysely<DB>, rows: readonly {
|
|
|
22
22
|
}[], fields?: readonly string[]): Promise<Record<string, unknown>[]>;
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/content-storage/config-migration.d.ts
|
|
25
|
+
/** Allow old and new application versions to overlap when only the bindings change. */
|
|
26
|
+
declare function stageContentStorageBindings<DB>(db: Kysely<DB>, previous: ContentStorageConfig, next: ContentStorageConfig): Promise<void>;
|
|
25
27
|
/** Explicit deployment step. Mapping changes retain the source until its data migration completes. */
|
|
26
28
|
declare function migrateContentStorageConfig<DB>(db: Kysely<DB>, previous: ContentStorageConfig, next: ContentStorageConfig): Promise<void>;
|
|
27
29
|
//#endregion
|
|
@@ -198,4 +200,4 @@ declare function completeContentMigration(db: Kysely<Database>, migration: Conte
|
|
|
198
200
|
/** Restore the archived source only before writes have reopened. Never deletes either copy. */
|
|
199
201
|
declare function rollbackContentMigration(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive): Promise<void>;
|
|
200
202
|
//#endregion
|
|
201
|
-
export { type ContentLocation, type ContentMigrationArchive, type ContentMigrationIdentity, type ContentMigrationSnapshot, type ContentPartitionContext, type ContentPartitionResolver, type ContentPartitionRoute, type ContentPartitionRule, type ContentStorageActivation, type ContentStorageCommand, type ContentStorageConfig, ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, type ContentStorageRuntime, type ContentStorageValue, type ContentStore, type ContentStoreCollection, type ContentStoreDescriptor, ContentVersionStore, type PreparedContentVersion, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema,
|
|
203
|
+
export { type ContentLocation, type ContentMigrationArchive, type ContentMigrationIdentity, type ContentMigrationSnapshot, type ContentPartitionContext, type ContentPartitionResolver, type ContentPartitionRoute, type ContentPartitionRule, type ContentStorageActivation, type ContentStorageCommand, type ContentStorageConfig, ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, type ContentStorageRuntime, type ContentStorageValue, type ContentStore, type ContentStoreCollection, type ContentStoreDescriptor, ContentVersionStore, type PreparedContentVersion, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, stageContentStorageBindings, validateContentStorage, verifyContentMigration, verifyContentMigrationPage };
|