dineway 0.1.15 → 0.1.17

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 (366) hide show
  1. package/README.md +22 -0
  2. package/dist/{activity-events-B4wp7CrU.mjs → activity-events-DbqJBNaY.mjs} +1 -1
  3. package/dist/{allowed-origins-C1AKK9AT.mjs → allowed-origins-D85wzUp6.mjs} +1 -1
  4. package/dist/api/route-utils.d.mts +10 -10
  5. package/dist/api/route-utils.mjs +15 -15
  6. package/dist/api/schemas/index.d.mts +2 -2
  7. package/dist/api/schemas/index.mjs +4 -4
  8. package/dist/{api-DX6X_a82.mjs → api-CgxdfUg4.mjs} +96 -17
  9. package/dist/{api-tokens-D7UjLbdt.mjs → api-tokens-CMmUPFae.mjs} +1 -1
  10. package/dist/{apply-Bm5QgdrE.mjs → apply-CGVHi2r7.mjs} +165 -85
  11. package/dist/astro/index.d.mts +11 -11
  12. package/dist/astro/index.mjs +3 -3
  13. package/dist/astro/middleware/auth.d.mts +10 -10
  14. package/dist/astro/middleware/auth.mjs +5 -5
  15. package/dist/astro/middleware/redirect.mjs +6 -6
  16. package/dist/astro/middleware/request-context.mjs +4 -4
  17. package/dist/astro/middleware/setup.mjs +1 -1
  18. package/dist/astro/middleware.mjs +119 -77
  19. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +5 -5
  20. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +5 -5
  21. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +4 -4
  22. package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
  23. package/dist/astro/routes/api/admin/briefing.mjs +19 -19
  24. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +12 -12
  25. package/dist/astro/routes/api/admin/bylines/index.mjs +12 -12
  26. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +13 -13
  27. package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -6
  28. package/dist/astro/routes/api/admin/comments/bulk.mjs +10 -10
  29. package/dist/astro/routes/api/admin/comments/counts.mjs +6 -6
  30. package/dist/astro/routes/api/admin/comments/index.mjs +10 -10
  31. package/dist/astro/routes/api/admin/context/_id_/history.mjs +26 -26
  32. package/dist/astro/routes/api/admin/context/_id_/index.mjs +26 -26
  33. package/dist/astro/routes/api/admin/context/_id_/review.mjs +30 -30
  34. package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +30 -30
  35. package/dist/astro/routes/api/admin/context/diff.mjs +29 -29
  36. package/dist/astro/routes/api/admin/context/index.mjs +30 -30
  37. package/dist/astro/routes/api/admin/context/stale.mjs +29 -29
  38. package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +26 -26
  39. package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +29 -29
  40. package/dist/astro/routes/api/admin/hitl-requests/index.mjs +29 -29
  41. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +27 -27
  42. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +3 -3
  43. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +6 -6
  44. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +6 -6
  45. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +47 -47
  46. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +47 -47
  47. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +40 -40
  48. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +46 -46
  49. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +46 -46
  50. package/dist/astro/routes/api/admin/plugins/index.mjs +40 -40
  51. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +2 -2
  52. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +40 -40
  53. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +46 -46
  54. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +40 -40
  55. package/dist/astro/routes/api/admin/plugins/updates.mjs +40 -40
  56. package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +6 -6
  57. package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +29 -29
  58. package/dist/astro/routes/api/admin/review-requests/index.mjs +10 -10
  59. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +40 -40
  60. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +2 -2
  61. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +40 -40
  62. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
  63. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
  64. package/dist/astro/routes/api/admin/users/_id_/index.mjs +6 -6
  65. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +3 -3
  66. package/dist/astro/routes/api/admin/users/index.mjs +5 -5
  67. package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
  68. package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
  69. package/dist/astro/routes/api/auth/invite/complete.mjs +10 -10
  70. package/dist/astro/routes/api/auth/invite/index.mjs +7 -7
  71. package/dist/astro/routes/api/auth/invite/register-options.mjs +9 -9
  72. package/dist/astro/routes/api/auth/logout.mjs +2 -2
  73. package/dist/astro/routes/api/auth/magic-link/send.mjs +9 -9
  74. package/dist/astro/routes/api/auth/magic-link/verify.mjs +2 -2
  75. package/dist/astro/routes/api/auth/me.mjs +5 -5
  76. package/dist/astro/routes/api/auth/mode.mjs +1 -1
  77. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +2 -2
  78. package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
  79. package/dist/astro/routes/api/auth/passkey/_id_.mjs +5 -5
  80. package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
  81. package/dist/astro/routes/api/auth/passkey/options.mjs +11 -11
  82. package/dist/astro/routes/api/auth/passkey/register/options.mjs +9 -9
  83. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +10 -10
  84. package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -10
  85. package/dist/astro/routes/api/auth/signup/complete.mjs +10 -10
  86. package/dist/astro/routes/api/auth/signup/request.mjs +9 -9
  87. package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
  88. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +14 -14
  89. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
  90. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +6 -6
  91. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
  92. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +7 -7
  93. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +12 -12
  94. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +28 -28
  95. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
  96. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +2 -2
  97. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +10 -10
  98. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +13 -13
  99. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
  100. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +6 -6
  101. package/dist/astro/routes/api/content/_collection_/_id_.mjs +10 -10
  102. package/dist/astro/routes/api/content/_collection_/index.mjs +10 -10
  103. package/dist/astro/routes/api/content/_collection_/trash.mjs +6 -6
  104. package/dist/astro/routes/api/dashboard.mjs +9 -9
  105. package/dist/astro/routes/api/dev/emails.mjs +2 -2
  106. package/dist/astro/routes/api/health.mjs +1 -1
  107. package/dist/astro/routes/api/import/probe.d.mts +3 -3
  108. package/dist/astro/routes/api/import/probe.mjs +10 -10
  109. package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
  110. package/dist/astro/routes/api/import/wordpress/execute.mjs +29 -29
  111. package/dist/astro/routes/api/import/wordpress/media.mjs +7 -7
  112. package/dist/astro/routes/api/import/wordpress/prepare.mjs +33 -33
  113. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.d.mts +48 -0
  114. package/dist/astro/routes/api/import/wordpress/rewrite-url-helpers.mjs +124 -0
  115. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +32 -145
  116. package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
  117. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +10 -10
  118. package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
  119. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +1 -1
  120. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +33 -33
  121. package/dist/astro/routes/api/manifest.mjs +4 -4
  122. package/dist/astro/routes/api/mcp.mjs +277 -91
  123. package/dist/astro/routes/api/media/_id_/confirm.mjs +6 -6
  124. package/dist/astro/routes/api/media/_id_.mjs +6 -6
  125. package/dist/astro/routes/api/media/file/_...key_.mjs +1 -1
  126. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +2 -2
  127. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
  128. package/dist/astro/routes/api/media/providers/index.mjs +2 -2
  129. package/dist/astro/routes/api/media/upload-url.mjs +11 -13
  130. package/dist/astro/routes/api/media.mjs +18 -18
  131. package/dist/astro/routes/api/menus/_name_/items.mjs +45 -36
  132. package/dist/astro/routes/api/menus/_name_/reorder.mjs +34 -31
  133. package/dist/astro/routes/api/menus/_name_/translations.d.mts +8 -0
  134. package/dist/astro/routes/api/menus/_name_/translations.mjs +111 -0
  135. package/dist/astro/routes/api/menus/_name_.mjs +47 -36
  136. package/dist/astro/routes/api/menus/index.mjs +34 -32
  137. package/dist/astro/routes/api/oauth/authorize.mjs +7 -7
  138. package/dist/astro/routes/api/oauth/device/authorize.mjs +6 -6
  139. package/dist/astro/routes/api/oauth/device/code.mjs +9 -9
  140. package/dist/astro/routes/api/oauth/device/token.mjs +8 -8
  141. package/dist/astro/routes/api/oauth/register.mjs +4 -4
  142. package/dist/astro/routes/api/oauth/token/refresh.mjs +6 -6
  143. package/dist/astro/routes/api/oauth/token/revoke.mjs +6 -6
  144. package/dist/astro/routes/api/oauth/token.mjs +6 -6
  145. package/dist/astro/routes/api/openapi.json.mjs +3 -3
  146. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +3 -3
  147. package/dist/astro/routes/api/redirects/404s/index.mjs +12 -12
  148. package/dist/astro/routes/api/redirects/404s/summary.mjs +12 -12
  149. package/dist/astro/routes/api/redirects/_id_.mjs +31 -31
  150. package/dist/astro/routes/api/redirects/index.mjs +31 -31
  151. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
  152. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +2 -2
  153. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +41 -41
  154. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +41 -41
  155. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +41 -41
  156. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +41 -41
  157. package/dist/astro/routes/api/schema/collections/index.mjs +41 -41
  158. package/dist/astro/routes/api/schema/index.mjs +6 -6
  159. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +40 -40
  160. package/dist/astro/routes/api/schema/orphans/index.mjs +40 -40
  161. package/dist/astro/routes/api/search/enable.mjs +12 -12
  162. package/dist/astro/routes/api/search/index.mjs +11 -11
  163. package/dist/astro/routes/api/search/rebuild.mjs +12 -12
  164. package/dist/astro/routes/api/search/stats.mjs +8 -8
  165. package/dist/astro/routes/api/search/suggest.mjs +11 -11
  166. package/dist/astro/routes/api/sections/_slug_.mjs +30 -30
  167. package/dist/astro/routes/api/sections/index.mjs +30 -30
  168. package/dist/astro/routes/api/settings/email.mjs +4 -4
  169. package/dist/astro/routes/api/settings.mjs +30 -30
  170. package/dist/astro/routes/api/setup/admin-verify.mjs +12 -12
  171. package/dist/astro/routes/api/setup/admin.mjs +10 -10
  172. package/dist/astro/routes/api/setup/dev-bypass.mjs +25 -25
  173. package/dist/astro/routes/api/setup/dev-reset.mjs +2 -2
  174. package/dist/astro/routes/api/setup/index.mjs +26 -26
  175. package/dist/astro/routes/api/setup/status.mjs +3 -3
  176. package/dist/astro/routes/api/snapshot.mjs +7 -7
  177. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.d.mts +8 -0
  178. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +131 -0
  179. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +49 -41
  180. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +36 -34
  181. package/dist/astro/routes/api/taxonomies/index.mjs +36 -34
  182. package/dist/astro/routes/api/themes/preview.mjs +6 -6
  183. package/dist/astro/routes/api/typegen.mjs +4 -4
  184. package/dist/astro/routes/api/well-known/auth.mjs +3 -3
  185. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +3 -3
  186. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +3 -3
  187. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +29 -29
  188. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +30 -30
  189. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +30 -30
  190. package/dist/astro/routes/api/widget-areas/_name_.mjs +28 -28
  191. package/dist/astro/routes/api/widget-areas/index.mjs +30 -30
  192. package/dist/astro/routes/api/widget-components.mjs +2 -2
  193. package/dist/astro/routes/robots.txt.mjs +9 -9
  194. package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
  195. package/dist/astro/routes/sitemap.xml.mjs +10 -10
  196. package/dist/astro/types.d.mts +16 -14
  197. package/dist/auth/providers/github.d.mts +1 -1
  198. package/dist/auth/providers/google.d.mts +1 -1
  199. package/dist/{auth-control-guard-DOZ3UCsP.mjs → auth-control-guard--r6LlNkX.mjs} +1 -1
  200. package/dist/{authorize-BAdbMCwC.mjs → authorize-wQDmXQJ1.mjs} +1 -1
  201. package/dist/{briefing-MVYe_Uyf.mjs → briefing-4k6R0KAr.mjs} +7 -7
  202. package/dist/{briefing-rty4O-wa.mjs → briefing-DM7e2yd3.mjs} +1 -1
  203. package/dist/{byline-naZxOPSa.mjs → byline-BxAf79s1.mjs} +4 -4
  204. package/dist/{bylines-DCvz5gtm.d.mts → bylines--KurdDQK.d.mts} +84 -22
  205. package/dist/{bylines-C4LIBOOO.mjs → bylines-DhCnhR70.mjs} +3 -3
  206. package/dist/{cache-DEbQ13c9.mjs → cache-inQvbrP5.mjs} +1 -1
  207. package/dist/{chunks-D_jVet6z.mjs → chunks-vkrCT4Ta.mjs} +7 -1
  208. package/dist/cli/index.mjs +337 -102
  209. package/dist/client/external-auth-headers.d.mts +1 -1
  210. package/dist/client/index.d.mts +1 -1
  211. package/dist/client/index.mjs +1 -1
  212. package/dist/{comment-DFO-gWDH.mjs → comment-BmJXz3lc.mjs} +1 -1
  213. package/dist/{comments--BsZ9pqA.mjs → comments-BW1qFiTa.mjs} +1 -1
  214. package/dist/{content-CyLkb-qH.mjs → content-DvpMad_N.mjs} +4 -3
  215. package/dist/{context-DNfcm853.mjs → context-CGbVhAmd.mjs} +2 -2
  216. package/dist/{context-CNIkMzot.mjs → context-CT44ux1O.mjs} +10 -10
  217. package/dist/{context-route-helpers-MurhoxWF.mjs → context-route-helpers-CcvSXJtQ.mjs} +1 -1
  218. package/dist/{dashboard-DqnYU8EU.mjs → dashboard-6gH7SlPM.mjs} +9 -18
  219. package/dist/database/instrumentation.d.mts +1 -1
  220. package/dist/database/instrumentation.mjs +14 -4
  221. package/dist/db/index.d.mts +3 -3
  222. package/dist/db/index.mjs +2 -2
  223. package/dist/db/libsql.d.mts +1 -1
  224. package/dist/db/postgres.d.mts +1 -1
  225. package/dist/db/sqlite.d.mts +1 -1
  226. package/dist/{device-flow-BGEH5jfn.mjs → device-flow-DaTBhALC.mjs} +5 -5
  227. package/dist/{dialect-helpers-DhTzaUxP.mjs → dialect-helpers-TkdbkFad.mjs} +7 -1
  228. package/dist/{fts-manager-B1pTNEG_.mjs → fts-manager-D7KVeBmg.mjs} +1 -1
  229. package/dist/{hitl-requests-ChT32Ilo.mjs → hitl-requests-CUnch_4e.mjs} +2 -2
  230. package/dist/{hitl-route-helpers-CSit54Ru.mjs → hitl-route-helpers-DcUCm57p.mjs} +4 -4
  231. package/dist/{import-BHRLhXAn.mjs → import-BVqG28WP.mjs} +3 -3
  232. package/dist/{import-CNcKWTbp.mjs → import-DE2ziezs.mjs} +2 -2
  233. package/dist/{index-CYfhYgXd.d.mts → index-DpMWSamU.d.mts} +2 -2
  234. package/dist/{index-EUAWaIxW.d.mts → index-JzJUzE4o.d.mts} +47 -47
  235. package/dist/index.d.mts +16 -16
  236. package/dist/index.mjs +65 -65
  237. package/dist/{jsonld-D2gUY4kA.d.mts → jsonld-BjsoTL5m.d.mts} +2 -2
  238. package/dist/{loader-PZnPxFLc.mjs → loader-CQFxFOt1.mjs} +2 -2
  239. package/dist/media/index.d.mts +2 -2
  240. package/dist/media/index.mjs +2 -2
  241. package/dist/media/local-runtime.d.mts +12 -12
  242. package/dist/media/local-runtime.mjs +3 -3
  243. package/dist/{media-_7Fxdu45.mjs → media-Cg4zc9fq.mjs} +12 -9
  244. package/dist/media-allowlist-eS3AZ2L_.mjs +26 -0
  245. package/dist/{menus-DYW_UHjv.mjs → menus-BDW1yIdj.mjs} +80 -87
  246. package/dist/menus-CwI7DQJ5.mjs +569 -0
  247. package/dist/mime-DJOFDGux.mjs +35 -0
  248. package/dist/{oauth-authorization-DxGjiWKL.mjs → oauth-authorization-DcYRiDfi.mjs} +5 -5
  249. package/dist/{oauth-clients-DxO_NO7k.mjs → oauth-clients-CgKFA-VH.mjs} +2 -2
  250. package/dist/page/index.d.mts +2 -2
  251. package/dist/page/index.mjs +1 -1
  252. package/dist/{parse-C9106ehs.mjs → parse-BBfZRZYb.mjs} +1 -1
  253. package/dist/{placeholder-Bh1dfUOd.d.mts → placeholder-DKMMLt42.d.mts} +1 -1
  254. package/dist/plugins/adapt-sandbox-entry.d.mts +10 -10
  255. package/dist/plugins/adapt-sandbox-entry.mjs +1 -1
  256. package/dist/{plugins-D7-ILNib.mjs → plugins-DKceDtUM.mjs} +9 -7
  257. package/dist/{preview-DvYRU-Oy.mjs → preview-CIDYFBzd.mjs} +2 -2
  258. package/dist/{provider-loader-BiQ6lNmf.d.mts → provider-loader-D0F6E2qv.d.mts} +1 -1
  259. package/dist/{query-CsbOywSY.mjs → query-BtuwuZRd.mjs} +3 -3
  260. package/dist/{query-B9BO5goQ.mjs → query-CWPxZjGM.mjs} +11 -11
  261. package/dist/{rate-limit-DmVTHI5v.mjs → rate-limit-GN64_Jaw.mjs} +5 -5
  262. package/dist/{redirect-CGl64yOX.mjs → redirect-BHo9--Jz.mjs} +3 -3
  263. package/dist/{redirects-Cgi_cZfN.mjs → redirects-Bc40BgxA.mjs} +4 -4
  264. package/dist/{redirects-lrlmYXVE.mjs → redirects-xVDvj_yQ.mjs} +68 -15
  265. package/dist/{registry-C-_hxLqa.mjs → registry-DumDzFDn.mjs} +5 -5
  266. package/dist/{request-cache-DHMRr2Lf.mjs → request-cache-DmVyQUBh.mjs} +5 -1
  267. package/dist/request-context.d.mts +19 -1
  268. package/dist/request-context.mjs +15 -3
  269. package/dist/{request-meta-DixlNKKa.mjs → request-meta-BVx9KkL-.mjs} +1 -1
  270. package/dist/{review-requests-C2DIHwlJ.mjs → review-requests-BYuoyse0.mjs} +1 -1
  271. package/dist/{review-requests-DIyjw-K_.mjs → review-requests-vCw7_3DS.mjs} +1 -1
  272. package/dist/{runner-BU6Lo1ZS.d.mts → runner-CHR_W79l.d.mts} +1 -1
  273. package/dist/{runner-DWZm2KQm.mjs → runner-lqEiJbO-.mjs} +496 -181
  274. package/dist/{runtime-QuuFSlc6.d.mts → runtime-B5hJAnKF.d.mts} +17 -16
  275. package/dist/runtime.d.mts +11 -11
  276. package/dist/runtime.mjs +5 -5
  277. package/dist/{schema-BECjUhP8.mjs → schema-D1z41cq_.mjs} +1 -1
  278. package/dist/{search-DqTHQqtV.mjs → search-CPcQGTHW.mjs} +2 -2
  279. package/dist/{secrets-CkoJ9zN0.mjs → secrets-AFKoqUXj.mjs} +2 -2
  280. package/dist/{sections-B61OxnfB.mjs → sections-B9RYyf3I.mjs} +2 -2
  281. package/dist/seed/index.d.mts +2 -2
  282. package/dist/seed/index.mjs +19 -19
  283. package/dist/seo/index.d.mts +1 -1
  284. package/dist/{seo-CUQctrog.mjs → seo-BPz1KkCq.mjs} +1 -1
  285. package/dist/{service-CyOsm0R6.mjs → service-DgiH1Yud.mjs} +2 -2
  286. package/dist/{settings-Dzgswvg4.mjs → settings-BGCo_c2y.mjs} +1 -1
  287. package/dist/{settings-DGtLLSaz.mjs → settings-qPzY2KIF.mjs} +4 -4
  288. package/dist/{setup-complete-ChilE-da.mjs → setup-complete-4EiBS1E5.mjs} +1 -1
  289. package/dist/{site-activity-B8FjLIVh.mjs → site-activity-lsCX_cqp.mjs} +1 -1
  290. package/dist/{site-context-WBxoD99D.mjs → site-context-DHRIU6x9.mjs} +58 -34
  291. package/dist/{site-url-BP7k7OCe.mjs → site-url-oyqzZtoL.mjs} +1 -1
  292. package/dist/storage/local.d.mts +1 -1
  293. package/dist/storage/local.mjs +1 -1
  294. package/dist/storage/s3.d.mts +1 -1
  295. package/dist/storage/s3.mjs +1 -1
  296. package/dist/taxonomies-BWmxbumf.mjs +350 -0
  297. package/dist/taxonomies-aQXvYVPm.mjs +507 -0
  298. package/dist/taxonomy-DI-0HgKe.mjs +217 -0
  299. package/dist/{tokens-BOJw-D9F.mjs → tokens-DB4dASZl.mjs} +1 -1
  300. package/dist/{types-DZPw8Rru.d.mts → types-CYBaBvtm.d.mts} +9 -0
  301. package/dist/{types-C0mmVRJN.d.mts → types-CsnHvu4J.d.mts} +1 -0
  302. package/dist/{types-Bs6lTBBW.mjs → types-D1DjBFA9.mjs} +8 -2
  303. package/dist/{types-Q616b2Hn.d.mts → types-DS5PYew4.d.mts} +1 -1
  304. package/dist/ui/server-runtime.d.mts +7 -7
  305. package/dist/ui/server-runtime.mjs +19 -19
  306. package/dist/{user-CcXq-zoL.mjs → user-2aI21yV1.mjs} +1 -1
  307. package/dist/{utils-C0ONdBul.mjs → utils-BJF19gfk.mjs} +1 -1
  308. package/dist/{validate-C7TzfamJ.mjs → validate-B8ZvLeOE.mjs} +12 -8
  309. package/dist/{validate-BwmQEbu8.d.mts → validate-BQ24E8rK.d.mts} +21 -4
  310. package/dist/version-CjsyxeBD.mjs +6 -0
  311. package/dist/{widgets-B7DRpZvy.mjs → widgets-Cce2-2fM.mjs} +2 -2
  312. package/dist/{wordpress-slugs-CnporCYH.mjs → wordpress-slugs-C4EhE6fo.mjs} +1 -1
  313. package/dist/{zod-generator-DBVP8D0P.mjs → zod-generator-BKhtHT3e.mjs} +3 -3
  314. package/package.json +5 -5
  315. package/dist/menus-DS3_5nWY.mjs +0 -312
  316. package/dist/taxonomies-D2aZGuns.mjs +0 -270
  317. package/dist/taxonomies-z6Lz91BC.mjs +0 -355
  318. package/dist/taxonomy-D5cbhc8u.mjs +0 -165
  319. package/dist/version-DzWaHle7.mjs +0 -6
  320. /package/dist/{adapters-DuLQZhRY.d.mts → adapters-BPzUiHHm.d.mts} +0 -0
  321. /package/dist/{api-tokens-CPjC3zf8.mjs → api-tokens-B7fvbHM2.mjs} +0 -0
  322. /package/dist/{base64-Cz-aU0X1.mjs → base64-C1Q9yr0B.mjs} +0 -0
  323. /package/dist/{challenge-store-DDTbisbf.mjs → challenge-store-anhwVER0.mjs} +0 -0
  324. /package/dist/{components-BPknylYg.mjs → components-BQiBW_Ji.mjs} +0 -0
  325. /package/dist/{config-CAMFxGaV.mjs → config-XW5tMrH8.mjs} +0 -0
  326. /package/dist/{context-types-C-LwdAxx.mjs → context-types-DuiyY6xF.mjs} +0 -0
  327. /package/dist/{cron-CKxvBrRT.mjs → cron-fV9baRVc.mjs} +0 -0
  328. /package/dist/{db-errors-DyZkswzF.mjs → db-errors-BnUbfGsK.mjs} +0 -0
  329. /package/dist/{default-D4ngTpW8.mjs → default-2JDm1rj_.mjs} +0 -0
  330. /package/dist/{email-console-CuefUXfX.mjs → email-console-_pTim1bU.mjs} +0 -0
  331. /package/dist/{entity-aliases-C0v-yNET.mjs → entity-aliases-PJV8IxDq.mjs} +0 -0
  332. /package/dist/{error-BMUPwxgx.mjs → error-Dyf9fGZE.mjs} +0 -0
  333. /package/dist/{escape-BRVaw1Ai.mjs → escape-Bn168-uP.mjs} +0 -0
  334. /package/dist/{experimental-workflows-C9X7yblQ.mjs → experimental-workflows-CSRjuEwS.mjs} +0 -0
  335. /package/dist/{hash-CDX7M0ze.mjs → hash-V8oZo1W2.mjs} +0 -0
  336. /package/dist/{load-B2XtDw__.mjs → load-BvyvS_76.mjs} +0 -0
  337. /package/dist/{manifest-schema-CgFJAp0H.mjs → manifest-schema-CU0XL_ZK.mjs} +0 -0
  338. /package/dist/{mode-DUhxwUhv.mjs → mode-DWw2di1I.mjs} +0 -0
  339. /package/dist/{normalize-C49G_o1k.mjs → normalize-9GU-bv_T.mjs} +0 -0
  340. /package/dist/{oauth-state-store-C5UFhzwD.mjs → oauth-state-store-DhifLitQ.mjs} +0 -0
  341. /package/dist/{oauth-user-lookup-Bi0ek9eM.mjs → oauth-user-lookup-nyXQ2_6Q.mjs} +0 -0
  342. /package/dist/{options-z8VVg1Ll.mjs → options-BF11H_FD.mjs} +0 -0
  343. /package/dist/{passkey-config-BRSZx4pW.mjs → passkey-config-DZOjt0Hd.mjs} +0 -0
  344. /package/dist/{patterns-K0DLqWir.mjs → patterns-CW4n2PQs.mjs} +0 -0
  345. /package/dist/{placeholder-C2P5fKa4.mjs → placeholder-BJPmhjHP.mjs} +0 -0
  346. /package/dist/{provider-loader-C21b9OpH.mjs → provider-loader-Decn0Ktc.mjs} +0 -0
  347. /package/dist/{public-url-Cun8N3NU.mjs → public-url-5fFLJhjh.mjs} +0 -0
  348. /package/dist/{redirect-COZy-3iY.mjs → redirect-C077gVTf.mjs} +0 -0
  349. /package/dist/{seo-C007Luwn.mjs → seo-DJoop90w.mjs} +0 -0
  350. /package/dist/{seo-contributions-B1fWCnqY.mjs → seo-contributions-CQzUjJKY.mjs} +0 -0
  351. /package/dist/{setup-nonce-BpmLXAuu.mjs → setup-nonce-DN6BHIlP.mjs} +0 -0
  352. /package/dist/{sidecar-client-B1C6Cf80.mjs → sidecar-client-Dta0AELf.mjs} +0 -0
  353. /package/dist/{slugify-PDTDtMXp.mjs → slugify-BzGxlOFx.mjs} +0 -0
  354. /package/dist/{ssrf-DDwRxF6B.mjs → ssrf-BOSGjXxb.mjs} +0 -0
  355. /package/dist/{transaction-x2tJQ-A1.mjs → transaction-qfqpPVpu.mjs} +0 -0
  356. /package/dist/{transport-D3i4yWRE.mjs → transport-B3jxvfio.mjs} +0 -0
  357. /package/dist/{transport-BXe1AM79.d.mts → transport-CyOHECBA.d.mts} +0 -0
  358. /package/dist/{trusted-proxy-BbaZfkT9.mjs → trusted-proxy-8N8sX1D1.mjs} +0 -0
  359. /package/dist/{types-DJlpx5Ay.d.mts → types-6N-00csp.d.mts} +0 -0
  360. /package/dist/{types-BFmjniC2.d.mts → types-B45uSz1j.d.mts} +0 -0
  361. /package/dist/{types-B7kpsMJ3.d.mts → types-BDm7Ipoq.d.mts} +0 -0
  362. /package/dist/{types-0Vr68fc2.d.mts → types-BeYn-Yf0.d.mts} +0 -0
  363. /package/dist/{types-OPs5Q_sX.d.mts → types-D_wGrwiY.d.mts} +0 -0
  364. /package/dist/{types-DL7Y8D_t.mjs → types-Dz2EKzsX.mjs} +0 -0
  365. /package/dist/{types-fAInWQDO.mjs → types-iNqHe2-V.mjs} +0 -0
  366. /package/dist/{url-DNjT2abR.mjs → url-DOS4RGym.mjs} +0 -0
