dineway 0.2.27 → 0.2.29
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/{activity-DWlF3FUa.mjs → activity-CpXJEs3L.mjs} +1 -1
- package/dist/{activity-events-BYksOnTL.mjs → activity-events-hoMsbNbY.mjs} +1 -1
- package/dist/api/route-utils.d.mts +8 -8
- package/dist/api/route-utils.mjs +7 -7
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-BTrQ7bjs.mjs → api-BCNxeKT9.mjs} +13 -13
- package/dist/{apply-CS_138du.mjs → apply-BwNue-z4.mjs} +17 -17
- package/dist/astro/index.d.mts +7 -7
- package/dist/astro/index.mjs +1 -1
- package/dist/astro/middleware/auth.d.mts +7 -7
- package/dist/astro/middleware/redirect.mjs +4 -4
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +1 -1
- package/dist/astro/middleware.mjs +58 -57
- package/dist/astro/routes/api/admin/briefing.mjs +11 -11
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +6 -6
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +6 -6
- package/dist/astro/routes/api/admin/bylines/index.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +3 -3
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +21 -21
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +21 -21
- package/dist/astro/routes/api/admin/context/diff.mjs +20 -20
- package/dist/astro/routes/api/admin/context/index.mjs +21 -21
- package/dist/astro/routes/api/admin/context/stale.mjs +20 -20
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +21 -21
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +21 -21
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +21 -21
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +39 -39
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +33 -33
- package/dist/astro/routes/api/admin/plugins/updates.mjs +33 -33
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +21 -21
- package/dist/astro/routes/api/admin/review-requests/index.mjs +21 -21
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +33 -33
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +33 -33
- package/dist/astro/routes/api/auth/dev-bypass.mjs +1 -1
- package/dist/astro/routes/api/auth/me.mjs +2 -2
- package/dist/astro/routes/api/auth/setup-token/index.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +8 -8
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +4 -4
- 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_/unpublish.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/index.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +6 -6
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +2 -2
- package/dist/astro/routes/api/import/probe.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +4 -4
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +7 -7
- package/dist/astro/routes/api/import/wordpress/execute.mjs +25 -25
- package/dist/astro/routes/api/import/wordpress/media.d.mts +7 -7
- package/dist/astro/routes/api/import/wordpress/media.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +22 -22
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +7 -7
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +21 -21
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +7 -7
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +26 -26
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +56 -60
- package/dist/astro/routes/api/media/_id_/confirm.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +2 -2
- package/dist/astro/routes/api/media.mjs +3 -3
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +21 -21
- package/dist/astro/routes/api/menus/_name_/items.mjs +21 -21
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +21 -21
- package/dist/astro/routes/api/menus/_name_/translations.mjs +21 -21
- package/dist/astro/routes/api/menus/_name_.mjs +21 -21
- package/dist/astro/routes/api/menus/index.mjs +21 -21
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/redirects/404s/index.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/summary.mjs +3 -3
- package/dist/astro/routes/api/redirects/_id_.mjs +22 -22
- package/dist/astro/routes/api/redirects/index.mjs +22 -22
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +35 -35
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +35 -35
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +35 -35
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +35 -35
- package/dist/astro/routes/api/schema/collections/index.mjs +35 -35
- package/dist/astro/routes/api/schema/index.mjs +5 -5
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +33 -33
- package/dist/astro/routes/api/schema/orphans/index.mjs +33 -33
- package/dist/astro/routes/api/search/enable.mjs +4 -4
- package/dist/astro/routes/api/search/index.mjs +4 -4
- package/dist/astro/routes/api/search/rebuild.mjs +4 -4
- package/dist/astro/routes/api/search/stats.mjs +4 -4
- package/dist/astro/routes/api/search/suggest.mjs +4 -4
- package/dist/astro/routes/api/sections/_slug_.mjs +21 -21
- package/dist/astro/routes/api/sections/index.mjs +21 -21
- package/dist/astro/routes/api/settings.mjs +21 -21
- package/dist/astro/routes/api/setup/dev-bypass.mjs +16 -16
- package/dist/astro/routes/api/setup/index.mjs +16 -16
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +23 -23
- package/dist/astro/routes/api/taxonomies/index.mjs +23 -23
- package/dist/astro/routes/api/typegen.mjs +3 -3
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +20 -20
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +21 -21
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +21 -21
- package/dist/astro/routes/api/widget-areas/_name_.mjs +21 -21
- package/dist/astro/routes/api/widget-areas/index.mjs +21 -21
- package/dist/astro/routes/robots.txt.mjs +4 -4
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
- package/dist/astro/routes/sitemap.xml.mjs +9 -9
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +2 -2
- package/dist/astro/types.d.mts +8 -8
- package/dist/{audit-CmiNnrbj.mjs → audit-B7yDEQYd.mjs} +1 -1
- package/dist/{briefing-Cd2HhhHi.mjs → briefing-Bw06giSR.mjs} +5 -5
- package/dist/{briefing-BoIXsh3Y.mjs → briefing-DXk509e9.mjs} +1 -1
- package/dist/{bundle-DicQY2p2.mjs → bundle-BElk5hXQ.mjs} +1 -1
- package/dist/{byline-MGIfM2Is.mjs → byline-Dvn80pJf.mjs} +4 -4
- package/dist/{byline-fields-BJ5_tYj8.d.mts → byline-fields-Cvl12BTB.d.mts} +60 -60
- package/dist/{bylines-CL8Z6AxI.mjs → bylines-CB_5AVLg.mjs} +4 -4
- package/dist/{bylines-t_uHsP44.mjs → bylines-TcwJ0D4l.mjs} +3 -3
- package/dist/{cache-DrNKKDn0.mjs → cache-BFya-uMt.mjs} +1 -1
- package/dist/{chunks-Bw3_BuVW.mjs → chunks--xBaAjew.mjs} +1 -1
- package/dist/cli/index.mjs +20 -20
- package/dist/cli/plugin-kit.d.mts +7 -7
- package/dist/cli/plugin-kit.mjs +1 -1
- package/dist/client/index.d.mts +7 -7
- package/dist/{client-factory-DXfeovxp.mjs → client-factory-DlGsDQ0a.mjs} +1 -1
- package/dist/{comment-DuDtCn-f.mjs → comment-C4foIr7l.mjs} +1 -1
- package/dist/{comment-reaction-NZjadbiB.mjs → comment-reaction-CqMFa-tO.mjs} +1 -1
- package/dist/{comments-Csi3B9JI.mjs → comments-BvQiuHgk.mjs} +1 -1
- package/dist/{content-CzUrmMC3.mjs → content-GsliU3xN.mjs} +2 -2
- package/dist/{content-refresh-C_jcjzOr.mjs → content-refresh-Q60Srx4f.mjs} +2 -2
- package/dist/{context-D1WiuHGe.mjs → context-BxRv0tDb.mjs} +2 -2
- package/dist/{context-BET1jeas.mjs → context-or1S7D_Z.mjs} +6 -6
- package/dist/{context-route-helpers-CgVXswZ_.mjs → context-route-helpers-DtRDW7-Y.mjs} +1 -1
- package/dist/{dashboard-CKAH1KwM.mjs → dashboard-DP_aGVlw.mjs} +4 -4
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{discovery-SVnRaAxj.mjs → discovery-BgLQroSv.mjs} +2 -2
- package/dist/{field-defs-cache-BIHTU5Yj.mjs → field-defs-cache-BJL-9Sbz.mjs} +1 -1
- package/dist/{fts-manager-BB44uXMm.mjs → fts-manager-DYyjVJRg.mjs} +1 -1
- package/dist/{hitl-requests-D117gyhv.mjs → hitl-requests-LFIR0lUw.mjs} +1 -1
- package/dist/{hitl-route-helpers-BasbaWwG.mjs → hitl-route-helpers-Ct3-l199.mjs} +2 -2
- package/dist/{import-BCY1k1zB.mjs → import-CAJjk6sz.mjs} +3 -3
- package/dist/{index-DNNw5fp0.d.mts → index-QJMl0Apm.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +52 -52
- package/dist/{jsonld-CxMRDv02.d.mts → jsonld-TNycwGyO.d.mts} +2 -2
- package/dist/{load-C-cMlsPv.mjs → load-BU9-SNEM.mjs} +1 -1
- package/dist/{loader-CsX5pTud.mjs → loader-08U88vtS.mjs} +2 -2
- package/dist/{mcp-reviewed-executor-BwI0ylf3.mjs → mcp-reviewed-executor-BIV-Nt4z.mjs} +3 -3
- package/dist/media/local-runtime.d.mts +7 -7
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-4xtXwq7L.mjs → media-fMI0fkpM.mjs} +1 -1
- package/dist/{menus-CRmcWAM5.mjs → menus-BCaZ124X.mjs} +1 -1
- package/dist/{menus-Cu3TUXyl.mjs → menus-BN5-WSeA.mjs} +3 -3
- package/dist/page/index.d.mts +8 -8
- package/dist/plugin-utils.d.mts +7 -7
- package/dist/plugins/adapt-sandbox-entry.d.mts +7 -7
- package/dist/{plugins-BC9Rb6PJ.mjs → plugins-BZAfdnht.mjs} +2 -2
- package/dist/{public-url-UpDevWVD.d.mts → public-url-Bn-FXyxd.d.mts} +1 -1
- package/dist/{public-url-BPnL5sTj.d.mts → public-url-K_8Mlvos.d.mts} +1 -1
- package/dist/{publication-authorization-Bq4B0KIL.mjs → publication-authorization-BvguiESO.mjs} +22 -6
- package/dist/{query-MvFwA1uK.mjs → query-D-HFo-qW.mjs} +2 -2
- package/dist/{query-BAfn0Uxp.mjs → query-yPx_JZSl.mjs} +13 -12
- package/dist/{redirect-CnG6nJ4H.mjs → redirect-CI5NFP2I.mjs} +1 -1
- package/dist/{redirects-lCwNKPUn.mjs → redirects-B8UMik8v.mjs} +2 -2
- package/dist/{registry-QxrUJAWY.mjs → registry-CtSVFnzD.mjs} +4 -4
- package/dist/{review-requests-uI-yUXcr.mjs → review-requests-BrEd3zb5.mjs} +1 -1
- package/dist/{review-requests-DaYnr3XR.mjs → review-requests-DwV5pW9w.mjs} +1 -1
- package/dist/{review-route-helpers-BvX04ahf.mjs → review-route-helpers-BjTgKhRr.mjs} +1 -1
- package/dist/{runner-CQnzfBpD.mjs → runner-CGD7YoW6.mjs} +504 -463
- package/dist/{runner-o39FihbH.d.mts → runner-Dp8Tt7SJ.d.mts} +1 -1
- package/dist/runtime.d.mts +7 -7
- package/dist/runtime.mjs +2 -2
- package/dist/schema-CrYkp-Bo.mjs +8 -0
- package/dist/{search-BtCHwx_Z.mjs → search-xzdgq7jq.mjs} +3 -3
- package/dist/{sections-BM88PvRO.mjs → sections-CIXoe8VF.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +15 -15
- package/dist/seo/index.d.mts +2 -2
- package/dist/seo/index.mjs +5 -5
- package/dist/{seo-CTXMR4YD.mjs → seo-2qDQ_eM-.mjs} +1 -1
- package/dist/{seo-BhMH6i2e.mjs → seo-DON7g2EC.mjs} +1 -1
- package/dist/{service-evnf21UO.mjs → service-BdiBOmpe.mjs} +1 -1
- package/dist/{settings-COtVNdOx.mjs → settings-CmmYM8ML.mjs} +2 -2
- package/dist/{settings-CCqefqC9.mjs → settings-k3HDxkYk.mjs} +2 -2
- package/dist/{site-activity-kfZ9X0no.mjs → site-activity-DNFEWOyU.mjs} +1 -1
- package/dist/{site-context-D2DmqFnD.mjs → site-context-Rh2NpVP6.mjs} +10 -10
- package/dist/{taxonomies-DxtqEjcj.mjs → taxonomies-C5Dc57XI.mjs} +3 -3
- package/dist/{taxonomies-xvaQ7gVM.mjs → taxonomies-ZUyCmHr5.mjs} +4 -4
- package/dist/{taxonomy--vcXXfwc.mjs → taxonomy-Q0dtGa3h.mjs} +2 -2
- package/dist/{types-B2W3CeZN.d.mts → types-B3jx4k7V.d.mts} +69 -1
- package/dist/{types-BcpWwh4c.d.mts → types-BquoJbUs.d.mts} +14 -7
- package/dist/{types-CFvpEEOl.mjs → types-CpJhSIti.mjs} +1 -1
- package/dist/ui/server-runtime.d.mts +9 -9
- package/dist/ui/server-runtime.mjs +14 -14
- package/dist/{user-Dn3wV227.mjs → user-CQ_ujaUi.mjs} +2 -2
- package/dist/{validate-BiPYhXNZ.d.mts → validate-B244Ky-3.d.mts} +1 -1
- package/dist/{validate-BHVQSpUy.mjs → validate-DvgVQCey.mjs} +1 -1
- package/dist/version-BebwPm_l.mjs +6 -0
- package/dist/{widgets-CBCHUg_u.mjs → widgets-FttKnkpm.mjs} +1 -1
- package/dist/{zod-generator-DMlY4cI3.mjs → zod-generator-OstCAALT.mjs} +1 -1
- package/package.json +3 -3
- package/dist/schema-CD3EA3nN.mjs +0 -8
- package/dist/version-BbuynKOY.mjs +0 -6
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as ContentItem } from "../types-m37xNtUj.mjs";
|
|
2
|
-
import { B as PluginActor, E as HttpAccess, Eo as PluginMcpRegistry, F as PageMetadataContribution, Ht as PublicationAuthorizationService, Ka as MediaListResponse, M as PageFragmentContribution, Ms as MediaItem, Oo as DinewayConfig, So as SandboxRunner, Ws as Element, co as DinewayRuntime, do as ConfirmedContentPublicationResult, ec as ContentListResponse, fo as PublishConfirmedContentInput, go as HookPipeline, ho as EmailPipeline, kt as ResolvedPlugin, lo as SandboxedPluginEntry, mt as PluginRouteAuthorization, pt as PluginRouteApiTokenPolicy, qa as MediaResponse, tc as ContentResponse, uo as ConfirmedContentAuthorizer, wt as PublicPageContext } from "../types-
|
|
3
|
-
import { t as Database } from "../types-
|
|
2
|
+
import { B as PluginActor, E as HttpAccess, Eo as PluginMcpRegistry, F as PageMetadataContribution, Ht as PublicationAuthorizationService, Ka as MediaListResponse, M as PageFragmentContribution, Ms as MediaItem, Oo as DinewayConfig, So as SandboxRunner, Ws as Element, co as DinewayRuntime, do as ConfirmedContentPublicationResult, ec as ContentListResponse, fo as PublishConfirmedContentInput, go as HookPipeline, ho as EmailPipeline, kt as ResolvedPlugin, lo as SandboxedPluginEntry, mt as PluginRouteAuthorization, pt as PluginRouteApiTokenPolicy, qa as MediaResponse, tc as ContentResponse, uo as ConfirmedContentAuthorizer, wt as PublicPageContext } from "../types-BquoJbUs.mjs";
|
|
3
|
+
import { t as Database } from "../types-B3jx4k7V.mjs";
|
|
4
4
|
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-0cGpMonY.mjs";
|
|
5
|
-
import "../runner-
|
|
6
|
-
import "../index-
|
|
5
|
+
import "../runner-Dp8Tt7SJ.mjs";
|
|
6
|
+
import "../index-QJMl0Apm.mjs";
|
|
7
7
|
import "../types-BdsNqnHA.mjs";
|
|
8
8
|
import { d as Storage } from "../types-D8iukuuI.mjs";
|
|
9
|
-
import "../public-url-
|
|
10
|
-
import "../validate-
|
|
11
|
-
import "../byline-fields-
|
|
9
|
+
import "../public-url-Bn-FXyxd.mjs";
|
|
10
|
+
import "../validate-B244Ky-3.mjs";
|
|
11
|
+
import "../byline-fields-Cvl12BTB.mjs";
|
|
12
12
|
import "../types-ZdWRfUsC.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
14
14
|
import { Kysely } from "kysely";
|
|
@@ -257,7 +257,7 @@ interface DinewayHandlers {
|
|
|
257
257
|
}) => Promise<HandlerResponse>;
|
|
258
258
|
handleContentUnpublish: (collection: string, id: string) => Promise<HandlerResponse>;
|
|
259
259
|
handleContentSchedule: (collection: string, id: string, scheduledAt: string) => Promise<HandlerResponse>;
|
|
260
|
-
createPublicationAuthorizationService: () => Pick<PublicationAuthorizationService, "checkPublicationReadiness" | "publishAuthorizedContent" | "publishAuthorizedDueContent" | "scheduleAuthorizedContent" | "unscheduleAuthorizedContent">;
|
|
260
|
+
createPublicationAuthorizationService: () => Pick<PublicationAuthorizationService, "checkPublicationReadiness" | "buildReleaseRequest" | "publishAuthorizedContent" | "publishAuthorizedDueContent" | "scheduleAuthorizedContent" | "unscheduleAuthorizedContent">;
|
|
261
261
|
handleContentUnschedule: (collection: string, id: string) => Promise<HandlerResponse>;
|
|
262
262
|
handleContentCountScheduled: (collection: string) => Promise<HandlerResponse>;
|
|
263
263
|
handleContentDiscardDraft: (collection: string, id: string) => Promise<HandlerResponse>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as encodeCursor, r as decodeCursor } from "./types-
|
|
2
|
-
import { t as SiteActivityRepository } from "./site-activity-
|
|
3
|
-
import { t as ReviewRequestRepository } from "./review-requests-
|
|
1
|
+
import { i as encodeCursor, r as decodeCursor } from "./types-CpJhSIti.mjs";
|
|
2
|
+
import { t as SiteActivityRepository } from "./site-activity-DNFEWOyU.mjs";
|
|
3
|
+
import { t as ReviewRequestRepository } from "./review-requests-DwV5pW9w.mjs";
|
|
4
4
|
import { t as withTransaction } from "./transaction-L0tzAOfM.mjs";
|
|
5
5
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-fEeyXC1D.mjs";
|
|
6
|
-
import { n as SchemaRegistry } from "./registry-
|
|
7
|
-
import { a as getSiteSettingsWithDb } from "./settings-
|
|
6
|
+
import { n as SchemaRegistry } from "./registry-CtSVFnzD.mjs";
|
|
7
|
+
import { a as getSiteSettingsWithDb } from "./settings-k3HDxkYk.mjs";
|
|
8
8
|
import { sql } from "kysely";
|
|
9
9
|
import { ulid } from "ulidx";
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CGD7YoW6.mjs";
|
|
2
2
|
import { t as capabilitiesToDeclaredAccess } from "./types-B-nDjnzA.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { imageSize } from "image-size";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CGD7YoW6.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
|
|
3
3
|
import { l as listTablesLike } from "./dialect-helpers-fk43GbDb.mjs";
|
|
4
|
-
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-
|
|
4
|
+
import { i as encodeCursor, r as decodeCursor, t as DinewayValidationError } from "./types-CpJhSIti.mjs";
|
|
5
5
|
import { a as invalidateBylineObjectCache, o as invalidateCollectionCache } from "./object-cache-D51qOseS.mjs";
|
|
6
|
-
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks
|
|
6
|
+
import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks--xBaAjew.mjs";
|
|
7
7
|
import { t as withTransaction } from "./transaction-L0tzAOfM.mjs";
|
|
8
8
|
import { i as setRequestCacheEntry, n as peekRequestCache, t as clearRequestCacheEntry } from "./request-cache-DoT2mKBT.mjs";
|
|
9
|
-
import { n as getBylineFieldDefs } from "./field-defs-cache-
|
|
9
|
+
import { n as getBylineFieldDefs } from "./field-defs-cache-BJL-9Sbz.mjs";
|
|
10
10
|
import { sql } from "kysely";
|
|
11
11
|
import { ulid } from "ulidx";
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
/** Valid role level values */
|
|
5
5
|
declare const VALID_ROLE_LEVELS: Set<number>;
|
|
6
6
|
/** Role level — coerces string/number to valid RoleLevel (10|20|30|40|50) */
|
|
7
|
-
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
7
|
+
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -702,8 +702,8 @@ declare const mediaItemSchema: z.ZodObject<{
|
|
|
702
702
|
caption: z.ZodNullable<z.ZodString>;
|
|
703
703
|
storageKey: z.ZodString;
|
|
704
704
|
status: z.ZodEnum<{
|
|
705
|
-
ready: "ready";
|
|
706
705
|
pending: "pending";
|
|
706
|
+
ready: "ready";
|
|
707
707
|
failed: "failed";
|
|
708
708
|
}>;
|
|
709
709
|
contentHash: z.ZodNullable<z.ZodString>;
|
|
@@ -724,8 +724,8 @@ declare const mediaResponseSchema: z.ZodObject<{
|
|
|
724
724
|
caption: z.ZodNullable<z.ZodString>;
|
|
725
725
|
storageKey: z.ZodString;
|
|
726
726
|
status: z.ZodEnum<{
|
|
727
|
-
ready: "ready";
|
|
728
727
|
pending: "pending";
|
|
728
|
+
ready: "ready";
|
|
729
729
|
failed: "failed";
|
|
730
730
|
}>;
|
|
731
731
|
contentHash: z.ZodNullable<z.ZodString>;
|
|
@@ -747,8 +747,8 @@ declare const mediaListResponseSchema: z.ZodObject<{
|
|
|
747
747
|
caption: z.ZodNullable<z.ZodString>;
|
|
748
748
|
storageKey: z.ZodString;
|
|
749
749
|
status: z.ZodEnum<{
|
|
750
|
-
ready: "ready";
|
|
751
750
|
pending: "pending";
|
|
751
|
+
ready: "ready";
|
|
752
752
|
failed: "failed";
|
|
753
753
|
}>;
|
|
754
754
|
contentHash: z.ZodNullable<z.ZodString>;
|
|
@@ -785,8 +785,8 @@ declare const mediaConfirmResponseSchema: z.ZodObject<{
|
|
|
785
785
|
caption: z.ZodNullable<z.ZodString>;
|
|
786
786
|
storageKey: z.ZodString;
|
|
787
787
|
status: z.ZodEnum<{
|
|
788
|
-
ready: "ready";
|
|
789
788
|
pending: "pending";
|
|
789
|
+
ready: "ready";
|
|
790
790
|
failed: "failed";
|
|
791
791
|
}>;
|
|
792
792
|
contentHash: z.ZodNullable<z.ZodString>;
|
|
@@ -856,18 +856,18 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
856
856
|
string: "string";
|
|
857
857
|
number: "number";
|
|
858
858
|
boolean: "boolean";
|
|
859
|
-
json: "json";
|
|
860
|
-
url: "url";
|
|
861
859
|
file: "file";
|
|
862
|
-
slug: "slug";
|
|
863
|
-
image: "image";
|
|
864
860
|
datetime: "datetime";
|
|
861
|
+
slug: "slug";
|
|
862
|
+
url: "url";
|
|
865
863
|
text: "text";
|
|
866
|
-
integer: "integer";
|
|
867
864
|
select: "select";
|
|
865
|
+
image: "image";
|
|
866
|
+
integer: "integer";
|
|
868
867
|
multiSelect: "multiSelect";
|
|
869
868
|
portableText: "portableText";
|
|
870
869
|
reference: "reference";
|
|
870
|
+
json: "json";
|
|
871
871
|
repeater: "repeater";
|
|
872
872
|
}>;
|
|
873
873
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -887,12 +887,12 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
887
887
|
string: "string";
|
|
888
888
|
number: "number";
|
|
889
889
|
boolean: "boolean";
|
|
890
|
-
url: "url";
|
|
891
|
-
image: "image";
|
|
892
890
|
datetime: "datetime";
|
|
891
|
+
url: "url";
|
|
893
892
|
text: "text";
|
|
894
|
-
integer: "integer";
|
|
895
893
|
select: "select";
|
|
894
|
+
image: "image";
|
|
895
|
+
integer: "integer";
|
|
896
896
|
}>;
|
|
897
897
|
label: z.ZodString;
|
|
898
898
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -914,18 +914,18 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
914
914
|
string: "string";
|
|
915
915
|
number: "number";
|
|
916
916
|
boolean: "boolean";
|
|
917
|
-
json: "json";
|
|
918
|
-
url: "url";
|
|
919
917
|
file: "file";
|
|
920
|
-
slug: "slug";
|
|
921
|
-
image: "image";
|
|
922
918
|
datetime: "datetime";
|
|
919
|
+
slug: "slug";
|
|
920
|
+
url: "url";
|
|
923
921
|
text: "text";
|
|
924
|
-
integer: "integer";
|
|
925
922
|
select: "select";
|
|
923
|
+
image: "image";
|
|
924
|
+
integer: "integer";
|
|
926
925
|
multiSelect: "multiSelect";
|
|
927
926
|
portableText: "portableText";
|
|
928
927
|
reference: "reference";
|
|
928
|
+
json: "json";
|
|
929
929
|
repeater: "repeater";
|
|
930
930
|
}>>;
|
|
931
931
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -945,12 +945,12 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
945
945
|
string: "string";
|
|
946
946
|
number: "number";
|
|
947
947
|
boolean: "boolean";
|
|
948
|
-
url: "url";
|
|
949
|
-
image: "image";
|
|
950
948
|
datetime: "datetime";
|
|
949
|
+
url: "url";
|
|
951
950
|
text: "text";
|
|
952
|
-
integer: "integer";
|
|
953
951
|
select: "select";
|
|
952
|
+
image: "image";
|
|
953
|
+
integer: "integer";
|
|
954
954
|
}>;
|
|
955
955
|
label: z.ZodString;
|
|
956
956
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1008,18 +1008,18 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
1008
1008
|
string: "string";
|
|
1009
1009
|
number: "number";
|
|
1010
1010
|
boolean: "boolean";
|
|
1011
|
-
json: "json";
|
|
1012
|
-
url: "url";
|
|
1013
1011
|
file: "file";
|
|
1014
|
-
slug: "slug";
|
|
1015
|
-
image: "image";
|
|
1016
1012
|
datetime: "datetime";
|
|
1013
|
+
slug: "slug";
|
|
1014
|
+
url: "url";
|
|
1017
1015
|
text: "text";
|
|
1018
|
-
integer: "integer";
|
|
1019
1016
|
select: "select";
|
|
1017
|
+
image: "image";
|
|
1018
|
+
integer: "integer";
|
|
1020
1019
|
multiSelect: "multiSelect";
|
|
1021
1020
|
portableText: "portableText";
|
|
1022
1021
|
reference: "reference";
|
|
1022
|
+
json: "json";
|
|
1023
1023
|
repeater: "repeater";
|
|
1024
1024
|
}>;
|
|
1025
1025
|
required: z.ZodBoolean;
|
|
@@ -1083,18 +1083,18 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
1083
1083
|
string: "string";
|
|
1084
1084
|
number: "number";
|
|
1085
1085
|
boolean: "boolean";
|
|
1086
|
-
json: "json";
|
|
1087
|
-
url: "url";
|
|
1088
1086
|
file: "file";
|
|
1089
|
-
slug: "slug";
|
|
1090
|
-
image: "image";
|
|
1091
1087
|
datetime: "datetime";
|
|
1088
|
+
slug: "slug";
|
|
1089
|
+
url: "url";
|
|
1092
1090
|
text: "text";
|
|
1093
|
-
integer: "integer";
|
|
1094
1091
|
select: "select";
|
|
1092
|
+
image: "image";
|
|
1093
|
+
integer: "integer";
|
|
1095
1094
|
multiSelect: "multiSelect";
|
|
1096
1095
|
portableText: "portableText";
|
|
1097
1096
|
reference: "reference";
|
|
1097
|
+
json: "json";
|
|
1098
1098
|
repeater: "repeater";
|
|
1099
1099
|
}>;
|
|
1100
1100
|
required: z.ZodBoolean;
|
|
@@ -1142,18 +1142,18 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1142
1142
|
string: "string";
|
|
1143
1143
|
number: "number";
|
|
1144
1144
|
boolean: "boolean";
|
|
1145
|
-
json: "json";
|
|
1146
|
-
url: "url";
|
|
1147
1145
|
file: "file";
|
|
1148
|
-
slug: "slug";
|
|
1149
|
-
image: "image";
|
|
1150
1146
|
datetime: "datetime";
|
|
1147
|
+
slug: "slug";
|
|
1148
|
+
url: "url";
|
|
1151
1149
|
text: "text";
|
|
1152
|
-
integer: "integer";
|
|
1153
1150
|
select: "select";
|
|
1151
|
+
image: "image";
|
|
1152
|
+
integer: "integer";
|
|
1154
1153
|
multiSelect: "multiSelect";
|
|
1155
1154
|
portableText: "portableText";
|
|
1156
1155
|
reference: "reference";
|
|
1156
|
+
json: "json";
|
|
1157
1157
|
repeater: "repeater";
|
|
1158
1158
|
}>;
|
|
1159
1159
|
required: z.ZodBoolean;
|
|
@@ -1179,18 +1179,18 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
1179
1179
|
string: "string";
|
|
1180
1180
|
number: "number";
|
|
1181
1181
|
boolean: "boolean";
|
|
1182
|
-
json: "json";
|
|
1183
|
-
url: "url";
|
|
1184
1182
|
file: "file";
|
|
1185
|
-
slug: "slug";
|
|
1186
|
-
image: "image";
|
|
1187
1183
|
datetime: "datetime";
|
|
1184
|
+
slug: "slug";
|
|
1185
|
+
url: "url";
|
|
1188
1186
|
text: "text";
|
|
1189
|
-
integer: "integer";
|
|
1190
1187
|
select: "select";
|
|
1188
|
+
image: "image";
|
|
1189
|
+
integer: "integer";
|
|
1191
1190
|
multiSelect: "multiSelect";
|
|
1192
1191
|
portableText: "portableText";
|
|
1193
1192
|
reference: "reference";
|
|
1193
|
+
json: "json";
|
|
1194
1194
|
repeater: "repeater";
|
|
1195
1195
|
}>;
|
|
1196
1196
|
required: z.ZodBoolean;
|
|
@@ -1234,8 +1234,8 @@ declare const createReactionBody: z.ZodObject<{
|
|
|
1234
1234
|
}, z.core.$strip>;
|
|
1235
1235
|
declare const commentStatusBody: z.ZodObject<{
|
|
1236
1236
|
status: z.ZodEnum<{
|
|
1237
|
-
pending: "pending";
|
|
1238
1237
|
approved: "approved";
|
|
1238
|
+
pending: "pending";
|
|
1239
1239
|
spam: "spam";
|
|
1240
1240
|
trash: "trash";
|
|
1241
1241
|
}>;
|
|
@@ -1243,16 +1243,16 @@ declare const commentStatusBody: z.ZodObject<{
|
|
|
1243
1243
|
declare const commentBulkBody: z.ZodObject<{
|
|
1244
1244
|
ids: z.ZodArray<z.ZodString>;
|
|
1245
1245
|
action: z.ZodEnum<{
|
|
1246
|
-
delete: "delete";
|
|
1247
1246
|
spam: "spam";
|
|
1248
1247
|
trash: "trash";
|
|
1249
1248
|
approve: "approve";
|
|
1249
|
+
delete: "delete";
|
|
1250
1250
|
}>;
|
|
1251
1251
|
}, z.core.$strip>;
|
|
1252
1252
|
declare const commentListQuery: z.ZodObject<{
|
|
1253
1253
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1254
|
-
pending: "pending";
|
|
1255
1254
|
approved: "approved";
|
|
1255
|
+
pending: "pending";
|
|
1256
1256
|
spam: "spam";
|
|
1257
1257
|
trash: "trash";
|
|
1258
1258
|
}>>;
|
|
@@ -1287,8 +1287,8 @@ declare const commentSchema: z.ZodObject<{
|
|
|
1287
1287
|
authorEmail: z.ZodString;
|
|
1288
1288
|
body: z.ZodString;
|
|
1289
1289
|
status: z.ZodEnum<{
|
|
1290
|
-
pending: "pending";
|
|
1291
1290
|
approved: "approved";
|
|
1291
|
+
pending: "pending";
|
|
1292
1292
|
spam: "spam";
|
|
1293
1293
|
trash: "trash";
|
|
1294
1294
|
}>;
|
|
@@ -1320,8 +1320,8 @@ declare const adminCommentListResponseSchema: z.ZodObject<{
|
|
|
1320
1320
|
authorEmail: z.ZodString;
|
|
1321
1321
|
body: z.ZodString;
|
|
1322
1322
|
status: z.ZodEnum<{
|
|
1323
|
-
pending: "pending";
|
|
1324
1323
|
approved: "approved";
|
|
1324
|
+
pending: "pending";
|
|
1325
1325
|
spam: "spam";
|
|
1326
1326
|
trash: "trash";
|
|
1327
1327
|
}>;
|
|
@@ -1366,15 +1366,15 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1366
1366
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1367
1367
|
}, z.core.$strip>;
|
|
1368
1368
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1369
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1370
1369
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1371
|
-
|
|
1370
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1372
1371
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1373
1372
|
true: "true";
|
|
1374
1373
|
false: "false";
|
|
1375
1374
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1376
1375
|
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1377
1376
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1377
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1378
1378
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1379
1379
|
user: "user";
|
|
1380
1380
|
api_token: "api_token";
|
|
@@ -1395,7 +1395,6 @@ declare const contextEntryDiffQuery: z.ZodObject<{
|
|
|
1395
1395
|
declare const contextEntryCreateBody: z.ZodObject<{
|
|
1396
1396
|
scope: z.ZodString;
|
|
1397
1397
|
contextType: z.ZodEnum<{
|
|
1398
|
-
decision: "decision";
|
|
1399
1398
|
brand_voice: "brand_voice";
|
|
1400
1399
|
seo_strategy: "seo_strategy";
|
|
1401
1400
|
audience: "audience";
|
|
@@ -1405,6 +1404,7 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1405
1404
|
migration_note: "migration_note";
|
|
1406
1405
|
plugin_note: "plugin_note";
|
|
1407
1406
|
agent_reasoning: "agent_reasoning";
|
|
1407
|
+
decision: "decision";
|
|
1408
1408
|
risk: "risk";
|
|
1409
1409
|
content_gap: "content_gap";
|
|
1410
1410
|
style_exception: "style_exception";
|
|
@@ -1419,7 +1419,6 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1419
1419
|
declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
1420
1420
|
scope: z.ZodOptional<z.ZodString>;
|
|
1421
1421
|
contextType: z.ZodOptional<z.ZodEnum<{
|
|
1422
|
-
decision: "decision";
|
|
1423
1422
|
brand_voice: "brand_voice";
|
|
1424
1423
|
seo_strategy: "seo_strategy";
|
|
1425
1424
|
audience: "audience";
|
|
@@ -1429,6 +1428,7 @@ declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
|
1429
1428
|
migration_note: "migration_note";
|
|
1430
1429
|
plugin_note: "plugin_note";
|
|
1431
1430
|
agent_reasoning: "agent_reasoning";
|
|
1431
|
+
decision: "decision";
|
|
1432
1432
|
risk: "risk";
|
|
1433
1433
|
content_gap: "content_gap";
|
|
1434
1434
|
style_exception: "style_exception";
|
|
@@ -1461,8 +1461,8 @@ declare const siteBriefingQuery: z.ZodObject<{
|
|
|
1461
1461
|
//#region src/api/schemas/hitl-requests.d.ts
|
|
1462
1462
|
declare const hitlRequestListQuery: z.ZodObject<{
|
|
1463
1463
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1464
|
-
pending: "pending";
|
|
1465
1464
|
approved: "approved";
|
|
1465
|
+
pending: "pending";
|
|
1466
1466
|
rejected: "rejected";
|
|
1467
1467
|
}>>;
|
|
1468
1468
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1495,8 +1495,8 @@ declare const reviewRequestCreateBody: z.ZodObject<{
|
|
|
1495
1495
|
}, z.core.$strip>;
|
|
1496
1496
|
declare const reviewRequestListQuery: z.ZodObject<{
|
|
1497
1497
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1498
|
-
pending: "pending";
|
|
1499
1498
|
approved: "approved";
|
|
1499
|
+
pending: "pending";
|
|
1500
1500
|
rejected: "rejected";
|
|
1501
1501
|
}>>;
|
|
1502
1502
|
collection: z.ZodOptional<z.ZodString>;
|
|
@@ -1544,7 +1544,7 @@ declare const signupCompleteBody: z.ZodObject<{
|
|
|
1544
1544
|
}, z.core.$strip>;
|
|
1545
1545
|
declare const inviteCreateBody: z.ZodObject<{
|
|
1546
1546
|
email: z.ZodString;
|
|
1547
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
1547
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1550
1550
|
token: z.ZodString;
|
|
@@ -1636,11 +1636,11 @@ declare const authMeActionBody: z.ZodObject<{
|
|
|
1636
1636
|
* from `referenceCollection` + `referenceId` (a translation_group id).
|
|
1637
1637
|
*/
|
|
1638
1638
|
declare const menuItemTypeEnum: z.ZodEnum<{
|
|
1639
|
-
collection: "collection";
|
|
1640
|
-
taxonomy: "taxonomy";
|
|
1641
1639
|
custom: "custom";
|
|
1640
|
+
collection: "collection";
|
|
1642
1641
|
page: "page";
|
|
1643
1642
|
post: "post";
|
|
1643
|
+
taxonomy: "taxonomy";
|
|
1644
1644
|
}>;
|
|
1645
1645
|
declare const createMenuBody: z.ZodObject<{
|
|
1646
1646
|
name: z.ZodString;
|
|
@@ -1653,11 +1653,11 @@ declare const updateMenuBody: z.ZodObject<{
|
|
|
1653
1653
|
}, z.core.$strict>;
|
|
1654
1654
|
declare const createMenuItemBody: z.ZodObject<{
|
|
1655
1655
|
type: z.ZodEnum<{
|
|
1656
|
-
collection: "collection";
|
|
1657
|
-
taxonomy: "taxonomy";
|
|
1658
1656
|
custom: "custom";
|
|
1657
|
+
collection: "collection";
|
|
1659
1658
|
page: "page";
|
|
1660
1659
|
post: "post";
|
|
1660
|
+
taxonomy: "taxonomy";
|
|
1661
1661
|
}>;
|
|
1662
1662
|
label: z.ZodString;
|
|
1663
1663
|
referenceCollection: z.ZodOptional<z.ZodString>;
|
|
@@ -2096,15 +2096,15 @@ declare const usersListQuery: z.ZodObject<{
|
|
|
2096
2096
|
declare const userUpdateBody: z.ZodObject<{
|
|
2097
2097
|
name: z.ZodOptional<z.ZodString>;
|
|
2098
2098
|
email: z.ZodOptional<z.ZodString>;
|
|
2099
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
2099
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
2100
2100
|
}, z.core.$strip>;
|
|
2101
2101
|
declare const allowedDomainCreateBody: z.ZodObject<{
|
|
2102
2102
|
domain: z.ZodString;
|
|
2103
|
-
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
2103
|
+
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>;
|
|
2104
2104
|
}, z.core.$strip>;
|
|
2105
2105
|
declare const allowedDomainUpdateBody: z.ZodObject<{
|
|
2106
2106
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2107
|
-
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40
|
|
2107
|
+
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<50 | 10 | 20 | 30 | 40, unknown, z.core.$ZodTypeInternals<50 | 10 | 20 | 30 | 40, unknown>>>;
|
|
2108
2108
|
}, z.core.$strip>;
|
|
2109
2109
|
declare const userSchema: z.ZodObject<{
|
|
2110
2110
|
id: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CGD7YoW6.mjs";
|
|
2
2
|
import { t as validateIdentifier } from "./validate-VPnKoIzW.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-08U88vtS.mjs";
|
|
4
|
+
import { t as BylineRepository } from "./byline-Dvn80pJf.mjs";
|
|
5
5
|
import { n as resolveLocaleChain } from "./resolve-BDWXnk_V.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-yPx_JZSl.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
|
-
import { a as __exportAll } from "./runner-
|
|
1
|
+
import { a as __exportAll } from "./runner-CGD7YoW6.mjs";
|
|
2
2
|
import { n as getI18nConfig } from "./config-CVssduLe.mjs";
|
|
3
|
-
import { t as DinewayValidationError } from "./types-
|
|
4
|
-
import { t as BylineRepository } from "./byline-
|
|
3
|
+
import { t as DinewayValidationError } from "./types-CpJhSIti.mjs";
|
|
4
|
+
import { t as BylineRepository } from "./byline-Dvn80pJf.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/handlers/bylines.ts
|
|
7
7
|
var bylines_exports = /* @__PURE__ */ __exportAll({
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as runMigrations, n as getMigrationStatus, t as getMigrationFingerprint } from "../runner-
|
|
2
|
+
import { i as runMigrations, n as getMigrationStatus, t as getMigrationFingerprint } from "../runner-CGD7YoW6.mjs";
|
|
3
3
|
import { t as createDatabase } from "../connection-DJ3GzHVH.mjs";
|
|
4
4
|
import { t as validateIdentifier } from "../validate-VPnKoIzW.mjs";
|
|
5
5
|
import { l as listTablesLike } from "../dialect-helpers-fk43GbDb.mjs";
|
|
6
6
|
import { n as getI18nConfig, r as isI18nEnabled } from "../config-CVssduLe.mjs";
|
|
7
7
|
import { i as encodeBase64url } from "../base64-F8-DUraK.mjs";
|
|
8
|
-
import "../types-
|
|
9
|
-
import { o as isMissingTableError } from "../loader-
|
|
8
|
+
import "../types-CpJhSIti.mjs";
|
|
9
|
+
import { o as isMissingTableError } from "../loader-08U88vtS.mjs";
|
|
10
10
|
import "../object-cache-D51qOseS.mjs";
|
|
11
11
|
import { n as slugify } from "../slugify-KSsVD_D3.mjs";
|
|
12
12
|
import "../revision-De7OmYVD.mjs";
|
|
13
|
-
import { t as ContentRepository } from "../content-
|
|
14
|
-
import { t as MediaRepository } from "../media-
|
|
15
|
-
import { t as TaxonomyRepository } from "../taxonomy
|
|
13
|
+
import { t as ContentRepository } from "../content-GsliU3xN.mjs";
|
|
14
|
+
import { t as MediaRepository } from "../media-fMI0fkpM.mjs";
|
|
15
|
+
import { t as TaxonomyRepository } from "../taxonomy-Q0dtGa3h.mjs";
|
|
16
16
|
import { t as OptionsRepository } from "../options-1dBRkoCl.mjs";
|
|
17
|
-
import "../redirect-
|
|
17
|
+
import "../redirect-CI5NFP2I.mjs";
|
|
18
18
|
import "../request-cache-DoT2mKBT.mjs";
|
|
19
19
|
import "../byline-registry-CF9nobxT.mjs";
|
|
20
|
-
import "../field-defs-cache-
|
|
21
|
-
import { t as BylineRepository } from "../byline-
|
|
22
|
-
import "../content-refresh-
|
|
23
|
-
import "../fts-manager-
|
|
20
|
+
import "../field-defs-cache-BJL-9Sbz.mjs";
|
|
21
|
+
import { t as BylineRepository } from "../byline-Dvn80pJf.mjs";
|
|
22
|
+
import "../content-refresh-Q60Srx4f.mjs";
|
|
23
|
+
import "../fts-manager-DYyjVJRg.mjs";
|
|
24
24
|
import "../public-discovery-CyDzK1-S.mjs";
|
|
25
|
-
import { n as SchemaRegistry } from "../registry-
|
|
26
|
-
import "../settings-
|
|
27
|
-
import { n as VERSION } from "../version-
|
|
25
|
+
import { n as SchemaRegistry } from "../registry-CtSVFnzD.mjs";
|
|
26
|
+
import "../settings-k3HDxkYk.mjs";
|
|
27
|
+
import { n as VERSION } from "../version-BebwPm_l.mjs";
|
|
28
28
|
import { i as parseEncryptionKeys, n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-MqvM60s_.mjs";
|
|
29
29
|
import { t as IntegrationCredentialStore } from "../store-BtCoeap4.mjs";
|
|
30
30
|
import { a as reconcileManifestAccess, i as pluginManifestSchema } from "../manifest-schema-owbEUmv1.mjs";
|
|
31
31
|
import { n as resolveAndValidateExternalUrl, t as SsrfError } from "../ssrf-D00lPvtF.mjs";
|
|
32
|
-
import { t as validateSeed } from "../validate-
|
|
33
|
-
import { t as applySeed } from "../apply-
|
|
32
|
+
import { t as validateSeed } from "../validate-DvgVQCey.mjs";
|
|
33
|
+
import { t as applySeed } from "../apply-BwNue-z4.mjs";
|
|
34
34
|
import { _ as readForgewayCredentials, a as InvalidForgewayAccountCredentialsError, c as getForgewayDinewayAccount, d as normalizeForgewayEmail, f as readStoredForgewayAccount, g as listForgewayCredentials, h as sendForgewayAccountLoginLink, i as DEFAULT_FORGEWAY_API_BASE_URL, l as normalizeDinewayWebUrl, m as removeStoredForgewayAccount, n as DinewayToolsService, o as completeForgewayAccountLogin, p as refreshForgewayAccountCredentials, r as DEFAULT_DINEWAY_WEB_URL, s as createForgewayAccountClient, t as DinewayToolsError, u as normalizeForgewayApiUrl, v as writeForgewayCredentials } from "../service-BB1n90wh.mjs";
|
|
35
35
|
import { n as output, t as configureOutputMode } from "../output-A4ZfzzA0.mjs";
|
|
36
36
|
import { createHeaderAwareFetch, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
37
37
|
import { t as convertDataForRead } from "../portable-text-U85hOafW.mjs";
|
|
38
|
-
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-
|
|
38
|
+
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-DlGsDQ0a.mjs";
|
|
39
39
|
import { LocalStorage } from "../storage/local.mjs";
|
|
40
|
-
import { r as fileExists$11, t as bundleCommand } from "../bundle-
|
|
40
|
+
import { r as fileExists$11, t as bundleCommand } from "../bundle-BElk5hXQ.mjs";
|
|
41
41
|
import { createRequire } from "node:module";
|
|
42
42
|
import { createHash } from "node:crypto";
|
|
43
43
|
import { sql } from "kysely";
|
|
@@ -3808,7 +3808,7 @@ const devCommand = defineCommand({
|
|
|
3808
3808
|
const remoteUrl = pkg.dineway?.url || process.env.DINEWAY_URL;
|
|
3809
3809
|
if (!remoteUrl) consola.warn("No remote URL configured. Set DINEWAY_URL or dineway.url in package.json");
|
|
3810
3810
|
else try {
|
|
3811
|
-
const { createClientFromArgs } = await import("../client-factory-
|
|
3811
|
+
const { createClientFromArgs } = await import("../client-factory-DlGsDQ0a.mjs").then((n) => n.t);
|
|
3812
3812
|
const client = createClientFromArgs({ url: remoteUrl });
|
|
3813
3813
|
const schema = await client.schemaExport();
|
|
3814
3814
|
const types = await client.schemaTypes();
|
|
@@ -5804,7 +5804,7 @@ const publishCommand = defineCommand({
|
|
|
5804
5804
|
const pluginDir = resolve(args.dir);
|
|
5805
5805
|
try {
|
|
5806
5806
|
const { runCommand } = await import("citty");
|
|
5807
|
-
const { bundleCommand } = await import("../bundle-
|
|
5807
|
+
const { bundleCommand } = await import("../bundle-BElk5hXQ.mjs").then((n) => n.n);
|
|
5808
5808
|
await runCommand(bundleCommand, { rawArgs: ["--dir", pluginDir] });
|
|
5809
5809
|
} catch {
|
|
5810
5810
|
consola.error("Build failed");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../types-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../runner-
|
|
4
|
-
import "../index-
|
|
1
|
+
import "../types-BquoJbUs.mjs";
|
|
2
|
+
import "../types-B3jx4k7V.mjs";
|
|
3
|
+
import "../runner-Dp8Tt7SJ.mjs";
|
|
4
|
+
import "../index-QJMl0Apm.mjs";
|
|
5
5
|
import "../types-BdsNqnHA.mjs";
|
|
6
|
-
import "../public-url-
|
|
7
|
-
import "../validate-
|
|
8
|
-
import "../byline-fields-
|
|
6
|
+
import "../public-url-Bn-FXyxd.mjs";
|
|
7
|
+
import "../validate-B244Ky-3.mjs";
|
|
8
|
+
import "../byline-fields-Cvl12BTB.mjs";
|
|
9
9
|
import "../types-ZdWRfUsC.mjs";
|
|
10
10
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
11
11
|
import { SubCommandsDef } from "citty";
|
package/dist/cli/plugin-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as output, t as configureOutputMode } from "../output-A4ZfzzA0.mjs";
|
|
2
|
-
import { n as connectionArgs, r as createClientFromArgs } from "../client-factory-
|
|
2
|
+
import { n as connectionArgs, r as createClientFromArgs } from "../client-factory-DlGsDQ0a.mjs";
|
|
3
3
|
|
|
4
4
|
export { configureOutputMode, connectionArgs, createClientFromArgs, output };
|