dineway 0.1.44 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activity-events-CpcTzKpF.mjs → activity-events-CNk3clTT.mjs} +1 -1
- package/dist/{allowed-origins-3RuuoFjC.mjs → allowed-origins-DhipQNLb.mjs} +1 -1
- package/dist/api/route-utils.d.mts +9 -10
- package/dist/api/route-utils.mjs +13 -13
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +4 -4
- package/dist/{api-x5yKhnAw.mjs → api-Bmfii2mH.mjs} +101 -56
- package/dist/{api-tokens-BFg7tiOQ.mjs → api-tokens-DtvdtIkm.mjs} +1 -1
- package/dist/{apply-TIoQ00aH.mjs → apply-BpRBCqUt.mjs} +76 -31
- package/dist/astro/index.d.mts +10 -11
- package/dist/astro/index.mjs +23 -3
- package/dist/astro/middleware/auth.d.mts +9 -10
- package/dist/astro/middleware/auth.mjs +5 -5
- package/dist/astro/middleware/redirect.mjs +13 -7
- package/dist/astro/middleware/request-context.mjs +3 -3
- package/dist/astro/middleware/seed.d.mts +1 -1
- package/dist/astro/middleware/seed.mjs +2 -2
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +120 -82
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/briefing.mjs +17 -17
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.d.mts +7 -0
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +17 -0
- package/dist/astro/routes/api/admin/byline-fields/_slug_.d.mts +9 -0
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +38 -0
- package/dist/astro/routes/api/admin/byline-fields/index.d.mts +8 -0
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +31 -0
- package/dist/astro/routes/api/admin/byline-fields/reorder.d.mts +7 -0
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +24 -0
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +27 -27
- package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts +8 -0
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +57 -0
- package/dist/astro/routes/api/admin/bylines/index.mjs +30 -26
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +11 -11
- package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
- package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
- package/dist/astro/routes/api/admin/comments/index.mjs +9 -9
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +23 -23
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +27 -27
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +27 -27
- package/dist/astro/routes/api/admin/context/diff.mjs +26 -26
- package/dist/astro/routes/api/admin/context/index.mjs +27 -27
- package/dist/astro/routes/api/admin/context/stale.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +23 -23
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +26 -26
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +26 -26
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +24 -24
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +48 -44
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +48 -44
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +47 -43
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +42 -38
- package/dist/astro/routes/api/admin/plugins/updates.mjs +42 -38
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +26 -26
- package/dist/astro/routes/api/admin/review-requests/index.mjs +9 -9
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +42 -38
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +42 -38
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +5 -5
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
- package/dist/astro/routes/api/admin/users/index.mjs +5 -5
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
- package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
- package/dist/astro/routes/api/auth/invite/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/register-options.mjs +8 -8
- package/dist/astro/routes/api/auth/logout.mjs +2 -2
- package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/me.mjs +20 -11
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
- package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +10 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +8 -8
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/passkey/verify.mjs +9 -9
- package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
- package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +9 -9
- package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
- package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +12 -12
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +11 -11
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +20 -14
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +12 -10
- package/dist/astro/routes/api/content/_collection_/index.mjs +9 -9
- package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
- package/dist/astro/routes/api/dashboard.mjs +8 -8
- package/dist/astro/routes/api/dev/emails.mjs +2 -2
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +7 -7
- package/dist/astro/routes/api/import/wordpress/execute.mjs +29 -28
- package/dist/astro/routes/api/import/wordpress/media.mjs +10 -10
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +31 -31
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +5 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +16 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +30 -30
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +13 -13
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +31 -30
- package/dist/astro/routes/api/manifest.mjs +4 -4
- package/dist/astro/routes/api/mcp.mjs +75 -50
- package/dist/astro/routes/api/media/_id_/confirm.mjs +8 -8
- package/dist/astro/routes/api/media/_id_.mjs +6 -6
- package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
- package/dist/astro/routes/api/media/providers/index.mjs +2 -2
- package/dist/astro/routes/api/media/upload-url.mjs +10 -10
- package/dist/astro/routes/api/media.mjs +14 -13
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_/items.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_/translations.mjs +27 -27
- package/dist/astro/routes/api/menus/_name_.mjs +27 -27
- package/dist/astro/routes/api/menus/index.mjs +27 -27
- package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
- package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
- package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
- package/dist/astro/routes/api/oauth/token.mjs +6 -6
- package/dist/astro/routes/api/openapi.json.mjs +10 -7
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
- package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
- package/dist/astro/routes/api/redirects/_id_.mjs +28 -28
- package/dist/astro/routes/api/redirects/index.mjs +28 -28
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +43 -39
- package/dist/astro/routes/api/schema/collections/index.mjs +43 -39
- package/dist/astro/routes/api/schema/index.mjs +7 -7
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +42 -38
- package/dist/astro/routes/api/schema/orphans/index.mjs +42 -38
- package/dist/astro/routes/api/search/enable.mjs +11 -11
- package/dist/astro/routes/api/search/index.mjs +10 -10
- package/dist/astro/routes/api/search/rebuild.mjs +11 -11
- package/dist/astro/routes/api/search/stats.mjs +7 -7
- package/dist/astro/routes/api/search/suggest.mjs +10 -10
- package/dist/astro/routes/api/sections/_slug_.mjs +27 -27
- package/dist/astro/routes/api/sections/index.mjs +27 -27
- package/dist/astro/routes/api/settings/email.mjs +3 -3
- package/dist/astro/routes/api/settings.mjs +27 -27
- package/dist/astro/routes/api/setup/admin-verify.mjs +11 -11
- package/dist/astro/routes/api/setup/admin.mjs +9 -9
- package/dist/astro/routes/api/setup/dev-bypass.mjs +24 -23
- package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
- package/dist/astro/routes/api/setup/index.mjs +25 -24
- package/dist/astro/routes/api/setup/status.mjs +3 -3
- package/dist/astro/routes/api/snapshot.mjs +7 -6
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +30 -29
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +30 -29
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +30 -29
- package/dist/astro/routes/api/taxonomies/index.mjs +30 -29
- package/dist/astro/routes/api/themes/preview.mjs +4 -4
- package/dist/astro/routes/api/typegen.mjs +4 -4
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +26 -26
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +27 -27
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +27 -27
- package/dist/astro/routes/api/widget-areas/_name_.mjs +25 -25
- package/dist/astro/routes/api/widget-areas/index.mjs +27 -27
- package/dist/astro/routes/api/widget-components.mjs +2 -2
- package/dist/astro/routes/robots.txt.mjs +7 -7
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +59 -15
- package/dist/astro/routes/sitemap.xml.mjs +8 -8
- package/dist/astro/session-driver.d.mts +1 -1
- package/dist/astro/session-driver.mjs +3 -3
- package/dist/astro/types.d.mts +16 -14
- package/dist/{audit-NgiRzqP9.mjs → audit-DuRbTm8L.mjs} +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{auth-control-guard-1FHtkDP6.mjs → auth-control-guard-Dr14I98m.mjs} +1 -1
- package/dist/{authorize-BbIhZi3a.mjs → authorize-BLO0m7fW.mjs} +1 -1
- package/dist/{briefing-Jsxs587i.mjs → briefing-BFEWeJtR.mjs} +6 -6
- package/dist/{briefing-DD82WaEy.mjs → briefing-C4fJSVYW.mjs} +1 -1
- package/dist/byline-CXQcMsBu.mjs +628 -0
- package/dist/{bylines-DaXfz8wy.d.mts → byline-fields-CaF_xfpj.d.mts} +159 -28
- package/dist/{import-Br7aP9yh.mjs → byline-fields-D7TJ_oHF.mjs} +57 -3
- package/dist/byline-fields-Dc7L6Yry.mjs +113 -0
- package/dist/byline-registry-CL8BxPPp.mjs +287 -0
- package/dist/bylines-BgriNlW7.mjs +165 -0
- package/dist/bylines-D2vqm1aZ.mjs +163 -0
- package/dist/{cache-DQyZ-QaB.mjs → cache-GRK71jOU.mjs} +2 -2
- package/dist/{chunks-D8KL0nCY.mjs → chunks-DgEw12Bc.mjs} +1 -1
- package/dist/cli/index.mjs +958 -89
- package/dist/client/external-auth-headers.d.mts +1 -1
- package/dist/client/index.d.mts +2 -1
- package/dist/client/index.mjs +5 -2
- package/dist/{comment-BmJXz3lc.mjs → comment-ogMaF1gk.mjs} +1 -1
- package/dist/{comments-yTbeIYc2.mjs → comments-CTSOKrZq.mjs} +1 -1
- package/dist/{connection-BCNICDWN.mjs → connection-CiJWiWya.mjs} +44 -13
- package/dist/{content-DvpMad_N.mjs → content-BfyjOiMi.mjs} +24 -4
- package/dist/content-index-names-Bbu1FY1r.mjs +26 -0
- package/dist/{context-cudavuns.mjs → context-DRhmPCiE.mjs} +2 -2
- package/dist/{context-Ufrm1lOv.mjs → context-ZMHhwzkG.mjs} +8 -8
- package/dist/{context-route-helpers--PJWR-5R.mjs → context-route-helpers-YLWx2N1j.mjs} +1 -1
- package/dist/{dashboard-BC9bgPOH.mjs → dashboard-D0gWuzNp.mjs} +4 -4
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +2 -2
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/libsql.mjs +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/db/sqlite.mjs +1 -1
- package/dist/{device-flow-CTS91g4A.mjs → device-flow-BL5ZRlc1.mjs} +4 -4
- package/dist/{dialect-helpers-TkdbkFad.mjs → dialect-helpers-fk43GbDb.mjs} +13 -3
- package/dist/{fts-manager-DnfOsF4s.mjs → fts-manager-EHY2Kes9.mjs} +2 -2
- package/dist/{hitl-requests-Us2A4Vj5.mjs → hitl-requests-B4Hkt0TO.mjs} +2 -2
- package/dist/{hitl-route-helpers-DcPySbZ3.mjs → hitl-route-helpers-CHjdfQ0s.mjs} +4 -4
- package/dist/{import-DSXK3aQF.mjs → import-CvHY6sf5.mjs} +3 -3
- package/dist/{index-BwOO3vu2.d.mts → index-DJVaYiUV.d.mts} +2 -2
- package/dist/index.d.mts +16 -17
- package/dist/index.mjs +69 -65
- package/dist/{jsonld-CLbYsYYH.d.mts → jsonld-AcPnCEGD.d.mts} +2 -2
- package/dist/{load-BCCcmoW9.mjs → load-BdbvtoDb.mjs} +1 -1
- package/dist/{loader-p2imNN98.mjs → loader-Y0QvC_QO.mjs} +167 -61
- package/dist/media/index.d.mts +1 -2
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +11 -12
- package/dist/media/local-runtime.mjs +2 -2
- package/dist/{media-Cg4zc9fq.mjs → media-DhBwiCYR.mjs} +6 -1
- package/dist/{media-allowlist-D8gsm8_t.mjs → media-allowlist-BsXkT9RK.mjs} +1 -1
- package/dist/{menus-DOaL6NaF.mjs → menus-BzGQpw9d.mjs} +2 -2
- package/dist/{menus-DzG3-9tQ.mjs → menus-fqqzXyHd.mjs} +5 -5
- package/dist/{oauth-authorization-DyOFXQWq.mjs → oauth-authorization-Dk3_LOfj.mjs} +4 -4
- package/dist/{oauth-clients-BMs_bmoz.mjs → oauth-clients-CzeMGyUU.mjs} +2 -2
- package/dist/page/index.d.mts +2 -2
- package/dist/page/index.mjs +1 -1
- package/dist/{parse-D7Tu6ku4.mjs → parse-CneSgl7-.mjs} +1 -1
- package/dist/{types-cn-fvYQ1.d.mts → placeholder-CXfoCtCd.d.mts} +38 -1
- package/dist/plugin-utils.d.mts +22 -10
- package/dist/plugin-utils.mjs +8 -10
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -10
- package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
- package/dist/{plugins-DCDVDF4B.mjs → plugins-BQ5Joz6v.mjs} +36 -6
- package/dist/{preview-BhgxNRWI.mjs → preview-D5rvDhRt.mjs} +7 -7
- package/dist/{provider-loader-B19YyyBp.d.mts → provider-loader-B5PMjpN7.d.mts} +1 -1
- package/dist/{query-BnRpB09I.mjs → query-BJuUydtD.mjs} +3 -3
- package/dist/{query-DHvNhBhi.mjs → query-CSx0EdSW.mjs} +30 -18
- package/dist/{rate-limit-BWP_kKiZ.mjs → rate-limit-i0G3IAOX.mjs} +2 -2
- package/dist/{redirect-BaVvo2te.mjs → redirect-BqFMj67n.mjs} +20 -6
- package/dist/{redirects-Ba-lJA5j.mjs → redirects-CJwHl_YG.mjs} +3 -3
- package/dist/{redirects-x5ol_Qj9.mjs → redirects-q_cToaHv.mjs} +29 -8
- package/dist/{registry-i__XP2WV.mjs → registry-Cq3QRBW2.mjs} +14 -5
- package/dist/{request-cache-BpwuE2ix.mjs → request-cache-w5cj5itT.mjs} +9 -1
- package/dist/{request-meta-DUGfAeXy.mjs → request-meta-DAb6xaP9.mjs} +1 -1
- package/dist/resolve-DTuDyYKs.mjs +100 -0
- package/dist/{review-requests-DuIxM4YM.mjs → review-requests-GYqjl2jO.mjs} +1 -1
- package/dist/{review-requests-CTUU_RJm.mjs → review-requests-tPw8_pAO.mjs} +1 -1
- package/dist/{runner-FhUNNaqA.d.mts → runner-Cnz4dl0f.d.mts} +1 -1
- package/dist/{runner-DF2DgD_B.mjs → runner-DTfG5v0G.mjs} +574 -196
- package/dist/{runtime-C4ZgKk6r.d.mts → runtime-Cd-kjPfN.d.mts} +1156 -274
- package/dist/runtime.d.mts +10 -11
- package/dist/runtime.mjs +4 -4
- package/dist/schema-DmHMWnSA.mjs +8 -0
- package/dist/{search-Cl9preJT.mjs → search-BAiFLz81.mjs} +3 -3
- package/dist/{sections-Zx-2q9IH.mjs → sections-DsuIrFDC.mjs} +2 -2
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +18 -17
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.mjs +1 -0
- package/dist/{seo-CJBiMDkj.mjs → seo-5lJOtB5J.mjs} +4 -2
- package/dist/{seo-BPb_reaG.mjs → seo-uMFBaR8G.mjs} +1 -1
- package/dist/{service-wPGgmbUa.mjs → service-CifrxCru.mjs} +2 -2
- package/dist/{settings-nr15a8uv.mjs → settings-BYGdocdj.mjs} +2 -2
- package/dist/{settings-DORe02PC.mjs → settings-DNRQuX3d.mjs} +3 -3
- package/dist/{site-activity-KFZprBZM.mjs → site-activity-6x1JccoR.mjs} +1 -1
- package/dist/{site-context-DuBQk6Mp.mjs → site-context-sN12ehZF.mjs} +13 -13
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +1 -1
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{taxonomies-DGaw_-aU.mjs → taxonomies-CQFmkP5u.mjs} +3 -3
- package/dist/{taxonomies-BVBKoXRf.mjs → taxonomies-faQVeMgj.mjs} +7 -32
- package/dist/{taxonomy-BvXRL85P.mjs → taxonomy-BnH-6VsX.mjs} +2 -2
- package/dist/{types-DvwHUku7.d.mts → types-B7_vSiPD.d.mts} +16 -0
- package/dist/{types-D1DjBFA9.mjs → types-Ck7-WoUD.mjs} +1 -1
- package/dist/{types-t7_nCCA9.d.mts → types-DEAQG87T.d.mts} +2 -56
- package/dist/{types-C-CMfzSl.d.mts → types-DYKtk8f1.d.mts} +31 -0
- package/dist/{types-C3Em8xpG.mjs → types-DbZhHtqS.mjs} +23 -1
- package/dist/{types-BIM7jwxr.d.mts → types-UGmU5sWx.d.mts} +1 -1
- package/dist/types-nP9vGUFq.d.mts +56 -0
- package/dist/ui/server-runtime.d.mts +13 -7
- package/dist/ui/server-runtime.mjs +18 -17
- package/dist/{user-2aI21yV1.mjs → user-CqZwN21P.mjs} +1 -1
- package/dist/{validate-CvQ6cvHH.d.mts → validate-BJuG-ISL.d.mts} +21 -3
- package/dist/{validate-JE-WfUQ5.mjs → validate-CK4a1sIF.mjs} +22 -2
- package/dist/version-Cg6ur4zS.mjs +6 -0
- package/dist/{widgets-Cj6ULpED.mjs → widgets-CdDvF4fV.mjs} +2 -2
- package/dist/{wordpress-slugs-hqItqJrQ.mjs → wordpress-slugs-B6Gw9q3Q.mjs} +1 -1
- package/dist/{zod-generator-C4BgFBZV.mjs → zod-generator-D1ROBNuC.mjs} +2 -2
- package/package.json +7 -8
- package/src/components/InlinePortableTextEditor.tsx +66 -0
- package/src/components/code-block-languages.ts +76 -0
- package/src/components/inline-code-block.tsx +241 -0
- package/dist/byline-DpNNSjET.mjs +0 -219
- package/dist/bylines-75_STR73.mjs +0 -114
- package/dist/chunk-ClPoSABd.mjs +0 -21
- package/dist/db-errors-DHJCB_gY.mjs +0 -23
- package/dist/index-Ct0pjZwW.d.mts +0 -835
- package/dist/placeholder-BZpCpid_.d.mts +0 -40
- package/dist/schema-U-SeFWwn.mjs +0 -8
- package/dist/version-PioVgJAl.mjs +0 -6
- /package/dist/{adapters-kZjS7plb.d.mts → adapters-OQCImOL7.d.mts} +0 -0
- /package/dist/{api-tokens-L0o9Bd7v.mjs → api-tokens-CYUoFGo7.mjs} +0 -0
- /package/dist/{challenge-store-cJam-E5R.mjs → challenge-store-CRSz-Xim.mjs} +0 -0
- /package/dist/{components-BJfa-F6n.mjs → components--pg6zBvu.mjs} +0 -0
- /package/dist/{config-XW5tMrH8.mjs → config-CVssduLe.mjs} +0 -0
- /package/dist/{context-types-BrSQNye5.mjs → context-types-DQh_XKkn.mjs} +0 -0
- /package/dist/{cron-D7FDsRu-.mjs → cron-DxCAU_Sn.mjs} +0 -0
- /package/dist/{default-5A3XVR7L.mjs → default-BHauvIdG.mjs} +0 -0
- /package/dist/{email-console-Bs1qKx59.mjs → email-console-BOVqIYpB.mjs} +0 -0
- /package/dist/{error-DLkgOP5m.mjs → error-DCSuUAZW.mjs} +0 -0
- /package/dist/{escape-r8_GbEU2.mjs → escape-BDgouFFY.mjs} +0 -0
- /package/dist/{experimental-workflows-BbZbIEZp.mjs → experimental-workflows-Dh4DUoD_.mjs} +0 -0
- /package/dist/{hash-DFFrkivP.mjs → hash-BPmX6P8I.mjs} +0 -0
- /package/dist/{manifest-schema-C6fzQoWn.mjs → manifest-schema-qh2P7RDX.mjs} +0 -0
- /package/dist/{mime-DYP4V5Ks.mjs → mime-8pAB8-77.mjs} +0 -0
- /package/dist/{mode-Bd55iLcP.mjs → mode-CpyEz8pe.mjs} +0 -0
- /package/dist/{normalize-BY_EJnd9.mjs → normalize-O-hi3a27.mjs} +0 -0
- /package/dist/{oauth-state-store-BRSUEkmx.mjs → oauth-state-store-qncPB_IU.mjs} +0 -0
- /package/dist/{oauth-user-lookup-DdcI8ZVL.mjs → oauth-user-lookup-BFjWF8wK.mjs} +0 -0
- /package/dist/{parser-egIGEco-.mjs → parser-DxfsARXL.mjs} +0 -0
- /package/dist/{passkey-config-AX4sjpQ4.mjs → passkey-config-DzHQK90v.mjs} +0 -0
- /package/dist/{patterns-CiyXeDgr.mjs → patterns-D9iDO3j8.mjs} +0 -0
- /package/dist/{placeholder-b0Ufu0La.mjs → placeholder-BDo81Is5.mjs} +0 -0
- /package/dist/{provider-loader-BdRV01gr.mjs → provider-loader-DzUxejk7.mjs} +0 -0
- /package/dist/{public-url-BL2r8dmQ.mjs → public-url-DLUM5OOv.mjs} +0 -0
- /package/dist/{redirect-Ce_6Yb6z.mjs → redirect-BjIBtDWY.mjs} +0 -0
- /package/dist/{secrets-DfeNNoLa.mjs → secrets-CN6FCpcB.mjs} +0 -0
- /package/dist/{seo-contributions-C0LXoWw3.mjs → seo-contributions-CqVvReEj.mjs} +0 -0
- /package/dist/{setup-complete-C2ztsNhJ.mjs → setup-complete-BytMc6HO.mjs} +0 -0
- /package/dist/{setup-nonce-BTKq7uBi.mjs → setup-nonce-pyGfc9hV.mjs} +0 -0
- /package/dist/{sidecar-client-lrf7ErYJ.mjs → sidecar-client-mJxwayYN.mjs} +0 -0
- /package/dist/{site-url-C18yBhtv.mjs → site-url-C-cu8Ff2.mjs} +0 -0
- /package/dist/{ssrf-KAIQS48_.mjs → ssrf-DiKqWd3N.mjs} +0 -0
- /package/dist/{tokens-CsP8Se8S.mjs → tokens-CjSgb0AC.mjs} +0 -0
- /package/dist/{transport-nNEGdHkI.d.mts → transport-DidKKxvW.d.mts} +0 -0
- /package/dist/{transport-B7kO-4ee.mjs → transport-LSdZVXHF.mjs} +0 -0
- /package/dist/{trusted-proxy-Bbm6PLR6.mjs → trusted-proxy-BgIIcbsN.mjs} +0 -0
- /package/dist/{types-CNNQ8l0v.mjs → types-Cg276-3z.mjs} +0 -0
- /package/dist/{types-BYjPylrZ.d.mts → types-DZpT-PnG.d.mts} +0 -0
- /package/dist/{types-BgE6gMFI.d.mts → types-Dryvv7LH.d.mts} +0 -0
- /package/dist/{types-BBETcziA.d.mts → types-GaCtZ1k9.d.mts} +0 -0
- /package/dist/{url-BzhfYtRn.mjs → url-w7Mp5qAD.mjs} +0 -0
- /package/dist/{utils-FEbQMgB5.mjs → utils-wv-zvC-Y.mjs} +0 -0
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
/** Valid role level values */
|
|
5
5
|
declare const VALID_ROLE_LEVELS: Set<number>;
|
|
6
6
|
/** Role level — coerces string/number to valid RoleLevel (10|20|30|40|50) */
|
|
7
|
-
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
7
|
+
declare const roleLevel: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
|
|
8
8
|
/** Pagination query params — cursor-based */
|
|
9
9
|
declare const cursorPaginationQuery: z.ZodObject<{
|
|
10
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -64,6 +64,7 @@ declare const contentListQuery: z.ZodObject<{
|
|
|
64
64
|
desc: "desc";
|
|
65
65
|
}>>;
|
|
66
66
|
locale: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
67
|
+
q: z.ZodOptional<z.ZodString>;
|
|
67
68
|
}, z.core.$strip>;
|
|
68
69
|
declare const contentCreateBody: z.ZodObject<{
|
|
69
70
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -149,11 +150,16 @@ declare const contentItemSchema: z.ZodObject<{
|
|
|
149
150
|
displayName: z.ZodString;
|
|
150
151
|
bio: z.ZodNullable<z.ZodString>;
|
|
151
152
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
153
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
152
155
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
153
156
|
userId: z.ZodNullable<z.ZodString>;
|
|
154
157
|
isGuest: z.ZodBoolean;
|
|
155
158
|
createdAt: z.ZodString;
|
|
156
159
|
updatedAt: z.ZodString;
|
|
160
|
+
locale: z.ZodString;
|
|
161
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
162
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
157
163
|
}, z.core.$strip>>>;
|
|
158
164
|
bylines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
165
|
byline: z.ZodObject<{
|
|
@@ -162,11 +168,16 @@ declare const contentItemSchema: z.ZodObject<{
|
|
|
162
168
|
displayName: z.ZodString;
|
|
163
169
|
bio: z.ZodNullable<z.ZodString>;
|
|
164
170
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
171
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
173
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
166
174
|
userId: z.ZodNullable<z.ZodString>;
|
|
167
175
|
isGuest: z.ZodBoolean;
|
|
168
176
|
createdAt: z.ZodString;
|
|
169
177
|
updatedAt: z.ZodString;
|
|
178
|
+
locale: z.ZodString;
|
|
179
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
180
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
170
181
|
}, z.core.$strip>;
|
|
171
182
|
sortOrder: z.ZodNumber;
|
|
172
183
|
roleLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -208,11 +219,16 @@ declare const contentResponseSchema: z.ZodObject<{
|
|
|
208
219
|
displayName: z.ZodString;
|
|
209
220
|
bio: z.ZodNullable<z.ZodString>;
|
|
210
221
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
222
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
224
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
212
225
|
userId: z.ZodNullable<z.ZodString>;
|
|
213
226
|
isGuest: z.ZodBoolean;
|
|
214
227
|
createdAt: z.ZodString;
|
|
215
228
|
updatedAt: z.ZodString;
|
|
229
|
+
locale: z.ZodString;
|
|
230
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
231
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
216
232
|
}, z.core.$strip>>>;
|
|
217
233
|
bylines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
234
|
byline: z.ZodObject<{
|
|
@@ -221,11 +237,16 @@ declare const contentResponseSchema: z.ZodObject<{
|
|
|
221
237
|
displayName: z.ZodString;
|
|
222
238
|
bio: z.ZodNullable<z.ZodString>;
|
|
223
239
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
240
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
242
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
225
243
|
userId: z.ZodNullable<z.ZodString>;
|
|
226
244
|
isGuest: z.ZodBoolean;
|
|
227
245
|
createdAt: z.ZodString;
|
|
228
246
|
updatedAt: z.ZodString;
|
|
247
|
+
locale: z.ZodString;
|
|
248
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
249
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
229
250
|
}, z.core.$strip>;
|
|
230
251
|
sortOrder: z.ZodNumber;
|
|
231
252
|
roleLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -269,11 +290,16 @@ declare const contentListResponseSchema: z.ZodObject<{
|
|
|
269
290
|
displayName: z.ZodString;
|
|
270
291
|
bio: z.ZodNullable<z.ZodString>;
|
|
271
292
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
293
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
295
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
273
296
|
userId: z.ZodNullable<z.ZodString>;
|
|
274
297
|
isGuest: z.ZodBoolean;
|
|
275
298
|
createdAt: z.ZodString;
|
|
276
299
|
updatedAt: z.ZodString;
|
|
300
|
+
locale: z.ZodString;
|
|
301
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
302
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
277
303
|
}, z.core.$strip>>>;
|
|
278
304
|
bylines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
279
305
|
byline: z.ZodObject<{
|
|
@@ -282,11 +308,16 @@ declare const contentListResponseSchema: z.ZodObject<{
|
|
|
282
308
|
displayName: z.ZodString;
|
|
283
309
|
bio: z.ZodNullable<z.ZodString>;
|
|
284
310
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
311
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
313
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
286
314
|
userId: z.ZodNullable<z.ZodString>;
|
|
287
315
|
isGuest: z.ZodBoolean;
|
|
288
316
|
createdAt: z.ZodString;
|
|
289
317
|
updatedAt: z.ZodString;
|
|
318
|
+
locale: z.ZodString;
|
|
319
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
320
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
290
321
|
}, z.core.$strip>;
|
|
291
322
|
sortOrder: z.ZodNumber;
|
|
292
323
|
roleLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -313,6 +344,7 @@ declare const contentListResponseSchema: z.ZodObject<{
|
|
|
313
344
|
}, z.core.$strip>>;
|
|
314
345
|
}, z.core.$strip>>;
|
|
315
346
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
347
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
316
348
|
}, z.core.$strip>;
|
|
317
349
|
/** Trashed content item */
|
|
318
350
|
declare const trashedContentItemSchema: z.ZodObject<{
|
|
@@ -374,6 +406,7 @@ declare const mediaListQuery: z.ZodObject<{
|
|
|
374
406
|
cursor: z.ZodOptional<z.ZodString>;
|
|
375
407
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
376
408
|
mimeType: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>>;
|
|
409
|
+
q: z.ZodOptional<z.ZodString>;
|
|
377
410
|
}, z.core.$strip>;
|
|
378
411
|
declare const mediaUpdateBody: z.ZodObject<{
|
|
379
412
|
alt: z.ZodOptional<z.ZodString>;
|
|
@@ -517,11 +550,11 @@ declare const createCollectionBody: z.ZodObject<{
|
|
|
517
550
|
description: z.ZodOptional<z.ZodString>;
|
|
518
551
|
icon: z.ZodOptional<z.ZodString>;
|
|
519
552
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
553
|
+
search: "search";
|
|
520
554
|
drafts: "drafts";
|
|
521
555
|
revisions: "revisions";
|
|
522
556
|
preview: "preview";
|
|
523
557
|
scheduling: "scheduling";
|
|
524
|
-
search: "search";
|
|
525
558
|
}>>>;
|
|
526
559
|
source: z.ZodOptional<z.ZodString>;
|
|
527
560
|
urlPattern: z.ZodOptional<z.ZodString>;
|
|
@@ -533,11 +566,11 @@ declare const updateCollectionBody: z.ZodObject<{
|
|
|
533
566
|
description: z.ZodOptional<z.ZodString>;
|
|
534
567
|
icon: z.ZodOptional<z.ZodString>;
|
|
535
568
|
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
569
|
+
search: "search";
|
|
536
570
|
drafts: "drafts";
|
|
537
571
|
revisions: "revisions";
|
|
538
572
|
preview: "preview";
|
|
539
573
|
scheduling: "scheduling";
|
|
540
|
-
search: "search";
|
|
541
574
|
}>>>;
|
|
542
575
|
urlPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
543
576
|
hasSeo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -559,14 +592,14 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
559
592
|
boolean: "boolean";
|
|
560
593
|
file: "file";
|
|
561
594
|
url: "url";
|
|
595
|
+
image: "image";
|
|
562
596
|
slug: "slug";
|
|
597
|
+
datetime: "datetime";
|
|
563
598
|
text: "text";
|
|
564
599
|
integer: "integer";
|
|
565
|
-
datetime: "datetime";
|
|
566
600
|
select: "select";
|
|
567
601
|
multiSelect: "multiSelect";
|
|
568
602
|
portableText: "portableText";
|
|
569
|
-
image: "image";
|
|
570
603
|
reference: "reference";
|
|
571
604
|
json: "json";
|
|
572
605
|
repeater: "repeater";
|
|
@@ -589,9 +622,9 @@ declare const createFieldBody: z.ZodObject<{
|
|
|
589
622
|
number: "number";
|
|
590
623
|
boolean: "boolean";
|
|
591
624
|
url: "url";
|
|
625
|
+
datetime: "datetime";
|
|
592
626
|
text: "text";
|
|
593
627
|
integer: "integer";
|
|
594
|
-
datetime: "datetime";
|
|
595
628
|
select: "select";
|
|
596
629
|
}>;
|
|
597
630
|
label: z.ZodString;
|
|
@@ -628,9 +661,9 @@ declare const updateFieldBody: z.ZodObject<{
|
|
|
628
661
|
number: "number";
|
|
629
662
|
boolean: "boolean";
|
|
630
663
|
url: "url";
|
|
664
|
+
datetime: "datetime";
|
|
631
665
|
text: "text";
|
|
632
666
|
integer: "integer";
|
|
633
|
-
datetime: "datetime";
|
|
634
667
|
select: "select";
|
|
635
668
|
}>;
|
|
636
669
|
label: z.ZodString;
|
|
@@ -686,14 +719,14 @@ declare const fieldSchema: z.ZodObject<{
|
|
|
686
719
|
boolean: "boolean";
|
|
687
720
|
file: "file";
|
|
688
721
|
url: "url";
|
|
722
|
+
image: "image";
|
|
689
723
|
slug: "slug";
|
|
724
|
+
datetime: "datetime";
|
|
690
725
|
text: "text";
|
|
691
726
|
integer: "integer";
|
|
692
|
-
datetime: "datetime";
|
|
693
727
|
select: "select";
|
|
694
728
|
multiSelect: "multiSelect";
|
|
695
729
|
portableText: "portableText";
|
|
696
|
-
image: "image";
|
|
697
730
|
reference: "reference";
|
|
698
731
|
json: "json";
|
|
699
732
|
repeater: "repeater";
|
|
@@ -751,14 +784,14 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
|
|
|
751
784
|
boolean: "boolean";
|
|
752
785
|
file: "file";
|
|
753
786
|
url: "url";
|
|
787
|
+
image: "image";
|
|
754
788
|
slug: "slug";
|
|
789
|
+
datetime: "datetime";
|
|
755
790
|
text: "text";
|
|
756
791
|
integer: "integer";
|
|
757
|
-
datetime: "datetime";
|
|
758
792
|
select: "select";
|
|
759
793
|
multiSelect: "multiSelect";
|
|
760
794
|
portableText: "portableText";
|
|
761
|
-
image: "image";
|
|
762
795
|
reference: "reference";
|
|
763
796
|
json: "json";
|
|
764
797
|
repeater: "repeater";
|
|
@@ -805,14 +838,14 @@ declare const fieldResponseSchema: z.ZodObject<{
|
|
|
805
838
|
boolean: "boolean";
|
|
806
839
|
file: "file";
|
|
807
840
|
url: "url";
|
|
841
|
+
image: "image";
|
|
808
842
|
slug: "slug";
|
|
843
|
+
datetime: "datetime";
|
|
809
844
|
text: "text";
|
|
810
845
|
integer: "integer";
|
|
811
|
-
datetime: "datetime";
|
|
812
846
|
select: "select";
|
|
813
847
|
multiSelect: "multiSelect";
|
|
814
848
|
portableText: "portableText";
|
|
815
|
-
image: "image";
|
|
816
849
|
reference: "reference";
|
|
817
850
|
json: "json";
|
|
818
851
|
repeater: "repeater";
|
|
@@ -842,14 +875,14 @@ declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
842
875
|
boolean: "boolean";
|
|
843
876
|
file: "file";
|
|
844
877
|
url: "url";
|
|
878
|
+
image: "image";
|
|
845
879
|
slug: "slug";
|
|
880
|
+
datetime: "datetime";
|
|
846
881
|
text: "text";
|
|
847
882
|
integer: "integer";
|
|
848
|
-
datetime: "datetime";
|
|
849
883
|
select: "select";
|
|
850
884
|
multiSelect: "multiSelect";
|
|
851
885
|
portableText: "portableText";
|
|
852
|
-
image: "image";
|
|
853
886
|
reference: "reference";
|
|
854
887
|
json: "json";
|
|
855
888
|
repeater: "repeater";
|
|
@@ -890,8 +923,8 @@ declare const createCommentBody: z.ZodObject<{
|
|
|
890
923
|
}, z.core.$strip>;
|
|
891
924
|
declare const commentStatusBody: z.ZodObject<{
|
|
892
925
|
status: z.ZodEnum<{
|
|
893
|
-
pending: "pending";
|
|
894
926
|
approved: "approved";
|
|
927
|
+
pending: "pending";
|
|
895
928
|
spam: "spam";
|
|
896
929
|
trash: "trash";
|
|
897
930
|
}>;
|
|
@@ -907,8 +940,8 @@ declare const commentBulkBody: z.ZodObject<{
|
|
|
907
940
|
}, z.core.$strip>;
|
|
908
941
|
declare const commentListQuery: z.ZodObject<{
|
|
909
942
|
status: z.ZodOptional<z.ZodEnum<{
|
|
910
|
-
pending: "pending";
|
|
911
943
|
approved: "approved";
|
|
944
|
+
pending: "pending";
|
|
912
945
|
spam: "spam";
|
|
913
946
|
trash: "trash";
|
|
914
947
|
}>>;
|
|
@@ -942,8 +975,8 @@ declare const commentSchema: z.ZodObject<{
|
|
|
942
975
|
authorEmail: z.ZodString;
|
|
943
976
|
body: z.ZodString;
|
|
944
977
|
status: z.ZodEnum<{
|
|
945
|
-
pending: "pending";
|
|
946
978
|
approved: "approved";
|
|
979
|
+
pending: "pending";
|
|
947
980
|
spam: "spam";
|
|
948
981
|
trash: "trash";
|
|
949
982
|
}>;
|
|
@@ -974,8 +1007,8 @@ declare const adminCommentListResponseSchema: z.ZodObject<{
|
|
|
974
1007
|
authorEmail: z.ZodString;
|
|
975
1008
|
body: z.ZodString;
|
|
976
1009
|
status: z.ZodEnum<{
|
|
977
|
-
pending: "pending";
|
|
978
1010
|
approved: "approved";
|
|
1011
|
+
pending: "pending";
|
|
979
1012
|
spam: "spam";
|
|
980
1013
|
trash: "trash";
|
|
981
1014
|
}>;
|
|
@@ -1020,9 +1053,9 @@ declare const contextEntryListQuery: z.ZodObject<{
|
|
|
1020
1053
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1021
1054
|
}, z.core.$strip>;
|
|
1022
1055
|
declare const contextEntryStaleQuery: z.ZodObject<{
|
|
1023
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1024
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1025
1056
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1058
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1026
1059
|
includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
|
|
1027
1060
|
true: "true";
|
|
1028
1061
|
false: "false";
|
|
@@ -1115,8 +1148,8 @@ declare const siteBriefingQuery: z.ZodObject<{
|
|
|
1115
1148
|
//#region src/api/schemas/hitl-requests.d.ts
|
|
1116
1149
|
declare const hitlRequestListQuery: z.ZodObject<{
|
|
1117
1150
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1118
|
-
pending: "pending";
|
|
1119
1151
|
approved: "approved";
|
|
1152
|
+
pending: "pending";
|
|
1120
1153
|
rejected: "rejected";
|
|
1121
1154
|
}>>;
|
|
1122
1155
|
priority: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1143,8 +1176,8 @@ declare const hitlRequestResolveBody: z.ZodObject<{
|
|
|
1143
1176
|
//#region src/api/schemas/review-requests.d.ts
|
|
1144
1177
|
declare const reviewRequestListQuery: z.ZodObject<{
|
|
1145
1178
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1146
|
-
pending: "pending";
|
|
1147
1179
|
approved: "approved";
|
|
1180
|
+
pending: "pending";
|
|
1148
1181
|
rejected: "rejected";
|
|
1149
1182
|
}>>;
|
|
1150
1183
|
collection: z.ZodOptional<z.ZodString>;
|
|
@@ -1192,7 +1225,7 @@ declare const signupCompleteBody: z.ZodObject<{
|
|
|
1192
1225
|
}, z.core.$strip>;
|
|
1193
1226
|
declare const inviteCreateBody: z.ZodObject<{
|
|
1194
1227
|
email: z.ZodString;
|
|
1195
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1228
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1196
1229
|
}, z.core.$strip>;
|
|
1197
1230
|
declare const inviteCompleteBody: z.ZodObject<{
|
|
1198
1231
|
token: z.ZodString;
|
|
@@ -1744,15 +1777,15 @@ declare const usersListQuery: z.ZodObject<{
|
|
|
1744
1777
|
declare const userUpdateBody: z.ZodObject<{
|
|
1745
1778
|
name: z.ZodOptional<z.ZodString>;
|
|
1746
1779
|
email: z.ZodOptional<z.ZodString>;
|
|
1747
|
-
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1780
|
+
role: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1748
1781
|
}, z.core.$strip>;
|
|
1749
1782
|
declare const allowedDomainCreateBody: z.ZodObject<{
|
|
1750
1783
|
domain: z.ZodString;
|
|
1751
|
-
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1784
|
+
defaultRole: z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>;
|
|
1752
1785
|
}, z.core.$strip>;
|
|
1753
1786
|
declare const allowedDomainUpdateBody: z.ZodObject<{
|
|
1754
1787
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1755
|
-
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<
|
|
1788
|
+
defaultRole: z.ZodOptional<z.ZodCoercedNumber<unknown> & z.ZodType<10 | 20 | 30 | 40 | 50, unknown, z.core.$ZodTypeInternals<10 | 20 | 30 | 40 | 50, unknown>>>;
|
|
1756
1789
|
}, z.core.$strip>;
|
|
1757
1790
|
declare const userSchema: z.ZodObject<{
|
|
1758
1791
|
id: z.ZodString;
|
|
@@ -2020,11 +2053,16 @@ declare const bylineSummarySchema: z.ZodObject<{
|
|
|
2020
2053
|
displayName: z.ZodString;
|
|
2021
2054
|
bio: z.ZodNullable<z.ZodString>;
|
|
2022
2055
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
2056
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2057
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2023
2058
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
2024
2059
|
userId: z.ZodNullable<z.ZodString>;
|
|
2025
2060
|
isGuest: z.ZodBoolean;
|
|
2026
2061
|
createdAt: z.ZodString;
|
|
2027
2062
|
updatedAt: z.ZodString;
|
|
2063
|
+
locale: z.ZodString;
|
|
2064
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
2065
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
2028
2066
|
}, z.core.$strip>;
|
|
2029
2067
|
declare const bylineCreditSchema: z.ZodObject<{
|
|
2030
2068
|
byline: z.ZodObject<{
|
|
@@ -2033,11 +2071,16 @@ declare const bylineCreditSchema: z.ZodObject<{
|
|
|
2033
2071
|
displayName: z.ZodString;
|
|
2034
2072
|
bio: z.ZodNullable<z.ZodString>;
|
|
2035
2073
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
2074
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2075
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2036
2076
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
2037
2077
|
userId: z.ZodNullable<z.ZodString>;
|
|
2038
2078
|
isGuest: z.ZodBoolean;
|
|
2039
2079
|
createdAt: z.ZodString;
|
|
2040
2080
|
updatedAt: z.ZodString;
|
|
2081
|
+
locale: z.ZodString;
|
|
2082
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
2083
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
2041
2084
|
}, z.core.$strip>;
|
|
2042
2085
|
sortOrder: z.ZodNumber;
|
|
2043
2086
|
roleLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -2056,6 +2099,7 @@ declare const bylinesListQuery: z.ZodObject<{
|
|
|
2056
2099
|
search: z.ZodOptional<z.ZodString>;
|
|
2057
2100
|
isGuest: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
2058
2101
|
userId: z.ZodOptional<z.ZodString>;
|
|
2102
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
2059
2103
|
}, z.core.$strip>;
|
|
2060
2104
|
declare const bylineCreateBody: z.ZodObject<{
|
|
2061
2105
|
slug: z.ZodString;
|
|
@@ -2065,6 +2109,9 @@ declare const bylineCreateBody: z.ZodObject<{
|
|
|
2065
2109
|
websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2066
2110
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2067
2111
|
isGuest: z.ZodOptional<z.ZodBoolean>;
|
|
2112
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
2113
|
+
translationOf: z.ZodOptional<z.ZodString>;
|
|
2114
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
2068
2115
|
}, z.core.$strip>;
|
|
2069
2116
|
declare const bylineUpdateBody: z.ZodObject<{
|
|
2070
2117
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2074,6 +2121,7 @@ declare const bylineUpdateBody: z.ZodObject<{
|
|
|
2074
2121
|
websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2075
2122
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2076
2123
|
isGuest: z.ZodOptional<z.ZodBoolean>;
|
|
2124
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
2077
2125
|
}, z.core.$strip>;
|
|
2078
2126
|
declare const bylineListResponseSchema: z.ZodObject<{
|
|
2079
2127
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -2082,13 +2130,96 @@ declare const bylineListResponseSchema: z.ZodObject<{
|
|
|
2082
2130
|
displayName: z.ZodString;
|
|
2083
2131
|
bio: z.ZodNullable<z.ZodString>;
|
|
2084
2132
|
avatarMediaId: z.ZodNullable<z.ZodString>;
|
|
2133
|
+
avatarStorageKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2134
|
+
avatarAlt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2085
2135
|
websiteUrl: z.ZodNullable<z.ZodString>;
|
|
2086
2136
|
userId: z.ZodNullable<z.ZodString>;
|
|
2087
2137
|
isGuest: z.ZodBoolean;
|
|
2088
2138
|
createdAt: z.ZodString;
|
|
2089
2139
|
updatedAt: z.ZodString;
|
|
2140
|
+
locale: z.ZodString;
|
|
2141
|
+
translationGroup: z.ZodNullable<z.ZodString>;
|
|
2142
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNull]>>>;
|
|
2090
2143
|
}, z.core.$strip>>;
|
|
2091
2144
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2092
2145
|
}, z.core.$strip>;
|
|
2093
2146
|
//#endregion
|
|
2094
|
-
|
|
2147
|
+
//#region src/api/schemas/byline-fields.d.ts
|
|
2148
|
+
declare const bylineFieldCreateBody: z.ZodObject<{
|
|
2149
|
+
slug: z.ZodString;
|
|
2150
|
+
label: z.ZodString;
|
|
2151
|
+
type: z.ZodEnum<{
|
|
2152
|
+
string: "string";
|
|
2153
|
+
boolean: "boolean";
|
|
2154
|
+
url: "url";
|
|
2155
|
+
text: "text";
|
|
2156
|
+
select: "select";
|
|
2157
|
+
}>;
|
|
2158
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2159
|
+
translatable: z.ZodOptional<z.ZodBoolean>;
|
|
2160
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2161
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2162
|
+
}, z.core.$strict>>>;
|
|
2163
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
2164
|
+
}, z.core.$strict>;
|
|
2165
|
+
declare const bylineFieldUpdateBody: z.ZodObject<{
|
|
2166
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2167
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2168
|
+
translatable: z.ZodOptional<z.ZodBoolean>;
|
|
2169
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2170
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2171
|
+
}, z.core.$strict>>>;
|
|
2172
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
2173
|
+
}, z.core.$strict>;
|
|
2174
|
+
declare const bylineFieldReorderBody: z.ZodObject<{
|
|
2175
|
+
slugs: z.ZodArray<z.ZodString>;
|
|
2176
|
+
}, z.core.$strict>;
|
|
2177
|
+
declare const bylineFieldDefinitionSchema: z.ZodObject<{
|
|
2178
|
+
id: z.ZodString;
|
|
2179
|
+
slug: z.ZodString;
|
|
2180
|
+
label: z.ZodString;
|
|
2181
|
+
type: z.ZodEnum<{
|
|
2182
|
+
string: "string";
|
|
2183
|
+
boolean: "boolean";
|
|
2184
|
+
url: "url";
|
|
2185
|
+
text: "text";
|
|
2186
|
+
select: "select";
|
|
2187
|
+
}>;
|
|
2188
|
+
required: z.ZodBoolean;
|
|
2189
|
+
translatable: z.ZodBoolean;
|
|
2190
|
+
validation: z.ZodNullable<z.ZodObject<{
|
|
2191
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2192
|
+
}, z.core.$strip>>;
|
|
2193
|
+
sortOrder: z.ZodNumber;
|
|
2194
|
+
createdAt: z.ZodString;
|
|
2195
|
+
updatedAt: z.ZodString;
|
|
2196
|
+
}, z.core.$strip>;
|
|
2197
|
+
declare const bylineFieldListResponseSchema: z.ZodObject<{
|
|
2198
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2199
|
+
id: z.ZodString;
|
|
2200
|
+
slug: z.ZodString;
|
|
2201
|
+
label: z.ZodString;
|
|
2202
|
+
type: z.ZodEnum<{
|
|
2203
|
+
string: "string";
|
|
2204
|
+
boolean: "boolean";
|
|
2205
|
+
url: "url";
|
|
2206
|
+
text: "text";
|
|
2207
|
+
select: "select";
|
|
2208
|
+
}>;
|
|
2209
|
+
required: z.ZodBoolean;
|
|
2210
|
+
translatable: z.ZodBoolean;
|
|
2211
|
+
validation: z.ZodNullable<z.ZodObject<{
|
|
2212
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2213
|
+
}, z.core.$strip>>;
|
|
2214
|
+
sortOrder: z.ZodNumber;
|
|
2215
|
+
createdAt: z.ZodString;
|
|
2216
|
+
updatedAt: z.ZodString;
|
|
2217
|
+
}, z.core.$strip>>;
|
|
2218
|
+
}, z.core.$strip>;
|
|
2219
|
+
declare const bylineFieldUsageResponseSchema: z.ZodObject<{
|
|
2220
|
+
translatableValueCount: z.ZodNumber;
|
|
2221
|
+
groupValueCount: z.ZodNumber;
|
|
2222
|
+
totalAffectedRows: z.ZodNumber;
|
|
2223
|
+
}, z.core.$strip>;
|
|
2224
|
+
//#endregion
|
|
2225
|
+
export { settingsUpdateBody as $, contentUpdateBody as $n, commentBulkBody as $t, widgetAreaSchema as A, mediaItemSchema as An, inviteCompleteBody as At, usersListQuery as B, contentItemSchema as Bn, signupRequestBody as Bt, redirectSchema as C, updateCollectionBody as Cn, menuSchema as Ct, createWidgetBody as D, mediaConfirmBody as Dn, updateMenuBody as Dt, createWidgetAreaBody as E, formatFileSize as En, reorderMenuItemsBody as Et, allowedDomainUpdateBody as F, mediaUpdateBody as Fn, passkeyRegisterOptionsBody as Ft, wpPrepareBody as G, contentResponseSchema as Gn, siteBriefingQuery as Gt, wpMediaImportBody as H, contentListResponseSchema as Hn, reviewRequestResolveBody as Ht, userDetailSchema as I, mediaUploadUrlBody as In, passkeyRegisterVerifyBody as It, searchQuery as J, contentSeoSchema as Jn, contextEntryListQuery as Jt, wpRewriteUrlsBody as K, contentScheduleBody as Kn, contextEntryCreateBody as Kt, userListResponseSchema as L, mediaUploadUrlResponseSchema as Ln, passkeyRenameBody as Lt, widgetAreaWithWidgetsSchema as M, mediaListResponseSchema as Mn, inviteRegisterOptionsBody as Mt, widgetSchema as N, mediaProviderListQuery as Nn, magicLinkSendBody as Nt, reorderWidgetsBody as O, mediaConfirmResponseSchema as On, updateMenuItemBody as Ot, allowedDomainCreateBody as P, mediaResponseSchema as Pn, passkeyOptionsBody as Pt, searchSuggestQuery as Q, contentTrashQuery as Qn, adminCommentListResponseSchema as Qt, userSchema as R, contentCompareResponseSchema as Rn, passkeyVerifyBody as Rt, redirectListResponseSchema as S, schemaExportQuery as Sn, menuListItemSchema as St, updateRedirectBody as T, DEFAULT_MAX_UPLOAD_SIZE as Tn, menuWithItemsSchema as Tt, wpPluginAnalyzeBody as U, contentPreviewUrlBody as Un, hitlRequestListQuery as Ut, importProbeBody as V, contentListQuery as Vn, reviewRequestListQuery as Vt, wpPluginExecuteBody as W, contentPublishBody as Wn, hitlRequestResolveBody as Wt, searchResponseSchema as X, contentTranslationSchema as Xn, contextEntryStaleQuery as Xt, searchRebuildBody as Y, contentTermsBody as Yn, contextEntryReviewBody as Yt, searchResultSchema as Z, contentTranslationsResponseSchema as Zn, contextEntrySupersedeBody as Zt, notFoundListResponseSchema as _, fieldResponseSchema as _n, updateTermBody as _t, bylineFieldUpdateBody as a, createCommentBody as an, cursorPaginationQuery as ar, updateSectionBody as at, notFoundSummaryResponseSchema as b, orphanedTableListResponseSchema as bn, menuItemSchema as bt, bylineCreditSchema as c, collectionGetQuery as cn, localeCode as cr, taxonomyDefSchema as ct, bylineUpdateBody as d, collectionSchema as dn, roleLevel as dr, termGetResponseSchema as dt, commentBulkResponseSchema as en, trashedContentItemSchema as er, siteSettingsSchema as et, bylinesListQuery as f, collectionWithFieldsResponseSchema as fn, slugPattern as fr, termListResponseSchema as ft, notFoundListQuery as g, fieldReorderBody as gn, termWithCountSchema as gt, notFoundEntrySchema as h, fieldListResponseSchema as hn, termTranslationsSchema as ht, bylineFieldReorderBody as i, commentStatusBody as in, countResponseSchema as ir, sectionsListQuery as it, widgetAreaWithWidgetsAndCountSchema as j, mediaListQuery as jn, inviteCreateBody as jt, updateWidgetBody as k, mediaExistingResponseSchema as kn, authMeActionBody as kt, bylineListResponseSchema as l, collectionListResponseSchema as ln, localeFilterQuery as lr, taxonomyDefTranslationsSchema as lt, createRedirectBody as m, createFieldBody as mn, termSchema as mt, bylineFieldDefinitionSchema as n, commentListQuery as nn, VALID_ROLE_LEVELS as nr, sectionListResponseSchema as nt, bylineFieldUsageResponseSchema as o, publicCommentListResponseSchema as on, deleteResponseSchema as or, createTaxonomyDefBody as ot, contentBylineInputSchema as p, createCollectionBody as pn, successEnvelope as pr, termResponseSchema as pt, searchEnableBody as q, contentSeoInput as qn, contextEntryDiffQuery as qt, bylineFieldListResponseSchema as r, commentSchema as rn, apiErrorSchema as rr, sectionSchema as rt, bylineCreateBody as s, publicCommentSchema as sn, httpUrl as sr, createTermBody as st, bylineFieldCreateBody as t, commentCountsResponseSchema as tn, trashedContentListResponseSchema as tr, createSectionBody as tt, bylineSummarySchema as u, collectionResponseSchema as un, offsetPaginationQuery as ur, taxonomyListResponseSchema as ut, notFoundPruneBody as v, fieldSchema as vn, createMenuBody as vt, redirectsListQuery as w, updateFieldBody as wn, menuTranslationsSchema as wt, notFoundSummarySchema as x, orphanedTableSchema as xn, menuItemTypeEnum as xt, notFoundSummaryQuery as y, orphanRegisterBody as yn, createMenuItemBody as yt, userUpdateBody as z, contentCreateBody as zn, signupCompleteBody as zt };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as RESERVED_BYLINE_FIELD_SLUGS } from "./types-DbZhHtqS.mjs";
|
|
2
|
+
import { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-DQh_XKkn.mjs";
|
|
3
|
+
import { An as roleLevel, En as httpUrl } from "./redirects-q_cToaHv.mjs";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
|
|
5
6
|
//#region src/api/schemas/context.ts
|
|
@@ -240,4 +241,57 @@ const wpRewriteUrlsBody = z.object({
|
|
|
240
241
|
});
|
|
241
242
|
|
|
242
243
|
//#endregion
|
|
243
|
-
|
|
244
|
+
//#region src/api/schemas/byline-fields.ts
|
|
245
|
+
const bylineFieldSlugPattern = /^[a-z][a-z0-9_]*$/;
|
|
246
|
+
const MAX_SLUG_LENGTH = 63;
|
|
247
|
+
const MAX_LABEL_LENGTH = 200;
|
|
248
|
+
const MAX_SELECT_OPTIONS = 200;
|
|
249
|
+
const RESERVED_SET = new Set(RESERVED_BYLINE_FIELD_SLUGS);
|
|
250
|
+
const bylineFieldType = z.enum([
|
|
251
|
+
"string",
|
|
252
|
+
"text",
|
|
253
|
+
"url",
|
|
254
|
+
"boolean",
|
|
255
|
+
"select"
|
|
256
|
+
]);
|
|
257
|
+
const bylineFieldValidation = z.object({ options: z.array(z.string().min(1)).min(1).max(MAX_SELECT_OPTIONS, `select options cannot exceed ${MAX_SELECT_OPTIONS} entries`).optional() }).strict().nullable();
|
|
258
|
+
const bylineFieldSlug = z.string().min(1, "Byline field slug is required").max(MAX_SLUG_LENGTH, `Byline field slug must be ${MAX_SLUG_LENGTH} characters or less`).regex(bylineFieldSlugPattern, "Byline field slug must contain only lowercase letters, digits, and underscores, and start with a letter").refine((slug) => !RESERVED_SET.has(slug), { message: "Byline field slug is reserved" });
|
|
259
|
+
const bylineFieldLabel = z.string().min(1, "Byline field label is required").max(MAX_LABEL_LENGTH, `Byline field label must be ${MAX_LABEL_LENGTH} characters or less`);
|
|
260
|
+
const bylineFieldCreateBody = z.object({
|
|
261
|
+
slug: bylineFieldSlug,
|
|
262
|
+
label: bylineFieldLabel,
|
|
263
|
+
type: bylineFieldType,
|
|
264
|
+
required: z.boolean().optional(),
|
|
265
|
+
translatable: z.boolean().optional(),
|
|
266
|
+
validation: bylineFieldValidation.optional(),
|
|
267
|
+
sortOrder: z.number().int().min(0).optional()
|
|
268
|
+
}).strict().meta({ id: "BylineFieldCreateBody" });
|
|
269
|
+
const bylineFieldUpdateBody = z.object({
|
|
270
|
+
label: bylineFieldLabel.optional(),
|
|
271
|
+
required: z.boolean().optional(),
|
|
272
|
+
translatable: z.boolean().optional(),
|
|
273
|
+
validation: bylineFieldValidation.optional(),
|
|
274
|
+
sortOrder: z.number().int().min(0).optional()
|
|
275
|
+
}).strict().meta({ id: "BylineFieldUpdateBody" });
|
|
276
|
+
const bylineFieldReorderBody = z.object({ slugs: z.array(bylineFieldSlug) }).strict().meta({ id: "BylineFieldReorderBody" });
|
|
277
|
+
const bylineFieldDefinitionSchema = z.object({
|
|
278
|
+
id: z.string(),
|
|
279
|
+
slug: z.string(),
|
|
280
|
+
label: z.string(),
|
|
281
|
+
type: bylineFieldType,
|
|
282
|
+
required: z.boolean(),
|
|
283
|
+
translatable: z.boolean(),
|
|
284
|
+
validation: z.object({ options: z.array(z.string()).optional() }).nullable(),
|
|
285
|
+
sortOrder: z.number().int(),
|
|
286
|
+
createdAt: z.string(),
|
|
287
|
+
updatedAt: z.string()
|
|
288
|
+
}).meta({ id: "BylineFieldDefinition" });
|
|
289
|
+
const bylineFieldListResponseSchema = z.object({ items: z.array(bylineFieldDefinitionSchema) }).meta({ id: "BylineFieldListResponse" });
|
|
290
|
+
const bylineFieldUsageResponseSchema = z.object({
|
|
291
|
+
translatableValueCount: z.number().int().nonnegative(),
|
|
292
|
+
groupValueCount: z.number().int().nonnegative(),
|
|
293
|
+
totalAffectedRows: z.number().int().nonnegative()
|
|
294
|
+
}).meta({ id: "BylineFieldUsageResponse" });
|
|
295
|
+
|
|
296
|
+
//#endregion
|
|
297
|
+
export { contextEntryCreateBody as A, signupCompleteBody as C, hitlRequestListQuery as D, reviewRequestResolveBody as E, contextEntrySupersedeBody as F, contextEntryListQuery as M, contextEntryReviewBody as N, hitlRequestResolveBody as O, contextEntryStaleQuery as P, passkeyVerifyBody as S, reviewRequestListQuery as T, magicLinkSendBody as _, bylineFieldUpdateBody as a, passkeyRegisterVerifyBody as b, wpMediaImportBody as c, wpPrepareBody as d, wpRewriteUrlsBody as f, inviteRegisterOptionsBody as g, inviteCreateBody as h, bylineFieldReorderBody as i, contextEntryDiffQuery as j, siteBriefingQuery as k, wpPluginAnalyzeBody as l, inviteCompleteBody as m, bylineFieldDefinitionSchema as n, bylineFieldUsageResponseSchema as o, authMeActionBody as p, bylineFieldListResponseSchema as r, importProbeBody as s, bylineFieldCreateBody as t, wpPluginExecuteBody as u, passkeyOptionsBody as v, signupRequestBody as w, passkeyRenameBody as x, passkeyRegisterOptionsBody as y };
|