dineway 0.2.47 → 0.2.48
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 +5 -5
- package/dist/api/route-utils.mjs +12 -12
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-CJ_MN3ZM.mjs → api-p58_ypd8.mjs} +9 -9
- package/dist/{apply-AOuBTila.mjs → apply-BlVVbjbz.mjs} +15 -15
- package/dist/astro/index.d.mts +4 -4
- package/dist/astro/index.mjs +4 -4
- package/dist/astro/middleware/auth.d.mts +4 -4
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +63 -63
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +4 -4
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +4 -4
- package/dist/astro/routes/api/admin/briefing.mjs +20 -20
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +4 -4
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +12 -12
- package/dist/astro/routes/api/admin/bylines/index.mjs +12 -12
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +10 -10
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +9 -9
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +25 -25
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +28 -28
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +28 -28
- package/dist/astro/routes/api/admin/context/diff.mjs +28 -28
- package/dist/astro/routes/api/admin/context/index.mjs +28 -28
- package/dist/astro/routes/api/admin/context/stale.mjs +28 -28
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +29 -29
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +29 -29
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +25 -25
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +43 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/updates.mjs +39 -39
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +16 -16
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +22 -22
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +32 -32
- package/dist/astro/routes/api/admin/review-requests/index.mjs +30 -30
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +39 -39
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +39 -39
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/users/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/index.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/register-options.mjs +5 -5
- package/dist/astro/routes/api/auth/magic-link/send.mjs +4 -4
- package/dist/astro/routes/api/auth/me.mjs +4 -4
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/passkey/verify.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/complete.mjs +6 -6
- package/dist/astro/routes/api/auth/signup/request.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +10 -10
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +10 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +19 -19
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +19 -19
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +15 -15
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/index.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +9 -9
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +13 -13
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress/execute.mjs +28 -28
- package/dist/astro/routes/api/import/wordpress/media.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress/media.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +29 -29
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +29 -29
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +15 -15
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +4 -4
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +32 -32
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +64 -64
- package/dist/astro/routes/api/media/_id_/confirm.mjs +4 -4
- package/dist/astro/routes/api/media/_id_.mjs +4 -4
- package/dist/astro/routes/api/media/upload-url.mjs +4 -4
- package/dist/astro/routes/api/media.mjs +4 -4
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +29 -29
- package/dist/astro/routes/api/menus/_name_/items.mjs +29 -29
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +29 -29
- package/dist/astro/routes/api/menus/_name_/translations.mjs +29 -29
- package/dist/astro/routes/api/menus/_name_.mjs +29 -29
- package/dist/astro/routes/api/menus/index.mjs +29 -29
- package/dist/astro/routes/api/openapi.json.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/index.mjs +4 -4
- package/dist/astro/routes/api/redirects/404s/summary.mjs +4 -4
- package/dist/astro/routes/api/redirects/_id_.mjs +28 -28
- package/dist/astro/routes/api/redirects/index.mjs +28 -28
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +39 -39
- package/dist/astro/routes/api/schema/collections/index.mjs +39 -39
- package/dist/astro/routes/api/schema/index.mjs +5 -5
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +39 -39
- package/dist/astro/routes/api/schema/orphans/index.mjs +39 -39
- package/dist/astro/routes/api/search/enable.mjs +9 -9
- package/dist/astro/routes/api/search/index.mjs +9 -9
- package/dist/astro/routes/api/search/rebuild.mjs +9 -9
- package/dist/astro/routes/api/search/stats.mjs +5 -5
- package/dist/astro/routes/api/search/suggest.mjs +9 -9
- package/dist/astro/routes/api/sections/_slug_.mjs +29 -29
- package/dist/astro/routes/api/sections/index.mjs +29 -29
- package/dist/astro/routes/api/settings/reviews.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +29 -29
- package/dist/astro/routes/api/setup/admin-verify.mjs +7 -7
- package/dist/astro/routes/api/setup/admin.mjs +5 -5
- package/dist/astro/routes/api/setup/dev-bypass.mjs +19 -19
- package/dist/astro/routes/api/setup/index.mjs +23 -23
- 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 +31 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +31 -31
- package/dist/astro/routes/api/taxonomies/index.mjs +31 -31
- package/dist/astro/routes/api/typegen.mjs +2 -2
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +28 -28
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +29 -29
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +29 -29
- package/dist/astro/routes/api/widget-areas/_name_.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/index.mjs +29 -29
- package/dist/astro/routes/robots.txt.mjs +6 -6
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +10 -10
- package/dist/astro/routes/sitemap.xml.mjs +10 -10
- package/dist/astro/session-driver.mjs +4 -4
- package/dist/astro/types.d.mts +4 -4
- package/dist/{briefing-8OgwfN-y.mjs → briefing-BAtarnPm.mjs} +1 -1
- package/dist/{briefing-CQk5h4t6.mjs → briefing-DoFv4isE.mjs} +5 -5
- package/dist/{byline-DGTZqRM0.mjs → byline-CYc3Hn1i.mjs} +5 -5
- package/dist/{byline-fields-DvYufwxE.d.mts → byline-fields-B117F62r.d.mts} +38 -38
- package/dist/{byline-fields-Bnw5NflJ.mjs → byline-fields-BHVmleIi.mjs} +1 -1
- package/dist/{bylines-D27pVrb-.mjs → bylines-DGdYDqGq.mjs} +1 -1
- package/dist/{bylines-BO0rdeMa.mjs → bylines-DrSccNgg.mjs} +3 -3
- package/dist/cli/index.mjs +33 -25
- package/dist/cli/plugin-kit.d.mts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/{comment--XUWDcJD.mjs → comment-BnrzhX9M.mjs} +1 -1
- package/dist/{comments-1RMjBvK3.mjs → comments-B4Tym6oF.mjs} +1 -1
- package/dist/{config---A7Bg68.mjs → config-BhQacL9l.mjs} +2 -1
- package/dist/{content-rb8lZEfT.mjs → content-CIWw08LO.mjs} +5 -5
- package/dist/{content-C8i4DyTt.mjs → content-CghEEm3k.mjs} +1 -1
- package/dist/{content-refresh-Dl938dTm.mjs → content-refresh-lqCnhHGP.mjs} +2 -2
- package/dist/content-storage/index.d.mts +24 -5
- package/dist/content-storage/index.mjs +16 -16
- package/dist/content-storage/store.d.mts +2 -2
- package/dist/content-storage/store.mjs +2 -2
- package/dist/{content-write-DPszY76R.mjs → content-write-BjTJiZhK.mjs} +74 -18
- package/dist/{context-BrzB9nTR.mjs → context-PK-5ygok.mjs} +4 -4
- package/dist/{context-I9mz_9uB.mjs → context-caX3OQVz.mjs} +2 -2
- package/dist/{dashboard-CZtacCz9.mjs → dashboard-DBHqEUXC.mjs} +1 -1
- package/dist/database/d1/index.d.mts +4 -4
- package/dist/database/d1/index.mjs +2 -2
- package/dist/{discovery-BjyZQy47.mjs → discovery-DLzhlF9z.mjs} +1 -1
- package/dist/{evidence-DE40B1zz.mjs → evidence-CG6khLd9.mjs} +2 -2
- package/dist/{hitl-requests-DsLqU9VX.mjs → hitl-requests-SRfiaD3V.mjs} +1 -1
- package/dist/{hitl-route-helpers-BVgtDm47.mjs → hitl-route-helpers-B0h7RXw1.mjs} +1 -1
- package/dist/{import-DrzBQKha.mjs → import-DpVbSU4T.mjs} +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +51 -51
- package/dist/{jsonld-Qr9dwCK4.d.mts → jsonld-DaZdgstn.d.mts} +1 -1
- package/dist/{loader-Q07mEStb.mjs → loader-CrVkVaD6.mjs} +7 -2
- package/dist/{mcp-reviewed-executor-mRdtNIf1.mjs → mcp-reviewed-executor-C93EXLSQ.mjs} +2 -2
- package/dist/media/local-runtime.d.mts +4 -4
- package/dist/{menus-Coq8FLPj.mjs → menus-DRpTzW6g.mjs} +3 -3
- package/dist/{menus-DDxZ0JiZ.mjs → menus-X0eJuILT.mjs} +1 -1
- package/dist/{object-cache-DeIkrWmq.mjs → object-cache-DRx6IjWR.mjs} +1 -1
- package/dist/{owned-metadata-LUF0xC0h.mjs → owned-metadata-DFODPEuj.mjs} +1 -1
- package/dist/page/index.d.mts +5 -5
- package/dist/plugin-utils.d.mts +4 -4
- package/dist/plugins/adapt-sandbox-entry.d.mts +4 -4
- package/dist/{plugins-Dh2fBfX7.mjs → plugins-D4TRcqTV.mjs} +2 -2
- package/dist/{public-url-C60HX3NR.d.mts → public-url-b6l0vmiE.d.mts} +1 -1
- package/dist/{publication-authorization-e0sPJ9OP.mjs → publication-authorization-C2X-Qj7L.mjs} +4 -4
- package/dist/{query-CyzBZrWv.mjs → query-BTXfe7AE.mjs} +3 -3
- package/dist/{query-BvYbhblK.mjs → query-BfIz2W0n.mjs} +10 -10
- package/dist/{redirects-BwnvcNyN.mjs → redirects-DAKRmX6R.mjs} +1 -1
- package/dist/{registry-BpNZLrXn.mjs → registry-CdeSHG0k.mjs} +1 -1
- package/dist/{release-CIYyinzY.mjs → release-Bk-UaI2C.mjs} +1 -1
- package/dist/{migration-B7DanZKm.mjs → retention-gks1TiDo.mjs} +72 -12
- package/dist/{review-requests-R9L2Aubm.mjs → review-requests-05w-uj_e.mjs} +1 -1
- package/dist/{revision-DfrRhPgw.mjs → revision-DX_AHhhE.mjs} +2 -2
- package/dist/{revisions-DnV1P4O5.mjs → revisions-DG2-WBDb.mjs} +2 -2
- package/dist/{runtime-ecsN2xL9.d.mts → runtime-BEiDcRPk.d.mts} +1 -1
- package/dist/{runtime-CmupMaEb.mjs → runtime-CeGWfwh3.mjs} +17 -2
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +4 -4
- package/dist/{schema-siddXiB9.mjs → schema-fU3y2MMH.mjs} +1 -1
- package/dist/{search-giRjxqrh.mjs → search-kRXT1_11.mjs} +1 -1
- package/dist/{sections-DqBH0bCm.mjs → sections-DzoY2Hvx.mjs} +1 -1
- package/dist/seed/index.mjs +19 -19
- package/dist/seo/index.mjs +6 -6
- package/dist/{seo-TWEsRapq.mjs → seo-DYjDvLHM.mjs} +5 -5
- package/dist/{seo-Dsh31oy8.mjs → seo-DuHOFc2a.mjs} +1 -1
- package/dist/{service-CFLkZn2S.mjs → service-DlJ5BeF2.mjs} +2 -2
- package/dist/{settings-ByRmK-Mg.mjs → settings-BU33hxhH.mjs} +1 -1
- package/dist/{settings-Dn4XvS7H.mjs → settings-opr6BnNM.mjs} +2 -2
- package/dist/{site-context-CHfuvD9v.mjs → site-context-94-KanDT.mjs} +6 -6
- package/dist/{submission-C_DNrA5y.mjs → submission-_6ZXKy3N.mjs} +5 -5
- package/dist/{taxonomies-BCuDkFFS.mjs → taxonomies--FALWfoI.mjs} +3 -3
- package/dist/{taxonomies-PWPhdhgN.mjs → taxonomies-DgiHNOZJ.mjs} +2 -2
- package/dist/{taxonomy-YxipNvfL.mjs → taxonomy-CKv3RKf1.mjs} +9 -8
- package/dist/{terms-EskuqbKE.mjs → terms-D4OJs0Zh.mjs} +3 -0
- package/dist/{types-CeFGasN8.d.mts → types-BafdCfKt.d.mts} +1 -0
- package/dist/{types-1NHQF2Yh.d.mts → types-CTbitmIM.d.mts} +7 -5
- package/dist/ui/server-runtime.d.mts +6 -6
- package/dist/ui/server-runtime.mjs +14 -14
- package/dist/version-Bkbf_9nG.mjs +6 -0
- package/dist/{version-store-mMm7pcYK.d.mts → version-store-BLGuq3wB.d.mts} +1 -1
- package/dist/{version-store-B2n_Gfkq.mjs → version-store-xhBmPoC-.mjs} +1 -1
- package/dist/{widgets-C_9KBEwT.mjs → widgets-hPqK6Aut.mjs} +1 -1
- package/dist/{worker-Dl9S5-Tl.mjs → worker-CMiDP358.mjs} +4 -4
- package/dist/{write-intent-4Q8sNg11.mjs → write-intent-ChTUctBF.mjs} +5 -5
- package/package.json +3 -3
- package/dist/version-DkCuTQ-N.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/{mode-C3RI5Z5t.mjs → mode-BoM5FjH7.mjs} +0 -0
- /package/dist/{policy-DbceGc4P.mjs → policy-BL8yj6uD.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/{workers-build-4926MPc0.mjs → workers-build-Bd4w1aw9.mjs} +0 -0
|
@@ -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<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -811,8 +811,8 @@ declare const createCollectionBody: z.ZodObject<{
|
|
|
811
811
|
icon: z.ZodOptional<z.ZodString>;
|
|
812
812
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
813
813
|
search: "search";
|
|
814
|
-
revisions: "revisions";
|
|
815
814
|
drafts: "drafts";
|
|
815
|
+
revisions: "revisions";
|
|
816
816
|
preview: "preview";
|
|
817
817
|
scheduling: "scheduling";
|
|
818
818
|
}>>>;
|
|
@@ -832,8 +832,8 @@ declare const updateCollectionBody: z.ZodObject<{
|
|
|
832
832
|
icon: z.ZodOptional<z.ZodString>;
|
|
833
833
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
834
834
|
search: "search";
|
|
835
|
-
revisions: "revisions";
|
|
836
835
|
drafts: "drafts";
|
|
836
|
+
revisions: "revisions";
|
|
837
837
|
preview: "preview";
|
|
838
838
|
scheduling: "scheduling";
|
|
839
839
|
}>>>;
|
|
@@ -860,17 +860,17 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
860
860
|
string: "string";
|
|
861
861
|
number: "number";
|
|
862
862
|
boolean: "boolean";
|
|
863
|
-
file: "file";
|
|
864
863
|
json: "json";
|
|
865
864
|
url: "url";
|
|
865
|
+
file: "file";
|
|
866
866
|
slug: "slug";
|
|
867
|
-
image: "image";
|
|
868
|
-
datetime: "datetime";
|
|
869
867
|
text: "text";
|
|
870
868
|
integer: "integer";
|
|
869
|
+
datetime: "datetime";
|
|
871
870
|
select: "select";
|
|
872
871
|
multiSelect: "multiSelect";
|
|
873
872
|
portableText: "portableText";
|
|
873
|
+
image: "image";
|
|
874
874
|
reference: "reference";
|
|
875
875
|
repeater: "repeater";
|
|
876
876
|
}>;
|
|
@@ -892,11 +892,11 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
892
892
|
number: "number";
|
|
893
893
|
boolean: "boolean";
|
|
894
894
|
url: "url";
|
|
895
|
-
image: "image";
|
|
896
|
-
datetime: "datetime";
|
|
897
895
|
text: "text";
|
|
898
896
|
integer: "integer";
|
|
897
|
+
datetime: "datetime";
|
|
899
898
|
select: "select";
|
|
899
|
+
image: "image";
|
|
900
900
|
}>;
|
|
901
901
|
label: z.ZodString;
|
|
902
902
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -918,17 +918,17 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
918
918
|
string: "string";
|
|
919
919
|
number: "number";
|
|
920
920
|
boolean: "boolean";
|
|
921
|
-
file: "file";
|
|
922
921
|
json: "json";
|
|
923
922
|
url: "url";
|
|
923
|
+
file: "file";
|
|
924
924
|
slug: "slug";
|
|
925
|
-
image: "image";
|
|
926
|
-
datetime: "datetime";
|
|
927
925
|
text: "text";
|
|
928
926
|
integer: "integer";
|
|
927
|
+
datetime: "datetime";
|
|
929
928
|
select: "select";
|
|
930
929
|
multiSelect: "multiSelect";
|
|
931
930
|
portableText: "portableText";
|
|
931
|
+
image: "image";
|
|
932
932
|
reference: "reference";
|
|
933
933
|
repeater: "repeater";
|
|
934
934
|
}>>;
|
|
@@ -950,11 +950,11 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
950
950
|
number: "number";
|
|
951
951
|
boolean: "boolean";
|
|
952
952
|
url: "url";
|
|
953
|
-
image: "image";
|
|
954
|
-
datetime: "datetime";
|
|
955
953
|
text: "text";
|
|
956
954
|
integer: "integer";
|
|
955
|
+
datetime: "datetime";
|
|
957
956
|
select: "select";
|
|
957
|
+
image: "image";
|
|
958
958
|
}>;
|
|
959
959
|
label: z.ZodString;
|
|
960
960
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1012,17 +1012,17 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
1012
1012
|
string: "string";
|
|
1013
1013
|
number: "number";
|
|
1014
1014
|
boolean: "boolean";
|
|
1015
|
-
file: "file";
|
|
1016
1015
|
json: "json";
|
|
1017
1016
|
url: "url";
|
|
1017
|
+
file: "file";
|
|
1018
1018
|
slug: "slug";
|
|
1019
|
-
image: "image";
|
|
1020
|
-
datetime: "datetime";
|
|
1021
1019
|
text: "text";
|
|
1022
1020
|
integer: "integer";
|
|
1021
|
+
datetime: "datetime";
|
|
1023
1022
|
select: "select";
|
|
1024
1023
|
multiSelect: "multiSelect";
|
|
1025
1024
|
portableText: "portableText";
|
|
1025
|
+
image: "image";
|
|
1026
1026
|
reference: "reference";
|
|
1027
1027
|
repeater: "repeater";
|
|
1028
1028
|
}>;
|
|
@@ -1087,17 +1087,17 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
1087
1087
|
string: "string";
|
|
1088
1088
|
number: "number";
|
|
1089
1089
|
boolean: "boolean";
|
|
1090
|
-
file: "file";
|
|
1091
1090
|
json: "json";
|
|
1092
1091
|
url: "url";
|
|
1092
|
+
file: "file";
|
|
1093
1093
|
slug: "slug";
|
|
1094
|
-
image: "image";
|
|
1095
|
-
datetime: "datetime";
|
|
1096
1094
|
text: "text";
|
|
1097
1095
|
integer: "integer";
|
|
1096
|
+
datetime: "datetime";
|
|
1098
1097
|
select: "select";
|
|
1099
1098
|
multiSelect: "multiSelect";
|
|
1100
1099
|
portableText: "portableText";
|
|
1100
|
+
image: "image";
|
|
1101
1101
|
reference: "reference";
|
|
1102
1102
|
repeater: "repeater";
|
|
1103
1103
|
}>;
|
|
@@ -1146,17 +1146,17 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1146
1146
|
string: "string";
|
|
1147
1147
|
number: "number";
|
|
1148
1148
|
boolean: "boolean";
|
|
1149
|
-
file: "file";
|
|
1150
1149
|
json: "json";
|
|
1151
1150
|
url: "url";
|
|
1151
|
+
file: "file";
|
|
1152
1152
|
slug: "slug";
|
|
1153
|
-
image: "image";
|
|
1154
|
-
datetime: "datetime";
|
|
1155
1153
|
text: "text";
|
|
1156
1154
|
integer: "integer";
|
|
1155
|
+
datetime: "datetime";
|
|
1157
1156
|
select: "select";
|
|
1158
1157
|
multiSelect: "multiSelect";
|
|
1159
1158
|
portableText: "portableText";
|
|
1159
|
+
image: "image";
|
|
1160
1160
|
reference: "reference";
|
|
1161
1161
|
repeater: "repeater";
|
|
1162
1162
|
}>;
|
|
@@ -1183,17 +1183,17 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
1183
1183
|
string: "string";
|
|
1184
1184
|
number: "number";
|
|
1185
1185
|
boolean: "boolean";
|
|
1186
|
-
file: "file";
|
|
1187
1186
|
json: "json";
|
|
1188
1187
|
url: "url";
|
|
1188
|
+
file: "file";
|
|
1189
1189
|
slug: "slug";
|
|
1190
|
-
image: "image";
|
|
1191
|
-
datetime: "datetime";
|
|
1192
1190
|
text: "text";
|
|
1193
1191
|
integer: "integer";
|
|
1192
|
+
datetime: "datetime";
|
|
1194
1193
|
select: "select";
|
|
1195
1194
|
multiSelect: "multiSelect";
|
|
1196
1195
|
portableText: "portableText";
|
|
1196
|
+
image: "image";
|
|
1197
1197
|
reference: "reference";
|
|
1198
1198
|
repeater: "repeater";
|
|
1199
1199
|
}>;
|
|
@@ -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
|
-
approved: "approved";
|
|
1242
1241
|
pending: "pending";
|
|
1242
|
+
approved: "approved";
|
|
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
|
-
approved: "approved";
|
|
1259
1258
|
pending: "pending";
|
|
1259
|
+
approved: "approved";
|
|
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
|
-
approved: "approved";
|
|
1295
1294
|
pending: "pending";
|
|
1295
|
+
approved: "approved";
|
|
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
|
-
approved: "approved";
|
|
1328
1327
|
pending: "pending";
|
|
1328
|
+
approved: "approved";
|
|
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>>;
|
|
1377
1376
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1378
1377
|
true: "true";
|
|
1379
1378
|
false: "false";
|
|
1380
1379
|
}>>, 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
|
-
approved: "approved";
|
|
1469
1468
|
pending: "pending";
|
|
1469
|
+
approved: "approved";
|
|
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
|
-
approved: "approved";
|
|
1503
1502
|
pending: "pending";
|
|
1503
|
+
approved: "approved";
|
|
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<
|
|
1552
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1553
1553
|
}, z.core.$strip>;
|
|
1554
1554
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1555
1555
|
token: z.ZodString;
|
|
@@ -1641,9 +1641,9 @@ declare const authMeActionBody: z.ZodObject<{
|
|
|
1641
1641
|
* from `referenceCollection` + `referenceId` (a translation_group id).
|
|
1642
1642
|
*/
|
|
1643
1643
|
declare const menuItemTypeEnum: z.ZodEnum<{
|
|
1644
|
-
custom: "custom";
|
|
1645
1644
|
collection: "collection";
|
|
1646
1645
|
taxonomy: "taxonomy";
|
|
1646
|
+
custom: "custom";
|
|
1647
1647
|
page: "page";
|
|
1648
1648
|
post: "post";
|
|
1649
1649
|
}>;
|
|
@@ -1658,9 +1658,9 @@ declare const updateMenuBody: z.ZodObject<{
|
|
|
1658
1658
|
}, z.core.$strict>;
|
|
1659
1659
|
declare const createMenuItemBody: z.ZodObject<{
|
|
1660
1660
|
type: z.ZodEnum<{
|
|
1661
|
-
custom: "custom";
|
|
1662
1661
|
collection: "collection";
|
|
1663
1662
|
taxonomy: "taxonomy";
|
|
1663
|
+
custom: "custom";
|
|
1664
1664
|
page: "page";
|
|
1665
1665
|
post: "post";
|
|
1666
1666
|
}>;
|
|
@@ -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<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, 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<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, 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<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
2113
2113
|
}, z.core.$strip>;
|
|
2114
2114
|
declare const userSchema: z.ZodObject<{
|
|
2115
2115
|
id: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-BgUxCuwu.mjs";
|
|
2
2
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-B9ShQ_6c.mjs";
|
|
3
|
-
import { L as httpUrl, V as roleLevel } from "./content-
|
|
3
|
+
import { L as httpUrl, V as roleLevel } from "./content-CghEEm3k.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/api/schemas/context.ts
|
|
@@ -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-CYc3Hn1i.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/bylines.ts
|
|
7
7
|
var bylines_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-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-CrVkVaD6.mjs";
|
|
4
|
+
import { t as BylineRepository } from "./byline-CYc3Hn1i.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-BfIz2W0n.mjs").then((n) => n.o);
|
|
188
188
|
const { entries } = await getDinewayCollection(collection, {
|
|
189
189
|
where: { byline },
|
|
190
190
|
...options.locale !== void 0 ? { locale: options.locale } : {},
|
package/dist/cli/index.mjs
CHANGED
|
@@ -6,58 +6,58 @@ import { AtomicWriteConflict, atomicBatch, rowUnchanged } from "../database/batc
|
|
|
6
6
|
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
|
-
import { a as validateContentStorage, n as contentDigest, r as contentStorageConfigSchema, t as canonicalContentJson } from "../config
|
|
10
|
-
import {
|
|
11
|
-
import "../revisions-
|
|
9
|
+
import { a as validateContentStorage, n as contentDigest, r as contentStorageConfigSchema, t as canonicalContentJson } from "../config-BhQacL9l.mjs";
|
|
10
|
+
import { d as cancelContentMigration, i as getContentStorage, l as installContentStorageConfig, n as assertContentStorageConfiguration, p as freezeContentPartition, s as registerContentStorage, u as beginContentMigration } from "../runtime-CeGWfwh3.mjs";
|
|
11
|
+
import "../revisions-DG2-WBDb.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-CrVkVaD6.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-CIWw08LO.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-DRx6IjWR.mjs";
|
|
23
|
+
import { t as BylineRepository } from "../byline-CYc3Hn1i.mjs";
|
|
24
|
+
import "../owned-metadata-DFODPEuj.mjs";
|
|
25
25
|
import { n as slugify } from "../slugify-DvoaEPtL.mjs";
|
|
26
|
-
import "../revision-
|
|
26
|
+
import "../revision-DX_AHhhE.mjs";
|
|
27
27
|
import { t as MediaRepository } from "../media-BjH5OD-A.mjs";
|
|
28
28
|
import "../user-Bl2_8rhJ.mjs";
|
|
29
|
-
import "../terms-
|
|
30
|
-
import { t as TaxonomyRepository } from "../taxonomy-
|
|
29
|
+
import "../terms-D4OJs0Zh.mjs";
|
|
30
|
+
import { t as TaxonomyRepository } from "../taxonomy-CKv3RKf1.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, o as installContentVersionStore, r as contentStoreCollectionFromFields, t as ContentVersionStore } from "../version-store-
|
|
35
|
-
import "../write-intent-
|
|
36
|
-
import "../seo-
|
|
33
|
+
import "../content-write-BjTJiZhK.mjs";
|
|
34
|
+
import { n as assertContentVersionStore, o as installContentVersionStore, r as contentStoreCollectionFromFields, t as ContentVersionStore } from "../version-store-xhBmPoC-.mjs";
|
|
35
|
+
import "../write-intent-ChTUctBF.mjs";
|
|
36
|
+
import "../seo-DYjDvLHM.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-lqCnhHGP.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-CdeSHG0k.mjs";
|
|
44
|
+
import "../settings-opr6BnNM.mjs";
|
|
45
|
+
import { n as VERSION } from "../version-Bkbf_9nG.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
|
-
import "../content-
|
|
48
|
+
import "../content-CghEEm3k.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-BlVVbjbz.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
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
55
|
import { n as output, t as configureOutputMode } from "../output-TGkiEMQF.mjs";
|
|
56
56
|
import { createHeaderAwareFetch, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
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
|
-
import { t as migrateD1Release } from "../release-
|
|
60
|
-
import { a as
|
|
59
|
+
import { t as migrateD1Release } from "../release-Bk-UaI2C.mjs";
|
|
60
|
+
import { a as stageContentMigrationEntry, c as bootstrapContentDirectoryPage, d as migrateContentStorageConfig, f as stageContentStorageBindings, i as rollbackContentMigration, n as activateContentMigrationEntry, o as verifyContentMigration, r as completeContentMigration, s as verifyContentMigrationPage, t as inventoryContentVersions, u as contentMigrationSnapshotSchema } from "../retention-gks1TiDo.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";
|
|
@@ -1193,6 +1193,7 @@ async function openContentStorageProject(options) {
|
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/cli/commands/content-storage.ts
|
|
1195
1195
|
const actions = [
|
|
1196
|
+
"version-inventory",
|
|
1196
1197
|
"install",
|
|
1197
1198
|
"schema",
|
|
1198
1199
|
"config",
|
|
@@ -1261,6 +1262,11 @@ async function runContentStorageCommand(options) {
|
|
|
1261
1262
|
}
|
|
1262
1263
|
await assertContentStorageConfiguration(primary, config);
|
|
1263
1264
|
for (const [store, definition] of Object.entries(config.stores)) await assertContentVersionStore(databases[store], definition.identity);
|
|
1265
|
+
if (options.action === "version-inventory") {
|
|
1266
|
+
const { store, collection } = options;
|
|
1267
|
+
if (!store || !Object.hasOwn(config.stores, store) || !collection || !Object.hasOwn(config.rules, collection)) throw new Error("Select a configured --store and --collection.");
|
|
1268
|
+
return inventoryContentVersions(primary, databases[store], store, collection, Number(options.after ?? 0), options.limit);
|
|
1269
|
+
}
|
|
1264
1270
|
if (options.action === "inventory") {
|
|
1265
1271
|
const partitions = (await sql`SELECT p.*,COUNT(l.entry_id) AS entries FROM _dineway_content_partitions p LEFT JOIN _dineway_content_locations l ON l.collection=p.collection AND l.partition=p.partition GROUP BY p.collection,p.partition ORDER BY p.collection,p.partition`.execute(primary)).rows;
|
|
1266
1272
|
const unindexed = [];
|
|
@@ -1367,6 +1373,7 @@ const contentStorageCommand = defineCommand({
|
|
|
1367
1373
|
env: { type: "string" },
|
|
1368
1374
|
collection: { type: "string" },
|
|
1369
1375
|
partition: { type: "string" },
|
|
1376
|
+
store: { type: "string" },
|
|
1370
1377
|
migration: { type: "string" },
|
|
1371
1378
|
archive: { type: "string" },
|
|
1372
1379
|
"previous-config": { type: "string" },
|
|
@@ -1389,6 +1396,7 @@ const contentStorageCommand = defineCommand({
|
|
|
1389
1396
|
environment: args.env,
|
|
1390
1397
|
collection: args.collection,
|
|
1391
1398
|
partition: args.partition,
|
|
1399
|
+
store: args.store,
|
|
1392
1400
|
migration: args.migration,
|
|
1393
1401
|
archive: args.archive,
|
|
1394
1402
|
previousConfig: args["previous-config"],
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "../types-
|
|
1
|
+
import "../types-CTbitmIM.mjs";
|
|
2
2
|
import "../types-CG9uGPBL.mjs";
|
|
3
3
|
import "../runner-DlkOiguI.mjs";
|
|
4
4
|
import "../index-_fCUsJx9.mjs";
|
|
5
|
-
import "../types-
|
|
5
|
+
import "../types-BafdCfKt.mjs";
|
|
6
6
|
import "../types-DLwh1QkC.mjs";
|
|
7
7
|
import "../adapters-cL325h6c.mjs";
|
|
8
|
-
import "../runtime-
|
|
8
|
+
import "../runtime-BEiDcRPk.mjs";
|
|
9
9
|
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-B117F62r.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,16 +1,16 @@
|
|
|
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-CTbitmIM.mjs";
|
|
2
2
|
import "../types-CG9uGPBL.mjs";
|
|
3
3
|
import "../runner-DlkOiguI.mjs";
|
|
4
4
|
import "../index-_fCUsJx9.mjs";
|
|
5
|
-
import "../types-
|
|
5
|
+
import "../types-BafdCfKt.mjs";
|
|
6
6
|
import "../types-DLwh1QkC.mjs";
|
|
7
7
|
import "../adapters-cL325h6c.mjs";
|
|
8
|
-
import "../runtime-
|
|
8
|
+
import "../runtime-BEiDcRPk.mjs";
|
|
9
9
|
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-B117F62r.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-DRx6IjWR.mjs";
|
|
3
3
|
import { sql } from "kysely";
|
|
4
4
|
import { ulid } from "ulidx";
|
|
5
5
|
|
|
@@ -35,6 +35,7 @@ const contentStorageConfigSchema = z.object({
|
|
|
35
35
|
taxonomies: z.array(z.string()).optional(),
|
|
36
36
|
references: z.record(z.string(), z.object({
|
|
37
37
|
collection: z.string(),
|
|
38
|
+
fields: z.array(z.string()).max(98).optional(),
|
|
38
39
|
taxonomies: z.array(z.string()).optional()
|
|
39
40
|
}).strict()).optional()
|
|
40
41
|
}).strict()]),
|
|
@@ -89,7 +90,7 @@ function validateContentStorage(config) {
|
|
|
89
90
|
if (!rule.partitionBy.entrypoint) invalid(`Content type ${collection} requires a partition resolver entrypoint.`);
|
|
90
91
|
const names = [...rule.partitionBy.taxonomies ?? []];
|
|
91
92
|
for (const [field, reference] of Object.entries(rule.partitionBy.references ?? {})) {
|
|
92
|
-
if (!COLLECTION.test(field) || UNSAFE_KEYS.has(field) || !COLLECTION.test(reference.collection) || UNSAFE_KEYS.has(reference.collection)) invalid(`Invalid partition reference for ${collection}.`);
|
|
93
|
+
if (!COLLECTION.test(field) || UNSAFE_KEYS.has(field) || reference.fields?.some((key) => !COLLECTION.test(key) || UNSAFE_KEYS.has(key)) || !COLLECTION.test(reference.collection) || UNSAFE_KEYS.has(reference.collection)) invalid(`Invalid partition reference for ${collection}.`);
|
|
93
94
|
names.push(...reference.taxonomies ?? []);
|
|
94
95
|
}
|
|
95
96
|
if (names.length > 16 || Object.keys(rule.partitionBy.references ?? {}).length > 8 || names.some((name) => !COLLECTION.test(name) || UNSAFE_KEYS.has(name))) invalid(`Invalid or excessive partition dependencies for ${collection}.`);
|
|
@@ -2,14 +2,14 @@ import { c as __exportAll } from "./runner-CuG8o1uW.mjs";
|
|
|
2
2
|
import { AtomicWriteConflict, atomicBatch, isD1Database, rowUnchanged } from "./database/batch.mjs";
|
|
3
3
|
import { t as validateIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
4
4
|
import { o as isPostgres } from "./dialect-helpers-C6xtO-Ui.mjs";
|
|
5
|
-
import { n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config
|
|
6
|
-
import {
|
|
5
|
+
import { n as contentDigest, o as ContentStorageError, t as canonicalContentJson } from "./config-BhQacL9l.mjs";
|
|
6
|
+
import { f as contentPartitionWritable, i as getContentStorage, o as hydrateContentRows } from "./runtime-CeGWfwh3.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-DRx6IjWR.mjs";
|
|
10
|
+
import { i as storedContentSeo, r as snapshotOwnedContentMetadata, t as contentEventBylines } from "./owned-metadata-DFODPEuj.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-DX_AHhhE.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 {
|
|
5
|
-
import { t as readRevisionData } from "./revisions-
|
|
4
|
+
import { o as hydrateContentRows } from "./runtime-CeGWfwh3.mjs";
|
|
5
|
+
import { t as readRevisionData } from "./revisions-DG2-WBDb.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as Database } from "../types-CG9uGPBL.mjs";
|
|
2
2
|
import "../database/batch.mjs";
|
|
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-
|
|
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-
|
|
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-BafdCfKt.mjs";
|
|
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-BEiDcRPk.mjs";
|
|
5
5
|
import "../hook-events-lN-kz-4_.mjs";
|
|
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-
|
|
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-BLGuq3wB.mjs";
|
|
7
7
|
import * as kysely from "kysely";
|
|
8
8
|
import { Kysely } from "kysely";
|
|
9
9
|
import { z } from "zod";
|
|
@@ -22,7 +22,7 @@ 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
|
-
/**
|
|
25
|
+
/** Explicitly stage compatible bindings or a resolver input projection with the same routing contract. */
|
|
26
26
|
declare function stageContentStorageBindings<DB>(db: Kysely<DB>, previous: ContentStorageConfig, next: ContentStorageConfig): Promise<void>;
|
|
27
27
|
/** Explicit deployment step. Mapping changes retain the source until its data migration completes. */
|
|
28
28
|
declare function migrateContentStorageConfig<DB>(db: Kysely<DB>, previous: ContentStorageConfig, next: ContentStorageConfig): Promise<void>;
|
|
@@ -200,4 +200,23 @@ declare function completeContentMigration(db: Kysely<Database>, migration: Conte
|
|
|
200
200
|
/** Restore the archived source only before writes have reopened. Never deletes either copy. */
|
|
201
201
|
declare function rollbackContentMigration(db: Kysely<Database>, migration: ContentMigrationIdentity, archive: ContentMigrationArchive): Promise<void>;
|
|
202
202
|
//#endregion
|
|
203
|
-
|
|
203
|
+
//#region src/content-storage/retention.d.ts
|
|
204
|
+
interface PhysicalVersion {
|
|
205
|
+
cursor: number;
|
|
206
|
+
entry_id: string;
|
|
207
|
+
version: string;
|
|
208
|
+
partition: string;
|
|
209
|
+
created_at: string;
|
|
210
|
+
payload_bytes: number;
|
|
211
|
+
}
|
|
212
|
+
/** Read-only inventory. A page is an observation, never a deletion authorization. */
|
|
213
|
+
declare function inventoryContentVersions(primary: Kysely<Database>, physical: Kysely<Database>, store: string, collection: string, after?: number, limit?: number, now?: Date): Promise<{
|
|
214
|
+
store: string;
|
|
215
|
+
collection: string;
|
|
216
|
+
versions: (PhysicalVersion & {
|
|
217
|
+
disposition: "referenced" | "retained" | "review";
|
|
218
|
+
})[];
|
|
219
|
+
nextCursor: number | null;
|
|
220
|
+
}>;
|
|
221
|
+
//#endregion
|
|
222
|
+
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, inventoryContentVersions, migrateContentStorageConfig, readContentPartitionRoute, readRevisionData, readRevisionDataBatch, registerContentStorage, resolveContentPartition, rollbackContentMigration, stageContentMigrationEntry, stageContentStorageBindings, validateContentStorage, verifyContentMigration, verifyContentMigrationPage };
|