emdash 1.0.1 → 1.1.0

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 (1267) hide show
  1. package/dist/action-token-AgOs1UWD.mjs +26 -0
  2. package/dist/action-token-AgOs1UWD.mjs.map +1 -0
  3. package/dist/activation-xomsCMJg.mjs +387 -0
  4. package/dist/activation-xomsCMJg.mjs.map +1 -0
  5. package/dist/adapters-DM1oyHIN.d.mts +173 -0
  6. package/dist/adapters-DM1oyHIN.d.mts.map +1 -0
  7. package/dist/allowed-origins-CFtudhyw.mjs +116 -0
  8. package/dist/allowed-origins-CFtudhyw.mjs.map +1 -0
  9. package/dist/api/route-utils.d.mts +4 -4
  10. package/dist/api/route-utils.mjs +48 -47
  11. package/dist/api/route-utils.mjs.map +1 -1
  12. package/dist/api/schemas/index.d.mts +2 -2
  13. package/dist/api/schemas/index.mjs +10 -10
  14. package/dist/api-CltsXhiX.mjs +4980 -0
  15. package/dist/api-CltsXhiX.mjs.map +1 -0
  16. package/dist/api-tokens-P3mAaQgr.mjs +166 -0
  17. package/dist/api-tokens-P3mAaQgr.mjs.map +1 -0
  18. package/dist/apply-Q7uvzBWW.mjs +1680 -0
  19. package/dist/apply-Q7uvzBWW.mjs.map +1 -0
  20. package/dist/approvals-DycwI6lZ.mjs +460 -0
  21. package/dist/approvals-DycwI6lZ.mjs.map +1 -0
  22. package/dist/artifact-fetch-CWxyELVI.mjs +659 -0
  23. package/dist/artifact-fetch-CWxyELVI.mjs.map +1 -0
  24. package/dist/artifacts-UzWbysb8.mjs +307 -0
  25. package/dist/artifacts-UzWbysb8.mjs.map +1 -0
  26. package/dist/astro/index.d.mts +14 -14
  27. package/dist/astro/index.d.mts.map +1 -1
  28. package/dist/astro/index.mjs +38 -12
  29. package/dist/astro/index.mjs.map +1 -1
  30. package/dist/astro/middleware/auth.d.mts +12 -12
  31. package/dist/astro/middleware/auth.mjs +12 -11
  32. package/dist/astro/middleware/auth.mjs.map +1 -1
  33. package/dist/astro/middleware/media-usage-write-fence.mjs +6 -6
  34. package/dist/astro/middleware/redirect.d.mts.map +1 -1
  35. package/dist/astro/middleware/redirect.mjs +9 -22
  36. package/dist/astro/middleware/redirect.mjs.map +1 -1
  37. package/dist/astro/middleware/request-context.d.mts.map +1 -1
  38. package/dist/astro/middleware/request-context.mjs +33 -21
  39. package/dist/astro/middleware/request-context.mjs.map +1 -1
  40. package/dist/astro/middleware/setup.mjs +1 -1
  41. package/dist/astro/middleware.d.mts +12 -12
  42. package/dist/astro/middleware.d.mts.map +1 -1
  43. package/dist/astro/middleware.mjs +203 -120
  44. package/dist/astro/middleware.mjs.map +1 -1
  45. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +15 -15
  46. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +15 -15
  47. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +7 -7
  48. package/dist/astro/routes/api/admin/api-tokens/index.mjs +8 -8
  49. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +7 -7
  50. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +17 -17
  51. package/dist/astro/routes/api/admin/byline-fields/index.mjs +17 -17
  52. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +17 -17
  53. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +22 -22
  54. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +22 -23
  55. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
  56. package/dist/astro/routes/api/admin/bylines/index.mjs +23 -23
  57. package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
  58. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +19 -19
  59. package/dist/astro/routes/api/admin/comments/_id_.mjs +8 -8
  60. package/dist/astro/routes/api/admin/comments/bulk.mjs +18 -18
  61. package/dist/astro/routes/api/admin/comments/counts.mjs +8 -8
  62. package/dist/astro/routes/api/admin/comments/index.mjs +18 -18
  63. package/dist/astro/routes/api/admin/core-update.mjs +8 -8
  64. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +7 -7
  65. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +6 -6
  66. package/dist/astro/routes/api/admin/media-usage/activation.mjs +21 -21
  67. package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +22 -22
  68. package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +22 -22
  69. package/dist/astro/routes/api/admin/media-usage/progress.mjs +23 -23
  70. package/dist/astro/routes/api/admin/media-usage/repair.mjs +29 -29
  71. package/dist/astro/routes/api/admin/media-usage/work/index.mjs +22 -22
  72. package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +22 -22
  73. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +7 -7
  74. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +7 -7
  75. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +9 -9
  76. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +9 -9
  77. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +72 -71
  78. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
  79. package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +8 -8
  80. package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +70 -69
  81. package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs.map +1 -1
  82. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +71 -70
  83. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
  84. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +81 -80
  85. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
  86. package/dist/astro/routes/api/admin/plugins/index.mjs +71 -70
  87. package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
  88. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +8 -8
  89. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +70 -69
  90. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
  91. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +80 -79
  92. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
  93. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +70 -69
  94. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
  95. package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +71 -70
  96. package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
  97. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +82 -81
  98. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
  99. package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +10 -10
  100. package/dist/astro/routes/api/admin/plugins/registry/install.mjs +73 -72
  101. package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
  102. package/dist/astro/routes/api/admin/plugins/registry/publisher-handle.mjs +8 -8
  103. package/dist/astro/routes/api/admin/plugins/registry/verify.mjs +71 -70
  104. package/dist/astro/routes/api/admin/plugins/registry/verify.mjs.map +1 -1
  105. package/dist/astro/routes/api/admin/plugins/updates.mjs +70 -69
  106. package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
  107. package/dist/astro/routes/api/admin/scheduled-policy-rejections/_collection_/_id_.mjs +6 -6
  108. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +70 -69
  109. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
  110. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +8 -8
  111. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +70 -69
  112. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
  113. package/dist/astro/routes/api/admin/transfer/_...path_.mjs +5 -5
  114. package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs +39 -39
  115. package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs +39 -39
  116. package/dist/astro/routes/api/admin/transfer/approvals/index.mjs +41 -41
  117. package/dist/astro/routes/api/admin/transfer/capabilities.mjs +41 -41
  118. package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs +41 -41
  119. package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs +42 -42
  120. package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs +42 -42
  121. package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs +41 -41
  122. package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs +42 -42
  123. package/dist/astro/routes/api/admin/transfer/exports/index.mjs +43 -43
  124. package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs +41 -41
  125. package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs +41 -41
  126. package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs +43 -43
  127. package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs +41 -41
  128. package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs +43 -43
  129. package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs +41 -41
  130. package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs +41 -41
  131. package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs +43 -43
  132. package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs +41 -41
  133. package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs +41 -41
  134. package/dist/astro/routes/api/admin/transfer/imports/index.mjs +43 -43
  135. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +5 -5
  136. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +5 -5
  137. package/dist/astro/routes/api/admin/users/_id_/index.mjs +15 -15
  138. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +7 -7
  139. package/dist/astro/routes/api/admin/users/index.mjs +15 -15
  140. package/dist/astro/routes/api/auth/dev-bypass.mjs +7 -7
  141. package/dist/astro/routes/api/auth/invite/accept.mjs +5 -5
  142. package/dist/astro/routes/api/auth/invite/complete.mjs +20 -20
  143. package/dist/astro/routes/api/auth/invite/index.mjs +17 -17
  144. package/dist/astro/routes/api/auth/invite/register-options.mjs +18 -18
  145. package/dist/astro/routes/api/auth/logout.mjs +6 -6
  146. package/dist/astro/routes/api/auth/magic-link/send.mjs +19 -19
  147. package/dist/astro/routes/api/auth/magic-link/verify.mjs +16 -16
  148. package/dist/astro/routes/api/auth/me.mjs +16 -16
  149. package/dist/astro/routes/api/auth/mode.mjs +6 -6
  150. package/dist/astro/routes/api/auth/oauth/_provider_/callback.d.mts.map +1 -1
  151. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +36 -13
  152. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs.map +1 -1
  153. package/dist/astro/routes/api/auth/oauth/_provider_.d.mts.map +1 -1
  154. package/dist/astro/routes/api/auth/oauth/_provider_.mjs +20 -5
  155. package/dist/astro/routes/api/auth/oauth/_provider_.mjs.map +1 -1
  156. package/dist/astro/routes/api/auth/passkey/_id_.mjs +15 -15
  157. package/dist/astro/routes/api/auth/passkey/index.mjs +5 -5
  158. package/dist/astro/routes/api/auth/passkey/options.mjs +20 -20
  159. package/dist/astro/routes/api/auth/passkey/register/options.mjs +18 -18
  160. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +19 -19
  161. package/dist/astro/routes/api/auth/passkey/verify.mjs +20 -20
  162. package/dist/astro/routes/api/auth/signup/complete.mjs +20 -20
  163. package/dist/astro/routes/api/auth/signup/request.mjs +18 -18
  164. package/dist/astro/routes/api/auth/signup/verify.mjs +5 -5
  165. package/dist/astro/routes/api/calendar.d.mts +8 -0
  166. package/dist/astro/routes/api/calendar.d.mts.map +1 -0
  167. package/dist/astro/routes/api/calendar.mjs +204 -0
  168. package/dist/astro/routes/api/calendar.mjs.map +1 -0
  169. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +14 -14
  170. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +20 -20
  171. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +6 -6
  172. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +17 -17
  173. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -6
  174. package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs +17 -17
  175. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +6 -6
  176. package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs +12 -12
  177. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +31 -31
  178. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +17 -17
  179. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +34 -34
  180. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +34 -34
  181. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +6 -6
  182. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +6 -6
  183. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +17 -17
  184. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +24 -24
  185. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +6 -6
  186. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +17 -17
  187. package/dist/astro/routes/api/content/_collection_/_id_.mjs +17 -17
  188. package/dist/astro/routes/api/content/_collection_/authors.mjs +6 -6
  189. package/dist/astro/routes/api/content/_collection_/index.mjs +16 -16
  190. package/dist/astro/routes/api/content/_collection_/trash.mjs +16 -16
  191. package/dist/astro/routes/api/dashboard.mjs +11 -11
  192. package/dist/astro/routes/api/dev/emails.mjs +6 -6
  193. package/dist/astro/routes/api/health.mjs +7 -7
  194. package/dist/astro/routes/api/import/probe.d.mts +3 -3
  195. package/dist/astro/routes/api/import/probe.mjs +24 -24
  196. package/dist/astro/routes/api/import/wordpress/analyze.mjs +6 -6
  197. package/dist/astro/routes/api/import/wordpress/execute.d.mts +13 -13
  198. package/dist/astro/routes/api/import/wordpress/execute.mjs +23 -23
  199. package/dist/astro/routes/api/import/wordpress/media.d.mts +12 -12
  200. package/dist/astro/routes/api/import/wordpress/media.mjs +20 -20
  201. package/dist/astro/routes/api/import/wordpress/prepare.mjs +18 -18
  202. package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +13 -13
  203. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +27 -27
  204. package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
  205. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +24 -24
  206. package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
  207. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +13 -13
  208. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +32 -32
  209. package/dist/astro/routes/api/manifest.mjs +7 -7
  210. package/dist/astro/routes/api/mcp.mjs +94 -94
  211. package/dist/astro/routes/api/mcp.mjs.map +1 -1
  212. package/dist/astro/routes/api/media/_id_/confirm.mjs +19 -19
  213. package/dist/astro/routes/api/media/_id_/replace.mjs +17 -17
  214. package/dist/astro/routes/api/media/_id_/upload.mjs +10 -10
  215. package/dist/astro/routes/api/media/_id_/usage.mjs +31 -31
  216. package/dist/astro/routes/api/media/_id_.mjs +29 -29
  217. package/dist/astro/routes/api/media/asset/_id_/_filename_.mjs +7 -7
  218. package/dist/astro/routes/api/media/file/_...key_.mjs +10 -10
  219. package/dist/astro/routes/api/media/folders/_id_.mjs +17 -17
  220. package/dist/astro/routes/api/media/folders/index.mjs +17 -17
  221. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +6 -6
  222. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +6 -6
  223. package/dist/astro/routes/api/media/providers/index.mjs +6 -6
  224. package/dist/astro/routes/api/media/upload-url.mjs +23 -23
  225. package/dist/astro/routes/api/media/upload-url.mjs.map +1 -1
  226. package/dist/astro/routes/api/media.mjs +37 -36
  227. package/dist/astro/routes/api/media.mjs.map +1 -1
  228. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +18 -18
  229. package/dist/astro/routes/api/menus/_name_/items.mjs +18 -18
  230. package/dist/astro/routes/api/menus/_name_/reorder.mjs +18 -18
  231. package/dist/astro/routes/api/menus/_name_/translations.mjs +18 -18
  232. package/dist/astro/routes/api/menus/_name_.mjs +18 -18
  233. package/dist/astro/routes/api/menus/index.mjs +18 -18
  234. package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
  235. package/dist/astro/routes/api/oauth/device/authorize.mjs +9 -9
  236. package/dist/astro/routes/api/oauth/device/code.mjs +12 -12
  237. package/dist/astro/routes/api/oauth/device/token.mjs +11 -11
  238. package/dist/astro/routes/api/oauth/register.mjs +8 -8
  239. package/dist/astro/routes/api/oauth/token/refresh.mjs +9 -9
  240. package/dist/astro/routes/api/oauth/token/revoke.mjs +9 -9
  241. package/dist/astro/routes/api/oauth/token.mjs +9 -9
  242. package/dist/astro/routes/api/openapi.json.mjs +21 -21
  243. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +12 -12
  244. package/dist/astro/routes/api/redirects/404s/index.mjs +20 -19
  245. package/dist/astro/routes/api/redirects/404s/index.mjs.map +1 -1
  246. package/dist/astro/routes/api/redirects/404s/summary.mjs +20 -19
  247. package/dist/astro/routes/api/redirects/404s/summary.mjs.map +1 -1
  248. package/dist/astro/routes/api/redirects/_id_.mjs +20 -19
  249. package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
  250. package/dist/astro/routes/api/redirects/index.mjs +20 -19
  251. package/dist/astro/routes/api/redirects/index.mjs.map +1 -1
  252. package/dist/astro/routes/api/relations/_id_/index.mjs +34 -34
  253. package/dist/astro/routes/api/relations/index.mjs +34 -34
  254. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +6 -6
  255. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +17 -17
  256. package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs +70 -69
  257. package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs.map +1 -1
  258. package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs +70 -69
  259. package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs.map +1 -1
  260. package/dist/astro/routes/api/schema/block-types/index.mjs +70 -69
  261. package/dist/astro/routes/api/schema/block-types/index.mjs.map +1 -1
  262. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +70 -69
  263. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
  264. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +70 -69
  265. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
  266. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +70 -69
  267. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
  268. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +70 -69
  269. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
  270. package/dist/astro/routes/api/schema/collections/index.mjs +70 -69
  271. package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
  272. package/dist/astro/routes/api/schema/collections/reorder.mjs +70 -69
  273. package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
  274. package/dist/astro/routes/api/schema/index.mjs +16 -16
  275. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +70 -69
  276. package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
  277. package/dist/astro/routes/api/schema/orphans/index.mjs +70 -69
  278. package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
  279. package/dist/astro/routes/api/search/enable.mjs +19 -19
  280. package/dist/astro/routes/api/search/index.mjs +18 -18
  281. package/dist/astro/routes/api/search/rebuild.mjs +19 -19
  282. package/dist/astro/routes/api/search/stats.mjs +9 -9
  283. package/dist/astro/routes/api/search/suggest.mjs +18 -18
  284. package/dist/astro/routes/api/sections/_slug_.mjs +18 -18
  285. package/dist/astro/routes/api/sections/index.mjs +18 -18
  286. package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +8 -8
  287. package/dist/astro/routes/api/settings/backups/archives/index.mjs +8 -8
  288. package/dist/astro/routes/api/settings/backups/export.mjs +8 -8
  289. package/dist/astro/routes/api/settings/backups/index.mjs +9 -9
  290. package/dist/astro/routes/api/settings/email.mjs +7 -7
  291. package/dist/astro/routes/api/settings.mjs +22 -22
  292. package/dist/astro/routes/api/setup/admin-verify.mjs +21 -21
  293. package/dist/astro/routes/api/setup/admin.mjs +19 -19
  294. package/dist/astro/routes/api/setup/dev-bypass.mjs +42 -42
  295. package/dist/astro/routes/api/setup/dev-reset.mjs +5 -5
  296. package/dist/astro/routes/api/setup/index.mjs +54 -49
  297. package/dist/astro/routes/api/setup/index.mjs.map +1 -1
  298. package/dist/astro/routes/api/setup/status.mjs +7 -7
  299. package/dist/astro/routes/api/snapshot.mjs +10 -10
  300. package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +22 -22
  301. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +22 -22
  302. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +22 -22
  303. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +22 -22
  304. package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +21 -21
  305. package/dist/astro/routes/api/taxonomies/_name_.mjs +22 -22
  306. package/dist/astro/routes/api/taxonomies/bulk-tag.mjs +35 -35
  307. package/dist/astro/routes/api/taxonomies/index.mjs +22 -22
  308. package/dist/astro/routes/api/themes/preview.mjs +8 -8
  309. package/dist/astro/routes/api/typegen.mjs +7 -7
  310. package/dist/astro/routes/api/visual-editing/action-token.mjs +8 -8
  311. package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs +20 -20
  312. package/dist/astro/routes/api/visual-editing/toolbar-labels.mjs +5 -5
  313. package/dist/astro/routes/api/well-known/auth.mjs +1 -1
  314. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +2 -2
  315. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +2 -2
  316. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +17 -17
  317. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +19 -19
  318. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +19 -19
  319. package/dist/astro/routes/api/widget-areas/_name_.mjs +9 -9
  320. package/dist/astro/routes/api/widget-areas/index.mjs +19 -19
  321. package/dist/astro/routes/api/widget-components.mjs +6 -6
  322. package/dist/astro/routes/robots.txt.mjs +7 -7
  323. package/dist/astro/routes/sitemap-_collection_.xml.mjs +9 -9
  324. package/dist/astro/routes/sitemap.xml.mjs +8 -8
  325. package/dist/astro/types.d.mts +17 -17
  326. package/dist/audit-CCH3MA4Y.mjs +127 -0
  327. package/dist/audit-CCH3MA4Y.mjs.map +1 -0
  328. package/dist/auth/providers/github.d.mts +1 -1
  329. package/dist/auth/providers/google.d.mts +1 -1
  330. package/dist/auth/providers/microsoft.d.mts +27 -0
  331. package/dist/auth/providers/microsoft.d.mts.map +1 -0
  332. package/dist/auth/providers/microsoft.mjs +20 -0
  333. package/dist/auth/providers/microsoft.mjs.map +1 -0
  334. package/dist/authoritative-records-dSvXCfzb.mjs +5172 -0
  335. package/dist/authoritative-records-dSvXCfzb.mjs.map +1 -0
  336. package/dist/authorize-DeWfk--K.mjs +49 -0
  337. package/dist/authorize-DeWfk--K.mjs.map +1 -0
  338. package/dist/backup-CFnbdTSJ.mjs +246 -0
  339. package/dist/backup-CFnbdTSJ.mjs.map +1 -0
  340. package/dist/base64-BQBZwXCx.mjs +63 -0
  341. package/dist/base64-BQBZwXCx.mjs.map +1 -0
  342. package/dist/block-types-C0YFSfR7.mjs +132 -0
  343. package/dist/block-types-C0YFSfR7.mjs.map +1 -0
  344. package/dist/block-values-H4E0XwE8.mjs +175 -0
  345. package/dist/block-values-H4E0XwE8.mjs.map +1 -0
  346. package/dist/byline-BhVslYLz.mjs +909 -0
  347. package/dist/byline-BhVslYLz.mjs.map +1 -0
  348. package/dist/byline-fields-DHJs0Mja.mjs +280 -0
  349. package/dist/byline-fields-DHJs0Mja.mjs.map +1 -0
  350. package/dist/byline-fields-xdxE9kxZ.mjs +123 -0
  351. package/dist/byline-fields-xdxE9kxZ.mjs.map +1 -0
  352. package/dist/bylines-B_nN9liM.mjs +234 -0
  353. package/dist/bylines-B_nN9liM.mjs.map +1 -0
  354. package/dist/bylines-C71YACkL.mjs +150 -0
  355. package/dist/bylines-C71YACkL.mjs.map +1 -0
  356. package/dist/cache-aTYCL9nK.mjs +133 -0
  357. package/dist/cache-aTYCL9nK.mjs.map +1 -0
  358. package/dist/canonical-Y1dpjCnp.mjs +174 -0
  359. package/dist/canonical-Y1dpjCnp.mjs.map +1 -0
  360. package/dist/capture-triggers-C9JKoIdT.mjs +362 -0
  361. package/dist/capture-triggers-C9JKoIdT.mjs.map +1 -0
  362. package/dist/challenge-store-CxZxPqaw.mjs +51 -0
  363. package/dist/challenge-store-CxZxPqaw.mjs.map +1 -0
  364. package/dist/checksum-DtH6m5uk.mjs +162 -0
  365. package/dist/checksum-DtH6m5uk.mjs.map +1 -0
  366. package/dist/chrome-tags-BIKBMZYO.mjs +24 -0
  367. package/dist/chrome-tags-BIKBMZYO.mjs.map +1 -0
  368. package/dist/chunks-zlGB5IQP.mjs +25 -0
  369. package/dist/chunks-zlGB5IQP.mjs.map +1 -0
  370. package/dist/cli/index.mjs +47 -47
  371. package/dist/client/cf-access.d.mts +1 -1
  372. package/dist/client/index.d.mts +121 -121
  373. package/dist/client/index.mjs +2 -2
  374. package/dist/collection-slugs-cache-B2Gs9Jwx.mjs +85 -0
  375. package/dist/collection-slugs-cache-B2Gs9Jwx.mjs.map +1 -0
  376. package/dist/comment-Bu08Wvr3.mjs +313 -0
  377. package/dist/comment-Bu08Wvr3.mjs.map +1 -0
  378. package/dist/comment-reaction-B8SfT-yM.mjs +85 -0
  379. package/dist/comment-reaction-B8SfT-yM.mjs.map +1 -0
  380. package/dist/comments-BRtp992B.mjs +99 -0
  381. package/dist/comments-BRtp992B.mjs.map +1 -0
  382. package/dist/comments-DVUYqdyC.mjs +195 -0
  383. package/dist/comments-DVUYqdyC.mjs.map +1 -0
  384. package/dist/components-CQY-Sgm-.mjs +108 -0
  385. package/dist/components-CQY-Sgm-.mjs.map +1 -0
  386. package/dist/config-B-uePMLj.d.mts +39 -0
  387. package/dist/config-B-uePMLj.d.mts.map +1 -0
  388. package/dist/config-B6BDSsz2.d.mts +6712 -0
  389. package/dist/config-B6BDSsz2.d.mts.map +1 -0
  390. package/dist/config-BsJHiQxC.mjs +228 -0
  391. package/dist/config-BsJHiQxC.mjs.map +1 -0
  392. package/dist/connection-B9pIasFd.mjs +36 -0
  393. package/dist/connection-B9pIasFd.mjs.map +1 -0
  394. package/dist/content-Dji9vEiW.mjs +2063 -0
  395. package/dist/content-Dji9vEiW.mjs.map +1 -0
  396. package/dist/content-list-query-DiNwyKtd.d.mts +26 -0
  397. package/dist/content-list-query-DiNwyKtd.d.mts.map +1 -0
  398. package/dist/content-repair-B7wnbzhN.mjs +442 -0
  399. package/dist/content-repair-B7wnbzhN.mjs.map +1 -0
  400. package/dist/context-Ctcxc8Ia.mjs +2026 -0
  401. package/dist/context-Ctcxc8Ia.mjs.map +1 -0
  402. package/dist/credits-Bu7dlobo.mjs +110 -0
  403. package/dist/credits-Bu7dlobo.mjs.map +1 -0
  404. package/dist/cron-xe5XKqA-.mjs +306 -0
  405. package/dist/cron-xe5XKqA-.mjs.map +1 -0
  406. package/dist/dashboard-B5hVHOtf.mjs +151 -0
  407. package/dist/dashboard-B5hVHOtf.mjs.map +1 -0
  408. package/dist/db/index.d.mts +3 -3
  409. package/dist/db/index.mjs +1 -1
  410. package/dist/db/index.mjs.map +1 -1
  411. package/dist/db/libsql-migrations.d.mts +1 -1
  412. package/dist/db/libsql-migrations.mjs +5 -5
  413. package/dist/db/libsql.d.mts +1 -1
  414. package/dist/db/postgres-migrations.d.mts +1 -1
  415. package/dist/db/postgres-migrations.mjs +4 -4
  416. package/dist/db/postgres.d.mts +1 -1
  417. package/dist/db/sqlite-migrations.d.mts +1 -1
  418. package/dist/db/sqlite-migrations.mjs +4 -4
  419. package/dist/db/sqlite.d.mts +1 -1
  420. package/dist/db/sqlite.mjs +1 -1
  421. package/dist/default-DaoYyFRS.mjs +81 -0
  422. package/dist/default-DaoYyFRS.mjs.map +1 -0
  423. package/dist/deferred-tasks-BYcDx2o_.d.mts +9 -0
  424. package/dist/deferred-tasks-BYcDx2o_.d.mts.map +1 -0
  425. package/dist/dev-typegen-Dtl8AfS6.mjs +29 -0
  426. package/dist/dev-typegen-Dtl8AfS6.mjs.map +1 -0
  427. package/dist/device-flow-Ma5P5d2e.mjs +521 -0
  428. package/dist/device-flow-Ma5P5d2e.mjs.map +1 -0
  429. package/dist/digest-xIpR3o64.mjs +194 -0
  430. package/dist/digest-xIpR3o64.mjs.map +1 -0
  431. package/dist/direct-executor-DMWwCey3.mjs +104 -0
  432. package/dist/direct-executor-DMWwCey3.mjs.map +1 -0
  433. package/dist/email-console-DmqVF5J_.mjs +50 -0
  434. package/dist/email-console-DmqVF5J_.mjs.map +1 -0
  435. package/dist/email-locale-Cc5YSXfJ.mjs +25 -0
  436. package/dist/email-locale-Cc5YSXfJ.mjs.map +1 -0
  437. package/dist/emdash-runtime-BlybX9Ui.mjs +4249 -0
  438. package/dist/emdash-runtime-BlybX9Ui.mjs.map +1 -0
  439. package/dist/enrich-Duu4sV3a.mjs +194 -0
  440. package/dist/enrich-Duu4sV3a.mjs.map +1 -0
  441. package/dist/entry-lock-De1L8qUQ.mjs +163 -0
  442. package/dist/entry-lock-De1L8qUQ.mjs.map +1 -0
  443. package/dist/entry-lock-esmMbgI9.d.mts +4551 -0
  444. package/dist/entry-lock-esmMbgI9.d.mts.map +1 -0
  445. package/dist/entry-lock-sxz2PGAT.mjs +1197 -0
  446. package/dist/entry-lock-sxz2PGAT.mjs.map +1 -0
  447. package/dist/env-types-BkjCtN13.mjs +38 -0
  448. package/dist/env-types-BkjCtN13.mjs.map +1 -0
  449. package/dist/error-B0rgPgsQ.mjs +90 -0
  450. package/dist/error-B0rgPgsQ.mjs.map +1 -0
  451. package/dist/errors-CuHQRiBW.mjs +120 -0
  452. package/dist/errors-CuHQRiBW.mjs.map +1 -0
  453. package/dist/errors-DTE6C3K_.mjs +470 -0
  454. package/dist/errors-DTE6C3K_.mjs.map +1 -0
  455. package/dist/escape-nJW7dR0s.mjs +9 -0
  456. package/dist/escape-nJW7dR0s.mjs.map +1 -0
  457. package/dist/fence-CGw57S4v.mjs +162 -0
  458. package/dist/fence-CGw57S4v.mjs.map +1 -0
  459. package/dist/field-defs-cache-Bw8w499w.mjs +77 -0
  460. package/dist/field-defs-cache-Bw8w499w.mjs.map +1 -0
  461. package/dist/field-map-hn-D-SyH.mjs +83 -0
  462. package/dist/field-map-hn-D-SyH.mjs.map +1 -0
  463. package/dist/fts-manager-DacCYIe4.mjs +443 -0
  464. package/dist/fts-manager-DacCYIe4.mjs.map +1 -0
  465. package/dist/gc-BBplHrv6.mjs +75 -0
  466. package/dist/gc-BBplHrv6.mjs.map +1 -0
  467. package/dist/hash-C4DFoJ7Z.mjs +37 -0
  468. package/dist/hash-C4DFoJ7Z.mjs.map +1 -0
  469. package/dist/hook-result-DSRRxu_-.d.mts +31 -0
  470. package/dist/hook-result-DSRRxu_-.d.mts.map +1 -0
  471. package/dist/hreflang-CKPunvU0.mjs +105 -0
  472. package/dist/hreflang-CKPunvU0.mjs.map +1 -0
  473. package/dist/hreflang-egumj6WF.d.mts +50 -0
  474. package/dist/hreflang-egumj6WF.d.mts.map +1 -0
  475. package/dist/http-route-dispatch-DjNFZcJ2.mjs +339 -0
  476. package/dist/http-route-dispatch-DjNFZcJ2.mjs.map +1 -0
  477. package/dist/identity-Dfrx2_Bc.mjs +35 -0
  478. package/dist/identity-Dfrx2_Bc.mjs.map +1 -0
  479. package/dist/import-ROBvhbNc.mjs +2021 -0
  480. package/dist/import-ROBvhbNc.mjs.map +1 -0
  481. package/dist/index-B4sIdCAT.d.mts +623 -0
  482. package/dist/index-B4sIdCAT.d.mts.map +1 -0
  483. package/dist/index.d.mts +24 -24
  484. package/dist/index.mjs +98 -97
  485. package/dist/init-lock-BGmew3r1.mjs +56 -0
  486. package/dist/init-lock-BGmew3r1.mjs.map +1 -0
  487. package/dist/install-finalization-CPM7Gged.mjs +58 -0
  488. package/dist/install-finalization-CPM7Gged.mjs.map +1 -0
  489. package/dist/keys-DxqxcAD4.mjs +61 -0
  490. package/dist/keys-DxqxcAD4.mjs.map +1 -0
  491. package/dist/kinds-BQl5gN6e.mjs +974 -0
  492. package/dist/kinds-BQl5gN6e.mjs.map +1 -0
  493. package/dist/lifecycle-DGQI7itS.mjs +25 -0
  494. package/dist/lifecycle-DGQI7itS.mjs.map +1 -0
  495. package/dist/load-DMxRl4VK.mjs +28 -0
  496. package/dist/load-DMxRl4VK.mjs.map +1 -0
  497. package/dist/loader-1DMiOq5s.mjs +1303 -0
  498. package/dist/loader-1DMiOq5s.mjs.map +1 -0
  499. package/dist/loops-Dn1i16FP.mjs +205 -0
  500. package/dist/loops-Dn1i16FP.mjs.map +1 -0
  501. package/dist/manifest-builder-CTw4FmZk.mjs +189 -0
  502. package/dist/manifest-builder-CTw4FmZk.mjs.map +1 -0
  503. package/dist/manifest-schema-gy37bD_D.mjs +496 -0
  504. package/dist/manifest-schema-gy37bD_D.mjs.map +1 -0
  505. package/dist/marketplace-tHWSsCUo.mjs +257 -0
  506. package/dist/marketplace-tHWSsCUo.mjs.map +1 -0
  507. package/dist/media/index.d.mts +1 -1
  508. package/dist/media/index.mjs +1 -1
  509. package/dist/media/local-runtime.d.mts +14 -14
  510. package/dist/media/local-runtime.mjs +7 -7
  511. package/dist/media-Bw-Q65ve.mjs +294 -0
  512. package/dist/media-Bw-Q65ve.mjs.map +1 -0
  513. package/dist/media-BzUDu7nl.mjs +373 -0
  514. package/dist/media-BzUDu7nl.mjs.map +1 -0
  515. package/dist/media-aahnKHze.mjs +408 -0
  516. package/dist/media-aahnKHze.mjs.map +1 -0
  517. package/dist/media-allowlist-RMrjo8TU.mjs +45 -0
  518. package/dist/media-allowlist-RMrjo8TU.mjs.map +1 -0
  519. package/dist/media-folders-kabR1oJf.mjs +210 -0
  520. package/dist/media-folders-kabR1oJf.mjs.map +1 -0
  521. package/dist/media-url-DloW2xrP.mjs +43 -0
  522. package/dist/media-url-DloW2xrP.mjs.map +1 -0
  523. package/dist/media-usage-CHHpV7ee.mjs +282 -0
  524. package/dist/media-usage-CHHpV7ee.mjs.map +1 -0
  525. package/dist/media-usage-activation-BinYqC_r.mjs +78 -0
  526. package/dist/media-usage-activation-BinYqC_r.mjs.map +1 -0
  527. package/dist/media-usage-work-C734aq6s.mjs +1015 -0
  528. package/dist/media-usage-work-C734aq6s.mjs.map +1 -0
  529. package/dist/media-usage-work-lxvV0-UO.mjs +151 -0
  530. package/dist/media-usage-work-lxvV0-UO.mjs.map +1 -0
  531. package/dist/menus-6RHNq4ZK.mjs +753 -0
  532. package/dist/menus-6RHNq4ZK.mjs.map +1 -0
  533. package/dist/menus-AuCTaO9W.mjs +3704 -0
  534. package/dist/menus-AuCTaO9W.mjs.map +1 -0
  535. package/dist/menus-BQKqf0Up.mjs +92 -0
  536. package/dist/menus-BQKqf0Up.mjs.map +1 -0
  537. package/dist/migrations/index.d.mts +1 -1
  538. package/dist/migrations/index.mjs +3 -3
  539. package/dist/mime-B5M9R53H.mjs +81 -0
  540. package/dist/mime-B5M9R53H.mjs.map +1 -0
  541. package/dist/mode-nh0ppSX5.mjs +23 -0
  542. package/dist/mode-nh0ppSX5.mjs.map +1 -0
  543. package/dist/node-sqlite-compat-CDOEcc97.mjs +63 -0
  544. package/dist/node-sqlite-compat-CDOEcc97.mjs.map +1 -0
  545. package/dist/oauth-authorization-BtYQ80uU.mjs +274 -0
  546. package/dist/oauth-authorization-BtYQ80uU.mjs.map +1 -0
  547. package/dist/oauth-clients-C1S4NQHh.mjs +266 -0
  548. package/dist/oauth-clients-C1S4NQHh.mjs.map +1 -0
  549. package/dist/oauth-state-store-CpGi2FZH.mjs +50 -0
  550. package/dist/oauth-state-store-CpGi2FZH.mjs.map +1 -0
  551. package/dist/oauth-user-lookup-BNp1aFAr.mjs +26 -0
  552. package/dist/oauth-user-lookup-BNp1aFAr.mjs.map +1 -0
  553. package/dist/object-cache/memory.d.mts +1 -1
  554. package/dist/options-B41aLm1I.d.mts +81 -0
  555. package/dist/options-B41aLm1I.d.mts.map +1 -0
  556. package/dist/ownership-DoeAIuTg.mjs +12 -0
  557. package/dist/ownership-DoeAIuTg.mjs.map +1 -0
  558. package/dist/page/index.d.mts +2 -2
  559. package/dist/page/index.mjs +6 -6
  560. package/dist/parse-CmFDTGzp.mjs +81 -0
  561. package/dist/parse-CmFDTGzp.mjs.map +1 -0
  562. package/dist/parse-QVS0t5oR.d.mts +172 -0
  563. package/dist/parse-QVS0t5oR.d.mts.map +1 -0
  564. package/dist/passkey-config-C-MxsV22.mjs +46 -0
  565. package/dist/passkey-config-C-MxsV22.mjs.map +1 -0
  566. package/dist/paths-kr8hAMMI.mjs +77 -0
  567. package/dist/paths-kr8hAMMI.mjs.map +1 -0
  568. package/dist/placeholder-Dn7MMdWr.d.mts +306 -0
  569. package/dist/placeholder-Dn7MMdWr.d.mts.map +1 -0
  570. package/dist/plan-CuQOeU9g.mjs +135 -0
  571. package/dist/plan-CuQOeU9g.mjs.map +1 -0
  572. package/dist/plugin-test-runtime.d.mts +14 -14
  573. package/dist/plugin-test-runtime.mjs +110 -109
  574. package/dist/plugin-types.d.mts +2 -2
  575. package/dist/plugin-utils.d.mts +12 -12
  576. package/dist/plugins/adapt-sandbox-entry.d.mts +12 -12
  577. package/dist/plugins/adapt-sandbox-entry.mjs +3 -3
  578. package/dist/plugins/host.d.mts +5 -5
  579. package/dist/plugins/host.mjs +44 -43
  580. package/dist/plugins-CGb-G98c.mjs +261 -0
  581. package/dist/plugins-CGb-G98c.mjs.map +1 -0
  582. package/dist/policy-C5wrDXYV.mjs +45 -0
  583. package/dist/policy-C5wrDXYV.mjs.map +1 -0
  584. package/dist/portable-text-BnRuiR1-.mjs +307 -0
  585. package/dist/portable-text-BnRuiR1-.mjs.map +1 -0
  586. package/dist/preview-xWNSR1Li.mjs +107 -0
  587. package/dist/preview-xWNSR1Li.mjs.map +1 -0
  588. package/dist/protocol-ClxN-m1e.d.mts +61 -0
  589. package/dist/protocol-ClxN-m1e.d.mts.map +1 -0
  590. package/dist/public-submission-CkmT2SKv.mjs +250 -0
  591. package/dist/public-submission-CkmT2SKv.mjs.map +1 -0
  592. package/dist/public-url-B5a0QAh6.mjs +101 -0
  593. package/dist/public-url-B5a0QAh6.mjs.map +1 -0
  594. package/dist/query-DHqFiqqH.mjs +41 -0
  595. package/dist/query-DHqFiqqH.mjs.map +1 -0
  596. package/dist/query-DT85BehD.mjs +1125 -0
  597. package/dist/query-DT85BehD.mjs.map +1 -0
  598. package/dist/rate-limit-iMvcu3eu.mjs +120 -0
  599. package/dist/rate-limit-iMvcu3eu.mjs.map +1 -0
  600. package/dist/receipt-Dpp1uaX9.mjs +43 -0
  601. package/dist/receipt-Dpp1uaX9.mjs.map +1 -0
  602. package/dist/redirect-BRoLiWQE.mjs +19 -0
  603. package/dist/redirect-BRoLiWQE.mjs.map +1 -0
  604. package/dist/redirect-xZNpBoGp.mjs +417 -0
  605. package/dist/redirect-xZNpBoGp.mjs.map +1 -0
  606. package/dist/redirects-D4EWeXAo.mjs +148 -0
  607. package/dist/redirects-D4EWeXAo.mjs.map +1 -0
  608. package/dist/redirects-DCKqwiWp.mjs +446 -0
  609. package/dist/redirects-DCKqwiWp.mjs.map +1 -0
  610. package/dist/registry/testing.mjs +3 -3
  611. package/dist/registry-DaXmUsD4.mjs +8369 -0
  612. package/dist/registry-DaXmUsD4.mjs.map +1 -0
  613. package/dist/relations-JvBP8nGP.mjs +776 -0
  614. package/dist/relations-JvBP8nGP.mjs.map +1 -0
  615. package/dist/request-context.d.mts +2 -2
  616. package/dist/request-context.mjs.map +1 -1
  617. package/dist/request-meta-B6blULFY.mjs +141 -0
  618. package/dist/request-meta-B6blULFY.mjs.map +1 -0
  619. package/dist/resolve-DAhHi5tn.mjs +100 -0
  620. package/dist/resolve-DAhHi5tn.mjs.map +1 -0
  621. package/dist/revision-BWEH2qQB.mjs +368 -0
  622. package/dist/revision-BWEH2qQB.mjs.map +1 -0
  623. package/dist/route-wire-DK600v4u.mjs +197 -0
  624. package/dist/route-wire-DK600v4u.mjs.map +1 -0
  625. package/dist/routes-BeZyaCzv.mjs +272 -0
  626. package/dist/routes-BeZyaCzv.mjs.map +1 -0
  627. package/dist/runner-CskI4Hmq.mjs +6372 -0
  628. package/dist/runner-CskI4Hmq.mjs.map +1 -0
  629. package/dist/runner-J3Cj6DGk.d.mts +68 -0
  630. package/dist/runner-J3Cj6DGk.d.mts.map +1 -0
  631. package/dist/runtime.d.mts +13 -13
  632. package/dist/runtime.mjs +3 -3
  633. package/dist/schema/project-env-types.mjs +37 -37
  634. package/dist/schema-CK0ihqMR.mjs +815 -0
  635. package/dist/schema-CK0ihqMR.mjs.map +1 -0
  636. package/dist/schema-VtaZSrC-.mjs +13 -0
  637. package/dist/schema-VtaZSrC-.mjs.map +1 -0
  638. package/dist/scopes-BRnGlL9t.mjs +34 -0
  639. package/dist/scopes-BRnGlL9t.mjs.map +1 -0
  640. package/dist/search-D6-XK1Sn.mjs +448 -0
  641. package/dist/search-D6-XK1Sn.mjs.map +1 -0
  642. package/dist/secrets-Cc_O3Kp-.mjs +369 -0
  643. package/dist/secrets-Cc_O3Kp-.mjs.map +1 -0
  644. package/dist/sections-CBDCf7qR.mjs +346 -0
  645. package/dist/sections-CBDCf7qR.mjs.map +1 -0
  646. package/dist/seed/index.d.mts +2 -2
  647. package/dist/seed/index.mjs +35 -35
  648. package/dist/seo/index.d.mts +3 -3
  649. package/dist/seo/index.mjs +22 -22
  650. package/dist/seo-BdeEPDNW.mjs +133 -0
  651. package/dist/seo-BdeEPDNW.mjs.map +1 -0
  652. package/dist/seo-C61bnPuV.mjs +114 -0
  653. package/dist/seo-C61bnPuV.mjs.map +1 -0
  654. package/dist/service-BuRKLMxa.mjs +150 -0
  655. package/dist/service-BuRKLMxa.mjs.map +1 -0
  656. package/dist/session-user-CqkPtrPL.mjs +61 -0
  657. package/dist/session-user-CqkPtrPL.mjs.map +1 -0
  658. package/dist/settings-0u0lTthS.mjs +51 -0
  659. package/dist/settings-0u0lTthS.mjs.map +1 -0
  660. package/dist/settings-WHr45II1.mjs +61 -0
  661. package/dist/settings-WHr45II1.mjs.map +1 -0
  662. package/dist/settings-m5tIYnF0.mjs +443 -0
  663. package/dist/settings-m5tIYnF0.mjs.map +1 -0
  664. package/dist/setup-complete-B2_dhZZz.mjs +65 -0
  665. package/dist/setup-complete-B2_dhZZz.mjs.map +1 -0
  666. package/dist/setup-nonce-CJV9ftSK.mjs +25 -0
  667. package/dist/setup-nonce-CJV9ftSK.mjs.map +1 -0
  668. package/dist/single-flight-cache-D0EaGbN1.mjs +104 -0
  669. package/dist/single-flight-cache-D0EaGbN1.mjs.map +1 -0
  670. package/dist/site-settings-KJOqJW6W.mjs +50 -0
  671. package/dist/site-settings-KJOqJW6W.mjs.map +1 -0
  672. package/dist/site-url-Ceq_AUK0.mjs +16 -0
  673. package/dist/site-url-Ceq_AUK0.mjs.map +1 -0
  674. package/dist/snapshot-Dzsn3NZa.mjs +414 -0
  675. package/dist/snapshot-Dzsn3NZa.mjs.map +1 -0
  676. package/dist/ssrf-DsmvZB80.mjs +406 -0
  677. package/dist/ssrf-DsmvZB80.mjs.map +1 -0
  678. package/dist/stage-Csnh_yEd.mjs +662 -0
  679. package/dist/stage-Csnh_yEd.mjs.map +1 -0
  680. package/dist/staged-Q7pnEVvI.mjs +686 -0
  681. package/dist/staged-Q7pnEVvI.mjs.map +1 -0
  682. package/dist/state-kGdOMQRY.mjs +153 -0
  683. package/dist/state-kGdOMQRY.mjs.map +1 -0
  684. package/dist/status-D39Fpy8R.mjs +30 -0
  685. package/dist/status-D39Fpy8R.mjs.map +1 -0
  686. package/dist/storage/local.d.mts +1 -1
  687. package/dist/storage/local.mjs +2 -2
  688. package/dist/storage/s3.d.mts +1 -1
  689. package/dist/storage/s3.mjs +1 -1
  690. package/dist/storage-query-C7iy6eUb.d.mts +1615 -0
  691. package/dist/storage-query-C7iy6eUb.d.mts.map +1 -0
  692. package/dist/tar-BWiraSUY.mjs +449 -0
  693. package/dist/tar-BWiraSUY.mjs.map +1 -0
  694. package/dist/target-DOFs5oUC.mjs +27 -0
  695. package/dist/target-DOFs5oUC.mjs.map +1 -0
  696. package/dist/taxonomies-BS40Wxvi.mjs +939 -0
  697. package/dist/taxonomies-BS40Wxvi.mjs.map +1 -0
  698. package/dist/taxonomies-DAZU9VDd.mjs +697 -0
  699. package/dist/taxonomies-DAZU9VDd.mjs.map +1 -0
  700. package/dist/taxonomy-XzLE95Vx.mjs +525 -0
  701. package/dist/taxonomy-XzLE95Vx.mjs.map +1 -0
  702. package/dist/tokens-DSQan4p7.mjs +171 -0
  703. package/dist/tokens-DSQan4p7.mjs.map +1 -0
  704. package/dist/transfer-BcCVxDgf.mjs +166 -0
  705. package/dist/transfer-BcCVxDgf.mjs.map +1 -0
  706. package/dist/transfer-OMrancOt.mjs +8873 -0
  707. package/dist/transfer-OMrancOt.mjs.map +1 -0
  708. package/dist/transfer-download-Dc-ltjZY.mjs +33 -0
  709. package/dist/transfer-download-Dc-ltjZY.mjs.map +1 -0
  710. package/dist/transformations-Ddx7UtrY.mjs +196 -0
  711. package/dist/transformations-Ddx7UtrY.mjs.map +1 -0
  712. package/dist/transport-flR-Zmds.d.mts +42 -0
  713. package/dist/transport-flR-Zmds.d.mts.map +1 -0
  714. package/dist/transport-umzEbgYO.mjs +136 -0
  715. package/dist/transport-umzEbgYO.mjs.map +1 -0
  716. package/dist/trusted-proxy-BqfQFs6a.mjs +51 -0
  717. package/dist/trusted-proxy-BqfQFs6a.mjs.map +1 -0
  718. package/dist/turnstile-Do60baId.mjs +58 -0
  719. package/dist/turnstile-Do60baId.mjs.map +1 -0
  720. package/dist/types-BT1p3uyb.d.mts +1735 -0
  721. package/dist/types-BT1p3uyb.d.mts.map +1 -0
  722. package/dist/types-BYaPWs_F.d.mts +198 -0
  723. package/dist/types-BYaPWs_F.d.mts.map +1 -0
  724. package/dist/types-C-Xp0CcN.mjs +103 -0
  725. package/dist/types-C-Xp0CcN.mjs.map +1 -0
  726. package/dist/types-CLTQ9b_r.d.mts +374 -0
  727. package/dist/types-CLTQ9b_r.d.mts.map +1 -0
  728. package/dist/types-CPkQw2T2.d.mts +85 -0
  729. package/dist/types-CPkQw2T2.d.mts.map +1 -0
  730. package/dist/types-CQLvuXoZ.d.mts +198 -0
  731. package/dist/types-CQLvuXoZ.d.mts.map +1 -0
  732. package/dist/types-CV5xszpF.d.mts +363 -0
  733. package/dist/types-CV5xszpF.d.mts.map +1 -0
  734. package/dist/types-CdEMurNh.mjs +77 -0
  735. package/dist/types-CdEMurNh.mjs.map +1 -0
  736. package/dist/types-Cj0_yZkn.mjs +18 -0
  737. package/dist/types-Cj0_yZkn.mjs.map +1 -0
  738. package/dist/types-CxwtnuSS.mjs +37 -0
  739. package/dist/types-CxwtnuSS.mjs.map +1 -0
  740. package/dist/types-DGw8KMX_.mjs +16 -0
  741. package/dist/types-DGw8KMX_.mjs.map +1 -0
  742. package/dist/types-DOfVMPoo.d.mts +125 -0
  743. package/dist/types-DOfVMPoo.d.mts.map +1 -0
  744. package/dist/types-LtS0SM4F.d.mts +287 -0
  745. package/dist/types-LtS0SM4F.d.mts.map +1 -0
  746. package/dist/types-ifgOkcBa.d.mts +916 -0
  747. package/dist/types-ifgOkcBa.d.mts.map +1 -0
  748. package/dist/update-check-DOc2aBIU.mjs +161 -0
  749. package/dist/update-check-DOc2aBIU.mjs.map +1 -0
  750. package/dist/upload-attempts-nzdc3cay.mjs +32 -0
  751. package/dist/upload-attempts-nzdc3cay.mjs.map +1 -0
  752. package/dist/url-pattern-hVbqpXs6.mjs +41 -0
  753. package/dist/url-pattern-hVbqpXs6.mjs.map +1 -0
  754. package/dist/user-Dnp53zTq.mjs +171 -0
  755. package/dist/user-Dnp53zTq.mjs.map +1 -0
  756. package/dist/utils-CoV-PYhg.mjs +439 -0
  757. package/dist/utils-CoV-PYhg.mjs.map +1 -0
  758. package/dist/validate-CfQ9_YlD.d.mts +468 -0
  759. package/dist/validate-CfQ9_YlD.d.mts.map +1 -0
  760. package/dist/validate-DBX3DKtL.mjs +516 -0
  761. package/dist/validate-DBX3DKtL.mjs.map +1 -0
  762. package/dist/validation-BJMiDhB1.mjs +219 -0
  763. package/dist/validation-BJMiDhB1.mjs.map +1 -0
  764. package/dist/version-BaT8yKIT.mjs +7 -0
  765. package/dist/version-BaT8yKIT.mjs.map +1 -0
  766. package/dist/version-BwEGkqkx.mjs +9 -0
  767. package/dist/version-BwEGkqkx.mjs.map +1 -0
  768. package/dist/virtual-modules-B6vJW15k.mjs +516 -0
  769. package/dist/virtual-modules-B6vJW15k.mjs.map +1 -0
  770. package/dist/widgets-BkxBAgZ_.mjs +126 -0
  771. package/dist/widgets-BkxBAgZ_.mjs.map +1 -0
  772. package/dist/wxr-taxonomies-D7gAJyOF.mjs +453 -0
  773. package/dist/wxr-taxonomies-D7gAJyOF.mjs.map +1 -0
  774. package/dist/wxr-taxonomies-DM5J9AsT.d.mts +34 -0
  775. package/dist/wxr-taxonomies-DM5J9AsT.d.mts.map +1 -0
  776. package/dist/zod-generator-BQilAboC.mjs +424 -0
  777. package/dist/zod-generator-BQilAboC.mjs.map +1 -0
  778. package/package.json +11 -5
  779. package/src/api/errors.ts +3 -0
  780. package/src/api/handlers/bylines.ts +24 -3
  781. package/src/api/handlers/calendar.ts +246 -0
  782. package/src/api/handlers/content.ts +12 -5
  783. package/src/api/handlers/media-allowlist.ts +1 -0
  784. package/src/api/handlers/media-upload.ts +13 -10
  785. package/src/api/handlers/plugins.ts +21 -29
  786. package/src/api/handlers/redirects.ts +6 -6
  787. package/src/api/schemas/bylines.ts +3 -1
  788. package/src/api/schemas/content.ts +16 -0
  789. package/src/astro/integration/index.ts +18 -1
  790. package/src/astro/integration/routes.ts +5 -0
  791. package/src/astro/integration/vite-config.ts +11 -0
  792. package/src/astro/middleware/csp.ts +1 -0
  793. package/src/astro/middleware/redirect.ts +20 -9
  794. package/src/astro/middleware/request-context.ts +54 -27
  795. package/src/astro/middleware.ts +97 -12
  796. package/src/astro/prefetch.ts +10 -3
  797. package/src/astro/routes/api/admin/bylines/[id]/translations.ts +0 -5
  798. package/src/astro/routes/api/admin/bylines/index.ts +1 -1
  799. package/src/astro/routes/api/admin/plugins/[id]/index.ts +1 -0
  800. package/src/astro/routes/api/auth/oauth/[provider]/callback.ts +56 -4
  801. package/src/astro/routes/api/auth/oauth/[provider].ts +37 -4
  802. package/src/astro/routes/api/calendar.ts +35 -0
  803. package/src/astro/routes/api/media/upload-url.ts +8 -4
  804. package/src/astro/routes/api/media.ts +9 -5
  805. package/src/astro/routes/api/setup/index.ts +14 -2
  806. package/src/auth/providers/microsoft-admin.tsx +31 -0
  807. package/src/auth/providers/microsoft.ts +47 -0
  808. package/src/comments/turnstile.ts +6 -1
  809. package/src/components/HtmlBlock.astro +17 -6
  810. package/src/components/HtmlBlockFrame.astro +63 -0
  811. package/src/components/Iframe.astro +141 -0
  812. package/src/components/InlinePortableTextEditor.tsx +8 -7
  813. package/src/components/WebMcpSearch.astro +80 -0
  814. package/src/components/index.ts +5 -2
  815. package/src/components/webmcp-search.ts +142 -0
  816. package/src/config/secrets.ts +27 -15
  817. package/src/content/converters/portable-text-identity.ts +1 -0
  818. package/src/content/converters/portable-text-to-prosemirror.ts +36 -2
  819. package/src/content/converters/prosemirror-to-portable-text.ts +28 -2
  820. package/src/content/converters/types.ts +24 -0
  821. package/src/database/content-datetime.ts +11 -4
  822. package/src/database/migrations/090_redirect_enable_loop_guard.ts +70 -0
  823. package/src/database/migrations/091_redirect_artifacts.ts +141 -0
  824. package/src/database/migrations/runner.ts +4 -0
  825. package/src/database/repositories/content.ts +81 -26
  826. package/src/database/repositories/redirect.ts +6 -1
  827. package/src/database/request-scoped.ts +34 -0
  828. package/src/database/types.ts +23 -0
  829. package/src/db/adapters.ts +2 -0
  830. package/src/emdash-runtime.ts +28 -3
  831. package/src/import/menus.ts +3 -0
  832. package/src/index.ts +1 -0
  833. package/src/loader.ts +226 -55
  834. package/src/mcp/server.ts +12 -4
  835. package/src/media/mime.ts +21 -0
  836. package/src/menus/index.ts +30 -26
  837. package/src/plugins/hooks.ts +10 -0
  838. package/src/plugins/manager.ts +12 -2
  839. package/src/plugins/types.ts +16 -0
  840. package/src/query.ts +12 -29
  841. package/src/redirects/artifacts.ts +460 -0
  842. package/src/redirects/cache.ts +76 -41
  843. package/src/request-context.ts +1 -1
  844. package/src/seed/apply.ts +65 -57
  845. package/src/settings/index.ts +17 -12
  846. package/src/transfer/format/columns.ts +3 -0
  847. package/src/transfer/import/rebuild.ts +17 -2
  848. package/src/transfer/import/scaffold.ts +16 -9
  849. package/src/ui.ts +1 -0
  850. package/src/utils/sanitize.ts +14 -9
  851. package/src/virtual-modules.d.ts +3 -0
  852. package/dist/action-token-D2KE1Rqf.mjs +0 -26
  853. package/dist/action-token-D2KE1Rqf.mjs.map +0 -1
  854. package/dist/activation-DDuqAat2.mjs +0 -387
  855. package/dist/activation-DDuqAat2.mjs.map +0 -1
  856. package/dist/adapters-Ds-1Pmkm.d.mts +0 -171
  857. package/dist/adapters-Ds-1Pmkm.d.mts.map +0 -1
  858. package/dist/allowed-origins-D78QvbTO.mjs +0 -116
  859. package/dist/allowed-origins-D78QvbTO.mjs.map +0 -1
  860. package/dist/api-BBZlif0y.mjs +0 -4974
  861. package/dist/api-BBZlif0y.mjs.map +0 -1
  862. package/dist/api-tokens-BGbfWZVO.mjs +0 -166
  863. package/dist/api-tokens-BGbfWZVO.mjs.map +0 -1
  864. package/dist/apply-CDNV4JJ-.mjs +0 -1672
  865. package/dist/apply-CDNV4JJ-.mjs.map +0 -1
  866. package/dist/approvals-CVvJSEBF.mjs +0 -460
  867. package/dist/approvals-CVvJSEBF.mjs.map +0 -1
  868. package/dist/artifact-fetch-CGK0DQLj.mjs +0 -659
  869. package/dist/artifact-fetch-CGK0DQLj.mjs.map +0 -1
  870. package/dist/audit-BszbE_BP.mjs +0 -127
  871. package/dist/audit-BszbE_BP.mjs.map +0 -1
  872. package/dist/authoritative-records-ChM8dTeV.mjs +0 -5172
  873. package/dist/authoritative-records-ChM8dTeV.mjs.map +0 -1
  874. package/dist/authorize-CTGywswM.mjs +0 -49
  875. package/dist/authorize-CTGywswM.mjs.map +0 -1
  876. package/dist/backup-CDrPP8fI.mjs +0 -246
  877. package/dist/backup-CDrPP8fI.mjs.map +0 -1
  878. package/dist/base64-DvnNgP7e.mjs +0 -63
  879. package/dist/base64-DvnNgP7e.mjs.map +0 -1
  880. package/dist/block-types-nNEaPkvx.mjs +0 -132
  881. package/dist/block-types-nNEaPkvx.mjs.map +0 -1
  882. package/dist/block-values-Bho1nsZF.mjs +0 -175
  883. package/dist/block-values-Bho1nsZF.mjs.map +0 -1
  884. package/dist/byline-02tu_Uc-.mjs +0 -909
  885. package/dist/byline-02tu_Uc-.mjs.map +0 -1
  886. package/dist/byline-fields-BYbTptTU.mjs +0 -280
  887. package/dist/byline-fields-BYbTptTU.mjs.map +0 -1
  888. package/dist/byline-fields-BjQH-1z9.mjs +0 -123
  889. package/dist/byline-fields-BjQH-1z9.mjs.map +0 -1
  890. package/dist/bylines-VytjeHBI.mjs +0 -214
  891. package/dist/bylines-VytjeHBI.mjs.map +0 -1
  892. package/dist/bylines-gyWBWUUc.mjs +0 -150
  893. package/dist/bylines-gyWBWUUc.mjs.map +0 -1
  894. package/dist/cache-CPanL9IO.mjs +0 -114
  895. package/dist/cache-CPanL9IO.mjs.map +0 -1
  896. package/dist/canonical-CAecl1UQ.mjs +0 -174
  897. package/dist/canonical-CAecl1UQ.mjs.map +0 -1
  898. package/dist/capture-triggers-CdZfvHtF.mjs +0 -362
  899. package/dist/capture-triggers-CdZfvHtF.mjs.map +0 -1
  900. package/dist/challenge-store-VePApay4.mjs +0 -51
  901. package/dist/challenge-store-VePApay4.mjs.map +0 -1
  902. package/dist/checksum-BSIhEAYW.mjs +0 -162
  903. package/dist/checksum-BSIhEAYW.mjs.map +0 -1
  904. package/dist/chrome-tags-CKELm-bo.mjs +0 -24
  905. package/dist/chrome-tags-CKELm-bo.mjs.map +0 -1
  906. package/dist/chunks-DBmkKmBH.mjs +0 -25
  907. package/dist/chunks-DBmkKmBH.mjs.map +0 -1
  908. package/dist/collection-slugs-cache-BNRAPNiu.mjs +0 -85
  909. package/dist/collection-slugs-cache-BNRAPNiu.mjs.map +0 -1
  910. package/dist/comment-Cq1UYN8_.mjs +0 -313
  911. package/dist/comment-Cq1UYN8_.mjs.map +0 -1
  912. package/dist/comment-reaction-B5sZzSoA.mjs +0 -85
  913. package/dist/comment-reaction-B5sZzSoA.mjs.map +0 -1
  914. package/dist/comments-B3F-ETyh.mjs +0 -195
  915. package/dist/comments-B3F-ETyh.mjs.map +0 -1
  916. package/dist/comments-zrTgWBSg.mjs +0 -99
  917. package/dist/comments-zrTgWBSg.mjs.map +0 -1
  918. package/dist/components-Dbf4Eq16.mjs +0 -108
  919. package/dist/components-Dbf4Eq16.mjs.map +0 -1
  920. package/dist/config-BCM5sQP7.d.mts +0 -6688
  921. package/dist/config-BCM5sQP7.d.mts.map +0 -1
  922. package/dist/config-CXPcy2iY.mjs +0 -228
  923. package/dist/config-CXPcy2iY.mjs.map +0 -1
  924. package/dist/config-CZkZBuBK.d.mts +0 -39
  925. package/dist/config-CZkZBuBK.d.mts.map +0 -1
  926. package/dist/connection-C5GIciX9.mjs +0 -36
  927. package/dist/connection-C5GIciX9.mjs.map +0 -1
  928. package/dist/content-RzEXY3QX.mjs +0 -2020
  929. package/dist/content-RzEXY3QX.mjs.map +0 -1
  930. package/dist/content-list-query-B6P37Ug_.d.mts +0 -26
  931. package/dist/content-list-query-B6P37Ug_.d.mts.map +0 -1
  932. package/dist/content-repair-BDVsYXWK.mjs +0 -442
  933. package/dist/content-repair-BDVsYXWK.mjs.map +0 -1
  934. package/dist/context-BpTIzY5h.mjs +0 -2026
  935. package/dist/context-BpTIzY5h.mjs.map +0 -1
  936. package/dist/credits-JOE92Gr7.mjs +0 -110
  937. package/dist/credits-JOE92Gr7.mjs.map +0 -1
  938. package/dist/cron-ktyapbdB.mjs +0 -306
  939. package/dist/cron-ktyapbdB.mjs.map +0 -1
  940. package/dist/dashboard-BoV4pwPP.mjs +0 -151
  941. package/dist/dashboard-BoV4pwPP.mjs.map +0 -1
  942. package/dist/default-B7KnYwtQ.mjs +0 -81
  943. package/dist/default-B7KnYwtQ.mjs.map +0 -1
  944. package/dist/deferred-tasks-eaUIqXj8.d.mts +0 -9
  945. package/dist/deferred-tasks-eaUIqXj8.d.mts.map +0 -1
  946. package/dist/dev-typegen-8JlYYFno.mjs +0 -29
  947. package/dist/dev-typegen-8JlYYFno.mjs.map +0 -1
  948. package/dist/device-flow-BlV_z24g.mjs +0 -521
  949. package/dist/device-flow-BlV_z24g.mjs.map +0 -1
  950. package/dist/digest-DiYAoZpf.mjs +0 -194
  951. package/dist/digest-DiYAoZpf.mjs.map +0 -1
  952. package/dist/direct-executor-Db8xA3zg.mjs +0 -104
  953. package/dist/direct-executor-Db8xA3zg.mjs.map +0 -1
  954. package/dist/email-console-Dm78wSmg.mjs +0 -50
  955. package/dist/email-console-Dm78wSmg.mjs.map +0 -1
  956. package/dist/email-locale-B4X9LXe9.mjs +0 -25
  957. package/dist/email-locale-B4X9LXe9.mjs.map +0 -1
  958. package/dist/emdash-runtime-BakQ6io7.mjs +0 -4239
  959. package/dist/emdash-runtime-BakQ6io7.mjs.map +0 -1
  960. package/dist/enrich-BDdVNeDK.mjs +0 -194
  961. package/dist/enrich-BDdVNeDK.mjs.map +0 -1
  962. package/dist/entry-lock-DY8B-xcr.d.mts +0 -4544
  963. package/dist/entry-lock-DY8B-xcr.d.mts.map +0 -1
  964. package/dist/entry-lock-DrUAdTzf.mjs +0 -163
  965. package/dist/entry-lock-DrUAdTzf.mjs.map +0 -1
  966. package/dist/entry-lock-yIkBduqJ.mjs +0 -1180
  967. package/dist/entry-lock-yIkBduqJ.mjs.map +0 -1
  968. package/dist/env-types-DkHYR2pl.mjs +0 -38
  969. package/dist/env-types-DkHYR2pl.mjs.map +0 -1
  970. package/dist/error-DIYXAVk4.mjs +0 -90
  971. package/dist/error-DIYXAVk4.mjs.map +0 -1
  972. package/dist/errors-CNvATh_7.mjs +0 -469
  973. package/dist/errors-CNvATh_7.mjs.map +0 -1
  974. package/dist/errors-CjXd1LgH.mjs +0 -120
  975. package/dist/errors-CjXd1LgH.mjs.map +0 -1
  976. package/dist/escape-B1GM0yJU.mjs +0 -9
  977. package/dist/escape-B1GM0yJU.mjs.map +0 -1
  978. package/dist/fence-8MaKKWhp.mjs +0 -162
  979. package/dist/fence-8MaKKWhp.mjs.map +0 -1
  980. package/dist/field-defs-cache-DEkFYCDE.mjs +0 -77
  981. package/dist/field-defs-cache-DEkFYCDE.mjs.map +0 -1
  982. package/dist/field-map-D7ioN0r0.mjs +0 -83
  983. package/dist/field-map-D7ioN0r0.mjs.map +0 -1
  984. package/dist/fts-manager-DU03MxWu.mjs +0 -443
  985. package/dist/fts-manager-DU03MxWu.mjs.map +0 -1
  986. package/dist/gc-DMiE7ezk.mjs +0 -75
  987. package/dist/gc-DMiE7ezk.mjs.map +0 -1
  988. package/dist/hash-CY4QdeMJ.mjs +0 -37
  989. package/dist/hash-CY4QdeMJ.mjs.map +0 -1
  990. package/dist/hook-result-Cb67D3P3.d.mts +0 -31
  991. package/dist/hook-result-Cb67D3P3.d.mts.map +0 -1
  992. package/dist/hreflang-Bterc3b7.mjs +0 -105
  993. package/dist/hreflang-Bterc3b7.mjs.map +0 -1
  994. package/dist/hreflang-uIBOE5yg.d.mts +0 -50
  995. package/dist/hreflang-uIBOE5yg.d.mts.map +0 -1
  996. package/dist/http-route-dispatch-DubjTibD.mjs +0 -339
  997. package/dist/http-route-dispatch-DubjTibD.mjs.map +0 -1
  998. package/dist/identity-DJ-5AcdG.mjs +0 -35
  999. package/dist/identity-DJ-5AcdG.mjs.map +0 -1
  1000. package/dist/import-DEfuIgRz.mjs +0 -2020
  1001. package/dist/import-DEfuIgRz.mjs.map +0 -1
  1002. package/dist/index-xCy3j0f6.d.mts +0 -623
  1003. package/dist/index-xCy3j0f6.d.mts.map +0 -1
  1004. package/dist/init-lock-4eRRB4Le.mjs +0 -56
  1005. package/dist/init-lock-4eRRB4Le.mjs.map +0 -1
  1006. package/dist/install-finalization-DeGRbaVa.mjs +0 -58
  1007. package/dist/install-finalization-DeGRbaVa.mjs.map +0 -1
  1008. package/dist/keys-DWwMxdZh.mjs +0 -61
  1009. package/dist/keys-DWwMxdZh.mjs.map +0 -1
  1010. package/dist/kinds-D1A-00-F.mjs +0 -974
  1011. package/dist/kinds-D1A-00-F.mjs.map +0 -1
  1012. package/dist/lifecycle-BWtBGNEn.mjs +0 -25
  1013. package/dist/lifecycle-BWtBGNEn.mjs.map +0 -1
  1014. package/dist/load-BR1NEa_3.mjs +0 -28
  1015. package/dist/load-BR1NEa_3.mjs.map +0 -1
  1016. package/dist/loader-D4edocWH.mjs +0 -1197
  1017. package/dist/loader-D4edocWH.mjs.map +0 -1
  1018. package/dist/loops-DLaHFrvI.mjs +0 -205
  1019. package/dist/loops-DLaHFrvI.mjs.map +0 -1
  1020. package/dist/manifest-builder-8jsSLR7s.mjs +0 -189
  1021. package/dist/manifest-builder-8jsSLR7s.mjs.map +0 -1
  1022. package/dist/manifest-schema-DcZjRNEv.mjs +0 -496
  1023. package/dist/manifest-schema-DcZjRNEv.mjs.map +0 -1
  1024. package/dist/marketplace-CNxjq10S.mjs +0 -257
  1025. package/dist/marketplace-CNxjq10S.mjs.map +0 -1
  1026. package/dist/media-3v7mqAVX.mjs +0 -294
  1027. package/dist/media-3v7mqAVX.mjs.map +0 -1
  1028. package/dist/media-Bs6qmlVl.mjs +0 -408
  1029. package/dist/media-Bs6qmlVl.mjs.map +0 -1
  1030. package/dist/media-CputjGE1.mjs +0 -373
  1031. package/dist/media-CputjGE1.mjs.map +0 -1
  1032. package/dist/media-allowlist-isqF1gAh.mjs +0 -44
  1033. package/dist/media-allowlist-isqF1gAh.mjs.map +0 -1
  1034. package/dist/media-folders-D2VdVBf6.mjs +0 -210
  1035. package/dist/media-folders-D2VdVBf6.mjs.map +0 -1
  1036. package/dist/media-url-DbkMY3y6.mjs +0 -43
  1037. package/dist/media-url-DbkMY3y6.mjs.map +0 -1
  1038. package/dist/media-usage-activation-BaT4AlNI.mjs +0 -78
  1039. package/dist/media-usage-activation-BaT4AlNI.mjs.map +0 -1
  1040. package/dist/media-usage-v43L0kR_.mjs +0 -282
  1041. package/dist/media-usage-v43L0kR_.mjs.map +0 -1
  1042. package/dist/media-usage-work-CY8gIeU-.mjs +0 -151
  1043. package/dist/media-usage-work-CY8gIeU-.mjs.map +0 -1
  1044. package/dist/media-usage-work-VO108Q9E.mjs +0 -1015
  1045. package/dist/media-usage-work-VO108Q9E.mjs.map +0 -1
  1046. package/dist/menus-BYyeRemR.mjs +0 -3647
  1047. package/dist/menus-BYyeRemR.mjs.map +0 -1
  1048. package/dist/menus-mC_XTxD7.mjs +0 -92
  1049. package/dist/menus-mC_XTxD7.mjs.map +0 -1
  1050. package/dist/menus-trvc6_fW.mjs +0 -753
  1051. package/dist/menus-trvc6_fW.mjs.map +0 -1
  1052. package/dist/mime-IZf-LHIS.mjs +0 -36
  1053. package/dist/mime-IZf-LHIS.mjs.map +0 -1
  1054. package/dist/mode-B9-gMXL9.mjs +0 -23
  1055. package/dist/mode-B9-gMXL9.mjs.map +0 -1
  1056. package/dist/node-sqlite-compat-DztcWs4y.mjs +0 -63
  1057. package/dist/node-sqlite-compat-DztcWs4y.mjs.map +0 -1
  1058. package/dist/oauth-authorization-BIHy9SGU.mjs +0 -274
  1059. package/dist/oauth-authorization-BIHy9SGU.mjs.map +0 -1
  1060. package/dist/oauth-clients-BZWZvKXa.mjs +0 -266
  1061. package/dist/oauth-clients-BZWZvKXa.mjs.map +0 -1
  1062. package/dist/oauth-state-store-CxXTjXdI.mjs +0 -50
  1063. package/dist/oauth-state-store-CxXTjXdI.mjs.map +0 -1
  1064. package/dist/oauth-user-lookup-GWojfxRl.mjs +0 -26
  1065. package/dist/oauth-user-lookup-GWojfxRl.mjs.map +0 -1
  1066. package/dist/options-DRF6dlXY.d.mts +0 -81
  1067. package/dist/options-DRF6dlXY.d.mts.map +0 -1
  1068. package/dist/ownership-Bd77AmJz.mjs +0 -12
  1069. package/dist/ownership-Bd77AmJz.mjs.map +0 -1
  1070. package/dist/parse-5Y0W39xR.mjs +0 -81
  1071. package/dist/parse-5Y0W39xR.mjs.map +0 -1
  1072. package/dist/parse-BPblgoa-.d.mts +0 -172
  1073. package/dist/parse-BPblgoa-.d.mts.map +0 -1
  1074. package/dist/passkey-config-PiQ5cBnt.mjs +0 -46
  1075. package/dist/passkey-config-PiQ5cBnt.mjs.map +0 -1
  1076. package/dist/paths-DkS74lBM.mjs +0 -77
  1077. package/dist/paths-DkS74lBM.mjs.map +0 -1
  1078. package/dist/placeholder-Bez2282x.d.mts +0 -306
  1079. package/dist/placeholder-Bez2282x.d.mts.map +0 -1
  1080. package/dist/plan-Lw7iGnGD.mjs +0 -135
  1081. package/dist/plan-Lw7iGnGD.mjs.map +0 -1
  1082. package/dist/plugins-D7xSh1Lu.mjs +0 -277
  1083. package/dist/plugins-D7xSh1Lu.mjs.map +0 -1
  1084. package/dist/policy-DMRiMdLn.mjs +0 -45
  1085. package/dist/policy-DMRiMdLn.mjs.map +0 -1
  1086. package/dist/portable-text-kcyN3F-a.mjs +0 -307
  1087. package/dist/portable-text-kcyN3F-a.mjs.map +0 -1
  1088. package/dist/preview--2VDLaND.mjs +0 -107
  1089. package/dist/preview--2VDLaND.mjs.map +0 -1
  1090. package/dist/protocol-FvwLA8P-.d.mts +0 -61
  1091. package/dist/protocol-FvwLA8P-.d.mts.map +0 -1
  1092. package/dist/public-submission-BRyK76U8.mjs +0 -250
  1093. package/dist/public-submission-BRyK76U8.mjs.map +0 -1
  1094. package/dist/public-url-7j0cpCFc.mjs +0 -101
  1095. package/dist/public-url-7j0cpCFc.mjs.map +0 -1
  1096. package/dist/query-BRNTde3V.mjs +0 -41
  1097. package/dist/query-BRNTde3V.mjs.map +0 -1
  1098. package/dist/query-DyYYWOKk.mjs +0 -1161
  1099. package/dist/query-DyYYWOKk.mjs.map +0 -1
  1100. package/dist/rate-limit-D0BcE76H.mjs +0 -120
  1101. package/dist/rate-limit-D0BcE76H.mjs.map +0 -1
  1102. package/dist/receipt-C4icyHlC.mjs +0 -43
  1103. package/dist/receipt-C4icyHlC.mjs.map +0 -1
  1104. package/dist/redirect-9DbtxSNG.mjs +0 -19
  1105. package/dist/redirect-9DbtxSNG.mjs.map +0 -1
  1106. package/dist/redirect-BvFKh8Sz.mjs +0 -416
  1107. package/dist/redirect-BvFKh8Sz.mjs.map +0 -1
  1108. package/dist/redirects-1nhdEaTq.mjs +0 -148
  1109. package/dist/redirects-1nhdEaTq.mjs.map +0 -1
  1110. package/dist/redirects-D1yMnSR9.mjs +0 -446
  1111. package/dist/redirects-D1yMnSR9.mjs.map +0 -1
  1112. package/dist/registry-CzPJNu3H.mjs +0 -8366
  1113. package/dist/registry-CzPJNu3H.mjs.map +0 -1
  1114. package/dist/relations-C8JpSkU6.mjs +0 -776
  1115. package/dist/relations-C8JpSkU6.mjs.map +0 -1
  1116. package/dist/request-meta-Bs60XW1m.mjs +0 -141
  1117. package/dist/request-meta-Bs60XW1m.mjs.map +0 -1
  1118. package/dist/resolve-BHWgMU_X.mjs +0 -100
  1119. package/dist/resolve-BHWgMU_X.mjs.map +0 -1
  1120. package/dist/revision-CGkQA0e5.mjs +0 -366
  1121. package/dist/revision-CGkQA0e5.mjs.map +0 -1
  1122. package/dist/route-wire-ClUVQduA.mjs +0 -197
  1123. package/dist/route-wire-ClUVQduA.mjs.map +0 -1
  1124. package/dist/routes-D2GFl3B7.mjs +0 -272
  1125. package/dist/routes-D2GFl3B7.mjs.map +0 -1
  1126. package/dist/runner-CLpxmhl8.mjs +0 -6197
  1127. package/dist/runner-CLpxmhl8.mjs.map +0 -1
  1128. package/dist/runner-CWl76CH3.d.mts +0 -68
  1129. package/dist/runner-CWl76CH3.d.mts.map +0 -1
  1130. package/dist/schema-27XefSYG.mjs +0 -13
  1131. package/dist/schema-27XefSYG.mjs.map +0 -1
  1132. package/dist/schema-Btvj3BMh.mjs +0 -815
  1133. package/dist/schema-Btvj3BMh.mjs.map +0 -1
  1134. package/dist/scopes-DGCj6K4p.mjs +0 -34
  1135. package/dist/scopes-DGCj6K4p.mjs.map +0 -1
  1136. package/dist/search-pZRRmWjh.mjs +0 -448
  1137. package/dist/search-pZRRmWjh.mjs.map +0 -1
  1138. package/dist/secrets-CIi0nFiR.mjs +0 -341
  1139. package/dist/secrets-CIi0nFiR.mjs.map +0 -1
  1140. package/dist/sections-CIhqs3Ao.mjs +0 -346
  1141. package/dist/sections-CIhqs3Ao.mjs.map +0 -1
  1142. package/dist/seo-DifeiGdl.mjs +0 -114
  1143. package/dist/seo-DifeiGdl.mjs.map +0 -1
  1144. package/dist/seo-DpYxmGaL.mjs +0 -133
  1145. package/dist/seo-DpYxmGaL.mjs.map +0 -1
  1146. package/dist/service-COVdVpSK.mjs +0 -150
  1147. package/dist/service-COVdVpSK.mjs.map +0 -1
  1148. package/dist/session-user-C6IEjuty.mjs +0 -61
  1149. package/dist/session-user-C6IEjuty.mjs.map +0 -1
  1150. package/dist/settings-CwcrX-Ay.mjs +0 -61
  1151. package/dist/settings-CwcrX-Ay.mjs.map +0 -1
  1152. package/dist/settings-D_cJtT48.mjs +0 -439
  1153. package/dist/settings-D_cJtT48.mjs.map +0 -1
  1154. package/dist/settings-tnPQN3Z2.mjs +0 -51
  1155. package/dist/settings-tnPQN3Z2.mjs.map +0 -1
  1156. package/dist/setup-complete-BOrI10UY.mjs +0 -65
  1157. package/dist/setup-complete-BOrI10UY.mjs.map +0 -1
  1158. package/dist/setup-nonce-0XTBLTsX.mjs +0 -25
  1159. package/dist/setup-nonce-0XTBLTsX.mjs.map +0 -1
  1160. package/dist/single-flight-cache-B5O2qhO1.mjs +0 -104
  1161. package/dist/single-flight-cache-B5O2qhO1.mjs.map +0 -1
  1162. package/dist/site-settings-B7vGFRDT.mjs +0 -50
  1163. package/dist/site-settings-B7vGFRDT.mjs.map +0 -1
  1164. package/dist/site-url-wEYRMHBv.mjs +0 -16
  1165. package/dist/site-url-wEYRMHBv.mjs.map +0 -1
  1166. package/dist/snapshot-W36KbLmc.mjs +0 -414
  1167. package/dist/snapshot-W36KbLmc.mjs.map +0 -1
  1168. package/dist/ssrf-CRJ-xom5.mjs +0 -406
  1169. package/dist/ssrf-CRJ-xom5.mjs.map +0 -1
  1170. package/dist/stage-DA0NrTRZ.mjs +0 -662
  1171. package/dist/stage-DA0NrTRZ.mjs.map +0 -1
  1172. package/dist/staged-Bw5eHbKS.mjs +0 -686
  1173. package/dist/staged-Bw5eHbKS.mjs.map +0 -1
  1174. package/dist/state-BTlprvUF.mjs +0 -153
  1175. package/dist/state-BTlprvUF.mjs.map +0 -1
  1176. package/dist/status-C6IrSLMT.mjs +0 -30
  1177. package/dist/status-C6IrSLMT.mjs.map +0 -1
  1178. package/dist/storage-query-CdVF2bng.d.mts +0 -1614
  1179. package/dist/storage-query-CdVF2bng.d.mts.map +0 -1
  1180. package/dist/tar-BGOZARjy.mjs +0 -449
  1181. package/dist/tar-BGOZARjy.mjs.map +0 -1
  1182. package/dist/target-YhYH_0uc.mjs +0 -27
  1183. package/dist/target-YhYH_0uc.mjs.map +0 -1
  1184. package/dist/taxonomies-DK_XBrmT.mjs +0 -697
  1185. package/dist/taxonomies-DK_XBrmT.mjs.map +0 -1
  1186. package/dist/taxonomies-S1M3rUC0.mjs +0 -939
  1187. package/dist/taxonomies-S1M3rUC0.mjs.map +0 -1
  1188. package/dist/taxonomy-BesdHIwi.mjs +0 -525
  1189. package/dist/taxonomy-BesdHIwi.mjs.map +0 -1
  1190. package/dist/tokens-B_ffPF1q.mjs +0 -171
  1191. package/dist/tokens-B_ffPF1q.mjs.map +0 -1
  1192. package/dist/transfer-9fVSxyrV.mjs +0 -166
  1193. package/dist/transfer-9fVSxyrV.mjs.map +0 -1
  1194. package/dist/transfer-B7LUTaYD.mjs +0 -8855
  1195. package/dist/transfer-B7LUTaYD.mjs.map +0 -1
  1196. package/dist/transfer-download-BdNq4VWN.mjs +0 -33
  1197. package/dist/transfer-download-BdNq4VWN.mjs.map +0 -1
  1198. package/dist/transformations-BtQdvyly.mjs +0 -196
  1199. package/dist/transformations-BtQdvyly.mjs.map +0 -1
  1200. package/dist/transport-CriYXY1c.mjs +0 -136
  1201. package/dist/transport-CriYXY1c.mjs.map +0 -1
  1202. package/dist/transport-SnhS6xku.d.mts +0 -42
  1203. package/dist/transport-SnhS6xku.d.mts.map +0 -1
  1204. package/dist/trusted-proxy-C0eHXPd-.mjs +0 -51
  1205. package/dist/trusted-proxy-C0eHXPd-.mjs.map +0 -1
  1206. package/dist/turnstile-BNPrWd1e.mjs +0 -53
  1207. package/dist/turnstile-BNPrWd1e.mjs.map +0 -1
  1208. package/dist/types-B8sF_kE5.d.mts +0 -287
  1209. package/dist/types-B8sF_kE5.d.mts.map +0 -1
  1210. package/dist/types-BYVIYOlD.d.mts +0 -1720
  1211. package/dist/types-BYVIYOlD.d.mts.map +0 -1
  1212. package/dist/types-Bs4bi95j.d.mts +0 -374
  1213. package/dist/types-Bs4bi95j.d.mts.map +0 -1
  1214. package/dist/types-CGuODCZi.d.mts +0 -198
  1215. package/dist/types-CGuODCZi.d.mts.map +0 -1
  1216. package/dist/types-CVsmpTcU.mjs +0 -18
  1217. package/dist/types-CVsmpTcU.mjs.map +0 -1
  1218. package/dist/types-ClFEExxn.mjs +0 -37
  1219. package/dist/types-ClFEExxn.mjs.map +0 -1
  1220. package/dist/types-D994zUWB.d.mts +0 -85
  1221. package/dist/types-D994zUWB.d.mts.map +0 -1
  1222. package/dist/types-DAj1ByJQ.d.mts +0 -125
  1223. package/dist/types-DAj1ByJQ.d.mts.map +0 -1
  1224. package/dist/types-Dlv6esp4.mjs +0 -77
  1225. package/dist/types-Dlv6esp4.mjs.map +0 -1
  1226. package/dist/types-Dr1LVwL7.d.mts +0 -363
  1227. package/dist/types-Dr1LVwL7.d.mts.map +0 -1
  1228. package/dist/types-MN9bOQ1g.d.mts +0 -198
  1229. package/dist/types-MN9bOQ1g.d.mts.map +0 -1
  1230. package/dist/types-d2Szb1oz.mjs +0 -16
  1231. package/dist/types-d2Szb1oz.mjs.map +0 -1
  1232. package/dist/types-ibtP7GEA.d.mts +0 -896
  1233. package/dist/types-ibtP7GEA.d.mts.map +0 -1
  1234. package/dist/types-j6MBDjlZ.mjs +0 -103
  1235. package/dist/types-j6MBDjlZ.mjs.map +0 -1
  1236. package/dist/update-check-D8No-E5s.mjs +0 -161
  1237. package/dist/update-check-D8No-E5s.mjs.map +0 -1
  1238. package/dist/upload-attempts-BodUoFBu.mjs +0 -32
  1239. package/dist/upload-attempts-BodUoFBu.mjs.map +0 -1
  1240. package/dist/url-pattern-DGAG6ZP2.mjs +0 -41
  1241. package/dist/url-pattern-DGAG6ZP2.mjs.map +0 -1
  1242. package/dist/user-BOvuF1sQ.mjs +0 -171
  1243. package/dist/user-BOvuF1sQ.mjs.map +0 -1
  1244. package/dist/utils-Dr01wRKt.mjs +0 -439
  1245. package/dist/utils-Dr01wRKt.mjs.map +0 -1
  1246. package/dist/validate-BttYU7NK.mjs +0 -516
  1247. package/dist/validate-BttYU7NK.mjs.map +0 -1
  1248. package/dist/validate-Df09inbC.d.mts +0 -468
  1249. package/dist/validate-Df09inbC.d.mts.map +0 -1
  1250. package/dist/validation-DH2WRwWO.mjs +0 -219
  1251. package/dist/validation-DH2WRwWO.mjs.map +0 -1
  1252. package/dist/version-BbygH8CT.mjs +0 -7
  1253. package/dist/version-BbygH8CT.mjs.map +0 -1
  1254. package/dist/version-CseoDDOd.mjs +0 -9
  1255. package/dist/version-CseoDDOd.mjs.map +0 -1
  1256. package/dist/virtual-modules-82GlnQyG.mjs +0 -516
  1257. package/dist/virtual-modules-82GlnQyG.mjs.map +0 -1
  1258. package/dist/widgets-DMAgGcQt.mjs +0 -126
  1259. package/dist/widgets-DMAgGcQt.mjs.map +0 -1
  1260. package/dist/wxr-taxonomies-Bi5kFSxQ.mjs +0 -453
  1261. package/dist/wxr-taxonomies-Bi5kFSxQ.mjs.map +0 -1
  1262. package/dist/wxr-taxonomies-y_FpYlDn.d.mts +0 -34
  1263. package/dist/wxr-taxonomies-y_FpYlDn.d.mts.map +0 -1
  1264. package/dist/zod-generator-DnfG5sGQ.mjs +0 -424
  1265. package/dist/zod-generator-DnfG5sGQ.mjs.map +0 -1
  1266. /package/dist/{api-tokens-B4COohsb.mjs → api-tokens-BLz2MtQs.mjs} +0 -0
  1267. /package/dist/{ssrf-sC4_5rxm.mjs → ssrf-tA45vIPX.mjs} +0 -0
