dineway 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +1 -1
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +3 -3
- package/dist/{api-BZ_oWfPM.mjs → api-C3-s1R27.mjs} +1 -1
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +2 -2
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +10 -10
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +2 -2
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +2 -2
- package/dist/astro/routes/api/admin/briefing.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +2 -2
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +2 -2
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +2 -2
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/admin/bylines/index.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/bulk.mjs +2 -2
- package/dist/astro/routes/api/admin/comments/index.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +3 -3
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +5 -5
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +5 -5
- package/dist/astro/routes/api/admin/context/diff.mjs +5 -5
- package/dist/astro/routes/api/admin/context/index.mjs +5 -5
- package/dist/astro/routes/api/admin/context/stale.mjs +5 -5
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +6 -6
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +6 -6
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/updates.mjs +3 -3
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/index.mjs +4 -4
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/complete.mjs +4 -4
- package/dist/astro/routes/api/auth/invite/index.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/register-options.mjs +3 -3
- package/dist/astro/routes/api/auth/magic-link/send.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +2 -2
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +4 -4
- package/dist/astro/routes/api/auth/passkey/verify.mjs +4 -4
- package/dist/astro/routes/api/auth/signup/complete.mjs +4 -4
- package/dist/astro/routes/api/auth/signup/request.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +14 -7
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.d.mts +7 -0
- package/dist/astro/routes/api/content/_collection_/_id_/release-readiness.mjs +43 -0
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/index.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/trash.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +3 -3
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/media.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +5 -5
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +46 -8
- package/dist/astro/routes/api/media/_id_/confirm.mjs +2 -2
- package/dist/astro/routes/api/media/_id_.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +2 -2
- package/dist/astro/routes/api/media.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/items.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_/translations.mjs +5 -5
- package/dist/astro/routes/api/menus/_name_.mjs +5 -5
- package/dist/astro/routes/api/menus/index.mjs +5 -5
- package/dist/astro/routes/api/openapi.json.mjs +24 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +2 -2
- package/dist/astro/routes/api/redirects/404s/summary.mjs +2 -2
- package/dist/astro/routes/api/redirects/_id_.mjs +5 -5
- package/dist/astro/routes/api/redirects/index.mjs +5 -5
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +3 -3
- package/dist/astro/routes/api/schema/collections/index.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +3 -3
- package/dist/astro/routes/api/schema/orphans/index.mjs +3 -3
- package/dist/astro/routes/api/search/enable.mjs +2 -2
- package/dist/astro/routes/api/search/index.mjs +2 -2
- package/dist/astro/routes/api/search/rebuild.mjs +2 -2
- package/dist/astro/routes/api/search/suggest.mjs +2 -2
- package/dist/astro/routes/api/sections/_slug_.mjs +5 -5
- package/dist/astro/routes/api/sections/index.mjs +5 -5
- package/dist/astro/routes/api/settings.mjs +5 -5
- package/dist/astro/routes/api/setup/admin-verify.mjs +5 -5
- package/dist/astro/routes/api/setup/admin.mjs +3 -3
- package/dist/astro/routes/api/setup/index.mjs +3 -3
- 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 +5 -5
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +5 -5
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +5 -5
- package/dist/astro/routes/api/taxonomies/index.mjs +5 -5
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +5 -5
- package/dist/astro/routes/api/widget-areas/_name_.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/index.mjs +5 -5
- package/dist/astro/types.d.mts +3 -3
- package/dist/{byline-fields-yT4herdN.mjs → byline-fields-Co_MIUWm.mjs} +1 -1
- package/dist/{byline-fields-CXBvHvRM.d.mts → byline-fields-bnvqaEuF.d.mts} +210 -29
- package/dist/cli/index.mjs +54 -6
- package/dist/cli/plugin-kit.d.mts +8 -0
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +22 -4
- package/dist/client/index.mjs +14 -2
- package/dist/{context-AJNd0tcG.mjs → context-m06dNjS1.mjs} +1 -1
- package/dist/{hitl-requests-Bee8Cjj8.mjs → hitl-requests-D8pHHlSA.mjs} +1 -1
- package/dist/{hitl-route-helpers-DtHaKGgm.mjs → hitl-route-helpers-BIzP0Opq.mjs} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +6 -6
- package/dist/{jsonld-BFdufCos.d.mts → jsonld-CG-hNWNO.d.mts} +1 -1
- package/dist/{mcp-reviewed-executor-DnlF7mIL.mjs → mcp-reviewed-executor-DM53lZ9z.mjs} +2 -2
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/page/index.d.mts +3 -3
- package/dist/plugin-utils.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{public-url-BVBNJJkd.d.mts → public-url-Cqi7Ds4u.d.mts} +1 -1
- package/dist/{publication-authorization-BVQ5rCAF.mjs → publication-authorization-BYieJR6-.mjs} +145 -3
- package/dist/{redirects-E_B6hvuz.mjs → redirects-CALMB6T5.mjs} +70 -1
- package/dist/runtime.d.mts +3 -3
- package/dist/{site-context-CzaEGizi.mjs → site-context-Bz8hdcZH.mjs} +1 -1
- package/dist/{types-CQnfHvPQ.d.mts → types-C-3YPdr-.d.mts} +166 -108
- package/dist/ui/server-runtime.d.mts +5 -5
- package/dist/version-D9xoSUza.mjs +6 -0
- package/package.json +3 -3
- package/dist/version-EHBE9US2.mjs +0 -6
- /package/dist/{allowed-origins-oVgzR3X5.mjs → allowed-origins-VLgv2PL1.mjs} +0 -0
- /package/dist/{challenge-store-DtdQHXf5.mjs → challenge-store-BMkL2kmt.mjs} +0 -0
- /package/dist/{mode-DqpBaEOy.mjs → mode-DPC7segX.mjs} +0 -0
- /package/dist/{portable-text-Ehqj3I_y.d.mts → portable-text-BYUu-wtj.d.mts} +0 -0
- /package/dist/{provider-loader-BIbIiz0P.d.mts → provider-loader-Db-pJFu3.d.mts} +0 -0
- /package/dist/{session-user-CYjNeJoD.mjs → session-user-BwliEFp0.mjs} +0 -0
- /package/dist/{setup-complete-DcAQzVsB.mjs → setup-complete-PvF8I7Oh.mjs} +0 -0
- /package/dist/{transport-BZ3aqdu7.d.mts → transport-CXkC1F2Z.d.mts} +0 -0
|
@@ -8,8 +8,8 @@ import "../../../../media-B4m-cnmj.mjs";
|
|
|
8
8
|
import "../../../../options-DQPTH5n0.mjs";
|
|
9
9
|
import "../../../../site-activity-BVK40wCy.mjs";
|
|
10
10
|
import "../../../../review-requests-CObSuTYU.mjs";
|
|
11
|
-
import "../../../../publication-authorization-
|
|
12
|
-
import { g as RiskPolicyEvaluator, o as WidgetHitlPayloadBuilder } from "../../../../site-context-
|
|
11
|
+
import "../../../../publication-authorization-BYieJR6-.mjs";
|
|
12
|
+
import { g as RiskPolicyEvaluator, o as WidgetHitlPayloadBuilder } from "../../../../site-context-Bz8hdcZH.mjs";
|
|
13
13
|
import "../../../../request-cache-CBFjCwSt.mjs";
|
|
14
14
|
import "../../../../briefing-GFhLTLJo.mjs";
|
|
15
15
|
import "../../../../context-types-eBuMDAg-.mjs";
|
|
@@ -28,7 +28,7 @@ import "../../../../utils-B7gemXz5.mjs";
|
|
|
28
28
|
import "../../../../search-BXEQepxL.mjs";
|
|
29
29
|
import { i as rowToWidget } from "../../../../widgets-DyGcotPM.mjs";
|
|
30
30
|
import { n as requirePerm } from "../../../../authorize-D6MkRtPw.mjs";
|
|
31
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-
|
|
31
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-BIzP0Opq.mjs";
|
|
32
32
|
import { z } from "zod";
|
|
33
33
|
|
|
34
34
|
//#region src/astro/routes/api/widget-areas/[name].ts
|
|
@@ -8,8 +8,8 @@ import "../../../../media-B4m-cnmj.mjs";
|
|
|
8
8
|
import "../../../../options-DQPTH5n0.mjs";
|
|
9
9
|
import "../../../../site-activity-BVK40wCy.mjs";
|
|
10
10
|
import "../../../../review-requests-CObSuTYU.mjs";
|
|
11
|
-
import "../../../../publication-authorization-
|
|
12
|
-
import { g as RiskPolicyEvaluator, o as WidgetHitlPayloadBuilder } from "../../../../site-context-
|
|
11
|
+
import "../../../../publication-authorization-BYieJR6-.mjs";
|
|
12
|
+
import { g as RiskPolicyEvaluator, o as WidgetHitlPayloadBuilder } from "../../../../site-context-Bz8hdcZH.mjs";
|
|
13
13
|
import "../../../../request-cache-CBFjCwSt.mjs";
|
|
14
14
|
import "../../../../briefing-GFhLTLJo.mjs";
|
|
15
15
|
import "../../../../context-types-eBuMDAg-.mjs";
|
|
@@ -22,8 +22,8 @@ import "../../../../zod-generator-Cr3SiHsc.mjs";
|
|
|
22
22
|
import "../../../../schema-Dk_N31V4.mjs";
|
|
23
23
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-BW9f_ynq.mjs";
|
|
24
24
|
import { n as parseBody, t as isParseError } from "../../../../parse-B-Y84oJl.mjs";
|
|
25
|
-
import { p as createWidgetAreaBody } from "../../../../redirects-
|
|
26
|
-
import "../../../../byline-fields-
|
|
25
|
+
import { p as createWidgetAreaBody } from "../../../../redirects-CALMB6T5.mjs";
|
|
26
|
+
import "../../../../byline-fields-Co_MIUWm.mjs";
|
|
27
27
|
import "../../../../status-BN40hMpr.mjs";
|
|
28
28
|
import "../../../../api/schemas/index.mjs";
|
|
29
29
|
import "../../../../activity-BDMlkpYY.mjs";
|
|
@@ -32,7 +32,7 @@ import "../../../../utils-B7gemXz5.mjs";
|
|
|
32
32
|
import "../../../../search-BXEQepxL.mjs";
|
|
33
33
|
import { i as rowToWidget } from "../../../../widgets-DyGcotPM.mjs";
|
|
34
34
|
import { n as requirePerm } from "../../../../authorize-D6MkRtPw.mjs";
|
|
35
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-
|
|
35
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-BIzP0Opq.mjs";
|
|
36
36
|
import { ulid } from "ulidx";
|
|
37
37
|
import { z } from "zod";
|
|
38
38
|
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ContentItem } from "../types-GtwhHAg8.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Cs as Element, D as PageMetadataContribution, Ja as EmailPipeline, Ka as SandboxedPluginEntry, M as PluginActor, Na as MediaListResponse, Ns as ContentListResponse, Pa as MediaResponse, Ps as ContentResponse, Ya as HookPipeline, ao as PluginMcpRegistry, at as PluginRouteApiTokenPolicy, ds as MediaItem, gt as PublicPageContext, jt as PublicationAuthorizationService, ot as PluginRouteAuthorization, so as DinewayConfig, to as SandboxRunner, v as HttpAccess, vt as ResolvedPlugin, w as PageFragmentContribution } from "../types-C-3YPdr-.mjs";
|
|
3
3
|
import { t as Database } from "../types-BFeoAIHl.mjs";
|
|
4
4
|
import { f as MediaProvider, p as MediaProviderCapabilities } from "../placeholder-C6ZjZcmJ.mjs";
|
|
5
5
|
import "../runner-Bcy5w0vj.mjs";
|
|
@@ -7,7 +7,7 @@ import "../index-DybFmYtZ.mjs";
|
|
|
7
7
|
import "../types-S9VIopdY.mjs";
|
|
8
8
|
import { d as Storage } from "../types-YxFz4lDr.mjs";
|
|
9
9
|
import "../validate-YiX3rly5.mjs";
|
|
10
|
-
import "../byline-fields-
|
|
10
|
+
import "../byline-fields-bnvqaEuF.mjs";
|
|
11
11
|
import "../types-BsTXSvKG.mjs";
|
|
12
12
|
import "../index.mjs";
|
|
13
13
|
import { Kysely } from "kysely";
|
|
@@ -253,7 +253,7 @@ interface DinewayHandlers {
|
|
|
253
253
|
}) => Promise<HandlerResponse>;
|
|
254
254
|
handleContentUnpublish: (collection: string, id: string) => Promise<HandlerResponse>;
|
|
255
255
|
handleContentSchedule: (collection: string, id: string, scheduledAt: string) => Promise<HandlerResponse>;
|
|
256
|
-
createPublicationAuthorizationService: () => Pick<PublicationAuthorizationService, "publishAuthorizedContent" | "publishAuthorizedDueContent" | "scheduleAuthorizedContent" | "unscheduleAuthorizedContent">;
|
|
256
|
+
createPublicationAuthorizationService: () => Pick<PublicationAuthorizationService, "checkPublicationReadiness" | "publishAuthorizedContent" | "publishAuthorizedDueContent" | "scheduleAuthorizedContent" | "unscheduleAuthorizedContent">;
|
|
257
257
|
handleContentUnschedule: (collection: string, id: string) => Promise<HandlerResponse>;
|
|
258
258
|
handleContentCountScheduled: (collection: string) => Promise<HandlerResponse>;
|
|
259
259
|
handleContentDiscardDraft: (collection: string, id: string) => Promise<HandlerResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-B7TDDFMG.mjs";
|
|
2
2
|
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-eBuMDAg-.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Ln as roleLevel, Nn as httpUrl } from "./redirects-CALMB6T5.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/api/schemas/context.ts
|
|
@@ -128,6 +128,83 @@ declare const contentPublishBody: z.ZodObject<{
|
|
|
128
128
|
reviewRequestId: z.ZodString;
|
|
129
129
|
releaseAuthorizationId: z.ZodOptional<z.ZodString>;
|
|
130
130
|
}, z.core.$strip>;
|
|
131
|
+
declare const contentPublicationReceiptSchema: z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
status: z.ZodEnum<{
|
|
134
|
+
published: "published";
|
|
135
|
+
scheduled: "scheduled";
|
|
136
|
+
}>;
|
|
137
|
+
collection: z.ZodString;
|
|
138
|
+
contentId: z.ZodString;
|
|
139
|
+
liveRevisionId: z.ZodNullable<z.ZodString>;
|
|
140
|
+
draftRevisionId: z.ZodNullable<z.ZodString>;
|
|
141
|
+
editorialReviewRequestId: z.ZodString;
|
|
142
|
+
releaseHitlRequestId: z.ZodNullable<z.ZodString>;
|
|
143
|
+
actionHash: z.ZodString;
|
|
144
|
+
policyContributions: z.ZodArray<z.ZodObject<{
|
|
145
|
+
providerId: z.ZodString;
|
|
146
|
+
policyVersion: z.ZodString;
|
|
147
|
+
fingerprint: z.ZodString;
|
|
148
|
+
reservationId: z.ZodNullable<z.ZodString>;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
authorizedByActorType: z.ZodEnum<{
|
|
151
|
+
user: "user";
|
|
152
|
+
api_token: "api_token";
|
|
153
|
+
system: "system";
|
|
154
|
+
}>;
|
|
155
|
+
authorizedByActorId: z.ZodString;
|
|
156
|
+
createdAt: z.ZodString;
|
|
157
|
+
consumedAt: z.ZodNullable<z.ZodString>;
|
|
158
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
159
|
+
scheduledAt: z.ZodNullable<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
declare const contentReleaseReadinessQuery: z.ZodObject<{
|
|
162
|
+
operation: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
publish: "publish";
|
|
164
|
+
schedule: "schedule";
|
|
165
|
+
}>>;
|
|
166
|
+
reviewRequestId: z.ZodOptional<z.ZodString>;
|
|
167
|
+
releaseAuthorizationId: z.ZodOptional<z.ZodString>;
|
|
168
|
+
publishedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
169
|
+
scheduledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
170
|
+
locale: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
declare const contentReleaseReadinessResponseSchema: z.ZodObject<{
|
|
173
|
+
ready: z.ZodBoolean;
|
|
174
|
+
generatedAt: z.ZodString;
|
|
175
|
+
nextAction: z.ZodEnum<{
|
|
176
|
+
publish: "publish";
|
|
177
|
+
schedule: "schedule";
|
|
178
|
+
fix_release_blockers: "fix_release_blockers";
|
|
179
|
+
}>;
|
|
180
|
+
target: z.ZodNullable<z.ZodObject<{
|
|
181
|
+
collection: z.ZodString;
|
|
182
|
+
entryId: z.ZodString;
|
|
183
|
+
scope: z.ZodString;
|
|
184
|
+
operation: z.ZodEnum<{
|
|
185
|
+
publish: "publish";
|
|
186
|
+
schedule: "schedule";
|
|
187
|
+
}>;
|
|
188
|
+
liveRevisionId: z.ZodNullable<z.ZodString>;
|
|
189
|
+
draftRevisionId: z.ZodNullable<z.ZodString>;
|
|
190
|
+
reviewedRev: z.ZodString;
|
|
191
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
192
|
+
scheduledAt: z.ZodNullable<z.ZodString>;
|
|
193
|
+
siteTimezone: z.ZodString;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
196
|
+
code: z.ZodString;
|
|
197
|
+
source: z.ZodEnum<{
|
|
198
|
+
content: "content";
|
|
199
|
+
editorial_review: "editorial_review";
|
|
200
|
+
release_hitl: "release_hitl";
|
|
201
|
+
authorization: "authorization";
|
|
202
|
+
policy: "policy";
|
|
203
|
+
}>;
|
|
204
|
+
message: z.ZodString;
|
|
205
|
+
policyId: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
}, z.core.$strip>;
|
|
131
208
|
declare const contentPreviewUrlBody: z.ZodObject<{
|
|
132
209
|
expiresIn: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
133
210
|
pathPattern: z.ZodOptional<z.ZodString>;
|
|
@@ -294,6 +371,110 @@ declare const contentResponseSchema: z.ZodObject<{
|
|
|
294
371
|
}, z.core.$strip>;
|
|
295
372
|
_rev: z.ZodOptional<z.ZodString>;
|
|
296
373
|
}, z.core.$strip>;
|
|
374
|
+
declare const contentPublishResponseSchema: z.ZodObject<{
|
|
375
|
+
item: z.ZodObject<{
|
|
376
|
+
id: z.ZodString;
|
|
377
|
+
type: z.ZodString;
|
|
378
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
379
|
+
status: z.ZodString;
|
|
380
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
381
|
+
authorId: z.ZodNullable<z.ZodString>;
|
|
382
|
+
primaryBylineId: z.ZodNullable<z.ZodString>;
|
|
383
|
+
byline: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
slug: z.ZodString;
|
|
386
|
+
displayName: z.ZodString;
|
|
387
|
+
bio: z.ZodNullable<z.ZodString>;
|
|
388
|
+
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
389
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
391
|
+
avatarBlurhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
392
|
+
avatarDominantColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
394
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
395
|
+
isGuest: z.ZodBoolean;
|
|
396
|
+
createdAt: z.ZodString;
|
|
397
|
+
updatedAt: z.ZodString;
|
|
398
|
+
locale: z.ZodString;
|
|
399
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
400
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
401
|
+
}, z.core.$strip>>>;
|
|
402
|
+
bylines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
403
|
+
byline: z.ZodObject<{
|
|
404
|
+
id: z.ZodString;
|
|
405
|
+
slug: z.ZodString;
|
|
406
|
+
displayName: z.ZodString;
|
|
407
|
+
bio: z.ZodNullable<z.ZodString>;
|
|
408
|
+
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
409
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
|
+
avatarBlurhash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
412
|
+
avatarDominantColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
+
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
414
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
415
|
+
isGuest: z.ZodBoolean;
|
|
416
|
+
createdAt: z.ZodString;
|
|
417
|
+
updatedAt: z.ZodString;
|
|
418
|
+
locale: z.ZodString;
|
|
419
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
420
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
sortOrder: z.ZodNumber;
|
|
423
|
+
roleLabel: z.ZodNullable<z.ZodString>;
|
|
424
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
425
|
+
explicit: "explicit";
|
|
426
|
+
inferred: "inferred";
|
|
427
|
+
}>>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
createdAt: z.ZodString;
|
|
430
|
+
updatedAt: z.ZodString;
|
|
431
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
432
|
+
scheduledAt: z.ZodNullable<z.ZodString>;
|
|
433
|
+
liveRevisionId: z.ZodNullable<z.ZodString>;
|
|
434
|
+
draftRevisionId: z.ZodNullable<z.ZodString>;
|
|
435
|
+
version: z.ZodNumber;
|
|
436
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
437
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
438
|
+
seo: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
title: z.ZodNullable<z.ZodString>;
|
|
440
|
+
description: z.ZodNullable<z.ZodString>;
|
|
441
|
+
image: z.ZodNullable<z.ZodString>;
|
|
442
|
+
canonical: z.ZodNullable<z.ZodString>;
|
|
443
|
+
noIndex: z.ZodBoolean;
|
|
444
|
+
}, z.core.$strip>>;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
_rev: z.ZodOptional<z.ZodString>;
|
|
447
|
+
publicationReceipt: z.ZodObject<{
|
|
448
|
+
id: z.ZodString;
|
|
449
|
+
status: z.ZodEnum<{
|
|
450
|
+
published: "published";
|
|
451
|
+
scheduled: "scheduled";
|
|
452
|
+
}>;
|
|
453
|
+
collection: z.ZodString;
|
|
454
|
+
contentId: z.ZodString;
|
|
455
|
+
liveRevisionId: z.ZodNullable<z.ZodString>;
|
|
456
|
+
draftRevisionId: z.ZodNullable<z.ZodString>;
|
|
457
|
+
editorialReviewRequestId: z.ZodString;
|
|
458
|
+
releaseHitlRequestId: z.ZodNullable<z.ZodString>;
|
|
459
|
+
actionHash: z.ZodString;
|
|
460
|
+
policyContributions: z.ZodArray<z.ZodObject<{
|
|
461
|
+
providerId: z.ZodString;
|
|
462
|
+
policyVersion: z.ZodString;
|
|
463
|
+
fingerprint: z.ZodString;
|
|
464
|
+
reservationId: z.ZodNullable<z.ZodString>;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
authorizedByActorType: z.ZodEnum<{
|
|
467
|
+
user: "user";
|
|
468
|
+
api_token: "api_token";
|
|
469
|
+
system: "system";
|
|
470
|
+
}>;
|
|
471
|
+
authorizedByActorId: z.ZodString;
|
|
472
|
+
createdAt: z.ZodString;
|
|
473
|
+
consumedAt: z.ZodNullable<z.ZodString>;
|
|
474
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
475
|
+
scheduledAt: z.ZodNullable<z.ZodString>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
}, z.core.$strip>;
|
|
297
478
|
/** Response for content list endpoints */
|
|
298
479
|
declare const contentListResponseSchema: z.ZodObject<{
|
|
299
480
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -628,17 +809,17 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
628
809
|
string: "string";
|
|
629
810
|
number: "number";
|
|
630
811
|
boolean: "boolean";
|
|
631
|
-
file: "file";
|
|
632
812
|
json: "json";
|
|
633
813
|
url: "url";
|
|
814
|
+
file: "file";
|
|
634
815
|
slug: "slug";
|
|
635
|
-
image: "image";
|
|
636
|
-
datetime: "datetime";
|
|
637
816
|
text: "text";
|
|
638
817
|
integer: "integer";
|
|
818
|
+
datetime: "datetime";
|
|
639
819
|
select: "select";
|
|
640
820
|
multiSelect: "multiSelect";
|
|
641
821
|
portableText: "portableText";
|
|
822
|
+
image: "image";
|
|
642
823
|
reference: "reference";
|
|
643
824
|
repeater: "repeater";
|
|
644
825
|
}>;
|
|
@@ -660,11 +841,11 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
660
841
|
number: "number";
|
|
661
842
|
boolean: "boolean";
|
|
662
843
|
url: "url";
|
|
663
|
-
image: "image";
|
|
664
|
-
datetime: "datetime";
|
|
665
844
|
text: "text";
|
|
666
845
|
integer: "integer";
|
|
846
|
+
datetime: "datetime";
|
|
667
847
|
select: "select";
|
|
848
|
+
image: "image";
|
|
668
849
|
}>;
|
|
669
850
|
label: z.ZodString;
|
|
670
851
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -686,17 +867,17 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
686
867
|
string: "string";
|
|
687
868
|
number: "number";
|
|
688
869
|
boolean: "boolean";
|
|
689
|
-
file: "file";
|
|
690
870
|
json: "json";
|
|
691
871
|
url: "url";
|
|
872
|
+
file: "file";
|
|
692
873
|
slug: "slug";
|
|
693
|
-
image: "image";
|
|
694
|
-
datetime: "datetime";
|
|
695
874
|
text: "text";
|
|
696
875
|
integer: "integer";
|
|
876
|
+
datetime: "datetime";
|
|
697
877
|
select: "select";
|
|
698
878
|
multiSelect: "multiSelect";
|
|
699
879
|
portableText: "portableText";
|
|
880
|
+
image: "image";
|
|
700
881
|
reference: "reference";
|
|
701
882
|
repeater: "repeater";
|
|
702
883
|
}>>;
|
|
@@ -718,11 +899,11 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
718
899
|
number: "number";
|
|
719
900
|
boolean: "boolean";
|
|
720
901
|
url: "url";
|
|
721
|
-
image: "image";
|
|
722
|
-
datetime: "datetime";
|
|
723
902
|
text: "text";
|
|
724
903
|
integer: "integer";
|
|
904
|
+
datetime: "datetime";
|
|
725
905
|
select: "select";
|
|
906
|
+
image: "image";
|
|
726
907
|
}>;
|
|
727
908
|
label: z.ZodString;
|
|
728
909
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -775,17 +956,17 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
775
956
|
string: "string";
|
|
776
957
|
number: "number";
|
|
777
958
|
boolean: "boolean";
|
|
778
|
-
file: "file";
|
|
779
959
|
json: "json";
|
|
780
960
|
url: "url";
|
|
961
|
+
file: "file";
|
|
781
962
|
slug: "slug";
|
|
782
|
-
image: "image";
|
|
783
|
-
datetime: "datetime";
|
|
784
963
|
text: "text";
|
|
785
964
|
integer: "integer";
|
|
965
|
+
datetime: "datetime";
|
|
786
966
|
select: "select";
|
|
787
967
|
multiSelect: "multiSelect";
|
|
788
968
|
portableText: "portableText";
|
|
969
|
+
image: "image";
|
|
789
970
|
reference: "reference";
|
|
790
971
|
repeater: "repeater";
|
|
791
972
|
}>;
|
|
@@ -840,17 +1021,17 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
840
1021
|
string: "string";
|
|
841
1022
|
number: "number";
|
|
842
1023
|
boolean: "boolean";
|
|
843
|
-
file: "file";
|
|
844
1024
|
json: "json";
|
|
845
1025
|
url: "url";
|
|
1026
|
+
file: "file";
|
|
846
1027
|
slug: "slug";
|
|
847
|
-
image: "image";
|
|
848
|
-
datetime: "datetime";
|
|
849
1028
|
text: "text";
|
|
850
1029
|
integer: "integer";
|
|
1030
|
+
datetime: "datetime";
|
|
851
1031
|
select: "select";
|
|
852
1032
|
multiSelect: "multiSelect";
|
|
853
1033
|
portableText: "portableText";
|
|
1034
|
+
image: "image";
|
|
854
1035
|
reference: "reference";
|
|
855
1036
|
repeater: "repeater";
|
|
856
1037
|
}>;
|
|
@@ -894,17 +1075,17 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
894
1075
|
string: "string";
|
|
895
1076
|
number: "number";
|
|
896
1077
|
boolean: "boolean";
|
|
897
|
-
file: "file";
|
|
898
1078
|
json: "json";
|
|
899
1079
|
url: "url";
|
|
1080
|
+
file: "file";
|
|
900
1081
|
slug: "slug";
|
|
901
|
-
image: "image";
|
|
902
|
-
datetime: "datetime";
|
|
903
1082
|
text: "text";
|
|
904
1083
|
integer: "integer";
|
|
1084
|
+
datetime: "datetime";
|
|
905
1085
|
select: "select";
|
|
906
1086
|
multiSelect: "multiSelect";
|
|
907
1087
|
portableText: "portableText";
|
|
1088
|
+
image: "image";
|
|
908
1089
|
reference: "reference";
|
|
909
1090
|
repeater: "repeater";
|
|
910
1091
|
}>;
|
|
@@ -931,17 +1112,17 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
931
1112
|
string: "string";
|
|
932
1113
|
number: "number";
|
|
933
1114
|
boolean: "boolean";
|
|
934
|
-
file: "file";
|
|
935
1115
|
json: "json";
|
|
936
1116
|
url: "url";
|
|
1117
|
+
file: "file";
|
|
937
1118
|
slug: "slug";
|
|
938
|
-
image: "image";
|
|
939
|
-
datetime: "datetime";
|
|
940
1119
|
text: "text";
|
|
941
1120
|
integer: "integer";
|
|
1121
|
+
datetime: "datetime";
|
|
942
1122
|
select: "select";
|
|
943
1123
|
multiSelect: "multiSelect";
|
|
944
1124
|
portableText: "portableText";
|
|
1125
|
+
image: "image";
|
|
945
1126
|
reference: "reference";
|
|
946
1127
|
repeater: "repeater";
|
|
947
1128
|
}>;
|
|
@@ -1120,13 +1301,13 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1120
1301
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1121
1302
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1122
1303
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1123
1306
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1124
1307
|
true: "true";
|
|
1125
1308
|
false: "false";
|
|
1126
1309
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1127
|
-
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1128
1310
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1129
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1130
1311
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1131
1312
|
user: "user";
|
|
1132
1313
|
api_token: "api_token";
|
|
@@ -1147,6 +1328,7 @@ declare const contextEntryDiffQuery: z.ZodObject<{
|
|
|
1147
1328
|
declare const contextEntryCreateBody: z.ZodObject<{
|
|
1148
1329
|
scope: z.ZodString;
|
|
1149
1330
|
contextType: z.ZodEnum<{
|
|
1331
|
+
decision: "decision";
|
|
1150
1332
|
brand_voice: "brand_voice";
|
|
1151
1333
|
seo_strategy: "seo_strategy";
|
|
1152
1334
|
audience: "audience";
|
|
@@ -1156,7 +1338,6 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1156
1338
|
migration_note: "migration_note";
|
|
1157
1339
|
plugin_note: "plugin_note";
|
|
1158
1340
|
agent_reasoning: "agent_reasoning";
|
|
1159
|
-
decision: "decision";
|
|
1160
1341
|
risk: "risk";
|
|
1161
1342
|
content_gap: "content_gap";
|
|
1162
1343
|
style_exception: "style_exception";
|
|
@@ -1171,6 +1352,7 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1171
1352
|
declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
1172
1353
|
scope: z.ZodOptional<z.ZodString>;
|
|
1173
1354
|
contextType: z.ZodOptional<z.ZodEnum<{
|
|
1355
|
+
decision: "decision";
|
|
1174
1356
|
brand_voice: "brand_voice";
|
|
1175
1357
|
seo_strategy: "seo_strategy";
|
|
1176
1358
|
audience: "audience";
|
|
@@ -1180,7 +1362,6 @@ declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
|
1180
1362
|
migration_note: "migration_note";
|
|
1181
1363
|
plugin_note: "plugin_note";
|
|
1182
1364
|
agent_reasoning: "agent_reasoning";
|
|
1183
|
-
decision: "decision";
|
|
1184
1365
|
risk: "risk";
|
|
1185
1366
|
content_gap: "content_gap";
|
|
1186
1367
|
style_exception: "style_exception";
|
|
@@ -1388,9 +1569,9 @@ declare const authMeActionBody: z.ZodObject<{
|
|
|
1388
1569
|
* from `referenceCollection` + `referenceId` (a translation_group id).
|
|
1389
1570
|
*/
|
|
1390
1571
|
declare const menuItemTypeEnum: z.ZodEnum<{
|
|
1391
|
-
custom: "custom";
|
|
1392
1572
|
collection: "collection";
|
|
1393
1573
|
taxonomy: "taxonomy";
|
|
1574
|
+
custom: "custom";
|
|
1394
1575
|
page: "page";
|
|
1395
1576
|
post: "post";
|
|
1396
1577
|
}>;
|
|
@@ -1405,9 +1586,9 @@ declare const updateMenuBody: z.ZodObject<{
|
|
|
1405
1586
|
}, z.core.$strict>;
|
|
1406
1587
|
declare const createMenuItemBody: z.ZodObject<{
|
|
1407
1588
|
type: z.ZodEnum<{
|
|
1408
|
-
custom: "custom";
|
|
1409
1589
|
collection: "collection";
|
|
1410
1590
|
taxonomy: "taxonomy";
|
|
1591
|
+
custom: "custom";
|
|
1411
1592
|
page: "page";
|
|
1412
1593
|
post: "post";
|
|
1413
1594
|
}>;
|
|
@@ -2299,4 +2480,4 @@ declare const bylineFieldUsageResponseSchema: z.ZodObject<{
|
|
|
2299
2480
|
totalAffectedRows: z.ZodNumber;
|
|
2300
2481
|
}, z.core.$strip>;
|
|
2301
2482
|
//#endregion
|
|
2302
|
-
export { settingsUpdateBody as $,
|
|
2483
|
+
export { settingsUpdateBody as $, contentResponseSchema as $n, adminCommentListResponseSchema as $t, widgetAreaSchema as A, mediaConfirmResponseSchema as An, inviteCompleteBody as At, usersListQuery as B, contentAuthorSchema as Bn, signupRequestBody as Bt, redirectSchema as C, orphanedTableSchema as Cn, menuSchema as Ct, createWidgetBody as D, DEFAULT_MAX_UPLOAD_SIZE as Dn, updateMenuBody as Dt, createWidgetAreaBody as E, updateFieldBody as En, reorderMenuItemsBody as Et, allowedDomainUpdateBody as F, mediaProviderListQuery as Fn, passkeyRegisterOptionsBody as Ft, wpPrepareBody as G, contentListQuery as Gn, hitlRequestResolveBody as Gt, wpMediaImportBody as H, contentCompareResponseSchema as Hn, reviewRequestListQuery as Ht, userDetailSchema as I, mediaResponseSchema as In, passkeyRegisterVerifyBody as It, searchQuery as J, contentPublicationReceiptSchema as Jn, contextEntryDiffQuery as Jt, wpRewriteUrlsBody as K, contentListResponseSchema as Kn, siteBriefingQuery as Kt, userListResponseSchema as L, mediaUpdateBody as Ln, passkeyRenameBody as Lt, widgetAreaWithWidgetsSchema as M, mediaItemSchema as Mn, inviteRegisterOptionsBody as Mt, widgetSchema as N, mediaListQuery as Nn, magicLinkSendBody as Nt, reorderWidgetsBody as O, formatFileSize as On, updateMenuItemBody as Ot, allowedDomainCreateBody as P, mediaListResponseSchema as Pn, passkeyOptionsBody as Pt, searchSuggestQuery as Q, contentReleaseReadinessResponseSchema as Qn, contextEntrySupersedeBody as Qt, userSchema as R, mediaUploadUrlBody as Rn, passkeyVerifyBody as Rt, redirectListResponseSchema as S, orphanedTableListResponseSchema as Sn, menuListItemSchema as St, updateRedirectBody as T, updateCollectionBody as Tn, menuWithItemsSchema as Tt, wpPluginAnalyzeBody as U, contentCreateBody as Un, reviewRequestResolveBody as Ut, importProbeBody as V, contentAuthorsResponseSchema as Vn, reviewRequestCreateBody as Vt, wpPluginExecuteBody as W, contentItemSchema as Wn, hitlRequestListQuery as Wt, searchResponseSchema as X, contentPublishResponseSchema as Xn, contextEntryReviewBody as Xt, searchRebuildBody as Y, contentPublishBody as Yn, contextEntryListQuery as Yt, searchResultSchema as Z, contentReleaseReadinessQuery as Zn, contextEntryStaleQuery as Zt, notFoundListResponseSchema as _, fieldListResponseSchema as _n, localeFilterQuery as _r, updateTermBody as _t, bylineFieldUpdateBody as a, commentStatusBody as an, contentTranslationsResponseSchema as ar, updateSectionBody as at, notFoundSummaryResponseSchema as b, fieldSchema as bn, slugPattern as br, menuItemSchema as bt, bylineCreditSchema as c, publicCommentListResponseSchema as cn, trashedContentItemSchema as cr, taxonomyDefSchema as ct, bylineUpdateBody as d, collectionListResponseSchema as dn, apiErrorSchema as dr, termGetResponseSchema as dt, commentBulkBody as en, contentScheduleBody as er, siteSettingsSchema as et, bylinesListQuery as f, collectionResponseSchema as fn, countResponseSchema as fr, termListResponseSchema as ft, notFoundListQuery as g, createFieldBody as gn, localeCode as gr, termWithCountSchema as gt, notFoundEntrySchema as h, createCollectionBody as hn, httpUrl as hr, termTranslationsSchema as ht, bylineFieldReorderBody as i, commentSchema as in, contentTranslationSchema as ir, sectionsListQuery as it, widgetAreaWithWidgetsAndCountSchema as j, mediaExistingResponseSchema as jn, inviteCreateBody as jt, updateWidgetBody as k, mediaConfirmBody as kn, authMeActionBody as kt, bylineListResponseSchema as l, publicCommentSchema as ln, trashedContentListResponseSchema as lr, taxonomyDefTranslationsSchema as lt, createRedirectBody as m, collectionWithFieldsResponseSchema as mn, deleteResponseSchema as mr, termSchema as mt, bylineFieldDefinitionSchema as n, commentCountsResponseSchema as nn, contentSeoSchema as nr, sectionListResponseSchema as nt, bylineFieldUsageResponseSchema as o, createCommentBody as on, contentTrashQuery as or, createTaxonomyDefBody as ot, contentBylineInputSchema as p, collectionSchema as pn, cursorPaginationQuery as pr, termResponseSchema as pt, searchEnableBody as q, contentPreviewUrlBody as qn, contextEntryCreateBody as qt, bylineFieldListResponseSchema as r, commentListQuery as rn, contentTermsBody as rr, sectionSchema as rt, bylineCreateBody as s, createReactionBody as sn, contentUpdateBody as sr, createTermBody as st, bylineFieldCreateBody as t, commentBulkResponseSchema as tn, contentSeoInput as tr, createSectionBody as tt, bylineSummarySchema as u, collectionGetQuery as un, VALID_ROLE_LEVELS as ur, taxonomyListResponseSchema as ut, notFoundPruneBody as v, fieldReorderBody as vn, offsetPaginationQuery as vr, createMenuBody as vt, redirectsListQuery as w, schemaExportQuery as wn, menuTranslationsSchema as wt, notFoundSummarySchema as x, orphanRegisterBody as xn, successEnvelope as xr, menuItemTypeEnum as xt, notFoundSummaryQuery as y, fieldResponseSchema as yn, roleLevel as yr, createMenuItemBody as yt, userUpdateBody as z, mediaUploadUrlResponseSchema as zn, signupCompleteBody as zt };
|
package/dist/cli/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ import "../content-refresh-BmkilU5M.mjs";
|
|
|
22
22
|
import "../fts-manager-Zo9uhGel.mjs";
|
|
23
23
|
import { n as SchemaRegistry } from "../registry-SEJqFliS.mjs";
|
|
24
24
|
import "../settings-SVDAB7_W.mjs";
|
|
25
|
-
import { n as VERSION } from "../version-
|
|
25
|
+
import { n as VERSION } from "../version-D9xoSUza.mjs";
|
|
26
26
|
import { i as parseEncryptionKeys, n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-CpGpyGcO.mjs";
|
|
27
27
|
import { t as IntegrationCredentialStore } from "../store-CCfMD6nw.mjs";
|
|
28
28
|
import { a as reconcileManifestAccess, i as pluginManifestSchema } from "../manifest-schema-DKa3ZaJL.mjs";
|
|
@@ -635,11 +635,13 @@ const publishCommand$1 = defineCommand({
|
|
|
635
635
|
async run({ args }) {
|
|
636
636
|
configureOutputMode(args);
|
|
637
637
|
try {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
638
|
+
output({
|
|
639
|
+
success: true,
|
|
640
|
+
publicationReceipt: await createClientFromArgs(args).publish(args.collection, args.id, {
|
|
641
|
+
reviewRequestId: args["review-request"],
|
|
642
|
+
releaseAuthorizationId: args["release-authorization"]
|
|
643
|
+
})
|
|
644
|
+
}, args);
|
|
643
645
|
consola$1.success(`Published ${args.collection}/${args.id}`);
|
|
644
646
|
} catch (error) {
|
|
645
647
|
consola$1.error(error instanceof Error ? error.message : "Unknown error");
|
|
@@ -647,6 +649,51 @@ const publishCommand$1 = defineCommand({
|
|
|
647
649
|
}
|
|
648
650
|
}
|
|
649
651
|
});
|
|
652
|
+
const readinessCommand = defineCommand({
|
|
653
|
+
meta: {
|
|
654
|
+
name: "readiness",
|
|
655
|
+
description: "Inspect all current release blockers"
|
|
656
|
+
},
|
|
657
|
+
args: {
|
|
658
|
+
collection: {
|
|
659
|
+
type: "positional",
|
|
660
|
+
description: "Collection slug",
|
|
661
|
+
required: true
|
|
662
|
+
},
|
|
663
|
+
id: {
|
|
664
|
+
type: "positional",
|
|
665
|
+
description: "Content item ID or slug",
|
|
666
|
+
required: true
|
|
667
|
+
},
|
|
668
|
+
"review-request": {
|
|
669
|
+
type: "string",
|
|
670
|
+
description: "Editorial Review Request ID to validate"
|
|
671
|
+
},
|
|
672
|
+
"release-authorization": {
|
|
673
|
+
type: "string",
|
|
674
|
+
description: "Release authorization ID to validate"
|
|
675
|
+
},
|
|
676
|
+
"scheduled-at": {
|
|
677
|
+
type: "string",
|
|
678
|
+
description: "ISO 8601 schedule time; selects schedule readiness"
|
|
679
|
+
},
|
|
680
|
+
...connectionArgs
|
|
681
|
+
},
|
|
682
|
+
async run({ args }) {
|
|
683
|
+
configureOutputMode(args);
|
|
684
|
+
try {
|
|
685
|
+
output(await createClientFromArgs(args).releaseReadiness(args.collection, args.id, {
|
|
686
|
+
operation: args["scheduled-at"] ? "schedule" : "publish",
|
|
687
|
+
reviewRequestId: args["review-request"],
|
|
688
|
+
releaseAuthorizationId: args["release-authorization"],
|
|
689
|
+
scheduledAt: args["scheduled-at"]
|
|
690
|
+
}), args);
|
|
691
|
+
} catch (error) {
|
|
692
|
+
consola$1.error(error instanceof Error ? error.message : "Unknown error");
|
|
693
|
+
process.exit(1);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
});
|
|
650
697
|
const unpublishCommand = defineCommand({
|
|
651
698
|
meta: {
|
|
652
699
|
name: "unpublish",
|
|
@@ -796,6 +843,7 @@ const contentCommand = defineCommand({
|
|
|
796
843
|
update: updateCommand,
|
|
797
844
|
delete: deleteCommand$2,
|
|
798
845
|
publish: publishCommand$1,
|
|
846
|
+
readiness: readinessCommand,
|
|
799
847
|
unpublish: unpublishCommand,
|
|
800
848
|
schedule: scheduleCommand,
|
|
801
849
|
restore: restoreCommand,
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import "../types-C-3YPdr-.mjs";
|
|
2
|
+
import "../types-BFeoAIHl.mjs";
|
|
3
|
+
import "../runner-Bcy5w0vj.mjs";
|
|
4
|
+
import "../index-DybFmYtZ.mjs";
|
|
5
|
+
import "../types-S9VIopdY.mjs";
|
|
6
|
+
import "../validate-YiX3rly5.mjs";
|
|
7
|
+
import "../byline-fields-bnvqaEuF.mjs";
|
|
8
|
+
import "../types-BsTXSvKG.mjs";
|
|
1
9
|
import { DinewayClient, PluginRequestOptions } from "../client/index.mjs";
|
|
2
10
|
import { SubCommandsDef } from "citty";
|
|
3
11
|
|