emdash 1.5.0 → 1.6.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 (1618) hide show
  1. package/dist/action-token-DyXQ5VhB.mjs +26 -0
  2. package/dist/action-token-DyXQ5VhB.mjs.map +1 -0
  3. package/dist/activation-BRmrunZ3.mjs +387 -0
  4. package/dist/activation-BRmrunZ3.mjs.map +1 -0
  5. package/dist/adapters-CMuwJgdX.d.mts +173 -0
  6. package/dist/adapters-CMuwJgdX.d.mts.map +1 -0
  7. package/dist/after-B8cG5P6f.mjs +53 -0
  8. package/dist/after-B8cG5P6f.mjs.map +1 -0
  9. package/dist/allowed-origins-CUNAP6hl.mjs +116 -0
  10. package/dist/allowed-origins-CUNAP6hl.mjs.map +1 -0
  11. package/dist/api/route-utils.d.mts +4 -4
  12. package/dist/api/route-utils.mjs +6 -5
  13. package/dist/api/route-utils.mjs.map +1 -1
  14. package/dist/api/schemas/index.d.mts +2 -2
  15. package/dist/api/schemas/index.mjs +7 -7
  16. package/dist/api-tokens-BIwfh_Ke.mjs +173 -0
  17. package/dist/api-tokens-BIwfh_Ke.mjs.map +1 -0
  18. package/dist/apply-CmE9k57Q.mjs +1774 -0
  19. package/dist/apply-CmE9k57Q.mjs.map +1 -0
  20. package/dist/approvals-DbCK12-7.mjs +460 -0
  21. package/dist/approvals-DbCK12-7.mjs.map +1 -0
  22. package/dist/artifact-fetch-DXHP2vKC.mjs +659 -0
  23. package/dist/artifact-fetch-DXHP2vKC.mjs.map +1 -0
  24. package/dist/artifacts-a_0bb4Ks.mjs +323 -0
  25. package/dist/artifacts-a_0bb4Ks.mjs.map +1 -0
  26. package/dist/astro/image-endpoint.d.mts.map +1 -1
  27. package/dist/astro/image-endpoint.mjs +12 -4
  28. package/dist/astro/image-endpoint.mjs.map +1 -1
  29. package/dist/astro/index.d.mts +17 -17
  30. package/dist/astro/index.d.mts.map +1 -1
  31. package/dist/astro/index.mjs +28 -12
  32. package/dist/astro/index.mjs.map +1 -1
  33. package/dist/astro/middleware/auth.d.mts +17 -15
  34. package/dist/astro/middleware/auth.d.mts.map +1 -1
  35. package/dist/astro/middleware/auth.mjs +31 -20
  36. package/dist/astro/middleware/auth.mjs.map +1 -1
  37. package/dist/astro/middleware/media-usage-write-fence.mjs +2 -2
  38. package/dist/astro/middleware/redirect.d.mts +2 -1
  39. package/dist/astro/middleware/redirect.d.mts.map +1 -1
  40. package/dist/astro/middleware/redirect.mjs +29 -19
  41. package/dist/astro/middleware/redirect.mjs.map +1 -1
  42. package/dist/astro/middleware/request-context.d.mts.map +1 -1
  43. package/dist/astro/middleware/request-context.mjs +6 -5
  44. package/dist/astro/middleware/request-context.mjs.map +1 -1
  45. package/dist/astro/middleware.d.mts +19 -21
  46. package/dist/astro/middleware.d.mts.map +1 -1
  47. package/dist/astro/middleware.mjs +179 -129
  48. package/dist/astro/middleware.mjs.map +1 -1
  49. package/dist/astro/routes/PluginRegistry.d.mts +2 -3
  50. package/dist/astro/routes/PluginRegistry.d.mts.map +1 -1
  51. package/dist/astro/routes/PluginRegistry.mjs +1 -1
  52. package/dist/astro/routes/PluginRegistry.mjs.map +1 -1
  53. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +3 -3
  54. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +3 -3
  55. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +2 -2
  56. package/dist/astro/routes/api/admin/api-tokens/index.mjs +3 -3
  57. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +4 -5
  58. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs.map +1 -1
  59. package/dist/astro/routes/api/admin/byline-fields/_slug_.d.mts.map +1 -1
  60. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +8 -11
  61. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs.map +1 -1
  62. package/dist/astro/routes/api/admin/byline-fields/index.d.mts.map +1 -1
  63. package/dist/astro/routes/api/admin/byline-fields/index.mjs +7 -9
  64. package/dist/astro/routes/api/admin/byline-fields/index.mjs.map +1 -1
  65. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +6 -7
  66. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs.map +1 -1
  67. package/dist/astro/routes/api/admin/bylines/_id_/index.d.mts.map +1 -1
  68. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +9 -10
  69. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
  70. package/dist/astro/routes/api/admin/bylines/_id_/translations.d.mts.map +1 -1
  71. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +10 -12
  72. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
  73. package/dist/astro/routes/api/admin/bylines/index.mjs +8 -8
  74. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +8 -8
  75. package/dist/astro/routes/api/admin/comments/_id_/status.mjs.map +1 -1
  76. package/dist/astro/routes/api/admin/comments/_id_.d.mts.map +1 -1
  77. package/dist/astro/routes/api/admin/comments/_id_.mjs +7 -8
  78. package/dist/astro/routes/api/admin/comments/_id_.mjs.map +1 -1
  79. package/dist/astro/routes/api/admin/comments/bulk.mjs +9 -9
  80. package/dist/astro/routes/api/admin/comments/bulk.mjs.map +1 -1
  81. package/dist/astro/routes/api/admin/comments/counts.mjs +5 -5
  82. package/dist/astro/routes/api/admin/comments/counts.mjs.map +1 -1
  83. package/dist/astro/routes/api/admin/comments/index.mjs +7 -7
  84. package/dist/astro/routes/api/admin/comments/index.mjs.map +1 -1
  85. package/dist/astro/routes/api/admin/core-update.mjs +6 -6
  86. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +3 -3
  87. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +2 -2
  88. package/dist/astro/routes/api/admin/media-usage/activation.d.mts.map +1 -1
  89. package/dist/astro/routes/api/admin/media-usage/activation.mjs +8 -10
  90. package/dist/astro/routes/api/admin/media-usage/activation.mjs.map +1 -1
  91. package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +7 -8
  92. package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs.map +1 -1
  93. package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +7 -8
  94. package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs.map +1 -1
  95. package/dist/astro/routes/api/admin/media-usage/progress.d.mts.map +1 -1
  96. package/dist/astro/routes/api/admin/media-usage/progress.mjs +6 -8
  97. package/dist/astro/routes/api/admin/media-usage/progress.mjs.map +1 -1
  98. package/dist/astro/routes/api/admin/media-usage/repair.mjs +6 -7
  99. package/dist/astro/routes/api/admin/media-usage/repair.mjs.map +1 -1
  100. package/dist/astro/routes/api/admin/media-usage/work/index.mjs +7 -8
  101. package/dist/astro/routes/api/admin/media-usage/work/index.mjs.map +1 -1
  102. package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +7 -8
  103. package/dist/astro/routes/api/admin/media-usage/work/retry.mjs.map +1 -1
  104. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +3 -3
  105. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +3 -3
  106. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +4 -4
  107. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +4 -4
  108. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +3 -3
  109. package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +4 -4
  110. package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +4 -4
  111. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +5 -5
  112. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +9 -8
  113. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
  114. package/dist/astro/routes/api/admin/plugins/index.mjs +3 -3
  115. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +3 -3
  116. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +3 -3
  117. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +8 -7
  118. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
  119. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +3 -3
  120. package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +7 -7
  121. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +14 -13
  122. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
  123. package/dist/astro/routes/api/admin/plugins/registry/artifact.d.mts.map +1 -1
  124. package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +6 -6
  125. package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -1
  126. package/dist/astro/routes/api/admin/plugins/registry/install.mjs +10 -10
  127. package/dist/astro/routes/api/admin/plugins/registry/publisher-handle.mjs +4 -4
  128. package/dist/astro/routes/api/admin/plugins/registry/verify.mjs +8 -8
  129. package/dist/astro/routes/api/admin/plugins/updates.mjs +7 -7
  130. package/dist/astro/routes/api/admin/scheduled-policy-rejections/_collection_/_id_.mjs +2 -2
  131. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +3 -3
  132. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +3 -3
  133. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +3 -3
  134. package/dist/astro/routes/api/admin/transfer/_...path_.mjs +1 -1
  135. package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs +7 -8
  136. package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs.map +1 -1
  137. package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs +7 -8
  138. package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs.map +1 -1
  139. package/dist/astro/routes/api/admin/transfer/approvals/index.mjs +9 -10
  140. package/dist/astro/routes/api/admin/transfer/approvals/index.mjs.map +1 -1
  141. package/dist/astro/routes/api/admin/transfer/capabilities.mjs +9 -10
  142. package/dist/astro/routes/api/admin/transfer/capabilities.mjs.map +1 -1
  143. package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs +8 -9
  144. package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs.map +1 -1
  145. package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs +9 -10
  146. package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs.map +1 -1
  147. package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs +9 -10
  148. package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs.map +1 -1
  149. package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs +8 -9
  150. package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs.map +1 -1
  151. package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs +9 -10
  152. package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs.map +1 -1
  153. package/dist/astro/routes/api/admin/transfer/exports/index.d.mts.map +1 -1
  154. package/dist/astro/routes/api/admin/transfer/exports/index.mjs +11 -13
  155. package/dist/astro/routes/api/admin/transfer/exports/index.mjs.map +1 -1
  156. package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs +8 -9
  157. package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs.map +1 -1
  158. package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs +8 -9
  159. package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs.map +1 -1
  160. package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs +10 -11
  161. package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs.map +1 -1
  162. package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs +8 -9
  163. package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs.map +1 -1
  164. package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs +11 -12
  165. package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs.map +1 -1
  166. package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs +9 -10
  167. package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs.map +1 -1
  168. package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs +8 -9
  169. package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs.map +1 -1
  170. package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs +10 -11
  171. package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs.map +1 -1
  172. package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs +8 -9
  173. package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs.map +1 -1
  174. package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs +8 -9
  175. package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs.map +1 -1
  176. package/dist/astro/routes/api/admin/transfer/imports/index.d.mts.map +1 -1
  177. package/dist/astro/routes/api/admin/transfer/imports/index.mjs +13 -15
  178. package/dist/astro/routes/api/admin/transfer/imports/index.mjs.map +1 -1
  179. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +2 -2
  180. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +1 -1
  181. package/dist/astro/routes/api/admin/users/_id_/index.mjs +4 -4
  182. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +4 -4
  183. package/dist/astro/routes/api/admin/users/index.mjs +3 -3
  184. package/dist/astro/routes/api/auth/dev-bypass.mjs +2 -2
  185. package/dist/astro/routes/api/auth/handover.mjs +3 -3
  186. package/dist/astro/routes/api/auth/invite/accept.mjs +1 -1
  187. package/dist/astro/routes/api/auth/invite/complete.d.mts.map +1 -1
  188. package/dist/astro/routes/api/auth/invite/complete.mjs +10 -9
  189. package/dist/astro/routes/api/auth/invite/complete.mjs.map +1 -1
  190. package/dist/astro/routes/api/auth/invite/index.mjs +6 -6
  191. package/dist/astro/routes/api/auth/invite/register-options.mjs +6 -6
  192. package/dist/astro/routes/api/auth/logout.mjs +2 -2
  193. package/dist/astro/routes/api/auth/magic-link/send.mjs +8 -8
  194. package/dist/astro/routes/api/auth/magic-link/verify.d.mts.map +1 -1
  195. package/dist/astro/routes/api/auth/magic-link/verify.mjs +7 -6
  196. package/dist/astro/routes/api/auth/magic-link/verify.mjs.map +1 -1
  197. package/dist/astro/routes/api/auth/me.mjs +4 -4
  198. package/dist/astro/routes/api/auth/mode.mjs +1 -1
  199. package/dist/astro/routes/api/auth/oauth/_provider_/callback.d.mts.map +1 -1
  200. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +6 -5
  201. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs.map +1 -1
  202. package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
  203. package/dist/astro/routes/api/auth/passkey/_id_.mjs +3 -3
  204. package/dist/astro/routes/api/auth/passkey/index.mjs +1 -1
  205. package/dist/astro/routes/api/auth/passkey/options.mjs +9 -9
  206. package/dist/astro/routes/api/auth/passkey/register/options.mjs +6 -6
  207. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +7 -7
  208. package/dist/astro/routes/api/auth/passkey/verify.d.mts.map +1 -1
  209. package/dist/astro/routes/api/auth/passkey/verify.mjs +10 -9
  210. package/dist/astro/routes/api/auth/passkey/verify.mjs.map +1 -1
  211. package/dist/astro/routes/api/auth/signup/complete.d.mts.map +1 -1
  212. package/dist/astro/routes/api/auth/signup/complete.mjs +10 -9
  213. package/dist/astro/routes/api/auth/signup/complete.mjs.map +1 -1
  214. package/dist/astro/routes/api/auth/signup/register-options.d.mts +8 -0
  215. package/dist/astro/routes/api/auth/signup/register-options.d.mts.map +1 -0
  216. package/dist/astro/routes/api/auth/signup/register-options.mjs +44 -0
  217. package/dist/astro/routes/api/auth/signup/register-options.mjs.map +1 -0
  218. package/dist/astro/routes/api/auth/signup/request.mjs +7 -7
  219. package/dist/astro/routes/api/auth/signup/verify.mjs +1 -1
  220. package/dist/astro/routes/api/calendar.mjs +4 -4
  221. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts.map +1 -1
  222. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +6 -7
  223. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs.map +1 -1
  224. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.d.mts.map +1 -1
  225. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +11 -12
  226. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs.map +1 -1
  227. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +2 -2
  228. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +9 -10
  229. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs.map +1 -1
  230. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +6 -7
  231. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs.map +1 -1
  232. package/dist/astro/routes/api/content/_collection_/_id_/lock.d.mts.map +1 -1
  233. package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs +15 -15
  234. package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs.map +1 -1
  235. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +2 -2
  236. package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs +2 -2
  237. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +8 -8
  238. package/dist/astro/routes/api/content/_collection_/_id_/publish.d.mts.map +1 -1
  239. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +9 -10
  240. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
  241. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +6 -7
  242. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs.map +1 -1
  243. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +6 -7
  244. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs.map +1 -1
  245. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +3 -3
  246. package/dist/astro/routes/api/content/_collection_/_id_/revisions/editors.mjs +2 -2
  247. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +6 -6
  248. package/dist/astro/routes/api/content/_collection_/_id_/room.mjs +4 -4
  249. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +6 -6
  250. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.d.mts.map +1 -1
  251. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +16 -19
  252. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs.map +1 -1
  253. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +2 -2
  254. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +9 -10
  255. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs.map +1 -1
  256. package/dist/astro/routes/api/content/_collection_/_id_.d.mts.map +1 -1
  257. package/dist/astro/routes/api/content/_collection_/_id_.mjs +19 -19
  258. package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
  259. package/dist/astro/routes/api/content/_collection_/authors.mjs +2 -2
  260. package/dist/astro/routes/api/content/_collection_/index.mjs +5 -5
  261. package/dist/astro/routes/api/content/_collection_/trash.mjs +4 -4
  262. package/dist/astro/routes/api/dashboard.mjs +6 -6
  263. package/dist/astro/routes/api/dev/emails.mjs +2 -2
  264. package/dist/astro/routes/api/dev/scheduled-tasks.mjs +4 -3
  265. package/dist/astro/routes/api/dev/scheduled-tasks.mjs.map +1 -1
  266. package/dist/astro/routes/api/health.mjs +3 -3
  267. package/dist/astro/routes/api/import/probe.d.mts +4 -4
  268. package/dist/astro/routes/api/import/probe.mjs +6 -6
  269. package/dist/astro/routes/api/import/wordpress/analyze.d.mts +3 -3
  270. package/dist/astro/routes/api/import/wordpress/analyze.mjs +3 -3
  271. package/dist/astro/routes/api/import/wordpress/execute.d.mts +16 -16
  272. package/dist/astro/routes/api/import/wordpress/execute.mjs +7 -7
  273. package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
  274. package/dist/astro/routes/api/import/wordpress/media.d.mts +15 -15
  275. package/dist/astro/routes/api/import/wordpress/media.d.mts.map +1 -1
  276. package/dist/astro/routes/api/import/wordpress/media.mjs +9 -8
  277. package/dist/astro/routes/api/import/wordpress/media.mjs.map +1 -1
  278. package/dist/astro/routes/api/import/wordpress/prepare.mjs +7 -7
  279. package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +16 -16
  280. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +6 -6
  281. package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
  282. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +6 -6
  283. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +16 -16
  284. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +13 -13
  285. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
  286. package/dist/astro/routes/api/manifest.mjs +4 -4
  287. package/dist/astro/routes/api/mcp.mjs +84 -77
  288. package/dist/astro/routes/api/mcp.mjs.map +1 -1
  289. package/dist/astro/routes/api/media/_id_/confirm.mjs +7 -7
  290. package/dist/astro/routes/api/media/_id_/replace.d.mts.map +1 -1
  291. package/dist/astro/routes/api/media/_id_/replace.mjs +8 -6
  292. package/dist/astro/routes/api/media/_id_/replace.mjs.map +1 -1
  293. package/dist/astro/routes/api/media/_id_/upload.mjs +5 -5
  294. package/dist/astro/routes/api/media/_id_/usage.mjs +6 -6
  295. package/dist/astro/routes/api/media/_id_.d.mts.map +1 -1
  296. package/dist/astro/routes/api/media/_id_.mjs +11 -8
  297. package/dist/astro/routes/api/media/_id_.mjs.map +1 -1
  298. package/dist/astro/routes/api/media/asset/_id_/_filename_.mjs +3 -3
  299. package/dist/astro/routes/api/media/file/_...key_.d.mts.map +1 -1
  300. package/dist/astro/routes/api/media/file/_...key_.mjs +7 -5
  301. package/dist/astro/routes/api/media/file/_...key_.mjs.map +1 -1
  302. package/dist/astro/routes/api/media/folders/_id_.mjs +5 -5
  303. package/dist/astro/routes/api/media/folders/index.mjs +5 -5
  304. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.d.mts.map +1 -1
  305. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +10 -4
  306. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs.map +1 -1
  307. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +2 -2
  308. package/dist/astro/routes/api/media/providers/index.mjs +2 -2
  309. package/dist/astro/routes/api/media/upload-url.mjs +7 -7
  310. package/dist/astro/routes/api/media.mjs +9 -9
  311. package/dist/astro/routes/api/menus/_name_/items/_id_.d.mts.map +1 -1
  312. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +8 -6
  313. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs.map +1 -1
  314. package/dist/astro/routes/api/menus/_name_/items.mjs +7 -6
  315. package/dist/astro/routes/api/menus/_name_/items.mjs.map +1 -1
  316. package/dist/astro/routes/api/menus/_name_/reorder.mjs +7 -6
  317. package/dist/astro/routes/api/menus/_name_/reorder.mjs.map +1 -1
  318. package/dist/astro/routes/api/menus/_name_/translations.d.mts.map +1 -1
  319. package/dist/astro/routes/api/menus/_name_/translations.mjs +7 -9
  320. package/dist/astro/routes/api/menus/_name_/translations.mjs.map +1 -1
  321. package/dist/astro/routes/api/menus/_name_.d.mts.map +1 -1
  322. package/dist/astro/routes/api/menus/_name_.mjs +9 -6
  323. package/dist/astro/routes/api/menus/_name_.mjs.map +1 -1
  324. package/dist/astro/routes/api/menus/index.d.mts.map +1 -1
  325. package/dist/astro/routes/api/menus/index.mjs +8 -6
  326. package/dist/astro/routes/api/menus/index.mjs.map +1 -1
  327. package/dist/astro/routes/api/oauth/authorize.mjs +3 -3
  328. package/dist/astro/routes/api/oauth/device/authorize.mjs +3 -3
  329. package/dist/astro/routes/api/oauth/device/code.mjs +6 -6
  330. package/dist/astro/routes/api/oauth/device/token.mjs +5 -5
  331. package/dist/astro/routes/api/oauth/register.mjs +4 -4
  332. package/dist/astro/routes/api/oauth/token/refresh.mjs +3 -3
  333. package/dist/astro/routes/api/oauth/token/revoke.mjs +3 -3
  334. package/dist/astro/routes/api/oauth/token.mjs +4 -4
  335. package/dist/astro/routes/api/openapi.json.mjs +9 -9
  336. package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
  337. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +2 -2
  338. package/dist/astro/routes/api/redirects/404s/index.d.mts.map +1 -1
  339. package/dist/astro/routes/api/redirects/404s/index.mjs +8 -11
  340. package/dist/astro/routes/api/redirects/404s/index.mjs.map +1 -1
  341. package/dist/astro/routes/api/redirects/404s/summary.mjs +6 -7
  342. package/dist/astro/routes/api/redirects/404s/summary.mjs.map +1 -1
  343. package/dist/astro/routes/api/redirects/_id_.d.mts.map +1 -1
  344. package/dist/astro/routes/api/redirects/_id_.mjs +9 -12
  345. package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
  346. package/dist/astro/routes/api/redirects/index.d.mts.map +1 -1
  347. package/dist/astro/routes/api/redirects/index.mjs +8 -10
  348. package/dist/astro/routes/api/redirects/index.mjs.map +1 -1
  349. package/dist/astro/routes/api/relations/_id_/index.d.mts.map +1 -1
  350. package/dist/astro/routes/api/relations/_id_/index.mjs +8 -11
  351. package/dist/astro/routes/api/relations/_id_/index.mjs.map +1 -1
  352. package/dist/astro/routes/api/relations/index.d.mts.map +1 -1
  353. package/dist/astro/routes/api/relations/index.mjs +7 -9
  354. package/dist/astro/routes/api/relations/index.mjs.map +1 -1
  355. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +2 -2
  356. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +6 -6
  357. package/dist/astro/routes/api/schema/block-types/_slug_/index.d.mts.map +1 -1
  358. package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs +7 -9
  359. package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs.map +1 -1
  360. package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs +6 -7
  361. package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs.map +1 -1
  362. package/dist/astro/routes/api/schema/block-types/index.d.mts.map +1 -1
  363. package/dist/astro/routes/api/schema/block-types/index.mjs +7 -9
  364. package/dist/astro/routes/api/schema/block-types/index.mjs.map +1 -1
  365. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.d.mts.map +1 -1
  366. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +8 -11
  367. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
  368. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.d.mts.map +1 -1
  369. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +7 -9
  370. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
  371. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +6 -7
  372. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
  373. package/dist/astro/routes/api/schema/collections/_slug_/index.d.mts.map +1 -1
  374. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +8 -11
  375. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
  376. package/dist/astro/routes/api/schema/collections/index.d.mts.map +1 -1
  377. package/dist/astro/routes/api/schema/collections/index.mjs +7 -9
  378. package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
  379. package/dist/astro/routes/api/schema/collections/reorder.mjs +6 -7
  380. package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
  381. package/dist/astro/routes/api/schema/index.mjs +4 -5
  382. package/dist/astro/routes/api/schema/index.mjs.map +1 -1
  383. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +6 -7
  384. package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
  385. package/dist/astro/routes/api/schema/orphans/index.mjs +4 -5
  386. package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
  387. package/dist/astro/routes/api/search/enable.d.mts.map +1 -1
  388. package/dist/astro/routes/api/search/enable.mjs +8 -5
  389. package/dist/astro/routes/api/search/enable.mjs.map +1 -1
  390. package/dist/astro/routes/api/search/index.d.mts.map +1 -1
  391. package/dist/astro/routes/api/search/index.mjs +7 -4
  392. package/dist/astro/routes/api/search/index.mjs.map +1 -1
  393. package/dist/astro/routes/api/search/rebuild.d.mts.map +1 -1
  394. package/dist/astro/routes/api/search/rebuild.mjs +8 -5
  395. package/dist/astro/routes/api/search/rebuild.mjs.map +1 -1
  396. package/dist/astro/routes/api/search/stats.d.mts.map +1 -1
  397. package/dist/astro/routes/api/search/stats.mjs +6 -3
  398. package/dist/astro/routes/api/search/stats.mjs.map +1 -1
  399. package/dist/astro/routes/api/search/suggest.d.mts.map +1 -1
  400. package/dist/astro/routes/api/search/suggest.mjs +7 -4
  401. package/dist/astro/routes/api/search/suggest.mjs.map +1 -1
  402. package/dist/astro/routes/api/sections/_slug_.d.mts.map +1 -1
  403. package/dist/astro/routes/api/sections/_slug_.mjs +8 -11
  404. package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
  405. package/dist/astro/routes/api/sections/index.d.mts.map +1 -1
  406. package/dist/astro/routes/api/sections/index.mjs +7 -9
  407. package/dist/astro/routes/api/sections/index.mjs.map +1 -1
  408. package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +4 -4
  409. package/dist/astro/routes/api/settings/backups/archives/index.mjs +3 -3
  410. package/dist/astro/routes/api/settings/backups/export.mjs +4 -4
  411. package/dist/astro/routes/api/settings/backups/index.mjs +5 -5
  412. package/dist/astro/routes/api/settings/domain-notify.mjs +6 -6
  413. package/dist/astro/routes/api/settings/domain.mjs +6 -6
  414. package/dist/astro/routes/api/settings/email.mjs +5 -5
  415. package/dist/astro/routes/api/settings.mjs +5 -5
  416. package/dist/astro/routes/api/setup/admin-verify.d.mts.map +1 -1
  417. package/dist/astro/routes/api/setup/admin-verify.mjs +12 -11
  418. package/dist/astro/routes/api/setup/admin-verify.mjs.map +1 -1
  419. package/dist/astro/routes/api/setup/admin.mjs +7 -7
  420. package/dist/astro/routes/api/setup/dev-bypass.mjs +8 -8
  421. package/dist/astro/routes/api/setup/dev-reset.mjs +1 -1
  422. package/dist/astro/routes/api/setup/index.mjs +8 -8
  423. package/dist/astro/routes/api/setup/status.mjs +2 -2
  424. package/dist/astro/routes/api/site/domain-proof.mjs +2 -2
  425. package/dist/astro/routes/api/snapshot.mjs +6 -6
  426. package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +6 -7
  427. package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs.map +1 -1
  428. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.d.mts.map +1 -1
  429. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +7 -9
  430. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs.map +1 -1
  431. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.d.mts.map +1 -1
  432. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +9 -12
  433. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs.map +1 -1
  434. package/dist/astro/routes/api/taxonomies/_name_/terms/index.d.mts.map +1 -1
  435. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +7 -9
  436. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs.map +1 -1
  437. package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +6 -7
  438. package/dist/astro/routes/api/taxonomies/_name_/translations.mjs.map +1 -1
  439. package/dist/astro/routes/api/taxonomies/_name_.d.mts.map +1 -1
  440. package/dist/astro/routes/api/taxonomies/_name_.mjs +9 -12
  441. package/dist/astro/routes/api/taxonomies/_name_.mjs.map +1 -1
  442. package/dist/astro/routes/api/taxonomies/bulk-tag.mjs +12 -13
  443. package/dist/astro/routes/api/taxonomies/bulk-tag.mjs.map +1 -1
  444. package/dist/astro/routes/api/taxonomies/index.d.mts.map +1 -1
  445. package/dist/astro/routes/api/taxonomies/index.mjs +8 -10
  446. package/dist/astro/routes/api/taxonomies/index.mjs.map +1 -1
  447. package/dist/astro/routes/api/themes/preview.mjs +4 -4
  448. package/dist/astro/routes/api/typegen.mjs +3 -3
  449. package/dist/astro/routes/api/visual-editing/action-token.mjs +3 -3
  450. package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs +3 -3
  451. package/dist/astro/routes/api/visual-editing/toolbar-labels.mjs +1 -1
  452. package/dist/astro/routes/api/well-known/auth.mjs +1 -1
  453. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +1 -1
  454. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +1 -1
  455. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +6 -5
  456. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs.map +1 -1
  457. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.d.mts.map +1 -1
  458. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +8 -6
  459. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
  460. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +7 -6
  461. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
  462. package/dist/astro/routes/api/widget-areas/_name_.d.mts.map +1 -1
  463. package/dist/astro/routes/api/widget-areas/_name_.mjs +6 -4
  464. package/dist/astro/routes/api/widget-areas/_name_.mjs.map +1 -1
  465. package/dist/astro/routes/api/widget-areas/index.d.mts.map +1 -1
  466. package/dist/astro/routes/api/widget-areas/index.mjs +8 -6
  467. package/dist/astro/routes/api/widget-areas/index.mjs.map +1 -1
  468. package/dist/astro/routes/api/widget-components.mjs +2 -2
  469. package/dist/astro/routes/robots.txt.mjs +2 -2
  470. package/dist/astro/routes/sitemap-_collection_.xml.mjs +5 -5
  471. package/dist/astro/routes/sitemap.xml.mjs +3 -3
  472. package/dist/astro/types.d.mts +82 -69
  473. package/dist/astro/types.d.mts.map +1 -1
  474. package/dist/auth/providers/github.d.mts +1 -1
  475. package/dist/auth/providers/google.d.mts +1 -1
  476. package/dist/auth/providers/microsoft.d.mts +1 -1
  477. package/dist/authoritative-records-DFHFmreO.mjs +5183 -0
  478. package/dist/authoritative-records-DFHFmreO.mjs.map +1 -0
  479. package/dist/authorize-6a0h5NN5.mjs +74 -0
  480. package/dist/authorize-6a0h5NN5.mjs.map +1 -0
  481. package/dist/backup-GBRxixs1.mjs +246 -0
  482. package/dist/backup-GBRxixs1.mjs.map +1 -0
  483. package/dist/block-types-BeLZ85Sw.mjs +132 -0
  484. package/dist/block-types-BeLZ85Sw.mjs.map +1 -0
  485. package/dist/block-values-BRJZHvF4.mjs +215 -0
  486. package/dist/block-values-BRJZHvF4.mjs.map +1 -0
  487. package/dist/byline-BufjxQyd.mjs +930 -0
  488. package/dist/byline-BufjxQyd.mjs.map +1 -0
  489. package/dist/byline-fields-Bw7z2opJ.mjs +123 -0
  490. package/dist/byline-fields-Bw7z2opJ.mjs.map +1 -0
  491. package/dist/byline-registry-edmv55U7.mjs +406 -0
  492. package/dist/byline-registry-edmv55U7.mjs.map +1 -0
  493. package/dist/bylines-C8ZT6iWw.mjs +234 -0
  494. package/dist/bylines-C8ZT6iWw.mjs.map +1 -0
  495. package/dist/bylines-a01JW9yq.mjs +150 -0
  496. package/dist/bylines-a01JW9yq.mjs.map +1 -0
  497. package/dist/cache-LOb3NthC.mjs +151 -0
  498. package/dist/cache-LOb3NthC.mjs.map +1 -0
  499. package/dist/canonical-CUkatNPc.mjs +174 -0
  500. package/dist/canonical-CUkatNPc.mjs.map +1 -0
  501. package/dist/capture-triggers-BK2pp_kZ.mjs +362 -0
  502. package/dist/capture-triggers-BK2pp_kZ.mjs.map +1 -0
  503. package/dist/checksum-C8lkApUe.mjs +162 -0
  504. package/dist/checksum-C8lkApUe.mjs.map +1 -0
  505. package/dist/chunks-CvgCLYip.mjs +25 -0
  506. package/dist/chunks-CvgCLYip.mjs.map +1 -0
  507. package/dist/cli/index.mjs +24 -24
  508. package/dist/client/cf-access.d.mts +1 -1
  509. package/dist/client/index.d.mts +63 -63
  510. package/dist/client/index.d.mts.map +1 -1
  511. package/dist/client/index.mjs +6 -4
  512. package/dist/client/index.mjs.map +1 -1
  513. package/dist/collection-slugs-cache-CLR_8fY5.mjs +91 -0
  514. package/dist/collection-slugs-cache-CLR_8fY5.mjs.map +1 -0
  515. package/dist/comment-C163Gl_4.mjs +335 -0
  516. package/dist/comment-C163Gl_4.mjs.map +1 -0
  517. package/dist/comment-reaction-1Df3G-ij.mjs +85 -0
  518. package/dist/comment-reaction-1Df3G-ij.mjs.map +1 -0
  519. package/dist/comments-BFyw2y-m.mjs +99 -0
  520. package/dist/comments-BFyw2y-m.mjs.map +1 -0
  521. package/dist/comments-D73Sy_2U.mjs +195 -0
  522. package/dist/comments-D73Sy_2U.mjs.map +1 -0
  523. package/dist/components-DjV1sxUL.mjs +112 -0
  524. package/dist/components-DjV1sxUL.mjs.map +1 -0
  525. package/dist/config-B27hvMjf.d.mts +7274 -0
  526. package/dist/config-B27hvMjf.d.mts.map +1 -0
  527. package/dist/config-DLzKVQBA.d.mts +41 -0
  528. package/dist/config-DLzKVQBA.d.mts.map +1 -0
  529. package/dist/config-DeluGa9H.mjs +228 -0
  530. package/dist/config-DeluGa9H.mjs.map +1 -0
  531. package/dist/connection-D6aKSo2Y.mjs +36 -0
  532. package/dist/connection-D6aKSo2Y.mjs.map +1 -0
  533. package/dist/content-2gjSbGP3.mjs +2295 -0
  534. package/dist/content-2gjSbGP3.mjs.map +1 -0
  535. package/dist/content-list-query-B9SlIDbL.d.mts +26 -0
  536. package/dist/content-list-query-B9SlIDbL.d.mts.map +1 -0
  537. package/dist/content-repair-Dizo4qiY.mjs +443 -0
  538. package/dist/content-repair-Dizo4qiY.mjs.map +1 -0
  539. package/dist/content-save-BKDTKmkx.mjs +202 -0
  540. package/dist/content-save-BKDTKmkx.mjs.map +1 -0
  541. package/dist/context-DCQrjN95.mjs +2242 -0
  542. package/dist/context-DCQrjN95.mjs.map +1 -0
  543. package/dist/credits-Bxp4F72g.mjs +110 -0
  544. package/dist/credits-Bxp4F72g.mjs.map +1 -0
  545. package/dist/cron-DEV8oz3R.mjs +310 -0
  546. package/dist/cron-DEV8oz3R.mjs.map +1 -0
  547. package/dist/db/index.d.mts +3 -3
  548. package/dist/db/index.mjs +1 -1
  549. package/dist/db/libsql-migrations.d.mts +1 -1
  550. package/dist/db/libsql-migrations.mjs +2 -2
  551. package/dist/db/libsql.d.mts +1 -1
  552. package/dist/db/postgres-migrations.d.mts +1 -1
  553. package/dist/db/postgres-migrations.mjs +2 -2
  554. package/dist/db/postgres.d.mts +1 -1
  555. package/dist/db/sqlite-migrations.d.mts +1 -1
  556. package/dist/db/sqlite-migrations.mjs +2 -2
  557. package/dist/db/sqlite.d.mts +1 -1
  558. package/dist/db/sqlite.mjs +1 -1
  559. package/dist/default-DKs7zP7m.mjs +81 -0
  560. package/dist/default-DKs7zP7m.mjs.map +1 -0
  561. package/dist/deferred-tasks-B5LQWb5F.d.mts +10 -0
  562. package/dist/deferred-tasks-B5LQWb5F.d.mts.map +1 -0
  563. package/dist/device-flow-D6kyi3jX.mjs +519 -0
  564. package/dist/device-flow-D6kyi3jX.mjs.map +1 -0
  565. package/dist/dialect-helpers-DRe1Y08G.mjs +355 -0
  566. package/dist/dialect-helpers-DRe1Y08G.mjs.map +1 -0
  567. package/dist/digest-DSsUd9oL.mjs +194 -0
  568. package/dist/digest-DSsUd9oL.mjs.map +1 -0
  569. package/dist/direct-executor-DAcU8MTG.mjs +117 -0
  570. package/dist/direct-executor-DAcU8MTG.mjs.map +1 -0
  571. package/dist/email-console-CBZpj1VI.mjs +50 -0
  572. package/dist/email-console-CBZpj1VI.mjs.map +1 -0
  573. package/dist/email-locale-CGjBa23b.mjs +25 -0
  574. package/dist/email-locale-CGjBa23b.mjs.map +1 -0
  575. package/dist/email-smtp-CE6nESRL.mjs +643 -0
  576. package/dist/email-smtp-CE6nESRL.mjs.map +1 -0
  577. package/dist/emdash-runtime-CF6KAut9.mjs +5576 -0
  578. package/dist/emdash-runtime-CF6KAut9.mjs.map +1 -0
  579. package/dist/enrich-C4vKniyi.mjs +203 -0
  580. package/dist/enrich-C4vKniyi.mjs.map +1 -0
  581. package/dist/entry-lock-DJgDNfMf.mjs +1230 -0
  582. package/dist/entry-lock-DJgDNfMf.mjs.map +1 -0
  583. package/dist/entry-lock-GKD0lJI5.mjs +207 -0
  584. package/dist/entry-lock-GKD0lJI5.mjs.map +1 -0
  585. package/dist/entry-locks-B58Q9LZh.mjs +173 -0
  586. package/dist/entry-locks-B58Q9LZh.mjs.map +1 -0
  587. package/dist/env-types-EL7WTMzr.mjs +38 -0
  588. package/dist/env-types-EL7WTMzr.mjs.map +1 -0
  589. package/dist/error-0Y0dFPxm.mjs +82 -0
  590. package/dist/error-0Y0dFPxm.mjs.map +1 -0
  591. package/dist/errors-OTWh4SC_.mjs +502 -0
  592. package/dist/errors-OTWh4SC_.mjs.map +1 -0
  593. package/dist/errors-u5rZhbVQ.mjs +120 -0
  594. package/dist/errors-u5rZhbVQ.mjs.map +1 -0
  595. package/dist/fence-CkdbSoZX.mjs +162 -0
  596. package/dist/fence-CkdbSoZX.mjs.map +1 -0
  597. package/dist/field-defs-cache-BW0Y9Wrp.mjs +79 -0
  598. package/dist/field-defs-cache-BW0Y9Wrp.mjs.map +1 -0
  599. package/dist/field-map-Bhqs6zUK.mjs +84 -0
  600. package/dist/field-map-Bhqs6zUK.mjs.map +1 -0
  601. package/dist/fts-manager-m8GPxogO.mjs +532 -0
  602. package/dist/fts-manager-m8GPxogO.mjs.map +1 -0
  603. package/dist/gc-CEhfEMLY.mjs +62 -0
  604. package/dist/gc-CEhfEMLY.mjs.map +1 -0
  605. package/dist/hook-result-CG0uHAT5.d.mts +31 -0
  606. package/dist/hook-result-CG0uHAT5.d.mts.map +1 -0
  607. package/dist/hook-result-mOyk-VCt.mjs +3855 -0
  608. package/dist/hook-result-mOyk-VCt.mjs.map +1 -0
  609. package/dist/hreflang-B1E64c5R.d.mts +51 -0
  610. package/dist/hreflang-B1E64c5R.d.mts.map +1 -0
  611. package/dist/hreflang-DaMRoUor.mjs +105 -0
  612. package/dist/hreflang-DaMRoUor.mjs.map +1 -0
  613. package/dist/http-route-dispatch-Y8bwyixm.mjs +348 -0
  614. package/dist/http-route-dispatch-Y8bwyixm.mjs.map +1 -0
  615. package/dist/identity-cqdOzgy9.mjs +35 -0
  616. package/dist/identity-cqdOzgy9.mjs.map +1 -0
  617. package/dist/index-CzbH8FX2.d.mts +261 -0
  618. package/dist/index-CzbH8FX2.d.mts.map +1 -0
  619. package/dist/index.d.mts +25 -25
  620. package/dist/index.mjs +60 -53
  621. package/dist/index.mjs.map +1 -1
  622. package/dist/install-finalization-B02IcpqW.mjs +58 -0
  623. package/dist/install-finalization-B02IcpqW.mjs.map +1 -0
  624. package/dist/json-recordset-2VNAgija.mjs +12 -0
  625. package/dist/json-recordset-2VNAgija.mjs.map +1 -0
  626. package/dist/json-schema-CnImQ4DF.mjs +15 -0
  627. package/dist/json-schema-CnImQ4DF.mjs.map +1 -0
  628. package/dist/keys-B5WUGmYK.mjs +61 -0
  629. package/dist/keys-B5WUGmYK.mjs.map +1 -0
  630. package/dist/kinds-DyAmbNrx.mjs +974 -0
  631. package/dist/kinds-DyAmbNrx.mjs.map +1 -0
  632. package/dist/lifecycle-1Nl01SeB.mjs +53 -0
  633. package/dist/lifecycle-1Nl01SeB.mjs.map +1 -0
  634. package/dist/limits-BuiMu9zx.mjs +44 -0
  635. package/dist/limits-BuiMu9zx.mjs.map +1 -0
  636. package/dist/load-CEt0TQ4_.mjs +36 -0
  637. package/dist/load-CEt0TQ4_.mjs.map +1 -0
  638. package/dist/loader-DF6J1Fpd.mjs +1537 -0
  639. package/dist/loader-DF6J1Fpd.mjs.map +1 -0
  640. package/dist/loops-3DdrfQ6y.mjs +217 -0
  641. package/dist/loops-3DdrfQ6y.mjs.map +1 -0
  642. package/dist/manifest-builder-Dcfqd9Aw.mjs +196 -0
  643. package/dist/manifest-builder-Dcfqd9Aw.mjs.map +1 -0
  644. package/dist/manifest-schema-Pi_JP_Wi.mjs +497 -0
  645. package/dist/manifest-schema-Pi_JP_Wi.mjs.map +1 -0
  646. package/dist/marketplace-BsMC_Z7o.mjs +257 -0
  647. package/dist/marketplace-BsMC_Z7o.mjs.map +1 -0
  648. package/dist/marketplace-D9fChLav.mjs +965 -0
  649. package/dist/marketplace-D9fChLav.mjs.map +1 -0
  650. package/dist/media/image-endpoint.d.mts +33 -1
  651. package/dist/media/image-endpoint.d.mts.map +1 -1
  652. package/dist/media/image-endpoint.mjs +77 -1
  653. package/dist/media/image-endpoint.mjs.map +1 -1
  654. package/dist/media/index.d.mts +1 -1
  655. package/dist/media/index.mjs +1 -1
  656. package/dist/media/local-runtime.d.mts +17 -17
  657. package/dist/media/local-runtime.mjs +3 -3
  658. package/dist/media--P-IEycF.mjs +2813 -0
  659. package/dist/media--P-IEycF.mjs.map +1 -0
  660. package/dist/media-CTA82rU1.mjs +295 -0
  661. package/dist/media-CTA82rU1.mjs.map +1 -0
  662. package/dist/media-Cq_oKN_Y.mjs +425 -0
  663. package/dist/media-Cq_oKN_Y.mjs.map +1 -0
  664. package/dist/media-DRDkfiDv.d.mts +203 -0
  665. package/dist/media-DRDkfiDv.d.mts.map +1 -0
  666. package/dist/media-allowlist-C_kSleFj.mjs +103 -0
  667. package/dist/media-allowlist-C_kSleFj.mjs.map +1 -0
  668. package/dist/media-folders-Lc9Ks8az.mjs +205 -0
  669. package/dist/media-folders-Lc9Ks8az.mjs.map +1 -0
  670. package/dist/media-url-BEvOId4Z.mjs +43 -0
  671. package/dist/media-url-BEvOId4Z.mjs.map +1 -0
  672. package/dist/media-usage-D6LjfdGn.mjs +282 -0
  673. package/dist/media-usage-D6LjfdGn.mjs.map +1 -0
  674. package/dist/media-usage-activation-i6tqb6cn.mjs +78 -0
  675. package/dist/media-usage-activation-i6tqb6cn.mjs.map +1 -0
  676. package/dist/media-usage-work-C5HHgfEU.mjs +1036 -0
  677. package/dist/media-usage-work-C5HHgfEU.mjs.map +1 -0
  678. package/dist/media-usage-work-CxqS_Ny9.mjs +151 -0
  679. package/dist/media-usage-work-CxqS_Ny9.mjs.map +1 -0
  680. package/dist/menu-CvWToneO.mjs +420 -0
  681. package/dist/menu-CvWToneO.mjs.map +1 -0
  682. package/dist/menus-BzjHvAM4.mjs +434 -0
  683. package/dist/menus-BzjHvAM4.mjs.map +1 -0
  684. package/dist/menus-CnEw5nz8.mjs +92 -0
  685. package/dist/menus-CnEw5nz8.mjs.map +1 -0
  686. package/dist/menus-DoVbs2sn.mjs +433 -0
  687. package/dist/menus-DoVbs2sn.mjs.map +1 -0
  688. package/dist/migrations/index.d.mts +1 -1
  689. package/dist/migrations/index.mjs +2 -2
  690. package/dist/mime-C_YV5Mjm.mjs +90 -0
  691. package/dist/mime-C_YV5Mjm.mjs.map +1 -0
  692. package/dist/node-sqlite-compat-DHFDZMe2.mjs +68 -0
  693. package/dist/node-sqlite-compat-DHFDZMe2.mjs.map +1 -0
  694. package/dist/oauth-authorization-CvT-8KtG.mjs +287 -0
  695. package/dist/oauth-authorization-CvT-8KtG.mjs.map +1 -0
  696. package/dist/oauth-clients-ohsH0FlQ.mjs +266 -0
  697. package/dist/oauth-clients-ohsH0FlQ.mjs.map +1 -0
  698. package/dist/oauth-state-store-V4y2qZwD.mjs +80 -0
  699. package/dist/oauth-state-store-V4y2qZwD.mjs.map +1 -0
  700. package/dist/oauth-user-lookup-D2NTHxcr.mjs +26 -0
  701. package/dist/oauth-user-lookup-D2NTHxcr.mjs.map +1 -0
  702. package/dist/object-cache/memory.d.mts +1 -1
  703. package/dist/object-cache-I4Re7BOR.mjs +807 -0
  704. package/dist/object-cache-I4Re7BOR.mjs.map +1 -0
  705. package/dist/options-CbSYZAwr.d.mts +81 -0
  706. package/dist/options-CbSYZAwr.d.mts.map +1 -0
  707. package/dist/page/index.d.mts +2 -2
  708. package/dist/parse-BTfkfMuL.mjs +82 -0
  709. package/dist/parse-BTfkfMuL.mjs.map +1 -0
  710. package/dist/parse-CBM779p-.d.mts +180 -0
  711. package/dist/parse-CBM779p-.d.mts.map +1 -0
  712. package/dist/parts-i0nNljq-.mjs +68 -0
  713. package/dist/parts-i0nNljq-.mjs.map +1 -0
  714. package/dist/passkey-config-D9iYgt4G.mjs +46 -0
  715. package/dist/passkey-config-D9iYgt4G.mjs.map +1 -0
  716. package/dist/paths-B1TgS0ir.mjs +77 -0
  717. package/dist/paths-B1TgS0ir.mjs.map +1 -0
  718. package/dist/placeholder-PFMxMYTa.d.mts +316 -0
  719. package/dist/placeholder-PFMxMYTa.d.mts.map +1 -0
  720. package/dist/plan-DQoNgF2Y.mjs +135 -0
  721. package/dist/plan-DQoNgF2Y.mjs.map +1 -0
  722. package/dist/plugin-settings-CKffVNYE.mjs +162 -0
  723. package/dist/plugin-settings-CKffVNYE.mjs.map +1 -0
  724. package/dist/plugin-test-runtime.d.mts +23 -22
  725. package/dist/plugin-test-runtime.d.mts.map +1 -1
  726. package/dist/plugin-test-runtime.mjs +9 -8
  727. package/dist/plugin-types.d.mts +2 -2
  728. package/dist/plugin-utils.d.mts +15 -15
  729. package/dist/plugins/adapt-sandbox-entry.d.mts +15 -15
  730. package/dist/plugins/adapt-sandbox-entry.mjs +4 -4
  731. package/dist/plugins/host.d.mts +6 -6
  732. package/dist/plugins/host.mjs +8 -7
  733. package/dist/plugins-DDiWIA_N.mjs +261 -0
  734. package/dist/plugins-DDiWIA_N.mjs.map +1 -0
  735. package/dist/policy-72PGoCgJ.mjs +56 -0
  736. package/dist/policy-72PGoCgJ.mjs.map +1 -0
  737. package/dist/portable-text-D18C1jR6.mjs +457 -0
  738. package/dist/portable-text-D18C1jR6.mjs.map +1 -0
  739. package/dist/protocol-CbSoh3FE.d.mts +65 -0
  740. package/dist/protocol-CbSoh3FE.d.mts.map +1 -0
  741. package/dist/public-plugin-api-routes-Bq55wwHn.mjs +323 -0
  742. package/dist/public-plugin-api-routes-Bq55wwHn.mjs.map +1 -0
  743. package/dist/public-submission-BEcSmcWi.mjs +253 -0
  744. package/dist/public-submission-BEcSmcWi.mjs.map +1 -0
  745. package/dist/public-url-DYZMfvpa.mjs +123 -0
  746. package/dist/public-url-DYZMfvpa.mjs.map +1 -0
  747. package/dist/query-CslUTGOV.mjs +1221 -0
  748. package/dist/query-CslUTGOV.mjs.map +1 -0
  749. package/dist/query-Cv8bjIwl.mjs +41 -0
  750. package/dist/query-Cv8bjIwl.mjs.map +1 -0
  751. package/dist/range-CzdsIs-O.mjs +51 -0
  752. package/dist/range-CzdsIs-O.mjs.map +1 -0
  753. package/dist/rate-limit-iZgsy_oY.mjs +127 -0
  754. package/dist/rate-limit-iZgsy_oY.mjs.map +1 -0
  755. package/dist/receipt-CqxAacXn.mjs +43 -0
  756. package/dist/receipt-CqxAacXn.mjs.map +1 -0
  757. package/dist/redirect-3A3kqsD-.mjs +19 -0
  758. package/dist/redirect-3A3kqsD-.mjs.map +1 -0
  759. package/dist/redirect-DsaFuuQi.mjs +466 -0
  760. package/dist/redirect-DsaFuuQi.mjs.map +1 -0
  761. package/dist/redirect-paths-DgkkN0qJ.mjs +36 -0
  762. package/dist/redirect-paths-DgkkN0qJ.mjs.map +1 -0
  763. package/dist/redirects-DfvdrgF1.mjs +446 -0
  764. package/dist/redirects-DfvdrgF1.mjs.map +1 -0
  765. package/dist/redirects-Yo8YTJMV.mjs +148 -0
  766. package/dist/redirects-Yo8YTJMV.mjs.map +1 -0
  767. package/dist/registry/testing.mjs +2 -2
  768. package/dist/registry-2vAYgqCz.mjs +755 -0
  769. package/dist/registry-2vAYgqCz.mjs.map +1 -0
  770. package/dist/registry-COR9pjyi.mjs +1449 -0
  771. package/dist/registry-COR9pjyi.mjs.map +1 -0
  772. package/dist/registry-CSLrHSx1.mjs +6139 -0
  773. package/dist/registry-CSLrHSx1.mjs.map +1 -0
  774. package/dist/relations-5fVj42fZ.mjs +798 -0
  775. package/dist/relations-5fVj42fZ.mjs.map +1 -0
  776. package/dist/request-context.d.mts +2 -2
  777. package/dist/request-meta-B0TPrDpq.mjs +141 -0
  778. package/dist/request-meta-B0TPrDpq.mjs.map +1 -0
  779. package/dist/resolve--EmZidEz.mjs +92 -0
  780. package/dist/resolve--EmZidEz.mjs.map +1 -0
  781. package/dist/revision-Dk9VI8Vf.mjs +503 -0
  782. package/dist/revision-Dk9VI8Vf.mjs.map +1 -0
  783. package/dist/rooms/index.d.mts +15 -15
  784. package/dist/rooms/index.mjs +3 -3
  785. package/dist/rooms/node/index.d.mts +15 -15
  786. package/dist/rooms/node/index.mjs +6 -6
  787. package/dist/rooms/notifications.d.mts +15 -15
  788. package/dist/rooms/notifications.mjs +2 -2
  789. package/dist/rooms/room.d.mts +15 -15
  790. package/dist/rooms/room.mjs +2 -2
  791. package/dist/rooms/site.d.mts +15 -15
  792. package/dist/rooms/site.mjs +4 -4
  793. package/dist/rooms-AcO0YNUt.mjs +335 -0
  794. package/dist/rooms-AcO0YNUt.mjs.map +1 -0
  795. package/dist/rooms-B2P1xIS_.d.mts +4778 -0
  796. package/dist/rooms-B2P1xIS_.d.mts.map +1 -0
  797. package/dist/rooms-C08U-F8Y.mjs +169 -0
  798. package/dist/rooms-C08U-F8Y.mjs.map +1 -0
  799. package/dist/route-cache-CvTJlNVT.mjs +30 -0
  800. package/dist/route-cache-CvTJlNVT.mjs.map +1 -0
  801. package/dist/route-wire-NAkNES3Z.mjs +197 -0
  802. package/dist/route-wire-NAkNES3Z.mjs.map +1 -0
  803. package/dist/routes-BScyES_G.mjs +272 -0
  804. package/dist/routes-BScyES_G.mjs.map +1 -0
  805. package/dist/runner-C6gBIcTD.d.mts +79 -0
  806. package/dist/runner-C6gBIcTD.d.mts.map +1 -0
  807. package/dist/runner-Nv0yWP-G.mjs +6964 -0
  808. package/dist/runner-Nv0yWP-G.mjs.map +1 -0
  809. package/dist/runtime-holder-DkZ_0f7A.mjs +36 -0
  810. package/dist/runtime-holder-DkZ_0f7A.mjs.map +1 -0
  811. package/dist/runtime.d.mts +16 -16
  812. package/dist/runtime.mjs +1 -1
  813. package/dist/scheduler-health-B5n19775.mjs +31 -0
  814. package/dist/scheduler-health-B5n19775.mjs.map +1 -0
  815. package/dist/schema/project-env-types.mjs +6 -6
  816. package/dist/schema-B7ODIkP4.mjs +13 -0
  817. package/dist/schema-B7ODIkP4.mjs.map +1 -0
  818. package/dist/schema-D04_n_7j.mjs +815 -0
  819. package/dist/schema-D04_n_7j.mjs.map +1 -0
  820. package/dist/scopes-CHc86VzZ.mjs +34 -0
  821. package/dist/scopes-CHc86VzZ.mjs.map +1 -0
  822. package/dist/search-BxBg7Xq1.mjs +503 -0
  823. package/dist/search-BxBg7Xq1.mjs.map +1 -0
  824. package/dist/search-SRLBXKJU.mjs +12 -0
  825. package/dist/search-SRLBXKJU.mjs.map +1 -0
  826. package/dist/secrets-O25WpEe_.mjs +369 -0
  827. package/dist/secrets-O25WpEe_.mjs.map +1 -0
  828. package/dist/sections-BK7soA2U.mjs +222 -0
  829. package/dist/sections-BK7soA2U.mjs.map +1 -0
  830. package/dist/sections-CLejSkAG.mjs +129 -0
  831. package/dist/sections-CLejSkAG.mjs.map +1 -0
  832. package/dist/seed/index.d.mts +2 -2
  833. package/dist/seed/index.mjs +4 -4
  834. package/dist/seo/index.d.mts +3 -3
  835. package/dist/seo/index.mjs +3 -3
  836. package/dist/seo-Ie7B6cud.mjs +194 -0
  837. package/dist/seo-Ie7B6cud.mjs.map +1 -0
  838. package/dist/service-DbKGSUHC.mjs +150 -0
  839. package/dist/service-DbKGSUHC.mjs.map +1 -0
  840. package/dist/session-user-BrCPLyWB.mjs +61 -0
  841. package/dist/session-user-BrCPLyWB.mjs.map +1 -0
  842. package/dist/settings-BApLX_aS.mjs +413 -0
  843. package/dist/settings-BApLX_aS.mjs.map +1 -0
  844. package/dist/settings-Ces2K0VL.mjs +74 -0
  845. package/dist/settings-Ces2K0VL.mjs.map +1 -0
  846. package/dist/settings-DMHIgDyb.mjs +66 -0
  847. package/dist/settings-DMHIgDyb.mjs.map +1 -0
  848. package/dist/settings-DgnWX0GN.mjs +157 -0
  849. package/dist/settings-DgnWX0GN.mjs.map +1 -0
  850. package/dist/setup-complete-DQ1nNEjm.mjs +65 -0
  851. package/dist/setup-complete-DQ1nNEjm.mjs.map +1 -0
  852. package/dist/setup-nonce-5k8BY3W_.mjs +25 -0
  853. package/dist/setup-nonce-5k8BY3W_.mjs.map +1 -0
  854. package/dist/site-domain-B2KvJstd.mjs +131 -0
  855. package/dist/site-domain-B2KvJstd.mjs.map +1 -0
  856. package/dist/site-settings-B7VxSqP6.mjs +50 -0
  857. package/dist/site-settings-B7VxSqP6.mjs.map +1 -0
  858. package/dist/site-title-DHgWlyMw.mjs +14 -0
  859. package/dist/site-title-DHgWlyMw.mjs.map +1 -0
  860. package/dist/site-url-OBYES-gb.mjs +45 -0
  861. package/dist/site-url-OBYES-gb.mjs.map +1 -0
  862. package/dist/sitemap-name-BZXv5sf0.mjs +26 -0
  863. package/dist/sitemap-name-BZXv5sf0.mjs.map +1 -0
  864. package/dist/slug-CFsfrxUp.mjs +16 -0
  865. package/dist/slug-CFsfrxUp.mjs.map +1 -0
  866. package/dist/snapshot-BaIv7afB.mjs +466 -0
  867. package/dist/snapshot-BaIv7afB.mjs.map +1 -0
  868. package/dist/snapshot-VQM7BcdM.mjs +184 -0
  869. package/dist/snapshot-VQM7BcdM.mjs.map +1 -0
  870. package/dist/ssrf-Em0CeaaN.mjs +406 -0
  871. package/dist/ssrf-Em0CeaaN.mjs.map +1 -0
  872. package/dist/stage-Ctas_E7M.mjs +662 -0
  873. package/dist/stage-Ctas_E7M.mjs.map +1 -0
  874. package/dist/staged-C746SkS0.mjs +686 -0
  875. package/dist/staged-C746SkS0.mjs.map +1 -0
  876. package/dist/start-user-session-CdyNie0P.mjs +9 -0
  877. package/dist/start-user-session-CdyNie0P.mjs.map +1 -0
  878. package/dist/state-Cdkt6b1h.mjs +282 -0
  879. package/dist/state-Cdkt6b1h.mjs.map +1 -0
  880. package/dist/storage/local.d.mts +1 -1
  881. package/dist/storage/local.mjs +2 -2
  882. package/dist/storage/s3.d.mts +1 -1
  883. package/dist/storage/s3.mjs +1 -1
  884. package/dist/storage-query-DdKo8oes.d.mts +1614 -0
  885. package/dist/storage-query-DdKo8oes.d.mts.map +1 -0
  886. package/dist/tar-Tbl91sMI.mjs +449 -0
  887. package/dist/tar-Tbl91sMI.mjs.map +1 -0
  888. package/dist/target-Bjxlaj4T.mjs +27 -0
  889. package/dist/target-Bjxlaj4T.mjs.map +1 -0
  890. package/dist/taxonomies-D5bavOHA.mjs +937 -0
  891. package/dist/taxonomies-D5bavOHA.mjs.map +1 -0
  892. package/dist/taxonomies-DApyZAJq.mjs +722 -0
  893. package/dist/taxonomies-DApyZAJq.mjs.map +1 -0
  894. package/dist/taxonomy-D4Fl2smf.mjs +593 -0
  895. package/dist/taxonomy-D4Fl2smf.mjs.map +1 -0
  896. package/dist/tokens-DvEbszXd.mjs +171 -0
  897. package/dist/tokens-DvEbszXd.mjs.map +1 -0
  898. package/dist/transaction-D5Kq7MTL.mjs +44 -0
  899. package/dist/transaction-D5Kq7MTL.mjs.map +1 -0
  900. package/dist/transfer-BwKpOrTV.mjs +8963 -0
  901. package/dist/transfer-BwKpOrTV.mjs.map +1 -0
  902. package/dist/transfer-CafpWTD6.mjs +166 -0
  903. package/dist/transfer-CafpWTD6.mjs.map +1 -0
  904. package/dist/transfer-download-H8beYs2r.mjs +33 -0
  905. package/dist/transfer-download-H8beYs2r.mjs.map +1 -0
  906. package/dist/transformations-DX_dwSfp.mjs +196 -0
  907. package/dist/transformations-DX_dwSfp.mjs.map +1 -0
  908. package/dist/transport-7mI_Nvnn.d.mts +42 -0
  909. package/dist/transport-7mI_Nvnn.d.mts.map +1 -0
  910. package/dist/transport-Cs1Xl7-v.mjs +144 -0
  911. package/dist/transport-Cs1Xl7-v.mjs.map +1 -0
  912. package/dist/trusted-proxy-DaSru7xW.mjs +51 -0
  913. package/dist/trusted-proxy-DaSru7xW.mjs.map +1 -0
  914. package/dist/turnstile-DNR0cwtt.mjs +58 -0
  915. package/dist/turnstile-DNR0cwtt.mjs.map +1 -0
  916. package/dist/types-8q-gxKfV.d.mts +935 -0
  917. package/dist/types-8q-gxKfV.d.mts.map +1 -0
  918. package/dist/types-BBH-w_KS.mjs.map +1 -1
  919. package/dist/types-BE4og6EZ.d.mts +292 -0
  920. package/dist/types-BE4og6EZ.d.mts.map +1 -0
  921. package/dist/types-BbOWBoRk.d.mts +384 -0
  922. package/dist/types-BbOWBoRk.d.mts.map +1 -0
  923. package/dist/types-BmBK2cqf.mjs.map +1 -1
  924. package/dist/types-C3tTVw9y.mjs +37 -0
  925. package/dist/types-C3tTVw9y.mjs.map +1 -0
  926. package/dist/types-CTQEkZcI.mjs +16 -0
  927. package/dist/types-CTQEkZcI.mjs.map +1 -0
  928. package/dist/types-CbfB5YfA.d.mts +209 -0
  929. package/dist/types-CbfB5YfA.d.mts.map +1 -0
  930. package/dist/types-CeknTiV0.d.mts +93 -0
  931. package/dist/types-CeknTiV0.d.mts.map +1 -0
  932. package/dist/types-CpFfDrGH.mjs.map +1 -1
  933. package/dist/types-DHjtQujX.mjs +77 -0
  934. package/dist/types-DHjtQujX.mjs.map +1 -0
  935. package/dist/types-EYyvAjNA.d.mts +125 -0
  936. package/dist/types-EYyvAjNA.d.mts.map +1 -0
  937. package/dist/types-VMZCO8hc.d.mts +366 -0
  938. package/dist/types-VMZCO8hc.d.mts.map +1 -0
  939. package/dist/types-YTpIfKXX.d.mts +1756 -0
  940. package/dist/types-YTpIfKXX.d.mts.map +1 -0
  941. package/dist/types-iSBIMGiz.d.mts +227 -0
  942. package/dist/types-iSBIMGiz.d.mts.map +1 -0
  943. package/dist/upload-attempts-ChkgAfye.mjs +32 -0
  944. package/dist/upload-attempts-ChkgAfye.mjs.map +1 -0
  945. package/dist/url-CBR5ZBBQ.mjs +87 -0
  946. package/dist/url-CBR5ZBBQ.mjs.map +1 -0
  947. package/dist/url-pattern-DViEwhDu.mjs +41 -0
  948. package/dist/url-pattern-DViEwhDu.mjs.map +1 -0
  949. package/dist/urls-BCnpTM3T.mjs +79 -0
  950. package/dist/urls-BCnpTM3T.mjs.map +1 -0
  951. package/dist/user-Cy4kOmtD.mjs +184 -0
  952. package/dist/user-Cy4kOmtD.mjs.map +1 -0
  953. package/dist/utils-0R0olFJs.d.mts +374 -0
  954. package/dist/utils-0R0olFJs.d.mts.map +1 -0
  955. package/dist/utils-DIfKXQ5o.mjs +450 -0
  956. package/dist/utils-DIfKXQ5o.mjs.map +1 -0
  957. package/dist/validate-CYHbSQ-M.d.mts +472 -0
  958. package/dist/validate-CYHbSQ-M.d.mts.map +1 -0
  959. package/dist/validate-DBnEN6hU.mjs +524 -0
  960. package/dist/validate-DBnEN6hU.mjs.map +1 -0
  961. package/dist/validation-Becbh-zl.mjs +204 -0
  962. package/dist/validation-Becbh-zl.mjs.map +1 -0
  963. package/dist/version-BE4RahxC.mjs +7 -0
  964. package/dist/version-BE4RahxC.mjs.map +1 -0
  965. package/dist/version-C3C6o1xi.mjs +9 -0
  966. package/dist/version-C3C6o1xi.mjs.map +1 -0
  967. package/dist/version-PIyVra05.mjs +49 -0
  968. package/dist/version-PIyVra05.mjs.map +1 -0
  969. package/dist/video-Cgw31pIP.mjs +18 -0
  970. package/dist/video-Cgw31pIP.mjs.map +1 -0
  971. package/dist/virtual-modules-DAvm-Tct.mjs +565 -0
  972. package/dist/virtual-modules-DAvm-Tct.mjs.map +1 -0
  973. package/dist/widgets-HYhp_QtR.mjs +134 -0
  974. package/dist/widgets-HYhp_QtR.mjs.map +1 -0
  975. package/dist/wxr-CDtij4U5.mjs +1054 -0
  976. package/dist/wxr-CDtij4U5.mjs.map +1 -0
  977. package/dist/wxr-taxonomies-fliLjgKD.mjs +735 -0
  978. package/dist/wxr-taxonomies-fliLjgKD.mjs.map +1 -0
  979. package/dist/wxr-taxonomies-uZgPVgPe.d.mts +34 -0
  980. package/dist/wxr-taxonomies-uZgPVgPe.d.mts.map +1 -0
  981. package/package.json +11 -10
  982. package/src/after.ts +17 -10
  983. package/src/api/error.ts +0 -13
  984. package/src/api/handlers/manifest.ts +1 -0
  985. package/src/api/handlers/media-allowlist.ts +66 -7
  986. package/src/api/handlers/media-usage.ts +2 -1
  987. package/src/api/handlers/media.ts +4 -2
  988. package/src/api/handlers/seo.ts +19 -7
  989. package/src/api/openapi/document.ts +1 -1
  990. package/src/api/schemas/auth.ts +7 -0
  991. package/src/api/schemas/media-usage.ts +1 -0
  992. package/src/api/schemas/media.ts +13 -3
  993. package/src/api/schemas/schema.ts +14 -0
  994. package/src/api/search.ts +15 -0
  995. package/src/api/types.ts +3 -0
  996. package/src/astro/image-endpoint.ts +30 -4
  997. package/src/astro/integration/dev-scheduler-bridge.ts +1 -2
  998. package/src/astro/integration/index.ts +22 -1
  999. package/src/astro/integration/routes.ts +4 -0
  1000. package/src/astro/integration/virtual-modules.ts +3 -6
  1001. package/src/astro/integration/vite-config.ts +13 -6
  1002. package/src/astro/middleware/auth.ts +18 -11
  1003. package/src/astro/middleware/redirect.ts +41 -23
  1004. package/src/astro/middleware/request-context.ts +4 -2
  1005. package/src/astro/middleware/scoped-db.ts +4 -4
  1006. package/src/astro/middleware.ts +288 -204
  1007. package/src/astro/prefetch.ts +21 -17
  1008. package/src/astro/public-plugin-api-routes.ts +4 -4
  1009. package/src/astro/routes/PluginRegistry.tsx +2 -3
  1010. package/src/astro/routes/api/admin/byline-fields/[slug]/usage.ts +4 -3
  1011. package/src/astro/routes/api/admin/byline-fields/[slug].ts +10 -7
  1012. package/src/astro/routes/api/admin/byline-fields/index.ts +7 -5
  1013. package/src/astro/routes/api/admin/byline-fields/reorder.ts +4 -3
  1014. package/src/astro/routes/api/admin/bylines/[id]/index.ts +4 -3
  1015. package/src/astro/routes/api/admin/bylines/[id]/translations.ts +7 -5
  1016. package/src/astro/routes/api/admin/comments/[id]/status.ts +4 -3
  1017. package/src/astro/routes/api/admin/comments/[id].ts +7 -5
  1018. package/src/astro/routes/api/admin/comments/bulk.ts +4 -3
  1019. package/src/astro/routes/api/admin/comments/counts.ts +4 -3
  1020. package/src/astro/routes/api/admin/comments/index.ts +4 -3
  1021. package/src/astro/routes/api/admin/media-usage/activation.ts +7 -5
  1022. package/src/astro/routes/api/admin/media-usage/collection-deletions/index.ts +4 -3
  1023. package/src/astro/routes/api/admin/media-usage/collection-deletions/retry.ts +4 -3
  1024. package/src/astro/routes/api/admin/media-usage/progress.ts +7 -5
  1025. package/src/astro/routes/api/admin/media-usage/repair.ts +4 -3
  1026. package/src/astro/routes/api/admin/media-usage/work/index.ts +4 -3
  1027. package/src/astro/routes/api/admin/media-usage/work/retry.ts +4 -3
  1028. package/src/astro/routes/api/admin/plugins/registry/artifact.ts +7 -4
  1029. package/src/astro/routes/api/admin/transfer/approvals/[id]/approve.ts +4 -3
  1030. package/src/astro/routes/api/admin/transfer/approvals/[id]/deny.ts +4 -3
  1031. package/src/astro/routes/api/admin/transfer/approvals/index.ts +4 -3
  1032. package/src/astro/routes/api/admin/transfer/capabilities.ts +4 -3
  1033. package/src/astro/routes/api/admin/transfer/exports/[id]/advance.ts +4 -3
  1034. package/src/astro/routes/api/admin/transfer/exports/[id]/archive.ts +4 -3
  1035. package/src/astro/routes/api/admin/transfer/exports/[id]/files/[...path].ts +4 -3
  1036. package/src/astro/routes/api/admin/transfer/exports/[id]/index.ts +4 -3
  1037. package/src/astro/routes/api/admin/transfer/exports/[id]/manifest.ts +4 -3
  1038. package/src/astro/routes/api/admin/transfer/exports/index.ts +7 -5
  1039. package/src/astro/routes/api/admin/transfer/imports/[id]/abandon.ts +4 -3
  1040. package/src/astro/routes/api/admin/transfer/imports/[id]/advance.ts +4 -3
  1041. package/src/astro/routes/api/admin/transfer/imports/[id]/analyze.ts +4 -3
  1042. package/src/astro/routes/api/admin/transfer/imports/[id]/cancel.ts +4 -3
  1043. package/src/astro/routes/api/admin/transfer/imports/[id]/execute.ts +4 -3
  1044. package/src/astro/routes/api/admin/transfer/imports/[id]/files/[...path].ts +4 -3
  1045. package/src/astro/routes/api/admin/transfer/imports/[id]/index.ts +4 -3
  1046. package/src/astro/routes/api/admin/transfer/imports/[id]/missing.ts +4 -3
  1047. package/src/astro/routes/api/admin/transfer/imports/[id]/plan.ts +4 -3
  1048. package/src/astro/routes/api/admin/transfer/imports/[id]/receipt.ts +4 -3
  1049. package/src/astro/routes/api/admin/transfer/imports/index.ts +7 -5
  1050. package/src/astro/routes/api/auth/invite/complete.ts +2 -1
  1051. package/src/astro/routes/api/auth/magic-link/verify.ts +2 -1
  1052. package/src/astro/routes/api/auth/oauth/[provider]/callback.ts +2 -1
  1053. package/src/astro/routes/api/auth/passkey/verify.ts +2 -1
  1054. package/src/astro/routes/api/auth/signup/complete.ts +2 -1
  1055. package/src/astro/routes/api/auth/signup/register-options.ts +69 -0
  1056. package/src/astro/routes/api/comments/[collection]/[contentId]/index.ts +7 -5
  1057. package/src/astro/routes/api/comments/[collection]/[contentId]/reactions.ts +7 -5
  1058. package/src/astro/routes/api/content/[collection]/[id]/discard-draft.ts +3 -13
  1059. package/src/astro/routes/api/content/[collection]/[id]/duplicate.ts +3 -13
  1060. package/src/astro/routes/api/content/[collection]/[id]/lock.ts +19 -19
  1061. package/src/astro/routes/api/content/[collection]/[id]/publish.ts +3 -12
  1062. package/src/astro/routes/api/content/[collection]/[id]/references/[relation]/children.ts +4 -3
  1063. package/src/astro/routes/api/content/[collection]/[id]/references/[relation]/parents.ts +4 -3
  1064. package/src/astro/routes/api/content/[collection]/[id]/terms/[taxonomy].ts +11 -19
  1065. package/src/astro/routes/api/content/[collection]/[id]/unpublish.ts +3 -12
  1066. package/src/astro/routes/api/content/[collection]/[id].ts +12 -34
  1067. package/src/astro/routes/api/import/wordpress/execute.ts +1 -4
  1068. package/src/astro/routes/api/import/wordpress/media.ts +3 -2
  1069. package/src/astro/routes/api/import/wordpress-plugin/execute.ts +1 -4
  1070. package/src/astro/routes/api/media/[id]/replace.ts +11 -2
  1071. package/src/astro/routes/api/media/[id].ts +16 -3
  1072. package/src/astro/routes/api/media/file/[...key].ts +11 -0
  1073. package/src/astro/routes/api/media/providers/[providerId]/[itemId].ts +18 -2
  1074. package/src/astro/routes/api/menus/[name]/items/[id].ts +6 -0
  1075. package/src/astro/routes/api/menus/[name]/items.ts +4 -1
  1076. package/src/astro/routes/api/menus/[name]/reorder.ts +4 -1
  1077. package/src/astro/routes/api/menus/[name]/translations.ts +7 -5
  1078. package/src/astro/routes/api/menus/[name].ts +10 -1
  1079. package/src/astro/routes/api/menus/index.ts +7 -1
  1080. package/src/astro/routes/api/redirects/404s/index.ts +10 -7
  1081. package/src/astro/routes/api/redirects/404s/summary.ts +4 -3
  1082. package/src/astro/routes/api/redirects/[id].ts +10 -7
  1083. package/src/astro/routes/api/redirects/index.ts +7 -5
  1084. package/src/astro/routes/api/relations/[id]/index.ts +10 -7
  1085. package/src/astro/routes/api/relations/index.ts +7 -5
  1086. package/src/astro/routes/api/schema/block-types/[slug]/index.ts +7 -5
  1087. package/src/astro/routes/api/schema/block-types/[slug]/versions/[version]/activate.ts +4 -3
  1088. package/src/astro/routes/api/schema/block-types/index.ts +7 -5
  1089. package/src/astro/routes/api/schema/collections/[slug]/fields/[fieldSlug].ts +10 -7
  1090. package/src/astro/routes/api/schema/collections/[slug]/fields/index.ts +7 -5
  1091. package/src/astro/routes/api/schema/collections/[slug]/fields/reorder.ts +4 -3
  1092. package/src/astro/routes/api/schema/collections/[slug]/index.ts +10 -7
  1093. package/src/astro/routes/api/schema/collections/index.ts +7 -5
  1094. package/src/astro/routes/api/schema/collections/reorder.ts +4 -3
  1095. package/src/astro/routes/api/schema/index.ts +4 -3
  1096. package/src/astro/routes/api/schema/orphans/[slug].ts +4 -3
  1097. package/src/astro/routes/api/schema/orphans/index.ts +4 -3
  1098. package/src/astro/routes/api/search/enable.ts +4 -0
  1099. package/src/astro/routes/api/search/index.ts +5 -3
  1100. package/src/astro/routes/api/search/rebuild.ts +4 -0
  1101. package/src/astro/routes/api/search/stats.ts +4 -0
  1102. package/src/astro/routes/api/search/suggest.ts +4 -0
  1103. package/src/astro/routes/api/sections/[slug].ts +10 -7
  1104. package/src/astro/routes/api/sections/index.ts +7 -5
  1105. package/src/astro/routes/api/setup/admin-verify.ts +2 -1
  1106. package/src/astro/routes/api/taxonomies/[name]/reorder.ts +4 -3
  1107. package/src/astro/routes/api/taxonomies/[name]/terms/[slug]/translations.ts +7 -5
  1108. package/src/astro/routes/api/taxonomies/[name]/terms/[slug].ts +10 -7
  1109. package/src/astro/routes/api/taxonomies/[name]/terms/index.ts +7 -5
  1110. package/src/astro/routes/api/taxonomies/[name]/translations.ts +4 -3
  1111. package/src/astro/routes/api/taxonomies/[name].ts +10 -7
  1112. package/src/astro/routes/api/taxonomies/bulk-tag.ts +4 -3
  1113. package/src/astro/routes/api/taxonomies/index.ts +7 -5
  1114. package/src/astro/routes/api/widget-areas/[name]/reorder.ts +3 -0
  1115. package/src/astro/routes/api/widget-areas/[name]/widgets/[id].ts +6 -0
  1116. package/src/astro/routes/api/widget-areas/[name]/widgets.ts +3 -0
  1117. package/src/astro/routes/api/widget-areas/[name].ts +6 -0
  1118. package/src/astro/routes/api/widget-areas/index.ts +6 -0
  1119. package/src/astro/session-user.ts +8 -4
  1120. package/src/astro/types.ts +77 -53
  1121. package/src/auth/start-user-session.ts +16 -0
  1122. package/src/cleanup.ts +24 -5
  1123. package/src/client/index.ts +5 -3
  1124. package/src/client/portable-text.ts +9 -1
  1125. package/src/comments/public-submission.ts +1 -1
  1126. package/src/components/Code.astro +6 -1
  1127. package/src/components/Comments.astro +17 -6
  1128. package/src/components/InlinePortableTextEditor.tsx +9 -1
  1129. package/src/database/dialect-helpers.ts +18 -3
  1130. package/src/database/migrations/098_user_last_login.ts +13 -0
  1131. package/src/database/migrations/runner.ts +2 -0
  1132. package/src/database/repositories/content.ts +37 -0
  1133. package/src/database/repositories/media-folders.ts +2 -6
  1134. package/src/database/repositories/media.ts +16 -7
  1135. package/src/database/repositories/revision.ts +2 -2
  1136. package/src/database/repositories/seo.ts +34 -10
  1137. package/src/database/repositories/types.ts +2 -2
  1138. package/src/database/repositories/user.ts +2 -2
  1139. package/src/database/types.ts +1 -0
  1140. package/src/db/node-sqlite-compat.ts +13 -0
  1141. package/src/emdash-runtime.ts +775 -308
  1142. package/src/mcp/server.ts +27 -34
  1143. package/src/media/image-endpoint.ts +84 -0
  1144. package/src/media/url.ts +16 -3
  1145. package/src/media/usage/content-fields.ts +7 -5
  1146. package/src/media/usage/content-lock.ts +71 -0
  1147. package/src/media/usage/content-refresh.ts +3 -72
  1148. package/src/media/usage/content-snapshots.ts +26 -0
  1149. package/src/media/usage/extractor.ts +132 -32
  1150. package/src/media/usage/types.ts +3 -1
  1151. package/src/object-cache/index.ts +16 -12
  1152. package/src/plugins/context.ts +22 -1
  1153. package/src/plugins/http-route-dispatch.ts +16 -8
  1154. package/src/plugins/lifecycle.ts +16 -4
  1155. package/src/plugins/sandbox/proxy.ts +2 -2
  1156. package/src/plugins/scheduler/node.ts +17 -11
  1157. package/src/plugins/state.ts +236 -78
  1158. package/src/query.ts +36 -5
  1159. package/src/scheduled-publish.ts +54 -6
  1160. package/src/schema/block-type-contract.ts +35 -4
  1161. package/src/schema/block-type-registry.ts +1 -1
  1162. package/src/schema/types.ts +3 -0
  1163. package/src/search/fts-manager.ts +79 -19
  1164. package/src/search/query.ts +212 -101
  1165. package/src/search/types.ts +6 -1
  1166. package/src/virtual-modules.d.ts +3 -10
  1167. package/dist/action-token-CKphU6ur.mjs +0 -26
  1168. package/dist/action-token-CKphU6ur.mjs.map +0 -1
  1169. package/dist/activation-X5iMalte.mjs +0 -387
  1170. package/dist/activation-X5iMalte.mjs.map +0 -1
  1171. package/dist/adapters-DFsc9XjW.d.mts +0 -173
  1172. package/dist/adapters-DFsc9XjW.d.mts.map +0 -1
  1173. package/dist/after-B3AvMfBQ.mjs +0 -50
  1174. package/dist/after-B3AvMfBQ.mjs.map +0 -1
  1175. package/dist/allowed-origins-BFDNF-05.mjs +0 -116
  1176. package/dist/allowed-origins-BFDNF-05.mjs.map +0 -1
  1177. package/dist/api-tokens-D27OQ0oQ.mjs +0 -173
  1178. package/dist/api-tokens-D27OQ0oQ.mjs.map +0 -1
  1179. package/dist/apply-Culv7QJl.mjs +0 -1774
  1180. package/dist/apply-Culv7QJl.mjs.map +0 -1
  1181. package/dist/approvals-oLE5G5jw.mjs +0 -460
  1182. package/dist/approvals-oLE5G5jw.mjs.map +0 -1
  1183. package/dist/artifact-fetch-ByK_1pck.mjs +0 -659
  1184. package/dist/artifact-fetch-ByK_1pck.mjs.map +0 -1
  1185. package/dist/artifacts-BXKMIV2F.mjs +0 -323
  1186. package/dist/artifacts-BXKMIV2F.mjs.map +0 -1
  1187. package/dist/authoritative-records-Cd5BVXRs.mjs +0 -5183
  1188. package/dist/authoritative-records-Cd5BVXRs.mjs.map +0 -1
  1189. package/dist/authorize-B-4ogCQG.mjs +0 -74
  1190. package/dist/authorize-B-4ogCQG.mjs.map +0 -1
  1191. package/dist/backup-BQhg3MEK.mjs +0 -246
  1192. package/dist/backup-BQhg3MEK.mjs.map +0 -1
  1193. package/dist/block-types-BTzqdEZV.mjs +0 -132
  1194. package/dist/block-types-BTzqdEZV.mjs.map +0 -1
  1195. package/dist/block-values-DzZIh7WN.mjs +0 -215
  1196. package/dist/block-values-DzZIh7WN.mjs.map +0 -1
  1197. package/dist/byline--sweE_MZ.mjs +0 -930
  1198. package/dist/byline--sweE_MZ.mjs.map +0 -1
  1199. package/dist/byline-fields-Czdq4Yad.mjs +0 -123
  1200. package/dist/byline-fields-Czdq4Yad.mjs.map +0 -1
  1201. package/dist/byline-registry-Cr7kjrxM.mjs +0 -406
  1202. package/dist/byline-registry-Cr7kjrxM.mjs.map +0 -1
  1203. package/dist/bylines-DnuH3H8z.mjs +0 -234
  1204. package/dist/bylines-DnuH3H8z.mjs.map +0 -1
  1205. package/dist/bylines-txlwgzIK.mjs +0 -150
  1206. package/dist/bylines-txlwgzIK.mjs.map +0 -1
  1207. package/dist/cache-BjnpmIpb.mjs +0 -151
  1208. package/dist/cache-BjnpmIpb.mjs.map +0 -1
  1209. package/dist/canonical-Cb-rJGRU.mjs +0 -174
  1210. package/dist/canonical-Cb-rJGRU.mjs.map +0 -1
  1211. package/dist/capture-triggers-BZmIEdX2.mjs +0 -362
  1212. package/dist/capture-triggers-BZmIEdX2.mjs.map +0 -1
  1213. package/dist/checksum-CH9TyM-N.mjs +0 -162
  1214. package/dist/checksum-CH9TyM-N.mjs.map +0 -1
  1215. package/dist/chunks-DRnEstVb.mjs +0 -25
  1216. package/dist/chunks-DRnEstVb.mjs.map +0 -1
  1217. package/dist/collection-slugs-cache-CYMrqHZ6.mjs +0 -91
  1218. package/dist/collection-slugs-cache-CYMrqHZ6.mjs.map +0 -1
  1219. package/dist/comment-BGeXmJ8F.mjs +0 -335
  1220. package/dist/comment-BGeXmJ8F.mjs.map +0 -1
  1221. package/dist/comment-reaction-ty-JEDYR.mjs +0 -85
  1222. package/dist/comment-reaction-ty-JEDYR.mjs.map +0 -1
  1223. package/dist/comments-ByrrLvZL.mjs +0 -99
  1224. package/dist/comments-ByrrLvZL.mjs.map +0 -1
  1225. package/dist/comments-DqhARoef.mjs +0 -195
  1226. package/dist/comments-DqhARoef.mjs.map +0 -1
  1227. package/dist/components-u2HE5Mu9.mjs +0 -112
  1228. package/dist/components-u2HE5Mu9.mjs.map +0 -1
  1229. package/dist/config-B4F2ttAZ.d.mts +0 -7230
  1230. package/dist/config-B4F2ttAZ.d.mts.map +0 -1
  1231. package/dist/config-BnrtMvHW.mjs +0 -228
  1232. package/dist/config-BnrtMvHW.mjs.map +0 -1
  1233. package/dist/config-DEse9gaE.d.mts +0 -41
  1234. package/dist/config-DEse9gaE.d.mts.map +0 -1
  1235. package/dist/connection-BaIVuaDX.mjs +0 -36
  1236. package/dist/connection-BaIVuaDX.mjs.map +0 -1
  1237. package/dist/content-Dxztag5t.mjs +0 -2270
  1238. package/dist/content-Dxztag5t.mjs.map +0 -1
  1239. package/dist/content-list-query-yYbBU-dB.d.mts +0 -26
  1240. package/dist/content-list-query-yYbBU-dB.d.mts.map +0 -1
  1241. package/dist/content-repair-2PdahlgZ.mjs +0 -443
  1242. package/dist/content-repair-2PdahlgZ.mjs.map +0 -1
  1243. package/dist/content-save-KMll0S7E.mjs +0 -202
  1244. package/dist/content-save-KMll0S7E.mjs.map +0 -1
  1245. package/dist/context-C3OZjexd.mjs +0 -2225
  1246. package/dist/context-C3OZjexd.mjs.map +0 -1
  1247. package/dist/credits-C8uXoWfN.mjs +0 -110
  1248. package/dist/credits-C8uXoWfN.mjs.map +0 -1
  1249. package/dist/cron-CrjBjDuy.mjs +0 -310
  1250. package/dist/cron-CrjBjDuy.mjs.map +0 -1
  1251. package/dist/default-DPoN3H5H.mjs +0 -81
  1252. package/dist/default-DPoN3H5H.mjs.map +0 -1
  1253. package/dist/deferred-tasks-uSx5qCFn.d.mts +0 -10
  1254. package/dist/deferred-tasks-uSx5qCFn.d.mts.map +0 -1
  1255. package/dist/device-flow-hT8lKWXq.mjs +0 -519
  1256. package/dist/device-flow-hT8lKWXq.mjs.map +0 -1
  1257. package/dist/dialect-helpers-DqUMP9fJ.mjs +0 -350
  1258. package/dist/dialect-helpers-DqUMP9fJ.mjs.map +0 -1
  1259. package/dist/digest-xYRiuW_E.mjs +0 -194
  1260. package/dist/digest-xYRiuW_E.mjs.map +0 -1
  1261. package/dist/direct-executor-CZ2SH1bq.mjs +0 -117
  1262. package/dist/direct-executor-CZ2SH1bq.mjs.map +0 -1
  1263. package/dist/email-console-CochjAlh.mjs +0 -50
  1264. package/dist/email-console-CochjAlh.mjs.map +0 -1
  1265. package/dist/email-locale-BoxaIPG8.mjs +0 -25
  1266. package/dist/email-locale-BoxaIPG8.mjs.map +0 -1
  1267. package/dist/email-smtp-BnHR_Ccx.mjs +0 -643
  1268. package/dist/email-smtp-BnHR_Ccx.mjs.map +0 -1
  1269. package/dist/emdash-runtime-CXsdCQnM.mjs +0 -5262
  1270. package/dist/emdash-runtime-CXsdCQnM.mjs.map +0 -1
  1271. package/dist/enrich-BReo_COC.mjs +0 -203
  1272. package/dist/enrich-BReo_COC.mjs.map +0 -1
  1273. package/dist/entry-lock-BfnhlRhC.mjs +0 -207
  1274. package/dist/entry-lock-BfnhlRhC.mjs.map +0 -1
  1275. package/dist/entry-lock-DsVhZcJN.mjs +0 -1228
  1276. package/dist/entry-lock-DsVhZcJN.mjs.map +0 -1
  1277. package/dist/entry-locks-D_kjygT1.mjs +0 -173
  1278. package/dist/entry-locks-D_kjygT1.mjs.map +0 -1
  1279. package/dist/env-types-CXI9uaMU.mjs +0 -38
  1280. package/dist/env-types-CXI9uaMU.mjs.map +0 -1
  1281. package/dist/error-DcDNU7hZ.mjs +0 -92
  1282. package/dist/error-DcDNU7hZ.mjs.map +0 -1
  1283. package/dist/errors-CJ6711al.mjs +0 -120
  1284. package/dist/errors-CJ6711al.mjs.map +0 -1
  1285. package/dist/errors-CwYHYcWF.mjs +0 -502
  1286. package/dist/errors-CwYHYcWF.mjs.map +0 -1
  1287. package/dist/fence-C3MLClBo.mjs +0 -162
  1288. package/dist/fence-C3MLClBo.mjs.map +0 -1
  1289. package/dist/field-defs-cache-Cpk0eFsQ.mjs +0 -79
  1290. package/dist/field-defs-cache-Cpk0eFsQ.mjs.map +0 -1
  1291. package/dist/field-map-6o9hPcRl.mjs +0 -84
  1292. package/dist/field-map-6o9hPcRl.mjs.map +0 -1
  1293. package/dist/fts-manager-B3iLXCGz.mjs +0 -500
  1294. package/dist/fts-manager-B3iLXCGz.mjs.map +0 -1
  1295. package/dist/gc-D24C-KP7.mjs +0 -62
  1296. package/dist/gc-D24C-KP7.mjs.map +0 -1
  1297. package/dist/hook-result-BU5rI-6M.d.mts +0 -31
  1298. package/dist/hook-result-BU5rI-6M.d.mts.map +0 -1
  1299. package/dist/hook-result-CO4E3zDv.mjs +0 -3854
  1300. package/dist/hook-result-CO4E3zDv.mjs.map +0 -1
  1301. package/dist/hreflang-Bzvlo9Ci.mjs +0 -105
  1302. package/dist/hreflang-Bzvlo9Ci.mjs.map +0 -1
  1303. package/dist/hreflang-Ds0WbBOu.d.mts +0 -51
  1304. package/dist/hreflang-Ds0WbBOu.d.mts.map +0 -1
  1305. package/dist/http-route-dispatch-BsjkWBZF.mjs +0 -348
  1306. package/dist/http-route-dispatch-BsjkWBZF.mjs.map +0 -1
  1307. package/dist/identity-CahxkBZC.mjs +0 -35
  1308. package/dist/identity-CahxkBZC.mjs.map +0 -1
  1309. package/dist/index-BauU0yTw.d.mts +0 -261
  1310. package/dist/index-BauU0yTw.d.mts.map +0 -1
  1311. package/dist/install-finalization-CIl610wT.mjs +0 -58
  1312. package/dist/install-finalization-CIl610wT.mjs.map +0 -1
  1313. package/dist/json-recordset-CrS6ZqMk.mjs +0 -12
  1314. package/dist/json-recordset-CrS6ZqMk.mjs.map +0 -1
  1315. package/dist/json-schema-CBcJlGcY.mjs +0 -15
  1316. package/dist/json-schema-CBcJlGcY.mjs.map +0 -1
  1317. package/dist/keys-DJ62Wt5b.mjs +0 -61
  1318. package/dist/keys-DJ62Wt5b.mjs.map +0 -1
  1319. package/dist/kinds-D7_f3Qu3.mjs +0 -974
  1320. package/dist/kinds-D7_f3Qu3.mjs.map +0 -1
  1321. package/dist/lifecycle-DPCkpFHV.mjs +0 -49
  1322. package/dist/lifecycle-DPCkpFHV.mjs.map +0 -1
  1323. package/dist/limits-Bv6mXNM-.mjs +0 -44
  1324. package/dist/limits-Bv6mXNM-.mjs.map +0 -1
  1325. package/dist/load-r9P0fsRH.mjs +0 -36
  1326. package/dist/load-r9P0fsRH.mjs.map +0 -1
  1327. package/dist/loader-CSEfTKzr.mjs +0 -1537
  1328. package/dist/loader-CSEfTKzr.mjs.map +0 -1
  1329. package/dist/loops-BxzrcxPO.mjs +0 -217
  1330. package/dist/loops-BxzrcxPO.mjs.map +0 -1
  1331. package/dist/manifest-builder-BLWqITXR.mjs +0 -196
  1332. package/dist/manifest-builder-BLWqITXR.mjs.map +0 -1
  1333. package/dist/manifest-schema-BRpk5V7x.mjs +0 -497
  1334. package/dist/manifest-schema-BRpk5V7x.mjs.map +0 -1
  1335. package/dist/marketplace-5YFgYPVr.mjs +0 -257
  1336. package/dist/marketplace-5YFgYPVr.mjs.map +0 -1
  1337. package/dist/marketplace-zPVE4UY5.mjs +0 -965
  1338. package/dist/marketplace-zPVE4UY5.mjs.map +0 -1
  1339. package/dist/media-C5fg1Xte.d.mts +0 -203
  1340. package/dist/media-C5fg1Xte.d.mts.map +0 -1
  1341. package/dist/media-CPETKjop.mjs +0 -424
  1342. package/dist/media-CPETKjop.mjs.map +0 -1
  1343. package/dist/media-Cid3xIHk.mjs +0 -294
  1344. package/dist/media-Cid3xIHk.mjs.map +0 -1
  1345. package/dist/media-DJaAAYI2.mjs +0 -2805
  1346. package/dist/media-DJaAAYI2.mjs.map +0 -1
  1347. package/dist/media-allowlist-B7JwNf-U.mjs +0 -75
  1348. package/dist/media-allowlist-B7JwNf-U.mjs.map +0 -1
  1349. package/dist/media-folders-BI7B7XUM.mjs +0 -210
  1350. package/dist/media-folders-BI7B7XUM.mjs.map +0 -1
  1351. package/dist/media-url-xWuPVfqO.mjs +0 -43
  1352. package/dist/media-url-xWuPVfqO.mjs.map +0 -1
  1353. package/dist/media-usage-SwtWPxy4.mjs +0 -282
  1354. package/dist/media-usage-SwtWPxy4.mjs.map +0 -1
  1355. package/dist/media-usage-activation-BTa1H4wE.mjs +0 -78
  1356. package/dist/media-usage-activation-BTa1H4wE.mjs.map +0 -1
  1357. package/dist/media-usage-work-BxHWfbKq.mjs +0 -1036
  1358. package/dist/media-usage-work-BxHWfbKq.mjs.map +0 -1
  1359. package/dist/media-usage-work-DYenZS8y.mjs +0 -151
  1360. package/dist/media-usage-work-DYenZS8y.mjs.map +0 -1
  1361. package/dist/menu-FtSf33fF.mjs +0 -420
  1362. package/dist/menu-FtSf33fF.mjs.map +0 -1
  1363. package/dist/menus--MSfZ5Eu.mjs +0 -433
  1364. package/dist/menus--MSfZ5Eu.mjs.map +0 -1
  1365. package/dist/menus-C8h6Jtpu.mjs +0 -92
  1366. package/dist/menus-C8h6Jtpu.mjs.map +0 -1
  1367. package/dist/menus-CpFAi_LK.mjs +0 -434
  1368. package/dist/menus-CpFAi_LK.mjs.map +0 -1
  1369. package/dist/mime-Dx6aHTsR.mjs +0 -82
  1370. package/dist/mime-Dx6aHTsR.mjs.map +0 -1
  1371. package/dist/node-sqlite-compat-DvYkqx7Q.mjs +0 -63
  1372. package/dist/node-sqlite-compat-DvYkqx7Q.mjs.map +0 -1
  1373. package/dist/oauth-authorization-CBxtOboy.mjs +0 -287
  1374. package/dist/oauth-authorization-CBxtOboy.mjs.map +0 -1
  1375. package/dist/oauth-clients-HLGHmHqI.mjs +0 -266
  1376. package/dist/oauth-clients-HLGHmHqI.mjs.map +0 -1
  1377. package/dist/oauth-state-store-B4YAveSb.mjs +0 -80
  1378. package/dist/oauth-state-store-B4YAveSb.mjs.map +0 -1
  1379. package/dist/oauth-user-lookup-CTYMaKlq.mjs +0 -26
  1380. package/dist/oauth-user-lookup-CTYMaKlq.mjs.map +0 -1
  1381. package/dist/object-cache-DeATK4vw.mjs +0 -805
  1382. package/dist/object-cache-DeATK4vw.mjs.map +0 -1
  1383. package/dist/options-BJZMHnpx.d.mts +0 -81
  1384. package/dist/options-BJZMHnpx.d.mts.map +0 -1
  1385. package/dist/parse-B1E5cdyD.mjs +0 -82
  1386. package/dist/parse-B1E5cdyD.mjs.map +0 -1
  1387. package/dist/parse-Clt6wmpy.d.mts +0 -178
  1388. package/dist/parse-Clt6wmpy.d.mts.map +0 -1
  1389. package/dist/parts-CMwESQ6e.mjs +0 -68
  1390. package/dist/parts-CMwESQ6e.mjs.map +0 -1
  1391. package/dist/passkey-config-DiVZI-cx.mjs +0 -46
  1392. package/dist/passkey-config-DiVZI-cx.mjs.map +0 -1
  1393. package/dist/paths-NrYImb_h.mjs +0 -77
  1394. package/dist/paths-NrYImb_h.mjs.map +0 -1
  1395. package/dist/placeholder-B0vI-EQ9.d.mts +0 -316
  1396. package/dist/placeholder-B0vI-EQ9.d.mts.map +0 -1
  1397. package/dist/plan-CSb3BdFS.mjs +0 -135
  1398. package/dist/plan-CSb3BdFS.mjs.map +0 -1
  1399. package/dist/plugin-settings-HdYYRFi3.mjs +0 -162
  1400. package/dist/plugin-settings-HdYYRFi3.mjs.map +0 -1
  1401. package/dist/plugins-Bc70Xs37.mjs +0 -261
  1402. package/dist/plugins-Bc70Xs37.mjs.map +0 -1
  1403. package/dist/policy-C-ngDrxa.mjs +0 -56
  1404. package/dist/policy-C-ngDrxa.mjs.map +0 -1
  1405. package/dist/portable-text-T17rOqF7.mjs +0 -454
  1406. package/dist/portable-text-T17rOqF7.mjs.map +0 -1
  1407. package/dist/protocol-CmSX4cXv.d.mts +0 -65
  1408. package/dist/protocol-CmSX4cXv.d.mts.map +0 -1
  1409. package/dist/public-plugin-api-routes-_xsWTlwE.mjs +0 -316
  1410. package/dist/public-plugin-api-routes-_xsWTlwE.mjs.map +0 -1
  1411. package/dist/public-submission-ui3pFYtq.mjs +0 -253
  1412. package/dist/public-submission-ui3pFYtq.mjs.map +0 -1
  1413. package/dist/public-url-DMRZPAiW.mjs +0 -123
  1414. package/dist/public-url-DMRZPAiW.mjs.map +0 -1
  1415. package/dist/query-C1K9PzUc.mjs +0 -41
  1416. package/dist/query-C1K9PzUc.mjs.map +0 -1
  1417. package/dist/query-DdmHrvie.mjs +0 -1201
  1418. package/dist/query-DdmHrvie.mjs.map +0 -1
  1419. package/dist/range-BaF0521t.mjs +0 -51
  1420. package/dist/range-BaF0521t.mjs.map +0 -1
  1421. package/dist/rate-limit-6MngP0_m.mjs +0 -127
  1422. package/dist/rate-limit-6MngP0_m.mjs.map +0 -1
  1423. package/dist/receipt-BFm5eaN7.mjs +0 -43
  1424. package/dist/receipt-BFm5eaN7.mjs.map +0 -1
  1425. package/dist/redirect-ChcHI1KC.mjs +0 -466
  1426. package/dist/redirect-ChcHI1KC.mjs.map +0 -1
  1427. package/dist/redirect-EpidEf_5.mjs +0 -19
  1428. package/dist/redirect-EpidEf_5.mjs.map +0 -1
  1429. package/dist/redirect-paths-B9cXh9Wv.mjs +0 -36
  1430. package/dist/redirect-paths-B9cXh9Wv.mjs.map +0 -1
  1431. package/dist/redirects-D3zHoxhn.mjs +0 -446
  1432. package/dist/redirects-D3zHoxhn.mjs.map +0 -1
  1433. package/dist/redirects-dFPJ0HrD.mjs +0 -148
  1434. package/dist/redirects-dFPJ0HrD.mjs.map +0 -1
  1435. package/dist/registry-CDzYrAFY.mjs +0 -6074
  1436. package/dist/registry-CDzYrAFY.mjs.map +0 -1
  1437. package/dist/registry-Cf9vkVxW.mjs +0 -1449
  1438. package/dist/registry-Cf9vkVxW.mjs.map +0 -1
  1439. package/dist/registry-mZi_lxtT.mjs +0 -755
  1440. package/dist/registry-mZi_lxtT.mjs.map +0 -1
  1441. package/dist/relations-Eyop_U4o.mjs +0 -798
  1442. package/dist/relations-Eyop_U4o.mjs.map +0 -1
  1443. package/dist/request-meta-DsSkOdO0.mjs +0 -141
  1444. package/dist/request-meta-DsSkOdO0.mjs.map +0 -1
  1445. package/dist/resolve-s7ANHtFx.mjs +0 -92
  1446. package/dist/resolve-s7ANHtFx.mjs.map +0 -1
  1447. package/dist/revision-D7EedSdU.mjs +0 -503
  1448. package/dist/revision-D7EedSdU.mjs.map +0 -1
  1449. package/dist/rooms-CSNLTJsG.mjs +0 -331
  1450. package/dist/rooms-CSNLTJsG.mjs.map +0 -1
  1451. package/dist/rooms-CVsLla78.mjs +0 -169
  1452. package/dist/rooms-CVsLla78.mjs.map +0 -1
  1453. package/dist/rooms-CyXG83RZ.d.mts +0 -4653
  1454. package/dist/rooms-CyXG83RZ.d.mts.map +0 -1
  1455. package/dist/route-cache-CBpXPq-N.mjs +0 -30
  1456. package/dist/route-cache-CBpXPq-N.mjs.map +0 -1
  1457. package/dist/route-wire-DKSTaEz_.mjs +0 -197
  1458. package/dist/route-wire-DKSTaEz_.mjs.map +0 -1
  1459. package/dist/routes-QcHRiebw.mjs +0 -272
  1460. package/dist/routes-QcHRiebw.mjs.map +0 -1
  1461. package/dist/runner-4BfB04Rg.mjs +0 -6950
  1462. package/dist/runner-4BfB04Rg.mjs.map +0 -1
  1463. package/dist/runner-CAHS_KER.d.mts +0 -79
  1464. package/dist/runner-CAHS_KER.d.mts.map +0 -1
  1465. package/dist/runtime-holder-0g6pqbzx.mjs +0 -36
  1466. package/dist/runtime-holder-0g6pqbzx.mjs.map +0 -1
  1467. package/dist/scheduler-health-C5HEg2Yl.mjs +0 -31
  1468. package/dist/scheduler-health-C5HEg2Yl.mjs.map +0 -1
  1469. package/dist/schema-DS7ooMmp.mjs +0 -13
  1470. package/dist/schema-DS7ooMmp.mjs.map +0 -1
  1471. package/dist/schema-Mjtj7n1t.mjs +0 -815
  1472. package/dist/schema-Mjtj7n1t.mjs.map +0 -1
  1473. package/dist/scopes-BaR6WUyq.mjs +0 -34
  1474. package/dist/scopes-BaR6WUyq.mjs.map +0 -1
  1475. package/dist/search-B9RFgr0N.mjs +0 -450
  1476. package/dist/search-B9RFgr0N.mjs.map +0 -1
  1477. package/dist/secrets-C4UrjPiG.mjs +0 -369
  1478. package/dist/secrets-C4UrjPiG.mjs.map +0 -1
  1479. package/dist/sections-Bfa0oF8Q.mjs +0 -129
  1480. package/dist/sections-Bfa0oF8Q.mjs.map +0 -1
  1481. package/dist/sections-Bn2C6we7.mjs +0 -222
  1482. package/dist/sections-Bn2C6we7.mjs.map +0 -1
  1483. package/dist/seo-DPW6k5_-.mjs +0 -188
  1484. package/dist/seo-DPW6k5_-.mjs.map +0 -1
  1485. package/dist/service-B4mHMku9.mjs +0 -150
  1486. package/dist/service-B4mHMku9.mjs.map +0 -1
  1487. package/dist/session-user-CF2jNfj7.mjs +0 -61
  1488. package/dist/session-user-CF2jNfj7.mjs.map +0 -1
  1489. package/dist/settings-4r88LLIM.mjs +0 -66
  1490. package/dist/settings-4r88LLIM.mjs.map +0 -1
  1491. package/dist/settings-BB2xxz3Y.mjs +0 -74
  1492. package/dist/settings-BB2xxz3Y.mjs.map +0 -1
  1493. package/dist/settings-BTkGl-bX.mjs +0 -413
  1494. package/dist/settings-BTkGl-bX.mjs.map +0 -1
  1495. package/dist/settings-y8Jx8b7g.mjs +0 -157
  1496. package/dist/settings-y8Jx8b7g.mjs.map +0 -1
  1497. package/dist/setup-complete-BGRiC59t.mjs +0 -65
  1498. package/dist/setup-complete-BGRiC59t.mjs.map +0 -1
  1499. package/dist/setup-nonce-D43FsOgZ.mjs +0 -25
  1500. package/dist/setup-nonce-D43FsOgZ.mjs.map +0 -1
  1501. package/dist/site-domain-CFX7g6ik.mjs +0 -131
  1502. package/dist/site-domain-CFX7g6ik.mjs.map +0 -1
  1503. package/dist/site-settings-C0D9fv7e.mjs +0 -50
  1504. package/dist/site-settings-C0D9fv7e.mjs.map +0 -1
  1505. package/dist/site-title-C0JVN6en.mjs +0 -14
  1506. package/dist/site-title-C0JVN6en.mjs.map +0 -1
  1507. package/dist/site-url-DzVnHJ8j.mjs +0 -45
  1508. package/dist/site-url-DzVnHJ8j.mjs.map +0 -1
  1509. package/dist/sitemap-name-Ja_Cvwx9.mjs +0 -26
  1510. package/dist/sitemap-name-Ja_Cvwx9.mjs.map +0 -1
  1511. package/dist/slug-CO2jtUda.mjs +0 -16
  1512. package/dist/slug-CO2jtUda.mjs.map +0 -1
  1513. package/dist/snapshot-C9OWUtFr.mjs +0 -466
  1514. package/dist/snapshot-C9OWUtFr.mjs.map +0 -1
  1515. package/dist/snapshot-CR5tan8p.mjs +0 -184
  1516. package/dist/snapshot-CR5tan8p.mjs.map +0 -1
  1517. package/dist/ssrf-Lj1KZxYt.mjs +0 -406
  1518. package/dist/ssrf-Lj1KZxYt.mjs.map +0 -1
  1519. package/dist/stage-ChbGIslu.mjs +0 -662
  1520. package/dist/stage-ChbGIslu.mjs.map +0 -1
  1521. package/dist/staged-BN8pRZwX.mjs +0 -686
  1522. package/dist/staged-BN8pRZwX.mjs.map +0 -1
  1523. package/dist/state-DtcE0eN3.mjs +0 -178
  1524. package/dist/state-DtcE0eN3.mjs.map +0 -1
  1525. package/dist/storage-query-BDUX3Cef.d.mts +0 -1608
  1526. package/dist/storage-query-BDUX3Cef.d.mts.map +0 -1
  1527. package/dist/tar-CAvEHFbE.mjs +0 -449
  1528. package/dist/tar-CAvEHFbE.mjs.map +0 -1
  1529. package/dist/target-BM_6fT9m.mjs +0 -27
  1530. package/dist/target-BM_6fT9m.mjs.map +0 -1
  1531. package/dist/taxonomies-BMuFLd53.mjs +0 -722
  1532. package/dist/taxonomies-BMuFLd53.mjs.map +0 -1
  1533. package/dist/taxonomies-ClkYcmcH.mjs +0 -937
  1534. package/dist/taxonomies-ClkYcmcH.mjs.map +0 -1
  1535. package/dist/taxonomy-s1GcBCRo.mjs +0 -593
  1536. package/dist/taxonomy-s1GcBCRo.mjs.map +0 -1
  1537. package/dist/tokens-Cpm6FIKJ.mjs +0 -171
  1538. package/dist/tokens-Cpm6FIKJ.mjs.map +0 -1
  1539. package/dist/transaction-SKrr6u84.mjs +0 -44
  1540. package/dist/transaction-SKrr6u84.mjs.map +0 -1
  1541. package/dist/transfer-B3CsI5MG.mjs +0 -8963
  1542. package/dist/transfer-B3CsI5MG.mjs.map +0 -1
  1543. package/dist/transfer-DqUiK3ca.mjs +0 -166
  1544. package/dist/transfer-DqUiK3ca.mjs.map +0 -1
  1545. package/dist/transfer-download-CWPfhL91.mjs +0 -33
  1546. package/dist/transfer-download-CWPfhL91.mjs.map +0 -1
  1547. package/dist/transformations-ClH4dJeM.mjs +0 -196
  1548. package/dist/transformations-ClH4dJeM.mjs.map +0 -1
  1549. package/dist/transport-C6Ps8ejN.mjs +0 -144
  1550. package/dist/transport-C6Ps8ejN.mjs.map +0 -1
  1551. package/dist/transport-D4hWYmO_.d.mts +0 -42
  1552. package/dist/transport-D4hWYmO_.d.mts.map +0 -1
  1553. package/dist/trusted-proxy-CWX1sqgb.mjs +0 -51
  1554. package/dist/trusted-proxy-CWX1sqgb.mjs.map +0 -1
  1555. package/dist/turnstile-B6zM50Mh.mjs +0 -58
  1556. package/dist/turnstile-B6zM50Mh.mjs.map +0 -1
  1557. package/dist/types-Ba3bWb9D.mjs +0 -37
  1558. package/dist/types-Ba3bWb9D.mjs.map +0 -1
  1559. package/dist/types-C0M6z2A4.mjs +0 -16
  1560. package/dist/types-C0M6z2A4.mjs.map +0 -1
  1561. package/dist/types-CG1dR_Cm.d.mts +0 -934
  1562. package/dist/types-CG1dR_Cm.d.mts.map +0 -1
  1563. package/dist/types-CImd8MBY.d.mts +0 -1756
  1564. package/dist/types-CImd8MBY.d.mts.map +0 -1
  1565. package/dist/types-CML-oGr6.d.mts +0 -293
  1566. package/dist/types-CML-oGr6.d.mts.map +0 -1
  1567. package/dist/types-CZO9f_vJ.d.mts +0 -381
  1568. package/dist/types-CZO9f_vJ.d.mts.map +0 -1
  1569. package/dist/types-DLKviL1s.d.mts +0 -93
  1570. package/dist/types-DLKviL1s.d.mts.map +0 -1
  1571. package/dist/types-Df0R58Wu.mjs +0 -77
  1572. package/dist/types-Df0R58Wu.mjs.map +0 -1
  1573. package/dist/types-DwNwhyWP.d.mts +0 -227
  1574. package/dist/types-DwNwhyWP.d.mts.map +0 -1
  1575. package/dist/types-DwZgl0Zn.d.mts +0 -366
  1576. package/dist/types-DwZgl0Zn.d.mts.map +0 -1
  1577. package/dist/types-Dyb_OuSw.d.mts +0 -125
  1578. package/dist/types-Dyb_OuSw.d.mts.map +0 -1
  1579. package/dist/types-iOnPkHRk.d.mts +0 -209
  1580. package/dist/types-iOnPkHRk.d.mts.map +0 -1
  1581. package/dist/upload-attempts-5Ot7-vsw.mjs +0 -32
  1582. package/dist/upload-attempts-5Ot7-vsw.mjs.map +0 -1
  1583. package/dist/url-ZCjpMO-q.mjs +0 -74
  1584. package/dist/url-ZCjpMO-q.mjs.map +0 -1
  1585. package/dist/url-pattern-BQT-sGmD.mjs +0 -41
  1586. package/dist/url-pattern-BQT-sGmD.mjs.map +0 -1
  1587. package/dist/urls-Cq_hUk4P.mjs +0 -79
  1588. package/dist/urls-Cq_hUk4P.mjs.map +0 -1
  1589. package/dist/user-C4km6fox.mjs +0 -184
  1590. package/dist/user-C4km6fox.mjs.map +0 -1
  1591. package/dist/utils-Cpo0_V09.d.mts +0 -374
  1592. package/dist/utils-Cpo0_V09.d.mts.map +0 -1
  1593. package/dist/utils-DMDmdhU3.mjs +0 -450
  1594. package/dist/utils-DMDmdhU3.mjs.map +0 -1
  1595. package/dist/validate-BNupiQtz.mjs +0 -524
  1596. package/dist/validate-BNupiQtz.mjs.map +0 -1
  1597. package/dist/validate-DBfkJa3O.d.mts +0 -472
  1598. package/dist/validate-DBfkJa3O.d.mts.map +0 -1
  1599. package/dist/validation-W_efZFgP.mjs +0 -204
  1600. package/dist/validation-W_efZFgP.mjs.map +0 -1
  1601. package/dist/version-C61rw8-y.mjs +0 -9
  1602. package/dist/version-C61rw8-y.mjs.map +0 -1
  1603. package/dist/version-DhGLeLRo.mjs +0 -7
  1604. package/dist/version-DhGLeLRo.mjs.map +0 -1
  1605. package/dist/version-eqLBDtcz.mjs +0 -49
  1606. package/dist/version-eqLBDtcz.mjs.map +0 -1
  1607. package/dist/video-My3h7vwE.mjs +0 -18
  1608. package/dist/video-My3h7vwE.mjs.map +0 -1
  1609. package/dist/virtual-modules-BZKqvjRC.mjs +0 -568
  1610. package/dist/virtual-modules-BZKqvjRC.mjs.map +0 -1
  1611. package/dist/widgets-DAdni19y.mjs +0 -134
  1612. package/dist/widgets-DAdni19y.mjs.map +0 -1
  1613. package/dist/wxr-DDPJOgkM.mjs +0 -1054
  1614. package/dist/wxr-DDPJOgkM.mjs.map +0 -1
  1615. package/dist/wxr-taxonomies-B0U2fJgs.mjs +0 -735
  1616. package/dist/wxr-taxonomies-B0U2fJgs.mjs.map +0 -1
  1617. package/dist/wxr-taxonomies-CyP2k4-Q.d.mts +0 -34
  1618. package/dist/wxr-taxonomies-CyP2k4-Q.d.mts.map +0 -1