@@ -1,1720 +0,0 @@
1
- import { r as ContentFieldFilters } from "./content-list-query-B6P37Ug_.mjs";
2
- import { f as FieldType, m as FieldWidgetOptions, p as FieldValidation } from "./types-Bs4bi95j.mjs";
3
- import { z } from "astro/zod";
4
- import { Permission } from "@emdash-cms/auth";
5
- import { CAPABILITY_RENAMES, CurrentPluginCapability, DeclaredAccess, DeprecatedPluginCapability, ManifestHookEntry as ManifestHookEntry$1, ManifestRouteEntry as ManifestRouteEntry$1, PluginCapability, PluginEditorDraftAccess, PluginEditorDraftFieldSelector, PluginFormData, PluginMcpManifestConfig, PluginRouteBodyMode, PluginRouteQuery, PluginRouteRequest, PluginStorageConfig, RouteOptions, StorageCollectionConfig, isDeprecatedCapability, normalizeCapabilities, normalizeCapability } from "@emdash-cms/plugin-types";
6
- import { ConfirmDialog, Element, PluginUiContext } from "@emdash-cms/blocks";
7
- import { JSX } from "astro/jsx-runtime";
8
-
9
- //#region src/plugins/types.d.ts
10
- declare function normalizePluginCapabilities(capabilities: readonly PluginCapability[]): PluginCapability[];
11
- declare function normalizePluginCapabilities(capabilities: readonly string[]): string[];
12
- /**
13
- * Query filter operators
14
- */
15
- interface RangeFilter {
16
- gt?: number | string;
17
- gte?: number | string;
18
- lt?: number | string;
19
- lte?: number | string;
20
- }
21
- interface InFilter {
22
- in: Array<string | number>;
23
- }
24
- interface StartsWithFilter {
25
- startsWith: string;
26
- }
27
- /**
28
- * Where clause value types
29
- */
30
- type WhereValue = string | number | boolean | null | RangeFilter | InFilter | StartsWithFilter;
31
- /**
32
- * Where clause for storage queries
33
- */
34
- type WhereClause = Record<string, WhereValue>;
35
- /**
36
- * Query options for storage.query()
37
- */
38
- interface QueryOptions {
39
- where?: WhereClause;
40
- orderBy?: Record<string, "asc" | "desc">;
41
- /** Default 50, max 100 */
42
- limit?: number;
43
- cursor?: string;
44
- }
45
- /**
46
- * Paginated result (used by storage.query, content.list, media.list)
47
- */
48
- interface PaginatedResult<T> {
49
- items: T[];
50
- cursor?: string;
51
- hasMore: boolean;
52
- }
53
- interface VersionedValue<T = unknown> {
54
- value: T;
55
- /** Opaque host revision, valid only for the key from which it was read. */
56
- revision: string;
57
- }
58
- type ConditionalWriteResult = {
59
- applied: true;
60
- revision: string;
61
- } | {
62
- applied: false;
63
- };
64
- interface ConditionalDeleteResult {
65
- applied: boolean;
66
- }
67
- /**
68
- * A single per-field integer delta for {@link StorageCollection.updateIf}.
69
- *
70
- * `inc`/`dec` values must be safe integers, enforced at runtime with
71
- * `Number.isSafeInteger` (which also rejects `NaN`/`Infinity`), because a TS
72
- * `number` cannot forbid float literals. Deltas are applied entirely in-SQL
73
- * over the stored value with `COALESCE(<value>, 0) ± n`, so a delta on a
74
- * missing or JSON-`null` field starts from `0` (never corrupts the document).
75
- *
76
- * `updateIf` does NOT clamp: a `dec` can drive a field negative when the
77
- * `where` guard doesn't cover the delta magnitude (e.g. stock `2` with
78
- * `where: { stock: { gte: 1 } }` and `delta: { stock: { dec: 3 } }` → `-1`,
79
- * `applied: true`). The guard is the caller's responsibility — pair a `dec: k`
80
- * with a `gte: k` guard to prevent underflow.
81
- */
82
- type NumericDelta = {
83
- inc: number;
84
- } | {
85
- dec: number;
86
- };
87
- /**
88
- * Arguments to {@link StorageCollection.updateIf}.
89
- *
90
- * `where` reuses the {@link QueryOptions} `WhereClause` verbatim — the guard is
91
- * evaluated in-SQL with the same numeric-correct, total comparisons as
92
- * `query()`. An empty `where: {}` emits no guard, i.e. it matches the row
93
- * unconditionally (update-if-row-exists) — a footgun in the no-oversell case,
94
- * where a real predicate (e.g. `{ stock: { gte: 1 } }`) is what you want.
95
- *
96
- * At least one of `set` / `delta` must be present (a runtime error is thrown
97
- * otherwise). A field may not appear in both `set` and `delta` in the same
98
- * call. `set` and `delta` are separate arguments (not a union) so a wholesale
99
- * value that happens to look like `{ inc: 5 }` is never mistaken for a delta.
100
- */
101
- interface UpdateIfArgs<T> {
102
- /**
103
- * Guard evaluated in-SQL; identical semantics to `query({ where })`. An
104
- * empty `{}` means "match the row unconditionally (no guard)".
105
- */
106
- where: WhereClause;
107
- /** Wholesale field values merged into the stored JSON document. */
108
- set?: Partial<T>;
109
- /** Per-field integer deltas applied in-SQL (`COALESCE(base, 0) ± n`). */
110
- delta?: { [K in keyof T]?: NumericDelta };
111
- }
112
- /**
113
- * Result of {@link StorageCollection.updateIf}.
114
- *
115
- * `applied: false` intentionally conflates "row absent" and "guard failed": a
116
- * single-statement guarded `UPDATE` cannot distinguish them, and the caller
117
- * should not need to. `updateIf` is update-only — it never inserts a missing
118
- * row.
119
- */
120
- type UpdateIfResult<T> = {
121
- applied: true;
122
- data: T;
123
- } | {
124
- applied: false;
125
- };
126
- /**
127
- * Storage collection interface - the API exposed to plugins
128
- * No async iterators - all operations return promises with pagination
129
- */
130
- interface StorageCollection<T = unknown> {
131
- get(id: string): Promise<T | null>;
132
- put(id: string, data: T): Promise<void>;
133
- delete(id: string): Promise<boolean>;
134
- exists(id: string): Promise<boolean>;
135
- /** A stored JSON null returns an envelope with value: null; only an absent row returns null. */
136
- getVersioned(id: string): Promise<VersionedValue<T> | null>;
137
- /** A null expected revision creates only when absent. Errors reject; conflicts return applied: false. */
138
- compareAndSet(id: string, expectedRevision: string | null, data: T): Promise<ConditionalWriteResult>;
139
- compareAndDelete(id: string, expectedRevision: string): Promise<ConditionalDeleteResult>;
140
- getMany(ids: string[]): Promise<Map<string, T>>;
141
- putMany(items: Array<{
142
- id: string;
143
- data: T;
144
- }>): Promise<void>;
145
- deleteMany(ids: string[]): Promise<number>;
146
- query(options?: QueryOptions): Promise<PaginatedResult<{
147
- id: string;
148
- data: T;
149
- }>>;
150
- count(where?: WhereClause): Promise<number>;
151
- /**
152
- * Predicate-guarded atomic update. Applies `set`/`delta` to the row `id`
153
- * only if it exists and the `where` guard matches, in a single guarded
154
- * `UPDATE … RETURNING`. This is the no-oversell primitive: the guard and the
155
- * arithmetic live in one statement, so N concurrent guarded decrements
156
- * serialize correctly. `applied: false` means the row was absent OR the
157
- * guard failed (the two are intentionally indistinguishable). Non-object
158
- * documents, invalid counters and unsafe arithmetic results also fail the
159
- * guard. Never inserts.
160
- *
161
- * Serialization failures and deadlocks throw `StorageSerializationError`.
162
- * Retry the write with a bounded policy; restart an explicit transaction
163
- * before retrying its operations.
164
- */
165
- updateIf(id: string, args: UpdateIfArgs<T>): Promise<UpdateIfResult<T>>;
166
- }
167
- /**
168
- * Plugin storage context - typed based on declared collections
169
- */
170
- type PluginStorage<T extends PluginStorageConfig> = { [K in keyof T]: StorageCollection };
171
- /**
172
- * Plugin-scoped key-value state.
173
- *
174
- * Convention:
175
- * - `state:*` - Internal plugin state (not shown to users)
176
- * - `cache:*` - Reusable computed or remote data
177
- *
178
- * The `settings:*` namespace remains a compatibility alias through EmDash
179
- * 0.x. New code uses `PluginContext.settings` for user configuration.
180
- */
181
- interface KVAccess {
182
- get<T>(key: string): Promise<T | null>;
183
- getVersioned<T>(key: string): Promise<VersionedValue<T> | null>;
184
- /** A null expected revision creates only when absent. Errors reject; conflicts return applied: false. */
185
- compareAndSet(key: string, expectedRevision: string | null, value: unknown): Promise<ConditionalWriteResult>;
186
- compareAndDelete(key: string, expectedRevision: string): Promise<ConditionalDeleteResult>;
187
- set(key: string, value: unknown): Promise<void>;
188
- delete(key: string): Promise<boolean>;
189
- list(prefix?: string): Promise<Array<{
190
- key: string;
191
- value: unknown;
192
- }>>;
193
- }
194
- /** Plugin settings. Fields declared as `secret` in `admin.settingsSchema` are encrypted. */
195
- interface SettingsAccess {
196
- get<T>(key: string): Promise<T | null>;
197
- getVersioned<T>(key: string): Promise<VersionedValue<T> | null>;
198
- compareAndSet(key: string, expectedRevision: string | null, value: unknown): Promise<ConditionalWriteResult>;
199
- compareAndDelete(key: string, expectedRevision: string): Promise<ConditionalDeleteResult>;
200
- set(key: string, value: unknown): Promise<void>;
201
- delete(key: string): Promise<boolean>;
202
- list(prefix?: string): Promise<Array<{
203
- key: string;
204
- value: unknown;
205
- }>>;
206
- }
207
- /**
208
- * SEO metadata for a content item, as stored in the core SEO panel.
209
- *
210
- * Only present on items in collections with `has_seo = 1`. For collections
211
- * without SEO enabled, `ContentItem.seo` is `undefined`.
212
- */
213
- interface ContentItemSeo {
214
- title: string | null;
215
- description: string | null;
216
- image: string | null;
217
- canonical: string | null;
218
- noIndex: boolean;
219
- }
220
- /**
221
- * SEO input accepted by content write operations.
222
- *
223
- * All fields are optional — only fields that are present overwrite existing
224
- * values. An empty object is treated as a no-op.
225
- */
226
- interface ContentItemSeoInput {
227
- title?: string | null;
228
- description?: string | null;
229
- image?: string | null;
230
- canonical?: string | null;
231
- noIndex?: boolean;
232
- }
233
- /**
234
- * Content item returned from content API
235
- */
236
- interface ContentItem {
237
- id: string;
238
- type: string;
239
- slug: string | null;
240
- status: string;
241
- locale: string | null;
242
- data: Record<string, unknown>;
243
- /**
244
- * SEO metadata, populated when the collection has SEO enabled
245
- * (`has_seo = 1`). `undefined` for non-SEO collections.
246
- */
247
- seo?: ContentItemSeo;
248
- createdAt: string;
249
- updatedAt: string;
250
- publishedAt: string | null;
251
- /** Scheduled publication time, if set (e.g. scheduled items or scheduled draft changes). */
252
- scheduledAt?: string | null;
253
- authorId?: string | null;
254
- translationGroup?: string | null;
255
- liveRevisionId?: string | null;
256
- draftRevisionId?: string | null;
257
- version?: number;
258
- }
259
- interface ContentTranslationSummary {
260
- id: string;
261
- locale: string | null;
262
- slug: string | null;
263
- status: string;
264
- updatedAt: string;
265
- }
266
- interface ContentRevisionInfo {
267
- id: string;
268
- collection: string;
269
- entryId: string;
270
- data: Record<string, unknown>;
271
- createdAt: string;
272
- }
273
- interface FieldSchemaInfo {
274
- slug: string;
275
- label: string;
276
- type: FieldType;
277
- required: boolean;
278
- unique: boolean;
279
- default?: unknown;
280
- validation?: FieldValidation;
281
- widget?: string;
282
- options?: FieldWidgetOptions;
283
- searchable: boolean;
284
- indexed: boolean;
285
- translatable: boolean;
286
- sortOrder: number;
287
- }
288
- interface CollectionSchemaInfo {
289
- slug: string;
290
- label: string;
291
- labelSingular: string | null;
292
- description: string | null;
293
- supports: string[];
294
- hasSeo: boolean;
295
- titleField: string | null;
296
- dateField: string | null;
297
- urlPattern: string | null;
298
- routable: boolean;
299
- hidden: boolean;
300
- fields: FieldSchemaInfo[];
301
- }
302
- interface SchemaAccess {
303
- listCollections(): Promise<CollectionSchemaInfo[]>;
304
- getCollection(slug: string): Promise<CollectionSchemaInfo | null>;
305
- }
306
- interface ContentListWhere {
307
- /** Exact match on `status` (e.g. `"published"`, `"draft"`). */
308
- status?: string;
309
- /** Exact match on `locale` (e.g. `"en"`, `"fr-CA"`). */
310
- locale?: string;
311
- /** AND-combined filters over custom fields explicitly marked as indexed. */
312
- fieldFilters?: ContentFieldFilters;
313
- }
314
- /**
315
- * Content list options
316
- */
317
- interface ContentListOptions {
318
- limit?: number;
319
- cursor?: string;
320
- orderBy?: Record<string, "asc" | "desc">;
321
- where?: ContentListWhere;
322
- }
323
- /**
324
- * Input accepted by `content.create` / `content.update`.
325
- *
326
- * Most entries are field slugs mapped to their values. The reserved `seo`
327
- * key is extracted and routed to the core SEO panel (the `_emdash_seo`
328
- * table), matching the shape accepted by the REST API. Passing `seo` for a
329
- * collection that does not have SEO enabled throws a validation error.
330
- */
331
- type ContentWriteInput = Record<string, unknown> & {
332
- seo?: ContentItemSeoInput;
333
- };
334
- /** Options accepted by `content.create`. */
335
- interface ContentCreateOptions {
336
- /** Locale for the new content row. Defaults to the configured site locale, then `en`. */
337
- locale?: string;
338
- /** Existing row in the same collection whose translation group the new row joins. */
339
- translationOf?: string;
340
- }
341
- type PluginContentCreateCallback = (pluginId: string, collection: string, data: ContentWriteInput, options?: ContentCreateOptions & {
342
- /** Save-hook origin supplied by sandbox transports to prevent hook re-entry. */originHook?: "content:beforeSave" | "content:afterSave";
343
- sandboxOrigin?: true;
344
- }) => Promise<ContentItem>;
345
- /**
346
- * Taxonomy definition returned from the taxonomy API (e.g. "category", "tag").
347
- */
348
- interface TaxonomyDefInfo {
349
- name: string;
350
- label: string;
351
- labelSingular: string | null;
352
- hierarchical: boolean;
353
- /** Collections this taxonomy is attached to (e.g. `["posts"]`). */
354
- collections: string[];
355
- locale: string;
356
- }
357
- /**
358
- * Taxonomy term returned from the taxonomy API. Flat shape — for hierarchical
359
- * taxonomies the tree is reconstructed via `parentId` (which stores the
360
- * parent's locale-agnostic `translationGroup`).
361
- */
362
- interface TaxonomyTermInfo {
363
- id: string;
364
- /** Taxonomy name this term belongs to (e.g. "category"). */
365
- taxonomy: string;
366
- slug: string;
367
- label: string;
368
- parentId: string | null;
369
- /** Term metadata as edited in the admin (`description` etc.). */
370
- data: Record<string, unknown> | null;
371
- locale: string;
372
- translationGroup: string | null;
373
- }
374
- /**
375
- * Options accepted by taxonomy read operations. Omitting `locale` returns
376
- * rows for every locale.
377
- */
378
- interface TaxonomyReadOptions {
379
- locale?: string;
380
- }
381
- interface TaxonomyTermCreateInput {
382
- label: string;
383
- slug?: string;
384
- parentId?: string | null;
385
- description?: string;
386
- locale?: string;
387
- translationOf?: string;
388
- }
389
- /**
390
- * Content access interface - capability-gated
391
- */
392
- interface ContentAccess {
393
- get(collection: string, id: string): Promise<ContentItem | null>;
394
- list(collection: string, options?: ContentListOptions): Promise<PaginatedResult<ContentItem>>;
395
- getTranslations?(collection: string, id: string): Promise<{
396
- translationGroup: string;
397
- translations: ContentTranslationSummary[];
398
- }>;
399
- getPublicUrl?(collection: string, id: string): Promise<string | null>;
400
- listRevisions?(collection: string, id: string, options?: {
401
- limit?: number;
402
- }): Promise<ContentRevisionInfo[]>;
403
- getRevision?(collection: string, id: string, revisionId: string): Promise<ContentRevisionInfo | null>;
404
- create?(collection: string, data: ContentWriteInput, options?: ContentCreateOptions): Promise<ContentItem>;
405
- update?(collection: string, id: string, data: ContentWriteInput): Promise<ContentItem>;
406
- delete?(collection: string, id: string): Promise<boolean>;
407
- getVersioned?(collection: string, id: string): Promise<VersionedContentItem | null>;
408
- publish?(collection: string, id: string, options: {
409
- _rev: string;
410
- }): Promise<VersionedContentItem>;
411
- unpublish?(collection: string, id: string, options: {
412
- _rev: string;
413
- }): Promise<VersionedContentItem>;
414
- schedule?(collection: string, id: string, options: {
415
- scheduledAt: string;
416
- _rev: string;
417
- }): Promise<VersionedContentItem>;
418
- unschedule?(collection: string, id: string, options: {
419
- _rev: string;
420
- }): Promise<VersionedContentItem>;
421
- getTrashedVersioned?(collection: string, id: string): Promise<VersionedContentItem | null>;
422
- restore?(collection: string, id: string, options: {
423
- _rev: string;
424
- }): Promise<VersionedContentItem>;
425
- }
426
- interface VersionedContentItem {
427
- item: ContentItem;
428
- _rev: string;
429
- }
430
- /**
431
- * Taxonomy access interface — capability-gated on `taxonomies:read`.
432
- */
433
- interface TaxonomyAccess {
434
- /** List taxonomy definitions. */
435
- getAll(options?: TaxonomyReadOptions): Promise<TaxonomyDefInfo[]>;
436
- /** All terms of a taxonomy, ordered by label. */
437
- getTerms(taxonomy: string, options?: TaxonomyReadOptions): Promise<TaxonomyTermInfo[]>;
438
- /** Terms assigned to a content entry, optionally scoped to one taxonomy. */
439
- getEntryTerms(collection: string, entryId: string, options?: TaxonomyReadOptions & {
440
- taxonomy?: string;
441
- }): Promise<TaxonomyTermInfo[]>;
442
- createTerm?(taxonomy: string, input: TaxonomyTermCreateInput): Promise<TaxonomyTermInfo>;
443
- addEntryTerms?(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
444
- removeEntryTerms?(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
445
- }
446
- /** Taxonomy mutations available with `taxonomies:write`. */
447
- interface TaxonomyAccessWithWrite extends TaxonomyAccess {
448
- createTerm(taxonomy: string, input: TaxonomyTermCreateInput): Promise<TaxonomyTermInfo>;
449
- addEntryTerms(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
450
- removeEntryTerms(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
451
- }
452
- /**
453
- * Public byline profile returned from the byline API. Omits the linked user
454
- * account, guest flag, and custom field values.
455
- */
456
- interface BylineInfo {
457
- id: string;
458
- slug: string;
459
- displayName: string;
460
- bio: string | null;
461
- websiteUrl: string | null;
462
- /** Media ID of the avatar image. Resolve it with `ctx.media.get()`. */
463
- avatarMediaId: string | null;
464
- locale: string;
465
- /** Locale-agnostic identity shared by every translation of the byline. */
466
- translationGroup: string;
467
- }
468
- /** A byline credited on a content entry. */
469
- interface BylineCreditInfo {
470
- byline: BylineInfo;
471
- sortOrder: number;
472
- roleLabel: string | null;
473
- /**
474
- * `explicit` for a credit assigned in the editor; `inferred` when the entry
475
- * has no credits and the byline linked to the entry's author is used.
476
- */
477
- source: "explicit" | "inferred";
478
- }
479
- interface BylineListOptions {
480
- /** Match one locale. Omit to list every locale. */
481
- locale?: string;
482
- /** Page size, clamped to 1–100. Defaults to 50. */
483
- limit?: number;
484
- cursor?: string;
485
- }
486
- /** Byline credits for one entry in a batched lookup. */
487
- interface EntryBylineCredits {
488
- entryId: string;
489
- bylines: BylineCreditInfo[];
490
- }
491
- /**
492
- * Byline access interface — capability-gated on `bylines:read`.
493
- */
494
- interface BylineAccess {
495
- /** Get a byline by its row ID. */
496
- get(id: string): Promise<BylineInfo | null>;
497
- /** List bylines, newest first. */
498
- list(options?: BylineListOptions): Promise<PaginatedResult<BylineInfo>>;
499
- /**
500
- * Bylines credited on up to 100 entries of one collection, in the order the
501
- * IDs were given. Duplicate IDs are returned once. Credits resolve at each
502
- * entry's own locale, matching what the site renders. Trashed and missing
503
- * entries have no credits.
504
- */
505
- getEntriesBylines(collection: string, entryIds: string[]): Promise<EntryBylineCredits[]>;
506
- }
507
- type RedirectStatus = 301 | 302 | 307 | 308 | 410 | 451;
508
- interface RedirectInfo {
509
- id: string;
510
- source: string;
511
- destination: string;
512
- type: RedirectStatus;
513
- isPattern: boolean;
514
- enabled: boolean;
515
- hits: number;
516
- lastHitAt: string | null;
517
- groupName: string | null;
518
- auto: boolean;
519
- createdAt: string;
520
- updatedAt: string;
521
- }
522
- interface VersionedRedirect {
523
- redirect: RedirectInfo;
524
- /** Opaque host revision. Pass it back unchanged for update or delete. */
525
- _rev: string;
526
- }
527
- interface RedirectListOptions {
528
- limit?: number;
529
- cursor?: string;
530
- search?: string;
531
- group?: string;
532
- enabled?: boolean;
533
- auto?: boolean;
534
- }
535
- interface RedirectCreateInput {
536
- source: string;
537
- destination?: string;
538
- type?: RedirectStatus;
539
- enabled?: boolean;
540
- groupName?: string | null;
541
- }
542
- interface RedirectUpdateInput {
543
- source?: string;
544
- destination?: string;
545
- type?: RedirectStatus;
546
- enabled?: boolean;
547
- groupName?: string | null;
548
- }
549
- interface RedirectAccess {
550
- list(options?: RedirectListOptions): Promise<PaginatedResult<RedirectInfo>>;
551
- get(id: string): Promise<VersionedRedirect | null>;
552
- create?(input: RedirectCreateInput): Promise<VersionedRedirect>;
553
- update?(id: string, input: RedirectUpdateInput & {
554
- _rev: string;
555
- }): Promise<VersionedRedirect>;
556
- delete?(id: string, options: {
557
- _rev: string;
558
- }): Promise<boolean>;
559
- }
560
- interface RedirectAccessWithWrite extends RedirectAccess {
561
- create(input: RedirectCreateInput): Promise<VersionedRedirect>;
562
- update(id: string, input: RedirectUpdateInput & {
563
- _rev: string;
564
- }): Promise<VersionedRedirect>;
565
- delete(id: string, options: {
566
- _rev: string;
567
- }): Promise<boolean>;
568
- }
569
- /**
570
- * Full content access with write operations
571
- */
572
- interface ContentAccessWithWrite extends ContentAccess {
573
- create(collection: string, data: ContentWriteInput, options?: ContentCreateOptions): Promise<ContentItem>;
574
- update(collection: string, id: string, data: ContentWriteInput): Promise<ContentItem>;
575
- delete(collection: string, id: string): Promise<boolean>;
576
- }
577
- /**
578
- * Media item returned from media API
579
- */
580
- interface MediaItem {
581
- id: string;
582
- filename: string;
583
- mimeType: string;
584
- size: number | null;
585
- url: string;
586
- createdAt: string;
587
- width?: number | null;
588
- height?: number | null;
589
- alt?: string | null;
590
- caption?: string | null;
591
- focalX?: number | null;
592
- focalY?: number | null;
593
- blurhash?: string | null;
594
- dominantColor?: string | null;
595
- folderId?: string | null;
596
- status?: "ready";
597
- }
598
- interface MediaBytes {
599
- bytes: Uint8Array;
600
- filename: string;
601
- mimeType: string;
602
- size: number;
603
- contentHash?: string;
604
- }
605
- interface MediaMetadataPatch {
606
- alt?: string | null;
607
- caption?: string | null;
608
- focalX?: number | null;
609
- focalY?: number | null;
610
- }
611
- /**
612
- * Media list options
613
- */
614
- interface MediaListOptions {
615
- limit?: number;
616
- cursor?: string;
617
- mimeType?: string;
618
- }
619
- /**
620
- * Media access interface - capability-gated
621
- */
622
- interface MediaAccess {
623
- get(id: string): Promise<MediaItem | null>;
624
- list(options?: MediaListOptions): Promise<PaginatedResult<MediaItem>>;
625
- /** Read ready media bytes, bounded by the caller's limit and the host maximum. */
626
- readBytes?(id: string, options?: {
627
- maxBytes?: number;
628
- }): Promise<MediaBytes>;
629
- /** Change only alt text, caption, or the complete focal-point pair. */
630
- updateMetadata?(id: string, patch: MediaMetadataPatch): Promise<MediaItem>;
631
- getUploadUrl?(filename: string, contentType: string): Promise<{
632
- uploadUrl: string;
633
- mediaId: string;
634
- }>;
635
- /**
636
- * Upload media bytes directly. Preferred in sandboxed mode where
637
- * plugins cannot make external requests to a presigned URL.
638
- * Returns the created media item.
639
- */
640
- upload?(filename: string, contentType: string, bytes: ArrayBuffer): Promise<{
641
- mediaId: string;
642
- storageKey: string;
643
- url: string;
644
- }>;
645
- delete?(id: string): Promise<boolean>;
646
- }
647
- /**
648
- * Full media access with write operations
649
- */
650
- interface MediaAccessWithWrite extends MediaAccess {
651
- getUploadUrl(filename: string, contentType: string): Promise<{
652
- uploadUrl: string;
653
- mediaId: string;
654
- }>;
655
- upload(filename: string, contentType: string, bytes: ArrayBuffer): Promise<{
656
- mediaId: string;
657
- storageKey: string;
658
- url: string;
659
- }>;
660
- delete(id: string): Promise<boolean>;
661
- }
662
- /**
663
- * HTTP client interface - requires network:request capability
664
- */
665
- interface HttpAccess {
666
- /**
667
- * Fetch an allowed external URL and return a buffered response.
668
- * Decoded request and response bodies are each limited to 8 MiB.
669
- */
670
- fetch(url: string, init?: RequestInit): Promise<Response>;
671
- }
672
- /**
673
- * Logger interface - always available
674
- */
675
- interface LogAccess {
676
- debug(message: string, data?: unknown): void;
677
- info(message: string, data?: unknown): void;
678
- warn(message: string, data?: unknown): void;
679
- error(message: string, data?: unknown): void;
680
- }
681
- /**
682
- * Site information available to all plugins
683
- */
684
- interface SiteInfo {
685
- /** Site name (from settings) */
686
- name: string;
687
- /** Site URL (from settings or request) */
688
- url: string;
689
- /** Site locale (from settings, defaults to "en") */
690
- locale: string;
691
- /**
692
- * Astro's `trailingSlash` routing policy, from the host's Astro config.
693
- * Plugins that build absolute URLs (sitemap, canonical, hreflang) should
694
- * honor this so the URLs they emit match what the site serves. `createSiteInfo`
695
- * always populates it (defaulting to `"ignore"`, Astro's default); it is
696
- * optional on the type so pre-existing `SiteInfo` construction stays valid.
697
- */
698
- trailingSlash?: "always" | "never" | "ignore";
699
- }
700
- /**
701
- * Read-only user information exposed to plugins.
702
- * Sensitive fields (password hashes, sessions, passkeys) are excluded.
703
- */
704
- interface UserInfo {
705
- id: string;
706
- email: string;
707
- name: string | null;
708
- role: number;
709
- createdAt: string;
710
- }
711
- /**
712
- * User access interface - requires read:users capability
713
- */
714
- interface UserAccess {
715
- /** Get a user by ID */
716
- get(id: string): Promise<UserInfo | null>;
717
- /** Get a user by email */
718
- getByEmail(email: string): Promise<UserInfo | null>;
719
- /** List users with optional filters */
720
- list(opts?: {
721
- role?: number;
722
- limit?: number;
723
- cursor?: string;
724
- }): Promise<{
725
- items: UserInfo[];
726
- nextCursor?: string;
727
- }>;
728
- }
729
- type PluginCommentStatus = "approved" | "pending" | "spam";
730
- /** Comment data exposed by the explicit personal-data `comments:read` capability. */
731
- interface PluginComment {
732
- id: string;
733
- collection: string;
734
- contentId: string;
735
- parentId: string | null;
736
- authorName: string;
737
- authorEmail: string;
738
- body: string;
739
- status: PluginCommentStatus;
740
- ipHash: string | null;
741
- userAgent: string | null;
742
- moderationMetadata: Record<string, unknown> | null;
743
- createdAt: string;
744
- updatedAt: string;
745
- }
746
- interface CommentListOptions {
747
- status?: PluginCommentStatus;
748
- collection?: string;
749
- contentId?: string;
750
- limit?: number;
751
- cursor?: string;
752
- }
753
- interface CommentCountOptions {
754
- status?: PluginCommentStatus;
755
- collection?: string;
756
- contentId?: string;
757
- }
758
- interface CommentAccess {
759
- get(id: string): Promise<PluginComment | null>;
760
- list(options?: CommentListOptions): Promise<PaginatedResult<PluginComment>>;
761
- count(options?: CommentCountOptions): Promise<number>;
762
- setStatus?(id: string, status: PluginCommentStatus, options: {
763
- expectedStatus: PluginCommentStatus;
764
- }): Promise<PluginComment>;
765
- }
766
- /**
767
- * The unified plugin context - same shape for all hooks and routes
768
- */
769
- interface PluginContext<TStorage extends PluginStorageConfig = PluginStorageConfig> {
770
- /** Plugin metadata */
771
- plugin: {
772
- id: string;
773
- version: string;
774
- };
775
- /** Storage collections - only if plugin declares storage */
776
- storage: PluginStorage<TStorage>;
777
- /** Key-value store for internal state */
778
- kv: KVAccess;
779
- /** Plugin settings. Secret schema fields are encrypted by the host. */
780
- settings: SettingsAccess;
781
- /** Content access - only if read:content or write:content capability */
782
- content?: ContentAccess | ContentAccessWithWrite;
783
- /** Schema discovery - only if schema:read capability */
784
- schema?: SchemaAccess;
785
- /** Taxonomy access - only if a taxonomy capability is declared. */
786
- taxonomies?: TaxonomyAccess | TaxonomyAccessWithWrite;
787
- /** Byline access - only if bylines:read capability */
788
- bylines?: BylineAccess;
789
- /** Redirect access - only if redirects:read or redirects:write capability */
790
- redirects?: RedirectAccess | RedirectAccessWithWrite;
791
- /** Media access - only if read:media or write:media capability */
792
- media?: MediaAccess | MediaAccessWithWrite;
793
- /** HTTP client - only if network:request capability */
794
- http?: HttpAccess;
795
- /** Logger - always available */
796
- log: LogAccess;
797
- /** Site information - always available */
798
- site: SiteInfo;
799
- /** URL helper - generates absolute URLs from paths. Always available. */
800
- url(path: string): string;
801
- /** User access - only if read:users capability */
802
- users?: UserAccess;
803
- /** Comment access — only if comments:read or comments:moderate is declared. */
804
- comments?: CommentAccess;
805
- /** Cron task scheduling - always available, scoped to plugin */
806
- cron?: CronAccess;
807
- /** Email access - only if email:send capability and a provider is configured */
808
- email?: EmailAccess;
809
- }
810
- /**
811
- * Cron access interface �� always available on plugin context, scoped to plugin.
812
- */
813
- interface CronAccess {
814
- /** Schedule a recurring or one-shot task */
815
- schedule(name: string, opts: {
816
- schedule: string;
817
- data?: Record<string, unknown>;
818
- }): Promise<void>;
819
- /** Cancel a scheduled task */
820
- cancel(name: string): Promise<void>;
821
- /** List this plugin's scheduled tasks */
822
- list(): Promise<CronTaskInfo[]>;
823
- }
824
- /**
825
- * Task info returned from CronAccess.list()
826
- */
827
- interface CronTaskInfo {
828
- name: string;
829
- schedule: string;
830
- nextRunAt: string;
831
- lastRunAt: string | null;
832
- }
833
- /**
834
- * Event passed to the `cron` hook handler
835
- */
836
- interface CronEvent {
837
- name: string;
838
- data?: Record<string, unknown>;
839
- scheduledAt: string;
840
- }
841
- /**
842
- * Cron hook handler type
843
- */
844
- type CronHandler = (event: CronEvent, ctx: PluginContext) => Promise<void>;
845
- /**
846
- * Email access interface — requires `email:send` capability.
847
- * Undefined when no `email:deliver` provider is configured.
848
- *
849
- * Related capabilities:
850
- * - `email:send` — grants ctx.email (this interface)
851
- * - `email:provide` — allows registering the `email:deliver` exclusive hook
852
- * - `email:intercept` — allows registering `email:beforeSend` / `email:afterSend` hooks
853
- */
854
- interface EmailAccess {
855
- send(message: EmailMessage): Promise<void>;
856
- }
857
- /**
858
- * Email message shape
859
- */
860
- interface EmailMessage {
861
- to: string;
862
- /** Additional visible recipients. */
863
- cc?: string[];
864
- /** Address that replies go to instead of the sender. */
865
- replyTo?: string;
866
- subject: string;
867
- text: string;
868
- html?: string;
869
- }
870
- /**
871
- * Event passed to email:beforeSend hooks (middleware — transform, validate, cancel)
872
- */
873
- interface EmailBeforeSendEvent {
874
- message: EmailMessage;
875
- /** Where the email originated — "system" for auth emails, plugin ID for plugin emails */
876
- source: string;
877
- }
878
- /**
879
- * Event passed to email:deliver hook (exclusive — exactly one provider delivers)
880
- */
881
- interface EmailDeliverEvent {
882
- message: EmailMessage;
883
- source: string;
884
- }
885
- /**
886
- * Event passed to email:afterSend hooks (logging, analytics, fire-and-forget)
887
- */
888
- interface EmailAfterSendEvent {
889
- message: EmailMessage;
890
- source: string;
891
- }
892
- /**
893
- * Handler type for email:beforeSend hooks.
894
- * Returns modified message, or false to cancel delivery.
895
- */
896
- type EmailBeforeSendHandler = (event: EmailBeforeSendEvent, ctx: PluginContext) => Promise<EmailMessage | false>;
897
- /**
898
- * Handler type for email:deliver hooks (exclusive provider).
899
- */
900
- type EmailDeliverHandler = (event: EmailDeliverEvent, ctx: PluginContext) => Promise<void>;
901
- /**
902
- * Handler type for email:afterSend hooks (fire-and-forget).
903
- */
904
- type EmailAfterSendHandler = (event: EmailAfterSendEvent, ctx: PluginContext) => Promise<void>;
905
- /**
906
- * Collection comment settings (read from _emdash_collections)
907
- */
908
- interface CollectionCommentSettings {
909
- commentsEnabled: boolean;
910
- commentsModeration: "all" | "first_time" | "none";
911
- commentsClosedAfterDays: number;
912
- commentsAutoApproveUsers: boolean;
913
- }
914
- /**
915
- * Event passed to comment:beforeCreate hooks (middleware — transform, enrich, reject)
916
- */
917
- interface CommentBeforeCreateEvent {
918
- comment: {
919
- collection: string;
920
- contentId: string;
921
- parentId: string | null;
922
- authorName: string;
923
- authorEmail: string;
924
- authorUserId: string | null;
925
- body: string;
926
- ipHash: string | null;
927
- userAgent: string | null;
928
- };
929
- /** Metadata bag — plugins can attach signals for the moderator */
930
- metadata: Record<string, unknown>;
931
- }
932
- /**
933
- * Event passed to comment:moderate hook (exclusive — decides initial status)
934
- */
935
- interface CommentModerateEvent {
936
- comment: CommentBeforeCreateEvent["comment"];
937
- metadata: Record<string, unknown>;
938
- collectionSettings: CollectionCommentSettings;
939
- /** Number of prior approved comments from this email address */
940
- priorApprovedCount: number;
941
- }
942
- /**
943
- * Moderation decision returned by the comment:moderate handler
944
- */
945
- interface ModerationDecision {
946
- status: "approved" | "pending" | "spam";
947
- /** Optional reason for admin visibility */
948
- reason?: string;
949
- }
950
- /**
951
- * Stored comment shape (full record with id, status, timestamps)
952
- */
953
- interface StoredComment {
954
- id: string;
955
- collection: string;
956
- contentId: string;
957
- parentId: string | null;
958
- authorName: string;
959
- authorEmail: string;
960
- authorUserId: string | null;
961
- body: string;
962
- status: string;
963
- moderationMetadata: Record<string, unknown> | null;
964
- createdAt: string;
965
- updatedAt: string;
966
- }
967
- /**
968
- * Event passed to comment:afterCreate hooks (fire-and-forget)
969
- */
970
- interface CommentAfterCreateEvent {
971
- comment: StoredComment;
972
- metadata: Record<string, unknown>;
973
- /** The content item the comment is on */
974
- content: {
975
- id: string;
976
- collection: string;
977
- slug: string;
978
- title?: string;
979
- };
980
- /** The content author (for notifications) */
981
- contentAuthor?: {
982
- id: string;
983
- name: string | null;
984
- email: string;
985
- };
986
- }
987
- /**
988
- * Event passed to comment:afterModerate hooks (fire-and-forget, admin status change)
989
- */
990
- interface CommentAfterModerateEvent {
991
- comment: StoredComment;
992
- previousStatus: string;
993
- newStatus: string;
994
- /** The admin who moderated */
995
- moderator: {
996
- id: string;
997
- name: string | null;
998
- };
999
- /** Identifies whether an administrator or a plugin initiated the transition. */
1000
- origin?: {
1001
- source: "admin";
1002
- userId: string;
1003
- } | {
1004
- source: "plugin";
1005
- pluginId: string;
1006
- };
1007
- }
1008
- /**
1009
- * Handler type for comment:beforeCreate hooks.
1010
- * Returns modified event, or false to reject the comment.
1011
- */
1012
- type CommentBeforeCreateHandler = (event: CommentBeforeCreateEvent, ctx: PluginContext) => Promise<CommentBeforeCreateEvent | false | void>;
1013
- /**
1014
- * Handler type for comment:moderate hook (exclusive provider).
1015
- */
1016
- type CommentModerateHandler = (event: CommentModerateEvent, ctx: PluginContext) => Promise<ModerationDecision>;
1017
- /**
1018
- * Handler type for comment:afterCreate hooks (fire-and-forget).
1019
- */
1020
- type CommentAfterCreateHandler = (event: CommentAfterCreateEvent, ctx: PluginContext) => Promise<void>;
1021
- /**
1022
- * Handler type for comment:afterModerate hooks (fire-and-forget).
1023
- */
1024
- type CommentAfterModerateHandler = (event: CommentAfterModerateEvent, ctx: PluginContext) => Promise<void>;
1025
- /**
1026
- * Hook configuration
1027
- */
1028
- interface HookConfig<THandler> {
1029
- /** Explicit ordering - lower numbers run first (default: 100) */
1030
- priority?: number;
1031
- /** Max execution time in ms (default: 5000) */
1032
- timeout?: number;
1033
- /** Run after these plugins */
1034
- dependencies?: string[];
1035
- /** Error handling policy */
1036
- errorPolicy?: "continue" | "abort";
1037
- /**
1038
- * Mark this hook as exclusive — only one plugin can be the active provider.
1039
- * Exclusive hooks skip the priority pipeline and dispatch only to the
1040
- * admin-selected provider. Used for email:deliver, search, image optimization, etc.
1041
- */
1042
- exclusive?: boolean;
1043
- /** The hook handler */
1044
- handler: THandler;
1045
- }
1046
- /**
1047
- * Acting user that triggered a content hook. Present for authenticated
1048
- * saves; absent for unauthenticated or internal writes.
1049
- */
1050
- interface ActorInfo {
1051
- readonly id: string;
1052
- readonly role: number;
1053
- readonly source?: "api" | "mcp" | "visual-editor";
1054
- }
1055
- type ContentActionOrigin = {
1056
- source: "api" | "mcp" | "visual-editor";
1057
- } | {
1058
- source: "plugin";
1059
- pluginId: string;
1060
- } | {
1061
- source: "scheduler";
1062
- } | {
1063
- source: "system";
1064
- };
1065
- type ContentPolicyDecision = void | {
1066
- cancel: true;
1067
- reason: string;
1068
- };
1069
- /**
1070
- * Content hook event
1071
- */
1072
- interface ContentHookEvent {
1073
- content: Record<string, unknown>;
1074
- collection: string;
1075
- isNew: boolean;
1076
- /**
1077
- * ID of the existing item on `content:beforeSave` for an update. Absent on
1078
- * creates, where the ID is assigned when the save completes, and on
1079
- * `content:afterSave`, where `content.id` carries it.
1080
- */
1081
- id?: string;
1082
- /**
1083
- * The acting user for this save. Carries the same authenticated identity
1084
- * used to set the revision author, so plugins (e.g. audit logs) can record
1085
- * who made the change.
1086
- */
1087
- actor?: ActorInfo;
1088
- }
1089
- /**
1090
- * Content delete hook event
1091
- */
1092
- interface ContentDeleteEvent {
1093
- id: string;
1094
- collection: string;
1095
- /** `true` when the content is permanently deleted (not just trashed). */
1096
- permanent: boolean;
1097
- }
1098
- /**
1099
- * Content state-change hook event (fired after publish, unpublish, restore,
1100
- * schedule, or unschedule).
1101
- */
1102
- interface ContentStateChangeEvent {
1103
- content: Record<string, unknown>;
1104
- collection: string;
1105
- }
1106
- /**
1107
- * Content publish/unpublish hook event.
1108
- */
1109
- type ContentPublishStateChangeEvent = ContentStateChangeEvent;
1110
- /**
1111
- * Content restore hook event.
1112
- */
1113
- type ContentRestoreStateChangeEvent = ContentStateChangeEvent;
1114
- /**
1115
- * Content schedule/unschedule hook event.
1116
- */
1117
- type ContentScheduleStateChangeEvent = ContentStateChangeEvent;
1118
- interface ContentPolicyEvent extends ContentStateChangeEvent {
1119
- origin: ContentActionOrigin;
1120
- actor?: ActorInfo;
1121
- }
1122
- interface ContentSchedulePolicyEvent extends ContentPolicyEvent {
1123
- scheduledAt: string;
1124
- }
1125
- /**
1126
- * Media hook event
1127
- */
1128
- interface MediaUploadEvent {
1129
- file: {
1130
- name: string;
1131
- type: string;
1132
- size: number;
1133
- };
1134
- }
1135
- /**
1136
- * Media after upload event
1137
- */
1138
- interface MediaAfterUploadEvent {
1139
- media: MediaItem;
1140
- }
1141
- /**
1142
- * Lifecycle hook event
1143
- */
1144
- interface LifecycleEvent {}
1145
- /**
1146
- * Uninstall hook event
1147
- */
1148
- interface UninstallEvent {
1149
- deleteData: boolean;
1150
- }
1151
- type ContentBeforeSaveHandler = (event: ContentHookEvent, ctx: PluginContext) => Promise<Record<string, unknown> | void>;
1152
- type ContentAfterSaveHandler = (event: ContentHookEvent, ctx: PluginContext) => Promise<void>;
1153
- type ContentBeforeDeleteHandler = (event: ContentDeleteEvent, ctx: PluginContext) => Promise<boolean | void>;
1154
- type ContentAfterDeleteHandler = (event: ContentDeleteEvent, ctx: PluginContext) => Promise<void>;
1155
- type ContentBeforePublishHandler = (event: ContentPolicyEvent, ctx: PluginContext) => Promise<ContentPolicyDecision>;
1156
- type ContentBeforeScheduleHandler = (event: ContentSchedulePolicyEvent, ctx: PluginContext) => Promise<ContentPolicyDecision>;
1157
- type ContentBeforeUnpublishHandler = (event: ContentPolicyEvent, ctx: PluginContext) => Promise<ContentPolicyDecision>;
1158
- type ContentAfterPublishHandler = (event: ContentPublishStateChangeEvent, ctx: PluginContext) => Promise<void>;
1159
- type ContentAfterUnpublishHandler = (event: ContentPublishStateChangeEvent, ctx: PluginContext) => Promise<void>;
1160
- type ContentAfterRestoreHandler = (event: ContentRestoreStateChangeEvent, ctx: PluginContext) => Promise<void>;
1161
- type ContentAfterScheduleHandler = (event: ContentScheduleStateChangeEvent, ctx: PluginContext) => Promise<void>;
1162
- type ContentAfterUnscheduleHandler = (event: ContentScheduleStateChangeEvent, ctx: PluginContext) => Promise<void>;
1163
- /**
1164
- * Event for `byline:afterSave`, fired after a byline profile or one of its
1165
- * locale translations is created or updated.
1166
- */
1167
- interface BylineAfterSaveEvent {
1168
- byline: BylineInfo;
1169
- isNew: boolean;
1170
- }
1171
- /**
1172
- * Event for `byline:afterDelete`, fired after a byline row is deleted. When it
1173
- * was the last locale of its translation group, its credits have already been
1174
- * removed from every entry.
1175
- */
1176
- interface BylineAfterDeleteEvent {
1177
- byline: BylineInfo;
1178
- }
1179
- type BylineAfterSaveHandler = (event: BylineAfterSaveEvent, ctx: PluginContext) => Promise<void>;
1180
- type BylineAfterDeleteHandler = (event: BylineAfterDeleteEvent, ctx: PluginContext) => Promise<void>;
1181
- type MediaBeforeUploadHandler = (event: MediaUploadEvent, ctx: PluginContext) => Promise<{
1182
- name: string;
1183
- type: string;
1184
- size: number;
1185
- } | void>;
1186
- type MediaAfterUploadHandler = (event: MediaAfterUploadEvent, ctx: PluginContext) => Promise<void>;
1187
- type LifecycleHandler = (event: LifecycleEvent, ctx: PluginContext) => Promise<void>;
1188
- type UninstallHandler = (event: UninstallEvent, ctx: PluginContext) => Promise<void>;
1189
- /** Placement targets for page fragment contributions */
1190
- type PagePlacement = "head" | "body:start" | "body:end";
1191
- /**
1192
- * A single breadcrumb trail item. Used by `PublicPageContext.breadcrumbs`
1193
- * so themes can publish breadcrumb trails that SEO plugins consume.
1194
- */
1195
- interface BreadcrumbItem {
1196
- /** Display name for this crumb (e.g. "Home", "Blog", "My Post"). */
1197
- name: string;
1198
- /** Absolute or root-relative URL for this crumb. */
1199
- url: string;
1200
- }
1201
- /**
1202
- * Describes the page being rendered. Passed to page hooks so plugins
1203
- * can decide what to contribute without fetching content themselves.
1204
- */
1205
- interface PublicPageContext {
1206
- url: string;
1207
- path: string;
1208
- locale: string | null;
1209
- kind: "content" | "custom";
1210
- pageType: string;
1211
- /** Full document title for the rendered page */
1212
- title: string | null;
1213
- /** Page-only title for OG/Twitter/JSON-LD headline output */
1214
- pageTitle?: string | null;
1215
- description: string | null;
1216
- canonical: string | null;
1217
- image: string | null;
1218
- content?: {
1219
- collection: string;
1220
- id: string;
1221
- slug: string | null;
1222
- };
1223
- /** SEO meta for base metadata generation in EmDashHead */
1224
- seo?: {
1225
- ogTitle?: string | null;
1226
- ogDescription?: string | null;
1227
- ogImage?: string | null;
1228
- robots?: string | null;
1229
- };
1230
- /** Article metadata for Open Graph article: tags */
1231
- articleMeta?: {
1232
- publishedTime?: string | null;
1233
- modifiedTime?: string | null;
1234
- author?: string | null;
1235
- };
1236
- /** Site name for structured data and og:site_name */
1237
- siteName?: string;
1238
- /**
1239
- * Optional breadcrumb trail for this page, root first. When set,
1240
- * SEO plugins should use this verbatim rather than deriving a trail
1241
- * from `path`. Themes typically populate this at the point they
1242
- * build the context (e.g. from a content hierarchy walk, taxonomy
1243
- * lookup, or per-`pageType` routing logic).
1244
- *
1245
- * Semantics for consumers:
1246
- * - `undefined` — theme has no opinion; consumer falls back to
1247
- * its own derivation.
1248
- * - `[]` — this page has no breadcrumbs (e.g. homepage); consumer
1249
- * should skip `BreadcrumbList` emission entirely.
1250
- * - Non-empty array — used verbatim for `BreadcrumbList` output.
1251
- */
1252
- breadcrumbs?: BreadcrumbItem[];
1253
- /** Public-facing site URL (origin) for structured data */
1254
- siteUrl?: string;
1255
- }
1256
- interface PageMetadataEvent {
1257
- page: PublicPageContext;
1258
- }
1259
- /**
1260
- * Allowed rel values for link contributions.
1261
- * This is a security-critical allowlist -- sandboxed plugins can only inject
1262
- * link tags with these rel values. Adding "stylesheet", "prefetch", "prerender"
1263
- * etc. would allow sandboxed plugins to inject external resources.
1264
- */
1265
- type PageMetadataLinkRel = "canonical" | "alternate" | "author" | "license" | "nlweb" | "site.standard.document";
1266
- type PageMetadataContribution = {
1267
- kind: "meta";
1268
- name: string;
1269
- content: string;
1270
- key?: string;
1271
- } | {
1272
- kind: "property";
1273
- property: string;
1274
- content: string;
1275
- key?: string;
1276
- } | {
1277
- kind: "link";
1278
- rel: PageMetadataLinkRel;
1279
- href: string;
1280
- hreflang?: string;
1281
- key?: string;
1282
- } | {
1283
- kind: "jsonld";
1284
- id?: string;
1285
- graph: Record<string, unknown> | Array<Record<string, unknown>>;
1286
- };
1287
- type PageMetadataHandler = (event: PageMetadataEvent, ctx: PluginContext) => PageMetadataContribution | PageMetadataContribution[] | null | Promise<PageMetadataContribution | PageMetadataContribution[] | null>;
1288
- interface PageFragmentEvent {
1289
- page: PublicPageContext;
1290
- }
1291
- type PageFragmentContribution = {
1292
- kind: "external-script";
1293
- placement: PagePlacement;
1294
- src: string;
1295
- async?: boolean;
1296
- defer?: boolean;
1297
- attributes?: Record<string, string>;
1298
- key?: string;
1299
- } | {
1300
- kind: "inline-script";
1301
- placement: PagePlacement;
1302
- code: string;
1303
- attributes?: Record<string, string>;
1304
- key?: string;
1305
- } | {
1306
- kind: "html";
1307
- placement: PagePlacement;
1308
- html: string;
1309
- key?: string;
1310
- };
1311
- type PageFragmentHandler = (event: PageFragmentEvent, ctx: PluginContext) => PageFragmentContribution | PageFragmentContribution[] | null | Promise<PageFragmentContribution | PageFragmentContribution[] | null>;
1312
- /**
1313
- * Plugin hooks definition
1314
- */
1315
- interface PluginHooks {
1316
- "plugin:install"?: HookConfig<LifecycleHandler> | LifecycleHandler;
1317
- "plugin:activate"?: HookConfig<LifecycleHandler> | LifecycleHandler;
1318
- "plugin:deactivate"?: HookConfig<LifecycleHandler> | LifecycleHandler;
1319
- "plugin:uninstall"?: HookConfig<UninstallHandler> | UninstallHandler;
1320
- "content:beforeSave"?: HookConfig<ContentBeforeSaveHandler> | ContentBeforeSaveHandler;
1321
- "content:afterSave"?: HookConfig<ContentAfterSaveHandler> | ContentAfterSaveHandler;
1322
- "content:beforeDelete"?: HookConfig<ContentBeforeDeleteHandler> | ContentBeforeDeleteHandler;
1323
- "content:afterDelete"?: HookConfig<ContentAfterDeleteHandler> | ContentAfterDeleteHandler;
1324
- "content:beforePublish"?: HookConfig<ContentBeforePublishHandler> | ContentBeforePublishHandler;
1325
- "content:beforeSchedule"?: HookConfig<ContentBeforeScheduleHandler> | ContentBeforeScheduleHandler;
1326
- "content:beforeUnpublish"?: HookConfig<ContentBeforeUnpublishHandler> | ContentBeforeUnpublishHandler;
1327
- "content:afterPublish"?: HookConfig<ContentAfterPublishHandler> | ContentAfterPublishHandler;
1328
- "content:afterUnpublish"?: HookConfig<ContentAfterUnpublishHandler> | ContentAfterUnpublishHandler;
1329
- "content:afterRestore"?: HookConfig<ContentAfterRestoreHandler> | ContentAfterRestoreHandler;
1330
- "content:afterSchedule"?: HookConfig<ContentAfterScheduleHandler> | ContentAfterScheduleHandler;
1331
- "content:afterUnschedule"?: HookConfig<ContentAfterUnscheduleHandler> | ContentAfterUnscheduleHandler;
1332
- "media:beforeUpload"?: HookConfig<MediaBeforeUploadHandler> | MediaBeforeUploadHandler;
1333
- "media:afterUpload"?: HookConfig<MediaAfterUploadHandler> | MediaAfterUploadHandler;
1334
- cron?: HookConfig<CronHandler> | CronHandler;
1335
- "email:beforeSend"?: HookConfig<EmailBeforeSendHandler> | EmailBeforeSendHandler;
1336
- "email:deliver"?: HookConfig<EmailDeliverHandler> | EmailDeliverHandler;
1337
- "email:afterSend"?: HookConfig<EmailAfterSendHandler> | EmailAfterSendHandler;
1338
- "comment:beforeCreate"?: HookConfig<CommentBeforeCreateHandler> | CommentBeforeCreateHandler;
1339
- "comment:moderate"?: HookConfig<CommentModerateHandler> | CommentModerateHandler;
1340
- "comment:afterCreate"?: HookConfig<CommentAfterCreateHandler> | CommentAfterCreateHandler;
1341
- "comment:afterModerate"?: HookConfig<CommentAfterModerateHandler> | CommentAfterModerateHandler;
1342
- "byline:afterSave"?: HookConfig<BylineAfterSaveHandler> | BylineAfterSaveHandler;
1343
- "byline:afterDelete"?: HookConfig<BylineAfterDeleteHandler> | BylineAfterDeleteHandler;
1344
- "page:metadata"?: HookConfig<PageMetadataHandler> | PageMetadataHandler;
1345
- "page:fragments"?: HookConfig<PageFragmentHandler> | PageFragmentHandler;
1346
- }
1347
- /**
1348
- * Hook names
1349
- */
1350
- /**
1351
- * Hook name in a manifest. Core's exhaustive union of recognised hook names,
1352
- * derived from the `PluginHooks` registry. The serialised manifest carries
1353
- * these as opaque strings; this stricter type is only used for type-checking
1354
- * inside core. `ManifestHookEntry` is re-exported from
1355
- * `@emdash-cms/plugin-types` near the top of this file.
1356
- */
1357
- type HookName = keyof PluginHooks;
1358
- /**
1359
- * Resolved hook with normalized config
1360
- */
1361
- interface ResolvedHook<THandler> {
1362
- priority: number;
1363
- timeout: number;
1364
- dependencies: string[];
1365
- errorPolicy: "continue" | "abort";
1366
- /** Whether this hook is exclusive (provider pattern) */
1367
- exclusive: boolean;
1368
- handler: THandler;
1369
- pluginId: string;
1370
- }
1371
- /**
1372
- * Geographic location information derived from the request.
1373
- * Available when running on Cloudflare Workers (via the `cf` object).
1374
- */
1375
- interface GeoInfo {
1376
- country: string | null;
1377
- region: string | null;
1378
- city: string | null;
1379
- }
1380
- /**
1381
- * Normalized request metadata available to plugin route handlers.
1382
- * Extracted from request headers and platform-specific properties.
1383
- */
1384
- interface RequestMeta {
1385
- ip: string | null;
1386
- userAgent: string | null;
1387
- referer: string | null;
1388
- geo: GeoInfo | null;
1389
- }
1390
- /**
1391
- * Route handler context extends plugin context with request-specific data
1392
- */
1393
- interface RouteContext<TInput = unknown> extends PluginContext {
1394
- /** Validated input from request body */
1395
- input: TInput;
1396
- /** Original request */
1397
- request: Request;
1398
- /** Normalized request metadata (IP, user agent, geo) */
1399
- requestMeta: RequestMeta;
1400
- /** Host-attested context for a validated Block Kit request. */
1401
- ui?: PluginUiContext;
1402
- /**
1403
- * Authenticated caller, if the route is private. The host has already
1404
- * authenticated and authorized this user before dispatch, so the value
1405
- * is trustworthy — unlike a user id read from the request body.
1406
- *
1407
- * `undefined` for public routes (which skip auth entirely) and for
1408
- * token-authed requests where no user is bound to the token.
1409
- *
1410
- * Not gated by the `users:read` capability: this is the caller's own
1411
- * identity for the current request, not a user directory lookup.
1412
- */
1413
- user?: UserInfo;
1414
- }
1415
- /**
1416
- * Route definition
1417
- */
1418
- interface PluginRoute<TInput = unknown> extends Omit<RouteOptions, "request"> {
1419
- /** Zod schema for input validation */
1420
- input?: z.ZodType<TInput>;
1421
- /**
1422
- * Mark this route as publicly accessible (no authentication required).
1423
- * Public routes skip session/token auth and CSRF checks.
1424
- */
1425
- public?: boolean;
1426
- /** RBAC permission required to invoke the route. Legacy routes default to plugins:manage. */
1427
- permission?: Permission;
1428
- /**
1429
- * `Cache-Control` header value for successful GET responses, e.g.
1430
- * `"public, max-age=60, stale-while-revalidate=300"`. Only honored on
1431
- * routes that are also `public: true` — authenticated responses always
1432
- * keep the default `private, no-store`. Errors are never cached.
1433
- */
1434
- cacheControl?: string;
1435
- /** Bounded request parsing and incoming-header declaration. */
1436
- request?: PluginRouteRequest;
1437
- /** Route handler */
1438
- handler: {
1439
- bivarianceHack(ctx: RouteContext<TInput>): Promise<unknown>;
1440
- }["bivarianceHack"];
1441
- }
1442
- type PluginRouteInput<TMode extends PluginRouteBodyMode> = TMode extends "none" ? PluginRouteQuery : TMode extends "text" ? string : TMode extends "bytes" ? Uint8Array : TMode extends "form-data" ? PluginFormData : unknown;
1443
- type PluginRouteDefinition<TMode extends PluginRouteBodyMode = PluginRouteBodyMode> = Omit<PluginRoute<PluginRouteInput<TMode>>, "request"> & {
1444
- request: PluginRouteRequest & {
1445
- body: TMode;
1446
- };
1447
- };
1448
- interface PluginMcpToolDefinition {
1449
- description: string;
1450
- route: string;
1451
- input: z.ZodType;
1452
- output?: z.ZodType;
1453
- destructive?: boolean;
1454
- }
1455
- interface PluginMcpConfig {
1456
- tools: Record<string, PluginMcpToolDefinition>;
1457
- }
1458
- /**
1459
- * Admin page definition
1460
- */
1461
- interface PluginAdminPage {
1462
- path: string;
1463
- label: string;
1464
- icon?: string;
1465
- }
1466
- /**
1467
- * Dashboard widget definition
1468
- */
1469
- interface PluginDashboardWidget {
1470
- id: string;
1471
- size?: "full" | "half" | "third";
1472
- title?: string;
1473
- }
1474
- interface PluginEditorPanel {
1475
- id: string;
1476
- title: string;
1477
- route: string;
1478
- collections?: string[];
1479
- order?: number;
1480
- draft?: PluginEditorDraftAccess;
1481
- }
1482
- interface PluginEditorAction {
1483
- id: string;
1484
- label: string;
1485
- route: string;
1486
- placement: "toolbar" | "overflow";
1487
- collections?: string[];
1488
- style?: "default" | "danger";
1489
- confirm?: ConfirmDialog;
1490
- draft?: PluginEditorDraftAccess;
1491
- }
1492
- /**
1493
- * Settings field types (for admin UI generation)
1494
- */
1495
- type SettingFieldType = "string" | "number" | "boolean" | "select" | "secret" | "url" | "email";
1496
- interface BaseSettingField {
1497
- type: SettingFieldType;
1498
- label: string;
1499
- description?: string;
1500
- }
1501
- interface StringSettingField extends BaseSettingField {
1502
- type: "string";
1503
- default?: string;
1504
- multiline?: boolean;
1505
- }
1506
- interface NumberSettingField extends BaseSettingField {
1507
- type: "number";
1508
- default?: number;
1509
- min?: number;
1510
- max?: number;
1511
- }
1512
- interface BooleanSettingField extends BaseSettingField {
1513
- type: "boolean";
1514
- default?: boolean;
1515
- }
1516
- interface SelectSettingField extends BaseSettingField {
1517
- type: "select";
1518
- options: Array<{
1519
- value: string;
1520
- label: string;
1521
- }>;
1522
- default?: string;
1523
- }
1524
- interface SecretSettingField extends BaseSettingField {
1525
- type: "secret";
1526
- }
1527
- interface UrlSettingField extends BaseSettingField {
1528
- type: "url";
1529
- default?: string;
1530
- placeholder?: string;
1531
- }
1532
- interface EmailSettingField extends BaseSettingField {
1533
- type: "email";
1534
- default?: string;
1535
- placeholder?: string;
1536
- }
1537
- type SettingField = StringSettingField | NumberSettingField | BooleanSettingField | SelectSettingField | SecretSettingField | UrlSettingField | EmailSettingField;
1538
- /**
1539
- * Block Kit element for block editing fields.
1540
- * This is the `Element` discriminated union from `@emdash-cms/blocks`.
1541
- * Plugin authors should use `@emdash-cms/blocks` builder functions to create these.
1542
- */
1543
- type PortableTextBlockField = Element;
1544
- /**
1545
- * Configuration for a Portable Text block type contributed by a plugin
1546
- */
1547
- interface PortableTextBlockConfig {
1548
- /** Block type name (must match the `_type` in Portable Text) */
1549
- type: string;
1550
- /** Human-readable label shown in slash commands and modals */
1551
- label: string;
1552
- /** Icon key (e.g., "video", "code", "link", "link-external") */
1553
- icon?: string;
1554
- /** Description shown in slash command menu */
1555
- description?: string;
1556
- /** Placeholder text for the URL input */
1557
- placeholder?: string;
1558
- /** Block Kit form fields for the editing UI. If declared, replaces the simple URL input. */
1559
- fields?: PortableTextBlockField[];
1560
- /**
1561
- * Optional. Display category in the slash menu. Defaults to "Embeds".
1562
- *
1563
- * Plugin authors should pick a meaningful category that reflects what the
1564
- * block actually is — e.g. "Sections", "Marketing", "Media", "Embeds",
1565
- * "Layout". Blocks with the same category are grouped together in the
1566
- * editor's slash menu.
1567
- */
1568
- category?: string;
1569
- }
1570
- /**
1571
- * Configuration for a field widget type contributed by a plugin.
1572
- * A field widget provides a custom editing UI for a schema field.
1573
- * The field references the widget via `widget: "pluginId:widgetName"`.
1574
- */
1575
- interface FieldWidgetConfig {
1576
- /** Widget name (without plugin ID prefix) */
1577
- name: string;
1578
- /** Human-readable label for the admin UI */
1579
- label: string;
1580
- /** Which field types this widget can edit (e.g., ["json", "string"]) */
1581
- fieldTypes: FieldType[];
1582
- /** Block Kit elements for sandboxed rendering. Omit for trusted plugins using React. */
1583
- elements?: Element[];
1584
- }
1585
- /**
1586
- * Admin configuration
1587
- */
1588
- interface PluginAdminConfig {
1589
- /** Module specifier for admin UI exports (e.g., "@emdash-cms/plugin-audit-log/admin") */
1590
- entry?: string;
1591
- /** Settings schema for auto-generated UI */
1592
- settingsSchema?: Record<string, SettingField>;
1593
- /** Admin pages */
1594
- pages?: PluginAdminPage[];
1595
- /** Dashboard widgets */
1596
- widgets?: PluginDashboardWidget[];
1597
- /** Saved-entry Block Kit panels. */
1598
- editorPanels?: PluginEditorPanel[];
1599
- /** Saved-entry host-rendered actions. */
1600
- editorActions?: PluginEditorAction[];
1601
- /** Portable Text block types this plugin provides */
1602
- portableTextBlocks?: PortableTextBlockConfig[];
1603
- /** Field widget types this plugin provides */
1604
- fieldWidgets?: FieldWidgetConfig[];
1605
- }
1606
- /**
1607
- * Plugin definition - input to definePlugin()
1608
- */
1609
- interface PluginDefinition<TStorage extends PluginStorageConfig = PluginStorageConfig> {
1610
- /** Unique plugin identifier */
1611
- id: string;
1612
- /** Plugin version (semver) */
1613
- version: string;
1614
- /** Declared capabilities */
1615
- capabilities?: PluginCapability[];
1616
- /** Allowed hosts for network:request (wildcards supported: *.example.com) */
1617
- allowedHosts?: string[];
1618
- /** Storage collections with indexes */
1619
- storage?: TStorage;
1620
- /** Hooks */
1621
- hooks?: PluginHooks;
1622
- /** API routes */
1623
- routes?: Record<string, PluginRoute>;
1624
- /** Routes explicitly exposed as agent-callable MCP tools. */
1625
- mcp?: PluginMcpConfig;
1626
- /** Admin UI configuration */
1627
- admin?: PluginAdminConfig;
1628
- }
1629
- /**
1630
- * Resolved plugin - after definePlugin() processing
1631
- */
1632
- interface ResolvedPlugin<TStorage extends PluginStorageConfig = PluginStorageConfig> {
1633
- id: string;
1634
- version: string;
1635
- capabilities: PluginCapability[];
1636
- allowedHosts: string[];
1637
- storage: TStorage;
1638
- hooks: ResolvedPluginHooks;
1639
- routes: Record<string, PluginRoute>;
1640
- mcp?: PluginMcpConfig;
1641
- admin: PluginAdminConfig;
1642
- }
1643
- /**
1644
- * Resolved hooks with normalized config
1645
- */
1646
- interface ResolvedPluginHooks {
1647
- "plugin:install"?: ResolvedHook<LifecycleHandler>;
1648
- "plugin:activate"?: ResolvedHook<LifecycleHandler>;
1649
- "plugin:deactivate"?: ResolvedHook<LifecycleHandler>;
1650
- "plugin:uninstall"?: ResolvedHook<UninstallHandler>;
1651
- "content:beforeSave"?: ResolvedHook<ContentBeforeSaveHandler>;
1652
- "content:afterSave"?: ResolvedHook<ContentAfterSaveHandler>;
1653
- "content:beforeDelete"?: ResolvedHook<ContentBeforeDeleteHandler>;
1654
- "content:afterDelete"?: ResolvedHook<ContentAfterDeleteHandler>;
1655
- "content:beforePublish"?: ResolvedHook<ContentBeforePublishHandler>;
1656
- "content:beforeSchedule"?: ResolvedHook<ContentBeforeScheduleHandler>;
1657
- "content:beforeUnpublish"?: ResolvedHook<ContentBeforeUnpublishHandler>;
1658
- "content:afterPublish"?: ResolvedHook<ContentAfterPublishHandler>;
1659
- "content:afterUnpublish"?: ResolvedHook<ContentAfterUnpublishHandler>;
1660
- "content:afterRestore"?: ResolvedHook<ContentAfterRestoreHandler>;
1661
- "content:afterSchedule"?: ResolvedHook<ContentAfterScheduleHandler>;
1662
- "content:afterUnschedule"?: ResolvedHook<ContentAfterUnscheduleHandler>;
1663
- "media:beforeUpload"?: ResolvedHook<MediaBeforeUploadHandler>;
1664
- "media:afterUpload"?: ResolvedHook<MediaAfterUploadHandler>;
1665
- cron?: ResolvedHook<CronHandler>;
1666
- "email:beforeSend"?: ResolvedHook<EmailBeforeSendHandler>;
1667
- "email:deliver"?: ResolvedHook<EmailDeliverHandler>;
1668
- "email:afterSend"?: ResolvedHook<EmailAfterSendHandler>;
1669
- "comment:beforeCreate"?: ResolvedHook<CommentBeforeCreateHandler>;
1670
- "comment:moderate"?: ResolvedHook<CommentModerateHandler>;
1671
- "comment:afterCreate"?: ResolvedHook<CommentAfterCreateHandler>;
1672
- "comment:afterModerate"?: ResolvedHook<CommentAfterModerateHandler>;
1673
- "byline:afterSave"?: ResolvedHook<BylineAfterSaveHandler>;
1674
- "byline:afterDelete"?: ResolvedHook<BylineAfterDeleteHandler>;
1675
- "page:metadata"?: ResolvedHook<PageMetadataHandler>;
1676
- "page:fragments"?: ResolvedHook<PageFragmentHandler>;
1677
- }
1678
- /**
1679
- * What a plugin exports from its /admin entrypoint
1680
- * Uses generic component type to avoid React dependency
1681
- */
1682
- interface PluginAdminExports {
1683
- widgets?: Record<string, JSX.Element>;
1684
- pages?: Record<string, JSX.Element>;
1685
- fields?: Record<string, JSX.Element>;
1686
- }
1687
- /**
1688
- * Plugin manifest — the metadata portion of a plugin bundle, used for
1689
- * sandboxed plugins loaded from the marketplace.
1690
- *
1691
- * This interface is core's stricter version of the manifest contract: it
1692
- * uses the exhaustive `HookName` union and core's typed `PluginAdminConfig`.
1693
- * The wire-shape lives in `@emdash-cms/plugin-types` as `PluginManifest`
1694
- * with looser types (so the registry CLI can serialise hook names it
1695
- * doesn't know about). Both must stay structurally compatible: every value
1696
- * of this type must be assignable to the shared one. The static assertion
1697
- * below catches any drift at compile time.
1698
- */
1699
- interface PluginManifest {
1700
- id: string;
1701
- version: string;
1702
- /**
1703
- * The trust contract (see `@emdash-cms/plugin-types`). Authoritative;
1704
- * `capabilities`/`allowedHosts` are derived from it at the parse boundary
1705
- * via `reconcileManifestAccess`. Optional during the wire-format migration.
1706
- */
1707
- declaredAccess?: DeclaredAccess;
1708
- capabilities: PluginCapability[];
1709
- allowedHosts: string[];
1710
- storage: PluginStorageConfig;
1711
- /** Hook declarations — either plain name strings or structured objects */
1712
- hooks: Array<ManifestHookEntry$1 | HookName>;
1713
- /** Route declarations — either plain name strings or structured objects */
1714
- routes: Array<ManifestRouteEntry$1 | string>;
1715
- mcp?: PluginMcpManifestConfig;
1716
- admin: PluginAdminConfig;
1717
- }
1718
- //#endregion
1719
- export { ContentScheduleStateChangeEvent as $, PluginDefinition as $t, ContentAfterDeleteHandler as A, StorageCollectionConfig as An, MediaBytes as At, ContentBeforeScheduleHandler as B, UpdateIfArgs as Bn, PageMetadataEvent as Bt, CommentModerateEvent as C, ResolvedPluginHooks as Cn, LifecycleEvent as Ct, ContentAccess as D, SettingsAccess as Dn, MediaAfterUploadEvent as Dt, ConditionalWriteResult as E, SettingField as En, MediaAccess as Et, ContentAfterUnpublishHandler as F, TaxonomyReadOptions as Fn, NumericDelta as Ft, ContentItem as G, VersionedValue as Gn, PluginAdminConfig as Gt, ContentCreateOptions as H, UserInfo as Hn, PageMetadataLinkRel as Ht, ContentAfterUnscheduleHandler as I, TaxonomyTermCreateInput as In, PageFragmentContribution as It, ContentPolicyEvent as J, normalizeCapabilities as Jn, PluginCapability as Jt, ContentListOptions as K, WhereClause as Kn, PluginAdminExports as Kt, ContentBeforeDeleteHandler as L, TaxonomyTermInfo as Ln, PageFragmentEvent as Lt, ContentAfterRestoreHandler as M, TaxonomyAccess as Mn, MediaMetadataPatch as Mt, ContentAfterSaveHandler as N, TaxonomyAccessWithWrite as Nn, MediaUploadEvent as Nt, ContentAccessWithWrite as O, SiteInfo as On, MediaAfterUploadHandler as Ot, ContentAfterScheduleHandler as P, TaxonomyDefInfo as Pn, ModerationDecision as Pt, ContentSchedulePolicyEvent as Q, PluginContext as Qt, ContentBeforePublishHandler as R, UninstallEvent as Rn, PageFragmentHandler as Rt, CommentListOptions as S, ResolvedPlugin as Sn, KVAccess as St, ConditionalDeleteResult as T, SchemaAccess as Tn, LogAccess as Tt, ContentDeleteEvent as U, VersionedContentItem as Un, PagePlacement as Ut, ContentBeforeUnpublishHandler as V, UpdateIfResult as Vn, PageMetadataHandler as Vt, ContentHookEvent as W, VersionedRedirect as Wn, PaginatedResult as Wt, ContentRestoreStateChangeEvent as X, normalizePluginCapabilities as Xn, PluginCommentStatus as Xt, ContentPublishStateChangeEvent as Y, normalizeCapability as Yn, PluginComment as Yt, ContentRevisionInfo as Z, PluginContentCreateCallback as Zt, CommentAfterModerateEvent as _, RedirectListOptions as _n, FieldSchemaInfo as _t, BylineAfterDeleteHandler as a, PluginMcpManifestConfig as an, CronHandler as at, CommentBeforeCreateHandler as b, RequestMeta as bn, HookName as bt, BylineCreditInfo as c, PluginStorageConfig as cn, DeprecatedPluginCapability as ct, CAPABILITY_RENAMES as d, PublicPageContext as dn, EmailBeforeSendEvent as dt, PluginEditorAction as en, ContentStateChangeEvent as et, CollectionCommentSettings as f, QueryOptions as fn, EmailBeforeSendHandler as ft, CommentAfterCreateHandler as g, RedirectInfo as gn, EntryBylineCredits as gt, CommentAfterCreateEvent as h, RedirectCreateInput as hn, EmailMessage as ht, BylineAfterDeleteEvent as i, PluginManifest as in, CronEvent as it, ContentAfterPublishHandler as j, StoredComment as jn, MediaItem as jt, ContentActionOrigin as k, StorageCollection as kn, MediaBeforeUploadHandler as kt, BylineInfo as l, PortableTextBlockConfig as ln, EmailAfterSendEvent as lt, CommentAccess as m, RedirectAccessWithWrite as mn, EmailDeliverHandler as mt, BreadcrumbItem as n, PluginEditorPanel as nn, ContentWriteInput as nt, BylineAfterSaveEvent as o, PluginRoute as on, CronTaskInfo as ot, CollectionSchemaInfo as p, RedirectAccess as pn, EmailDeliverEvent as pt, ContentPolicyDecision as q, isDeprecatedCapability as qn, PluginAdminPage as qt, BylineAccess as r, PluginHooks as rn, CronAccess as rt, BylineAfterSaveHandler as s, PluginRouteDefinition as sn, CurrentPluginCapability as st, ActorInfo as t, PluginEditorDraftFieldSelector as tn, ContentTranslationSummary as tt, BylineListOptions as u, PortableTextBlockField as un, EmailAfterSendHandler as ut, CommentAfterModerateHandler as v, RedirectStatus as vn, FieldWidgetConfig as vt, CommentModerateHandler as w, RouteContext as wn, LifecycleHandler as wt, CommentCountOptions as x, ResolvedHook as xn, HttpAccess as xt, CommentBeforeCreateEvent as y, RedirectUpdateInput as yn, HookConfig as yt, ContentBeforeSaveHandler as z, UninstallHandler as zn, PageMetadataContribution as zt };
1720
- //# sourceMappingURL=types-BYVIYOlD.d.mts.map