dineway 0.2.43 → 0.2.45
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 +6 -6
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-V-xnLN6S.mjs → api-CB2KRW3W.mjs} +4 -4
- package/dist/{apply-DRFEUVGB.mjs → apply-SoTzf8LK.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/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +35 -35
- package/dist/astro/routes/api/admin/briefing.mjs +7 -7
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +3 -3
- package/dist/astro/routes/api/admin/bylines/index.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/_id_.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/bulk.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/counts.mjs +1 -1
- package/dist/astro/routes/api/admin/comments/index.mjs +1 -1
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +12 -12
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +13 -13
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +13 -13
- package/dist/astro/routes/api/admin/context/diff.mjs +12 -12
- package/dist/astro/routes/api/admin/context/index.mjs +13 -13
- package/dist/astro/routes/api/admin/context/stale.mjs +12 -12
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +13 -13
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +13 -13
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +13 -13
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +12 -12
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +22 -22
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +22 -22
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +19 -19
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +22 -22
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +22 -22
- package/dist/astro/routes/api/admin/plugins/index.mjs +19 -19
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +19 -19
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +22 -22
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +19 -19
- package/dist/astro/routes/api/admin/plugins/updates.mjs +19 -19
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +7 -7
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +16 -16
- package/dist/astro/routes/api/admin/review-requests/index.mjs +14 -14
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +19 -19
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +19 -19
- 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 +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +2 -2
- package/dist/astro/routes/api/dashboard.mjs +4 -4
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +15 -15
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +12 -12
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +16 -16
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +33 -33
- 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 +12 -12
- package/dist/astro/routes/api/redirects/index.mjs +12 -12
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +19 -19
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +19 -19
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +19 -19
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +19 -19
- package/dist/astro/routes/api/schema/collections/index.mjs +19 -19
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +19 -19
- package/dist/astro/routes/api/schema/orphans/index.mjs +19 -19
- package/dist/astro/routes/api/sections/_slug_.mjs +12 -12
- package/dist/astro/routes/api/sections/index.mjs +12 -12
- 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 +9 -9
- package/dist/astro/routes/api/setup/index.mjs +10 -10
- 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 +15 -15
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +15 -15
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +15 -15
- package/dist/astro/routes/api/taxonomies/index.mjs +15 -15
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +12 -12
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +12 -12
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +12 -12
- package/dist/astro/routes/api/widget-areas/_name_.mjs +12 -12
- package/dist/astro/routes/api/widget-areas/index.mjs +12 -12
- package/dist/astro/types.d.mts +2 -2
- package/dist/{briefing-BwDkIHys.mjs → briefing-9YqN5XoW.mjs} +2 -2
- package/dist/{briefing-xEDJ0OcA.mjs → briefing-CXQA-DpY.mjs} +1 -1
- package/dist/{byline-Dznig_jr.mjs → byline-BvFH-UZw.mjs} +3 -3
- package/dist/{byline-fields-Bdq5wStT.d.mts → byline-fields-Dyts_tJ5.d.mts} +13 -13
- package/dist/{bylines-BQMt9Kby.mjs → bylines-DLFjKcNr.mjs} +2 -2
- package/dist/{bylines-umBrRU5P.mjs → bylines-ZfS9Qm_E.mjs} +1 -1
- package/dist/cli/index.mjs +19 -17
- package/dist/cli/plugin-kit.d.mts +2 -2
- package/dist/cli/plugin-kit.mjs +1 -1
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.mjs +2 -2
- package/dist/{content-DbdiQEl7.mjs → content-Dxx0H4k8.mjs} +1 -1
- package/dist/content-storage/index.d.mts +10 -2
- package/dist/content-storage/index.mjs +9 -9
- package/dist/content-storage/store.mjs +1 -1
- package/dist/{content-write-BJkjOdiq.mjs → content-write-eOTKAf2d.mjs} +6 -6
- package/dist/{context-DTj7OFVh.mjs → context-CjeMWXtq.mjs} +2 -2
- package/dist/{context-suF2JGdX.mjs → context-c4OnrX-0.mjs} +2 -2
- package/dist/{dashboard-DNwOpH8d.mjs → dashboard-C_x93lbv.mjs} +1 -1
- package/dist/database/d1/index.d.mts +2 -2
- package/dist/database/d1/index.mjs +2 -2
- package/dist/{evidence-0WP8WrwT.mjs → evidence-FRy3SVTP.mjs} +1 -1
- package/dist/{hitl-requests-BRrufqcM.mjs → hitl-requests-DtPNPiYe.mjs} +1 -1
- package/dist/{hitl-route-helpers-TzM35SHx.mjs → hitl-route-helpers-BKI0ZeUF.mjs} +1 -1
- package/dist/{import-DSf-FzGX.mjs → import-Cn1_u1S2.mjs} +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +27 -27
- package/dist/{jsonld-D1llK8pQ.d.mts → jsonld-DZXdAyOK.d.mts} +1 -1
- package/dist/{mcp-reviewed-executor-B_ztrZgH.mjs → mcp-reviewed-executor-B4O9L9MT.mjs} +2 -2
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/{migration-zOMc0bo0.mjs → migration-B9FyV3ET.mjs} +65 -25
- package/dist/{owned-metadata-DhyklTd6.mjs → owned-metadata-CJs4-k1w.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-B6B7DbdT.mjs → plugins-rop9tkYG.mjs} +2 -2
- package/dist/{public-url-C9ZgIcbF.d.mts → public-url-DLcDMtBJ.d.mts} +1 -1
- package/dist/{publication-authorization-BciTXOB3.mjs → publication-authorization-CS8WqkzL.mjs} +2 -2
- package/dist/{query-Dx_cCV3x.mjs → query-B1t4PSfw.mjs} +4 -4
- package/dist/{release-CIYyinzY.mjs → release-Bk-UaI2C.mjs} +1 -1
- package/dist/{review-requests-CIfXkXvt.mjs → review-requests-BQZp6VaG.mjs} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/seed/index.mjs +9 -9
- package/dist/{seo-DDKu_9zj.mjs → seo-DxrTizK0.mjs} +3 -3
- package/dist/{site-context-DtmMzKtp.mjs → site-context-DNiKKCc1.mjs} +3 -3
- package/dist/{submission-In_0Igp6.mjs → submission-C7tI1Frs.mjs} +3 -3
- package/dist/{taxonomies-D9cNfBL7.mjs → taxonomies-CZHI0fCa.mjs} +1 -1
- package/dist/{taxonomies-B-UkXVx-.mjs → taxonomies-Cf9huhQ6.mjs} +2 -2
- package/dist/{taxonomy-CtnjHXCZ.mjs → taxonomy-B4O77tAe.mjs} +1 -1
- package/dist/{types-Dkj3EodZ.d.mts → types-z2nZassR.d.mts} +1 -1
- package/dist/ui/server-runtime.d.mts +4 -4
- package/dist/ui/server-runtime.mjs +2 -2
- package/dist/version-CtBv2gNa.mjs +6 -0
- package/dist/{version-store-DH_PMO8_.mjs → version-store-DyYULGd3.mjs} +4 -2
- package/dist/{worker-DUtMI6XU.mjs → worker-CcvePQzq.mjs} +4 -4
- package/dist/{write-intent-BkgfwPO9.mjs → write-intent-D6xfcx1f.mjs} +1 -1
- package/package.json +1 -1
- package/dist/version-CCgLyHqU.mjs +0 -6
- /package/dist/{allowed-origins-SQbPK6WG.mjs → allowed-origins-CQyKpMbJ.mjs} +0 -0
- /package/dist/{challenge-store-7IZ_NqWg.mjs → challenge-store-BImHCJvl.mjs} +0 -0
- /package/dist/{comments-CaCApohz.mjs → comments-BFXekTqN.mjs} +0 -0
- /package/dist/{context-route-helpers-CUrRB8qt.mjs → context-route-helpers-CGA2fsiz.mjs} +0 -0
- /package/dist/{forgeway-account-B-z2_ZOQ.mjs → forgeway-account-CVSG1imu.mjs} +0 -0
- /package/dist/{mode-C3RI5Z5t.mjs → mode-BoM5FjH7.mjs} +0 -0
- /package/dist/{output-4F_wq70p.mjs → output-TGkiEMQF.mjs} +0 -0
- /package/dist/{policy-DbceGc4P.mjs → policy-BL8yj6uD.mjs} +0 -0
- /package/dist/{portable-text-DeJeHr_T.mjs → portable-text-CJ9v0T_j.mjs} +0 -0
- /package/dist/{session-user-D36BRaZY.mjs → session-user-j7I8GMvK.mjs} +0 -0
- /package/dist/{setup-complete-eTV6C0-E.mjs → setup-complete-Cn-Ho9RX.mjs} +0 -0
- /package/dist/{state-CKkqoA6i.mjs → state-LzJZ7qpq.mjs} +0 -0
- /package/dist/{transport-DHTeMsJG.mjs → transport-C_bzEHB4.mjs} +0 -0
- /package/dist/{workers-build-4926MPc0.mjs → workers-build-Bd4w1aw9.mjs} +0 -0
|
@@ -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-CJs4-k1w.mjs").then((n) => n.n);
|
|
536
|
+
const { prepareContentWrite } = await import("./content-write-eOTKAf2d.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-eOTKAf2d.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<
|
|
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,9 +864,9 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
864
864
|
url: "url";
|
|
865
865
|
file: "file";
|
|
866
866
|
slug: "slug";
|
|
867
|
-
image: "image";
|
|
868
867
|
text: "text";
|
|
869
868
|
integer: "integer";
|
|
869
|
+
image: "image";
|
|
870
870
|
datetime: "datetime";
|
|
871
871
|
select: "select";
|
|
872
872
|
multiSelect: "multiSelect";
|
|
@@ -892,9 +892,9 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
892
892
|
number: "number";
|
|
893
893
|
boolean: "boolean";
|
|
894
894
|
url: "url";
|
|
895
|
-
image: "image";
|
|
896
895
|
text: "text";
|
|
897
896
|
integer: "integer";
|
|
897
|
+
image: "image";
|
|
898
898
|
datetime: "datetime";
|
|
899
899
|
select: "select";
|
|
900
900
|
}>;
|
|
@@ -922,9 +922,9 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
922
922
|
url: "url";
|
|
923
923
|
file: "file";
|
|
924
924
|
slug: "slug";
|
|
925
|
-
image: "image";
|
|
926
925
|
text: "text";
|
|
927
926
|
integer: "integer";
|
|
927
|
+
image: "image";
|
|
928
928
|
datetime: "datetime";
|
|
929
929
|
select: "select";
|
|
930
930
|
multiSelect: "multiSelect";
|
|
@@ -950,9 +950,9 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
950
950
|
number: "number";
|
|
951
951
|
boolean: "boolean";
|
|
952
952
|
url: "url";
|
|
953
|
-
image: "image";
|
|
954
953
|
text: "text";
|
|
955
954
|
integer: "integer";
|
|
955
|
+
image: "image";
|
|
956
956
|
datetime: "datetime";
|
|
957
957
|
select: "select";
|
|
958
958
|
}>;
|
|
@@ -1016,9 +1016,9 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
1016
1016
|
url: "url";
|
|
1017
1017
|
file: "file";
|
|
1018
1018
|
slug: "slug";
|
|
1019
|
-
image: "image";
|
|
1020
1019
|
text: "text";
|
|
1021
1020
|
integer: "integer";
|
|
1021
|
+
image: "image";
|
|
1022
1022
|
datetime: "datetime";
|
|
1023
1023
|
select: "select";
|
|
1024
1024
|
multiSelect: "multiSelect";
|
|
@@ -1091,9 +1091,9 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
1091
1091
|
url: "url";
|
|
1092
1092
|
file: "file";
|
|
1093
1093
|
slug: "slug";
|
|
1094
|
-
image: "image";
|
|
1095
1094
|
text: "text";
|
|
1096
1095
|
integer: "integer";
|
|
1096
|
+
image: "image";
|
|
1097
1097
|
datetime: "datetime";
|
|
1098
1098
|
select: "select";
|
|
1099
1099
|
multiSelect: "multiSelect";
|
|
@@ -1150,9 +1150,9 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1150
1150
|
url: "url";
|
|
1151
1151
|
file: "file";
|
|
1152
1152
|
slug: "slug";
|
|
1153
|
-
image: "image";
|
|
1154
1153
|
text: "text";
|
|
1155
1154
|
integer: "integer";
|
|
1155
|
+
image: "image";
|
|
1156
1156
|
datetime: "datetime";
|
|
1157
1157
|
select: "select";
|
|
1158
1158
|
multiSelect: "multiSelect";
|
|
@@ -1187,9 +1187,9 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
1187
1187
|
url: "url";
|
|
1188
1188
|
file: "file";
|
|
1189
1189
|
slug: "slug";
|
|
1190
|
-
image: "image";
|
|
1191
1190
|
text: "text";
|
|
1192
1191
|
integer: "integer";
|
|
1192
|
+
image: "image";
|
|
1193
1193
|
datetime: "datetime";
|
|
1194
1194
|
select: "select";
|
|
1195
1195
|
multiSelect: "multiSelect";
|
|
@@ -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<
|
|
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<
|
|
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<
|
|
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<
|
|
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
3
|
import { o as isMissingTableError, r as getDb } from "./loader-C9hvIKEW.mjs";
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
4
|
+
import { t as BylineRepository } from "./byline-BvFH-UZw.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-B1t4PSfw.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-BvFH-UZw.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/bylines.ts
|
|
7
7
|
var bylines_exports = /* @__PURE__ */ __exportAll({
|
package/dist/cli/index.mjs
CHANGED
|
@@ -15,25 +15,25 @@ import "../types-BI3ULB3A.mjs";
|
|
|
15
15
|
import { o as isMissingTableError } from "../loader-C9hvIKEW.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-Dxx0H4k8.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
22
|
import "../object-cache-qP60KjUp.mjs";
|
|
23
|
-
import { t as BylineRepository } from "../byline-
|
|
24
|
-
import "../owned-metadata-
|
|
23
|
+
import { t as BylineRepository } from "../byline-BvFH-UZw.mjs";
|
|
24
|
+
import "../owned-metadata-CJs4-k1w.mjs";
|
|
25
25
|
import { n as slugify } from "../slugify-DvoaEPtL.mjs";
|
|
26
26
|
import "../revision-BhnVYOMz.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-B4O77tAe.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, r as contentStoreCollectionFromFields, s as installContentVersionStore, t as ContentVersionStore } from "../version-store-
|
|
35
|
-
import "../write-intent-
|
|
36
|
-
import "../seo-
|
|
33
|
+
import "../content-write-eOTKAf2d.mjs";
|
|
34
|
+
import { n as assertContentVersionStore, r as contentStoreCollectionFromFields, s as installContentVersionStore, t as ContentVersionStore } from "../version-store-DyYULGd3.mjs";
|
|
35
|
+
import "../write-intent-D6xfcx1f.mjs";
|
|
36
|
+
import "../seo-DxrTizK0.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
39
|
import "../content-refresh-COi0WfKw.mjs";
|
|
@@ -42,22 +42,22 @@ import "../fts-manager-BHwhq1lC.mjs";
|
|
|
42
42
|
import "../public-discovery-CGRirTJH.mjs";
|
|
43
43
|
import { n as SchemaRegistry } from "../registry-3xWpSYNI.mjs";
|
|
44
44
|
import "../settings-D0SBKo-W.mjs";
|
|
45
|
-
import { n as VERSION } from "../version-
|
|
45
|
+
import { n as VERSION } from "../version-CtBv2gNa.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-
|
|
52
|
-
import { n as validateWorkersBindings, t as WORKERS_BUILD_METADATA } from "../workers-build-
|
|
53
|
-
import { n as d1ReleaseRevision } from "../state-
|
|
51
|
+
import { t as applySeed } from "../apply-SoTzf8LK.mjs";
|
|
52
|
+
import { n as validateWorkersBindings, t as WORKERS_BUILD_METADATA } from "../workers-build-Bd4w1aw9.mjs";
|
|
53
|
+
import { n as d1ReleaseRevision } from "../state-LzJZ7qpq.mjs";
|
|
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";
|
|
55
|
+
import { n as output, t as configureOutputMode } from "../output-TGkiEMQF.mjs";
|
|
54
56
|
import { createHeaderAwareFetch, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
55
|
-
import { t as convertDataForRead } from "../portable-text-
|
|
56
|
-
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-B-z2_ZOQ.mjs";
|
|
57
|
-
import { n as output, t as configureOutputMode } from "../output-4F_wq70p.mjs";
|
|
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
|
-
import { t as migrateD1Release } from "../release-
|
|
60
|
-
import { a as verifyContentMigration,
|
|
59
|
+
import { t as migrateD1Release } from "../release-Bk-UaI2C.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-B9FyV3ET.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";
|
|
@@ -1206,6 +1206,7 @@ const actions = [
|
|
|
1206
1206
|
"copy",
|
|
1207
1207
|
"freeze",
|
|
1208
1208
|
"verify",
|
|
1209
|
+
"verify-page",
|
|
1209
1210
|
"activate",
|
|
1210
1211
|
"resume",
|
|
1211
1212
|
"rollback",
|
|
@@ -1308,6 +1309,7 @@ async function runContentStorageCommand(options) {
|
|
|
1308
1309
|
}
|
|
1309
1310
|
if (!options.archive) throw new Error("Provide a private --archive directory. Keep the same archive for the entire migration and at least seven days afterward.");
|
|
1310
1311
|
const archive = createFileContentArchive(resolve(project.cwd, options.archive));
|
|
1312
|
+
if (options.action === "verify-page") return await verifyContentMigrationPage(primary, migration, archive, limit);
|
|
1311
1313
|
if (options.action === "verify") return await verifyContentMigration(primary, migration, archive);
|
|
1312
1314
|
if (options.action === "rollback") {
|
|
1313
1315
|
await rollbackContentMigration(primary, migration, archive);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../types-
|
|
1
|
+
import "../types-z2nZassR.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-Dyts_tJ5.mjs";
|
|
14
14
|
import "../types-BuplUVZ4.mjs";
|
|
15
15
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
16
16
|
import { SubCommandsDef } from "citty";
|
package/dist/cli/plugin-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as output, t as configureOutputMode } from "../output-
|
|
1
|
+
import { n as output, t as configureOutputMode } from "../output-TGkiEMQF.mjs";
|
|
2
2
|
import { n as connectionArgs, r as createClientFromArgs } from "../client-factory-8GnB8iz5.mjs";
|
|
3
3
|
|
|
4
4
|
export { configureOutputMode, connectionArgs, createClientFromArgs, output };
|
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-z2nZassR.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-Dyts_tJ5.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";
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as portableTextToMarkdown, n as convertDataForWrite, r as markdownToPortableText, t as convertDataForRead } from "../portable-text-
|
|
2
|
-
import { a as tokenInterceptor, i as refreshInterceptor, n as csrfInterceptor, r as devBypassInterceptor, t as createTransport } from "../transport-
|
|
1
|
+
import { i as portableTextToMarkdown, n as convertDataForWrite, r as markdownToPortableText, t as convertDataForRead } from "../portable-text-CJ9v0T_j.mjs";
|
|
2
|
+
import { a as tokenInterceptor, i as refreshInterceptor, n as csrfInterceptor, r as devBypassInterceptor, t as createTransport } from "../transport-C_bzEHB4.mjs";
|
|
3
3
|
import mime from "mime/lite";
|
|
4
4
|
|
|
5
5
|
//#region src/client/index.ts
|
|
@@ -7,7 +7,7 @@ import { a as hydrateContentRows, g as contentPartitionWritable, r as getContent
|
|
|
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
9
|
import { o as invalidateCollectionCache } from "./object-cache-qP60KjUp.mjs";
|
|
10
|
-
import { i as storedContentSeo, r as snapshotOwnedContentMetadata, t as contentEventBylines } from "./owned-metadata-
|
|
10
|
+
import { i as storedContentSeo, r as snapshotOwnedContentMetadata, t as contentEventBylines } from "./owned-metadata-CJs4-k1w.mjs";
|
|
11
11
|
import { n as slugify } from "./slugify-DvoaEPtL.mjs";
|
|
12
12
|
import { t as RevisionRepository } from "./revision-BhnVYOMz.mjs";
|
|
13
13
|
import { sql } from "kysely";
|
|
@@ -180,7 +180,15 @@ interface MigrationEntry {
|
|
|
180
180
|
declare function stageContentMigrationEntry(db: Kysely<Database>, migration: ContentMigrationIdentity, entryId: string, archive: ContentMigrationArchive): Promise<MigrationEntry>;
|
|
181
181
|
/** Activate one verified entry while the city remains frozen; retries use its persisted receipt. */
|
|
182
182
|
declare function activateContentMigrationEntry(db: Kysely<Database>, migration: ContentMigrationIdentity, entryId: string, archive: ContentMigrationArchive): Promise<void>;
|
|
183
|
-
/**
|
|
183
|
+
/** Verify one bounded page. Durable per-entry receipts let a later process resume the freeze. */
|
|
184
|
+
declare function verifyContentMigrationPage(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive, limit?: number): Promise<{
|
|
185
|
+
done: false;
|
|
186
|
+
count: number;
|
|
187
|
+
} | {
|
|
188
|
+
done: true;
|
|
189
|
+
count: number;
|
|
190
|
+
digest: string;
|
|
191
|
+
}>;
|
|
184
192
|
declare function verifyContentMigration(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive): Promise<{
|
|
185
193
|
count: number;
|
|
186
194
|
digest: string;
|
|
@@ -190,4 +198,4 @@ declare function completeContentMigration(db: Kysely<Database>, migration: Conte
|
|
|
190
198
|
/** Restore the archived source only before writes have reopened. Never deletes either copy. */
|
|
191
199
|
declare function rollbackContentMigration(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive): Promise<void>;
|
|
192
200
|
//#endregion
|
|
193
|
-
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, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration };
|
|
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, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration, verifyContentMigrationPage };
|
|
@@ -7,22 +7,22 @@ import "../base64-qvSs0Gxy.mjs";
|
|
|
7
7
|
import "../types-BI3ULB3A.mjs";
|
|
8
8
|
import "../actor-D0AW80ld.mjs";
|
|
9
9
|
import "../atomic-authority-Bf5QZboB.mjs";
|
|
10
|
-
import "../content-
|
|
10
|
+
import "../content-Dxx0H4k8.mjs";
|
|
11
11
|
import "../request-cache-CizvDoxV.mjs";
|
|
12
12
|
import "../byline-registry-Caj0_gbU.mjs";
|
|
13
13
|
import "../field-defs-cache-dn5Tw79A.mjs";
|
|
14
14
|
import "../object-cache-qP60KjUp.mjs";
|
|
15
|
-
import "../byline-
|
|
16
|
-
import "../owned-metadata-
|
|
15
|
+
import "../byline-BvFH-UZw.mjs";
|
|
16
|
+
import "../owned-metadata-CJs4-k1w.mjs";
|
|
17
17
|
import "../revision-BhnVYOMz.mjs";
|
|
18
18
|
import "../user-Bl2_8rhJ.mjs";
|
|
19
19
|
import "../terms-EskuqbKE.mjs";
|
|
20
20
|
import "../redirect-CJ-FAbNK.mjs";
|
|
21
|
-
import "../content-write-
|
|
22
|
-
import { a as contentStoreRequestSchema, i as contentStoreCollectionSchema, n as assertContentVersionStore, o as contentVersionSchema, r as contentStoreCollectionFromFields, s as installContentVersionStore, t as ContentVersionStore } from "../version-store-
|
|
23
|
-
import "../write-intent-
|
|
24
|
-
import "../seo-
|
|
21
|
+
import "../content-write-eOTKAf2d.mjs";
|
|
22
|
+
import { a as contentStoreRequestSchema, i as contentStoreCollectionSchema, n as assertContentVersionStore, o as contentVersionSchema, r as contentStoreCollectionFromFields, s as installContentVersionStore, t as ContentVersionStore } from "../version-store-DyYULGd3.mjs";
|
|
23
|
+
import "../write-intent-D6xfcx1f.mjs";
|
|
24
|
+
import "../seo-DxrTizK0.mjs";
|
|
25
25
|
import "../content-C8i4DyTt.mjs";
|
|
26
|
-
import { a as verifyContentMigration, c as
|
|
26
|
+
import { a as verifyContentMigration, c as captureContentMigrationSnapshot, 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-B9FyV3ET.mjs";
|
|
27
27
|
|
|
28
|
-
export { ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, ContentVersionStore, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration };
|
|
28
|
+
export { ContentStorageCoordinator, ContentStorageError, ContentStorageReplay, ContentVersionStore, activateContentMigrationEntry, assertContentStorageConfiguration, assertContentVersionStore, beginContentMigration, bootstrapContentDirectoryPage, cancelContentMigration, canonicalContentJson, captureContentMigrationSnapshot, completeContentMigration, contentDigest, contentMigrationSnapshotSchema, contentStoreCollectionFromFields, contentStoreCollectionSchema, contentStoreRequestSchema, contentVersionSchema, freezeContentPartition, getContentStorage, hydrateContentRows, installContentStorageConfig, installContentVersionStore, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, validateContentStorage, verifyContentMigration, verifyContentMigrationPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../d1-binding-DrLMBUxu.mjs";
|
|
2
2
|
import { n as contentDigest, o as ContentStorageError } from "../config---A7Bg68.mjs";
|
|
3
|
-
import { a as contentStoreRequestSchema, n as assertContentVersionStore, o as contentVersionSchema, s as installContentVersionStore, t as ContentVersionStore } from "../version-store-
|
|
3
|
+
import { a as contentStoreRequestSchema, n as assertContentVersionStore, o as contentVersionSchema, s as installContentVersionStore, t as ContentVersionStore } from "../version-store-DyYULGd3.mjs";
|
|
4
4
|
|
|
5
5
|
export { ContentStorageError, ContentVersionStore, assertContentVersionStore, contentDigest, contentStoreRequestSchema, contentVersionSchema, installContentVersionStore };
|
|
@@ -9,21 +9,21 @@ import { n as readRevisionDataBatch, r as storedRevisionIndex, t as readRevision
|
|
|
9
9
|
import { r as encodeBase64, t as decodeBase64 } from "./base64-qvSs0Gxy.mjs";
|
|
10
10
|
import { n as ScheduledNotDueError, t as DinewayValidationError } from "./types-BI3ULB3A.mjs";
|
|
11
11
|
import { t as contentWriteChecks } from "./atomic-authority-Bf5QZboB.mjs";
|
|
12
|
-
import { a as prepareContentHookEvents, s as contentStorageHookSnapshotSchema, t as ContentRepository } from "./content-
|
|
12
|
+
import { a as prepareContentHookEvents, s as contentStorageHookSnapshotSchema, t as ContentRepository } from "./content-Dxx0H4k8.mjs";
|
|
13
13
|
import { r as requestCached } from "./request-cache-CizvDoxV.mjs";
|
|
14
14
|
import { o as invalidateCollectionCache, s as invalidateCommentObjectCache } from "./object-cache-qP60KjUp.mjs";
|
|
15
15
|
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-Bb56aCtB.mjs";
|
|
16
|
-
import { t as BylineRepository } from "./byline-
|
|
17
|
-
import { i as storedContentSeo, r as snapshotOwnedContentMetadata, t as contentEventBylines } from "./owned-metadata-
|
|
16
|
+
import { t as BylineRepository } from "./byline-BvFH-UZw.mjs";
|
|
17
|
+
import { i as storedContentSeo, r as snapshotOwnedContentMetadata, t as contentEventBylines } from "./owned-metadata-CJs4-k1w.mjs";
|
|
18
18
|
import { t as RevisionRepository } from "./revision-BhnVYOMz.mjs";
|
|
19
19
|
import { t as UserRepository } from "./user-Bl2_8rhJ.mjs";
|
|
20
20
|
import { i as snapshotPartitionTerms, n as prepareContentTerms, r as snapshotContentTermChanges } from "./terms-EskuqbKE.mjs";
|
|
21
21
|
import { t as RedirectRepository } from "./redirect-CJ-FAbNK.mjs";
|
|
22
22
|
import { i as invalidateRedirectCache } from "./cache-DsEbwFVE.mjs";
|
|
23
23
|
import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-FkfazULS.mjs";
|
|
24
|
-
import { o as contentVersionSchema } from "./version-store-
|
|
25
|
-
import { r as markContentWriteReplay, t as beginContentWriteIntent } from "./write-intent-
|
|
26
|
-
import { t as SeoRepository } from "./seo-
|
|
24
|
+
import { o as contentVersionSchema } from "./version-store-DyYULGd3.mjs";
|
|
25
|
+
import { r as markContentWriteReplay, t as beginContentWriteIntent } from "./write-intent-D6xfcx1f.mjs";
|
|
26
|
+
import { t as SeoRepository } from "./seo-DxrTizK0.mjs";
|
|
27
27
|
import { sql } from "kysely";
|
|
28
28
|
import { ulid } from "ulidx";
|
|
29
29
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-
|
|
2
|
-
import { i as parseSiteBriefingScope, m as ContextRepository, n as SiteBriefingError } from "./briefing-
|
|
1
|
+
import { _ as toPublicContextDiff, v as toPublicContextEntry, y as toPublicContextEntryPage } from "./site-context-DNiKKCc1.mjs";
|
|
2
|
+
import { i as parseSiteBriefingScope, m as ContextRepository, n as SiteBriefingError } from "./briefing-9YqN5XoW.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/context.ts
|
|
5
5
|
async function handleContextEntryList(db, input = {}) {
|
|
@@ -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-BI3ULB3A.mjs";
|
|
5
5
|
import { t as contentWriteChecks } from "./atomic-authority-Bf5QZboB.mjs";
|
|
6
|
-
import { t as ContentRepository } from "./content-
|
|
6
|
+
import { t as ContentRepository } from "./content-Dxx0H4k8.mjs";
|
|
7
7
|
import { o as invalidateCollectionCache } from "./object-cache-qP60KjUp.mjs";
|
|
8
8
|
import { t as MediaRepository } from "./media-BjH5OD-A.mjs";
|
|
9
9
|
import { t as UserRepository } from "./user-Bl2_8rhJ.mjs";
|
|
10
10
|
import { t as OptionsRepository } from "./options-yFkLUuTw.mjs";
|
|
11
11
|
import { t as enrichImageMetadata } from "./enrich-CAMsD1aT.mjs";
|
|
12
|
-
import { t as SeoRepository } from "./seo-
|
|
12
|
+
import { t as SeoRepository } from "./seo-DxrTizK0.mjs";
|
|
13
13
|
import { o as prepareContentMediaUsageCollectionStale } from "./content-refresh-COi0WfKw.mjs";
|
|
14
14
|
import { a as validateExternalUrl, i as stripCredentialHeaders, t as SsrfError } from "./ssrf-C7tTSD1r.mjs";
|
|
15
15
|
import { sql } from "kysely";
|
|
@@ -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-Dxx0H4k8.mjs";
|
|
3
3
|
import { t as MediaRepository } from "./media-BjH5OD-A.mjs";
|
|
4
4
|
import { t as UserRepository } from "./user-Bl2_8rhJ.mjs";
|
|
5
5
|
import { r as ReviewRequestRepository } from "./review-requests-DZYM51yI.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as ResolvedPlugin, ac as assertD1Migrations, cc as compileD1Schema, ic as D1MigrationOptions, oc as migrateD1, rc as D1Migration, sc as D1SchemaObject } from "../../types-
|
|
1
|
+
import { At as ResolvedPlugin, ac as assertD1Migrations, cc as compileD1Schema, ic as D1MigrationOptions, oc as migrateD1, rc as D1Migration, sc as D1SchemaObject } from "../../types-z2nZassR.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-Dyts_tJ5.mjs";
|
|
14
14
|
import "../../types-BuplUVZ4.mjs";
|
|
15
15
|
import { Kysely } from "kysely";
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@ import { o as assertD1Migrations, s as migrateD1 } from "../../runner-CuG8o1uW.m
|
|
|
2
2
|
import "../../d1-binding-DrLMBUxu.mjs";
|
|
3
3
|
import "../../dialect-helpers-C6xtO-Ui.mjs";
|
|
4
4
|
import "../../migrations-DTCIQJ2_.mjs";
|
|
5
|
-
import "../../state-
|
|
6
|
-
import { n as compileD1Schema, t as migrateD1Release } from "../../release-
|
|
5
|
+
import "../../state-LzJZ7qpq.mjs";
|
|
6
|
+
import { n as compileD1Schema, t as migrateD1Release } from "../../release-Bk-UaI2C.mjs";
|
|
7
7
|
|
|
8
8
|
export { assertD1Migrations, compileD1Schema, migrateD1, migrateD1Release };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as encodeBase64url } from "./base64-qvSs0Gxy.mjs";
|
|
2
2
|
import { t as MediaRepository } from "./media-BjH5OD-A.mjs";
|
|
3
3
|
import { t as buildStableHash } from "./stable-hash-9RDJgfif.mjs";
|
|
4
|
-
import { a as selectActiveBriefingContextEntries, i as parseSiteBriefingScope, m as ContextRepository } from "./briefing-
|
|
4
|
+
import { a as selectActiveBriefingContextEntries, i as parseSiteBriefingScope, m as ContextRepository } from "./briefing-9YqN5XoW.mjs";
|
|
5
5
|
import { n as sha256, s as readBoundedBytes } from "./runs-BGqkkqhp.mjs";
|
|
6
6
|
import { c as loadContentMediaUsageFields } from "./content-refresh-COi0WfKw.mjs";
|
|
7
7
|
import { r as ssrfSafeFetch } from "./ssrf-C7tTSD1r.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as HitlRequestService } from "./site-context-
|
|
1
|
+
import { b as HitlRequestService } from "./site-context-DNiKKCc1.mjs";
|
|
2
2
|
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-BtKXzyIH.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/hitl-requests.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as resolveActorIdentity } from "./actor-D0AW80ld.mjs";
|
|
2
|
-
import { t as WorkflowHitlCoordinator } from "./site-context-
|
|
2
|
+
import { t as WorkflowHitlCoordinator } from "./site-context-DNiKKCc1.mjs";
|
|
3
3
|
import { t as apiError } from "./error-HuAkl_6r.mjs";
|
|
4
4
|
import { p as logSiteActivitySafely } from "./activity-events-D4JfWJFI.mjs";
|
|
5
5
|
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-BtKXzyIH.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as slugify } from "./slugify-DvoaEPtL.mjs";
|
|
2
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
2
|
+
import { t as TaxonomyRepository } from "./taxonomy-B4O77tAe.mjs";
|
|
3
3
|
import { t as OptionsRepository } from "./options-yFkLUuTw.mjs";
|
|
4
4
|
import { a as validateExternalUrl, n as resolveAndValidateExternalUrl, r as ssrfSafeFetch } from "./ssrf-C7tTSD1r.mjs";
|
|
5
5
|
import { o as invalidateSiteSettingsCache } from "./settings-D0SBKo-W.mjs";
|
|
6
6
|
import { n as resolveLocaleChain } from "./resolve-BdDNBmaU.mjs";
|
|
7
|
-
import { l as invalidateTermCache } from "./taxonomies-
|
|
7
|
+
import { l as invalidateTermCache } from "./taxonomies-CZHI0fCa.mjs";
|
|
8
8
|
import { n as parseWxrString } from "./parser-CoH5-854.mjs";
|
|
9
9
|
import { _ as sanitizeFieldSlug, a as getFilenameFromUrl, c as isInternalMetaKey, d as mapMetaKeyToField, f as mapPostTypeToCollection, h as relativizeContentLinks, i as checkSchemaCompatibility, l as isInternalPostType, m as normalizeUrl$1, n as FEATURED_IMAGE_FIELD, o as guessMimeType, p as mapWpStatus, r as buildAttachmentMap, s as inferMetaType, t as BASE_REQUIRED_FIELDS, u as isPluginBookkeepingMeta } from "./utils-WY63JOPB.mjs";
|
|
10
10
|
import { ulid } from "ulidx";
|