dineway 0.1.45 → 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.
Files changed (387) hide show
  1. package/dist/{activity-events-CpcTzKpF.mjs → activity-events-CNk3clTT.mjs} +1 -1
  2. package/dist/{allowed-origins-3RuuoFjC.mjs → allowed-origins-DhipQNLb.mjs} +1 -1
  3. package/dist/api/route-utils.d.mts +9 -10
  4. package/dist/api/route-utils.mjs +13 -13
  5. package/dist/api/schemas/index.d.mts +2 -2
  6. package/dist/api/schemas/index.mjs +4 -4
  7. package/dist/{api-DkFSCD74.mjs → api-Bmfii2mH.mjs} +101 -56
  8. package/dist/{api-tokens-BFg7tiOQ.mjs → api-tokens-DtvdtIkm.mjs} +1 -1
  9. package/dist/{apply-TIoQ00aH.mjs → apply-BpRBCqUt.mjs} +76 -31
  10. package/dist/astro/index.d.mts +10 -11
  11. package/dist/astro/index.mjs +23 -3
  12. package/dist/astro/middleware/auth.d.mts +9 -10
  13. package/dist/astro/middleware/auth.mjs +5 -5
  14. package/dist/astro/middleware/redirect.mjs +13 -7
  15. package/dist/astro/middleware/request-context.mjs +3 -3
  16. package/dist/astro/middleware/seed.d.mts +1 -1
  17. package/dist/astro/middleware/seed.mjs +2 -2
  18. package/dist/astro/middleware/setup.mjs +1 -1
  19. package/dist/astro/middleware.mjs +120 -82
  20. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
  21. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
  22. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
  23. package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
  24. package/dist/astro/routes/api/admin/briefing.mjs +17 -17
  25. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.d.mts +7 -0
  26. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +17 -0
  27. package/dist/astro/routes/api/admin/byline-fields/_slug_.d.mts +9 -0
  28. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +38 -0
  29. package/dist/astro/routes/api/admin/byline-fields/index.d.mts +8 -0
  30. package/dist/astro/routes/api/admin/byline-fields/index.mjs +31 -0
  31. package/dist/astro/routes/api/admin/byline-fields/reorder.d.mts +7 -0
  32. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +24 -0
  33. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +27 -27
  34. package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts +8 -0
  35. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +57 -0
  36. package/dist/astro/routes/api/admin/bylines/index.mjs +30 -26
  37. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +11 -11
  38. package/dist/astro/routes/api/admin/comments/_id_.mjs +5 -5
  39. package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
  40. package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
  41. package/dist/astro/routes/api/admin/comments/index.mjs +9 -9
  42. package/dist/astro/routes/api/admin/context/_id_/history.mjs +23 -23
  43. package/dist/astro/routes/api/admin/context/_id_/index.mjs +23 -23
  44. package/dist/astro/routes/api/admin/context/_id_/review.mjs +27 -27
  45. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +27 -27
  46. package/dist/astro/routes/api/admin/context/diff.mjs +26 -26
  47. package/dist/astro/routes/api/admin/context/index.mjs +27 -27
  48. package/dist/astro/routes/api/admin/context/stale.mjs +26 -26
  49. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +23 -23
  50. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +26 -26
  51. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +26 -26
  52. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +24 -24
  53. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
  54. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
  55. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
  56. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +48 -44
  57. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +48 -44
  58. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +42 -38
  59. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +47 -43
  60. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +47 -43
  61. package/dist/astro/routes/api/admin/plugins/index.mjs +42 -38
  62. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
  63. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +42 -38
  64. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +47 -43
  65. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +42 -38
  66. package/dist/astro/routes/api/admin/plugins/updates.mjs +42 -38
  67. package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +5 -5
  68. package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +26 -26
  69. package/dist/astro/routes/api/admin/review-requests/index.mjs +9 -9
  70. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +42 -38
  71. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
  72. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +42 -38
  73. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +1 -1
  74. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
  75. package/dist/astro/routes/api/admin/users/_id_/index.mjs +5 -5
  76. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +2 -2
  77. package/dist/astro/routes/api/admin/users/index.mjs +5 -5
  78. package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
  79. package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
  80. package/dist/astro/routes/api/auth/invite/complete.mjs +9 -9
  81. package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
  82. package/dist/astro/routes/api/auth/invite/register-options.mjs +8 -8
  83. package/dist/astro/routes/api/auth/logout.mjs +2 -2
  84. package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
  85. package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
  86. package/dist/astro/routes/api/auth/me.mjs +20 -11
  87. package/dist/astro/routes/api/auth/mode.mjs +1 -1
  88. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
  89. package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
  90. package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
  91. package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
  92. package/dist/astro/routes/api/auth/passkey/options.mjs +10 -10
  93. package/dist/astro/routes/api/auth/passkey/register/options.mjs +8 -8
  94. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +9 -9
  95. package/dist/astro/routes/api/auth/passkey/verify.mjs +9 -9
  96. package/dist/astro/routes/api/auth/setup-token/index.mjs +5 -5
  97. package/dist/astro/routes/api/auth/setup-token/verify.mjs +2 -2
  98. package/dist/astro/routes/api/auth/signup/complete.mjs +9 -9
  99. package/dist/astro/routes/api/auth/signup/request.mjs +8 -8
  100. package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
  101. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +12 -12
  102. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
  103. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +5 -5
  104. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +5 -5
  105. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +5 -5
  106. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +11 -11
  107. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +9 -9
  108. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
  109. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
  110. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +9 -9
  111. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +20 -14
  112. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
  113. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +5 -5
  114. package/dist/astro/routes/api/content/_collection_/_id_.mjs +12 -10
  115. package/dist/astro/routes/api/content/_collection_/index.mjs +9 -9
  116. package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
  117. package/dist/astro/routes/api/dashboard.mjs +8 -8
  118. package/dist/astro/routes/api/dev/emails.mjs +2 -2
  119. package/dist/astro/routes/api/health.mjs +1 -1
  120. package/dist/astro/routes/api/import/probe.d.mts +3 -3
  121. package/dist/astro/routes/api/import/probe.mjs +10 -10
  122. package/dist/astro/routes/api/import/wordpress/analyze.mjs +7 -7
  123. package/dist/astro/routes/api/import/wordpress/execute.mjs +29 -28
  124. package/dist/astro/routes/api/import/wordpress/media.mjs +10 -10
  125. package/dist/astro/routes/api/import/wordpress/prepare.mjs +31 -31
  126. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +5 -1
  127. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +16 -1
  128. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +30 -30
  129. package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
  130. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +13 -13
  131. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
  132. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +31 -30
  133. package/dist/astro/routes/api/manifest.mjs +4 -4
  134. package/dist/astro/routes/api/mcp.mjs +75 -50
  135. package/dist/astro/routes/api/media/_id_/confirm.mjs +8 -8
  136. package/dist/astro/routes/api/media/_id_.mjs +6 -6
  137. package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
  138. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
  139. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
  140. package/dist/astro/routes/api/media/providers/index.mjs +2 -2
  141. package/dist/astro/routes/api/media/upload-url.mjs +10 -10
  142. package/dist/astro/routes/api/media.mjs +14 -13
  143. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +27 -27
  144. package/dist/astro/routes/api/menus/_name_/items.mjs +27 -27
  145. package/dist/astro/routes/api/menus/_name_/reorder.mjs +27 -27
  146. package/dist/astro/routes/api/menus/_name_/translations.mjs +27 -27
  147. package/dist/astro/routes/api/menus/_name_.mjs +27 -27
  148. package/dist/astro/routes/api/menus/index.mjs +27 -27
  149. package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
  150. package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
  151. package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
  152. package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
  153. package/dist/astro/routes/api/oauth/register.mjs +4 -4
  154. package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
  155. package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
  156. package/dist/astro/routes/api/oauth/token.mjs +6 -6
  157. package/dist/astro/routes/api/openapi.json.mjs +10 -7
  158. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
  159. package/dist/astro/routes/api/redirects/404s/index.mjs +10 -10
  160. package/dist/astro/routes/api/redirects/404s/summary.mjs +10 -10
  161. package/dist/astro/routes/api/redirects/_id_.mjs +28 -28
  162. package/dist/astro/routes/api/redirects/index.mjs +28 -28
  163. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
  164. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
  165. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +43 -39
  166. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +43 -39
  167. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +43 -39
  168. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +43 -39
  169. package/dist/astro/routes/api/schema/collections/index.mjs +43 -39
  170. package/dist/astro/routes/api/schema/index.mjs +7 -7
  171. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +42 -38
  172. package/dist/astro/routes/api/schema/orphans/index.mjs +42 -38
  173. package/dist/astro/routes/api/search/enable.mjs +11 -11
  174. package/dist/astro/routes/api/search/index.mjs +10 -10
  175. package/dist/astro/routes/api/search/rebuild.mjs +11 -11
  176. package/dist/astro/routes/api/search/stats.mjs +7 -7
  177. package/dist/astro/routes/api/search/suggest.mjs +10 -10
  178. package/dist/astro/routes/api/sections/_slug_.mjs +27 -27
  179. package/dist/astro/routes/api/sections/index.mjs +27 -27
  180. package/dist/astro/routes/api/settings/email.mjs +3 -3
  181. package/dist/astro/routes/api/settings.mjs +27 -27
  182. package/dist/astro/routes/api/setup/admin-verify.mjs +11 -11
  183. package/dist/astro/routes/api/setup/admin.mjs +9 -9
  184. package/dist/astro/routes/api/setup/dev-bypass.mjs +24 -23
  185. package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
  186. package/dist/astro/routes/api/setup/index.mjs +25 -24
  187. package/dist/astro/routes/api/setup/status.mjs +3 -3
  188. package/dist/astro/routes/api/snapshot.mjs +7 -6
  189. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +30 -29
  190. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +30 -29
  191. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +30 -29
  192. package/dist/astro/routes/api/taxonomies/index.mjs +30 -29
  193. package/dist/astro/routes/api/themes/preview.mjs +4 -4
  194. package/dist/astro/routes/api/typegen.mjs +4 -4
  195. package/dist/astro/routes/api/well-known/auth.mjs +2 -2
  196. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
  197. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
  198. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +26 -26
  199. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +27 -27
  200. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +27 -27
  201. package/dist/astro/routes/api/widget-areas/_name_.mjs +25 -25
  202. package/dist/astro/routes/api/widget-areas/index.mjs +27 -27
  203. package/dist/astro/routes/api/widget-components.mjs +2 -2
  204. package/dist/astro/routes/robots.txt.mjs +7 -7
  205. package/dist/astro/routes/sitemap-_collection_.xml.mjs +59 -15
  206. package/dist/astro/routes/sitemap.xml.mjs +8 -8
  207. package/dist/astro/session-driver.d.mts +1 -1
  208. package/dist/astro/session-driver.mjs +3 -3
  209. package/dist/astro/types.d.mts +16 -14
  210. package/dist/{audit-NgiRzqP9.mjs → audit-DuRbTm8L.mjs} +1 -1
  211. package/dist/auth/providers/github.d.mts +1 -1
  212. package/dist/auth/providers/google.d.mts +1 -1
  213. package/dist/{auth-control-guard-1FHtkDP6.mjs → auth-control-guard-Dr14I98m.mjs} +1 -1
  214. package/dist/{authorize-BbIhZi3a.mjs → authorize-BLO0m7fW.mjs} +1 -1
  215. package/dist/{briefing-Jsxs587i.mjs → briefing-BFEWeJtR.mjs} +6 -6
  216. package/dist/{briefing-DD82WaEy.mjs → briefing-C4fJSVYW.mjs} +1 -1
  217. package/dist/byline-CXQcMsBu.mjs +628 -0
  218. package/dist/{bylines-BU6b8jSi.d.mts → byline-fields-CaF_xfpj.d.mts} +146 -15
  219. package/dist/{import-Br7aP9yh.mjs → byline-fields-D7TJ_oHF.mjs} +57 -3
  220. package/dist/byline-fields-Dc7L6Yry.mjs +113 -0
  221. package/dist/byline-registry-CL8BxPPp.mjs +287 -0
  222. package/dist/bylines-BgriNlW7.mjs +165 -0
  223. package/dist/bylines-D2vqm1aZ.mjs +163 -0
  224. package/dist/{cache-DQyZ-QaB.mjs → cache-GRK71jOU.mjs} +2 -2
  225. package/dist/{chunks-D8KL0nCY.mjs → chunks-DgEw12Bc.mjs} +1 -1
  226. package/dist/cli/index.mjs +958 -89
  227. package/dist/client/external-auth-headers.d.mts +1 -1
  228. package/dist/client/index.d.mts +2 -1
  229. package/dist/client/index.mjs +5 -2
  230. package/dist/{comment-BmJXz3lc.mjs → comment-ogMaF1gk.mjs} +1 -1
  231. package/dist/{comments-yTbeIYc2.mjs → comments-CTSOKrZq.mjs} +1 -1
  232. package/dist/{connection-BCNICDWN.mjs → connection-CiJWiWya.mjs} +44 -13
  233. package/dist/{content-DvpMad_N.mjs → content-BfyjOiMi.mjs} +24 -4
  234. package/dist/content-index-names-Bbu1FY1r.mjs +26 -0
  235. package/dist/{context-DgqEfcWz.mjs → context-DRhmPCiE.mjs} +2 -2
  236. package/dist/{context-Ufrm1lOv.mjs → context-ZMHhwzkG.mjs} +8 -8
  237. package/dist/{context-route-helpers-Dq5U_AXp.mjs → context-route-helpers-YLWx2N1j.mjs} +1 -1
  238. package/dist/{dashboard-BC9bgPOH.mjs → dashboard-D0gWuzNp.mjs} +4 -4
  239. package/dist/db/index.d.mts +3 -3
  240. package/dist/db/index.mjs +2 -2
  241. package/dist/db/libsql.d.mts +1 -1
  242. package/dist/db/libsql.mjs +1 -1
  243. package/dist/db/postgres.d.mts +1 -1
  244. package/dist/db/sqlite.d.mts +1 -1
  245. package/dist/db/sqlite.mjs +1 -1
  246. package/dist/{device-flow-CTS91g4A.mjs → device-flow-BL5ZRlc1.mjs} +4 -4
  247. package/dist/{dialect-helpers-TkdbkFad.mjs → dialect-helpers-fk43GbDb.mjs} +13 -3
  248. package/dist/{fts-manager-DnfOsF4s.mjs → fts-manager-EHY2Kes9.mjs} +2 -2
  249. package/dist/{hitl-requests-DaRuZ7tb.mjs → hitl-requests-B4Hkt0TO.mjs} +2 -2
  250. package/dist/{hitl-route-helpers-DcPySbZ3.mjs → hitl-route-helpers-CHjdfQ0s.mjs} +4 -4
  251. package/dist/{import-DSXK3aQF.mjs → import-CvHY6sf5.mjs} +3 -3
  252. package/dist/{index-BwOO3vu2.d.mts → index-DJVaYiUV.d.mts} +2 -2
  253. package/dist/index.d.mts +16 -17
  254. package/dist/index.mjs +69 -65
  255. package/dist/{jsonld-CLbYsYYH.d.mts → jsonld-AcPnCEGD.d.mts} +2 -2
  256. package/dist/{load-BCCcmoW9.mjs → load-BdbvtoDb.mjs} +1 -1
  257. package/dist/{loader-p2imNN98.mjs → loader-Y0QvC_QO.mjs} +167 -61
  258. package/dist/media/index.d.mts +1 -2
  259. package/dist/media/index.mjs +2 -2
  260. package/dist/media/local-runtime.d.mts +11 -12
  261. package/dist/media/local-runtime.mjs +2 -2
  262. package/dist/{media-Cg4zc9fq.mjs → media-DhBwiCYR.mjs} +6 -1
  263. package/dist/{media-allowlist-D8gsm8_t.mjs → media-allowlist-BsXkT9RK.mjs} +1 -1
  264. package/dist/{menus-DOaL6NaF.mjs → menus-BzGQpw9d.mjs} +2 -2
  265. package/dist/{menus-DzG3-9tQ.mjs → menus-fqqzXyHd.mjs} +5 -5
  266. package/dist/{oauth-authorization-DyOFXQWq.mjs → oauth-authorization-Dk3_LOfj.mjs} +4 -4
  267. package/dist/{oauth-clients-BMs_bmoz.mjs → oauth-clients-CzeMGyUU.mjs} +2 -2
  268. package/dist/page/index.d.mts +2 -2
  269. package/dist/page/index.mjs +1 -1
  270. package/dist/{parse-D7Tu6ku4.mjs → parse-CneSgl7-.mjs} +1 -1
  271. package/dist/{types-cn-fvYQ1.d.mts → placeholder-CXfoCtCd.d.mts} +38 -1
  272. package/dist/plugin-utils.d.mts +22 -10
  273. package/dist/plugin-utils.mjs +8 -10
  274. package/dist/plugins/adapt-sandbox-entry.d.mts +9 -10
  275. package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
  276. package/dist/{plugins-DCDVDF4B.mjs → plugins-BQ5Joz6v.mjs} +36 -6
  277. package/dist/{preview-BhgxNRWI.mjs → preview-D5rvDhRt.mjs} +7 -7
  278. package/dist/{provider-loader-B19YyyBp.d.mts → provider-loader-B5PMjpN7.d.mts} +1 -1
  279. package/dist/{query-BnRpB09I.mjs → query-BJuUydtD.mjs} +3 -3
  280. package/dist/{query-DHvNhBhi.mjs → query-CSx0EdSW.mjs} +30 -18
  281. package/dist/{rate-limit-BWP_kKiZ.mjs → rate-limit-i0G3IAOX.mjs} +2 -2
  282. package/dist/{redirect-BaVvo2te.mjs → redirect-BqFMj67n.mjs} +20 -6
  283. package/dist/{redirects-Ba-lJA5j.mjs → redirects-CJwHl_YG.mjs} +3 -3
  284. package/dist/{redirects-x5ol_Qj9.mjs → redirects-q_cToaHv.mjs} +29 -8
  285. package/dist/{registry-i__XP2WV.mjs → registry-Cq3QRBW2.mjs} +14 -5
  286. package/dist/{request-cache-BpwuE2ix.mjs → request-cache-w5cj5itT.mjs} +9 -1
  287. package/dist/{request-meta-DUGfAeXy.mjs → request-meta-DAb6xaP9.mjs} +1 -1
  288. package/dist/resolve-DTuDyYKs.mjs +100 -0
  289. package/dist/{review-requests-DuIxM4YM.mjs → review-requests-GYqjl2jO.mjs} +1 -1
  290. package/dist/{review-requests-CTUU_RJm.mjs → review-requests-tPw8_pAO.mjs} +1 -1
  291. package/dist/{runner-FhUNNaqA.d.mts → runner-Cnz4dl0f.d.mts} +1 -1
  292. package/dist/{runner-DF2DgD_B.mjs → runner-DTfG5v0G.mjs} +574 -196
  293. package/dist/{runtime-1bE80cmL.d.mts → runtime-Cd-kjPfN.d.mts} +1155 -273
  294. package/dist/runtime.d.mts +10 -11
  295. package/dist/runtime.mjs +4 -4
  296. package/dist/schema-DmHMWnSA.mjs +8 -0
  297. package/dist/{search-Cl9preJT.mjs → search-BAiFLz81.mjs} +3 -3
  298. package/dist/{sections-Zx-2q9IH.mjs → sections-DsuIrFDC.mjs} +2 -2
  299. package/dist/seed/index.d.mts +2 -2
  300. package/dist/seed/index.mjs +18 -17
  301. package/dist/seo/index.d.mts +1 -1
  302. package/dist/seo/index.mjs +1 -0
  303. package/dist/{seo-CJBiMDkj.mjs → seo-5lJOtB5J.mjs} +4 -2
  304. package/dist/{seo-BPb_reaG.mjs → seo-uMFBaR8G.mjs} +1 -1
  305. package/dist/{service-wPGgmbUa.mjs → service-CifrxCru.mjs} +2 -2
  306. package/dist/{settings-nr15a8uv.mjs → settings-BYGdocdj.mjs} +2 -2
  307. package/dist/{settings-DORe02PC.mjs → settings-DNRQuX3d.mjs} +3 -3
  308. package/dist/{site-activity-KFZprBZM.mjs → site-activity-6x1JccoR.mjs} +1 -1
  309. package/dist/{site-context-DuBQk6Mp.mjs → site-context-sN12ehZF.mjs} +13 -13
  310. package/dist/storage/local.d.mts +1 -1
  311. package/dist/storage/local.mjs +1 -1
  312. package/dist/storage/s3.d.mts +1 -1
  313. package/dist/storage/s3.mjs +1 -1
  314. package/dist/{taxonomies-DGaw_-aU.mjs → taxonomies-CQFmkP5u.mjs} +3 -3
  315. package/dist/{taxonomies-BVBKoXRf.mjs → taxonomies-faQVeMgj.mjs} +7 -32
  316. package/dist/{taxonomy-BvXRL85P.mjs → taxonomy-BnH-6VsX.mjs} +2 -2
  317. package/dist/{types-DvwHUku7.d.mts → types-B7_vSiPD.d.mts} +16 -0
  318. package/dist/{types-D1DjBFA9.mjs → types-Ck7-WoUD.mjs} +1 -1
  319. package/dist/{types-t7_nCCA9.d.mts → types-DEAQG87T.d.mts} +2 -56
  320. package/dist/{types-C-CMfzSl.d.mts → types-DYKtk8f1.d.mts} +31 -0
  321. package/dist/{types-C3Em8xpG.mjs → types-DbZhHtqS.mjs} +23 -1
  322. package/dist/{types-BIM7jwxr.d.mts → types-UGmU5sWx.d.mts} +1 -1
  323. package/dist/types-nP9vGUFq.d.mts +56 -0
  324. package/dist/ui/server-runtime.d.mts +13 -7
  325. package/dist/ui/server-runtime.mjs +18 -17
  326. package/dist/{user-2aI21yV1.mjs → user-CqZwN21P.mjs} +1 -1
  327. package/dist/{validate-CvQ6cvHH.d.mts → validate-BJuG-ISL.d.mts} +21 -3
  328. package/dist/{validate-JE-WfUQ5.mjs → validate-CK4a1sIF.mjs} +22 -2
  329. package/dist/version-Cg6ur4zS.mjs +6 -0
  330. package/dist/{widgets-Cj6ULpED.mjs → widgets-CdDvF4fV.mjs} +2 -2
  331. package/dist/{wordpress-slugs-hqItqJrQ.mjs → wordpress-slugs-B6Gw9q3Q.mjs} +1 -1
  332. package/dist/{zod-generator-C4BgFBZV.mjs → zod-generator-D1ROBNuC.mjs} +2 -2
  333. package/package.json +7 -8
  334. package/src/components/InlinePortableTextEditor.tsx +66 -0
  335. package/src/components/code-block-languages.ts +76 -0
  336. package/src/components/inline-code-block.tsx +241 -0
  337. package/dist/byline-DpNNSjET.mjs +0 -219
  338. package/dist/bylines-75_STR73.mjs +0 -114
  339. package/dist/chunk-ClPoSABd.mjs +0 -21
  340. package/dist/db-errors-DHJCB_gY.mjs +0 -23
  341. package/dist/index-Ct0pjZwW.d.mts +0 -835
  342. package/dist/placeholder-BZpCpid_.d.mts +0 -40
  343. package/dist/schema-U-SeFWwn.mjs +0 -8
  344. package/dist/version-DTpFm69w.mjs +0 -6
  345. /package/dist/{adapters-kZjS7plb.d.mts → adapters-OQCImOL7.d.mts} +0 -0
  346. /package/dist/{api-tokens-L0o9Bd7v.mjs → api-tokens-CYUoFGo7.mjs} +0 -0
  347. /package/dist/{challenge-store-cJam-E5R.mjs → challenge-store-CRSz-Xim.mjs} +0 -0
  348. /package/dist/{components-BJfa-F6n.mjs → components--pg6zBvu.mjs} +0 -0
  349. /package/dist/{config-XW5tMrH8.mjs → config-CVssduLe.mjs} +0 -0
  350. /package/dist/{context-types-BrSQNye5.mjs → context-types-DQh_XKkn.mjs} +0 -0
  351. /package/dist/{cron-D7FDsRu-.mjs → cron-DxCAU_Sn.mjs} +0 -0
  352. /package/dist/{default-5A3XVR7L.mjs → default-BHauvIdG.mjs} +0 -0
  353. /package/dist/{email-console-Bs1qKx59.mjs → email-console-BOVqIYpB.mjs} +0 -0
  354. /package/dist/{error-DLkgOP5m.mjs → error-DCSuUAZW.mjs} +0 -0
  355. /package/dist/{escape-r8_GbEU2.mjs → escape-BDgouFFY.mjs} +0 -0
  356. /package/dist/{experimental-workflows-BbZbIEZp.mjs → experimental-workflows-Dh4DUoD_.mjs} +0 -0
  357. /package/dist/{hash-DFFrkivP.mjs → hash-BPmX6P8I.mjs} +0 -0
  358. /package/dist/{manifest-schema-C6fzQoWn.mjs → manifest-schema-qh2P7RDX.mjs} +0 -0
  359. /package/dist/{mime-DYP4V5Ks.mjs → mime-8pAB8-77.mjs} +0 -0
  360. /package/dist/{mode-Bd55iLcP.mjs → mode-CpyEz8pe.mjs} +0 -0
  361. /package/dist/{normalize-BY_EJnd9.mjs → normalize-O-hi3a27.mjs} +0 -0
  362. /package/dist/{oauth-state-store-BRSUEkmx.mjs → oauth-state-store-qncPB_IU.mjs} +0 -0
  363. /package/dist/{oauth-user-lookup-DdcI8ZVL.mjs → oauth-user-lookup-BFjWF8wK.mjs} +0 -0
  364. /package/dist/{parser-egIGEco-.mjs → parser-DxfsARXL.mjs} +0 -0
  365. /package/dist/{passkey-config-AX4sjpQ4.mjs → passkey-config-DzHQK90v.mjs} +0 -0
  366. /package/dist/{patterns-CiyXeDgr.mjs → patterns-D9iDO3j8.mjs} +0 -0
  367. /package/dist/{placeholder-b0Ufu0La.mjs → placeholder-BDo81Is5.mjs} +0 -0
  368. /package/dist/{provider-loader-BdRV01gr.mjs → provider-loader-DzUxejk7.mjs} +0 -0
  369. /package/dist/{public-url-BL2r8dmQ.mjs → public-url-DLUM5OOv.mjs} +0 -0
  370. /package/dist/{redirect-Ce_6Yb6z.mjs → redirect-BjIBtDWY.mjs} +0 -0
  371. /package/dist/{secrets-DfeNNoLa.mjs → secrets-CN6FCpcB.mjs} +0 -0
  372. /package/dist/{seo-contributions-C0LXoWw3.mjs → seo-contributions-CqVvReEj.mjs} +0 -0
  373. /package/dist/{setup-complete-C2ztsNhJ.mjs → setup-complete-BytMc6HO.mjs} +0 -0
  374. /package/dist/{setup-nonce-BTKq7uBi.mjs → setup-nonce-pyGfc9hV.mjs} +0 -0
  375. /package/dist/{sidecar-client-lrf7ErYJ.mjs → sidecar-client-mJxwayYN.mjs} +0 -0
  376. /package/dist/{site-url-C18yBhtv.mjs → site-url-C-cu8Ff2.mjs} +0 -0
  377. /package/dist/{ssrf-KAIQS48_.mjs → ssrf-DiKqWd3N.mjs} +0 -0
  378. /package/dist/{tokens-CsP8Se8S.mjs → tokens-CjSgb0AC.mjs} +0 -0
  379. /package/dist/{transport-nNEGdHkI.d.mts → transport-DidKKxvW.d.mts} +0 -0
  380. /package/dist/{transport-B7kO-4ee.mjs → transport-LSdZVXHF.mjs} +0 -0
  381. /package/dist/{trusted-proxy-Bbm6PLR6.mjs → trusted-proxy-BgIIcbsN.mjs} +0 -0
  382. /package/dist/{types-CNNQ8l0v.mjs → types-Cg276-3z.mjs} +0 -0
  383. /package/dist/{types-BYjPylrZ.d.mts → types-DZpT-PnG.d.mts} +0 -0
  384. /package/dist/{types-BgE6gMFI.d.mts → types-Dryvv7LH.d.mts} +0 -0
  385. /package/dist/{types-BBETcziA.d.mts → types-GaCtZ1k9.d.mts} +0 -0
  386. /package/dist/{url-BzhfYtRn.mjs → url-w7Mp5qAD.mjs} +0 -0
  387. /package/dist/{utils-FEbQMgB5.mjs → utils-wv-zvC-Y.mjs} +0 -0