package/README.md CHANGED
@@ -54,6 +54,28 @@ Or add to an existing Astro project:
54
54
  npm install dineway
55
55
  ```
56
56
 
57
+ ## Agent Skills
58
+
59
+ Dineway also publishes an agent skill pack for designing, building, and publishing AI-ready restaurant sites. The skills guide agents through place-data enrichment, restaurant information architecture, visual design, Dineway CMS schema and seed content, media upload, local SEO, and deployment.
60
+
61
+ Install the skill pack with `npx skills`:
62
+
63
+ ```bash
64
+ npx skills add https://github.com/dineway/dineway-skills
65
+ ```
66
+
67
+ For a full restaurant build, invoke the restaurant-site skill with a restaurant name and city:
68
+
69
+ ```text
70
+ Use building-restaurant-site to build an AI-ready Dineway restaurant site for "Restaurant Name" in "City, Country".
71
+ ```
72
+
73
+ For an existing Dineway project, use the CLI skill to manage schema, content, media, generated types, and deployment:
74
+
75
+ ```text
76
+ Use dineway-cli to seed content, generate types, upload media, and deploy this Dineway site.
77
+ ```
78
+
57
79
  ## CLI
58
80
 
59
81
  The Dineway CLI (`dineway`) manages projects and instances. Commands fall into three categories:
@@ -1,4 +1,4 @@
1
- import { t as SiteActivityRepository } from "./site-activity-B8FjLIVh.mjs";
1
+ import { t as SiteActivityRepository } from "./site-activity-lsCX_cqp.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-Cun8N3NU.mjs";
1
+ import { t as getEnvAllowedOrigins } from "./public-url-5fFLJhjh.mjs";
2
2
 
3
3
  //#region src/auth/allowed-origins.ts
4
4
  function getConfiguredAllowedOrigins(config) {
@@ -1,13 +1,13 @@
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-QuuFSlc6.mjs";
2
- import { t as Database } from "../types-DZPw8Rru.mjs";
3
- import { at as StorageCollectionConfig, it as StorageCollection } from "../types-Q616b2Hn.mjs";
4
- import "../types-BFmjniC2.mjs";
5
- import "../runner-BU6Lo1ZS.mjs";
6
- import "../index-EUAWaIxW.mjs";
7
- import "../index-CYfhYgXd.mjs";
8
- import "../bylines-DCvz5gtm.mjs";
9
- import "../types-0Vr68fc2.mjs";
10
- import "../validate-BwmQEbu8.mjs";
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-B5hJAnKF.mjs";
2
+ import { t as Database } from "../types-CYBaBvtm.mjs";
3
+ import { at as StorageCollectionConfig, it as StorageCollection } from "../types-DS5PYew4.mjs";
4
+ import "../types-B45uSz1j.mjs";
5
+ import "../runner-CHR_W79l.mjs";
6
+ import "../index-JzJUzE4o.mjs";
7
+ import "../index-DpMWSamU.mjs";
8
+ import "../bylines--KurdDQK.mjs";
9
+ import "../types-BeYn-Yf0.mjs";
10
+ import "../validate-BQ24E8rK.mjs";
11
11
  import { Kysely } from "kysely";
12
12
 
13
13
  //#region src/api/auth-storage.d.ts
@@ -1,18 +1,18 @@
1
- import "../dialect-helpers-DhTzaUxP.mjs";
2
- import "../content-CyLkb-qH.mjs";
3
- import "../base64-Cz-aU0X1.mjs";
4
- import "../types-Bs6lTBBW.mjs";
5
- import "../media-_7Fxdu45.mjs";
6
- import "../user-CcXq-zoL.mjs";
7
- import { t as OptionsRepository } from "../options-z8VVg1Ll.mjs";
8
- import { r as createStorageAccess } from "../context-CNIkMzot.mjs";
9
- import "../seo-CUQctrog.mjs";
10
- import { n as apiSuccess, r as handleError, t as apiError } from "../error-BMUPwxgx.mjs";
11
- import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-C9106ehs.mjs";
12
- import "../ssrf-DDwRxF6B.mjs";
13
- import "../cron-CKxvBrRT.mjs";
14
- import { n as getPublicOrigin } from "../public-url-Cun8N3NU.mjs";
15
- import { t as finalizeSetup } from "../setup-complete-ChilE-da.mjs";
1
+ import "../dialect-helpers-TkdbkFad.mjs";
2
+ import "../content-DvpMad_N.mjs";
3
+ import "../base64-C1Q9yr0B.mjs";
4
+ import "../types-D1DjBFA9.mjs";
5
+ import "../media-Cg4zc9fq.mjs";
6
+ import "../user-2aI21yV1.mjs";
7
+ import { t as OptionsRepository } from "../options-BF11H_FD.mjs";
8
+ import { r as createStorageAccess } from "../context-CT44ux1O.mjs";
9
+ import "../seo-BPz1KkCq.mjs";
10
+ import { n as apiSuccess, r as handleError, t as apiError } from "../error-Dyf9fGZE.mjs";
11
+ import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-BBfZRZYb.mjs";
12
+ import "../ssrf-BOSGjXxb.mjs";
13
+ import "../cron-fV9baRVc.mjs";
14
+ import { n as getPublicOrigin } from "../public-url-5fFLJhjh.mjs";
15
+ import { t as finalizeSetup } from "../setup-complete-4EiBS1E5.mjs";
16
16
 
17
17
  //#region src/api/auth-storage.ts
18
18
  /**
@@ -1,3 +1,3 @@
1
- import { $ as updateSectionBody, $n as httpUrl, $t as publicCommentSchema, A as userDetailSchema, An as contentCompareResponseSchema, At as passkeyVerifyBody, B as wpRewriteUrlsBody, Bn as contentSeoSchema, Bt as contextEntryListQuery, C as updateWidgetBody, Cn as mediaListQuery, Ct as inviteCreateBody, D as widgetSchema, Dn as mediaUpdateBody, Dt as passkeyRegisterOptionsBody, E as widgetAreaWithWidgetsSchema, En as mediaResponseSchema, Et as passkeyOptionsBody, F as importProbeBody, Fn as contentPreviewUrlBody, Ft as hitlRequestListQuery, G as searchResultSchema, Gn as contentUpdateBody, Gt as commentBulkBody, H as searchQuery, Hn as contentTranslationSchema, Ht as contextEntryStaleQuery, I as wpMediaImportBody, In as contentPublishBody, It as hitlRequestResolveBody, J as siteSettingsSchema, Jn as VALID_ROLE_LEVELS, Jt as commentListQuery, K as searchSuggestQuery, Kn as trashedContentItemSchema, Kt as commentBulkResponseSchema, L as wpPluginAnalyzeBody, Ln as contentResponseSchema, Lt as siteBriefingQuery, M as userSchema, Mn as contentItemSchema, Mt as signupRequestBody, N as userUpdateBody, Nn as contentListQuery, Nt as reviewRequestListQuery, O as allowedDomainCreateBody, On as mediaUploadUrlBody, Ot as passkeyRegisterVerifyBody, P as usersListQuery, Pn as contentListResponseSchema, Pt as reviewRequestResolveBody, Q as sectionsListQuery, Qn as deleteResponseSchema, Qt as publicCommentListResponseSchema, R as wpPluginExecuteBody, Rn as contentScheduleBody, Rt as contextEntryCreateBody, S as reorderWidgetsBody, Sn as mediaItemSchema, St as inviteCompleteBody, T as widgetAreaWithWidgetsAndCountSchema, Tn as mediaProviderListQuery, Tt as magicLinkSendBody, U as searchRebuildBody, Un as contentTranslationsResponseSchema, Ut as contextEntrySupersedeBody, V as searchEnableBody, Vn as contentTermsBody, Vt as contextEntryReviewBody, W as searchResponseSchema, Wn as contentTrashQuery, Wt as adminCommentListResponseSchema, X as sectionListResponseSchema, Xn as countResponseSchema, Xt as commentStatusBody, Y as createSectionBody, Yn as apiErrorSchema, Yt as commentSchema, Z as sectionSchema, Zn as cursorPaginationQuery, Zt as createCommentBody, _ as redirectSchema, _n as DEFAULT_MAX_UPLOAD_SIZE, _t as menuWithItemsSchema, a as bylineUpdateBody, an as createCollectionBody, at as termListResponseSchema, b as createWidgetAreaBody, bn as mediaConfirmResponseSchema, bt as updateMenuItemBody, c as createRedirectBody, cn as fieldReorderBody, ct as termWithCountSchema, d as notFoundListResponseSchema, dn as orphanRegisterBody, dt as createMenuItemBody, en as collectionGetQuery, er as localeCode, et as createTaxonomyDefBody, f as notFoundPruneBody, fn as orphanedTableListResponseSchema, ft as menuItemDeleteQuery, g as redirectListResponseSchema, gn as updateFieldBody, gt as menuSchema, h as notFoundSummarySchema, hn as updateCollectionBody, ht as menuListItemSchema, i as bylineSummarySchema, in as collectionWithFieldsResponseSchema, ir as successEnvelope, it as termGetResponseSchema, j as userListResponseSchema, jn as contentCreateBody, jt as signupCompleteBody, k as allowedDomainUpdateBody, kn as mediaUploadUrlResponseSchema, kt as passkeyRenameBody, l as notFoundEntrySchema, ln as fieldResponseSchema, lt as updateTermBody, m as notFoundSummaryResponseSchema, mn as schemaExportQuery, mt as menuItemUpdateQuery, n as bylineCreditSchema, nn as collectionResponseSchema, nr as roleLevel, nt as taxonomyDefSchema, o as bylinesListQuery, on as createFieldBody, ot as termResponseSchema, p as notFoundSummaryQuery, pn as orphanedTableSchema, pt as menuItemSchema, q as settingsUpdateBody, qn as trashedContentListResponseSchema, qt as commentCountsResponseSchema, r as bylineListResponseSchema, rn as collectionSchema, rr as slugPattern, rt as taxonomyListResponseSchema, s as contentBylineInputSchema, sn as fieldListResponseSchema, st as termSchema, t as bylineCreateBody, tn as collectionListResponseSchema, tr as offsetPaginationQuery, tt as createTermBody, u as notFoundListQuery, un as fieldSchema, ut as createMenuBody, v as redirectsListQuery, vn as formatFileSize, vt as reorderMenuItemsBody, w as widgetAreaSchema, wn as mediaListResponseSchema, wt as inviteRegisterOptionsBody, x as createWidgetBody, xn as mediaExistingResponseSchema, xt as authMeActionBody, y as updateRedirectBody, yn as mediaConfirmBody, yt as updateMenuBody, z as wpPrepareBody, zn as contentSeoInput, zt as contextEntryDiffQuery } from "../../bylines-DCvz5gtm.mjs";
1
+ import { $ as updateSectionBody, $n as countResponseSchema, $t as commentStatusBody, A as userDetailSchema, An as mediaUpdateBody, At as passkeyRegisterOptionsBody, B as wpRewriteUrlsBody, Bn as contentResponseSchema, Bt as siteBriefingQuery, C as updateWidgetBody, Cn as mediaConfirmResponseSchema, Ct as updateMenuItemBody, D as widgetSchema, Dn as mediaListResponseSchema, Dt as inviteRegisterOptionsBody, E as widgetAreaWithWidgetsSchema, En as mediaListQuery, Et as inviteCreateBody, F as importProbeBody, Fn as contentItemSchema, Ft as signupRequestBody, G as searchResultSchema, Gn as contentTranslationSchema, Gt as contextEntryStaleQuery, H as searchQuery, Hn as contentSeoInput, Ht as contextEntryDiffQuery, I as wpMediaImportBody, In as contentListQuery, It as reviewRequestListQuery, J as siteSettingsSchema, Jn as contentUpdateBody, Jt as commentBulkBody, K as searchSuggestQuery, Kn as contentTranslationsResponseSchema, Kt as contextEntrySupersedeBody, L as wpPluginAnalyzeBody, Ln as contentListResponseSchema, Lt as reviewRequestResolveBody, M as userSchema, Mn as mediaUploadUrlResponseSchema, Mt as passkeyRenameBody, N as userUpdateBody, Nn as contentCompareResponseSchema, Nt as passkeyVerifyBody, O as allowedDomainCreateBody, On as mediaProviderListQuery, Ot as magicLinkSendBody, P as usersListQuery, Pn as contentCreateBody, Pt as signupCompleteBody, Q as sectionsListQuery, Qn as apiErrorSchema, Qt as commentSchema, R as wpPluginExecuteBody, Rn as contentPreviewUrlBody, Rt as hitlRequestListQuery, S as reorderWidgetsBody, Sn as mediaConfirmBody, St as updateMenuBody, T as widgetAreaWithWidgetsAndCountSchema, Tn as mediaItemSchema, Tt as inviteCompleteBody, U as searchRebuildBody, Un as contentSeoSchema, Ut as contextEntryListQuery, V as searchEnableBody, Vn as contentScheduleBody, Vt as contextEntryCreateBody, W as searchResponseSchema, Wn as contentTermsBody, Wt as contextEntryReviewBody, X as sectionListResponseSchema, Xn as trashedContentListResponseSchema, Xt as commentCountsResponseSchema, Y as createSectionBody, Yn as trashedContentItemSchema, Yt as commentBulkResponseSchema, Z as sectionSchema, Zn as VALID_ROLE_LEVELS, Zt as commentListQuery, _ as redirectSchema, _n as schemaExportQuery, _t as menuListItemSchema, a as bylineUpdateBody, an as collectionResponseSchema, ar as offsetPaginationQuery, at as termGetResponseSchema, b as createWidgetAreaBody, bn as DEFAULT_MAX_UPLOAD_SIZE, bt as menuWithItemsSchema, c as createRedirectBody, cn as createCollectionBody, cr as successEnvelope, ct as termSchema, d as notFoundListResponseSchema, dn as fieldReorderBody, dt as updateTermBody, en as createCommentBody, er as cursorPaginationQuery, et as createTaxonomyDefBody, f as notFoundPruneBody, fn as fieldResponseSchema, ft as createMenuBody, g as redirectListResponseSchema, gn as orphanedTableSchema, gt as menuItemUpdateQuery, h as notFoundSummarySchema, hn as orphanedTableListResponseSchema, ht as menuItemSchema, i as bylineSummarySchema, in as collectionListResponseSchema, ir as localeFilterQuery, it as taxonomyListResponseSchema, j as userListResponseSchema, jn as mediaUploadUrlBody, jt as passkeyRegisterVerifyBody, k as allowedDomainUpdateBody, kn as mediaResponseSchema, kt as passkeyOptionsBody, l as notFoundEntrySchema, ln as createFieldBody, lt as termTranslationsSchema, m as notFoundSummaryResponseSchema, mn as orphanRegisterBody, mt as menuItemDeleteQuery, n as bylineCreditSchema, nn as publicCommentSchema, nr as httpUrl, nt as taxonomyDefSchema, o as bylinesListQuery, on as collectionSchema, or as roleLevel, ot as termListResponseSchema, p as notFoundSummaryQuery, pn as fieldSchema, pt as createMenuItemBody, q as settingsUpdateBody, qn as contentTrashQuery, qt as adminCommentListResponseSchema, r as bylineListResponseSchema, rn as collectionGetQuery, rr as localeCode, rt as taxonomyDefTranslationsSchema, s as contentBylineInputSchema, sn as collectionWithFieldsResponseSchema, sr as slugPattern, st as termResponseSchema, t as bylineCreateBody, tn as publicCommentListResponseSchema, tr as deleteResponseSchema, tt as createTermBody, u as notFoundListQuery, un as fieldListResponseSchema, ut as termWithCountSchema, v as redirectsListQuery, vn as updateCollectionBody, vt as menuSchema, w as widgetAreaSchema, wn as mediaExistingResponseSchema, wt as authMeActionBody, x as createWidgetBody, xn as formatFileSize, xt as reorderMenuItemsBody, y as updateRedirectBody, yn as updateFieldBody, yt as menuTranslationsSchema, z as wpPrepareBody, zn as contentPublishBody, zt as hitlRequestResolveBody } from "../../bylines--KurdDQK.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, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemDeleteQuery, menuItemSchema, menuItemUpdateQuery, menuListItemSchema, menuSchema, 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, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, 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, 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, menuItemDeleteQuery, menuItemSchema, menuItemUpdateQuery, 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-C-LwdAxx.mjs";
2
- import { $ as menuItemDeleteQuery, $t as contentPreviewUrlBody, A as searchRebuildBody, At as orphanedTableListResponseSchema, B as updateSectionBody, Bt as mediaItemSchema, C as userDetailSchema, Cn as deleteResponseSchema, Ct as createCollectionBody, D as usersListQuery, Dn as roleLevel, Dt as fieldResponseSchema, E as userUpdateBody, En as offsetPaginationQuery, Et as fieldReorderBody, F as siteSettingsSchema, Ft as DEFAULT_MAX_UPLOAD_SIZE, G as termGetResponseSchema, Gt as mediaUpdateBody, H as createTermBody, Ht as mediaListResponseSchema, I as createSectionBody, It as formatFileSize, J as termSchema, Jt as contentCompareResponseSchema, K as termListResponseSchema, Kt as mediaUploadUrlBody, L as sectionListResponseSchema, Lt as mediaConfirmBody, M as searchResultSchema, Mt as schemaExportQuery, N as searchSuggestQuery, Nt as updateCollectionBody, O as searchEnableBody, On as slugPattern, Ot as fieldSchema, P as settingsUpdateBody, Pt as updateFieldBody, Q as createMenuItemBody, Qt as contentListResponseSchema, R as sectionSchema, Rt as mediaConfirmResponseSchema, S as allowedDomainUpdateBody, Sn as cursorPaginationQuery, St as collectionWithFieldsResponseSchema, T as userSchema, Tn as localeCode, Tt as fieldListResponseSchema, U as taxonomyDefSchema, Ut as mediaProviderListQuery, V as createTaxonomyDefBody, Vt as mediaListQuery, W as taxonomyListResponseSchema, Wt as mediaResponseSchema, X as updateTermBody, Xt as contentItemSchema, Y as termWithCountSchema, Yt as contentCreateBody, Z as createMenuBody, Zt as contentListQuery, _ as widgetAreaSchema, _n as bylinesListQuery, _t as publicCommentSchema, a as notFoundPruneBody, an as contentTermsBody, at as reorderMenuItemsBody, b as widgetSchema, bn as apiErrorSchema, bt as collectionResponseSchema, c as notFoundSummarySchema, cn as contentTrashQuery, ct as adminCommentListResponseSchema, d as redirectsListQuery, dn as trashedContentListResponseSchema, dt as commentCountsResponseSchema, en as contentPublishBody, et as menuItemSchema, f as updateRedirectBody, fn as bylineCreateBody, ft as commentListQuery, g as updateWidgetBody, gn as bylineUpdateBody, gt as publicCommentListResponseSchema, h as reorderWidgetsBody, hn as bylineSummarySchema, ht as createCommentBody, i as notFoundListResponseSchema, in as contentSeoSchema, it as menuWithItemsSchema, j as searchResponseSchema, jt as orphanedTableSchema, k as searchQuery, kn as successEnvelope, kt as orphanRegisterBody, l as redirectListResponseSchema, ln as contentUpdateBody, lt as commentBulkBody, m as createWidgetBody, mn as bylineListResponseSchema, mt as commentStatusBody, n as notFoundEntrySchema, nn as contentScheduleBody, nt as menuListItemSchema, o as notFoundSummaryQuery, on as contentTranslationSchema, ot as updateMenuBody, p as createWidgetAreaBody, pn as bylineCreditSchema, pt as commentSchema, q as termResponseSchema, qt as mediaUploadUrlResponseSchema, r as notFoundListQuery, rn as contentSeoInput, rt as menuSchema, s as notFoundSummaryResponseSchema, sn as contentTranslationsResponseSchema, st as updateMenuItemBody, t as createRedirectBody, tn as contentResponseSchema, tt as menuItemUpdateQuery, u as redirectSchema, un as trashedContentItemSchema, ut as commentBulkResponseSchema, v as widgetAreaWithWidgetsAndCountSchema, vn as contentBylineInputSchema, vt as collectionGetQuery, w as userListResponseSchema, wn as httpUrl, wt as createFieldBody, x as allowedDomainCreateBody, xn as countResponseSchema, xt as collectionSchema, y as widgetAreaWithWidgetsSchema, yn as VALID_ROLE_LEVELS, yt as collectionListResponseSchema, z as sectionsListQuery, zt as mediaExistingResponseSchema } from "../../redirects-lrlmYXVE.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-CNcKWTbp.mjs";
1
+ import "../../context-types-DuiyY6xF.mjs";
2
+ import { $ as createMenuBody, $t as contentItemSchema, A as searchRebuildBody, An as offsetPaginationQuery, At as fieldResponseSchema, B as updateSectionBody, Bt as mediaConfirmBody, C as userDetailSchema, Cn as apiErrorSchema, Ct as collectionResponseSchema, D as usersListQuery, Dn as httpUrl, Dt as createFieldBody, E as userUpdateBody, En as deleteResponseSchema, Et as createCollectionBody, F as siteSettingsSchema, Ft as schemaExportQuery, G as taxonomyListResponseSchema, Gt as mediaListResponseSchema, H as createTermBody, Ht as mediaExistingResponseSchema, I as createSectionBody, It as updateCollectionBody, J as termResponseSchema, Jt as mediaUpdateBody, K as termGetResponseSchema, Kt as mediaProviderListQuery, L as sectionListResponseSchema, Lt as updateFieldBody, M as searchResultSchema, Mn as slugPattern, Mt as orphanRegisterBody, N as searchSuggestQuery, Nn as successEnvelope, Nt as orphanedTableListResponseSchema, O as searchEnableBody, On as localeCode, Ot as fieldListResponseSchema, P as settingsUpdateBody, Pt as orphanedTableSchema, Q as updateTermBody, Qt as contentCreateBody, R as sectionSchema, Rt as DEFAULT_MAX_UPLOAD_SIZE, S as allowedDomainUpdateBody, Sn as VALID_ROLE_LEVELS, St as collectionListResponseSchema, T as userSchema, Tn as cursorPaginationQuery, Tt as collectionWithFieldsResponseSchema, U as taxonomyDefSchema, Ut as mediaItemSchema, V as createTaxonomyDefBody, Vt as mediaConfirmResponseSchema, W as taxonomyDefTranslationsSchema, Wt as mediaListQuery, X as termTranslationsSchema, Xt as mediaUploadUrlResponseSchema, Y as termSchema, Yt as mediaUploadUrlBody, Z as termWithCountSchema, Zt as contentCompareResponseSchema, _ as widgetAreaSchema, _n as bylineListResponseSchema, _t as commentStatusBody, a as notFoundPruneBody, an as contentScheduleBody, at as menuSchema, b as widgetSchema, bn as bylinesListQuery, bt as publicCommentSchema, c as notFoundSummarySchema, cn as contentTermsBody, ct as reorderMenuItemsBody, d as redirectsListQuery, dn as contentTrashQuery, dt as adminCommentListResponseSchema, en as contentListQuery, et as createMenuItemBody, f as updateRedirectBody, fn as contentUpdateBody, ft as commentBulkBody, g as updateWidgetBody, gn as bylineCreditSchema, gt as commentSchema, h as reorderWidgetsBody, hn as bylineCreateBody, ht as commentListQuery, i as notFoundListResponseSchema, in as contentResponseSchema, it as menuListItemSchema, j as searchResponseSchema, jn as roleLevel, jt as fieldSchema, k as searchQuery, kn as localeFilterQuery, kt as fieldReorderBody, l as redirectListResponseSchema, ln as contentTranslationSchema, lt as updateMenuBody, m as createWidgetBody, mn as trashedContentListResponseSchema, mt as commentCountsResponseSchema, n as notFoundEntrySchema, nn as contentPreviewUrlBody, nt as menuItemSchema, o as notFoundSummaryQuery, on as contentSeoInput, ot as menuTranslationsSchema, p as createWidgetAreaBody, pn as trashedContentItemSchema, pt as commentBulkResponseSchema, q as termListResponseSchema, qt as mediaResponseSchema, r as notFoundListQuery, rn as contentPublishBody, rt as menuItemUpdateQuery, s as notFoundSummaryResponseSchema, sn as contentSeoSchema, st as menuWithItemsSchema, t as createRedirectBody, tn as contentListResponseSchema, tt as menuItemDeleteQuery, u as redirectSchema, un as contentTranslationsResponseSchema, ut as updateMenuItemBody, v as widgetAreaWithWidgetsAndCountSchema, vn as bylineSummarySchema, vt as createCommentBody, w as userListResponseSchema, wn as countResponseSchema, wt as collectionSchema, x as allowedDomainCreateBody, xn as contentBylineInputSchema, xt as collectionGetQuery, y as widgetAreaWithWidgetsSchema, yn as bylineUpdateBody, yt as publicCommentListResponseSchema, z as sectionsListQuery, zt as formatFileSize } from "../../redirects-xVDvj_yQ.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-DE2ziezs.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, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemDeleteQuery, menuItemSchema, menuItemUpdateQuery, menuListItemSchema, menuSchema, 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, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, 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, 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, menuItemDeleteQuery, menuItemSchema, menuItemUpdateQuery, 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,21 +1,24 @@
1
1
  import { r as validatePluginIdentifier, t as validateIdentifier } from "./validate-VPnKoIzW.mjs";
2
- import { r as RevisionRepository, t as ContentRepository } from "./content-CyLkb-qH.mjs";
3
- import { r as encodeBase64, t as decodeBase64 } from "./base64-Cz-aU0X1.mjs";
4
- import { t as DinewayValidationError } from "./types-Bs6lTBBW.mjs";
5
- import { t as MediaRepository } from "./media-_7Fxdu45.mjs";
6
- import { t as CommentRepository } from "./comment-DFO-gWDH.mjs";
7
- import { t as withTransaction } from "./transaction-x2tJQ-A1.mjs";
8
- import { t as RedirectRepository } from "./redirect-CGl64yOX.mjs";
9
- import { t as BylineRepository } from "./byline-naZxOPSa.mjs";
10
- import { t as SeoRepository } from "./seo-CUQctrog.mjs";
11
- import { r as isI18nEnabled } from "./config-CAMFxGaV.mjs";
12
- import { i as invalidateRedirectCache } from "./cache-DEbQ13c9.mjs";
13
- import { u as PluginStateRepository } from "./briefing-MVYe_Uyf.mjs";
14
- import { n as SchemaRegistry, t as SchemaError } from "./registry-C-_hxLqa.mjs";
15
- import { n as hashString } from "./hash-CDX7M0ze.mjs";
16
- import { n as VERSION, t as COMMIT } from "./version-DzWaHle7.mjs";
17
- import { i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-CgFJAp0H.mjs";
18
- import { t as DinewayStorageError } from "./types-fAInWQDO.mjs";
2
+ import { r as isI18nEnabled } from "./config-XW5tMrH8.mjs";
3
+ import { r as RevisionRepository, t as ContentRepository } from "./content-DvpMad_N.mjs";
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";
8
+ import { t as withTransaction } from "./transaction-qfqpPVpu.mjs";
9
+ import { t as RedirectRepository } from "./redirect-BHo9--Jz.mjs";
10
+ import { n as chunks, t as SQL_BATCH_SIZE } from "./chunks-vkrCT4Ta.mjs";
11
+ import { t as BylineRepository } from "./byline-BxAf79s1.mjs";
12
+ import { t as SeoRepository } from "./seo-BPz1KkCq.mjs";
13
+ import { i as invalidateRedirectCache } from "./cache-inQvbrP5.mjs";
14
+ import { r as parseAllowedMimeTypes, t as matchesMimeAllowlist } from "./mime-DJOFDGux.mjs";
15
+ import { n as requestCached } from "./request-cache-DmVyQUBh.mjs";
16
+ import { u as PluginStateRepository } from "./briefing-4k6R0KAr.mjs";
17
+ import { n as SchemaRegistry, t as SchemaError } from "./registry-DumDzFDn.mjs";
18
+ import { n as hashString } from "./hash-V8oZo1W2.mjs";
19
+ import { n as VERSION, t as COMMIT } from "./version-CjsyxeBD.mjs";
20
+ import { i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-CU0XL_ZK.mjs";
21
+ import { t as DinewayStorageError } from "./types-iNqHe2-V.mjs";
19
22
  import { sql } from "kysely";
20
23
  import { createGzipDecoder, unpackTar } from "modern-tar";
21
24
 
@@ -64,6 +67,76 @@ function validateRev(rev, item) {
64
67
  return { valid: true };
65
68
  }
66
69
 
70
+ //#endregion
71
+ //#region src/api/handlers/validate-media-fields.ts
72
+ function asMediaRef(value) {
73
+ if (value === null || value === void 0) return null;
74
+ if (typeof value !== "object" || Array.isArray(value)) return null;
75
+ return value;
76
+ }
77
+ function fail(message) {
78
+ return {
79
+ success: false,
80
+ error: {
81
+ code: "INVALID_MIME_FOR_FIELD",
82
+ message
83
+ }
84
+ };
85
+ }
86
+ async function loadMediaFieldsForCollection(db, collectionSlug) {
87
+ const rows = await db.selectFrom("_dineway_fields").innerJoin("_dineway_collections", "_dineway_collections.id", "_dineway_fields.collection_id").select(["_dineway_fields.slug", "_dineway_fields.validation"]).where("_dineway_collections.slug", "=", collectionSlug).where("_dineway_fields.type", "in", ["file", "image"]).execute();
88
+ const out = [];
89
+ for (const row of rows) {
90
+ const list = parseAllowedMimeTypes(row.validation);
91
+ if (!list) continue;
92
+ out.push({
93
+ slug: row.slug,
94
+ allowedMimeTypes: list
95
+ });
96
+ }
97
+ return out;
98
+ }
99
+ async function validateMediaFields(db, collectionSlug, data) {
100
+ const fields = await requestCached(`mediaFields:${collectionSlug}`, () => loadMediaFieldsForCollection(db, collectionSlug));
101
+ if (fields.length === 0) return {
102
+ success: true,
103
+ data: true
104
+ };
105
+ const localIds = /* @__PURE__ */ new Set();
106
+ for (const field of fields) {
107
+ const ref = asMediaRef(data[field.slug]);
108
+ if (!ref) continue;
109
+ if ((typeof ref.provider === "string" ? ref.provider : "local") === "local" && typeof ref.id === "string") localIds.add(ref.id);
110
+ }
111
+ const mimeById = /* @__PURE__ */ new Map();
112
+ const idList = [...localIds];
113
+ if (idList.length > 0) for (const batch of chunks(idList, SQL_BATCH_SIZE)) {
114
+ const rows = await db.selectFrom("media").select(["id", "mime_type"]).where("id", "in", batch).execute();
115
+ for (const row of rows) mimeById.set(row.id, row.mime_type);
116
+ }
117
+ for (const field of fields) {
118
+ const value = data[field.slug];
119
+ if (value === null || value === void 0) continue;
120
+ const ref = asMediaRef(value);
121
+ if (!ref) continue;
122
+ const provider = typeof ref.provider === "string" ? ref.provider : "local";
123
+ let mime;
124
+ if (provider === "local") {
125
+ if (typeof ref.id !== "string") return fail(`Field '${field.slug}' references media with an invalid id`);
126
+ mime = mimeById.get(ref.id);
127
+ if (!mime) return fail(`Field '${field.slug}' references media with unknown MIME type`);
128
+ } else {
129
+ if (typeof ref.mimeType !== "string") return fail(`Field '${field.slug}' requires a mimeType declaration for non-local media`);
130
+ mime = ref.mimeType;
131
+ }
132
+ if (!matchesMimeAllowlist(mime, field.allowedMimeTypes)) return fail(`Field '${field.slug}' does not accept ${mime}`);
133
+ }
134
+ return {
135
+ success: true,
136
+ data: true
137
+ };
138
+ }
139
+
67
140
  //#endregion
68
141
  //#region src/api/handlers/content.ts
69
142
  /**
@@ -317,6 +390,8 @@ async function handleContentCreate(db, collection, body) {
317
390
  message: `Collection "${collection}" does not have SEO enabled. Remove the seo field or enable SEO on this collection.`
318
391
  }
319
392
  };
393
+ const mimeCheck = await validateMediaFields(db, collection, body.data);
394
+ if (!mimeCheck.success) return mimeCheck;
320
395
  const item = await withTransaction(db, async (trx) => {
321
396
  const repo = new ContentRepository(trx);
322
397
  const bylineRepo = new BylineRepository(trx);
@@ -380,6 +455,10 @@ async function handleContentUpdate(db, collection, id, body) {
380
455
  message: `Collection "${collection}" does not have SEO enabled. Remove the seo field or enable SEO on this collection.`
381
456
  }
382
457
  };
458
+ if (body.data) {
459
+ const mimeCheck = await validateMediaFields(db, collection, body.data);
460
+ if (!mimeCheck.success) return mimeCheck;
461
+ }
383
462
  const resolvedId = await resolveId(new ContentRepository(db), collection, id) ?? id;
384
463
  const item = await withTransaction(db, async (trx) => {
385
464
  const trxRepo = new ContentRepository(trx);
@@ -1,4 +1,4 @@
1
- import { a as hashApiToken, r as generatePrefixedToken } from "./api-tokens-CPjC3zf8.mjs";
1
+ import { a as hashApiToken, r as generatePrefixedToken } from "./api-tokens-B7fvbHM2.mjs";
2
2
  import { ulid } from "ulidx";
3
3
 
4
4
  //#region src/api/handlers/api-tokens.ts