@@ -1,1756 +0,0 @@
1
- import { r as ContentFieldFilters } from "./content-list-query-yYbBU-dB.mjs";
2
- import { f as FieldType, m as FieldWidgetOptions, p as FieldValidation } from "./types-CZO9f_vJ.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
- /** Custom datetime field slug or system timestamp (`publishedAt`, `createdAt`, `updatedAt`); null means last-updated. */
297
- dateField: string | null;
298
- urlPattern: string | null;
299
- routable: boolean;
300
- hidden: boolean;
301
- fields: FieldSchemaInfo[];
302
- }
303
- interface SchemaAccess {
304
- listCollections(): Promise<CollectionSchemaInfo[]>;
305
- getCollection(slug: string): Promise<CollectionSchemaInfo | null>;
306
- }
307
- interface ContentListWhere {
308
- /** Exact match on `status` (e.g. `"published"`, `"draft"`). */
309
- status?: string;
310
- /** Exact match on `locale` (e.g. `"en"`, `"fr-CA"`). */
311
- locale?: string;
312
- /** AND-combined filters over custom fields explicitly marked as indexed. */
313
- fieldFilters?: ContentFieldFilters;
314
- }
315
- /**
316
- * Content list options
317
- */
318
- interface ContentListOptions {
319
- limit?: number;
320
- cursor?: string;
321
- orderBy?: Record<string, "asc" | "desc">;
322
- where?: ContentListWhere;
323
- }
324
- /**
325
- * Input accepted by `content.create` / `content.update`.
326
- *
327
- * Most entries are field slugs mapped to their values. The reserved `seo`
328
- * key is extracted and routed to the core SEO panel (the `_emdash_seo`
329
- * table), matching the shape accepted by the REST API. Passing `seo` for a
330
- * collection that does not have SEO enabled throws a validation error.
331
- */
332
- type ContentWriteInput = Record<string, unknown> & {
333
- seo?: ContentItemSeoInput;
334
- };
335
- /** Options accepted by `content.create`. */
336
- interface ContentCreateOptions {
337
- /** Locale for the new content row. Defaults to the configured site locale, then `en`. */
338
- locale?: string;
339
- /** Existing row in the same collection whose translation group the new row joins. */
340
- translationOf?: string;
341
- }
342
- type PluginContentCreateCallback = (pluginId: string, collection: string, data: ContentWriteInput, options?: ContentCreateOptions & {
343
- /** Save-hook origin supplied by sandbox transports to prevent hook re-entry. */originHook?: "content:beforeSave" | "content:afterSave";
344
- sandboxOrigin?: true;
345
- }) => Promise<ContentItem>;
346
- /**
347
- * Taxonomy definition returned from the taxonomy API (e.g. "category", "tag").
348
- */
349
- interface TaxonomyDefInfo {
350
- name: string;
351
- label: string;
352
- labelSingular: string | null;
353
- hierarchical: boolean;
354
- /** Collections this taxonomy is attached to (e.g. `["posts"]`). */
355
- collections: string[];
356
- locale: string;
357
- }
358
- /**
359
- * Taxonomy term returned from the taxonomy API. Flat shape — for hierarchical
360
- * taxonomies the tree is reconstructed via `parentId` (which stores the
361
- * parent's locale-agnostic `translationGroup`).
362
- */
363
- interface TaxonomyTermInfo {
364
- id: string;
365
- /** Taxonomy name this term belongs to (e.g. "category"). */
366
- taxonomy: string;
367
- slug: string;
368
- label: string;
369
- parentId: string | null;
370
- /** Term metadata as edited in the admin (`description` etc.). */
371
- data: Record<string, unknown> | null;
372
- locale: string;
373
- translationGroup: string | null;
374
- }
375
- /**
376
- * Options accepted by taxonomy read operations. Omitting `locale` returns
377
- * rows for every locale.
378
- */
379
- interface TaxonomyReadOptions {
380
- locale?: string;
381
- }
382
- interface TaxonomyTermCreateInput {
383
- label: string;
384
- slug?: string;
385
- parentId?: string | null;
386
- description?: string;
387
- locale?: string;
388
- translationOf?: string;
389
- }
390
- /**
391
- * Content access interface - capability-gated
392
- */
393
- interface ContentAccess {
394
- get(collection: string, id: string): Promise<ContentItem | null>;
395
- list(collection: string, options?: ContentListOptions): Promise<PaginatedResult<ContentItem>>;
396
- getTranslations?(collection: string, id: string): Promise<{
397
- translationGroup: string;
398
- translations: ContentTranslationSummary[];
399
- }>;
400
- getPublicUrl?(collection: string, id: string): Promise<string | null>;
401
- listRevisions?(collection: string, id: string, options?: {
402
- limit?: number;
403
- }): Promise<ContentRevisionInfo[]>;
404
- getRevision?(collection: string, id: string, revisionId: string): Promise<ContentRevisionInfo | null>;
405
- create?(collection: string, data: ContentWriteInput, options?: ContentCreateOptions): Promise<ContentItem>;
406
- update?(collection: string, id: string, data: ContentWriteInput): Promise<ContentItem>;
407
- delete?(collection: string, id: string): Promise<boolean>;
408
- getVersioned?(collection: string, id: string): Promise<VersionedContentItem | null>;
409
- publish?(collection: string, id: string, options: {
410
- _rev: string;
411
- }): Promise<VersionedContentItem>;
412
- unpublish?(collection: string, id: string, options: {
413
- _rev: string;
414
- }): Promise<VersionedContentItem>;
415
- schedule?(collection: string, id: string, options: {
416
- scheduledAt: string;
417
- _rev: string;
418
- }): Promise<VersionedContentItem>;
419
- unschedule?(collection: string, id: string, options: {
420
- _rev: string;
421
- }): Promise<VersionedContentItem>;
422
- getTrashedVersioned?(collection: string, id: string): Promise<VersionedContentItem | null>;
423
- restore?(collection: string, id: string, options: {
424
- _rev: string;
425
- }): Promise<VersionedContentItem>;
426
- }
427
- interface VersionedContentItem {
428
- item: ContentItem;
429
- _rev: string;
430
- }
431
- /**
432
- * Taxonomy access interface — capability-gated on `taxonomies:read`.
433
- */
434
- interface TaxonomyAccess {
435
- /** List taxonomy definitions. */
436
- getAll(options?: TaxonomyReadOptions): Promise<TaxonomyDefInfo[]>;
437
- /** All terms of a taxonomy, ordered by label. */
438
- getTerms(taxonomy: string, options?: TaxonomyReadOptions): Promise<TaxonomyTermInfo[]>;
439
- /** Terms assigned to a content entry, optionally scoped to one taxonomy. */
440
- getEntryTerms(collection: string, entryId: string, options?: TaxonomyReadOptions & {
441
- taxonomy?: string;
442
- }): Promise<TaxonomyTermInfo[]>;
443
- createTerm?(taxonomy: string, input: TaxonomyTermCreateInput): Promise<TaxonomyTermInfo>;
444
- addEntryTerms?(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
445
- removeEntryTerms?(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
446
- }
447
- /** Taxonomy mutations available with `taxonomies:write`. */
448
- interface TaxonomyAccessWithWrite extends TaxonomyAccess {
449
- createTerm(taxonomy: string, input: TaxonomyTermCreateInput): Promise<TaxonomyTermInfo>;
450
- addEntryTerms(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
451
- removeEntryTerms(collection: string, entryId: string, taxonomy: string, termIds: string[]): Promise<TaxonomyTermInfo[]>;
452
- }
453
- /**
454
- * Public byline profile returned from the byline API. Omits the linked user
455
- * account, guest flag, and custom field values.
456
- */
457
- interface BylineInfo {
458
- id: string;
459
- slug: string;
460
- displayName: string;
461
- bio: string | null;
462
- websiteUrl: string | null;
463
- /** Media ID of the avatar image. Resolve it with `ctx.media.get()`. */
464
- avatarMediaId: string | null;
465
- locale: string;
466
- /** Locale-agnostic identity shared by every translation of the byline. */
467
- translationGroup: string;
468
- }
469
- /** A byline credited on a content entry. */
470
- interface BylineCreditInfo {
471
- byline: BylineInfo;
472
- sortOrder: number;
473
- roleLabel: string | null;
474
- /**
475
- * `explicit` for a credit assigned in the editor; `inferred` when the entry
476
- * has no credits and the byline linked to the entry's author is used.
477
- */
478
- source: "explicit" | "inferred";
479
- }
480
- interface BylineListOptions {
481
- /** Match one locale. Omit to list every locale. */
482
- locale?: string;
483
- /** Page size, clamped to 1–100. Defaults to 50. */
484
- limit?: number;
485
- cursor?: string;
486
- }
487
- /** Byline credits for one entry in a batched lookup. */
488
- interface EntryBylineCredits {
489
- entryId: string;
490
- bylines: BylineCreditInfo[];
491
- }
492
- /**
493
- * Byline access interface — capability-gated on `bylines:read`.
494
- */
495
- interface BylineAccess {
496
- /** Get a byline by its row ID. */
497
- get(id: string): Promise<BylineInfo | null>;
498
- /** List bylines, newest first. */
499
- list(options?: BylineListOptions): Promise<PaginatedResult<BylineInfo>>;
500
- /**
501
- * Bylines credited on up to 100 entries of one collection, in the order the
502
- * IDs were given. Duplicate IDs are returned once. Credits resolve at each
503
- * entry's own locale, matching what the site renders. Trashed and missing
504
- * entries have no credits.
505
- */
506
- getEntriesBylines(collection: string, entryIds: string[]): Promise<EntryBylineCredits[]>;
507
- }
508
- type RedirectStatus = 301 | 302 | 307 | 308 | 410 | 451;
509
- interface RedirectInfo {
510
- id: string;
511
- source: string;
512
- destination: string;
513
- type: RedirectStatus;
514
- isPattern: boolean;
515
- enabled: boolean;
516
- hits: number;
517
- lastHitAt: string | null;
518
- groupName: string | null;
519
- auto: boolean;
520
- createdAt: string;
521
- updatedAt: string;
522
- }
523
- interface VersionedRedirect {
524
- redirect: RedirectInfo;
525
- /** Opaque host revision. Pass it back unchanged for update or delete. */
526
- _rev: string;
527
- }
528
- interface RedirectListOptions {
529
- limit?: number;
530
- cursor?: string;
531
- search?: string;
532
- group?: string;
533
- enabled?: boolean;
534
- auto?: boolean;
535
- }
536
- interface RedirectCreateInput {
537
- source: string;
538
- destination?: string;
539
- type?: RedirectStatus;
540
- enabled?: boolean;
541
- groupName?: string | null;
542
- }
543
- interface RedirectUpdateInput {
544
- source?: string;
545
- destination?: string;
546
- type?: RedirectStatus;
547
- enabled?: boolean;
548
- groupName?: string | null;
549
- }
550
- interface RedirectAccess {
551
- list(options?: RedirectListOptions): Promise<PaginatedResult<RedirectInfo>>;
552
- get(id: string): Promise<VersionedRedirect | null>;
553
- create?(input: RedirectCreateInput): Promise<VersionedRedirect>;
554
- update?(id: string, input: RedirectUpdateInput & {
555
- _rev: string;
556
- }): Promise<VersionedRedirect>;
557
- delete?(id: string, options: {
558
- _rev: string;
559
- }): Promise<boolean>;
560
- }
561
- interface RedirectAccessWithWrite extends RedirectAccess {
562
- create(input: RedirectCreateInput): Promise<VersionedRedirect>;
563
- update(id: string, input: RedirectUpdateInput & {
564
- _rev: string;
565
- }): Promise<VersionedRedirect>;
566
- delete(id: string, options: {
567
- _rev: string;
568
- }): Promise<boolean>;
569
- }
570
- /**
571
- * Full content access with write operations
572
- */
573
- interface ContentAccessWithWrite extends ContentAccess {
574
- create(collection: string, data: ContentWriteInput, options?: ContentCreateOptions): Promise<ContentItem>;
575
- update(collection: string, id: string, data: ContentWriteInput): Promise<ContentItem>;
576
- delete(collection: string, id: string): Promise<boolean>;
577
- }
578
- /**
579
- * Media item returned from media API
580
- */
581
- interface MediaItem {
582
- id: string;
583
- filename: string;
584
- mimeType: string;
585
- size: number | null;
586
- url: string;
587
- createdAt: string;
588
- width?: number | null;
589
- height?: number | null;
590
- alt?: string | null;
591
- caption?: string | null;
592
- focalX?: number | null;
593
- focalY?: number | null;
594
- blurhash?: string | null;
595
- dominantColor?: string | null;
596
- folderId?: string | null;
597
- status?: "ready";
598
- }
599
- interface MediaBytes {
600
- bytes: Uint8Array;
601
- filename: string;
602
- mimeType: string;
603
- size: number;
604
- contentHash?: string;
605
- }
606
- interface MediaMetadataPatch {
607
- alt?: string | null;
608
- caption?: string | null;
609
- focalX?: number | null;
610
- focalY?: number | null;
611
- }
612
- /**
613
- * Media list options
614
- */
615
- interface MediaListOptions {
616
- limit?: number;
617
- cursor?: string;
618
- mimeType?: string;
619
- }
620
- /**
621
- * Media access interface - capability-gated
622
- */
623
- interface MediaAccess {
624
- get(id: string): Promise<MediaItem | null>;
625
- list(options?: MediaListOptions): Promise<PaginatedResult<MediaItem>>;
626
- /** Read ready media bytes, bounded by the caller's limit and the host maximum. */
627
- readBytes?(id: string, options?: {
628
- maxBytes?: number;
629
- }): Promise<MediaBytes>;
630
- /** Change only alt text, caption, or the complete focal-point pair. */
631
- updateMetadata?(id: string, patch: MediaMetadataPatch): Promise<MediaItem>;
632
- getUploadUrl?(filename: string, contentType: string): Promise<{
633
- uploadUrl: string;
634
- mediaId: string;
635
- }>;
636
- /**
637
- * Upload media bytes directly. Preferred in sandboxed mode where
638
- * plugins cannot make external requests to a presigned URL.
639
- * Returns the created media item.
640
- */
641
- upload?(filename: string, contentType: string, bytes: ArrayBuffer): Promise<{
642
- mediaId: string;
643
- storageKey: string;
644
- url: string;
645
- }>;
646
- delete?(id: string): Promise<boolean>;
647
- }
648
- /**
649
- * Full media access with write operations
650
- */
651
- interface MediaAccessWithWrite extends MediaAccess {
652
- getUploadUrl(filename: string, contentType: string): Promise<{
653
- uploadUrl: string;
654
- mediaId: string;
655
- }>;
656
- upload(filename: string, contentType: string, bytes: ArrayBuffer): Promise<{
657
- mediaId: string;
658
- storageKey: string;
659
- url: string;
660
- }>;
661
- delete(id: string): Promise<boolean>;
662
- }
663
- /**
664
- * HTTP client interface - requires network:request capability
665
- */
666
- interface HttpAccess {
667
- /**
668
- * Fetch an allowed external URL and return a buffered response.
669
- * Decoded request and response bodies are each limited to 8 MiB.
670
- */
671
- fetch(url: string, init?: RequestInit): Promise<Response>;
672
- }
673
- /**
674
- * Logger interface - always available
675
- */
676
- interface LogAccess {
677
- debug(message: string, data?: unknown): void;
678
- info(message: string, data?: unknown): void;
679
- warn(message: string, data?: unknown): void;
680
- error(message: string, data?: unknown): void;
681
- }
682
- /**
683
- * Site information available to all plugins
684
- */
685
- interface SiteInfo {
686
- /** Site name (from settings) */
687
- name: string;
688
- /** Site URL (from settings or request) */
689
- url: string;
690
- /** Site locale (from settings, defaults to "en") */
691
- locale: string;
692
- /**
693
- * Astro's `trailingSlash` routing policy, from the host's Astro config.
694
- * Plugins that build absolute URLs (sitemap, canonical, hreflang) should
695
- * honor this so the URLs they emit match what the site serves. `createSiteInfo`
696
- * always populates it (defaulting to `"ignore"`, Astro's default); it is
697
- * optional on the type so pre-existing `SiteInfo` construction stays valid.
698
- */
699
- trailingSlash?: "always" | "never" | "ignore";
700
- }
701
- /**
702
- * Read-only user information exposed to plugins.
703
- * Sensitive fields (password hashes, sessions, passkeys) are excluded.
704
- */
705
- interface UserInfo {
706
- id: string;
707
- email: string;
708
- name: string | null;
709
- role: number;
710
- createdAt: string;
711
- }
712
- /**
713
- * User access interface - requires read:users capability
714
- */
715
- interface UserAccess {
716
- /** Get a user by ID */
717
- get(id: string): Promise<UserInfo | null>;
718
- /** Get a user by email */
719
- getByEmail(email: string): Promise<UserInfo | null>;
720
- /** List users with optional filters */
721
- list(opts?: {
722
- role?: number;
723
- limit?: number;
724
- cursor?: string;
725
- }): Promise<{
726
- items: UserInfo[];
727
- nextCursor?: string;
728
- }>;
729
- }
730
- type PluginCommentStatus = "approved" | "pending" | "spam";
731
- /** Comment data exposed by the explicit personal-data `comments:read` capability. */
732
- interface PluginComment {
733
- id: string;
734
- collection: string;
735
- contentId: string;
736
- parentId: string | null;
737
- authorName: string;
738
- authorEmail: string;
739
- body: string;
740
- status: PluginCommentStatus;
741
- ipHash: string | null;
742
- userAgent: string | null;
743
- moderationMetadata: Record<string, unknown> | null;
744
- createdAt: string;
745
- updatedAt: string;
746
- }
747
- interface CommentListOptions {
748
- status?: PluginCommentStatus;
749
- collection?: string;
750
- contentId?: string;
751
- limit?: number;
752
- cursor?: string;
753
- }
754
- interface CommentCountOptions {
755
- status?: PluginCommentStatus;
756
- collection?: string;
757
- contentId?: string;
758
- }
759
- interface CommentAccess {
760
- get(id: string): Promise<PluginComment | null>;
761
- list(options?: CommentListOptions): Promise<PaginatedResult<PluginComment>>;
762
- count(options?: CommentCountOptions): Promise<number>;
763
- setStatus?(id: string, status: PluginCommentStatus, options: {
764
- expectedStatus: PluginCommentStatus;
765
- }): Promise<PluginComment>;
766
- }
767
- /**
768
- * The unified plugin context - same shape for all hooks and routes
769
- */
770
- interface PluginContext<TStorage extends PluginStorageConfig = PluginStorageConfig> {
771
- /** Plugin metadata */
772
- plugin: {
773
- id: string;
774
- version: string;
775
- };
776
- /** Storage collections - only if plugin declares storage */
777
- storage: PluginStorage<TStorage>;
778
- /** Key-value store for internal state */
779
- kv: KVAccess;
780
- /** Plugin settings. Secret schema fields are encrypted by the host. */
781
- settings: SettingsAccess;
782
- /** Content access - only if read:content or write:content capability */
783
- content?: ContentAccess | ContentAccessWithWrite;
784
- /** Schema discovery - only if schema:read capability */
785
- schema?: SchemaAccess;
786
- /** Taxonomy access - only if a taxonomy capability is declared. */
787
- taxonomies?: TaxonomyAccess | TaxonomyAccessWithWrite;
788
- /** Byline access - only if bylines:read capability */
789
- bylines?: BylineAccess;
790
- /** Redirect access - only if redirects:read or redirects:write capability */
791
- redirects?: RedirectAccess | RedirectAccessWithWrite;
792
- /** Media access - only if read:media or write:media capability */
793
- media?: MediaAccess | MediaAccessWithWrite;
794
- /** HTTP client - only if network:request capability */
795
- http?: HttpAccess;
796
- /** Logger - always available */
797
- log: LogAccess;
798
- /** Site information - always available */
799
- site: SiteInfo;
800
- /** URL helper - generates absolute URLs from paths. Always available. */
801
- url(path: string): string;
802
- /** User access - only if read:users capability */
803
- users?: UserAccess;
804
- /** Comment access — only if comments:read or comments:moderate is declared. */
805
- comments?: CommentAccess;
806
- /** Cron task scheduling - always available, scoped to plugin */
807
- cron?: CronAccess;
808
- /** Email access - only if email:send capability and a provider is configured */
809
- email?: EmailAccess;
810
- }
811
- /**
812
- * Cron access interface �� always available on plugin context, scoped to plugin.
813
- */
814
- interface CronAccess {
815
- /** Schedule a recurring or one-shot task */
816
- schedule(name: string, opts: {
817
- schedule: string;
818
- data?: Record<string, unknown>;
819
- }): Promise<void>;
820
- /** Cancel a scheduled task */
821
- cancel(name: string): Promise<void>;
822
- /** List this plugin's scheduled tasks */
823
- list(): Promise<CronTaskInfo[]>;
824
- }
825
- /**
826
- * Task info returned from CronAccess.list()
827
- */
828
- interface CronTaskInfo {
829
- name: string;
830
- schedule: string;
831
- nextRunAt: string;
832
- lastRunAt: string | null;
833
- }
834
- /**
835
- * Event passed to the `cron` hook handler
836
- */
837
- interface CronEvent {
838
- name: string;
839
- data?: Record<string, unknown>;
840
- scheduledAt: string;
841
- }
842
- /**
843
- * Cron hook handler type
844
- */
845
- type CronHandler = (event: CronEvent, ctx: PluginContext) => Promise<void>;
846
- /**
847
- * Email access interface — requires `email:send` capability.
848
- * Undefined when no `email:deliver` provider is configured.
849
- *
850
- * Related capabilities:
851
- * - `email:send` — grants ctx.email (this interface)
852
- * - `email:provide` — allows registering the `email:deliver` exclusive hook
853
- * - `email:intercept` — allows registering `email:beforeSend` / `email:afterSend` hooks
854
- */
855
- interface EmailAccess {
856
- send(message: EmailMessage): Promise<void>;
857
- }
858
- /**
859
- * Email message shape
860
- */
861
- interface EmailMessage {
862
- to: string;
863
- /** Additional visible recipients. */
864
- cc?: string[];
865
- /** Address that replies go to instead of the sender. */
866
- replyTo?: string;
867
- subject: string;
868
- text: string;
869
- html?: string;
870
- }
871
- /**
872
- * Event passed to email:beforeSend hooks (middleware — transform, validate, cancel)
873
- */
874
- interface EmailBeforeSendEvent {
875
- message: EmailMessage;
876
- /** Where the email originated — "system" for auth emails, plugin ID for plugin emails */
877
- source: string;
878
- }
879
- /**
880
- * Event passed to email:deliver hook (exclusive — exactly one provider delivers)
881
- */
882
- interface EmailDeliverEvent {
883
- message: EmailMessage;
884
- source: string;
885
- }
886
- /**
887
- * Event passed to email:afterSend hooks (logging, analytics, fire-and-forget)
888
- */
889
- interface EmailAfterSendEvent {
890
- message: EmailMessage;
891
- source: string;
892
- }
893
- /**
894
- * Handler type for email:beforeSend hooks.
895
- * Returns modified message, or false to cancel delivery.
896
- */
897
- type EmailBeforeSendHandler = (event: EmailBeforeSendEvent, ctx: PluginContext) => Promise<EmailMessage | false>;
898
- /**
899
- * Handler type for email:deliver hooks (exclusive provider).
900
- */
901
- type EmailDeliverHandler = (event: EmailDeliverEvent, ctx: PluginContext) => Promise<void>;
902
- /**
903
- * Handler type for email:afterSend hooks (fire-and-forget).
904
- */
905
- type EmailAfterSendHandler = (event: EmailAfterSendEvent, ctx: PluginContext) => Promise<void>;
906
- /**
907
- * Collection comment settings (read from _emdash_collections)
908
- */
909
- interface CollectionCommentSettings {
910
- commentsEnabled: boolean;
911
- commentsModeration: "all" | "first_time" | "none";
912
- commentsClosedAfterDays: number;
913
- commentsAutoApproveUsers: boolean;
914
- }
915
- /**
916
- * Event passed to comment:beforeCreate hooks (middleware — transform, enrich, reject)
917
- */
918
- interface CommentBeforeCreateEvent {
919
- comment: {
920
- collection: string;
921
- contentId: string;
922
- parentId: string | null;
923
- authorName: string;
924
- authorEmail: string;
925
- authorUserId: string | null;
926
- body: string;
927
- ipHash: string | null;
928
- userAgent: string | null;
929
- };
930
- /** Metadata bag — plugins can attach signals for the moderator */
931
- metadata: Record<string, unknown>;
932
- }
933
- /**
934
- * Event passed to comment:moderate hook (exclusive — decides initial status)
935
- */
936
- interface CommentModerateEvent {
937
- comment: CommentBeforeCreateEvent["comment"];
938
- metadata: Record<string, unknown>;
939
- collectionSettings: CollectionCommentSettings;
940
- /** Number of prior approved comments from this email address */
941
- priorApprovedCount: number;
942
- }
943
- /**
944
- * Moderation decision returned by the comment:moderate handler
945
- */
946
- interface ModerationDecision {
947
- status: "approved" | "pending" | "spam";
948
- /** Optional reason for admin visibility */
949
- reason?: string;
950
- }
951
- /**
952
- * Stored comment shape (full record with id, status, timestamps)
953
- */
954
- interface StoredComment {
955
- id: string;
956
- collection: string;
957
- contentId: string;
958
- parentId: string | null;
959
- authorName: string;
960
- authorEmail: string;
961
- authorUserId: string | null;
962
- body: string;
963
- status: string;
964
- moderationMetadata: Record<string, unknown> | null;
965
- createdAt: string;
966
- updatedAt: string;
967
- }
968
- /**
969
- * Event passed to comment:afterCreate hooks (fire-and-forget)
970
- */
971
- interface CommentAfterCreateEvent {
972
- comment: StoredComment;
973
- metadata: Record<string, unknown>;
974
- /** The content item the comment is on */
975
- content: {
976
- id: string;
977
- collection: string;
978
- slug: string;
979
- title?: string;
980
- };
981
- /** The content author (for notifications) */
982
- contentAuthor?: {
983
- id: string;
984
- name: string | null;
985
- email: string;
986
- };
987
- }
988
- /**
989
- * Event passed to comment:afterModerate hooks (fire-and-forget, admin status change)
990
- */
991
- interface CommentAfterModerateEvent {
992
- comment: StoredComment;
993
- previousStatus: string;
994
- newStatus: string;
995
- /** The admin who moderated */
996
- moderator: {
997
- id: string;
998
- name: string | null;
999
- };
1000
- /** Identifies whether an administrator or a plugin initiated the transition. */
1001
- origin?: {
1002
- source: "admin";
1003
- userId: string;
1004
- } | {
1005
- source: "plugin";
1006
- pluginId: string;
1007
- };
1008
- }
1009
- /**
1010
- * Handler type for comment:beforeCreate hooks.
1011
- * Returns modified event, or false to reject the comment.
1012
- */
1013
- type CommentBeforeCreateHandler = (event: CommentBeforeCreateEvent, ctx: PluginContext) => Promise<CommentBeforeCreateEvent | false | void>;
1014
- /**
1015
- * Handler type for comment:moderate hook (exclusive provider).
1016
- */
1017
- type CommentModerateHandler = (event: CommentModerateEvent, ctx: PluginContext) => Promise<ModerationDecision>;
1018
- /**
1019
- * Handler type for comment:afterCreate hooks (fire-and-forget).
1020
- */
1021
- type CommentAfterCreateHandler = (event: CommentAfterCreateEvent, ctx: PluginContext) => Promise<void>;
1022
- /**
1023
- * Handler type for comment:afterModerate hooks (fire-and-forget).
1024
- */
1025
- type CommentAfterModerateHandler = (event: CommentAfterModerateEvent, ctx: PluginContext) => Promise<void>;
1026
- /**
1027
- * Hook configuration
1028
- */
1029
- interface HookConfig<THandler> {
1030
- /** Explicit ordering - lower numbers run first (default: 100) */
1031
- priority?: number;
1032
- /** Max execution time in ms (default: 5000) */
1033
- timeout?: number;
1034
- /** Run after these plugins */
1035
- dependencies?: string[];
1036
- /** Error handling policy */
1037
- errorPolicy?: "continue" | "abort";
1038
- /**
1039
- * Mark this hook as exclusive — only one plugin can be the active provider.
1040
- * Exclusive hooks skip the priority pipeline and dispatch only to the
1041
- * admin-selected provider. Used for email:deliver, search, image optimization, etc.
1042
- */
1043
- exclusive?: boolean;
1044
- /** The hook handler */
1045
- handler: THandler;
1046
- }
1047
- /**
1048
- * Acting user that triggered a content hook. Present for authenticated
1049
- * saves; absent for unauthenticated or internal writes.
1050
- */
1051
- interface ActorInfo {
1052
- readonly id: string;
1053
- readonly role: number;
1054
- readonly source?: "api" | "mcp" | "visual-editor";
1055
- }
1056
- type ContentActionOrigin = {
1057
- source: "api" | "mcp" | "visual-editor";
1058
- } | {
1059
- source: "plugin";
1060
- pluginId: string;
1061
- } | {
1062
- source: "scheduler";
1063
- } | {
1064
- source: "system";
1065
- };
1066
- type ContentPolicyDecision = void | {
1067
- cancel: true;
1068
- reason: string;
1069
- };
1070
- /**
1071
- * Content hook event
1072
- */
1073
- interface ContentHookEvent {
1074
- content: Record<string, unknown>;
1075
- collection: string;
1076
- isNew: boolean;
1077
- /**
1078
- * ID of the existing item on `content:beforeSave` for an update. Absent on
1079
- * creates, where the ID is assigned when the save completes, and on
1080
- * `content:afterSave`, where `content.id` carries it.
1081
- */
1082
- id?: string;
1083
- /**
1084
- * The acting user for this save. Carries the same authenticated identity
1085
- * used to set the revision author, so plugins (e.g. audit logs) can record
1086
- * who made the change.
1087
- */
1088
- actor?: ActorInfo;
1089
- /**
1090
- * Locale of the entry being saved: the resolved target locale on a create,
1091
- * the stored entry's locale on an update.
1092
- */
1093
- locale?: string;
1094
- /**
1095
- * ID of the source entry when a create comes from the translation flow.
1096
- * Absent on updates and on creates that start a new translation group.
1097
- */
1098
- translationOf?: string;
1099
- /**
1100
- * Users whose edits this save holds, latest first. An ordinary save lists
1101
- * only its actor. A hook that checks the actor's role before accepting
1102
- * content must check everyone here. Absent when the save names no editors,
1103
- * such as an internal write without an authenticated user.
1104
- */
1105
- editedBy?: readonly string[];
1106
- }
1107
- /** Details a save passes to its `content:beforeSave` and `content:afterSave` hooks. */
1108
- interface ContentSaveHookDetails {
1109
- locale?: string;
1110
- translationOf?: string;
1111
- editedBy?: readonly string[];
1112
- }
1113
- /**
1114
- * Content delete hook event
1115
- */
1116
- interface ContentDeleteEvent {
1117
- id: string;
1118
- collection: string;
1119
- /** `true` when the content is permanently deleted (not just trashed). */
1120
- permanent: boolean;
1121
- }
1122
- /**
1123
- * Content state-change hook event (fired after publish, unpublish, restore,
1124
- * schedule, or unschedule).
1125
- */
1126
- interface ContentStateChangeEvent {
1127
- content: Record<string, unknown>;
1128
- collection: string;
1129
- }
1130
- /**
1131
- * Content publish/unpublish hook event.
1132
- */
1133
- type ContentPublishStateChangeEvent = ContentStateChangeEvent;
1134
- /**
1135
- * Content restore hook event.
1136
- */
1137
- type ContentRestoreStateChangeEvent = ContentStateChangeEvent;
1138
- /**
1139
- * Content schedule/unschedule hook event.
1140
- */
1141
- type ContentScheduleStateChangeEvent = ContentStateChangeEvent;
1142
- interface ContentPolicyEvent extends ContentStateChangeEvent {
1143
- origin: ContentActionOrigin;
1144
- actor?: ActorInfo;
1145
- }
1146
- interface ContentSchedulePolicyEvent extends ContentPolicyEvent {
1147
- scheduledAt: string;
1148
- }
1149
- /**
1150
- * Media hook event
1151
- */
1152
- interface MediaUploadEvent {
1153
- file: {
1154
- name: string;
1155
- type: string;
1156
- size: number;
1157
- };
1158
- }
1159
- /**
1160
- * Media after upload event
1161
- */
1162
- interface MediaAfterUploadEvent {
1163
- media: MediaItem;
1164
- }
1165
- /**
1166
- * Lifecycle hook event
1167
- */
1168
- interface LifecycleEvent {}
1169
- /**
1170
- * Uninstall hook event
1171
- */
1172
- interface UninstallEvent {
1173
- deleteData: boolean;
1174
- }
1175
- type ContentBeforeSaveHandler = (event: ContentHookEvent, ctx: PluginContext) => Promise<Record<string, unknown> | void>;
1176
- type ContentAfterSaveHandler = (event: ContentHookEvent, ctx: PluginContext) => Promise<void>;
1177
- type ContentBeforeDeleteHandler = (event: ContentDeleteEvent, ctx: PluginContext) => Promise<boolean | void>;
1178
- type ContentAfterDeleteHandler = (event: ContentDeleteEvent, ctx: PluginContext) => Promise<void>;
1179
- type ContentBeforePublishHandler = (event: ContentPolicyEvent, ctx: PluginContext) => Promise<ContentPolicyDecision>;
1180
- type ContentBeforeScheduleHandler = (event: ContentSchedulePolicyEvent, ctx: PluginContext) => Promise<ContentPolicyDecision>;
1181
- type ContentBeforeUnpublishHandler = (event: ContentPolicyEvent, ctx: PluginContext) => Promise<ContentPolicyDecision>;
1182
- type ContentAfterPublishHandler = (event: ContentPublishStateChangeEvent, ctx: PluginContext) => Promise<void>;
1183
- type ContentAfterUnpublishHandler = (event: ContentPublishStateChangeEvent, ctx: PluginContext) => Promise<void>;
1184
- type ContentAfterRestoreHandler = (event: ContentRestoreStateChangeEvent, ctx: PluginContext) => Promise<void>;
1185
- type ContentAfterScheduleHandler = (event: ContentScheduleStateChangeEvent, ctx: PluginContext) => Promise<void>;
1186
- type ContentAfterUnscheduleHandler = (event: ContentScheduleStateChangeEvent, ctx: PluginContext) => Promise<void>;
1187
- /**
1188
- * Event for `byline:afterSave`, fired after a byline profile or one of its
1189
- * locale translations is created or updated.
1190
- */
1191
- interface BylineAfterSaveEvent {
1192
- byline: BylineInfo;
1193
- isNew: boolean;
1194
- }
1195
- /**
1196
- * Event for `byline:afterDelete`, fired after a byline row is deleted. When it
1197
- * was the last locale of its translation group, its credits have already been
1198
- * removed from every entry.
1199
- */
1200
- interface BylineAfterDeleteEvent {
1201
- byline: BylineInfo;
1202
- }
1203
- type BylineAfterSaveHandler = (event: BylineAfterSaveEvent, ctx: PluginContext) => Promise<void>;
1204
- type BylineAfterDeleteHandler = (event: BylineAfterDeleteEvent, ctx: PluginContext) => Promise<void>;
1205
- type MediaBeforeUploadHandler = (event: MediaUploadEvent, ctx: PluginContext) => Promise<{
1206
- name: string;
1207
- type: string;
1208
- size: number;
1209
- } | void>;
1210
- type MediaAfterUploadHandler = (event: MediaAfterUploadEvent, ctx: PluginContext) => Promise<void>;
1211
- type LifecycleHandler = (event: LifecycleEvent, ctx: PluginContext) => Promise<void>;
1212
- type UninstallHandler = (event: UninstallEvent, ctx: PluginContext) => Promise<void>;
1213
- /** Placement targets for page fragment contributions */
1214
- type PagePlacement = "head" | "body:start" | "body:end";
1215
- /**
1216
- * A single breadcrumb trail item. Used by `PublicPageContext.breadcrumbs`
1217
- * so themes can publish breadcrumb trails that SEO plugins consume.
1218
- */
1219
- interface BreadcrumbItem {
1220
- /** Display name for this crumb (e.g. "Home", "Blog", "My Post"). */
1221
- name: string;
1222
- /** Absolute or root-relative URL for this crumb. */
1223
- url: string;
1224
- }
1225
- /**
1226
- * Describes the page being rendered. Passed to page hooks so plugins
1227
- * can decide what to contribute without fetching content themselves.
1228
- */
1229
- interface PublicPageContext {
1230
- url: string;
1231
- path: string;
1232
- locale: string | null;
1233
- kind: "content" | "custom";
1234
- pageType: string;
1235
- /** Full document title for the rendered page */
1236
- title: string | null;
1237
- /** Page-only title for OG/Twitter/JSON-LD headline output */
1238
- pageTitle?: string | null;
1239
- description: string | null;
1240
- canonical: string | null;
1241
- image: string | null;
1242
- content?: {
1243
- collection: string;
1244
- id: string;
1245
- slug: string | null;
1246
- };
1247
- /** SEO meta for base metadata generation in EmDashHead */
1248
- seo?: {
1249
- ogTitle?: string | null;
1250
- ogDescription?: string | null;
1251
- ogImage?: string | null;
1252
- robots?: string | null;
1253
- };
1254
- /** Article metadata for Open Graph article: tags */
1255
- articleMeta?: {
1256
- publishedTime?: string | null;
1257
- modifiedTime?: string | null;
1258
- author?: string | null;
1259
- };
1260
- /** Site name for structured data and og:site_name */
1261
- siteName?: string;
1262
- /**
1263
- * Optional breadcrumb trail for this page, root first. When set,
1264
- * SEO plugins should use this verbatim rather than deriving a trail
1265
- * from `path`. Themes typically populate this at the point they
1266
- * build the context (e.g. from a content hierarchy walk, taxonomy
1267
- * lookup, or per-`pageType` routing logic).
1268
- *
1269
- * Semantics for consumers:
1270
- * - `undefined` — theme has no opinion; consumer falls back to
1271
- * its own derivation.
1272
- * - `[]` — this page has no breadcrumbs (e.g. homepage); consumer
1273
- * should skip `BreadcrumbList` emission entirely.
1274
- * - Non-empty array — used verbatim for `BreadcrumbList` output.
1275
- */
1276
- breadcrumbs?: BreadcrumbItem[];
1277
- /** Public-facing site URL (origin) for structured data */
1278
- siteUrl?: string;
1279
- }
1280
- interface PageMetadataEvent {
1281
- page: PublicPageContext;
1282
- }
1283
- /**
1284
- * Allowed rel values for link contributions.
1285
- * This is a security-critical allowlist -- sandboxed plugins can only inject
1286
- * link tags with these rel values. Adding "stylesheet", "prefetch", "prerender"
1287
- * etc. would allow sandboxed plugins to inject external resources.
1288
- */
1289
- type PageMetadataLinkRel = "canonical" | "alternate" | "author" | "license" | "nlweb" | "site.standard.document";
1290
- type PageMetadataContribution = {
1291
- kind: "meta";
1292
- name: string;
1293
- content: string;
1294
- key?: string;
1295
- } | {
1296
- kind: "property";
1297
- property: string;
1298
- content: string;
1299
- key?: string;
1300
- } | {
1301
- kind: "link";
1302
- rel: PageMetadataLinkRel;
1303
- href: string;
1304
- hreflang?: string;
1305
- key?: string;
1306
- } | {
1307
- kind: "jsonld";
1308
- id?: string;
1309
- graph: Record<string, unknown> | Array<Record<string, unknown>>;
1310
- };
1311
- type PageMetadataHandler = (event: PageMetadataEvent, ctx: PluginContext) => PageMetadataContribution | PageMetadataContribution[] | null | Promise<PageMetadataContribution | PageMetadataContribution[] | null>;
1312
- interface PageFragmentEvent {
1313
- page: PublicPageContext;
1314
- }
1315
- type PageFragmentContribution = {
1316
- kind: "external-script";
1317
- placement: PagePlacement;
1318
- src: string;
1319
- async?: boolean;
1320
- defer?: boolean;
1321
- attributes?: Record<string, string>;
1322
- key?: string;
1323
- } | {
1324
- kind: "inline-script";
1325
- placement: PagePlacement;
1326
- code: string;
1327
- attributes?: Record<string, string>;
1328
- key?: string;
1329
- } | {
1330
- kind: "html";
1331
- placement: PagePlacement;
1332
- html: string;
1333
- key?: string;
1334
- };
1335
- type PageFragmentHandler = (event: PageFragmentEvent, ctx: PluginContext) => PageFragmentContribution | PageFragmentContribution[] | null | Promise<PageFragmentContribution | PageFragmentContribution[] | null>;
1336
- /**
1337
- * Plugin hooks definition
1338
- */
1339
- interface PluginHooks {
1340
- "plugin:install"?: HookConfig<LifecycleHandler> | LifecycleHandler;
1341
- "plugin:activate"?: HookConfig<LifecycleHandler> | LifecycleHandler;
1342
- "plugin:deactivate"?: HookConfig<LifecycleHandler> | LifecycleHandler;
1343
- "plugin:uninstall"?: HookConfig<UninstallHandler> | UninstallHandler;
1344
- "content:beforeSave"?: HookConfig<ContentBeforeSaveHandler> | ContentBeforeSaveHandler;
1345
- "content:afterSave"?: HookConfig<ContentAfterSaveHandler> | ContentAfterSaveHandler;
1346
- "content:beforeDelete"?: HookConfig<ContentBeforeDeleteHandler> | ContentBeforeDeleteHandler;
1347
- "content:afterDelete"?: HookConfig<ContentAfterDeleteHandler> | ContentAfterDeleteHandler;
1348
- "content:beforePublish"?: HookConfig<ContentBeforePublishHandler> | ContentBeforePublishHandler;
1349
- "content:beforeSchedule"?: HookConfig<ContentBeforeScheduleHandler> | ContentBeforeScheduleHandler;
1350
- "content:beforeUnpublish"?: HookConfig<ContentBeforeUnpublishHandler> | ContentBeforeUnpublishHandler;
1351
- "content:afterPublish"?: HookConfig<ContentAfterPublishHandler> | ContentAfterPublishHandler;
1352
- "content:afterUnpublish"?: HookConfig<ContentAfterUnpublishHandler> | ContentAfterUnpublishHandler;
1353
- "content:afterRestore"?: HookConfig<ContentAfterRestoreHandler> | ContentAfterRestoreHandler;
1354
- "content:afterSchedule"?: HookConfig<ContentAfterScheduleHandler> | ContentAfterScheduleHandler;
1355
- "content:afterUnschedule"?: HookConfig<ContentAfterUnscheduleHandler> | ContentAfterUnscheduleHandler;
1356
- "media:beforeUpload"?: HookConfig<MediaBeforeUploadHandler> | MediaBeforeUploadHandler;
1357
- "media:afterUpload"?: HookConfig<MediaAfterUploadHandler> | MediaAfterUploadHandler;
1358
- cron?: HookConfig<CronHandler> | CronHandler;
1359
- "email:beforeSend"?: HookConfig<EmailBeforeSendHandler> | EmailBeforeSendHandler;
1360
- "email:deliver"?: HookConfig<EmailDeliverHandler> | EmailDeliverHandler;
1361
- "email:afterSend"?: HookConfig<EmailAfterSendHandler> | EmailAfterSendHandler;
1362
- "comment:beforeCreate"?: HookConfig<CommentBeforeCreateHandler> | CommentBeforeCreateHandler;
1363
- "comment:moderate"?: HookConfig<CommentModerateHandler> | CommentModerateHandler;
1364
- "comment:afterCreate"?: HookConfig<CommentAfterCreateHandler> | CommentAfterCreateHandler;
1365
- "comment:afterModerate"?: HookConfig<CommentAfterModerateHandler> | CommentAfterModerateHandler;
1366
- "byline:afterSave"?: HookConfig<BylineAfterSaveHandler> | BylineAfterSaveHandler;
1367
- "byline:afterDelete"?: HookConfig<BylineAfterDeleteHandler> | BylineAfterDeleteHandler;
1368
- "page:metadata"?: HookConfig<PageMetadataHandler> | PageMetadataHandler;
1369
- "page:fragments"?: HookConfig<PageFragmentHandler> | PageFragmentHandler;
1370
- }
1371
- /**
1372
- * Hook names
1373
- */
1374
- /**
1375
- * Hook name in a manifest. Core's exhaustive union of recognised hook names,
1376
- * derived from the `PluginHooks` registry. The serialised manifest carries
1377
- * these as opaque strings; this stricter type is only used for type-checking
1378
- * inside core. `ManifestHookEntry` is re-exported from
1379
- * `@emdash-cms/plugin-types` near the top of this file.
1380
- */
1381
- type HookName = keyof PluginHooks;
1382
- /**
1383
- * Resolved hook with normalized config
1384
- */
1385
- interface ResolvedHook<THandler> {
1386
- priority: number;
1387
- timeout: number;
1388
- dependencies: string[];
1389
- errorPolicy: "continue" | "abort";
1390
- /** Whether this hook is exclusive (provider pattern) */
1391
- exclusive: boolean;
1392
- handler: THandler;
1393
- pluginId: string;
1394
- }
1395
- /**
1396
- * Geographic location information derived from the request.
1397
- * Available when running on Cloudflare Workers (via the `cf` object).
1398
- */
1399
- interface GeoInfo {
1400
- country: string | null;
1401
- region: string | null;
1402
- city: string | null;
1403
- }
1404
- /**
1405
- * Normalized request metadata available to plugin route handlers.
1406
- * Extracted from request headers and platform-specific properties.
1407
- */
1408
- interface RequestMeta {
1409
- ip: string | null;
1410
- userAgent: string | null;
1411
- referer: string | null;
1412
- geo: GeoInfo | null;
1413
- }
1414
- /**
1415
- * Route handler context extends plugin context with request-specific data
1416
- */
1417
- interface RouteContext<TInput = unknown> extends PluginContext {
1418
- /** Validated input from request body */
1419
- input: TInput;
1420
- /** Original request */
1421
- request: Request;
1422
- /** Normalized request metadata (IP, user agent, geo) */
1423
- requestMeta: RequestMeta;
1424
- /** Host-attested context for a validated Block Kit request. */
1425
- ui?: PluginUiContext;
1426
- /**
1427
- * Authenticated caller, if the route is private. The host has already
1428
- * authenticated and authorized this user before dispatch, so the value
1429
- * is trustworthy — unlike a user id read from the request body.
1430
- *
1431
- * `undefined` for public routes (which skip auth entirely) and for
1432
- * token-authed requests where no user is bound to the token.
1433
- *
1434
- * Not gated by the `users:read` capability: this is the caller's own
1435
- * identity for the current request, not a user directory lookup.
1436
- */
1437
- user?: UserInfo;
1438
- }
1439
- /**
1440
- * Route definition
1441
- */
1442
- interface PluginRoute<TInput = unknown> extends Omit<RouteOptions, "request"> {
1443
- /** Zod schema for input validation */
1444
- input?: z.ZodType<TInput>;
1445
- /**
1446
- * Mark this route as publicly accessible (no authentication required).
1447
- * Public routes skip session/token auth and CSRF checks.
1448
- */
1449
- public?: boolean;
1450
- /** RBAC permission required to invoke the route. Legacy routes default to plugins:manage. */
1451
- permission?: Permission;
1452
- /**
1453
- * `Cache-Control` header value for successful GET responses, e.g.
1454
- * `"public, max-age=60, stale-while-revalidate=300"`. Only honored on
1455
- * routes that are also `public: true` — authenticated responses always
1456
- * keep the default `private, no-store`. Errors are never cached.
1457
- */
1458
- cacheControl?: string;
1459
- /** Bounded request parsing and incoming-header declaration. */
1460
- request?: PluginRouteRequest;
1461
- /** Route handler */
1462
- handler: {
1463
- bivarianceHack(ctx: RouteContext<TInput>): Promise<unknown>;
1464
- }["bivarianceHack"];
1465
- }
1466
- type PluginRouteInput<TMode extends PluginRouteBodyMode> = TMode extends "none" ? PluginRouteQuery : TMode extends "text" ? string : TMode extends "bytes" ? Uint8Array : TMode extends "form-data" ? PluginFormData : unknown;
1467
- type PluginRouteDefinition<TMode extends PluginRouteBodyMode = PluginRouteBodyMode> = Omit<PluginRoute<PluginRouteInput<TMode>>, "request"> & {
1468
- request: PluginRouteRequest & {
1469
- body: TMode;
1470
- };
1471
- };
1472
- interface PluginMcpToolDefinition {
1473
- description: string;
1474
- route: string;
1475
- input: z.ZodType;
1476
- output?: z.ZodType;
1477
- destructive?: boolean;
1478
- }
1479
- interface PluginMcpConfig {
1480
- tools: Record<string, PluginMcpToolDefinition>;
1481
- }
1482
- /**
1483
- * Admin page definition
1484
- */
1485
- interface PluginAdminPage {
1486
- path: string;
1487
- label: string;
1488
- icon?: string;
1489
- /**
1490
- * Admin sidebar folder. Pages sharing a group with a collection shown in
1491
- * the sidebar join that folder; pages with any other group share a folder
1492
- * with that label in the Plugins section, across plugins.
1493
- */
1494
- group?: string;
1495
- }
1496
- /**
1497
- * Dashboard widget definition
1498
- */
1499
- interface PluginDashboardWidget {
1500
- id: string;
1501
- size?: "full" | "half" | "third";
1502
- title?: string;
1503
- }
1504
- interface PluginEditorPanel {
1505
- id: string;
1506
- title: string;
1507
- route: string;
1508
- collections?: string[];
1509
- order?: number;
1510
- draft?: PluginEditorDraftAccess;
1511
- }
1512
- interface PluginEditorAction {
1513
- id: string;
1514
- label: string;
1515
- route: string;
1516
- placement: "toolbar" | "overflow";
1517
- collections?: string[];
1518
- style?: "default" | "danger";
1519
- confirm?: ConfirmDialog;
1520
- draft?: PluginEditorDraftAccess;
1521
- }
1522
- /**
1523
- * Settings field types (for admin UI generation)
1524
- */
1525
- type SettingFieldType = "string" | "number" | "boolean" | "select" | "secret" | "url" | "email";
1526
- interface BaseSettingField {
1527
- type: SettingFieldType;
1528
- label: string;
1529
- description?: string;
1530
- }
1531
- interface StringSettingField extends BaseSettingField {
1532
- type: "string";
1533
- default?: string;
1534
- multiline?: boolean;
1535
- }
1536
- interface NumberSettingField extends BaseSettingField {
1537
- type: "number";
1538
- default?: number;
1539
- min?: number;
1540
- max?: number;
1541
- }
1542
- interface BooleanSettingField extends BaseSettingField {
1543
- type: "boolean";
1544
- default?: boolean;
1545
- }
1546
- interface SelectSettingField extends BaseSettingField {
1547
- type: "select";
1548
- options: Array<{
1549
- value: string;
1550
- label: string;
1551
- }>;
1552
- default?: string;
1553
- }
1554
- interface SecretSettingField extends BaseSettingField {
1555
- type: "secret";
1556
- }
1557
- interface UrlSettingField extends BaseSettingField {
1558
- type: "url";
1559
- default?: string;
1560
- placeholder?: string;
1561
- }
1562
- interface EmailSettingField extends BaseSettingField {
1563
- type: "email";
1564
- default?: string;
1565
- placeholder?: string;
1566
- }
1567
- type SettingField = StringSettingField | NumberSettingField | BooleanSettingField | SelectSettingField | SecretSettingField | UrlSettingField | EmailSettingField;
1568
- /**
1569
- * Block Kit element for block editing fields.
1570
- * This is the `Element` discriminated union from `@emdash-cms/blocks`.
1571
- * Plugin authors should use `@emdash-cms/blocks` builder functions to create these.
1572
- */
1573
- type PortableTextBlockField = Element;
1574
- /**
1575
- * Configuration for a Portable Text block type contributed by a plugin
1576
- */
1577
- interface PortableTextBlockConfig {
1578
- /** Block type name (must match the `_type` in Portable Text) */
1579
- type: string;
1580
- /** Human-readable label shown in slash commands and modals */
1581
- label: string;
1582
- /** Icon key (e.g., "video", "code", "link", "link-external") */
1583
- icon?: string;
1584
- /** Description shown in slash command menu */
1585
- description?: string;
1586
- /** Placeholder text for the URL input */
1587
- placeholder?: string;
1588
- /** Block Kit form fields for the editing UI. If declared, replaces the simple URL input. */
1589
- fields?: PortableTextBlockField[];
1590
- /**
1591
- * Optional. Display category in the slash menu. Defaults to "Embeds".
1592
- *
1593
- * Plugin authors should pick a meaningful category that reflects what the
1594
- * block actually is — e.g. "Sections", "Marketing", "Media", "Embeds",
1595
- * "Layout". Blocks with the same category are grouped together in the
1596
- * editor's slash menu.
1597
- */
1598
- category?: string;
1599
- }
1600
- /**
1601
- * Configuration for a field widget type contributed by a plugin.
1602
- * A field widget provides a custom editing UI for a schema field.
1603
- * The field references the widget via `widget: "pluginId:widgetName"`.
1604
- */
1605
- interface FieldWidgetConfig {
1606
- /** Widget name (without plugin ID prefix) */
1607
- name: string;
1608
- /** Human-readable label for the admin UI */
1609
- label: string;
1610
- /** Which field types this widget can edit (e.g., ["json", "string"]) */
1611
- fieldTypes: FieldType[];
1612
- /** Block Kit elements for sandboxed rendering. Omit for trusted plugins using React. */
1613
- elements?: Element[];
1614
- }
1615
- /**
1616
- * Admin configuration
1617
- */
1618
- interface PluginAdminConfig {
1619
- /** Module specifier for admin UI exports (e.g., "@emdash-cms/plugin-audit-log/admin") */
1620
- entry?: string;
1621
- /** Settings schema for auto-generated UI */
1622
- settingsSchema?: Record<string, SettingField>;
1623
- /** Admin pages */
1624
- pages?: PluginAdminPage[];
1625
- /** Dashboard widgets */
1626
- widgets?: PluginDashboardWidget[];
1627
- /** Saved-entry Block Kit panels. */
1628
- editorPanels?: PluginEditorPanel[];
1629
- /** Saved-entry host-rendered actions. */
1630
- editorActions?: PluginEditorAction[];
1631
- /** Portable Text block types this plugin provides */
1632
- portableTextBlocks?: PortableTextBlockConfig[];
1633
- /** Field widget types this plugin provides */
1634
- fieldWidgets?: FieldWidgetConfig[];
1635
- }
1636
- /**
1637
- * Plugin definition - input to definePlugin()
1638
- */
1639
- interface PluginDefinition<TStorage extends PluginStorageConfig = PluginStorageConfig> {
1640
- /** Unique plugin identifier */
1641
- id: string;
1642
- /** Human-readable plugin name */
1643
- displayName?: string;
1644
- /** Description shown in plugin management UI */
1645
- description?: string;
1646
- /** Plugin version (semver) */
1647
- version: string;
1648
- /** Declared capabilities */
1649
- capabilities?: PluginCapability[];
1650
- /** Allowed hosts for network:request (wildcards supported: *.example.com) */
1651
- allowedHosts?: string[];
1652
- /** Storage collections with indexes */
1653
- storage?: TStorage;
1654
- /** Hooks */
1655
- hooks?: PluginHooks;
1656
- /** API routes */
1657
- routes?: Record<string, PluginRoute>;
1658
- /** Routes explicitly exposed as agent-callable MCP tools. */
1659
- mcp?: PluginMcpConfig;
1660
- /** Admin UI configuration */
1661
- admin?: PluginAdminConfig;
1662
- }
1663
- /**
1664
- * Resolved plugin - after definePlugin() processing
1665
- */
1666
- interface ResolvedPlugin<TStorage extends PluginStorageConfig = PluginStorageConfig> {
1667
- id: string;
1668
- displayName?: string;
1669
- description?: string;
1670
- version: string;
1671
- capabilities: PluginCapability[];
1672
- allowedHosts: string[];
1673
- storage: TStorage;
1674
- hooks: ResolvedPluginHooks;
1675
- routes: Record<string, PluginRoute>;
1676
- mcp?: PluginMcpConfig;
1677
- admin: PluginAdminConfig;
1678
- }
1679
- /**
1680
- * Resolved hooks with normalized config
1681
- */
1682
- interface ResolvedPluginHooks {
1683
- "plugin:install"?: ResolvedHook<LifecycleHandler>;
1684
- "plugin:activate"?: ResolvedHook<LifecycleHandler>;
1685
- "plugin:deactivate"?: ResolvedHook<LifecycleHandler>;
1686
- "plugin:uninstall"?: ResolvedHook<UninstallHandler>;
1687
- "content:beforeSave"?: ResolvedHook<ContentBeforeSaveHandler>;
1688
- "content:afterSave"?: ResolvedHook<ContentAfterSaveHandler>;
1689
- "content:beforeDelete"?: ResolvedHook<ContentBeforeDeleteHandler>;
1690
- "content:afterDelete"?: ResolvedHook<ContentAfterDeleteHandler>;
1691
- "content:beforePublish"?: ResolvedHook<ContentBeforePublishHandler>;
1692
- "content:beforeSchedule"?: ResolvedHook<ContentBeforeScheduleHandler>;
1693
- "content:beforeUnpublish"?: ResolvedHook<ContentBeforeUnpublishHandler>;
1694
- "content:afterPublish"?: ResolvedHook<ContentAfterPublishHandler>;
1695
- "content:afterUnpublish"?: ResolvedHook<ContentAfterUnpublishHandler>;
1696
- "content:afterRestore"?: ResolvedHook<ContentAfterRestoreHandler>;
1697
- "content:afterSchedule"?: ResolvedHook<ContentAfterScheduleHandler>;
1698
- "content:afterUnschedule"?: ResolvedHook<ContentAfterUnscheduleHandler>;
1699
- "media:beforeUpload"?: ResolvedHook<MediaBeforeUploadHandler>;
1700
- "media:afterUpload"?: ResolvedHook<MediaAfterUploadHandler>;
1701
- cron?: ResolvedHook<CronHandler>;
1702
- "email:beforeSend"?: ResolvedHook<EmailBeforeSendHandler>;
1703
- "email:deliver"?: ResolvedHook<EmailDeliverHandler>;
1704
- "email:afterSend"?: ResolvedHook<EmailAfterSendHandler>;
1705
- "comment:beforeCreate"?: ResolvedHook<CommentBeforeCreateHandler>;
1706
- "comment:moderate"?: ResolvedHook<CommentModerateHandler>;
1707
- "comment:afterCreate"?: ResolvedHook<CommentAfterCreateHandler>;
1708
- "comment:afterModerate"?: ResolvedHook<CommentAfterModerateHandler>;
1709
- "byline:afterSave"?: ResolvedHook<BylineAfterSaveHandler>;
1710
- "byline:afterDelete"?: ResolvedHook<BylineAfterDeleteHandler>;
1711
- "page:metadata"?: ResolvedHook<PageMetadataHandler>;
1712
- "page:fragments"?: ResolvedHook<PageFragmentHandler>;
1713
- }
1714
- /**
1715
- * What a plugin exports from its /admin entrypoint
1716
- * Uses generic component type to avoid React dependency
1717
- */
1718
- interface PluginAdminExports {
1719
- widgets?: Record<string, JSX.Element>;
1720
- pages?: Record<string, JSX.Element>;
1721
- fields?: Record<string, JSX.Element>;
1722
- }
1723
- /**
1724
- * Plugin manifest — the metadata portion of a plugin bundle, used for
1725
- * sandboxed plugins loaded from the marketplace.
1726
- *
1727
- * This interface is core's stricter version of the manifest contract: it
1728
- * uses the exhaustive `HookName` union and core's typed `PluginAdminConfig`.
1729
- * The wire-shape lives in `@emdash-cms/plugin-types` as `PluginManifest`
1730
- * with looser types (so the registry CLI can serialise hook names it
1731
- * doesn't know about). Both must stay structurally compatible: every value
1732
- * of this type must be assignable to the shared one. The static assertion
1733
- * below catches any drift at compile time.
1734
- */
1735
- interface PluginManifest {
1736
- id: string;
1737
- version: string;
1738
- /**
1739
- * The trust contract (see `@emdash-cms/plugin-types`). Authoritative;
1740
- * `capabilities`/`allowedHosts` are derived from it at the parse boundary
1741
- * via `reconcileManifestAccess`. Optional during the wire-format migration.
1742
- */
1743
- declaredAccess?: DeclaredAccess;
1744
- capabilities: PluginCapability[];
1745
- allowedHosts: string[];
1746
- storage: PluginStorageConfig;
1747
- /** Hook declarations — either plain name strings or structured objects */
1748
- hooks: Array<ManifestHookEntry$1 | HookName>;
1749
- /** Route declarations — either plain name strings or structured objects */
1750
- routes: Array<ManifestRouteEntry$1 | string>;
1751
- mcp?: PluginMcpManifestConfig;
1752
- admin: PluginAdminConfig;
1753
- }
1754
- //#endregion
1755
- export { ContentSchedulePolicyEvent as $, PluginContext as $t, ContentAfterDeleteHandler as A, StorageCollection as An, MediaBeforeUploadHandler as At, ContentBeforeScheduleHandler as B, UninstallHandler as Bn, PageMetadataContribution as Bt, CommentModerateEvent as C, ResolvedPlugin as Cn, KVAccess as Ct, ContentAccess as D, SettingField as Dn, MediaAccess as Dt, ConditionalWriteResult as E, SchemaAccess as En, LogAccess as Et, ContentAfterUnpublishHandler as F, TaxonomyDefInfo as Fn, ModerationDecision as Ft, ContentItem as G, VersionedRedirect as Gn, PaginatedResult as Gt, ContentCreateOptions as H, UpdateIfResult as Hn, PageMetadataHandler as Ht, ContentAfterUnscheduleHandler as I, TaxonomyReadOptions as In, NumericDelta as It, ContentPolicyEvent as J, isDeprecatedCapability as Jn, PluginAdminPage as Jt, ContentListOptions as K, VersionedValue as Kn, PluginAdminConfig as Kt, ContentBeforeDeleteHandler as L, TaxonomyTermCreateInput as Ln, PageFragmentContribution as Lt, ContentAfterRestoreHandler as M, StoredComment as Mn, MediaItem as Mt, ContentAfterSaveHandler as N, TaxonomyAccess as Nn, MediaMetadataPatch as Nt, ContentAccessWithWrite as O, SettingsAccess as On, MediaAfterUploadEvent as Ot, ContentAfterScheduleHandler as P, TaxonomyAccessWithWrite as Pn, MediaUploadEvent as Pt, ContentSaveHookDetails as Q, PluginContentCreateCallback as Qt, ContentBeforePublishHandler as R, TaxonomyTermInfo as Rn, PageFragmentEvent as Rt, CommentListOptions as S, ResolvedHook as Sn, HttpAccess as St, ConditionalDeleteResult as T, RouteContext as Tn, LifecycleHandler as Tt, ContentDeleteEvent as U, UserInfo as Un, PageMetadataLinkRel as Ut, ContentBeforeUnpublishHandler as V, UpdateIfArgs as Vn, PageMetadataEvent as Vt, ContentHookEvent as W, VersionedContentItem as Wn, PagePlacement as Wt, ContentRestoreStateChangeEvent as X, normalizeCapability as Xn, PluginComment as Xt, ContentPublishStateChangeEvent as Y, normalizeCapabilities as Yn, PluginCapability as Yt, ContentRevisionInfo as Z, normalizePluginCapabilities as Zn, PluginCommentStatus as Zt, CommentAfterModerateEvent as _, RedirectInfo as _n, EntryBylineCredits as _t, BylineAfterDeleteHandler as a, PluginManifest as an, CronEvent as at, CommentBeforeCreateHandler as b, RedirectUpdateInput as bn, HookConfig as bt, BylineCreditInfo as c, PluginRouteDefinition as cn, CurrentPluginCapability as ct, CAPABILITY_RENAMES as d, PortableTextBlockField as dn, EmailAfterSendHandler as dt, PluginDefinition as en, ContentScheduleStateChangeEvent as et, CollectionCommentSettings as f, PublicPageContext as fn, EmailBeforeSendEvent as ft, CommentAfterCreateHandler as g, RedirectCreateInput as gn, EmailMessage as gt, CommentAfterCreateEvent as h, RedirectAccessWithWrite as hn, EmailDeliverHandler as ht, BylineAfterDeleteEvent as i, PluginHooks as in, CronAccess as it, ContentAfterPublishHandler as j, StorageCollectionConfig as jn, MediaBytes as jt, ContentActionOrigin as k, SiteInfo as kn, MediaAfterUploadHandler as kt, BylineInfo as l, PluginStorageConfig as ln, DeprecatedPluginCapability as lt, CommentAccess as m, RedirectAccess as mn, EmailDeliverEvent as mt, BreadcrumbItem as n, PluginEditorDraftFieldSelector as nn, ContentTranslationSummary as nt, BylineAfterSaveEvent as o, PluginMcpManifestConfig as on, CronHandler as ot, CollectionSchemaInfo as p, QueryOptions as pn, EmailBeforeSendHandler as pt, ContentPolicyDecision as q, WhereClause as qn, PluginAdminExports as qt, BylineAccess as r, PluginEditorPanel as rn, ContentWriteInput as rt, BylineAfterSaveHandler as s, PluginRoute as sn, CronTaskInfo as st, ActorInfo as t, PluginEditorAction as tn, ContentStateChangeEvent as tt, BylineListOptions as u, PortableTextBlockConfig as un, EmailAfterSendEvent as ut, CommentAfterModerateHandler as v, RedirectListOptions as vn, FieldSchemaInfo as vt, CommentModerateHandler as w, ResolvedPluginHooks as wn, LifecycleEvent as wt, CommentCountOptions as x, RequestMeta as xn, HookName as xt, CommentBeforeCreateEvent as y, RedirectStatus as yn, FieldWidgetConfig as yt, ContentBeforeSaveHandler as z, UninstallEvent as zn, PageFragmentHandler as zt };
1756
- //# sourceMappingURL=types-CImd8MBY.d.mts.map