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
@@ -1,4 +1,4 @@
1
- import { t as SiteActivityRepository } from "./site-activity-KFZprBZM.mjs";
1
+ import { t as SiteActivityRepository } from "./site-activity-6x1JccoR.mjs";
2
2
 
3
3
  //#region src/site-context/actor.ts
4
4
  const SYSTEM_ACTOR_ID = "system";
@@ -1,4 +1,4 @@
1
- import { t as getEnvAllowedOrigins } from "./public-url-BL2r8dmQ.mjs";
1
+ import { t as getEnvAllowedOrigins } from "./public-url-DLUM5OOv.mjs";
2
2
 
3
3
  //#region src/auth/allowed-origins.ts
4
4
  function getConfiguredAllowedOrigins(config) {
@@ -1,13 +1,12 @@
1
- import { $n as isParseError, Qn as ParseResult, Zn as OptionsRepository, er as parseBody, ir as handleError, nr as apiError, rr as apiSuccess, t as DinewayConfig, tr as parseQuery } from "../runtime-1bE80cmL.mjs";
2
- import { t as Database } from "../types-C-CMfzSl.mjs";
3
- import { at as StorageCollectionConfig, it as StorageCollection } from "../types-BIM7jwxr.mjs";
4
- import "../types-BgE6gMFI.mjs";
5
- import "../runner-FhUNNaqA.mjs";
6
- import "../index-Ct0pjZwW.mjs";
7
- import "../index-BwOO3vu2.mjs";
8
- import "../bylines-BU6b8jSi.mjs";
9
- import "../types-BBETcziA.mjs";
10
- import "../validate-CvQ6cvHH.mjs";
1
+ import { Ci as ParseResult, Di as apiError, Ei as parseQuery, Oi as apiSuccess, Si as OptionsRepository, Ti as parseBody, ki as handleError, t as DinewayConfig, wi as isParseError } from "../runtime-Cd-kjPfN.mjs";
2
+ import { t as Database } from "../types-DYKtk8f1.mjs";
3
+ import { at as StorageCollectionConfig, it as StorageCollection } from "../types-UGmU5sWx.mjs";
4
+ import "../types-Dryvv7LH.mjs";
5
+ import "../runner-Cnz4dl0f.mjs";
6
+ import "../index-DJVaYiUV.mjs";
7
+ import "../byline-fields-CaF_xfpj.mjs";
8
+ import "../types-GaCtZ1k9.mjs";
9
+ import "../validate-BJuG-ISL.mjs";
11
10
  import { Kysely } from "kysely";
12
11
 
13
12
  //#region src/api/auth-storage.d.ts
@@ -1,18 +1,18 @@
1
- import "../dialect-helpers-TkdbkFad.mjs";
2
- import "../content-DvpMad_N.mjs";
1
+ import "../dialect-helpers-fk43GbDb.mjs";
2
+ import "../content-BfyjOiMi.mjs";
3
3
  import "../base64-C1Q9yr0B.mjs";
4
- import "../types-D1DjBFA9.mjs";
5
- import "../media-Cg4zc9fq.mjs";
6
- import "../user-2aI21yV1.mjs";
4
+ import "../types-Ck7-WoUD.mjs";
5
+ import "../media-DhBwiCYR.mjs";
6
+ import "../user-CqZwN21P.mjs";
7
7
  import { t as OptionsRepository } from "../options-BF11H_FD.mjs";
8
- import { r as createStorageAccess } from "../context-Ufrm1lOv.mjs";
9
- import "../seo-BPb_reaG.mjs";
10
- import { n as apiSuccess, r as handleError, t as apiError } from "../error-DLkgOP5m.mjs";
11
- import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-D7Tu6ku4.mjs";
12
- import "../ssrf-KAIQS48_.mjs";
13
- import "../cron-D7FDsRu-.mjs";
14
- import { n as getPublicOrigin } from "../public-url-BL2r8dmQ.mjs";
15
- import { t as finalizeSetup } from "../setup-complete-C2ztsNhJ.mjs";
8
+ import { r as createStorageAccess } from "../context-ZMHhwzkG.mjs";
9
+ import "../seo-uMFBaR8G.mjs";
10
+ import { n as apiSuccess, r as handleError, t as apiError } from "../error-DCSuUAZW.mjs";
11
+ import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-CneSgl7-.mjs";
12
+ import "../ssrf-DiKqWd3N.mjs";
13
+ import "../cron-DxCAU_Sn.mjs";
14
+ import { n as getPublicOrigin } from "../public-url-DLUM5OOv.mjs";
15
+ import { t as finalizeSetup } from "../setup-complete-BytMc6HO.mjs";
16
16
 
17
17
  //#region src/api/auth-storage.ts
18
18
  /**
@@ -1,3 +1,3 @@
1
- import { $ as updateSectionBody, $n as cursorPaginationQuery, $t as createCommentBody, A as userDetailSchema, An as mediaUploadUrlBody, At as passkeyRegisterVerifyBody, B as wpRewriteUrlsBody, Bn as contentScheduleBody, Bt as contextEntryCreateBody, C as updateWidgetBody, Cn as mediaExistingResponseSchema, Ct as authMeActionBody, D as widgetSchema, Dn as mediaProviderListQuery, Dt as magicLinkSendBody, E as widgetAreaWithWidgetsSchema, En as mediaListResponseSchema, Et as inviteRegisterOptionsBody, F as importProbeBody, Fn as contentListQuery, Ft as reviewRequestListQuery, G as searchResultSchema, Gn as contentTranslationsResponseSchema, Gt as contextEntrySupersedeBody, H as searchQuery, Hn as contentSeoSchema, Ht as contextEntryListQuery, I as wpMediaImportBody, In as contentListResponseSchema, It as reviewRequestResolveBody, J as siteSettingsSchema, Jn as trashedContentItemSchema, Jt as commentBulkResponseSchema, K as searchSuggestQuery, Kn as contentTrashQuery, Kt as adminCommentListResponseSchema, L as wpPluginAnalyzeBody, Ln as contentPreviewUrlBody, Lt as hitlRequestListQuery, M as userSchema, Mn as contentCompareResponseSchema, Mt as passkeyVerifyBody, N as userUpdateBody, Nn as contentCreateBody, Nt as signupCompleteBody, O as allowedDomainCreateBody, On as mediaResponseSchema, Ot as passkeyOptionsBody, P as usersListQuery, Pn as contentItemSchema, Pt as signupRequestBody, Q as sectionsListQuery, Qn as countResponseSchema, Qt as commentStatusBody, R as wpPluginExecuteBody, Rn as contentPublishBody, Rt as hitlRequestResolveBody, S as reorderWidgetsBody, Sn as mediaConfirmResponseSchema, St as updateMenuItemBody, T as widgetAreaWithWidgetsAndCountSchema, Tn as mediaListQuery, Tt as inviteCreateBody, U as searchRebuildBody, Un as contentTermsBody, Ut as contextEntryReviewBody, V as searchEnableBody, Vn as contentSeoInput, Vt as contextEntryDiffQuery, W as searchResponseSchema, Wn as contentTranslationSchema, Wt as contextEntryStaleQuery, X as sectionListResponseSchema, Xn as VALID_ROLE_LEVELS, Xt as commentListQuery, Y as createSectionBody, Yn as trashedContentListResponseSchema, Yt as commentCountsResponseSchema, Z as sectionSchema, Zn as apiErrorSchema, Zt as commentSchema, _ as redirectSchema, _n as updateCollectionBody, _t as menuSchema, a as bylineUpdateBody, an as collectionSchema, ar as roleLevel, at as termGetResponseSchema, b as createWidgetAreaBody, bn as formatFileSize, bt as reorderMenuItemsBody, c as createRedirectBody, cn as createFieldBody, ct as termSchema, d as notFoundListResponseSchema, dn as fieldResponseSchema, dt as updateTermBody, en as publicCommentListResponseSchema, er as deleteResponseSchema, et as createTaxonomyDefBody, f as notFoundPruneBody, fn as fieldSchema, ft as createMenuBody, g as redirectListResponseSchema, gn as schemaExportQuery, gt as menuListItemSchema, h as notFoundSummarySchema, hn as orphanedTableSchema, ht as menuItemTypeEnum, i as bylineSummarySchema, in as collectionResponseSchema, ir as offsetPaginationQuery, it as taxonomyListResponseSchema, j as userListResponseSchema, jn as mediaUploadUrlResponseSchema, jt as passkeyRenameBody, k as allowedDomainUpdateBody, kn as mediaUpdateBody, kt as passkeyRegisterOptionsBody, l as notFoundEntrySchema, ln as fieldListResponseSchema, lt as termTranslationsSchema, m as notFoundSummaryResponseSchema, mn as orphanedTableListResponseSchema, mt as menuItemSchema, n as bylineCreditSchema, nn as collectionGetQuery, nr as localeCode, nt as taxonomyDefSchema, o as bylinesListQuery, on as collectionWithFieldsResponseSchema, or as slugPattern, ot as termListResponseSchema, p as notFoundSummaryQuery, pn as orphanRegisterBody, pt as createMenuItemBody, q as settingsUpdateBody, qn as contentUpdateBody, qt as commentBulkBody, r as bylineListResponseSchema, rn as collectionListResponseSchema, rr as localeFilterQuery, rt as taxonomyDefTranslationsSchema, s as contentBylineInputSchema, sn as createCollectionBody, sr as successEnvelope, st as termResponseSchema, t as bylineCreateBody, tn as publicCommentSchema, tr as httpUrl, tt as createTermBody, u as notFoundListQuery, un as fieldReorderBody, ut as termWithCountSchema, v as redirectsListQuery, vn as updateFieldBody, vt as menuTranslationsSchema, w as widgetAreaSchema, wn as mediaItemSchema, wt as inviteCompleteBody, x as createWidgetBody, xn as mediaConfirmBody, xt as updateMenuBody, y as updateRedirectBody, yn as DEFAULT_MAX_UPLOAD_SIZE, yt as menuWithItemsSchema, z as wpPrepareBody, zn as contentResponseSchema, zt as siteBriefingQuery } from "../../bylines-BU6b8jSi.mjs";
1
+ import { $ as settingsUpdateBody, $n as contentUpdateBody, $t as commentBulkBody, A as widgetAreaSchema, An as mediaItemSchema, At as inviteCompleteBody, B as usersListQuery, Bn as contentItemSchema, Bt as signupRequestBody, C as redirectSchema, Cn as updateCollectionBody, Ct as menuSchema, D as createWidgetBody, Dn as mediaConfirmBody, Dt as updateMenuBody, E as createWidgetAreaBody, En as formatFileSize, Et as reorderMenuItemsBody, F as allowedDomainUpdateBody, Fn as mediaUpdateBody, Ft as passkeyRegisterOptionsBody, G as wpPrepareBody, Gn as contentResponseSchema, Gt as siteBriefingQuery, H as wpMediaImportBody, Hn as contentListResponseSchema, Ht as reviewRequestResolveBody, I as userDetailSchema, In as mediaUploadUrlBody, It as passkeyRegisterVerifyBody, J as searchQuery, Jn as contentSeoSchema, Jt as contextEntryListQuery, K as wpRewriteUrlsBody, Kn as contentScheduleBody, Kt as contextEntryCreateBody, L as userListResponseSchema, Ln as mediaUploadUrlResponseSchema, Lt as passkeyRenameBody, M as widgetAreaWithWidgetsSchema, Mn as mediaListResponseSchema, Mt as inviteRegisterOptionsBody, N as widgetSchema, Nn as mediaProviderListQuery, Nt as magicLinkSendBody, O as reorderWidgetsBody, On as mediaConfirmResponseSchema, Ot as updateMenuItemBody, P as allowedDomainCreateBody, Pn as mediaResponseSchema, Pt as passkeyOptionsBody, Q as searchSuggestQuery, Qn as contentTrashQuery, Qt as adminCommentListResponseSchema, R as userSchema, Rn as contentCompareResponseSchema, Rt as passkeyVerifyBody, S as redirectListResponseSchema, Sn as schemaExportQuery, St as menuListItemSchema, T as updateRedirectBody, Tn as DEFAULT_MAX_UPLOAD_SIZE, Tt as menuWithItemsSchema, U as wpPluginAnalyzeBody, Un as contentPreviewUrlBody, Ut as hitlRequestListQuery, V as importProbeBody, Vn as contentListQuery, Vt as reviewRequestListQuery, W as wpPluginExecuteBody, Wn as contentPublishBody, Wt as hitlRequestResolveBody, X as searchResponseSchema, Xn as contentTranslationSchema, Xt as contextEntryStaleQuery, Y as searchRebuildBody, Yn as contentTermsBody, Yt as contextEntryReviewBody, Z as searchResultSchema, Zn as contentTranslationsResponseSchema, Zt as contextEntrySupersedeBody, _ as notFoundListResponseSchema, _n as fieldResponseSchema, _t as updateTermBody, a as bylineFieldUpdateBody, an as createCommentBody, ar as cursorPaginationQuery, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as orphanedTableListResponseSchema, bt as menuItemSchema, c as bylineCreditSchema, cn as collectionGetQuery, cr as localeCode, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionSchema, dr as roleLevel, dt as termGetResponseSchema, en as commentBulkResponseSchema, er as trashedContentItemSchema, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionWithFieldsResponseSchema, fr as slugPattern, ft as termListResponseSchema, g as notFoundListQuery, gn as fieldReorderBody, gt as termWithCountSchema, h as notFoundEntrySchema, hn as fieldListResponseSchema, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentStatusBody, ir as countResponseSchema, it as sectionsListQuery, j as widgetAreaWithWidgetsAndCountSchema, jn as mediaListQuery, jt as inviteCreateBody, k as updateWidgetBody, kn as mediaExistingResponseSchema, kt as authMeActionBody, l as bylineListResponseSchema, ln as collectionListResponseSchema, lr as localeFilterQuery, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as createFieldBody, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentListQuery, nr as VALID_ROLE_LEVELS, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as publicCommentListResponseSchema, or as deleteResponseSchema, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as createCollectionBody, pr as successEnvelope, pt as termResponseSchema, q as searchEnableBody, qn as contentSeoInput, qt as contextEntryDiffQuery, r as bylineFieldListResponseSchema, rn as commentSchema, rr as apiErrorSchema, rt as sectionSchema, s as bylineCreateBody, sn as publicCommentSchema, sr as httpUrl, st as createTermBody, t as bylineFieldCreateBody, tn as commentCountsResponseSchema, tr as trashedContentListResponseSchema, tt as createSectionBody, u as bylineSummarySchema, un as collectionResponseSchema, ur as offsetPaginationQuery, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldSchema, vt as createMenuBody, w as redirectsListQuery, wn as updateFieldBody, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanedTableSchema, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as orphanRegisterBody, yt as createMenuItemBody, z as userUpdateBody, zn as contentCreateBody, zt as signupCompleteBody } from "../../byline-fields-CaF_xfpj.mjs";
2
2
  import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
3
- export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
3
+ export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
@@ -1,6 +1,6 @@
1
- import "../../context-types-BrSQNye5.mjs";
2
- import { $ as createMenuBody, $t as contentListQuery, A as searchRebuildBody, An as roleLevel, At as fieldSchema, B as updateSectionBody, Bt as mediaConfirmResponseSchema, C as userDetailSchema, Cn as countResponseSchema, Ct as collectionSchema, D as usersListQuery, Dn as localeCode, Dt as fieldListResponseSchema, E as userUpdateBody, En as httpUrl, Et as createFieldBody, F as siteSettingsSchema, Ft as updateCollectionBody, G as taxonomyListResponseSchema, Gt as mediaProviderListQuery, H as createTermBody, Ht as mediaItemSchema, I as createSectionBody, It as updateFieldBody, J as termResponseSchema, Jt as mediaUploadUrlBody, K as termGetResponseSchema, Kt as mediaResponseSchema, L as sectionListResponseSchema, Lt as DEFAULT_MAX_UPLOAD_SIZE, M as searchResultSchema, Mn as successEnvelope, Mt as orphanedTableListResponseSchema, N as searchSuggestQuery, Nt as orphanedTableSchema, O as searchEnableBody, On as localeFilterQuery, Ot as fieldReorderBody, P as settingsUpdateBody, Pt as schemaExportQuery, Q as updateTermBody, Qt as contentItemSchema, R as sectionSchema, Rt as formatFileSize, S as allowedDomainUpdateBody, Sn as apiErrorSchema, St as collectionResponseSchema, T as userSchema, Tn as deleteResponseSchema, Tt as createCollectionBody, U as taxonomyDefSchema, Ut as mediaListQuery, V as createTaxonomyDefBody, Vt as mediaExistingResponseSchema, W as taxonomyDefTranslationsSchema, Wt as mediaListResponseSchema, X as termTranslationsSchema, Xt as contentCompareResponseSchema, Y as termSchema, Yt as mediaUploadUrlResponseSchema, Z as termWithCountSchema, Zt as contentCreateBody, _ as widgetAreaSchema, _n as bylineSummarySchema, _t as createCommentBody, a as notFoundPruneBody, an as contentSeoInput, at as menuTranslationsSchema, b as widgetSchema, bn as contentBylineInputSchema, bt as collectionGetQuery, c as notFoundSummarySchema, cn as contentTranslationSchema, ct as updateMenuBody, d as redirectsListQuery, dn as contentUpdateBody, dt as commentBulkBody, en as contentListResponseSchema, et as createMenuItemBody, f as updateRedirectBody, fn as trashedContentItemSchema, ft as commentBulkResponseSchema, g as updateWidgetBody, gn as bylineListResponseSchema, gt as commentStatusBody, h as reorderWidgetsBody, hn as bylineCreditSchema, ht as commentSchema, i as notFoundListResponseSchema, in as contentScheduleBody, it as menuSchema, j as searchResponseSchema, jn as slugPattern, jt as orphanRegisterBody, k as searchQuery, kn as offsetPaginationQuery, kt as fieldResponseSchema, l as redirectListResponseSchema, ln as contentTranslationsResponseSchema, lt as updateMenuItemBody, m as createWidgetBody, mn as bylineCreateBody, mt as commentListQuery, n as notFoundEntrySchema, nn as contentPublishBody, nt as menuItemTypeEnum, o as notFoundSummaryQuery, on as contentSeoSchema, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as trashedContentListResponseSchema, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaUpdateBody, r as notFoundListQuery, rn as contentResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentTermsBody, st as reorderMenuItemsBody, t as createRedirectBody, tn as contentPreviewUrlBody, tt as menuItemSchema, u as redirectSchema, un as contentTrashQuery, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vn as bylineUpdateBody, vt as publicCommentListResponseSchema, w as userListResponseSchema, wn as cursorPaginationQuery, wt as collectionWithFieldsResponseSchema, x as allowedDomainCreateBody, xn as VALID_ROLE_LEVELS, xt as collectionListResponseSchema, y as widgetAreaWithWidgetsSchema, yn as bylinesListQuery, yt as publicCommentSchema, z as sectionsListQuery, zt as mediaConfirmBody } from "../../redirects-x5ol_Qj9.mjs";
3
- import { C as siteBriefingQuery, D as contextEntryReviewBody, E as contextEntryListQuery, O as contextEntryStaleQuery, S as hitlRequestResolveBody, T as contextEntryDiffQuery, _ as signupCompleteBody, a as wpPrepareBody, b as reviewRequestResolveBody, c as inviteCompleteBody, d as magicLinkSendBody, f as passkeyOptionsBody, g as passkeyVerifyBody, h as passkeyRenameBody, i as wpPluginExecuteBody, k as contextEntrySupersedeBody, l as inviteCreateBody, m as passkeyRegisterVerifyBody, n as wpMediaImportBody, o as wpRewriteUrlsBody, p as passkeyRegisterOptionsBody, r as wpPluginAnalyzeBody, s as authMeActionBody, t as importProbeBody, u as inviteRegisterOptionsBody, v as signupRequestBody, w as contextEntryCreateBody, x as hitlRequestListQuery, y as reviewRequestListQuery } from "../../import-Br7aP9yh.mjs";
1
+ import "../../context-types-DQh_XKkn.mjs";
2
+ import { $ as createMenuBody, $t as contentListQuery, A as searchRebuildBody, An as roleLevel, At as fieldSchema, B as updateSectionBody, Bt as mediaConfirmResponseSchema, C as userDetailSchema, Cn as countResponseSchema, Ct as collectionSchema, D as usersListQuery, Dn as localeCode, Dt as fieldListResponseSchema, E as userUpdateBody, En as httpUrl, Et as createFieldBody, F as siteSettingsSchema, Ft as updateCollectionBody, G as taxonomyListResponseSchema, Gt as mediaProviderListQuery, H as createTermBody, Ht as mediaItemSchema, I as createSectionBody, It as updateFieldBody, J as termResponseSchema, Jt as mediaUploadUrlBody, K as termGetResponseSchema, Kt as mediaResponseSchema, L as sectionListResponseSchema, Lt as DEFAULT_MAX_UPLOAD_SIZE, M as searchResultSchema, Mn as successEnvelope, Mt as orphanedTableListResponseSchema, N as searchSuggestQuery, Nt as orphanedTableSchema, O as searchEnableBody, On as localeFilterQuery, Ot as fieldReorderBody, P as settingsUpdateBody, Pt as schemaExportQuery, Q as updateTermBody, Qt as contentItemSchema, R as sectionSchema, Rt as formatFileSize, S as allowedDomainUpdateBody, Sn as apiErrorSchema, St as collectionResponseSchema, T as userSchema, Tn as deleteResponseSchema, Tt as createCollectionBody, U as taxonomyDefSchema, Ut as mediaListQuery, V as createTaxonomyDefBody, Vt as mediaExistingResponseSchema, W as taxonomyDefTranslationsSchema, Wt as mediaListResponseSchema, X as termTranslationsSchema, Xt as contentCompareResponseSchema, Y as termSchema, Yt as mediaUploadUrlResponseSchema, Z as termWithCountSchema, Zt as contentCreateBody, _ as widgetAreaSchema, _n as bylineSummarySchema, _t as createCommentBody, a as notFoundPruneBody, an as contentSeoInput, at as menuTranslationsSchema, b as widgetSchema, bn as contentBylineInputSchema, bt as collectionGetQuery, c as notFoundSummarySchema, cn as contentTranslationSchema, ct as updateMenuBody, d as redirectsListQuery, dn as contentUpdateBody, dt as commentBulkBody, en as contentListResponseSchema, et as createMenuItemBody, f as updateRedirectBody, fn as trashedContentItemSchema, ft as commentBulkResponseSchema, g as updateWidgetBody, gn as bylineListResponseSchema, gt as commentStatusBody, h as reorderWidgetsBody, hn as bylineCreditSchema, ht as commentSchema, i as notFoundListResponseSchema, in as contentScheduleBody, it as menuSchema, j as searchResponseSchema, jn as slugPattern, jt as orphanRegisterBody, k as searchQuery, kn as offsetPaginationQuery, kt as fieldResponseSchema, l as redirectListResponseSchema, ln as contentTranslationsResponseSchema, lt as updateMenuItemBody, m as createWidgetBody, mn as bylineCreateBody, mt as commentListQuery, n as notFoundEntrySchema, nn as contentPublishBody, nt as menuItemTypeEnum, o as notFoundSummaryQuery, on as contentSeoSchema, ot as menuWithItemsSchema, p as createWidgetAreaBody, pn as trashedContentListResponseSchema, pt as commentCountsResponseSchema, q as termListResponseSchema, qt as mediaUpdateBody, r as notFoundListQuery, rn as contentResponseSchema, rt as menuListItemSchema, s as notFoundSummaryResponseSchema, sn as contentTermsBody, st as reorderMenuItemsBody, t as createRedirectBody, tn as contentPreviewUrlBody, tt as menuItemSchema, u as redirectSchema, un as contentTrashQuery, ut as adminCommentListResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vn as bylineUpdateBody, vt as publicCommentListResponseSchema, w as userListResponseSchema, wn as cursorPaginationQuery, wt as collectionWithFieldsResponseSchema, x as allowedDomainCreateBody, xn as VALID_ROLE_LEVELS, xt as collectionListResponseSchema, y as widgetAreaWithWidgetsSchema, yn as bylinesListQuery, yt as publicCommentSchema, z as sectionsListQuery, zt as mediaConfirmBody } from "../../redirects-q_cToaHv.mjs";
3
+ import { A as contextEntryCreateBody, C as signupCompleteBody, D as hitlRequestListQuery, E as reviewRequestResolveBody, F as contextEntrySupersedeBody, M as contextEntryListQuery, N as contextEntryReviewBody, O as hitlRequestResolveBody, P as contextEntryStaleQuery, S as passkeyVerifyBody, T as reviewRequestListQuery, _ as magicLinkSendBody, a as bylineFieldUpdateBody, b as passkeyRegisterVerifyBody, c as wpMediaImportBody, d as wpPrepareBody, f as wpRewriteUrlsBody, g as inviteRegisterOptionsBody, h as inviteCreateBody, i as bylineFieldReorderBody, j as contextEntryDiffQuery, k as siteBriefingQuery, l as wpPluginAnalyzeBody, m as inviteCompleteBody, n as bylineFieldDefinitionSchema, o as bylineFieldUsageResponseSchema, p as authMeActionBody, r as bylineFieldListResponseSchema, s as importProbeBody, t as bylineFieldCreateBody, u as wpPluginExecuteBody, v as passkeyOptionsBody, w as signupRequestBody, x as passkeyRenameBody, y as passkeyRegisterOptionsBody } from "../../byline-fields-D7TJ_oHF.mjs";
4
4
  import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
5
5
 
6
- export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
6
+ export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublishBody, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
@@ -1,24 +1,24 @@
1
1
  import { r as validatePluginIdentifier, t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
2
- import { r as isI18nEnabled } from "./config-XW5tMrH8.mjs";
3
- import { r as RevisionRepository, t as ContentRepository } from "./content-DvpMad_N.mjs";
2
+ import { r as isI18nEnabled } from "./config-CVssduLe.mjs";
3
+ import { r as RevisionRepository, t as ContentRepository } from "./content-BfyjOiMi.mjs";
4
4
  import { r as encodeBase64, t as decodeBase64 } from "./base64-C1Q9yr0B.mjs";
5
- import { t as DinewayValidationError } from "./types-D1DjBFA9.mjs";
6
- import { t as MediaRepository } from "./media-Cg4zc9fq.mjs";
7
- import { t as CommentRepository } from "./comment-BmJXz3lc.mjs";
5
+ import { t as DinewayValidationError } from "./types-Ck7-WoUD.mjs";
6
+ import { t as MediaRepository } from "./media-DhBwiCYR.mjs";
7
+ import { t as CommentRepository } from "./comment-ogMaF1gk.mjs";
8
8
  import { t as withTransaction } from "./transaction-D0FOsb3X.mjs";
9
- import { t as RedirectRepository } from "./redirect-BaVvo2te.mjs";
10
- import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-D8KL0nCY.mjs";
11
- import { t as BylineRepository } from "./byline-DpNNSjET.mjs";
12
- import { t as SeoRepository } from "./seo-BPb_reaG.mjs";
13
- import { i as invalidateRedirectCache } from "./cache-DQyZ-QaB.mjs";
14
- import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-DYP4V5Ks.mjs";
15
- import { n as requestCached } from "./request-cache-BpwuE2ix.mjs";
16
- import { u as PluginStateRepository } from "./briefing-Jsxs587i.mjs";
17
- import { n as SchemaRegistry, t as SchemaError } from "./registry-i__XP2WV.mjs";
18
- import { n as hashString } from "./hash-DFFrkivP.mjs";
19
- import { n as VERSION, t as COMMIT } from "./version-DTpFm69w.mjs";
20
- import { i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-C6fzQoWn.mjs";
21
- import { t as DinewayStorageError } from "./types-CNNQ8l0v.mjs";
9
+ import { t as RedirectRepository } from "./redirect-BqFMj67n.mjs";
10
+ import { r as requestCached } from "./request-cache-w5cj5itT.mjs";
11
+ import { t as BylineRepository } from "./byline-CXQcMsBu.mjs";
12
+ import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-DgEw12Bc.mjs";
13
+ import { t as SeoRepository } from "./seo-uMFBaR8G.mjs";
14
+ import { i as invalidateRedirectCache } from "./cache-GRK71jOU.mjs";
15
+ import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-8pAB8-77.mjs";
16
+ import { u as PluginStateRepository } from "./briefing-BFEWeJtR.mjs";
17
+ import { n as SchemaRegistry, t as SchemaError } from "./registry-Cq3QRBW2.mjs";
18
+ import { n as hashString } from "./hash-BPmX6P8I.mjs";
19
+ import { n as VERSION, t as COMMIT } from "./version-Cg6ur4zS.mjs";
20
+ import { i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-qh2P7RDX.mjs";
21
+ import { t as DinewayStorageError } from "./types-Cg276-3z.mjs";
22
22
  import { sql } from "kysely";
23
23
  import { createGzipDecoder, unpackTar } from "modern-tar";
24
24
 
@@ -205,7 +205,8 @@ async function hydrateSeoMany(db, collection, items, hasSeo) {
205
205
  }
206
206
  async function hydrateBylines(db, collection, item) {
207
207
  const bylineRepo = new BylineRepository(db);
208
- const bylines = await bylineRepo.getContentBylines(collection, item.id);
208
+ const localeOpt = item.locale ? { locale: item.locale } : void 0;
209
+ const bylines = await bylineRepo.getContentBylines(collection, item.id, localeOpt);
209
210
  if (bylines.length > 0) {
210
211
  item.bylines = bylines.map((c) => ({
211
212
  ...c,
@@ -214,9 +215,13 @@ async function hydrateBylines(db, collection, item) {
214
215
  item.byline = bylines[0]?.byline ?? null;
215
216
  return;
216
217
  }
217
- if (item.primaryBylineId) item.primaryBylineId = null;
218
+ if (item.primaryBylineId) {
219
+ item.bylines = [];
220
+ item.byline = null;
221
+ return;
222
+ }
218
223
  if (item.authorId) {
219
- const fallback = await bylineRepo.findByUserId(item.authorId);
224
+ const fallback = await bylineRepo.findByUserId(item.authorId, localeOpt);
220
225
  if (fallback) {
221
226
  item.bylines = [{
222
227
  byline: fallback,
@@ -237,12 +242,45 @@ async function hydrateBylines(db, collection, item) {
237
242
  async function hydrateBylinesMany(db, collection, items) {
238
243
  if (items.length === 0) return;
239
244
  const bylineRepo = new BylineRepository(db);
240
- const contentIds = items.map((i) => i.id);
241
- const bylinesMap = await bylineRepo.getContentBylinesMany(collection, contentIds);
242
- const fallbackAuthorIds = [];
243
- for (const item of items) if (!bylinesMap.has(item.id) && item.authorId) fallbackAuthorIds.push(item.authorId);
244
- const uniqueAuthorIds = [...new Set(fallbackAuthorIds)];
245
- const authorBylineMap = await bylineRepo.findByUserIds(uniqueAuthorIds);
245
+ const localeBuckets = /* @__PURE__ */ new Map();
246
+ for (const item of items) {
247
+ const key = item.locale ?? null;
248
+ const bucket = localeBuckets.get(key);
249
+ if (bucket) bucket.push(item);
250
+ else localeBuckets.set(key, [item]);
251
+ }
252
+ const bylinesMap = /* @__PURE__ */ new Map();
253
+ const itemsNeedingAuthorCheck = [];
254
+ for (const [locale, bucket] of localeBuckets) {
255
+ const localeOpt = locale ? { locale } : void 0;
256
+ const credits = await bylineRepo.getContentBylinesMany(collection, bucket.map((item) => item.id), localeOpt);
257
+ for (const [id, list] of credits) bylinesMap.set(id, list);
258
+ for (const item of bucket) {
259
+ const explicit = credits.get(item.id);
260
+ if (explicit && explicit.length > 0) continue;
261
+ if (item.authorId && !item.primaryBylineId) itemsNeedingAuthorCheck.push(item);
262
+ }
263
+ }
264
+ const fallbackByItem = /* @__PURE__ */ new Map();
265
+ const authorBuckets = /* @__PURE__ */ new Map();
266
+ for (const item of itemsNeedingAuthorCheck) {
267
+ const key = item.locale ?? null;
268
+ const bucket = authorBuckets.get(key);
269
+ if (bucket) bucket.push(item);
270
+ else authorBuckets.set(key, [item]);
271
+ }
272
+ for (const [locale, bucket] of authorBuckets) {
273
+ const authorIds = bucket.map((item) => item.authorId).filter((id) => id !== null);
274
+ const uniqueAuthorIds = [...new Set(authorIds)];
275
+ if (uniqueAuthorIds.length === 0) continue;
276
+ const localeOpt = locale ? { locale } : void 0;
277
+ const authorBylineMap = await bylineRepo.findByUserIds(uniqueAuthorIds, localeOpt);
278
+ for (const item of bucket) {
279
+ if (!item.authorId) continue;
280
+ const fallback = authorBylineMap.get(item.authorId);
281
+ if (fallback) fallbackByItem.set(item.id, fallback);
282
+ }
283
+ }
246
284
  for (const item of items) {
247
285
  const explicit = bylinesMap.get(item.id);
248
286
  if (explicit && explicit.length > 0) {
@@ -253,19 +291,21 @@ async function hydrateBylinesMany(db, collection, items) {
253
291
  item.byline = explicit[0]?.byline ?? null;
254
292
  continue;
255
293
  }
256
- if (item.primaryBylineId) item.primaryBylineId = null;
257
- if (item.authorId) {
258
- const fallback = authorBylineMap.get(item.authorId);
259
- if (fallback) {
260
- item.bylines = [{
261
- byline: fallback,
262
- sortOrder: 0,
263
- roleLabel: null,
264
- source: "inferred"
265
- }];
266
- item.byline = fallback;
267
- continue;
268
- }
294
+ if (item.primaryBylineId) {
295
+ item.bylines = [];
296
+ item.byline = null;
297
+ continue;
298
+ }
299
+ const fallback = fallbackByItem.get(item.id);
300
+ if (fallback) {
301
+ item.bylines = [{
302
+ byline: fallback,
303
+ sortOrder: 0,
304
+ roleLabel: null,
305
+ source: "inferred"
306
+ }];
307
+ item.byline = fallback;
308
+ continue;
269
309
  }
270
310
  item.bylines = [];
271
311
  item.byline = null;
@@ -286,6 +326,14 @@ async function resolveId(repo, collection, identifier, locale) {
286
326
  async function resolveIdIncludingTrashed(repo, collection, identifier, locale) {
287
327
  return (await repo.findByIdOrSlugIncludingTrashed(collection, identifier, locale))?.id ?? null;
288
328
  }
329
+ async function resolveSearchColumns(db, collection) {
330
+ const columns = ["slug"];
331
+ const fieldSlugs = await getCollectionFieldSlugs(db, collection);
332
+ if (!fieldSlugs) return columns;
333
+ const fields = new Set(fieldSlugs);
334
+ for (const candidate of ["title", "name"]) if (fields.has(candidate)) columns.push(candidate);
335
+ return columns;
336
+ }
289
337
  /**
290
338
  * Create content list handler
291
339
  */
@@ -295,6 +343,11 @@ async function handleContentList(db, collection, params) {
295
343
  const where = {};
296
344
  if (params.status) where.status = params.status;
297
345
  if (params.locale) where.locale = params.locale;
346
+ const q = params.q?.trim();
347
+ if (q) {
348
+ where.q = q;
349
+ where.searchColumns = await resolveSearchColumns(db, collection);
350
+ }
298
351
  const result = await repo.findMany(collection, {
299
352
  cursor: params.cursor,
300
353
  limit: params.limit || 50,
@@ -311,7 +364,8 @@ async function handleContentList(db, collection, params) {
311
364
  success: true,
312
365
  data: {
313
366
  items: result.items,
314
- nextCursor: result.nextCursor
367
+ nextCursor: result.nextCursor,
368
+ total: result.total
315
369
  }
316
370
  };
317
371
  } catch (error) {
@@ -432,10 +486,7 @@ async function handleContentCreate(db, collection, body) {
432
486
  createdAt: body.createdAt,
433
487
  publishedAt: body.publishedAt
434
488
  });
435
- if (body.bylines !== void 0) {
436
- await bylineRepo.setContentBylines(collection, created.id, body.bylines);
437
- created.primaryBylineId = body.bylines[0]?.bylineId ?? null;
438
- }
489
+ if (body.bylines !== void 0) created.primaryBylineId = (await bylineRepo.setContentBylines(collection, created.id, body.bylines))[0]?.byline.translationGroup ?? null;
439
490
  await hydrateBylines(trx, collection, created);
440
491
  if (body.seo && hasSeo) created.seo = await new SeoRepository(trx).upsert(collection, created.id, body.seo);
441
492
  else if (hasSeo) created.seo = { ...SEO_DEFAULTS };
@@ -482,7 +533,7 @@ async function handleContentUpdate(db, collection, id, body) {
482
533
  const mimeCheck = await validateMediaFields(db, collection, body.data);
483
534
  if (!mimeCheck.success) return mimeCheck;
484
535
  }
485
- const resolvedId = await resolveId(new ContentRepository(db), collection, id) ?? id;
536
+ const resolvedId = await resolveId(new ContentRepository(db), collection, id, body.locale) ?? id;
486
537
  const item = await withTransaction(db, async (trx) => {
487
538
  const trxRepo = new ContentRepository(trx);
488
539
  const bylineRepo = new BylineRepository(trx);
@@ -501,10 +552,7 @@ async function handleContentUpdate(db, collection, id, body) {
501
552
  authorId: body.authorId,
502
553
  publishedAt: body.publishedAt
503
554
  });
504
- if (body.bylines !== void 0) {
505
- await bylineRepo.setContentBylines(collection, resolvedId, body.bylines);
506
- updated.primaryBylineId = body.bylines[0]?.bylineId ?? null;
507
- }
555
+ if (body.bylines !== void 0) updated.primaryBylineId = (await bylineRepo.setContentBylines(collection, resolvedId, body.bylines))[0]?.byline.translationGroup ?? null;
508
556
  if (oldSlug && body.slug) {
509
557
  const collectionRow = await trx.selectFrom("_dineway_collections").select("url_pattern").where("slug", "=", collection).executeTakeFirst();
510
558
  await new RedirectRepository(trx).createAutoRedirect(collection, oldSlug, body.slug, resolvedId, collectionRow?.url_pattern ?? null);
@@ -557,11 +605,7 @@ async function handleContentDuplicate(db, collection, id, authorId) {
557
605
  const bylineRepo = new BylineRepository(trx);
558
606
  const resolvedId = await resolveId(repo, collection, id) ?? id;
559
607
  const dup = await repo.duplicate(collection, resolvedId, authorId);
560
- const existingBylines = await bylineRepo.getContentBylines(collection, resolvedId);
561
- if (existingBylines.length > 0) await bylineRepo.setContentBylines(collection, dup.id, existingBylines.map((entry) => ({
562
- bylineId: entry.byline.id,
563
- roleLabel: entry.roleLabel
564
- })));
608
+ await bylineRepo.copyContentBylines(collection, resolvedId, dup.id);
565
609
  if (hasSeo) {
566
610
  const seoRepo = new SeoRepository(trx);
567
611
  await seoRepo.copyForDuplicate(collection, resolvedId, dup.id);
@@ -1289,7 +1333,8 @@ async function handleMediaList(db, params) {
1289
1333
  const result = await new MediaRepository(db).findMany({
1290
1334
  cursor: params.cursor,
1291
1335
  limit: Math.min(params.limit || 50, 100),
1292
- mimeType: params.mimeType
1336
+ mimeType: params.mimeType,
1337
+ q: params.q
1293
1338
  });
1294
1339
  return {
1295
1340
  success: true,
@@ -1,4 +1,4 @@
1
- import { a as hashApiToken, r as generatePrefixedToken } from "./api-tokens-L0o9Bd7v.mjs";
1
+ import { a as hashApiToken, r as generatePrefixedToken } from "./api-tokens-CYUoFGo7.mjs";
2
2
  import { ulid } from "ulidx";
3
3
 
4
4
  //#region src/api/handlers/api-tokens.ts
@@ -1,16 +1,16 @@
1
- import { t as __exportAll } from "./chunk-ClPoSABd.mjs";
2
- import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
3
- import { r as RevisionRepository, t as ContentRepository } from "./content-DvpMad_N.mjs";
4
- import { t as MediaRepository } from "./media-Cg4zc9fq.mjs";
5
- import { t as TaxonomyRepository } from "./taxonomy-BvXRL85P.mjs";
1
+ import { a as __exportAll } from "./runner-DTfG5v0G.mjs";
2
+ import { n as getI18nConfig } from "./config-CVssduLe.mjs";
3
+ import { r as RevisionRepository, t as ContentRepository } from "./content-BfyjOiMi.mjs";
4
+ import { t as MediaRepository } from "./media-DhBwiCYR.mjs";
5
+ import { t as TaxonomyRepository } from "./taxonomy-BnH-6VsX.mjs";
6
6
  import { t as withTransaction } from "./transaction-D0FOsb3X.mjs";
7
- import { t as RedirectRepository } from "./redirect-BaVvo2te.mjs";
8
- import { t as BylineRepository } from "./byline-DpNNSjET.mjs";
9
- import { t as FTSManager } from "./fts-manager-DnfOsF4s.mjs";
10
- import { n as SchemaRegistry } from "./registry-i__XP2WV.mjs";
11
- import { o as setSiteSettings } from "./settings-DORe02PC.mjs";
12
- import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-KAIQS48_.mjs";
13
- import { t as validateSeed } from "./validate-JE-WfUQ5.mjs";
7
+ import { t as RedirectRepository } from "./redirect-BqFMj67n.mjs";
8
+ import { t as BylineRepository } from "./byline-CXQcMsBu.mjs";
9
+ import { t as FTSManager } from "./fts-manager-EHY2Kes9.mjs";
10
+ import { n as SchemaRegistry } from "./registry-Cq3QRBW2.mjs";
11
+ import { o as setSiteSettings } from "./settings-DNRQuX3d.mjs";
12
+ import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-DiKqWd3N.mjs";
13
+ import { t as validateSeed } from "./validate-CK4a1sIF.mjs";
14
14
  import { ulid } from "ulidx";
15
15
  import { imageSize } from "image-size";
16
16
  import mime from "mime/lite";
@@ -268,29 +268,46 @@ async function applySeed(db, seed, options = {}) {
268
268
  if (existing) {
269
269
  if (onConflict === "error") throw new Error(`Conflict: byline "${byline.slug}" already exists`);
270
270
  if (onConflict === "update") {
271
- await bylineRepo.update(existing.id, {
272
- displayName: byline.displayName,
273
- bio: byline.bio ?? null,
274
- websiteUrl: byline.websiteUrl ?? null,
275
- isGuest: byline.isGuest
276
- });
271
+ const avatar = byline.avatar ? await resolveSeedBylineAvatar(db, byline.avatar) : null;
272
+ try {
273
+ if (!await bylineRepo.update(existing.id, {
274
+ displayName: byline.displayName,
275
+ bio: byline.bio ?? null,
276
+ websiteUrl: byline.websiteUrl ?? null,
277
+ isGuest: byline.isGuest,
278
+ ...avatar ? { avatarMediaId: avatar.id } : {}
279
+ })) throw new Error(`Byline "${byline.slug}" disappeared during update`);
280
+ } catch (error) {
281
+ if (avatar?.created) await deleteMediaRow(db, avatar.id);
282
+ throw error;
283
+ }
277
284
  seedBylineIdMap.set(byline.id, existing.id);
278
285
  result.bylines.updated++;
286
+ if (avatar?.created) result.media.created++;
279
287
  continue;
280
288
  }
281
289
  seedBylineIdMap.set(byline.id, existing.id);
282
290
  result.bylines.skipped++;
283
291
  continue;
284
292
  }
285
- const created = await bylineRepo.create({
286
- slug: byline.slug,
287
- displayName: byline.displayName,
288
- bio: byline.bio ?? null,
289
- websiteUrl: byline.websiteUrl ?? null,
290
- isGuest: byline.isGuest
291
- });
292
- seedBylineIdMap.set(byline.id, created.id);
293
+ const avatar = byline.avatar ? await resolveSeedBylineAvatar(db, byline.avatar) : null;
294
+ let createdId;
295
+ try {
296
+ createdId = (await bylineRepo.create({
297
+ slug: byline.slug,
298
+ displayName: byline.displayName,
299
+ bio: byline.bio ?? null,
300
+ websiteUrl: byline.websiteUrl ?? null,
301
+ isGuest: byline.isGuest,
302
+ avatarMediaId: avatar?.id ?? null
303
+ })).id;
304
+ } catch (error) {
305
+ if (avatar?.created) await deleteMediaRow(db, avatar.id);
306
+ throw error;
307
+ }
308
+ seedBylineIdMap.set(byline.id, createdId);
293
309
  result.bylines.created++;
310
+ if (avatar?.created) result.media.created++;
294
311
  }
295
312
  }
296
313
  if (includeContent && seed.content) {
@@ -496,9 +513,9 @@ async function applySeed(db, seed, options = {}) {
496
513
  }
497
514
  }
498
515
  }
499
- const { invalidateBylineCache } = await import("./bylines-75_STR73.mjs").then((n) => n.t);
500
- const { invalidateUrlPatternCache } = await import("./query-DHvNhBhi.mjs").then((n) => n.o);
501
- const { invalidateRedirectCache } = await import("./cache-DQyZ-QaB.mjs").then((n) => n.t);
516
+ const { invalidateBylineCache } = await import("./bylines-BgriNlW7.mjs").then((n) => n.t);
517
+ const { invalidateUrlPatternCache } = await import("./query-CSx0EdSW.mjs").then((n) => n.o);
518
+ const { invalidateRedirectCache } = await import("./cache-GRK71jOU.mjs").then((n) => n.t);
502
519
  invalidateBylineCache();
503
520
  invalidateUrlPatternCache();
504
521
  invalidateRedirectCache();
@@ -582,7 +599,7 @@ async function applyContentTaxonomies(db, collectionSlug, contentId, entry, isUp
582
599
  if (isUpdate) await db.deleteFrom("content_taxonomies").where("collection", "=", collectionSlug).where("entry_id", "=", contentId).execute();
583
600
  if (!entry.taxonomies) {
584
601
  if (isUpdate) {
585
- const { invalidateTermCache } = await import("./taxonomies-BVBKoXRf.mjs").then((n) => n.l);
602
+ const { invalidateTermCache } = await import("./taxonomies-faQVeMgj.mjs").then((n) => n.l);
586
603
  invalidateTermCache();
587
604
  }
588
605
  return;
@@ -594,7 +611,7 @@ async function applyContentTaxonomies(db, collectionSlug, contentId, entry, isUp
594
611
  if (term) await termRepo.attachToEntry(collectionSlug, contentId, term.id);
595
612
  }
596
613
  }
597
- const { invalidateTermCache } = await import("./taxonomies-BVBKoXRf.mjs").then((n) => n.l);
614
+ const { invalidateTermCache } = await import("./taxonomies-faQVeMgj.mjs").then((n) => n.l);
598
615
  invalidateTermCache();
599
616
  }
600
617
  /**
@@ -699,6 +716,34 @@ async function resolveValue(value, seedIdMap, mediaContext, result) {
699
716
  }
700
717
  return value;
701
718
  }
719
+ async function resolveSeedBylineAvatar(db, avatar) {
720
+ const existing = await db.selectFrom("media").select("id").where("storage_key", "=", avatar.storageKey).orderBy("id", "asc").executeTakeFirst();
721
+ if (existing) return {
722
+ id: existing.id,
723
+ created: false
724
+ };
725
+ const basename = avatar.storageKey.split("/").pop();
726
+ const filename = avatar.filename ?? (basename && basename.length > 0 ? basename : avatar.storageKey);
727
+ return {
728
+ id: (await new MediaRepository(db).create({
729
+ filename,
730
+ mimeType: avatar.mimeType ?? "image/jpeg",
731
+ storageKey: avatar.storageKey,
732
+ alt: avatar.alt,
733
+ width: avatar.width,
734
+ height: avatar.height,
735
+ status: "ready"
736
+ })).id,
737
+ created: true
738
+ };
739
+ }
740
+ async function deleteMediaRow(db, id) {
741
+ try {
742
+ await db.deleteFrom("media").where("id", "=", id).execute();
743
+ } catch (error) {
744
+ console.warn(`[seed] failed to clean up orphaned avatar media ${id}:`, error);
745
+ }
746
+ }
702
747
  /**
703
748
  * Resolve a $media reference by downloading and uploading the media
704
749
  */
@@ -1,14 +1,13 @@
1
- import { r as ContentItem } from "../types-DvwHUku7.mjs";
2
- import { Kn as MediaItem, a as S3StorageConfig, i as LocalStorageConfig, o as StorageDescriptor, r as getStoredConfig, t as DinewayConfig } from "../runtime-1bE80cmL.mjs";
3
- import "../types-C-CMfzSl.mjs";
4
- import { X as ResolvedPlugin } from "../types-BIM7jwxr.mjs";
5
- import "../types-BgE6gMFI.mjs";
6
- import "../runner-FhUNNaqA.mjs";
7
- import "../index-Ct0pjZwW.mjs";
8
- import "../index-BwOO3vu2.mjs";
9
- import "../bylines-BU6b8jSi.mjs";
10
- import "../types-BBETcziA.mjs";
11
- import "../validate-CvQ6cvHH.mjs";
1
+ import { r as ContentItem } from "../types-B7_vSiPD.mjs";
2
+ import { _i as MediaItem, a as S3StorageConfig, i as LocalStorageConfig, o as StorageDescriptor, r as getStoredConfig, t as DinewayConfig } from "../runtime-Cd-kjPfN.mjs";
3
+ import "../types-DYKtk8f1.mjs";
4
+ import { X as ResolvedPlugin } from "../types-UGmU5sWx.mjs";
5
+ import "../types-Dryvv7LH.mjs";
6
+ import "../runner-Cnz4dl0f.mjs";
7
+ import "../index-DJVaYiUV.mjs";
8
+ import "../byline-fields-CaF_xfpj.mjs";
9
+ import "../types-GaCtZ1k9.mjs";
10
+ import "../validate-BJuG-ISL.mjs";
12
11
  import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
13
12
  import { AstroIntegration } from "astro";
14
13