dineway 0.1.26 → 0.1.27
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 +2 -2
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-CXQfCGRX.mjs → api-DHgai7zP.mjs} +1 -1
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +1 -1
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/seed.mjs +1 -1
- package/dist/astro/middleware.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +1 -1
- 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 +1 -1
- 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/themes/marketplace/_id_/index.mjs +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +1 -1
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/manifest.mjs +1 -1
- package/dist/astro/routes/api/mcp.mjs +1 -1
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- 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/well-known/auth.mjs +1 -1
- package/dist/astro/types.d.mts +2 -2
- package/dist/{bylines-D9TSSOe0.d.mts → bylines-Cb7nzI9t.d.mts} +17 -17
- package/dist/cli/index.mjs +122 -192
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{runtime-BM9sqnzO.d.mts → runtime-Cg87dCSm.d.mts} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/version-D-jCq-i4.mjs +6 -0
- package/package.json +3 -3
- package/dist/version-C-Dcb5bX.mjs +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $n as isParseError, Qn as ParseResult, Zn as OptionsRepository, er as parseBody, ir as handleError, nr as apiError, rr as apiSuccess, t as DinewayConfig, tr as parseQuery } from "../runtime-
|
|
1
|
+
import { $n as isParseError, Qn as ParseResult, Zn as OptionsRepository, er as parseBody, ir as handleError, nr as apiError, rr as apiSuccess, t as DinewayConfig, tr as parseQuery } from "../runtime-Cg87dCSm.mjs";
|
|
2
2
|
import { t as Database } from "../types-B1NksXAb.mjs";
|
|
3
3
|
import { at as StorageCollectionConfig, it as StorageCollection } from "../types-BIM7jwxr.mjs";
|
|
4
4
|
import "../types-BgE6gMFI.mjs";
|
|
5
5
|
import "../runner-pAnQS6iI.mjs";
|
|
6
6
|
import "../index-2tBfB_8X.mjs";
|
|
7
7
|
import "../index-CpbixmRL.mjs";
|
|
8
|
-
import "../bylines-
|
|
8
|
+
import "../bylines-Cb7nzI9t.mjs";
|
|
9
9
|
import "../types-BBETcziA.mjs";
|
|
10
10
|
import "../validate-BzUCAU2a.mjs";
|
|
11
11
|
import { Kysely } from "kysely";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as updateSectionBody, $n as cursorPaginationQuery, $t as createCommentBody, A as userDetailSchema, An as mediaUploadUrlBody, At as passkeyRegisterVerifyBody, B as wpRewriteUrlsBody, Bn as contentScheduleBody, Bt as contextEntryCreateBody, C as updateWidgetBody, Cn as mediaExistingResponseSchema, Ct as authMeActionBody, D as widgetSchema, Dn as mediaProviderListQuery, Dt as magicLinkSendBody, E as widgetAreaWithWidgetsSchema, En as mediaListResponseSchema, Et as inviteRegisterOptionsBody, F as importProbeBody, Fn as contentListQuery, Ft as reviewRequestListQuery, G as searchResultSchema, Gn as contentTranslationsResponseSchema, Gt as contextEntrySupersedeBody, H as searchQuery, Hn as contentSeoSchema, Ht as contextEntryListQuery, I as wpMediaImportBody, In as contentListResponseSchema, It as reviewRequestResolveBody, J as siteSettingsSchema, Jn as trashedContentItemSchema, Jt as commentBulkResponseSchema, K as searchSuggestQuery, Kn as contentTrashQuery, Kt as adminCommentListResponseSchema, L as wpPluginAnalyzeBody, Ln as contentPreviewUrlBody, Lt as hitlRequestListQuery, M as userSchema, Mn as contentCompareResponseSchema, Mt as passkeyVerifyBody, N as userUpdateBody, Nn as contentCreateBody, Nt as signupCompleteBody, O as allowedDomainCreateBody, On as mediaResponseSchema, Ot as passkeyOptionsBody, P as usersListQuery, Pn as contentItemSchema, Pt as signupRequestBody, Q as sectionsListQuery, Qn as countResponseSchema, Qt as commentStatusBody, R as wpPluginExecuteBody, Rn as contentPublishBody, Rt as hitlRequestResolveBody, S as reorderWidgetsBody, Sn as mediaConfirmResponseSchema, St as updateMenuItemBody, T as widgetAreaWithWidgetsAndCountSchema, Tn as mediaListQuery, Tt as inviteCreateBody, U as searchRebuildBody, Un as contentTermsBody, Ut as contextEntryReviewBody, V as searchEnableBody, Vn as contentSeoInput, Vt as contextEntryDiffQuery, W as searchResponseSchema, Wn as contentTranslationSchema, Wt as contextEntryStaleQuery, X as sectionListResponseSchema, Xn as VALID_ROLE_LEVELS, Xt as commentListQuery, Y as createSectionBody, Yn as trashedContentListResponseSchema, Yt as commentCountsResponseSchema, Z as sectionSchema, Zn as apiErrorSchema, Zt as commentSchema, _ as redirectSchema, _n as updateCollectionBody, _t as menuSchema, a as bylineUpdateBody, an as collectionSchema, ar as roleLevel, at as termGetResponseSchema, b as createWidgetAreaBody, bn as formatFileSize, bt as reorderMenuItemsBody, c as createRedirectBody, cn as createFieldBody, ct as termSchema, d as notFoundListResponseSchema, dn as fieldResponseSchema, dt as updateTermBody, en as publicCommentListResponseSchema, er as deleteResponseSchema, et as createTaxonomyDefBody, f as notFoundPruneBody, fn as fieldSchema, ft as createMenuBody, g as redirectListResponseSchema, gn as schemaExportQuery, gt as menuListItemSchema, h as notFoundSummarySchema, hn as orphanedTableSchema, ht as menuItemTypeEnum, i as bylineSummarySchema, in as collectionResponseSchema, ir as offsetPaginationQuery, it as taxonomyListResponseSchema, j as userListResponseSchema, jn as mediaUploadUrlResponseSchema, jt as passkeyRenameBody, k as allowedDomainUpdateBody, kn as mediaUpdateBody, kt as passkeyRegisterOptionsBody, l as notFoundEntrySchema, ln as fieldListResponseSchema, lt as termTranslationsSchema, m as notFoundSummaryResponseSchema, mn as orphanedTableListResponseSchema, mt as menuItemSchema, n as bylineCreditSchema, nn as collectionGetQuery, nr as localeCode, nt as taxonomyDefSchema, o as bylinesListQuery, on as collectionWithFieldsResponseSchema, or as slugPattern, ot as termListResponseSchema, p as notFoundSummaryQuery, pn as orphanRegisterBody, pt as createMenuItemBody, q as settingsUpdateBody, qn as contentUpdateBody, qt as commentBulkBody, r as bylineListResponseSchema, rn as collectionListResponseSchema, rr as localeFilterQuery, rt as taxonomyDefTranslationsSchema, s as contentBylineInputSchema, sn as createCollectionBody, sr as successEnvelope, st as termResponseSchema, t as bylineCreateBody, tn as publicCommentSchema, tr as httpUrl, tt as createTermBody, u as notFoundListQuery, un as fieldReorderBody, ut as termWithCountSchema, v as redirectsListQuery, vn as updateFieldBody, vt as menuTranslationsSchema, w as widgetAreaSchema, wn as mediaItemSchema, wt as inviteCompleteBody, x as createWidgetBody, xn as mediaConfirmBody, xt as updateMenuBody, y as updateRedirectBody, yn as DEFAULT_MAX_UPLOAD_SIZE, yt as menuWithItemsSchema, z as wpPrepareBody, zn as contentResponseSchema, zt as siteBriefingQuery } from "../../bylines-
|
|
1
|
+
import { $ as updateSectionBody, $n as cursorPaginationQuery, $t as createCommentBody, A as userDetailSchema, An as mediaUploadUrlBody, At as passkeyRegisterVerifyBody, B as wpRewriteUrlsBody, Bn as contentScheduleBody, Bt as contextEntryCreateBody, C as updateWidgetBody, Cn as mediaExistingResponseSchema, Ct as authMeActionBody, D as widgetSchema, Dn as mediaProviderListQuery, Dt as magicLinkSendBody, E as widgetAreaWithWidgetsSchema, En as mediaListResponseSchema, Et as inviteRegisterOptionsBody, F as importProbeBody, Fn as contentListQuery, Ft as reviewRequestListQuery, G as searchResultSchema, Gn as contentTranslationsResponseSchema, Gt as contextEntrySupersedeBody, H as searchQuery, Hn as contentSeoSchema, Ht as contextEntryListQuery, I as wpMediaImportBody, In as contentListResponseSchema, It as reviewRequestResolveBody, J as siteSettingsSchema, Jn as trashedContentItemSchema, Jt as commentBulkResponseSchema, K as searchSuggestQuery, Kn as contentTrashQuery, Kt as adminCommentListResponseSchema, L as wpPluginAnalyzeBody, Ln as contentPreviewUrlBody, Lt as hitlRequestListQuery, M as userSchema, Mn as contentCompareResponseSchema, Mt as passkeyVerifyBody, N as userUpdateBody, Nn as contentCreateBody, Nt as signupCompleteBody, O as allowedDomainCreateBody, On as mediaResponseSchema, Ot as passkeyOptionsBody, P as usersListQuery, Pn as contentItemSchema, Pt as signupRequestBody, Q as sectionsListQuery, Qn as countResponseSchema, Qt as commentStatusBody, R as wpPluginExecuteBody, Rn as contentPublishBody, Rt as hitlRequestResolveBody, S as reorderWidgetsBody, Sn as mediaConfirmResponseSchema, St as updateMenuItemBody, T as widgetAreaWithWidgetsAndCountSchema, Tn as mediaListQuery, Tt as inviteCreateBody, U as searchRebuildBody, Un as contentTermsBody, Ut as contextEntryReviewBody, V as searchEnableBody, Vn as contentSeoInput, Vt as contextEntryDiffQuery, W as searchResponseSchema, Wn as contentTranslationSchema, Wt as contextEntryStaleQuery, X as sectionListResponseSchema, Xn as VALID_ROLE_LEVELS, Xt as commentListQuery, Y as createSectionBody, Yn as trashedContentListResponseSchema, Yt as commentCountsResponseSchema, Z as sectionSchema, Zn as apiErrorSchema, Zt as commentSchema, _ as redirectSchema, _n as updateCollectionBody, _t as menuSchema, a as bylineUpdateBody, an as collectionSchema, ar as roleLevel, at as termGetResponseSchema, b as createWidgetAreaBody, bn as formatFileSize, bt as reorderMenuItemsBody, c as createRedirectBody, cn as createFieldBody, ct as termSchema, d as notFoundListResponseSchema, dn as fieldResponseSchema, dt as updateTermBody, en as publicCommentListResponseSchema, er as deleteResponseSchema, et as createTaxonomyDefBody, f as notFoundPruneBody, fn as fieldSchema, ft as createMenuBody, g as redirectListResponseSchema, gn as schemaExportQuery, gt as menuListItemSchema, h as notFoundSummarySchema, hn as orphanedTableSchema, ht as menuItemTypeEnum, i as bylineSummarySchema, in as collectionResponseSchema, ir as offsetPaginationQuery, it as taxonomyListResponseSchema, j as userListResponseSchema, jn as mediaUploadUrlResponseSchema, jt as passkeyRenameBody, k as allowedDomainUpdateBody, kn as mediaUpdateBody, kt as passkeyRegisterOptionsBody, l as notFoundEntrySchema, ln as fieldListResponseSchema, lt as termTranslationsSchema, m as notFoundSummaryResponseSchema, mn as orphanedTableListResponseSchema, mt as menuItemSchema, n as bylineCreditSchema, nn as collectionGetQuery, nr as localeCode, nt as taxonomyDefSchema, o as bylinesListQuery, on as collectionWithFieldsResponseSchema, or as slugPattern, ot as termListResponseSchema, p as notFoundSummaryQuery, pn as orphanRegisterBody, pt as createMenuItemBody, q as settingsUpdateBody, qn as contentUpdateBody, qt as commentBulkBody, r as bylineListResponseSchema, rn as collectionListResponseSchema, rr as localeFilterQuery, rt as taxonomyDefTranslationsSchema, s as contentBylineInputSchema, sn as createCollectionBody, sr as successEnvelope, st as termResponseSchema, t as bylineCreateBody, tn as publicCommentSchema, tr as httpUrl, tt as createTermBody, u as notFoundListQuery, un as fieldReorderBody, ut as termWithCountSchema, v as redirectsListQuery, vn as updateFieldBody, vt as menuTranslationsSchema, w as widgetAreaSchema, wn as mediaItemSchema, wt as inviteCompleteBody, x as createWidgetBody, xn as mediaConfirmBody, xt as updateMenuBody, y as updateRedirectBody, yn as DEFAULT_MAX_UPLOAD_SIZE, yt as menuWithItemsSchema, z as wpPrepareBody, zn as contentResponseSchema, zt as siteBriefingQuery } from "../../bylines-Cb7nzI9t.mjs";
|
|
2
2
|
import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
|
|
3
3
|
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
@@ -16,7 +16,7 @@ import { n as requestCached } from "./request-cache-BpwuE2ix.mjs";
|
|
|
16
16
|
import { u as PluginStateRepository } from "./briefing-Jsxs587i.mjs";
|
|
17
17
|
import { n as SchemaRegistry, t as SchemaError } from "./registry-i__XP2WV.mjs";
|
|
18
18
|
import { n as hashString } from "./hash-DFFrkivP.mjs";
|
|
19
|
-
import { n as VERSION, t as COMMIT } from "./version-
|
|
19
|
+
import { n as VERSION, t as COMMIT } from "./version-D-jCq-i4.mjs";
|
|
20
20
|
import { i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-C6fzQoWn.mjs";
|
|
21
21
|
import { t as DinewayStorageError } from "./types-CNNQ8l0v.mjs";
|
|
22
22
|
import { sql } from "kysely";
|
package/dist/astro/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as ContentItem } from "../types-DvwHUku7.mjs";
|
|
2
|
-
import { Kn as MediaItem, a as S3StorageConfig, i as LocalStorageConfig, o as StorageDescriptor, r as getStoredConfig, t as DinewayConfig } from "../runtime-
|
|
2
|
+
import { Kn as MediaItem, a as S3StorageConfig, i as LocalStorageConfig, o as StorageDescriptor, r as getStoredConfig, t as DinewayConfig } from "../runtime-Cg87dCSm.mjs";
|
|
3
3
|
import "../types-B1NksXAb.mjs";
|
|
4
4
|
import { X as ResolvedPlugin } from "../types-BIM7jwxr.mjs";
|
|
5
5
|
import "../types-BgE6gMFI.mjs";
|
|
6
6
|
import "../runner-pAnQS6iI.mjs";
|
|
7
7
|
import "../index-2tBfB_8X.mjs";
|
|
8
8
|
import "../index-CpbixmRL.mjs";
|
|
9
|
-
import "../bylines-
|
|
9
|
+
import "../bylines-Cb7nzI9t.mjs";
|
|
10
10
|
import "../types-BBETcziA.mjs";
|
|
11
11
|
import "../validate-BzUCAU2a.mjs";
|
|
12
12
|
import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
|
package/dist/astro/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
1
|
+
import { n as VERSION, t as COMMIT } from "../version-D-jCq-i4.mjs";
|
|
2
2
|
import { t as defaultSeed } from "../default-5A3XVR7L.mjs";
|
|
3
3
|
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-3RuuoFjC.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../runtime-
|
|
1
|
+
import "../../runtime-Cg87dCSm.mjs";
|
|
2
2
|
import "../../types-B1NksXAb.mjs";
|
|
3
3
|
import "../../types-BIM7jwxr.mjs";
|
|
4
4
|
import "../../types-BgE6gMFI.mjs";
|
|
5
5
|
import "../../runner-pAnQS6iI.mjs";
|
|
6
6
|
import "../../index-2tBfB_8X.mjs";
|
|
7
7
|
import "../../index-CpbixmRL.mjs";
|
|
8
|
-
import "../../bylines-
|
|
8
|
+
import "../../bylines-Cb7nzI9t.mjs";
|
|
9
9
|
import "../../types-BBETcziA.mjs";
|
|
10
10
|
import "../../validate-BzUCAU2a.mjs";
|
|
11
11
|
import { DinewayHandlers } from "../types.mjs";
|
|
@@ -16,7 +16,7 @@ async function seedApiTokenFromHash(db, input) {
|
|
|
16
16
|
const id = ulid();
|
|
17
17
|
await db.insertInto("_dineway_api_tokens").values({
|
|
18
18
|
id,
|
|
19
|
-
name: input.name ?? "
|
|
19
|
+
name: input.name ?? "Initial admin token",
|
|
20
20
|
token_hash: input.tokenHash,
|
|
21
21
|
prefix: input.prefix,
|
|
22
22
|
user_id: input.userId,
|
|
@@ -25,7 +25,7 @@ import "../byline-DpNNSjET.mjs";
|
|
|
25
25
|
import { t as normalizeMediaValue } from "../normalize-BY_EJnd9.mjs";
|
|
26
26
|
import "../placeholder-b0Ufu0La.mjs";
|
|
27
27
|
import "../seo-BPb_reaG.mjs";
|
|
28
|
-
import { $ as validateRev, 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, 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, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "../api-
|
|
28
|
+
import { $ as validateRev, 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, 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, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate, q as handleContentRestore, z as handleContentDiscardDraft } from "../api-DHgai7zP.mjs";
|
|
29
29
|
import { n as requestCached } from "../request-cache-BpwuE2ix.mjs";
|
|
30
30
|
import "../dashboard-BC9bgPOH.mjs";
|
|
31
31
|
import { u as PluginStateRepository } from "../briefing-Jsxs587i.mjs";
|
|
@@ -37,7 +37,7 @@ import { c as createPublicMediaUrlResolver } from "../settings-DORe02PC.mjs";
|
|
|
37
37
|
import "../briefing-DD82WaEy.mjs";
|
|
38
38
|
import "../review-requests-DuIxM4YM.mjs";
|
|
39
39
|
import { n as hashString } from "../hash-DFFrkivP.mjs";
|
|
40
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
40
|
+
import { n as VERSION, t as COMMIT } from "../version-D-jCq-i4.mjs";
|
|
41
41
|
import "../query-BnRpB09I.mjs";
|
|
42
42
|
import "../zod-generator-C4BgFBZV.mjs";
|
|
43
43
|
import "../schema-U-SeFWwn.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import "../../../../../../api-
|
|
17
|
+
import "../../../../../../api-DHgai7zP.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import { c as handlePluginGet, o as handlePluginDisable } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import "../../../../../../api-
|
|
17
|
+
import "../../../../../../api-DHgai7zP.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import { c as handlePluginGet, s as handlePluginEnable } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import "../../../../../../api-
|
|
16
|
+
import "../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import { c as handlePluginGet } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import { a as handleMarketplaceUninstall } from "../../../../../../api-
|
|
17
|
+
import { a as handleMarketplaceUninstall } from "../../../../../../api-DHgai7zP.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import { l as handlePluginList } from "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import { c as handleMarketplaceUpdatePreview, o as handleMarketplaceUpdate } from "../../../../../../api-
|
|
17
|
+
import { c as handleMarketplaceUpdatePreview, o as handleMarketplaceUpdate } from "../../../../../../api-DHgai7zP.mjs";
|
|
18
18
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import "../../../../../api-
|
|
16
|
+
import "../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import { l as handlePluginList } from "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { t as handleMarketplaceGetPlugin } from "../../../../../../../api-
|
|
16
|
+
import { t as handleMarketplaceGetPlugin } from "../../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
14
14
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
15
15
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
16
16
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
17
|
-
import { n as handleMarketplaceInstall, r as handleMarketplaceInstallPreview } from "../../../../../../../api-
|
|
17
|
+
import { n as handleMarketplaceInstall, r as handleMarketplaceInstallPreview } from "../../../../../../../api-DHgai7zP.mjs";
|
|
18
18
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
19
19
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
20
20
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { i as handleMarketplaceSearch } from "../../../../../../api-
|
|
16
|
+
import { i as handleMarketplaceSearch } from "../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { s as handleMarketplaceUpdateCheck } from "../../../../../api-
|
|
16
|
+
import { s as handleMarketplaceUpdateCheck } from "../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { l as handleThemeGetDetail } from "../../../../../../../api-
|
|
16
|
+
import { l as handleThemeGetDetail } from "../../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { u as handleThemeSearch } from "../../../../../../api-
|
|
16
|
+
import { u as handleThemeSearch } from "../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VERSION, t as COMMIT } from "../../../version-
|
|
1
|
+
import { n as VERSION, t as COMMIT } from "../../../version-D-jCq-i4.mjs";
|
|
2
2
|
import { r as handleError } from "../../../error-DLkgOP5m.mjs";
|
|
3
3
|
import { t as getAuthMode } from "../../../mode-Bd55iLcP.mjs";
|
|
4
4
|
import { i as experimentalSiteContextWorkflowsEnabled } from "../../../experimental-workflows-BbZbIEZp.mjs";
|
|
@@ -14,7 +14,7 @@ import "../../../fts-manager-DnfOsF4s.mjs";
|
|
|
14
14
|
import "../../../registry-i__XP2WV.mjs";
|
|
15
15
|
import "../../../loader-p2imNN98.mjs";
|
|
16
16
|
import "../../../settings-DORe02PC.mjs";
|
|
17
|
-
import { n as VERSION } from "../../../version-
|
|
17
|
+
import { n as VERSION } from "../../../version-D-jCq-i4.mjs";
|
|
18
18
|
import "../../../query-BnRpB09I.mjs";
|
|
19
19
|
import "../../../zod-generator-C4BgFBZV.mjs";
|
|
20
20
|
import "../../../schema-U-SeFWwn.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VERSION } from "../../../version-
|
|
1
|
+
import { n as VERSION } from "../../../version-D-jCq-i4.mjs";
|
|
2
2
|
import { r as handleError } from "../../../error-DLkgOP5m.mjs";
|
|
3
3
|
import { $ as createMenuBody, $t as contentListQuery, A as searchRebuildBody, B as updateSectionBody, Bt as mediaConfirmResponseSchema, C as userDetailSchema, D as usersListQuery, Dt as fieldListResponseSchema, E as userUpdateBody, Et as createFieldBody, F as siteSettingsSchema, Ft as updateCollectionBody, G as taxonomyListResponseSchema, H as createTermBody, I as createSectionBody, It as updateFieldBody, J as termResponseSchema, Jt as mediaUploadUrlBody, K as termGetResponseSchema, Kt as mediaResponseSchema, L as sectionListResponseSchema, Lt as DEFAULT_MAX_UPLOAD_SIZE, Mn as successEnvelope, Mt as orphanedTableListResponseSchema, N as searchSuggestQuery, O as searchEnableBody, Ot as fieldReorderBody, P as settingsUpdateBody, Q as updateTermBody, Qt as contentItemSchema, R as sectionSchema, S as allowedDomainUpdateBody, Sn as apiErrorSchema, St as collectionResponseSchema, T as userSchema, Tn as deleteResponseSchema, Tt as createCollectionBody, Ut as mediaListQuery, Vt as mediaExistingResponseSchema, Wt as mediaListResponseSchema, Xt as contentCompareResponseSchema, Yt as mediaUploadUrlResponseSchema, Zt as contentCreateBody, _ as widgetAreaSchema, _t as createCommentBody, a as notFoundPruneBody, b as widgetSchema, bt as collectionGetQuery, ct as updateMenuBody, d as redirectsListQuery, dn as contentUpdateBody, dt as commentBulkBody, en as contentListResponseSchema, et as createMenuItemBody, f as updateRedirectBody, ft as commentBulkResponseSchema, g as updateWidgetBody, gt as commentStatusBody, h as reorderWidgetsBody, ht as commentSchema, i as notFoundListResponseSchema, in as contentScheduleBody, j as searchResponseSchema, jt as orphanRegisterBody, k as searchQuery, kt as fieldResponseSchema, l as redirectListResponseSchema, ln as contentTranslationsResponseSchema, lt as updateMenuItemBody, m as createWidgetBody, mt as commentListQuery, nn as contentPublishBody, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as trashedContentListResponseSchema, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaUpdateBody, r as notFoundListQuery, rn as contentResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentTermsBody, st as reorderMenuItemsBody, t as createRedirectBody, tt as menuItemSchema, u as redirectSchema, un as contentTrashQuery, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vt as publicCommentListResponseSchema, w as userListResponseSchema, wt as collectionWithFieldsResponseSchema, x as allowedDomainCreateBody, xt as collectionListResponseSchema, y as widgetAreaWithWidgetsSchema, z as sectionsListQuery, zt as mediaConfirmBody } from "../../../redirects-CoYlqu8e.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { b as handleSchemaFieldDelete, w as handleSchemaFieldUpdate, x as handleSchemaFieldGet } from "../../../../../../../api-
|
|
16
|
+
import { b as handleSchemaFieldDelete, w as handleSchemaFieldUpdate, x as handleSchemaFieldGet } from "../../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { S as handleSchemaFieldList, y as handleSchemaFieldCreate } from "../../../../../../../api-
|
|
16
|
+
import { S as handleSchemaFieldList, y as handleSchemaFieldCreate } from "../../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { C as handleSchemaFieldReorder } from "../../../../../../../api-
|
|
16
|
+
import { C as handleSchemaFieldReorder } from "../../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { g as handleSchemaCollectionGet, h as handleSchemaCollectionDelete, v as handleSchemaCollectionUpdate } from "../../../../../../api-
|
|
16
|
+
import { g as handleSchemaCollectionGet, h as handleSchemaCollectionDelete, v as handleSchemaCollectionUpdate } from "../../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { _ as handleSchemaCollectionList, m as handleSchemaCollectionCreate } from "../../../../../api-
|
|
16
|
+
import { _ as handleSchemaCollectionList, m as handleSchemaCollectionCreate } from "../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { p as handleOrphanedTableRegister } from "../../../../../api-
|
|
16
|
+
import { p as handleOrphanedTableRegister } from "../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -13,7 +13,7 @@ import "../../../../../menus-DOaL6NaF.mjs";
|
|
|
13
13
|
import "../../../../../redirect-BaVvo2te.mjs";
|
|
14
14
|
import "../../../../../byline-DpNNSjET.mjs";
|
|
15
15
|
import "../../../../../seo-BPb_reaG.mjs";
|
|
16
|
-
import { f as handleOrphanedTableList } from "../../../../../api-
|
|
16
|
+
import { f as handleOrphanedTableList } from "../../../../../api-DHgai7zP.mjs";
|
|
17
17
|
import "../../../../../request-cache-BpwuE2ix.mjs";
|
|
18
18
|
import "../../../../../dashboard-BC9bgPOH.mjs";
|
|
19
19
|
import "../../../../../briefing-Jsxs587i.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as OptionsRepository } from "../../../../options-BF11H_FD.mjs";
|
|
2
|
-
import { n as VERSION } from "../../../../version-
|
|
2
|
+
import { n as VERSION } from "../../../../version-D-jCq-i4.mjs";
|
|
3
3
|
import { t as getAuthMode } from "../../../../mode-Bd55iLcP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/astro/routes/api/well-known/auth.ts
|
package/dist/astro/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as ContentItem } from "../types-DvwHUku7.mjs";
|
|
2
|
-
import { Kn as MediaItem, en as SandboxRunner, mn as MediaResponse, nt as HookPipeline, or as ContentListResponse, pn as MediaListResponse, sr as ContentResponse, t as DinewayConfig, tt as EmailPipeline } from "../runtime-
|
|
2
|
+
import { Kn as MediaItem, en as SandboxRunner, mn as MediaResponse, nt as HookPipeline, or as ContentListResponse, pn as MediaListResponse, sr as ContentResponse, t as DinewayConfig, tt as EmailPipeline } from "../runtime-Cg87dCSm.mjs";
|
|
3
3
|
import { t as Database } from "../types-B1NksXAb.mjs";
|
|
4
4
|
import { A as PageMetadataContribution, D as PageFragmentContribution, X as ResolvedPlugin, ct as Element, q as PublicPageContext } from "../types-BIM7jwxr.mjs";
|
|
5
5
|
import "../types-BgE6gMFI.mjs";
|
|
@@ -8,7 +8,7 @@ import "../runner-pAnQS6iI.mjs";
|
|
|
8
8
|
import "../index-2tBfB_8X.mjs";
|
|
9
9
|
import "../index-CpbixmRL.mjs";
|
|
10
10
|
import { d as Storage } from "../types-BYjPylrZ.mjs";
|
|
11
|
-
import "../bylines-
|
|
11
|
+
import "../bylines-Cb7nzI9t.mjs";
|
|
12
12
|
import "../types-BBETcziA.mjs";
|
|
13
13
|
import "../validate-BzUCAU2a.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";
|
|
522
523
|
drafts: "drafts";
|
|
523
524
|
revisions: "revisions";
|
|
524
525
|
preview: "preview";
|
|
525
526
|
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";
|
|
538
539
|
drafts: "drafts";
|
|
539
540
|
revisions: "revisions";
|
|
540
541
|
preview: "preview";
|
|
541
542
|
scheduling: "scheduling";
|
|
542
|
-
search: "search";
|
|
543
543
|
}>>>;
|
|
544
544
|
urlPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
545
|
hasSeo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -560,15 +560,15 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
560
560
|
number: "number";
|
|
561
561
|
boolean: "boolean";
|
|
562
562
|
file: "file";
|
|
563
|
-
image: "image";
|
|
564
|
-
url: "url";
|
|
565
563
|
slug: "slug";
|
|
564
|
+
url: "url";
|
|
566
565
|
datetime: "datetime";
|
|
567
566
|
text: "text";
|
|
568
567
|
integer: "integer";
|
|
569
568
|
select: "select";
|
|
570
569
|
multiSelect: "multiSelect";
|
|
571
570
|
portableText: "portableText";
|
|
571
|
+
image: "image";
|
|
572
572
|
reference: "reference";
|
|
573
573
|
json: "json";
|
|
574
574
|
repeater: "repeater";
|
|
@@ -687,15 +687,15 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
687
687
|
number: "number";
|
|
688
688
|
boolean: "boolean";
|
|
689
689
|
file: "file";
|
|
690
|
-
image: "image";
|
|
691
|
-
url: "url";
|
|
692
690
|
slug: "slug";
|
|
691
|
+
url: "url";
|
|
693
692
|
datetime: "datetime";
|
|
694
693
|
text: "text";
|
|
695
694
|
integer: "integer";
|
|
696
695
|
select: "select";
|
|
697
696
|
multiSelect: "multiSelect";
|
|
698
697
|
portableText: "portableText";
|
|
698
|
+
image: "image";
|
|
699
699
|
reference: "reference";
|
|
700
700
|
json: "json";
|
|
701
701
|
repeater: "repeater";
|
|
@@ -752,15 +752,15 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
752
752
|
number: "number";
|
|
753
753
|
boolean: "boolean";
|
|
754
754
|
file: "file";
|
|
755
|
-
image: "image";
|
|
756
|
-
url: "url";
|
|
757
755
|
slug: "slug";
|
|
756
|
+
url: "url";
|
|
758
757
|
datetime: "datetime";
|
|
759
758
|
text: "text";
|
|
760
759
|
integer: "integer";
|
|
761
760
|
select: "select";
|
|
762
761
|
multiSelect: "multiSelect";
|
|
763
762
|
portableText: "portableText";
|
|
763
|
+
image: "image";
|
|
764
764
|
reference: "reference";
|
|
765
765
|
json: "json";
|
|
766
766
|
repeater: "repeater";
|
|
@@ -806,15 +806,15 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
806
806
|
number: "number";
|
|
807
807
|
boolean: "boolean";
|
|
808
808
|
file: "file";
|
|
809
|
-
image: "image";
|
|
810
|
-
url: "url";
|
|
811
809
|
slug: "slug";
|
|
810
|
+
url: "url";
|
|
812
811
|
datetime: "datetime";
|
|
813
812
|
text: "text";
|
|
814
813
|
integer: "integer";
|
|
815
814
|
select: "select";
|
|
816
815
|
multiSelect: "multiSelect";
|
|
817
816
|
portableText: "portableText";
|
|
817
|
+
image: "image";
|
|
818
818
|
reference: "reference";
|
|
819
819
|
json: "json";
|
|
820
820
|
repeater: "repeater";
|
|
@@ -843,15 +843,15 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
843
843
|
number: "number";
|
|
844
844
|
boolean: "boolean";
|
|
845
845
|
file: "file";
|
|
846
|
-
image: "image";
|
|
847
|
-
url: "url";
|
|
848
846
|
slug: "slug";
|
|
847
|
+
url: "url";
|
|
849
848
|
datetime: "datetime";
|
|
850
849
|
text: "text";
|
|
851
850
|
integer: "integer";
|
|
852
851
|
select: "select";
|
|
853
852
|
multiSelect: "multiSelect";
|
|
854
853
|
portableText: "portableText";
|
|
854
|
+
image: "image";
|
|
855
855
|
reference: "reference";
|
|
856
856
|
json: "json";
|
|
857
857
|
repeater: "repeater";
|
|
@@ -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
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1026
1025
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1026
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1027
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1027
1028
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1028
1029
|
true: "true";
|
|
1029
1030
|
false: "false";
|
|
1030
1031
|
}>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
|
|
1031
1032
|
contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
|
|
1032
1033
|
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,6 +1051,7 @@ 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";
|
|
1054
1055
|
brand_voice: "brand_voice";
|
|
1055
1056
|
seo_strategy: "seo_strategy";
|
|
1056
1057
|
audience: "audience";
|
|
@@ -1060,7 +1061,6 @@ declare const contextEntryCreateBody: z.ZodObject<{
|
|
|
1060
1061
|
migration_note: "migration_note";
|
|
1061
1062
|
plugin_note: "plugin_note";
|
|
1062
1063
|
agent_reasoning: "agent_reasoning";
|
|
1063
|
-
decision: "decision";
|
|
1064
1064
|
risk: "risk";
|
|
1065
1065
|
content_gap: "content_gap";
|
|
1066
1066
|
style_exception: "style_exception";
|
|
@@ -1075,6 +1075,7 @@ 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";
|
|
1078
1079
|
brand_voice: "brand_voice";
|
|
1079
1080
|
seo_strategy: "seo_strategy";
|
|
1080
1081
|
audience: "audience";
|
|
@@ -1084,7 +1085,6 @@ declare const contextEntrySupersedeBody: z.ZodObject<{
|
|
|
1084
1085
|
migration_note: "migration_note";
|
|
1085
1086
|
plugin_note: "plugin_note";
|
|
1086
1087
|
agent_reasoning: "agent_reasoning";
|
|
1087
|
-
decision: "decision";
|
|
1088
1088
|
risk: "risk";
|
|
1089
1089
|
content_gap: "content_gap";
|
|
1090
1090
|
style_exception: "style_exception";
|
|
@@ -1520,8 +1520,8 @@ declare const termGetResponseSchema: z.ZodObject<{
|
|
|
1520
1520
|
//#region src/api/schemas/sections.d.ts
|
|
1521
1521
|
declare const sectionsListQuery: z.ZodObject<{
|
|
1522
1522
|
source: z.ZodOptional<z.ZodEnum<{
|
|
1523
|
-
user: "user";
|
|
1524
1523
|
theme: "theme";
|
|
1524
|
+
user: "user";
|
|
1525
1525
|
import: "import";
|
|
1526
1526
|
}>>;
|
|
1527
1527
|
search: z.ZodOptional<z.ZodString>;
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1541,17 +1541,6 @@ async function writeForgewayCredentials(credentials, cwd) {
|
|
|
1541
1541
|
store.credentials = credentials;
|
|
1542
1542
|
await writeStore(store, cwd);
|
|
1543
1543
|
}
|
|
1544
|
-
async function readForgewayProjectSecret(projectId, cwd) {
|
|
1545
|
-
return (await readStore(cwd)).projects?.[projectId] ?? null;
|
|
1546
|
-
}
|
|
1547
|
-
async function writeForgewayProjectSecret(projectId, secret, cwd) {
|
|
1548
|
-
const store = await readStore(cwd);
|
|
1549
|
-
store.projects = {
|
|
1550
|
-
...store.projects,
|
|
1551
|
-
[projectId]: secret
|
|
1552
|
-
};
|
|
1553
|
-
await writeStore(store, cwd);
|
|
1554
|
-
}
|
|
1555
1544
|
function shadowGrantKey(platformApiUrl, placeId) {
|
|
1556
1545
|
return `${platformApiUrl.replace(TRAILING_SLASH_PATTERN$1, "")}#${placeId}`;
|
|
1557
1546
|
}
|
|
@@ -1577,7 +1566,6 @@ async function writeForgewayShadowGrant(grant, cwd) {
|
|
|
1577
1566
|
//#endregion
|
|
1578
1567
|
//#region src/cli/commands/deploy/targets/forgeway.ts
|
|
1579
1568
|
const DEFAULT_PLATFORM_API_URL = "https://api.dineway.ai";
|
|
1580
|
-
const DEFAULT_SITE_BASE_DOMAIN = "dineway.site";
|
|
1581
1569
|
const DATABASE_ENV_VAR_NAMES = ["DINEWAY_DATABASE_URL", "DINEWAY_DATABASE_AUTH_TOKEN"];
|
|
1582
1570
|
const POLL_INTERVAL_MS$1 = 5e3;
|
|
1583
1571
|
const POLL_TIMEOUT_MS$1 = 3e5;
|
|
@@ -1594,6 +1582,7 @@ const BACKSLASH_PATTERN = /\\/g;
|
|
|
1594
1582
|
const DIACRITICS_PATTERN = /[\u0300-\u036f]/g;
|
|
1595
1583
|
const NON_COMPARE_PATTERN = /[^\p{Letter}\p{Number}]+/gu;
|
|
1596
1584
|
const LOCATION_PARTS_PATTERN = /[,;|/]+|\s+-\s+/u;
|
|
1585
|
+
const SHADOW_EMAIL_PATTERN = /^shadow_[a-f0-9]{16}@dineway\.ai$/i;
|
|
1597
1586
|
const EXCLUDE_PATTERNS = [
|
|
1598
1587
|
"node_modules",
|
|
1599
1588
|
".git",
|
|
@@ -1634,7 +1623,7 @@ function normalizeForgewayUser(user) {
|
|
|
1634
1623
|
name: user.profile?.name ?? user.name ?? user.email,
|
|
1635
1624
|
email: user.email,
|
|
1636
1625
|
avatarUrl: user.profile?.avatar_url ?? user.avatarUrl ?? user.avatar_url ?? null,
|
|
1637
|
-
emailVerified: user.emailVerified ?? user.email_verified ??
|
|
1626
|
+
emailVerified: user.emailVerified ?? user.email_verified ?? false
|
|
1638
1627
|
};
|
|
1639
1628
|
}
|
|
1640
1629
|
function getFetch(deps) {
|
|
@@ -1676,79 +1665,35 @@ async function parseErrorResponse(response) {
|
|
|
1676
1665
|
}
|
|
1677
1666
|
return `Forgeway request failed: ${response.status}`;
|
|
1678
1667
|
}
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
const password = getEnv("FORGEWAY_PASSWORD");
|
|
1682
|
-
if (!email || !password) throw new Error("FORGEWAY_EMAIL and FORGEWAY_PASSWORD are required for admin login.");
|
|
1683
|
-
const response = await forgewayRequest(`${platformApiUrl}/api/auth/admin/sessions`, {
|
|
1684
|
-
method: "POST",
|
|
1685
|
-
headers: { "Content-Type": "application/json" },
|
|
1686
|
-
body: JSON.stringify({
|
|
1687
|
-
email,
|
|
1688
|
-
password
|
|
1689
|
-
})
|
|
1690
|
-
}, deps);
|
|
1691
|
-
if (!response.ok) throw new Error(await parseErrorResponse(response));
|
|
1692
|
-
const payload = await response.json();
|
|
1693
|
-
if (!payload.accessToken || !payload.user) throw new Error("Forgeway login response was missing accessToken or user.");
|
|
1694
|
-
return {
|
|
1695
|
-
platformApiUrl,
|
|
1696
|
-
accessToken: payload.accessToken,
|
|
1697
|
-
refreshToken: payload.refreshToken,
|
|
1698
|
-
user: normalizeForgewayUser(payload.user)
|
|
1699
|
-
};
|
|
1700
|
-
}
|
|
1701
|
-
async function resolveCredentials(cwd, platformApiUrl, deps, _dryRun) {
|
|
1702
|
-
const envToken = getEnv("FORGEWAY_ACCESS_TOKEN");
|
|
1703
|
-
if (envToken) return {
|
|
1704
|
-
platformApiUrl,
|
|
1705
|
-
accessToken: envToken
|
|
1706
|
-
};
|
|
1707
|
-
const stored = await (deps.readCredentials ?? readForgewayCredentials)(cwd);
|
|
1708
|
-
if (stored?.accessToken) return {
|
|
1709
|
-
...stored,
|
|
1710
|
-
platformApiUrl
|
|
1711
|
-
};
|
|
1712
|
-
if (!getEnv("FORGEWAY_EMAIL") || !getEnv("FORGEWAY_PASSWORD")) return null;
|
|
1713
|
-
const credentials = await loginWithEmail(platformApiUrl, deps);
|
|
1714
|
-
await (deps.writeCredentials ?? writeForgewayCredentials)(credentials, cwd);
|
|
1715
|
-
return credentials;
|
|
1668
|
+
function normalizeEmail(email) {
|
|
1669
|
+
return email.trim().toLowerCase();
|
|
1716
1670
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
...options,
|
|
1720
|
-
headers: {
|
|
1721
|
-
"Content-Type": "application/json",
|
|
1722
|
-
Authorization: `Bearer ${accessToken}`,
|
|
1723
|
-
...options.headers
|
|
1724
|
-
}
|
|
1725
|
-
}, deps);
|
|
1726
|
-
let response = await request(context.credentials.accessToken);
|
|
1727
|
-
if (response.status === 401 && context.credentials.refreshToken) {
|
|
1728
|
-
const refreshed = await refreshAccessToken(context.projectDir, context.platformApiUrl, context.credentials, deps);
|
|
1729
|
-
context.credentials.accessToken = refreshed;
|
|
1730
|
-
response = await request(refreshed);
|
|
1731
|
-
}
|
|
1732
|
-
if (!response.ok) throw new ForgewayApiError(await parseErrorResponse(response), response.status);
|
|
1733
|
-
return await response.json();
|
|
1671
|
+
function isShadowEmail(email) {
|
|
1672
|
+
return Boolean(email && SHADOW_EMAIL_PATTERN.test(email));
|
|
1734
1673
|
}
|
|
1735
|
-
async function
|
|
1736
|
-
if (!
|
|
1737
|
-
const response = await forgewayRequest(`${platformApiUrl}/api/auth/refresh?client_type=server`, {
|
|
1674
|
+
async function refreshFormalAccessToken(context, deps) {
|
|
1675
|
+
if (!context.refreshToken) throw new Error("Forgeway formal account refresh token is missing. Run dineway deploy again.");
|
|
1676
|
+
const response = await forgewayRequest(`${context.platformApiUrl}/api/auth/refresh?client_type=server`, {
|
|
1738
1677
|
method: "POST",
|
|
1739
1678
|
headers: { "Content-Type": "application/json" },
|
|
1740
|
-
body: JSON.stringify({ refreshToken:
|
|
1679
|
+
body: JSON.stringify({ refreshToken: context.refreshToken })
|
|
1741
1680
|
}, deps);
|
|
1742
|
-
if (!response.ok) throw new Error("Failed to refresh Forgeway
|
|
1681
|
+
if (!response.ok) throw new Error("Failed to refresh Forgeway formal account credentials. Run dineway deploy again.");
|
|
1743
1682
|
const payload = await response.json();
|
|
1744
1683
|
if (!payload.accessToken) throw new Error("Forgeway refresh response was missing accessToken.");
|
|
1684
|
+
const user = assertVerifiedFormalAccountUser(payload.user ? normalizeForgewayUser(payload.user) : context.user, context.user?.email);
|
|
1745
1685
|
const updated = {
|
|
1746
|
-
|
|
1747
|
-
platformApiUrl,
|
|
1686
|
+
platformApiUrl: context.platformApiUrl,
|
|
1748
1687
|
accessToken: payload.accessToken,
|
|
1749
|
-
refreshToken: payload.refreshToken ??
|
|
1688
|
+
refreshToken: payload.refreshToken ?? context.refreshToken,
|
|
1689
|
+
...user ? { user } : {},
|
|
1690
|
+
source: "shadow-email-upgrade",
|
|
1691
|
+
...context.placeId ? { placeId: context.placeId } : {}
|
|
1750
1692
|
};
|
|
1751
|
-
|
|
1693
|
+
context.accessToken = updated.accessToken;
|
|
1694
|
+
context.refreshToken = updated.refreshToken;
|
|
1695
|
+
context.user = updated.user;
|
|
1696
|
+
await (deps.writeCredentials ?? writeForgewayCredentials)(updated, context.projectDir);
|
|
1752
1697
|
return payload.accessToken;
|
|
1753
1698
|
}
|
|
1754
1699
|
async function refreshShadowAccessToken(context, deps) {
|
|
@@ -1794,90 +1739,85 @@ async function promptRequired(question, initialValue, deps, errorMessage) {
|
|
|
1794
1739
|
if (!answer) throw new Error(errorMessage);
|
|
1795
1740
|
return answer;
|
|
1796
1741
|
}
|
|
1797
|
-
async function chooseSingleOrPrompt(label, items, deps) {
|
|
1798
|
-
if (items.length === 0) throw new Error(`No Forgeway ${label}s found.`);
|
|
1799
|
-
if (items.length === 1) return items[0];
|
|
1800
|
-
if (!process.stdin.isTTY && !deps.promptText) throw new Error(`Multiple Forgeway ${label}s found. Set FORGEWAY_${label.toUpperCase()}_ID.`);
|
|
1801
|
-
consola.info(`Available Forgeway ${label}s:`);
|
|
1802
|
-
items.forEach((item, index) => consola.info(` ${index + 1}. ${item.name} (${item.id})`));
|
|
1803
|
-
const answer = await promptRequired(`Choose ${label}: `, "1", deps, `${label} is required.`);
|
|
1804
|
-
const index = Number(answer);
|
|
1805
|
-
if (!Number.isInteger(index) || index < 1 || index > items.length) throw new Error(`Invalid Forgeway ${label} selection: ${answer}`);
|
|
1806
|
-
return items[index - 1];
|
|
1807
|
-
}
|
|
1808
1742
|
function getSavedForgewayMetadata(pkg) {
|
|
1809
1743
|
return pkg.dineway?.deploy?.forgeway ?? {};
|
|
1810
1744
|
}
|
|
1811
|
-
async function
|
|
1812
|
-
const
|
|
1813
|
-
const
|
|
1814
|
-
const
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1745
|
+
async function resolveForgewayAccountEmail(options, grant, cwd, deps) {
|
|
1746
|
+
const stored = await (deps.readCredentials ?? readForgewayCredentials)(cwd);
|
|
1747
|
+
const storedEmail = stored?.source === "shadow-email-upgrade" && stored.placeId === grant.placeId && stored.user?.emailVerified === true && !isShadowEmail(stored.user?.email) ? stored.user?.email : void 0;
|
|
1748
|
+
const email = normalizeEmail(options.email ?? getEnv("FORGEWAY_EMAIL") ?? storedEmail ?? await promptRequired("Forgeway account email: ", void 0, deps, "Forgeway account email is required. Pass --email or set FORGEWAY_EMAIL."));
|
|
1749
|
+
if (!email || isShadowEmail(email)) throw new Error("Forgeway account email must be a real owner email, not a shadow user email.");
|
|
1750
|
+
return email;
|
|
1751
|
+
}
|
|
1752
|
+
function isStoredFormalCredentialForGrant(stored, grant, email) {
|
|
1753
|
+
if (!stored?.accessToken || stored.source !== "shadow-email-upgrade" || stored.placeId !== grant.placeId || !stored.user) return false;
|
|
1754
|
+
if (normalizeEmail(stored.user.email) !== email) return false;
|
|
1755
|
+
if (stored.user.emailVerified !== true) return false;
|
|
1756
|
+
if (isShadowEmail(stored.user.email)) return false;
|
|
1757
|
+
if (grant.user?.id && stored.user.id !== grant.user.id) return false;
|
|
1758
|
+
return true;
|
|
1759
|
+
}
|
|
1760
|
+
function assertVerifiedFormalAccountUser(user, expectedEmail) {
|
|
1761
|
+
if (!user || user.emailVerified !== true || isShadowEmail(user.email)) throw new Error("Forgeway formal account credentials require a verified formal account.");
|
|
1762
|
+
if (expectedEmail && normalizeEmail(user.email) !== normalizeEmail(expectedEmail)) throw new Error("Forgeway refresh returned credentials for a different email.");
|
|
1763
|
+
return user;
|
|
1764
|
+
}
|
|
1765
|
+
async function shadowUpgradeFetch(context, path, deps, options) {
|
|
1766
|
+
const request = async (accessToken) => await forgewayRequest(`${context.platformApiUrl}${path}`, {
|
|
1767
|
+
...options,
|
|
1768
|
+
headers: {
|
|
1769
|
+
"Content-Type": "application/json",
|
|
1770
|
+
Authorization: `Bearer ${accessToken}`,
|
|
1771
|
+
...options.headers
|
|
1772
|
+
}
|
|
1773
|
+
}, deps);
|
|
1774
|
+
if (!context.accessToken) throw new Error("Dineway shadow deploy grant is missing its access token.");
|
|
1775
|
+
let response = await request(context.accessToken);
|
|
1776
|
+
if (response.status === 401) response = await request(await refreshShadowAccessToken(context, deps));
|
|
1777
|
+
if (!response.ok) throw new ForgewayApiError(await parseErrorResponse(response), response.status);
|
|
1778
|
+
return await response.json();
|
|
1779
|
+
}
|
|
1780
|
+
async function startShadowEmailUpgrade(context, email, deps) {
|
|
1781
|
+
const payload = await shadowUpgradeFetch(context, "/api/auth/users/shadow/upgrade/email/start", deps, {
|
|
1782
|
+
method: "POST",
|
|
1783
|
+
body: JSON.stringify({ email })
|
|
1784
|
+
});
|
|
1785
|
+
if (payload.email && normalizeEmail(payload.email) !== email) throw new Error("Forgeway email verification response returned a different email.");
|
|
1786
|
+
return payload;
|
|
1787
|
+
}
|
|
1788
|
+
async function verifyShadowEmailUpgrade(context, email, otp, deps) {
|
|
1789
|
+
const payload = await shadowUpgradeFetch(context, "/api/auth/users/shadow/upgrade/email/verify", deps, {
|
|
1790
|
+
method: "POST",
|
|
1791
|
+
body: JSON.stringify({
|
|
1792
|
+
email,
|
|
1793
|
+
otp
|
|
1794
|
+
})
|
|
1795
|
+
});
|
|
1796
|
+
if (!payload.accessToken || !payload.refreshToken || !payload.user) throw new Error("Forgeway email upgrade response was missing credentials.");
|
|
1797
|
+
const user = normalizeForgewayUser(payload.user);
|
|
1798
|
+
if (normalizeEmail(user.email) !== email) throw new Error("Forgeway email upgrade returned credentials for a different email.");
|
|
1799
|
+
if (user.emailVerified !== true || isShadowEmail(user.email)) throw new Error("Forgeway email upgrade did not return a verified formal account.");
|
|
1868
1800
|
return {
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
appkey: project.appkey,
|
|
1876
|
-
region: project.region,
|
|
1877
|
-
apiKey,
|
|
1878
|
-
ossHost
|
|
1801
|
+
platformApiUrl: context.platformApiUrl,
|
|
1802
|
+
accessToken: payload.accessToken,
|
|
1803
|
+
refreshToken: payload.refreshToken,
|
|
1804
|
+
user,
|
|
1805
|
+
source: "shadow-email-upgrade",
|
|
1806
|
+
...context.placeId ? { placeId: context.placeId } : {}
|
|
1879
1807
|
};
|
|
1880
1808
|
}
|
|
1809
|
+
async function resolveFormalAccountCredentials(context, grant, email, deps) {
|
|
1810
|
+
const stored = await (deps.readCredentials ?? readForgewayCredentials)(context.projectDir);
|
|
1811
|
+
if (isStoredFormalCredentialForGrant(stored, grant, email)) return {
|
|
1812
|
+
...stored,
|
|
1813
|
+
platformApiUrl: context.platformApiUrl
|
|
1814
|
+
};
|
|
1815
|
+
await startShadowEmailUpgrade(context, email, deps);
|
|
1816
|
+
consola.info(`Sent Forgeway email verification code to ${email}`);
|
|
1817
|
+
const credentials = await verifyShadowEmailUpgrade(context, email, await promptRequired("Email verification code: ", void 0, deps, "Email verification code is required."), deps);
|
|
1818
|
+
await (deps.writeCredentials ?? writeForgewayCredentials)(credentials, context.projectDir);
|
|
1819
|
+
return credentials;
|
|
1820
|
+
}
|
|
1881
1821
|
async function resolveShadowProjectContext(cwd, options, deps) {
|
|
1882
1822
|
const pkg = await readDeployPackageJson(cwd).catch(() => null);
|
|
1883
1823
|
const saved = pkg ? getSavedForgewayMetadata(pkg) : {};
|
|
@@ -1901,37 +1841,35 @@ async function resolveShadowProjectContext(cwd, options, deps) {
|
|
|
1901
1841
|
name: options.restaurantName ?? grant.restaurantName,
|
|
1902
1842
|
city: options.city ?? grant.city
|
|
1903
1843
|
};
|
|
1844
|
+
const shadowContext = {
|
|
1845
|
+
projectDir: cwd,
|
|
1846
|
+
platformApiUrl,
|
|
1847
|
+
authKind: "shadow-grant",
|
|
1848
|
+
accessToken: grant.accessToken,
|
|
1849
|
+
refreshToken: grant.refreshToken,
|
|
1850
|
+
user: grant.user,
|
|
1851
|
+
ossHost: platformApiUrl,
|
|
1852
|
+
placeId: grant.placeId,
|
|
1853
|
+
restaurantName: restaurant.name,
|
|
1854
|
+
city: restaurant.city
|
|
1855
|
+
};
|
|
1856
|
+
const accountEmail = await resolveForgewayAccountEmail(options, grant, cwd, deps);
|
|
1857
|
+
const credentials = await resolveFormalAccountCredentials(shadowContext, grant, accountEmail, deps);
|
|
1904
1858
|
return {
|
|
1905
1859
|
context: {
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
ossHost: platformApiUrl
|
|
1912
|
-
placeId: grant.placeId,
|
|
1913
|
-
restaurantName: restaurant.name,
|
|
1914
|
-
city: restaurant.city
|
|
1860
|
+
...shadowContext,
|
|
1861
|
+
authKind: "formal-account",
|
|
1862
|
+
accessToken: credentials.accessToken,
|
|
1863
|
+
refreshToken: credentials.refreshToken,
|
|
1864
|
+
user: credentials.user,
|
|
1865
|
+
ossHost: platformApiUrl
|
|
1915
1866
|
},
|
|
1916
1867
|
restaurant
|
|
1917
1868
|
};
|
|
1918
1869
|
}
|
|
1919
1870
|
async function resolveProjectContext(cwd, options, deps) {
|
|
1920
|
-
const adminContext = await resolveAdminProjectContext(cwd, options, deps);
|
|
1921
|
-
if (adminContext) return { context: adminContext };
|
|
1922
1871
|
return await resolveShadowProjectContext(cwd, options, deps);
|
|
1923
1872
|
}
|
|
1924
|
-
function unwrapProjectPayload(payload) {
|
|
1925
|
-
if (isRecord(payload) && "project" in payload) {
|
|
1926
|
-
if (isForgewayProject(payload.project)) return payload.project;
|
|
1927
|
-
throw new Error("Forgeway project response did not include a project");
|
|
1928
|
-
}
|
|
1929
|
-
if (isForgewayProject(payload)) return payload;
|
|
1930
|
-
throw new Error("Forgeway project response did not include a project");
|
|
1931
|
-
}
|
|
1932
|
-
function isForgewayProject(value) {
|
|
1933
|
-
return isRecord(value) && typeof value.id === "string" && typeof value.name === "string" && typeof value.appkey === "string" && typeof value.region === "string";
|
|
1934
|
-
}
|
|
1935
1873
|
function isRecord(value) {
|
|
1936
1874
|
return typeof value === "object" && value !== null;
|
|
1937
1875
|
}
|
|
@@ -2038,20 +1976,6 @@ async function createShadowGrant(options) {
|
|
|
2038
1976
|
await (options.deps.writeShadowGrant ?? writeForgewayShadowGrant)(grant, options.cwd);
|
|
2039
1977
|
return grant;
|
|
2040
1978
|
}
|
|
2041
|
-
async function listOrganizations(context, deps) {
|
|
2042
|
-
const payload = await platformFetch("/organizations/v1", context, deps);
|
|
2043
|
-
return Array.isArray(payload) ? payload : payload.organizations ?? [];
|
|
2044
|
-
}
|
|
2045
|
-
async function listProjects(orgId, context, deps) {
|
|
2046
|
-
const payload = await platformFetch(`/organizations/v1/${encodeURIComponent(orgId)}/projects`, context, deps);
|
|
2047
|
-
return Array.isArray(payload) ? payload : payload.projects ?? [];
|
|
2048
|
-
}
|
|
2049
|
-
async function fetchProjectApiKey(projectId, context, deps) {
|
|
2050
|
-
const payload = await platformFetch(`/projects/v1/${encodeURIComponent(projectId)}/access-api-key`, context, deps);
|
|
2051
|
-
const apiKey = payload.access_api_key ?? payload.apiKey;
|
|
2052
|
-
if (!apiKey) throw new Error("Forgeway project API key response was empty.");
|
|
2053
|
-
return apiKey;
|
|
2054
|
-
}
|
|
2055
1979
|
async function ossFetch(context, path, deps, options = {}) {
|
|
2056
1980
|
const request = async (token) => await forgewayRequest(`${context.ossHost.replace(TRAILING_SLASH_PATTERN, "")}${path}`, {
|
|
2057
1981
|
...options,
|
|
@@ -2061,10 +1985,10 @@ async function ossFetch(context, path, deps, options = {}) {
|
|
|
2061
1985
|
...options.headers
|
|
2062
1986
|
}
|
|
2063
1987
|
}, deps);
|
|
2064
|
-
const token = context.
|
|
1988
|
+
const token = context.accessToken;
|
|
2065
1989
|
if (!token) throw new Error("Forgeway deploy context is missing an authorization token.");
|
|
2066
1990
|
let response = await request(token);
|
|
2067
|
-
if (response.status === 401
|
|
1991
|
+
if (response.status === 401) response = await request(context.authKind === "formal-account" ? await refreshFormalAccessToken(context, deps) : await refreshShadowAccessToken(context, deps));
|
|
2068
1992
|
if (!response.ok) throw new ForgewayApiError(await parseErrorResponse(response), response.status);
|
|
2069
1993
|
return await response.json();
|
|
2070
1994
|
}
|
|
@@ -2965,6 +2889,11 @@ const deployCommand = defineCommand({
|
|
|
2965
2889
|
description: "Forgeway deployment site ID or slug",
|
|
2966
2890
|
required: false
|
|
2967
2891
|
},
|
|
2892
|
+
email: {
|
|
2893
|
+
type: "string",
|
|
2894
|
+
description: "Forgeway account email for shadow-user upgrade",
|
|
2895
|
+
required: false
|
|
2896
|
+
},
|
|
2968
2897
|
"restaurant-name": {
|
|
2969
2898
|
type: "string",
|
|
2970
2899
|
description: "Restaurant name for first Forgeway site creation",
|
|
@@ -2995,6 +2924,7 @@ const deployCommand = defineCommand({
|
|
|
2995
2924
|
yes: args.yes,
|
|
2996
2925
|
dryRun: args["dry-run"],
|
|
2997
2926
|
site: args.site,
|
|
2927
|
+
email: args.email,
|
|
2998
2928
|
restaurantName: args["restaurant-name"],
|
|
2999
2929
|
city: args.city,
|
|
3000
2930
|
database: args.database,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ContentSeoInput, c as FindManyOptions, i as ContentSeo, l as FindManyResult, n as ContentBylineCredit, o as CreateContentInput, r as ContentItem, s as DinewayValidationError, t as BylineSummary, u as UpdateContentInput } from "./types-DvwHUku7.mjs";
|
|
2
|
-
import { $ as createPluginManager, $t as SandboxOptions, A as dropSessionDatabaseTables, An as handleContentDelete, At as verifyPreviewSignature, B as GeneratePreviewTokenOptions, Bn as handleContentSchedule, Bt as prosemirrorToPortableText, C as getByline, Cn as handleRevisionList, Ct as SessionOpenOrCreateOptions, D as AppliedSnapshotMeta, Dn as handleContentCountScheduled, Dt as defaultPreviewSidecarClient, E as renderPreviewToolbar, En as handleContentCompare, Et as buildPreviewSignatureHeader, F as getPreviewToken, Fn as handleContentList, Ft as AfterCallback, G as parseContentId, Gn as CreateMediaInput, Gt as PortableTextSpan, H as VerifyPreviewTokenOptions, Hn as handleContentUnpublish, Ht as PortableTextImageBlock, I as isPreviewRequest, In as handleContentListTrashed, It as after, J as createNodeSandboxRunner, Jn as ContentRepository, Jt as ProseMirrorDocument, K as verifyPreviewToken, Kn as MediaItem, Kt as PortableTextTextBlock, L as GetPreviewUrlOptions, Ln as handleContentPermanentDelete, Lt as computeContentHash, M as Snapshot, Mn as handleContentDuplicate, Mt as getFallbackChain, N as renderPreviewLoadingPage, Nn as handleContentGet, Nt as getI18nConfig, O as ApplySnapshotToDatabaseOptions, On as handleContentCountTrashed, Ot as parsePreviewSignatureHeader, P as isBlockedInPreview, Pn as handleContentGetIncludingTrashed, Pt as isI18nEnabled, Q as PluginManager, Qt as SandboxEmailSendCallback, R as buildPreviewUrl, Rn as handleContentPublish, Rt as hashString, S as Suggestion, Sn as handleRevisionGet, St as SessionOpenOptions, T as PreviewToolbarConfig, Tn as generateManifest, Tt as PreviewSidecarSignature, U as VerifyPreviewTokenResult, Un as handleContentUnschedule, Ut as PortableTextLinkMark, V as PreviewTokenPayload, Vn as handleContentTranslations, Vt as PortableTextCodeBlock, W as generatePreviewToken, Wn as handleContentUpdate, Wt as PortableTextMarkDef, X as SandboxNotAvailableError, Xn as DinewayDatabaseError, Xt as ProseMirrorNode, Y as NoopSandboxRunner, Yn as DatabaseConfig, Yt as ProseMirrorMark, Z as createNoopSandboxRunner, Zt as SandboxEmailMessage, _ as SearchOptions, _n as handleMediaGet, _t as SessionCleanupResult, an as getSections, ar as ApiContext, at as ValidatedPluginManifest, b as SearchStats, bn as RevisionListResponse, bt as SessionDatabaseInfo, c as extractSearchableFields, cn as Section, cr as FieldDescriptor, ct as CollectionFilter$1, d as search, dn as SchemaError, en as SandboxRunner, et as PluginRouteError, f as searchCollection, fn as SchemaRegistry, g as SearchConfig, gn as handleMediaDelete, gt as FileSessionDatabaseFactoryOptions, h as CollectionSearchOptions, hn as handleMediaCreate, ht as FileSessionDatabaseFactory, in as getSection, it as createHookPipeline, j as getAppliedSnapshotMeta, jn as handleContentDiscardDraft, jt as I18nConfig, k as applySnapshotToDatabase, kn as handleContentCreate, kt as signPreviewUrl, l as getSearchStats, ln as SectionSource, lr as ListResponse, lt as EntryData, m as FTSManager, mn as MediaResponse, mt as createFilePreviewMiddleware, n as PluginDescriptor, nn as SandboxedPlugin, nt as HookPipeline, on as CreateSectionInput, or as ContentListResponse, ot as pluginManifestSchema, p as searchWithDb, pn as MediaListResponse, pt as FilePreviewMiddlewareConfig, q as NodeSandboxRunner, qn as MediaRepository, qt as PortableTextUnknownBlock, rn as SerializedRequest, rt as HookResult, s as extractPlainText, sn as GetSectionsOptions, sr as ContentResponse, st as definePlugin, tn as SandboxRunnerFactory, u as getSuggestions, un as UpdateSectionInput, ur as ManifestResponse, ut as EntryFilter, v as SearchResponse, vn as handleMediaList, vt as SessionDatabaseFactory, w as getBylineBySlug, wn as handleRevisionRestore, wt as PreviewSidecarClient, x as SuggestOptions, xn as RevisionResponse, xt as SessionDatabaseLimitError, y as SearchResult, yn as handleMediaUpdate, yt as SessionDatabaseHandle, z as getPreviewUrl, zn as handleContentRestore, zt as portableTextToProsemirror } from "./runtime-
|
|
2
|
+
import { $ as createPluginManager, $t as SandboxOptions, A as dropSessionDatabaseTables, An as handleContentDelete, At as verifyPreviewSignature, B as GeneratePreviewTokenOptions, Bn as handleContentSchedule, Bt as prosemirrorToPortableText, C as getByline, Cn as handleRevisionList, Ct as SessionOpenOrCreateOptions, D as AppliedSnapshotMeta, Dn as handleContentCountScheduled, Dt as defaultPreviewSidecarClient, E as renderPreviewToolbar, En as handleContentCompare, Et as buildPreviewSignatureHeader, F as getPreviewToken, Fn as handleContentList, Ft as AfterCallback, G as parseContentId, Gn as CreateMediaInput, Gt as PortableTextSpan, H as VerifyPreviewTokenOptions, Hn as handleContentUnpublish, Ht as PortableTextImageBlock, I as isPreviewRequest, In as handleContentListTrashed, It as after, J as createNodeSandboxRunner, Jn as ContentRepository, Jt as ProseMirrorDocument, K as verifyPreviewToken, Kn as MediaItem, Kt as PortableTextTextBlock, L as GetPreviewUrlOptions, Ln as handleContentPermanentDelete, Lt as computeContentHash, M as Snapshot, Mn as handleContentDuplicate, Mt as getFallbackChain, N as renderPreviewLoadingPage, Nn as handleContentGet, Nt as getI18nConfig, O as ApplySnapshotToDatabaseOptions, On as handleContentCountTrashed, Ot as parsePreviewSignatureHeader, P as isBlockedInPreview, Pn as handleContentGetIncludingTrashed, Pt as isI18nEnabled, Q as PluginManager, Qt as SandboxEmailSendCallback, R as buildPreviewUrl, Rn as handleContentPublish, Rt as hashString, S as Suggestion, Sn as handleRevisionGet, St as SessionOpenOptions, T as PreviewToolbarConfig, Tn as generateManifest, Tt as PreviewSidecarSignature, U as VerifyPreviewTokenResult, Un as handleContentUnschedule, Ut as PortableTextLinkMark, V as PreviewTokenPayload, Vn as handleContentTranslations, Vt as PortableTextCodeBlock, W as generatePreviewToken, Wn as handleContentUpdate, Wt as PortableTextMarkDef, X as SandboxNotAvailableError, Xn as DinewayDatabaseError, Xt as ProseMirrorNode, Y as NoopSandboxRunner, Yn as DatabaseConfig, Yt as ProseMirrorMark, Z as createNoopSandboxRunner, Zt as SandboxEmailMessage, _ as SearchOptions, _n as handleMediaGet, _t as SessionCleanupResult, an as getSections, ar as ApiContext, at as ValidatedPluginManifest, b as SearchStats, bn as RevisionListResponse, bt as SessionDatabaseInfo, c as extractSearchableFields, cn as Section, cr as FieldDescriptor, ct as CollectionFilter$1, d as search, dn as SchemaError, en as SandboxRunner, et as PluginRouteError, f as searchCollection, fn as SchemaRegistry, g as SearchConfig, gn as handleMediaDelete, gt as FileSessionDatabaseFactoryOptions, h as CollectionSearchOptions, hn as handleMediaCreate, ht as FileSessionDatabaseFactory, in as getSection, it as createHookPipeline, j as getAppliedSnapshotMeta, jn as handleContentDiscardDraft, jt as I18nConfig, k as applySnapshotToDatabase, kn as handleContentCreate, kt as signPreviewUrl, l as getSearchStats, ln as SectionSource, lr as ListResponse, lt as EntryData, m as FTSManager, mn as MediaResponse, mt as createFilePreviewMiddleware, n as PluginDescriptor, nn as SandboxedPlugin, nt as HookPipeline, on as CreateSectionInput, or as ContentListResponse, ot as pluginManifestSchema, p as searchWithDb, pn as MediaListResponse, pt as FilePreviewMiddlewareConfig, q as NodeSandboxRunner, qn as MediaRepository, qt as PortableTextUnknownBlock, rn as SerializedRequest, rt as HookResult, s as extractPlainText, sn as GetSectionsOptions, sr as ContentResponse, st as definePlugin, tn as SandboxRunnerFactory, u as getSuggestions, un as UpdateSectionInput, ur as ManifestResponse, ut as EntryFilter, v as SearchResponse, vn as handleMediaList, vt as SessionDatabaseFactory, w as getBylineBySlug, wn as handleRevisionRestore, wt as PreviewSidecarClient, x as SuggestOptions, xn as RevisionResponse, xt as SessionDatabaseLimitError, y as SearchResult, yn as handleMediaUpdate, yt as SessionDatabaseHandle, z as getPreviewUrl, zn as handleContentRestore, zt as portableTextToProsemirror } from "./runtime-Cg87dCSm.mjs";
|
|
3
3
|
import { n as MediaTable, r as UserTable, t as Database } from "./types-B1NksXAb.mjs";
|
|
4
4
|
import { $ as StandardHookEntry, A as PageMetadataContribution, B as PluginDefinition, C as MediaAccess, D as PageFragmentContribution, E as ModerationDecision, F as PluginAdminConfig, G as PortableTextBlockConfig, H as PluginManifest, I as PluginAdminExports, K as PortableTextBlockField, L as PluginAdminPage, M as PageMetadataHandler, O as PageFragmentEvent, P as PagePlacement, Q as RouteContext, R as PluginCapability, S as LogAccess, T as MediaUploadEvent, U as PluginRoute, V as PluginHooks, W as PluginStorageConfig, X as ResolvedPlugin, Y as ResolvedHook, Z as ResolvedPluginHooks, _ as FieldWidgetConfig, a as CommentAfterModerateEvent, b as HttpAccess, c as CommentBeforeCreateHandler, d as ContentAccess, et as StandardHookHandler, f as ContentDeleteEvent, i as CommentAfterCreateHandler, it as StorageCollection, j as PageMetadataEvent, k as PageFragmentHandler, l as CommentModerateEvent, m as ContentPublishStateChangeEvent, n as CollectionCommentSettings, nt as StandardRouteEntry, o as CommentAfterModerateHandler, ot as StoredComment, p as ContentHookEvent, q as PublicPageContext, r as CommentAfterCreateEvent, rt as StandardRouteHandler, s as CommentBeforeCreateEvent, st as isStandardPluginDefinition, t as BreadcrumbItem, tt as StandardPluginDefinition, u as CommentModerateHandler, v as HookConfig, x as KVAccess, y as HookName, z as PluginContext } from "./types-BIM7jwxr.mjs";
|
|
5
5
|
import { _ as RESERVED_COLLECTION_SLUGS, a as Collection, b as UpdateFieldInput, c as CollectionWithFields, d as CreateFieldInput, f as FIELD_TYPE_TO_COLUMN, g as FieldWidgetOptions, h as FieldValidation, i as SiteSettings, l as ColumnType, m as FieldType, n as SeoSettings, o as CollectionSource, p as Field, r as SiteSettingKey, s as CollectionSupport, t as MediaReference, u as CreateCollectionInput, v as RESERVED_FIELD_SLUGS, y as UpdateCollectionInput } from "./types-t7_nCCA9.mjs";
|
|
@@ -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-CpbixmRL.mjs";
|
|
12
12
|
import { n as generatePlaceholder, r as normalizeMediaValue, t as PlaceholderData } from "./placeholder-BZpCpid_.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-BYjPylrZ.mjs";
|
|
14
|
-
import "./bylines-
|
|
14
|
+
import "./bylines-Cb7nzI9t.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-BBETcziA.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import "./byline-DpNNSjET.mjs";
|
|
|
24
24
|
import { t as normalizeMediaValue } from "./normalize-BY_EJnd9.mjs";
|
|
25
25
|
import { t as generatePlaceholder } from "./placeholder-b0Ufu0La.mjs";
|
|
26
26
|
import "./seo-BPb_reaG.mjs";
|
|
27
|
-
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-
|
|
27
|
+
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-DHgai7zP.mjs";
|
|
28
28
|
import "./request-cache-BpwuE2ix.mjs";
|
|
29
29
|
import "./dashboard-BC9bgPOH.mjs";
|
|
30
30
|
import "./briefing-Jsxs587i.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../runtime-
|
|
1
|
+
import "../runtime-Cg87dCSm.mjs";
|
|
2
2
|
import { t as Database } from "../types-B1NksXAb.mjs";
|
|
3
3
|
import "../types-BIM7jwxr.mjs";
|
|
4
4
|
import "../types-BgE6gMFI.mjs";
|
|
@@ -7,7 +7,7 @@ import "../runner-pAnQS6iI.mjs";
|
|
|
7
7
|
import "../index-2tBfB_8X.mjs";
|
|
8
8
|
import "../index-CpbixmRL.mjs";
|
|
9
9
|
import { d as Storage } from "../types-BYjPylrZ.mjs";
|
|
10
|
-
import "../bylines-
|
|
10
|
+
import "../bylines-Cb7nzI9t.mjs";
|
|
11
11
|
import "../types-BBETcziA.mjs";
|
|
12
12
|
import "../validate-BzUCAU2a.mjs";
|
|
13
13
|
import "../index.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as PluginDescriptor } from "../runtime-
|
|
1
|
+
import { n as PluginDescriptor } from "../runtime-Cg87dCSm.mjs";
|
|
2
2
|
import "../types-B1NksXAb.mjs";
|
|
3
3
|
import { X as ResolvedPlugin, tt as StandardPluginDefinition } from "../types-BIM7jwxr.mjs";
|
|
4
4
|
import "../types-BgE6gMFI.mjs";
|
|
5
5
|
import "../runner-pAnQS6iI.mjs";
|
|
6
6
|
import "../index-2tBfB_8X.mjs";
|
|
7
7
|
import "../index-CpbixmRL.mjs";
|
|
8
|
-
import "../bylines-
|
|
8
|
+
import "../bylines-Cb7nzI9t.mjs";
|
|
9
9
|
import "../types-BBETcziA.mjs";
|
|
10
10
|
import "../validate-BzUCAU2a.mjs";
|
|
11
11
|
|
|
@@ -1787,7 +1787,6 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1787
1787
|
number: "number";
|
|
1788
1788
|
boolean: "boolean";
|
|
1789
1789
|
file: "file";
|
|
1790
|
-
image: "image";
|
|
1791
1790
|
slug: "slug";
|
|
1792
1791
|
datetime: "datetime";
|
|
1793
1792
|
text: "text";
|
|
@@ -1795,6 +1794,7 @@ declare const pluginManifestSchema: z.ZodObject<{
|
|
|
1795
1794
|
select: "select";
|
|
1796
1795
|
multiSelect: "multiSelect";
|
|
1797
1796
|
portableText: "portableText";
|
|
1797
|
+
image: "image";
|
|
1798
1798
|
reference: "reference";
|
|
1799
1799
|
json: "json";
|
|
1800
1800
|
repeater: "repeater";
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ct as CollectionFilter, dt as dinewayLoader, ft as getDb, lt as EntryData, ut as EntryFilter } from "./runtime-
|
|
1
|
+
import { ct as CollectionFilter, dt as dinewayLoader, ft as getDb, lt as EntryData, ut as EntryFilter } from "./runtime-Cg87dCSm.mjs";
|
|
2
2
|
import "./types-B1NksXAb.mjs";
|
|
3
3
|
import "./types-BIM7jwxr.mjs";
|
|
4
4
|
import "./types-BgE6gMFI.mjs";
|
|
5
5
|
import "./runner-pAnQS6iI.mjs";
|
|
6
6
|
import "./index-2tBfB_8X.mjs";
|
|
7
7
|
import "./index-CpbixmRL.mjs";
|
|
8
|
-
import "./bylines-
|
|
8
|
+
import "./bylines-Cb7nzI9t.mjs";
|
|
9
9
|
import "./types-BBETcziA.mjs";
|
|
10
10
|
import "./validate-BzUCAU2a.mjs";
|
|
11
11
|
import { t as getMediaProvider } from "./provider-loader-BaZhx7E3.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dineway",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "Agentic Website builder for restaurants — structured content meets AI via the Model Context Protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -348,8 +348,8 @@
|
|
|
348
348
|
"upng-js": "^2.1.0",
|
|
349
349
|
"zod": "^4.4.1",
|
|
350
350
|
"@dineway-ai/admin": "^0.1.14",
|
|
351
|
-
"@dineway-ai/
|
|
352
|
-
"@dineway-ai/
|
|
351
|
+
"@dineway-ai/auth": "^0.1.15",
|
|
352
|
+
"@dineway-ai/gutenberg-to-portable-text": "^0.1.13"
|
|
353
353
|
},
|
|
354
354
|
"optionalDependencies": {
|
|
355
355
|
"@aws-sdk/client-s3": "^3.1049.0",
|