@@ -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>;
@@ -559,9 +592,9 @@ declare const createFieldBody: z.ZodObject<{
559
592
  boolean: "boolean";
560
593
  file: "file";
561
594
  url: "url";
595
+ image: "image";
562
596
  slug: "slug";
563
597
  datetime: "datetime";
564
- image: "image";
565
598
  text: "text";
566
599
  integer: "integer";
567
600
  select: "select";
@@ -686,9 +719,9 @@ declare const fieldSchema: z.ZodObject<{
686
719
  boolean: "boolean";
687
720
  file: "file";
688
721
  url: "url";
722
+ image: "image";
689
723
  slug: "slug";
690
724
  datetime: "datetime";
691
- image: "image";
692
725
  text: "text";
693
726
  integer: "integer";
694
727
  select: "select";
@@ -751,9 +784,9 @@ declare const collectionWithFieldsResponseSchema: z.ZodObject<{
751
784
  boolean: "boolean";
752
785
  file: "file";
753
786
  url: "url";
787
+ image: "image";
754
788
  slug: "slug";
755
789
  datetime: "datetime";
756
- image: "image";
757
790
  text: "text";
758
791
  integer: "integer";
759
792
  select: "select";
@@ -805,9 +838,9 @@ declare const fieldResponseSchema: z.ZodObject<{
805
838
  boolean: "boolean";
806
839
  file: "file";
807
840
  url: "url";
841
+ image: "image";
808
842
  slug: "slug";
809
843
  datetime: "datetime";
810
- image: "image";
811
844
  text: "text";
812
845
  integer: "integer";
813
846
  select: "select";
@@ -842,9 +875,9 @@ declare const fieldListResponseSchema: z.ZodObject<{
842
875
  boolean: "boolean";
843
876
  file: "file";
844
877
  url: "url";
878
+ image: "image";
845
879
  slug: "slug";
846
880
  datetime: "datetime";
847
- image: "image";
848
881
  text: "text";
849
882
  integer: "integer";
850
883
  select: "select";
@@ -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,14 +1053,14 @@ 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
- contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1024
- scope: z.ZodOptional<z.ZodString>;
1025
- limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1026
1056
  cursor: z.ZodOptional<z.ZodString>;
1057
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1058
+ scope: z.ZodOptional<z.ZodString>;
1027
1059
  includeInherited: z.ZodPipe<z.ZodOptional<z.ZodEnum<{
1028
1060
  true: "true";
1029
1061
  false: "false";
1030
1062
  }>>, z.ZodTransform<boolean | undefined, "true" | "false" | undefined>>;
1063
+ contextTypes: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1031
1064
  tags: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string[] | undefined, string | undefined>>;
1032
1065
  createdByActorType: z.ZodOptional<z.ZodEnum<{
1033
1066
  user: "user";
@@ -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>;
@@ -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
- export { updateSectionBody as $, cursorPaginationQuery as $n, createCommentBody as $t, userDetailSchema as A, mediaUploadUrlBody as An, passkeyRegisterVerifyBody as At, wpRewriteUrlsBody as B, contentScheduleBody as Bn, contextEntryCreateBody as Bt, updateWidgetBody as C, mediaExistingResponseSchema as Cn, authMeActionBody as Ct, widgetSchema as D, mediaProviderListQuery as Dn, magicLinkSendBody as Dt, widgetAreaWithWidgetsSchema as E, mediaListResponseSchema as En, inviteRegisterOptionsBody as Et, importProbeBody as F, contentListQuery as Fn, reviewRequestListQuery as Ft, searchResultSchema as G, contentTranslationsResponseSchema as Gn, contextEntrySupersedeBody as Gt, searchQuery as H, contentSeoSchema as Hn, contextEntryListQuery as Ht, wpMediaImportBody as I, contentListResponseSchema as In, reviewRequestResolveBody as It, siteSettingsSchema as J, trashedContentItemSchema as Jn, commentBulkResponseSchema as Jt, searchSuggestQuery as K, contentTrashQuery as Kn, adminCommentListResponseSchema as Kt, wpPluginAnalyzeBody as L, contentPreviewUrlBody as Ln, hitlRequestListQuery as Lt, userSchema as M, contentCompareResponseSchema as Mn, passkeyVerifyBody as Mt, userUpdateBody as N, contentCreateBody as Nn, signupCompleteBody as Nt, allowedDomainCreateBody as O, mediaResponseSchema as On, passkeyOptionsBody as Ot, usersListQuery as P, contentItemSchema as Pn, signupRequestBody as Pt, sectionsListQuery as Q, countResponseSchema as Qn, commentStatusBody as Qt, wpPluginExecuteBody as R, contentPublishBody as Rn, hitlRequestResolveBody as Rt, reorderWidgetsBody as S, mediaConfirmResponseSchema as Sn, updateMenuItemBody as St, widgetAreaWithWidgetsAndCountSchema as T, mediaListQuery as Tn, inviteCreateBody as Tt, searchRebuildBody as U, contentTermsBody as Un, contextEntryReviewBody as Ut, searchEnableBody as V, contentSeoInput as Vn, contextEntryDiffQuery as Vt, searchResponseSchema as W, contentTranslationSchema as Wn, contextEntryStaleQuery as Wt, sectionListResponseSchema as X, VALID_ROLE_LEVELS as Xn, commentListQuery as Xt, createSectionBody as Y, trashedContentListResponseSchema as Yn, commentCountsResponseSchema as Yt, sectionSchema as Z, apiErrorSchema as Zn, commentSchema as Zt, redirectSchema as _, updateCollectionBody as _n, menuSchema as _t, bylineUpdateBody as a, collectionSchema as an, roleLevel as ar, termGetResponseSchema as at, createWidgetAreaBody as b, formatFileSize as bn, reorderMenuItemsBody as bt, createRedirectBody as c, createFieldBody as cn, termSchema as ct, notFoundListResponseSchema as d, fieldResponseSchema as dn, updateTermBody as dt, publicCommentListResponseSchema as en, deleteResponseSchema as er, createTaxonomyDefBody as et, notFoundPruneBody as f, fieldSchema as fn, createMenuBody as ft, redirectListResponseSchema as g, schemaExportQuery as gn, menuListItemSchema as gt, notFoundSummarySchema as h, orphanedTableSchema as hn, menuItemTypeEnum as ht, bylineSummarySchema as i, collectionResponseSchema as in, offsetPaginationQuery as ir, taxonomyListResponseSchema as it, userListResponseSchema as j, mediaUploadUrlResponseSchema as jn, passkeyRenameBody as jt, allowedDomainUpdateBody as k, mediaUpdateBody as kn, passkeyRegisterOptionsBody as kt, notFoundEntrySchema as l, fieldListResponseSchema as ln, termTranslationsSchema as lt, notFoundSummaryResponseSchema as m, orphanedTableListResponseSchema as mn, menuItemSchema as mt, bylineCreditSchema as n, collectionGetQuery as nn, localeCode as nr, taxonomyDefSchema as nt, bylinesListQuery as o, collectionWithFieldsResponseSchema as on, slugPattern as or, termListResponseSchema as ot, notFoundSummaryQuery as p, orphanRegisterBody as pn, createMenuItemBody as pt, settingsUpdateBody as q, contentUpdateBody as qn, commentBulkBody as qt, bylineListResponseSchema as r, collectionListResponseSchema as rn, localeFilterQuery as rr, taxonomyDefTranslationsSchema as rt, contentBylineInputSchema as s, createCollectionBody as sn, successEnvelope as sr, termResponseSchema as st, bylineCreateBody as t, publicCommentSchema as tn, httpUrl as tr, createTermBody as tt, notFoundListQuery as u, fieldReorderBody as un, termWithCountSchema as ut, redirectsListQuery as v, updateFieldBody as vn, menuTranslationsSchema as vt, widgetAreaSchema as w, mediaItemSchema as wn, inviteCompleteBody as wt, createWidgetBody as x, mediaConfirmBody as xn, updateMenuBody as xt, updateRedirectBody as y, DEFAULT_MAX_UPLOAD_SIZE as yn, menuWithItemsSchema as yt, wpPrepareBody as z, contentResponseSchema as zn, siteBriefingQuery as zt };
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 { n as isSiteContextType, t as SITE_CONTEXT_TYPES } from "./context-types-BrSQNye5.mjs";
2
- import { An as roleLevel, En as httpUrl } from "./redirects-x5ol_Qj9.mjs";
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
- export { siteBriefingQuery as C, contextEntryReviewBody as D, contextEntryListQuery as E, contextEntryStaleQuery as O, hitlRequestResolveBody as S, contextEntryDiffQuery as T, signupCompleteBody as _, wpPrepareBody as a, reviewRequestResolveBody as b, inviteCompleteBody as c, magicLinkSendBody as d, passkeyOptionsBody as f, passkeyVerifyBody as g, passkeyRenameBody as h, wpPluginExecuteBody as i, contextEntrySupersedeBody as k, inviteCreateBody as l, passkeyRegisterVerifyBody as m, wpMediaImportBody as n, wpRewriteUrlsBody as o, passkeyRegisterOptionsBody as p, wpPluginAnalyzeBody as r, authMeActionBody as s, importProbeBody as t, inviteRegisterOptionsBody as u, signupRequestBody as v, contextEntryCreateBody as w, hitlRequestListQuery as x, reviewRequestListQuery as y };
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 };
@@ -0,0 +1,113 @@
1
+ import { n as BylineSchemaRegistry, r as mapBylineSchemaError, t as BylineSchemaError } from "./byline-registry-CL8BxPPp.mjs";
2
+
3
+ //#region src/api/handlers/byline-fields.ts
4
+ function bylineSchemaErrorResult(error) {
5
+ const mapped = mapBylineSchemaError(error);
6
+ return {
7
+ success: false,
8
+ error: {
9
+ code: mapped.code,
10
+ message: mapped.message,
11
+ details: mapped.details
12
+ }
13
+ };
14
+ }
15
+ function internalErrorResult(error, code, message) {
16
+ console.error(`[${code}]`, error);
17
+ return {
18
+ success: false,
19
+ error: {
20
+ code,
21
+ message
22
+ }
23
+ };
24
+ }
25
+ async function handleBylineFieldList(db) {
26
+ try {
27
+ return {
28
+ success: true,
29
+ data: { items: await new BylineSchemaRegistry(db).listFields() }
30
+ };
31
+ } catch (error) {
32
+ return internalErrorResult(error, "SCHEMA_FIELD_LIST_ERROR", "Failed to list byline fields");
33
+ }
34
+ }
35
+ async function handleBylineFieldCreate(db, input) {
36
+ try {
37
+ return {
38
+ success: true,
39
+ data: await new BylineSchemaRegistry(db).createField(input)
40
+ };
41
+ } catch (error) {
42
+ if (error instanceof BylineSchemaError) return bylineSchemaErrorResult(error);
43
+ return internalErrorResult(error, "SCHEMA_FIELD_CREATE_ERROR", "Failed to create byline field");
44
+ }
45
+ }
46
+ async function handleBylineFieldGet(db, slug) {
47
+ try {
48
+ const field = await new BylineSchemaRegistry(db).getField(slug);
49
+ if (!field) return {
50
+ success: false,
51
+ error: {
52
+ code: "NOT_FOUND",
53
+ message: "Byline field not found"
54
+ }
55
+ };
56
+ return {
57
+ success: true,
58
+ data: field
59
+ };
60
+ } catch (error) {
61
+ return internalErrorResult(error, "SCHEMA_FIELD_GET_ERROR", "Failed to get byline field");
62
+ }
63
+ }
64
+ async function handleBylineFieldUpdate(db, slug, input) {
65
+ try {
66
+ return {
67
+ success: true,
68
+ data: await new BylineSchemaRegistry(db).updateField(slug, input)
69
+ };
70
+ } catch (error) {
71
+ if (error instanceof BylineSchemaError) return bylineSchemaErrorResult(error);
72
+ return internalErrorResult(error, "SCHEMA_FIELD_UPDATE_ERROR", "Failed to update byline field");
73
+ }
74
+ }
75
+ async function handleBylineFieldDelete(db, slug) {
76
+ try {
77
+ await new BylineSchemaRegistry(db).deleteField(slug);
78
+ return {
79
+ success: true,
80
+ data: { deleted: true }
81
+ };
82
+ } catch (error) {
83
+ if (error instanceof BylineSchemaError) return bylineSchemaErrorResult(error);
84
+ return internalErrorResult(error, "SCHEMA_FIELD_DELETE_ERROR", "Failed to delete byline field");
85
+ }
86
+ }
87
+ async function handleBylineFieldUsage(db, slug) {
88
+ try {
89
+ return {
90
+ success: true,
91
+ data: await new BylineSchemaRegistry(db).getFieldUsage(slug)
92
+ };
93
+ } catch (error) {
94
+ if (error instanceof BylineSchemaError) return bylineSchemaErrorResult(error);
95
+ return internalErrorResult(error, "SCHEMA_FIELD_GET_ERROR", "Failed to read byline field usage");
96
+ }
97
+ }
98
+ async function handleBylineFieldReorder(db, slugs) {
99
+ try {
100
+ const registry = new BylineSchemaRegistry(db);
101
+ await registry.reorderFields(slugs);
102
+ return {
103
+ success: true,
104
+ data: { items: await registry.listFields() }
105
+ };
106
+ } catch (error) {
107
+ if (error instanceof BylineSchemaError) return bylineSchemaErrorResult(error);
108
+ return internalErrorResult(error, "SCHEMA_FIELD_REORDER_ERROR", "Failed to reorder byline fields");
109
+ }
110
+ }
111
+
112
+ //#endregion
113
+ export { handleBylineFieldReorder as a, handleBylineFieldList as i, handleBylineFieldDelete as n, handleBylineFieldUpdate as o, handleBylineFieldGet as r, handleBylineFieldUsage as s, handleBylineFieldCreate as t };