dineway 0.1.18 → 0.1.19
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 +1 -1
- package/dist/api/route-utils.mjs +1 -1
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-KH2L2uKb.mjs → api-CUdFqNOK.mjs} +1 -1
- package/dist/astro/index.d.mts +1 -1
- package/dist/astro/index.mjs +2 -2
- package/dist/astro/middleware/auth.d.mts +1 -1
- package/dist/astro/middleware/auth.mjs +1 -1
- package/dist/astro/middleware/request-context.mjs +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +6 -6
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +1 -1
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +2 -2
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +2 -2
- package/dist/astro/routes/api/admin/context/diff.mjs +2 -2
- package/dist/astro/routes/api/admin/context/index.mjs +2 -2
- package/dist/astro/routes/api/admin/context/stale.mjs +2 -2
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +3 -3
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +3 -3
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +3 -3
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +3 -3
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +1 -1
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/register-options.mjs +1 -1
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +1 -1
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress/execute.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +2 -2
- package/dist/astro/routes/api/manifest.mjs +3 -3
- package/dist/astro/routes/api/mcp.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/items.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_/translations.mjs +2 -2
- package/dist/astro/routes/api/menus/_name_.mjs +2 -2
- package/dist/astro/routes/api/menus/index.mjs +2 -2
- package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
- package/dist/astro/routes/api/oauth/device/authorize.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/code.mjs +2 -2
- package/dist/astro/routes/api/oauth/device/token.mjs +2 -2
- package/dist/astro/routes/api/oauth/register.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/refresh.mjs +2 -2
- package/dist/astro/routes/api/oauth/token/revoke.mjs +2 -2
- package/dist/astro/routes/api/oauth/token.mjs +3 -3
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +2 -2
- package/dist/astro/routes/api/redirects/index.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +1 -1
- package/dist/astro/routes/api/sections/_slug_.mjs +2 -2
- package/dist/astro/routes/api/sections/index.mjs +2 -2
- package/dist/astro/routes/api/settings.mjs +2 -2
- package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
- package/dist/astro/routes/api/setup/admin.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +1 -1
- 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 +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +2 -2
- package/dist/astro/routes/api/taxonomies/index.mjs +2 -2
- package/dist/astro/routes/api/themes/preview.mjs +1 -1
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/index.mjs +2 -2
- package/dist/astro/types.d.mts +1 -1
- package/dist/{bylines-BK9FyU4A.d.mts → bylines-CCkI7Rh3.d.mts} +18 -18
- package/dist/cli/index.mjs +2 -2
- package/dist/{context-93X6MFTb.mjs → context-oSCcgE1U.mjs} +1 -1
- package/dist/{device-flow-urJvDoBx.mjs → device-flow-DaTBhALC.mjs} +2 -2
- package/dist/{hitl-requests-DBcruTcs.mjs → hitl-requests-CJBs03Ep.mjs} +2 -2
- package/dist/{hitl-route-helpers-Dwo_LjhN.mjs → hitl-route-helpers-kTkP1NJ7.mjs} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +1 -1
- package/dist/{oauth-authorization-BZSOekHq.mjs → oauth-authorization-DcYRiDfi.mjs} +2 -2
- package/dist/{oauth-clients-CqAi-6Y4.mjs → oauth-clients-CgKFA-VH.mjs} +1 -1
- package/dist/plugins/adapt-sandbox-entry.d.mts +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/{site-context-Rwm9auhW.mjs → site-context-CyBvmvQY.mjs} +1 -1
- package/dist/ui/server-runtime.d.mts +4 -1
- package/dist/ui/server-runtime.mjs +42 -1
- package/dist/version-CGRX_5CT.mjs +6 -0
- package/package.json +1 -1
- package/src/components/DinewayHead.astro +1 -1
- package/dist/version-qhU-AiPQ.mjs +0 -6
- /package/dist/{allowed-origins-46RONHY3.mjs → allowed-origins-D85wzUp6.mjs} +0 -0
- /package/dist/{challenge-store-B9odzfeh.mjs → challenge-store-anhwVER0.mjs} +0 -0
- /package/dist/{experimental-workflows-C7o_9V7S.mjs → experimental-workflows-CSRjuEwS.mjs} +0 -0
- /package/dist/{mode-BI1kRvlT.mjs → mode-DWw2di1I.mjs} +0 -0
- /package/dist/{secrets-BIrqds5c.mjs → secrets-AFKoqUXj.mjs} +0 -0
- /package/dist/{setup-complete-DzOSuHUM.mjs → setup-complete-4EiBS1E5.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../../error-Dyf9fGZE.mjs";
|
|
2
2
|
import { n as loadUserSeed } from "../../../../load-BvyvS_76.mjs";
|
|
3
|
-
import { t as getAuthMode } from "../../../../mode-
|
|
3
|
+
import { t as getAuthMode } from "../../../../mode-DWw2di1I.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/setup/status.ts
|
|
6
6
|
const prerender = false;
|
|
@@ -3,7 +3,7 @@ import "../../../options-BF11H_FD.mjs";
|
|
|
3
3
|
import { n as apiSuccess, r as handleError, t as apiError } from "../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { a as verifyPreviewSignature, r as parsePreviewSignatureHeader } from "../../../sidecar-client-Dta0AELf.mjs";
|
|
5
5
|
import { n as getPublicOrigin } from "../../../public-url-5fFLJhjh.mjs";
|
|
6
|
-
import { i as resolveSecretsCached } from "../../../secrets-
|
|
6
|
+
import { i as resolveSecretsCached } from "../../../secrets-AFKoqUXj.mjs";
|
|
7
7
|
import { n as requirePerm } from "../../../authorize-wQDmXQJ1.mjs";
|
|
8
8
|
import { sql } from "kysely";
|
|
9
9
|
import { createKyselyAdapter } from "@dineway-ai/auth/adapters/kysely";
|
|
@@ -28,9 +28,9 @@ import "../../../../../../../api/schemas/index.mjs";
|
|
|
28
28
|
import "../../../../../../../utils-BJF19gfk.mjs";
|
|
29
29
|
import "../../../../../../../search-vzCYAk0F.mjs";
|
|
30
30
|
import { n as requirePerm } from "../../../../../../../authorize-wQDmXQJ1.mjs";
|
|
31
|
-
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../../site-context-
|
|
31
|
+
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../../site-context-CyBvmvQY.mjs";
|
|
32
32
|
import { C as taxonomyApiRouteSource, m as logTaxonomyActivity } from "../../../../../../../activity-events-DbqJBNaY.mjs";
|
|
33
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../../hitl-route-helpers-
|
|
33
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../../hitl-route-helpers-kTkP1NJ7.mjs";
|
|
34
34
|
import { z } from "zod";
|
|
35
35
|
|
|
36
36
|
//#region src/astro/routes/api/taxonomies/[name]/terms/[slug]/translations.ts
|
|
@@ -28,9 +28,9 @@ import "../../../../../../api/schemas/index.mjs";
|
|
|
28
28
|
import "../../../../../../utils-BJF19gfk.mjs";
|
|
29
29
|
import "../../../../../../search-vzCYAk0F.mjs";
|
|
30
30
|
import { n as requirePerm } from "../../../../../../authorize-wQDmXQJ1.mjs";
|
|
31
|
-
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-
|
|
31
|
+
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-CyBvmvQY.mjs";
|
|
32
32
|
import { C as taxonomyApiRouteSource, m as logTaxonomyActivity, t as activityChangedKeys } from "../../../../../../activity-events-DbqJBNaY.mjs";
|
|
33
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-
|
|
33
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-kTkP1NJ7.mjs";
|
|
34
34
|
import { z } from "zod";
|
|
35
35
|
|
|
36
36
|
//#region src/astro/routes/api/taxonomies/[name]/terms/[slug].ts
|
|
@@ -28,9 +28,9 @@ import "../../../../../../api/schemas/index.mjs";
|
|
|
28
28
|
import "../../../../../../utils-BJF19gfk.mjs";
|
|
29
29
|
import "../../../../../../search-vzCYAk0F.mjs";
|
|
30
30
|
import { n as requirePerm } from "../../../../../../authorize-wQDmXQJ1.mjs";
|
|
31
|
-
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-
|
|
31
|
+
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../../../site-context-CyBvmvQY.mjs";
|
|
32
32
|
import { C as taxonomyApiRouteSource, m as logTaxonomyActivity } from "../../../../../../activity-events-DbqJBNaY.mjs";
|
|
33
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-
|
|
33
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../../hitl-route-helpers-kTkP1NJ7.mjs";
|
|
34
34
|
import { z } from "zod";
|
|
35
35
|
|
|
36
36
|
//#region src/astro/routes/api/taxonomies/[name]/terms/index.ts
|
|
@@ -28,9 +28,9 @@ import "../../../../api/schemas/index.mjs";
|
|
|
28
28
|
import "../../../../utils-BJF19gfk.mjs";
|
|
29
29
|
import "../../../../search-vzCYAk0F.mjs";
|
|
30
30
|
import { n as requirePerm } from "../../../../authorize-wQDmXQJ1.mjs";
|
|
31
|
-
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../site-context-
|
|
31
|
+
import { _ as RiskPolicyEvaluator, l as TaxonomyHitlPayloadBuilder } from "../../../../site-context-CyBvmvQY.mjs";
|
|
32
32
|
import { C as taxonomyApiRouteSource, m as logTaxonomyActivity } from "../../../../activity-events-DbqJBNaY.mjs";
|
|
33
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-
|
|
33
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-kTkP1NJ7.mjs";
|
|
34
34
|
import { z } from "zod";
|
|
35
35
|
|
|
36
36
|
//#region src/astro/routes/api/taxonomies/index.ts
|
|
@@ -2,7 +2,7 @@ import "../../../../base64-C1Q9yr0B.mjs";
|
|
|
2
2
|
import "../../../../options-BF11H_FD.mjs";
|
|
3
3
|
import { n as apiSuccess, t as apiError } from "../../../../error-Dyf9fGZE.mjs";
|
|
4
4
|
import { n as getPublicOrigin } from "../../../../public-url-5fFLJhjh.mjs";
|
|
5
|
-
import { i as resolveSecretsCached } from "../../../../secrets-
|
|
5
|
+
import { i as resolveSecretsCached } from "../../../../secrets-AFKoqUXj.mjs";
|
|
6
6
|
import { n as requirePerm } from "../../../../authorize-wQDmXQJ1.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/astro/routes/api/themes/preview.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import { n as VERSION } from "../../../../version-
|
|
3
|
-
import { t as getAuthMode } from "../../../../mode-
|
|
2
|
+
import { n as VERSION } from "../../../../version-CGRX_5CT.mjs";
|
|
3
|
+
import { t as getAuthMode } from "../../../../mode-DWw2di1I.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/auth.ts
|
|
6
6
|
const prerender = false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getPublicOrigin } from "../../../../public-url-5fFLJhjh.mjs";
|
|
2
|
-
import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-
|
|
2
|
+
import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-CSRjuEwS.mjs";
|
|
3
3
|
import { t as ALL_VALID_SCOPES } from "../../../../api-tokens-B7fvbHM2.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/oauth-authorization-server.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getPublicOrigin } from "../../../../public-url-5fFLJhjh.mjs";
|
|
2
|
-
import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-
|
|
2
|
+
import { a as filterExperimentalSiteContextWorkflowScopes } from "../../../../experimental-workflows-CSRjuEwS.mjs";
|
|
3
3
|
import { t as ALL_VALID_SCOPES } from "../../../../api-tokens-B7fvbHM2.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/oauth-protected-resource.ts
|
|
@@ -25,9 +25,9 @@ import "../../../../../api/schemas/index.mjs";
|
|
|
25
25
|
import "../../../../../utils-BJF19gfk.mjs";
|
|
26
26
|
import "../../../../../search-vzCYAk0F.mjs";
|
|
27
27
|
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
28
|
-
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-
|
|
28
|
+
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-CyBvmvQY.mjs";
|
|
29
29
|
import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../../activity-events-DbqJBNaY.mjs";
|
|
30
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-
|
|
30
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../../hitl-route-helpers-kTkP1NJ7.mjs";
|
|
31
31
|
import { z } from "zod";
|
|
32
32
|
|
|
33
33
|
//#region src/astro/routes/api/widget-areas/[name]/reorder.ts
|
|
@@ -26,9 +26,9 @@ import "../../../../../../utils-BJF19gfk.mjs";
|
|
|
26
26
|
import { i as rowToWidget } from "../../../../../../widgets-D7UK-2hW.mjs";
|
|
27
27
|
import "../../../../../../search-vzCYAk0F.mjs";
|
|
28
28
|
import { n as requirePerm } from "../../../../../../authorize-wQDmXQJ1.mjs";
|
|
29
|
-
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../../site-context-
|
|
29
|
+
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../../site-context-CyBvmvQY.mjs";
|
|
30
30
|
import { h as logWidgetActivity, t as activityChangedKeys, w as widgetApiRouteSource } from "../../../../../../activity-events-DbqJBNaY.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-kTkP1NJ7.mjs";
|
|
32
32
|
import { z } from "zod";
|
|
33
33
|
|
|
34
34
|
//#region src/astro/routes/api/widget-areas/[name]/widgets/[id].ts
|
|
@@ -26,9 +26,9 @@ import "../../../../../utils-BJF19gfk.mjs";
|
|
|
26
26
|
import { i as rowToWidget } from "../../../../../widgets-D7UK-2hW.mjs";
|
|
27
27
|
import "../../../../../search-vzCYAk0F.mjs";
|
|
28
28
|
import { n as requirePerm } from "../../../../../authorize-wQDmXQJ1.mjs";
|
|
29
|
-
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-
|
|
29
|
+
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../../site-context-CyBvmvQY.mjs";
|
|
30
30
|
import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../../activity-events-DbqJBNaY.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-kTkP1NJ7.mjs";
|
|
32
32
|
import { ulid } from "ulidx";
|
|
33
33
|
import { z } from "zod";
|
|
34
34
|
|
|
@@ -23,9 +23,9 @@ import "../../../../utils-BJF19gfk.mjs";
|
|
|
23
23
|
import { i as rowToWidget } from "../../../../widgets-D7UK-2hW.mjs";
|
|
24
24
|
import "../../../../search-vzCYAk0F.mjs";
|
|
25
25
|
import { n as requirePerm } from "../../../../authorize-wQDmXQJ1.mjs";
|
|
26
|
-
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-
|
|
26
|
+
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-CyBvmvQY.mjs";
|
|
27
27
|
import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../activity-events-DbqJBNaY.mjs";
|
|
28
|
-
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-
|
|
28
|
+
import { i as resolveHitlRouteActor, n as hitlRequiredRouteError, t as ensureWorkflowHitlRouteRequest } from "../../../../hitl-route-helpers-kTkP1NJ7.mjs";
|
|
29
29
|
import { z } from "zod";
|
|
30
30
|
|
|
31
31
|
//#region src/astro/routes/api/widget-areas/[name].ts
|
|
@@ -26,9 +26,9 @@ import "../../../../utils-BJF19gfk.mjs";
|
|
|
26
26
|
import { i as rowToWidget } from "../../../../widgets-D7UK-2hW.mjs";
|
|
27
27
|
import "../../../../search-vzCYAk0F.mjs";
|
|
28
28
|
import { n as requirePerm } from "../../../../authorize-wQDmXQJ1.mjs";
|
|
29
|
-
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-
|
|
29
|
+
import { _ as RiskPolicyEvaluator, s as WidgetHitlPayloadBuilder } from "../../../../site-context-CyBvmvQY.mjs";
|
|
30
30
|
import { h as logWidgetActivity, w as widgetApiRouteSource } from "../../../../activity-events-DbqJBNaY.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-kTkP1NJ7.mjs";
|
|
32
32
|
import { ulid } from "ulidx";
|
|
33
33
|
import { z } from "zod";
|
|
34
34
|
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ import "../runner-CHR_W79l.mjs";
|
|
|
8
8
|
import "../index-JzJUzE4o.mjs";
|
|
9
9
|
import "../index-DpMWSamU.mjs";
|
|
10
10
|
import { d as Storage } from "../types-BDm7Ipoq.mjs";
|
|
11
|
-
import "../bylines-
|
|
11
|
+
import "../bylines-CCkI7Rh3.mjs";
|
|
12
12
|
import "../types-BeYn-Yf0.mjs";
|
|
13
13
|
import "../validate-BQ24E8rK.mjs";
|
|
14
14
|
import "../index.mjs";
|
|
@@ -519,11 +519,11 @@ declare const createCollectionBody: z.ZodObject<{
|
|
|
519
519
|
description: z.ZodOptional<z.ZodString>;
|
|
520
520
|
icon: z.ZodOptional<z.ZodString>;
|
|
521
521
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
522
|
-
search: "search";
|
|
523
522
|
drafts: "drafts";
|
|
524
523
|
revisions: "revisions";
|
|
525
524
|
preview: "preview";
|
|
526
525
|
scheduling: "scheduling";
|
|
526
|
+
search: "search";
|
|
527
527
|
}>>>;
|
|
528
528
|
source: z.ZodOptional<z.ZodString>;
|
|
529
529
|
urlPattern: z.ZodOptional<z.ZodString>;
|
|
@@ -535,11 +535,11 @@ declare const updateCollectionBody: z.ZodObject<{
|
|
|
535
535
|
description: z.ZodOptional<z.ZodString>;
|
|
536
536
|
icon: z.ZodOptional<z.ZodString>;
|
|
537
537
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
538
|
-
search: "search";
|
|
539
538
|
drafts: "drafts";
|
|
540
539
|
revisions: "revisions";
|
|
541
540
|
preview: "preview";
|
|
542
541
|
scheduling: "scheduling";
|
|
542
|
+
search: "search";
|
|
543
543
|
}>>>;
|
|
544
544
|
urlPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
545
|
hasSeo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -560,8 +560,8 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
560
560
|
number: "number";
|
|
561
561
|
boolean: "boolean";
|
|
562
562
|
file: "file";
|
|
563
|
-
url: "url";
|
|
564
563
|
image: "image";
|
|
564
|
+
url: "url";
|
|
565
565
|
slug: "slug";
|
|
566
566
|
datetime: "datetime";
|
|
567
567
|
text: "text";
|
|
@@ -687,8 +687,8 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
687
687
|
number: "number";
|
|
688
688
|
boolean: "boolean";
|
|
689
689
|
file: "file";
|
|
690
|
-
url: "url";
|
|
691
690
|
image: "image";
|
|
691
|
+
url: "url";
|
|
692
692
|
slug: "slug";
|
|
693
693
|
datetime: "datetime";
|
|
694
694
|
text: "text";
|
|
@@ -752,8 +752,8 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
752
752
|
number: "number";
|
|
753
753
|
boolean: "boolean";
|
|
754
754
|
file: "file";
|
|
755
|
-
url: "url";
|
|
756
755
|
image: "image";
|
|
756
|
+
url: "url";
|
|
757
757
|
slug: "slug";
|
|
758
758
|
datetime: "datetime";
|
|
759
759
|
text: "text";
|
|
@@ -806,8 +806,8 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
806
806
|
number: "number";
|
|
807
807
|
boolean: "boolean";
|
|
808
808
|
file: "file";
|
|
809
|
-
url: "url";
|
|
810
809
|
image: "image";
|
|
810
|
+
url: "url";
|
|
811
811
|
slug: "slug";
|
|
812
812
|
datetime: "datetime";
|
|
813
813
|
text: "text";
|
|
@@ -843,8 +843,8 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
843
843
|
number: "number";
|
|
844
844
|
boolean: "boolean";
|
|
845
845
|
file: "file";
|
|
846
|
-
url: "url";
|
|
847
846
|
image: "image";
|
|
847
|
+
url: "url";
|
|
848
848
|
slug: "slug";
|
|
849
849
|
datetime: "datetime";
|
|
850
850
|
text: "text";
|
|
@@ -892,8 +892,8 @@ declare const createCommentBody: z.ZodObject<{
|
|
|
892
892
|
}, z.core.$strip>;
|
|
893
893
|
declare const commentStatusBody: z.ZodObject<{
|
|
894
894
|
status: z.ZodEnum<{
|
|
895
|
-
approved: "approved";
|
|
896
895
|
pending: "pending";
|
|
896
|
+
approved: "approved";
|
|
897
897
|
spam: "spam";
|
|
898
898
|
trash: "trash";
|
|
899
899
|
}>;
|
|
@@ -909,8 +909,8 @@ declare const commentBulkBody: z.ZodObject<{
|
|
|
909
909
|
}, z.core.$strip>;
|
|
910
910
|
declare const commentListQuery: z.ZodObject<{
|
|
911
911
|
status: z.ZodOptional<z.ZodEnum<{
|
|
912
|
-
approved: "approved";
|
|
913
912
|
pending: "pending";
|
|
913
|
+
approved: "approved";
|
|
914
914
|
spam: "spam";
|
|
915
915
|
trash: "trash";
|
|
916
916
|
}>>;
|
|
@@ -944,8 +944,8 @@ declare const commentSchema: z.ZodObject<{
|
|
|
944
944
|
authorEmail: z.ZodString;
|
|
945
945
|
body: z.ZodString;
|
|
946
946
|
status: z.ZodEnum<{
|
|
947
|
-
approved: "approved";
|
|
948
947
|
pending: "pending";
|
|
948
|
+
approved: "approved";
|
|
949
949
|
spam: "spam";
|
|
950
950
|
trash: "trash";
|
|
951
951
|
}>;
|
|
@@ -976,8 +976,8 @@ declare const adminCommentListResponseSchema: z.ZodObject<{
|
|
|
976
976
|
authorEmail: z.ZodString;
|
|
977
977
|
body: z.ZodString;
|
|
978
978
|
status: z.ZodEnum<{
|
|
979
|
-
approved: "approved";
|
|
980
979
|
pending: "pending";
|
|
980
|
+
approved: "approved";
|
|
981
981
|
spam: "spam";
|
|
982
982
|
trash: "trash";
|
|
983
983
|
}>;
|
|
@@ -1022,15 +1022,15 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1022
1022
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1023
1023
|
}, z.core.$strip>;
|
|
1024
1024
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1025
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1026
1025
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
|
|
1028
|
-
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1026
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1029
1027
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1030
1028
|
true: "true";
|
|
1031
1029
|
false: "false";
|
|
1032
1030
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1031
|
+
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1033
1032
|
tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1033
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1034
1034
|
createdByActorType: z.ZodOptional<z.ZodEnum<{
|
|
1035
1035
|
user: "user";
|
|
1036
1036
|
api_token: "api_token";
|
|
@@ -1051,7 +1051,6 @@ declare const contextEntryDiffQuery: z.ZodObject<{
|
|
|
1051
1051
|
declare const contextEntryCreateBody: z.ZodObject<{
|
|
1052
1052
|
scope: z.ZodString;
|
|
1053
1053
|
contextType: z.ZodEnum<{
|
|
1054
|
-
decision: "decision";
|
|
1055
1054
|
brand_voice: "brand_voice";
|
|
1056
1055
|
seo_strategy: "seo_strategy";
|
|
1057
1056
|
audience: "audience";
|
|
@@ -1061,6 +1060,7 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1061
1060
|
migration_note: "migration_note";
|
|
1062
1061
|
plugin_note: "plugin_note";
|
|
1063
1062
|
agent_reasoning: "agent_reasoning";
|
|
1063
|
+
decision: "decision";
|
|
1064
1064
|
risk: "risk";
|
|
1065
1065
|
content_gap: "content_gap";
|
|
1066
1066
|
style_exception: "style_exception";
|
|
@@ -1075,7 +1075,6 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1075
1075
|
declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
1076
1076
|
scope: z.ZodOptional<z.ZodString>;
|
|
1077
1077
|
contextType: z.ZodOptional<z.ZodEnum<{
|
|
1078
|
-
decision: "decision";
|
|
1079
1078
|
brand_voice: "brand_voice";
|
|
1080
1079
|
seo_strategy: "seo_strategy";
|
|
1081
1080
|
audience: "audience";
|
|
@@ -1085,6 +1084,7 @@ declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
|
1085
1084
|
migration_note: "migration_note";
|
|
1086
1085
|
plugin_note: "plugin_note";
|
|
1087
1086
|
agent_reasoning: "agent_reasoning";
|
|
1087
|
+
decision: "decision";
|
|
1088
1088
|
risk: "risk";
|
|
1089
1089
|
content_gap: "content_gap";
|
|
1090
1090
|
style_exception: "style_exception";
|
|
@@ -1117,8 +1117,8 @@ declare const siteBriefingQuery: z.ZodObject<{
|
|
|
1117
1117
|
//#region src/api/schemas/hitl-requests.d.ts
|
|
1118
1118
|
declare const hitlRequestListQuery: z.ZodObject<{
|
|
1119
1119
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1120
|
-
approved: "approved";
|
|
1121
1120
|
pending: "pending";
|
|
1121
|
+
approved: "approved";
|
|
1122
1122
|
rejected: "rejected";
|
|
1123
1123
|
}>>;
|
|
1124
1124
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1145,8 +1145,8 @@ declare const hitlRequestResolveBody: z.ZodObject<{
|
|
|
1145
1145
|
//#region src/api/schemas/review-requests.d.ts
|
|
1146
1146
|
declare const reviewRequestListQuery: z.ZodObject<{
|
|
1147
1147
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1148
|
-
approved: "approved";
|
|
1149
1148
|
pending: "pending";
|
|
1149
|
+
approved: "approved";
|
|
1150
1150
|
rejected: "rejected";
|
|
1151
1151
|
}>>;
|
|
1152
1152
|
collection: z.ZodOptional<z.ZodString>;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -22,9 +22,9 @@ import { i as pluginManifestSchema } from "../manifest-schema-CU0XL_ZK.mjs";
|
|
|
22
22
|
import "../ssrf-z3oH8wjK.mjs";
|
|
23
23
|
import { t as validateSeed } from "../validate-CaKEnLed.mjs";
|
|
24
24
|
import { t as applySeed } from "../apply-Wyg77UOb.mjs";
|
|
25
|
-
import { n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-
|
|
26
|
-
import { createHeaderAwareFetch, customHeadersInterceptor, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
25
|
+
import { n as fingerprintKey, r as generateEncryptionKey, t as DinewaySecretsError } from "../secrets-AFKoqUXj.mjs";
|
|
27
26
|
import { o as convertDataForRead } from "../transport-B3jxvfio.mjs";
|
|
27
|
+
import { createHeaderAwareFetch, customHeadersInterceptor, isRedirectResponse, resolveCustomHeaders } from "../client/external-auth-headers.mjs";
|
|
28
28
|
import { DinewayClient } from "../client/index.mjs";
|
|
29
29
|
import { LocalStorage } from "../storage/local.mjs";
|
|
30
30
|
import { imageSize } from "image-size";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ContextRepository, i as parseSiteBriefingScope, n as SiteBriefingError } from "./briefing-Dk4I4VC8.mjs";
|
|
2
|
-
import { b as toPublicContextEntry, x as toPublicContextEntryPage, y as toPublicContextDiff } from "./site-context-
|
|
2
|
+
import { b as toPublicContextEntry, x as toPublicContextEntryPage, y as toPublicContextDiff } from "./site-context-CyBvmvQY.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/context.ts
|
|
5
5
|
async function handleContextEntryList(db, input = {}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as withTransaction } from "./transaction-qfqpPVpu.mjs";
|
|
2
|
-
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
2
|
+
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-CSRjuEwS.mjs";
|
|
3
3
|
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-B7fvbHM2.mjs";
|
|
4
|
-
import { o as lookupOAuthClient } from "./oauth-clients-
|
|
4
|
+
import { o as lookupOAuthClient } from "./oauth-clients-CgKFA-VH.mjs";
|
|
5
5
|
import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-nyXQ2_6Q.mjs";
|
|
6
6
|
import { clampScopes } from "@dineway-ai/auth";
|
|
7
7
|
import { generateCodeVerifier } from "arctic";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-
|
|
2
|
-
import { n as HitlRequestService } from "./site-context-
|
|
1
|
+
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-CSRjuEwS.mjs";
|
|
2
|
+
import { n as HitlRequestService } from "./site-context-CyBvmvQY.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/handlers/hitl-requests.ts
|
|
5
5
|
const HITL_NOT_FOUND_RE = /not found/i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as apiError } from "./error-Dyf9fGZE.mjs";
|
|
2
|
-
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-
|
|
3
|
-
import { t as WorkflowHitlCoordinator } from "./site-context-
|
|
2
|
+
import { t as ExperimentalSiteContextWorkflowDisabledError } from "./experimental-workflows-CSRjuEwS.mjs";
|
|
3
|
+
import { t as WorkflowHitlCoordinator } from "./site-context-CyBvmvQY.mjs";
|
|
4
4
|
import { T as resolveActorIdentity, p as logSiteActivitySafely } from "./activity-events-DbqJBNaY.mjs";
|
|
5
5
|
import { Role } from "@dineway-ai/auth";
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { $ as TranslationSummary, A as MenuItem, B as getPluginSettings, C as Ta
|
|
|
11
11
|
import { _ as WxrSite, a as getAllSources, b as parseWxrString, c as getUrlSources, d as importReusableBlocksAsSections, f as WxrAttachment, g as WxrPost, h as WxrData, i as clearSources, l as probeUrl, m as WxrCategory, n as parseWxrDate, o as getFileSources, p as WxrAuthor, r as wxrSource, s as getSource, t as wordpressRestSource, u as registerSource, v as WxrTag, x as decodeSlug, y as parseWxr } from "./index-DpMWSamU.mjs";
|
|
12
12
|
import { n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "./placeholder-DKMMLt42.mjs";
|
|
13
13
|
import { a as ListOptions, c as S3StorageConfig, d as Storage, f as StorageDescriptor, i as FileInfo, l as SignedUploadOptions, n as DinewayStorageError, o as ListResult, p as UploadResult, r as DownloadResult, s as LocalStorageConfig, t as CreateStorageFn, u as SignedUploadUrl } from "./types-BDm7Ipoq.mjs";
|
|
14
|
-
import "./bylines-
|
|
14
|
+
import "./bylines-CCkI7Rh3.mjs";
|
|
15
15
|
import { DinewayRequestContext, getRequestContext, runWithContext } from "./request-context.mjs";
|
|
16
16
|
import { adaptSandboxEntry } from "./plugins/adapt-sandbox-entry.mjs";
|
|
17
17
|
import { S as UrlInput, _ as SourceAuth, a as FileInput, b as SourceProbeResult, c as ImportContext, d as ImportSource, f as NormalizedItem, g as ProbeResult, h as PostTypeMapping, i as FieldCompatibility, l as ImportFieldDef, m as PostTypeAnalysis, n as CollectionSchemaStatus, o as ImportAnalysis, p as OAuthInput, r as FetchOptions, s as ImportConfig, t as AttachmentInfo, u as ImportResult, v as SourceCapabilities, x as SuggestedAction, y as SourceInput } from "./types-BeYn-Yf0.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import "./byline-9WeA8b0a.mjs";
|
|
|
23
23
|
import { t as normalizeMediaValue } from "./normalize-ba36HTxZ.mjs";
|
|
24
24
|
import { t as generatePlaceholder } from "./placeholder-BAy3k441.mjs";
|
|
25
25
|
import "./seo-DASNc4gD.mjs";
|
|
26
|
-
import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-
|
|
26
|
+
import { A as handleRevisionGet, B as handleContentDuplicate, D as handleMediaGet, E as handleMediaDelete, F as handleContentCountScheduled, G as handleContentPermanentDelete, H as handleContentGetIncludingTrashed, I as handleContentCountTrashed, J as handleContentSchedule, K as handleContentPublish, L as handleContentCreate, M as handleRevisionRestore, N as generateManifest, O as handleMediaList, P as handleContentCompare, Q as handleContentUpdate, R as handleContentDelete, T as handleMediaCreate, U as handleContentList, V as handleContentGet, W as handleContentListTrashed, X as handleContentUnpublish, Y as handleContentTranslations, Z as handleContentUnschedule, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "./api-CUdFqNOK.mjs";
|
|
27
27
|
import "./request-cache-BzuhyUXj.mjs";
|
|
28
28
|
import "./dashboard-DdqRifyu.mjs";
|
|
29
29
|
import "./briefing-Dk4I4VC8.mjs";
|
|
@@ -7,7 +7,7 @@ import "../runner-CHR_W79l.mjs";
|
|
|
7
7
|
import "../index-JzJUzE4o.mjs";
|
|
8
8
|
import "../index-DpMWSamU.mjs";
|
|
9
9
|
import { d as Storage } from "../types-BDm7Ipoq.mjs";
|
|
10
|
-
import "../bylines-
|
|
10
|
+
import "../bylines-CCkI7Rh3.mjs";
|
|
11
11
|
import "../types-BeYn-Yf0.mjs";
|
|
12
12
|
import "../validate-BQ24E8rK.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as withTransaction } from "./transaction-qfqpPVpu.mjs";
|
|
2
|
-
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
2
|
+
import { a as filterExperimentalSiteContextWorkflowScopes, i as experimentalSiteContextWorkflowsEnabled, o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-CSRjuEwS.mjs";
|
|
3
3
|
import { a as hashApiToken, n as TOKEN_PREFIXES, r as generatePrefixedToken, t as ALL_VALID_SCOPES } from "./api-tokens-B7fvbHM2.mjs";
|
|
4
|
-
import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-
|
|
4
|
+
import { c as validateRedirectUri, o as lookupOAuthClient, s as validateClientRedirectUri } from "./oauth-clients-CgKFA-VH.mjs";
|
|
5
5
|
import { t as lookupUserRoleAndStatus } from "./oauth-user-lookup-nyXQ2_6Q.mjs";
|
|
6
6
|
import { clampScopes, computeS256Challenge, secureCompare } from "@dineway-ai/auth";
|
|
7
7
|
import { generateCodeVerifier } from "arctic";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-
|
|
1
|
+
import { o as getExperimentalSiteContextWorkflowScopesDisabledMessage, r as disabledExperimentalSiteContextWorkflowScopes } from "./experimental-workflows-CSRjuEwS.mjs";
|
|
2
2
|
import { o as validateScopes } from "./api-tokens-B7fvbHM2.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/oauth/redirect-uri.ts
|
|
@@ -5,7 +5,7 @@ import "../types-B45uSz1j.mjs";
|
|
|
5
5
|
import "../runner-CHR_W79l.mjs";
|
|
6
6
|
import "../index-JzJUzE4o.mjs";
|
|
7
7
|
import "../index-DpMWSamU.mjs";
|
|
8
|
-
import "../bylines-
|
|
8
|
+
import "../bylines-CCkI7Rh3.mjs";
|
|
9
9
|
import "../types-BeYn-Yf0.mjs";
|
|
10
10
|
import "../validate-BQ24E8rK.mjs";
|
|
11
11
|
|
package/dist/runtime.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import "./types-B45uSz1j.mjs";
|
|
|
5
5
|
import "./runner-CHR_W79l.mjs";
|
|
6
6
|
import "./index-JzJUzE4o.mjs";
|
|
7
7
|
import "./index-DpMWSamU.mjs";
|
|
8
|
-
import "./bylines-
|
|
8
|
+
import "./bylines-CCkI7Rh3.mjs";
|
|
9
9
|
import "./types-BeYn-Yf0.mjs";
|
|
10
10
|
import "./validate-BQ24E8rK.mjs";
|
|
11
11
|
import { t as getMediaProvider } from "./provider-loader-BPhii_3H.mjs";
|
|
@@ -12,7 +12,7 @@ import { a as getSiteSettingsWithDb } from "./settings-D2k1JraC.mjs";
|
|
|
12
12
|
import { p as normalizeUrl } from "./utils-BJF19gfk.mjs";
|
|
13
13
|
import { t as sanitizeWordPressImportSlug } from "./wordpress-slugs-Bnf3-sf8.mjs";
|
|
14
14
|
import { s as searchCollection } from "./search-vzCYAk0F.mjs";
|
|
15
|
-
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-
|
|
15
|
+
import { n as assertExperimentalSiteContextWorkflowsEnabled } from "./experimental-workflows-CSRjuEwS.mjs";
|
|
16
16
|
import { sql } from "kysely";
|
|
17
17
|
import { ulid } from "ulidx";
|
|
18
18
|
import { Role } from "@dineway-ai/auth";
|
|
@@ -24,10 +24,13 @@ interface RenderMediaRef {
|
|
|
24
24
|
}
|
|
25
25
|
declare function buildRenderMediaUrl(resolve: ((key: string) => string) | undefined, ref: RenderMediaRef): string;
|
|
26
26
|
//#endregion
|
|
27
|
+
//#region src/page/absolute-url.d.ts
|
|
28
|
+
declare function absolutizeMediaUrl(url: string | undefined, configuredSiteUrl: string | undefined, page: PublicPageContext): string | null;
|
|
29
|
+
//#endregion
|
|
27
30
|
//#region src/page/site-identity.d.ts
|
|
28
31
|
interface SiteIdentityInput {
|
|
29
32
|
favicon?: MediaReference;
|
|
30
33
|
}
|
|
31
34
|
declare function renderSiteIdentity(input: SiteIdentityInput | undefined): string;
|
|
32
35
|
//#endregion
|
|
33
|
-
export { type EmbedOptions, type EmbedResult, type ImageEmbed, type MediaValue, type PageMetadataContribution, type PublicComment, type PublicPageContext, type Widget, buildRenderMediaUrl, generateBaseSeoContributions, generateSiteSeoContributions, getCollectionInfo, getComments, getDinewayCollection, getEditMeta, getMediaProvider, getMenu, getPageRuntime, getSiteSettings, getTaxonomyTerms, getWidgetArea, renderFragments, renderPageMetadata, renderSiteIdentity, resolvePageMetadata, sanitizeContent, sanitizeHref };
|
|
36
|
+
export { type EmbedOptions, type EmbedResult, type ImageEmbed, type MediaValue, type PageMetadataContribution, type PublicComment, type PublicPageContext, type Widget, absolutizeMediaUrl, buildRenderMediaUrl, generateBaseSeoContributions, generateSiteSeoContributions, getCollectionInfo, getComments, getDinewayCollection, getEditMeta, getMediaProvider, getMenu, getPageRuntime, getSiteSettings, getTaxonomyTerms, getWidgetArea, renderFragments, renderPageMetadata, renderSiteIdentity, resolvePageMetadata, sanitizeContent, sanitizeHref };
|
|
@@ -64,6 +64,47 @@ function sanitizeContent(html) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/page/absolute-url.ts
|
|
69
|
+
const HTTP_URL_RE = /^https?:\/\//i;
|
|
70
|
+
const PROTOCOL_RELATIVE_RE = /^\/\//;
|
|
71
|
+
const PASSTHROUGH_SCHEME_RE = /^data:image\//i;
|
|
72
|
+
const OTHER_SCHEME_RE = /^[a-z][a-z0-9+.-]*:/i;
|
|
73
|
+
const WHITESPACE_OR_CONTROL_RE = /[\s\u0000-\u001f\u007f-\u009f]/;
|
|
74
|
+
const TRAILING_SLASH_RE = /\/$/;
|
|
75
|
+
function isUsableOrigin(origin) {
|
|
76
|
+
return origin !== "null" && origin !== "";
|
|
77
|
+
}
|
|
78
|
+
function resolveSiteOrigin(configuredSiteUrl, page) {
|
|
79
|
+
const candidates = [
|
|
80
|
+
configuredSiteUrl,
|
|
81
|
+
page.siteUrl,
|
|
82
|
+
page.url
|
|
83
|
+
];
|
|
84
|
+
for (const candidate of candidates) {
|
|
85
|
+
if (!candidate || typeof candidate !== "string") continue;
|
|
86
|
+
try {
|
|
87
|
+
const parsed = new URL(candidate);
|
|
88
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") continue;
|
|
89
|
+
if (!isUsableOrigin(parsed.origin)) continue;
|
|
90
|
+
return parsed.origin;
|
|
91
|
+
} catch {}
|
|
92
|
+
}
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
function absolutizeMediaUrl(url, configuredSiteUrl, page) {
|
|
96
|
+
if (!url) return null;
|
|
97
|
+
if (WHITESPACE_OR_CONTROL_RE.test(url)) return null;
|
|
98
|
+
if (HTTP_URL_RE.test(url)) return url;
|
|
99
|
+
if (PASSTHROUGH_SCHEME_RE.test(url)) return url;
|
|
100
|
+
if (PROTOCOL_RELATIVE_RE.test(url)) return null;
|
|
101
|
+
if (OTHER_SCHEME_RE.test(url)) return null;
|
|
102
|
+
const origin = resolveSiteOrigin(configuredSiteUrl, page);
|
|
103
|
+
if (!origin) return url;
|
|
104
|
+
const safePath = url.startsWith("/") ? url : `/${url}`;
|
|
105
|
+
return `${origin.replace(TRAILING_SLASH_RE, "")}${safePath}`;
|
|
106
|
+
}
|
|
107
|
+
|
|
67
108
|
//#endregion
|
|
68
109
|
//#region src/page/site-identity.ts
|
|
69
110
|
function renderSiteIdentity(input) {
|
|
@@ -77,4 +118,4 @@ function renderSiteIdentity(input) {
|
|
|
77
118
|
}
|
|
78
119
|
|
|
79
120
|
//#endregion
|
|
80
|
-
export { buildRenderMediaUrl, generateBaseSeoContributions, generateSiteSeoContributions, getCollectionInfo, getComments, getDinewayCollection, getEditMeta, getMediaProvider, getMenu, getPageRuntime, getSiteSettings, getTaxonomyTerms, getWidgetArea, renderFragments, renderPageMetadata, renderSiteIdentity, resolvePageMetadata, sanitizeContent, sanitizeHref };
|
|
121
|
+
export { absolutizeMediaUrl, buildRenderMediaUrl, generateBaseSeoContributions, generateSiteSeoContributions, getCollectionInfo, getComments, getDinewayCollection, getEditMeta, getMediaProvider, getMenu, getPageRuntime, getSiteSettings, getTaxonomyTerms, getWidgetArea, renderFragments, renderPageMetadata, renderSiteIdentity, resolvePageMetadata, sanitizeContent, sanitizeHref };
|
package/package.json
CHANGED
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
renderPageMetadata,
|
|
23
23
|
renderSiteIdentity,
|
|
24
24
|
resolvePageMetadata,
|
|
25
|
+
absolutizeMediaUrl,
|
|
25
26
|
type PageMetadataContribution,
|
|
26
27
|
type PublicPageContext,
|
|
27
28
|
} from "dineway/ui/server-runtime";
|
|
28
|
-
import { absolutizeMediaUrl } from "../page/absolute-url.js";
|
|
29
29
|
|
|
30
30
|
interface Props {
|
|
31
31
|
page: PublicPageContext;
|