@actuate-media/cms-core 0.83.0 → 0.85.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 (814) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/api/route-helpers.d.ts +2 -0
  3. package/dist/api/route-helpers.d.ts.map +1 -1
  4. package/dist/api/route-helpers.js +119 -37
  5. package/dist/api/route-helpers.js.map +1 -1
  6. package/dist/config/types.d.ts +15 -0
  7. package/dist/config/types.d.ts.map +1 -1
  8. package/dist/content/structured-data.d.ts +1 -0
  9. package/dist/content/structured-data.d.ts.map +1 -1
  10. package/dist/content/structured-data.js +1 -1
  11. package/dist/content/structured-data.js.map +1 -1
  12. package/dist/forms/index.d.ts +3 -0
  13. package/dist/forms/index.d.ts.map +1 -1
  14. package/dist/forms/index.js +3 -0
  15. package/dist/forms/index.js.map +1 -1
  16. package/dist/forms/prefetch.d.ts +17 -0
  17. package/dist/forms/prefetch.d.ts.map +1 -0
  18. package/dist/forms/prefetch.js +36 -0
  19. package/dist/forms/prefetch.js.map +1 -0
  20. package/dist/forms/public-html.d.ts +22 -0
  21. package/dist/forms/public-html.d.ts.map +1 -0
  22. package/dist/forms/public-html.js +145 -0
  23. package/dist/forms/public-html.js.map +1 -0
  24. package/dist/forms/submission.d.ts +8 -0
  25. package/dist/forms/submission.d.ts.map +1 -1
  26. package/dist/forms/submission.js +3 -1
  27. package/dist/forms/submission.js.map +1 -1
  28. package/dist/forms/webmcp.d.ts +36 -0
  29. package/dist/forms/webmcp.d.ts.map +1 -0
  30. package/dist/forms/webmcp.js +67 -0
  31. package/dist/forms/webmcp.js.map +1 -0
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/next-site.d.ts +29 -0
  37. package/dist/next-site.d.ts.map +1 -0
  38. package/dist/next-site.js +60 -0
  39. package/dist/next-site.js.map +1 -0
  40. package/dist/sections/index.d.ts +2 -0
  41. package/dist/sections/index.d.ts.map +1 -1
  42. package/dist/sections/index.js +1 -0
  43. package/dist/sections/index.js.map +1 -1
  44. package/dist/sections/registry.d.ts.map +1 -1
  45. package/dist/sections/registry.js +86 -0
  46. package/dist/sections/registry.js.map +1 -1
  47. package/dist/sections/types.d.ts +1 -1
  48. package/dist/sections/types.d.ts.map +1 -1
  49. package/dist/sections/validate.d.ts.map +1 -1
  50. package/dist/sections/validate.js +23 -0
  51. package/dist/sections/validate.js.map +1 -1
  52. package/dist/sections/widget-embed.d.ts +45 -0
  53. package/dist/sections/widget-embed.d.ts.map +1 -0
  54. package/dist/sections/widget-embed.js +129 -0
  55. package/dist/sections/widget-embed.js.map +1 -0
  56. package/dist/seo/page-meta.d.ts.map +1 -1
  57. package/dist/seo/page-meta.js +11 -0
  58. package/dist/seo/page-meta.js.map +1 -1
  59. package/dist/server-site.d.ts.map +1 -1
  60. package/dist/server-site.js +13 -0
  61. package/dist/server-site.js.map +1 -1
  62. package/dist/site.d.ts +6 -0
  63. package/dist/site.d.ts.map +1 -1
  64. package/dist/site.js +6 -0
  65. package/dist/site.js.map +1 -1
  66. package/package.json +26 -1
  67. package/dist/__tests__/actions/document-crud.test.d.ts +0 -2
  68. package/dist/__tests__/actions/document-crud.test.d.ts.map +0 -1
  69. package/dist/__tests__/actions/document-crud.test.js +0 -442
  70. package/dist/__tests__/actions/document-crud.test.js.map +0 -1
  71. package/dist/__tests__/actions/seo-fields-update.test.d.ts +0 -2
  72. package/dist/__tests__/actions/seo-fields-update.test.d.ts.map +0 -1
  73. package/dist/__tests__/actions/seo-fields-update.test.js +0 -93
  74. package/dist/__tests__/actions/seo-fields-update.test.js.map +0 -1
  75. package/dist/__tests__/ai/ai.test.d.ts +0 -2
  76. package/dist/__tests__/ai/ai.test.d.ts.map +0 -1
  77. package/dist/__tests__/ai/ai.test.js +0 -266
  78. package/dist/__tests__/ai/ai.test.js.map +0 -1
  79. package/dist/__tests__/ai/brand-voice-alignment.test.d.ts +0 -2
  80. package/dist/__tests__/ai/brand-voice-alignment.test.d.ts.map +0 -1
  81. package/dist/__tests__/ai/brand-voice-alignment.test.js +0 -38
  82. package/dist/__tests__/ai/brand-voice-alignment.test.js.map +0 -1
  83. package/dist/__tests__/ai/brand-voice-analyze.test.d.ts +0 -2
  84. package/dist/__tests__/ai/brand-voice-analyze.test.d.ts.map +0 -1
  85. package/dist/__tests__/ai/brand-voice-analyze.test.js +0 -117
  86. package/dist/__tests__/ai/brand-voice-analyze.test.js.map +0 -1
  87. package/dist/__tests__/ai/brand-voice-document.test.d.ts +0 -2
  88. package/dist/__tests__/ai/brand-voice-document.test.d.ts.map +0 -1
  89. package/dist/__tests__/ai/brand-voice-document.test.js +0 -74
  90. package/dist/__tests__/ai/brand-voice-document.test.js.map +0 -1
  91. package/dist/__tests__/ai/brand-voice-fix.test.d.ts +0 -2
  92. package/dist/__tests__/ai/brand-voice-fix.test.d.ts.map +0 -1
  93. package/dist/__tests__/ai/brand-voice-fix.test.js +0 -34
  94. package/dist/__tests__/ai/brand-voice-fix.test.js.map +0 -1
  95. package/dist/__tests__/ai/brand-voice-sources.test.d.ts +0 -2
  96. package/dist/__tests__/ai/brand-voice-sources.test.d.ts.map +0 -1
  97. package/dist/__tests__/ai/brand-voice-sources.test.js +0 -14
  98. package/dist/__tests__/ai/brand-voice-sources.test.js.map +0 -1
  99. package/dist/__tests__/ai/brand-voice-structured.test.d.ts +0 -2
  100. package/dist/__tests__/ai/brand-voice-structured.test.d.ts.map +0 -1
  101. package/dist/__tests__/ai/brand-voice-structured.test.js +0 -49
  102. package/dist/__tests__/ai/brand-voice-structured.test.js.map +0 -1
  103. package/dist/__tests__/ai/brand-voice.test.d.ts +0 -2
  104. package/dist/__tests__/ai/brand-voice.test.d.ts.map +0 -1
  105. package/dist/__tests__/ai/brand-voice.test.js +0 -82
  106. package/dist/__tests__/ai/brand-voice.test.js.map +0 -1
  107. package/dist/__tests__/ai/content-writing-generate.test.d.ts +0 -2
  108. package/dist/__tests__/ai/content-writing-generate.test.d.ts.map +0 -1
  109. package/dist/__tests__/ai/content-writing-generate.test.js +0 -38
  110. package/dist/__tests__/ai/content-writing-generate.test.js.map +0 -1
  111. package/dist/__tests__/ai/resolve.test.d.ts +0 -2
  112. package/dist/__tests__/ai/resolve.test.d.ts.map +0 -1
  113. package/dist/__tests__/ai/resolve.test.js +0 -164
  114. package/dist/__tests__/ai/resolve.test.js.map +0 -1
  115. package/dist/__tests__/ai/runtime.test.d.ts +0 -2
  116. package/dist/__tests__/ai/runtime.test.d.ts.map +0 -1
  117. package/dist/__tests__/ai/runtime.test.js +0 -392
  118. package/dist/__tests__/ai/runtime.test.js.map +0 -1
  119. package/dist/__tests__/ai/sampling.test.d.ts +0 -2
  120. package/dist/__tests__/ai/sampling.test.d.ts.map +0 -1
  121. package/dist/__tests__/ai/sampling.test.js +0 -25
  122. package/dist/__tests__/ai/sampling.test.js.map +0 -1
  123. package/dist/__tests__/api/admin-contracts.test.d.ts +0 -2
  124. package/dist/__tests__/api/admin-contracts.test.d.ts.map +0 -1
  125. package/dist/__tests__/api/admin-contracts.test.js +0 -186
  126. package/dist/__tests__/api/admin-contracts.test.js.map +0 -1
  127. package/dist/__tests__/api/ai-crawlers.test.d.ts +0 -2
  128. package/dist/__tests__/api/ai-crawlers.test.d.ts.map +0 -1
  129. package/dist/__tests__/api/ai-crawlers.test.js +0 -194
  130. package/dist/__tests__/api/ai-crawlers.test.js.map +0 -1
  131. package/dist/__tests__/api/ai-quality.test.d.ts +0 -2
  132. package/dist/__tests__/api/ai-quality.test.d.ts.map +0 -1
  133. package/dist/__tests__/api/ai-quality.test.js +0 -721
  134. package/dist/__tests__/api/ai-quality.test.js.map +0 -1
  135. package/dist/__tests__/api/ai-status.test.d.ts +0 -2
  136. package/dist/__tests__/api/ai-status.test.d.ts.map +0 -1
  137. package/dist/__tests__/api/ai-status.test.js +0 -110
  138. package/dist/__tests__/api/ai-status.test.js.map +0 -1
  139. package/dist/__tests__/api/api-key-auth.test.d.ts +0 -2
  140. package/dist/__tests__/api/api-key-auth.test.d.ts.map +0 -1
  141. package/dist/__tests__/api/api-key-auth.test.js +0 -254
  142. package/dist/__tests__/api/api-key-auth.test.js.map +0 -1
  143. package/dist/__tests__/api/appearance-routes.test.d.ts +0 -2
  144. package/dist/__tests__/api/appearance-routes.test.d.ts.map +0 -1
  145. package/dist/__tests__/api/appearance-routes.test.js +0 -134
  146. package/dist/__tests__/api/appearance-routes.test.js.map +0 -1
  147. package/dist/__tests__/api/cache-headers.test.d.ts +0 -2
  148. package/dist/__tests__/api/cache-headers.test.d.ts.map +0 -1
  149. package/dist/__tests__/api/cache-headers.test.js +0 -135
  150. package/dist/__tests__/api/cache-headers.test.js.map +0 -1
  151. package/dist/__tests__/api/collection-introspection.test.d.ts +0 -2
  152. package/dist/__tests__/api/collection-introspection.test.d.ts.map +0 -1
  153. package/dist/__tests__/api/collection-introspection.test.js +0 -129
  154. package/dist/__tests__/api/collection-introspection.test.js.map +0 -1
  155. package/dist/__tests__/api/collection-read-access.test.d.ts +0 -2
  156. package/dist/__tests__/api/collection-read-access.test.d.ts.map +0 -1
  157. package/dist/__tests__/api/collection-read-access.test.js +0 -140
  158. package/dist/__tests__/api/collection-read-access.test.js.map +0 -1
  159. package/dist/__tests__/api/collections-ai-create.test.d.ts +0 -2
  160. package/dist/__tests__/api/collections-ai-create.test.d.ts.map +0 -1
  161. package/dist/__tests__/api/collections-ai-create.test.js +0 -313
  162. package/dist/__tests__/api/collections-ai-create.test.js.map +0 -1
  163. package/dist/__tests__/api/collections-discovery.test.d.ts +0 -2
  164. package/dist/__tests__/api/collections-discovery.test.d.ts.map +0 -1
  165. package/dist/__tests__/api/collections-discovery.test.js +0 -348
  166. package/dist/__tests__/api/collections-discovery.test.js.map +0 -1
  167. package/dist/__tests__/api/comments-routes.test.d.ts +0 -2
  168. package/dist/__tests__/api/comments-routes.test.d.ts.map +0 -1
  169. package/dist/__tests__/api/comments-routes.test.js +0 -266
  170. package/dist/__tests__/api/comments-routes.test.js.map +0 -1
  171. package/dist/__tests__/api/cron-routes.test.d.ts +0 -2
  172. package/dist/__tests__/api/cron-routes.test.d.ts.map +0 -1
  173. package/dist/__tests__/api/cron-routes.test.js +0 -67
  174. package/dist/__tests__/api/cron-routes.test.js.map +0 -1
  175. package/dist/__tests__/api/data-filters-routes.test.d.ts +0 -2
  176. package/dist/__tests__/api/data-filters-routes.test.d.ts.map +0 -1
  177. package/dist/__tests__/api/data-filters-routes.test.js +0 -131
  178. package/dist/__tests__/api/data-filters-routes.test.js.map +0 -1
  179. package/dist/__tests__/api/email-settings-routes.test.d.ts +0 -2
  180. package/dist/__tests__/api/email-settings-routes.test.d.ts.map +0 -1
  181. package/dist/__tests__/api/email-settings-routes.test.js +0 -240
  182. package/dist/__tests__/api/email-settings-routes.test.js.map +0 -1
  183. package/dist/__tests__/api/field-values-routes.test.d.ts +0 -2
  184. package/dist/__tests__/api/field-values-routes.test.d.ts.map +0 -1
  185. package/dist/__tests__/api/field-values-routes.test.js +0 -147
  186. package/dist/__tests__/api/field-values-routes.test.js.map +0 -1
  187. package/dist/__tests__/api/form-webhooks.test.d.ts +0 -2
  188. package/dist/__tests__/api/form-webhooks.test.d.ts.map +0 -1
  189. package/dist/__tests__/api/form-webhooks.test.js +0 -162
  190. package/dist/__tests__/api/form-webhooks.test.js.map +0 -1
  191. package/dist/__tests__/api/globals-routes.test.d.ts +0 -2
  192. package/dist/__tests__/api/globals-routes.test.d.ts.map +0 -1
  193. package/dist/__tests__/api/globals-routes.test.js +0 -100
  194. package/dist/__tests__/api/globals-routes.test.js.map +0 -1
  195. package/dist/__tests__/api/health.test.d.ts +0 -2
  196. package/dist/__tests__/api/health.test.d.ts.map +0 -1
  197. package/dist/__tests__/api/health.test.js +0 -144
  198. package/dist/__tests__/api/health.test.js.map +0 -1
  199. package/dist/__tests__/api/llms-txt.test.d.ts +0 -2
  200. package/dist/__tests__/api/llms-txt.test.d.ts.map +0 -1
  201. package/dist/__tests__/api/llms-txt.test.js +0 -423
  202. package/dist/__tests__/api/llms-txt.test.js.map +0 -1
  203. package/dist/__tests__/api/md-route.test.d.ts +0 -2
  204. package/dist/__tests__/api/md-route.test.d.ts.map +0 -1
  205. package/dist/__tests__/api/md-route.test.js +0 -106
  206. package/dist/__tests__/api/md-route.test.js.map +0 -1
  207. package/dist/__tests__/api/media-upload-storage.test.d.ts +0 -2
  208. package/dist/__tests__/api/media-upload-storage.test.d.ts.map +0 -1
  209. package/dist/__tests__/api/media-upload-storage.test.js +0 -171
  210. package/dist/__tests__/api/media-upload-storage.test.js.map +0 -1
  211. package/dist/__tests__/api/notifications-routes.test.d.ts +0 -2
  212. package/dist/__tests__/api/notifications-routes.test.d.ts.map +0 -1
  213. package/dist/__tests__/api/notifications-routes.test.js +0 -270
  214. package/dist/__tests__/api/notifications-routes.test.js.map +0 -1
  215. package/dist/__tests__/api/page-sections-routes.test.d.ts +0 -2
  216. package/dist/__tests__/api/page-sections-routes.test.d.ts.map +0 -1
  217. package/dist/__tests__/api/page-sections-routes.test.js +0 -501
  218. package/dist/__tests__/api/page-sections-routes.test.js.map +0 -1
  219. package/dist/__tests__/api/preview-and-scheduling.test.d.ts +0 -2
  220. package/dist/__tests__/api/preview-and-scheduling.test.d.ts.map +0 -1
  221. package/dist/__tests__/api/preview-and-scheduling.test.js +0 -479
  222. package/dist/__tests__/api/preview-and-scheduling.test.js.map +0 -1
  223. package/dist/__tests__/api/public-forms.test.d.ts +0 -2
  224. package/dist/__tests__/api/public-forms.test.d.ts.map +0 -1
  225. package/dist/__tests__/api/public-forms.test.js +0 -125
  226. package/dist/__tests__/api/public-forms.test.js.map +0 -1
  227. package/dist/__tests__/api/public-globals.test.d.ts +0 -2
  228. package/dist/__tests__/api/public-globals.test.d.ts.map +0 -1
  229. package/dist/__tests__/api/public-globals.test.js +0 -96
  230. package/dist/__tests__/api/public-globals.test.js.map +0 -1
  231. package/dist/__tests__/api/public-navigations.test.d.ts +0 -2
  232. package/dist/__tests__/api/public-navigations.test.d.ts.map +0 -1
  233. package/dist/__tests__/api/public-navigations.test.js +0 -77
  234. package/dist/__tests__/api/public-navigations.test.js.map +0 -1
  235. package/dist/__tests__/api/public-seo.test.d.ts +0 -2
  236. package/dist/__tests__/api/public-seo.test.d.ts.map +0 -1
  237. package/dist/__tests__/api/public-seo.test.js +0 -834
  238. package/dist/__tests__/api/public-seo.test.js.map +0 -1
  239. package/dist/__tests__/api/resolve-layout-bridge.test.d.ts +0 -2
  240. package/dist/__tests__/api/resolve-layout-bridge.test.d.ts.map +0 -1
  241. package/dist/__tests__/api/resolve-layout-bridge.test.js +0 -165
  242. package/dist/__tests__/api/resolve-layout-bridge.test.js.map +0 -1
  243. package/dist/__tests__/api/route-contracts.test.d.ts +0 -2
  244. package/dist/__tests__/api/route-contracts.test.d.ts.map +0 -1
  245. package/dist/__tests__/api/route-contracts.test.js +0 -466
  246. package/dist/__tests__/api/route-contracts.test.js.map +0 -1
  247. package/dist/__tests__/api/security-routes.test.d.ts +0 -2
  248. package/dist/__tests__/api/security-routes.test.d.ts.map +0 -1
  249. package/dist/__tests__/api/security-routes.test.js +0 -212
  250. package/dist/__tests__/api/security-routes.test.js.map +0 -1
  251. package/dist/__tests__/api/seo-read-access.test.d.ts +0 -2
  252. package/dist/__tests__/api/seo-read-access.test.d.ts.map +0 -1
  253. package/dist/__tests__/api/seo-read-access.test.js +0 -101
  254. package/dist/__tests__/api/seo-read-access.test.js.map +0 -1
  255. package/dist/__tests__/api/seo-summary-ssrf.test.d.ts +0 -2
  256. package/dist/__tests__/api/seo-summary-ssrf.test.d.ts.map +0 -1
  257. package/dist/__tests__/api/seo-summary-ssrf.test.js +0 -80
  258. package/dist/__tests__/api/seo-summary-ssrf.test.js.map +0 -1
  259. package/dist/__tests__/api/sitemap-pagination.test.d.ts +0 -2
  260. package/dist/__tests__/api/sitemap-pagination.test.d.ts.map +0 -1
  261. package/dist/__tests__/api/sitemap-pagination.test.js +0 -100
  262. package/dist/__tests__/api/sitemap-pagination.test.js.map +0 -1
  263. package/dist/__tests__/api/stats-collection-filter.test.d.ts +0 -2
  264. package/dist/__tests__/api/stats-collection-filter.test.d.ts.map +0 -1
  265. package/dist/__tests__/api/stats-collection-filter.test.js +0 -190
  266. package/dist/__tests__/api/stats-collection-filter.test.js.map +0 -1
  267. package/dist/__tests__/api/stats-routes.test.d.ts +0 -2
  268. package/dist/__tests__/api/stats-routes.test.d.ts.map +0 -1
  269. package/dist/__tests__/api/stats-routes.test.js +0 -251
  270. package/dist/__tests__/api/stats-routes.test.js.map +0 -1
  271. package/dist/__tests__/api/stats-seo-cache.test.d.ts +0 -2
  272. package/dist/__tests__/api/stats-seo-cache.test.d.ts.map +0 -1
  273. package/dist/__tests__/api/stats-seo-cache.test.js +0 -96
  274. package/dist/__tests__/api/stats-seo-cache.test.js.map +0 -1
  275. package/dist/__tests__/api/totp-login.test.d.ts +0 -2
  276. package/dist/__tests__/api/totp-login.test.d.ts.map +0 -1
  277. package/dist/__tests__/api/totp-login.test.js +0 -115
  278. package/dist/__tests__/api/totp-login.test.js.map +0 -1
  279. package/dist/__tests__/api/updates-routes.test.d.ts +0 -2
  280. package/dist/__tests__/api/updates-routes.test.d.ts.map +0 -1
  281. package/dist/__tests__/api/updates-routes.test.js +0 -248
  282. package/dist/__tests__/api/updates-routes.test.js.map +0 -1
  283. package/dist/__tests__/api/users-detail.test.d.ts +0 -2
  284. package/dist/__tests__/api/users-detail.test.d.ts.map +0 -1
  285. package/dist/__tests__/api/users-detail.test.js +0 -401
  286. package/dist/__tests__/api/users-detail.test.js.map +0 -1
  287. package/dist/__tests__/api/users-invite.test.d.ts +0 -2
  288. package/dist/__tests__/api/users-invite.test.d.ts.map +0 -1
  289. package/dist/__tests__/api/users-invite.test.js +0 -221
  290. package/dist/__tests__/api/users-invite.test.js.map +0 -1
  291. package/dist/__tests__/api/users-search.test.d.ts +0 -2
  292. package/dist/__tests__/api/users-search.test.d.ts.map +0 -1
  293. package/dist/__tests__/api/users-search.test.js +0 -182
  294. package/dist/__tests__/api/users-search.test.js.map +0 -1
  295. package/dist/__tests__/appearance/appearance.test.d.ts +0 -2
  296. package/dist/__tests__/appearance/appearance.test.d.ts.map +0 -1
  297. package/dist/__tests__/appearance/appearance.test.js +0 -287
  298. package/dist/__tests__/appearance/appearance.test.js.map +0 -1
  299. package/dist/__tests__/appearance/favicon-icon.test.d.ts +0 -2
  300. package/dist/__tests__/appearance/favicon-icon.test.d.ts.map +0 -1
  301. package/dist/__tests__/appearance/favicon-icon.test.js +0 -12
  302. package/dist/__tests__/appearance/favicon-icon.test.js.map +0 -1
  303. package/dist/__tests__/auth/invites.test.d.ts +0 -2
  304. package/dist/__tests__/auth/invites.test.d.ts.map +0 -1
  305. package/dist/__tests__/auth/invites.test.js +0 -181
  306. package/dist/__tests__/auth/invites.test.js.map +0 -1
  307. package/dist/__tests__/auth/oauth.test.d.ts +0 -2
  308. package/dist/__tests__/auth/oauth.test.d.ts.map +0 -1
  309. package/dist/__tests__/auth/oauth.test.js +0 -408
  310. package/dist/__tests__/auth/oauth.test.js.map +0 -1
  311. package/dist/__tests__/auth/password.test.d.ts +0 -2
  312. package/dist/__tests__/auth/password.test.d.ts.map +0 -1
  313. package/dist/__tests__/auth/password.test.js +0 -226
  314. package/dist/__tests__/auth/password.test.js.map +0 -1
  315. package/dist/__tests__/auth/reset.test.d.ts +0 -2
  316. package/dist/__tests__/auth/reset.test.d.ts.map +0 -1
  317. package/dist/__tests__/auth/reset.test.js +0 -355
  318. package/dist/__tests__/auth/reset.test.js.map +0 -1
  319. package/dist/__tests__/auth/roles.test.d.ts +0 -2
  320. package/dist/__tests__/auth/roles.test.d.ts.map +0 -1
  321. package/dist/__tests__/auth/roles.test.js +0 -60
  322. package/dist/__tests__/auth/roles.test.js.map +0 -1
  323. package/dist/__tests__/auth/session.test.d.ts +0 -2
  324. package/dist/__tests__/auth/session.test.d.ts.map +0 -1
  325. package/dist/__tests__/auth/session.test.js +0 -119
  326. package/dist/__tests__/auth/session.test.js.map +0 -1
  327. package/dist/__tests__/auth/team.test.d.ts +0 -2
  328. package/dist/__tests__/auth/team.test.d.ts.map +0 -1
  329. package/dist/__tests__/auth/team.test.js +0 -154
  330. package/dist/__tests__/auth/team.test.js.map +0 -1
  331. package/dist/__tests__/auth/totp.test.d.ts +0 -2
  332. package/dist/__tests__/auth/totp.test.d.ts.map +0 -1
  333. package/dist/__tests__/auth/totp.test.js +0 -52
  334. package/dist/__tests__/auth/totp.test.js.map +0 -1
  335. package/dist/__tests__/auth/user-admin.test.d.ts +0 -2
  336. package/dist/__tests__/auth/user-admin.test.d.ts.map +0 -1
  337. package/dist/__tests__/auth/user-admin.test.js +0 -200
  338. package/dist/__tests__/auth/user-admin.test.js.map +0 -1
  339. package/dist/__tests__/billing/stripe-meter.test.d.ts +0 -2
  340. package/dist/__tests__/billing/stripe-meter.test.d.ts.map +0 -1
  341. package/dist/__tests__/billing/stripe-meter.test.js +0 -86
  342. package/dist/__tests__/billing/stripe-meter.test.js.map +0 -1
  343. package/dist/__tests__/codegen/generate-types.test.d.ts +0 -2
  344. package/dist/__tests__/codegen/generate-types.test.d.ts.map +0 -1
  345. package/dist/__tests__/codegen/generate-types.test.js +0 -173
  346. package/dist/__tests__/codegen/generate-types.test.js.map +0 -1
  347. package/dist/__tests__/collections/presets.test.d.ts +0 -2
  348. package/dist/__tests__/collections/presets.test.d.ts.map +0 -1
  349. package/dist/__tests__/collections/presets.test.js +0 -184
  350. package/dist/__tests__/collections/presets.test.js.map +0 -1
  351. package/dist/__tests__/config/runtime.test.d.ts +0 -2
  352. package/dist/__tests__/config/runtime.test.d.ts.map +0 -1
  353. package/dist/__tests__/config/runtime.test.js +0 -65
  354. package/dist/__tests__/config/runtime.test.js.map +0 -1
  355. package/dist/__tests__/content/slug.test.d.ts +0 -2
  356. package/dist/__tests__/content/slug.test.d.ts.map +0 -1
  357. package/dist/__tests__/content/slug.test.js +0 -68
  358. package/dist/__tests__/content/slug.test.js.map +0 -1
  359. package/dist/__tests__/content-health/scanner.test.d.ts +0 -2
  360. package/dist/__tests__/content-health/scanner.test.d.ts.map +0 -1
  361. package/dist/__tests__/content-health/scanner.test.js +0 -151
  362. package/dist/__tests__/content-health/scanner.test.js.map +0 -1
  363. package/dist/__tests__/cron/cron.test.d.ts +0 -2
  364. package/dist/__tests__/cron/cron.test.d.ts.map +0 -1
  365. package/dist/__tests__/cron/cron.test.js +0 -340
  366. package/dist/__tests__/cron/cron.test.js.map +0 -1
  367. package/dist/__tests__/db/model-types-freshness.test.d.ts +0 -2
  368. package/dist/__tests__/db/model-types-freshness.test.d.ts.map +0 -1
  369. package/dist/__tests__/db/model-types-freshness.test.js +0 -46
  370. package/dist/__tests__/db/model-types-freshness.test.js.map +0 -1
  371. package/dist/__tests__/diagnostics/api-metrics.test.d.ts +0 -2
  372. package/dist/__tests__/diagnostics/api-metrics.test.d.ts.map +0 -1
  373. package/dist/__tests__/diagnostics/api-metrics.test.js +0 -153
  374. package/dist/__tests__/diagnostics/api-metrics.test.js.map +0 -1
  375. package/dist/__tests__/diagnostics/env.test.d.ts +0 -2
  376. package/dist/__tests__/diagnostics/env.test.d.ts.map +0 -1
  377. package/dist/__tests__/diagnostics/env.test.js +0 -247
  378. package/dist/__tests__/diagnostics/env.test.js.map +0 -1
  379. package/dist/__tests__/diagnostics/logger.test.d.ts +0 -2
  380. package/dist/__tests__/diagnostics/logger.test.d.ts.map +0 -1
  381. package/dist/__tests__/diagnostics/logger.test.js +0 -111
  382. package/dist/__tests__/diagnostics/logger.test.js.map +0 -1
  383. package/dist/__tests__/diagnostics/sentry.test.d.ts +0 -2
  384. package/dist/__tests__/diagnostics/sentry.test.d.ts.map +0 -1
  385. package/dist/__tests__/diagnostics/sentry.test.js +0 -60
  386. package/dist/__tests__/diagnostics/sentry.test.js.map +0 -1
  387. package/dist/__tests__/email/resolve.test.d.ts +0 -2
  388. package/dist/__tests__/email/resolve.test.d.ts.map +0 -1
  389. package/dist/__tests__/email/resolve.test.js +0 -90
  390. package/dist/__tests__/email/resolve.test.js.map +0 -1
  391. package/dist/__tests__/email/sender.test.d.ts +0 -2
  392. package/dist/__tests__/email/sender.test.d.ts.map +0 -1
  393. package/dist/__tests__/email/sender.test.js +0 -33
  394. package/dist/__tests__/email/sender.test.js.map +0 -1
  395. package/dist/__tests__/email/settings-store.test.d.ts +0 -2
  396. package/dist/__tests__/email/settings-store.test.d.ts.map +0 -1
  397. package/dist/__tests__/email/settings-store.test.js +0 -149
  398. package/dist/__tests__/email/settings-store.test.js.map +0 -1
  399. package/dist/__tests__/fields/component-block.test.d.ts +0 -2
  400. package/dist/__tests__/fields/component-block.test.d.ts.map +0 -1
  401. package/dist/__tests__/fields/component-block.test.js +0 -129
  402. package/dist/__tests__/fields/component-block.test.js.map +0 -1
  403. package/dist/__tests__/fields/presets.test.d.ts +0 -2
  404. package/dist/__tests__/fields/presets.test.d.ts.map +0 -1
  405. package/dist/__tests__/fields/presets.test.js +0 -99
  406. package/dist/__tests__/fields/presets.test.js.map +0 -1
  407. package/dist/__tests__/fields/relations.test.d.ts +0 -2
  408. package/dist/__tests__/fields/relations.test.d.ts.map +0 -1
  409. package/dist/__tests__/fields/relations.test.js +0 -297
  410. package/dist/__tests__/fields/relations.test.js.map +0 -1
  411. package/dist/__tests__/forms/client-validation.test.d.ts +0 -2
  412. package/dist/__tests__/forms/client-validation.test.d.ts.map +0 -1
  413. package/dist/__tests__/forms/client-validation.test.js +0 -98
  414. package/dist/__tests__/forms/client-validation.test.js.map +0 -1
  415. package/dist/__tests__/forms/encryption.test.d.ts +0 -2
  416. package/dist/__tests__/forms/encryption.test.d.ts.map +0 -1
  417. package/dist/__tests__/forms/encryption.test.js +0 -84
  418. package/dist/__tests__/forms/encryption.test.js.map +0 -1
  419. package/dist/__tests__/forms/entries-export.test.d.ts +0 -2
  420. package/dist/__tests__/forms/entries-export.test.d.ts.map +0 -1
  421. package/dist/__tests__/forms/entries-export.test.js +0 -69
  422. package/dist/__tests__/forms/entries-export.test.js.map +0 -1
  423. package/dist/__tests__/forms/forms-service.test.d.ts +0 -2
  424. package/dist/__tests__/forms/forms-service.test.d.ts.map +0 -1
  425. package/dist/__tests__/forms/forms-service.test.js +0 -193
  426. package/dist/__tests__/forms/forms-service.test.js.map +0 -1
  427. package/dist/__tests__/forms/notify.test.d.ts +0 -2
  428. package/dist/__tests__/forms/notify.test.d.ts.map +0 -1
  429. package/dist/__tests__/forms/notify.test.js +0 -114
  430. package/dist/__tests__/forms/notify.test.js.map +0 -1
  431. package/dist/__tests__/forms/spam.test.d.ts +0 -2
  432. package/dist/__tests__/forms/spam.test.d.ts.map +0 -1
  433. package/dist/__tests__/forms/spam.test.js +0 -115
  434. package/dist/__tests__/forms/spam.test.js.map +0 -1
  435. package/dist/__tests__/forms/submission-files.test.d.ts +0 -2
  436. package/dist/__tests__/forms/submission-files.test.d.ts.map +0 -1
  437. package/dist/__tests__/forms/submission-files.test.js +0 -65
  438. package/dist/__tests__/forms/submission-files.test.js.map +0 -1
  439. package/dist/__tests__/forms/submission-pipeline.test.d.ts +0 -2
  440. package/dist/__tests__/forms/submission-pipeline.test.d.ts.map +0 -1
  441. package/dist/__tests__/forms/submission-pipeline.test.js +0 -131
  442. package/dist/__tests__/forms/submission-pipeline.test.js.map +0 -1
  443. package/dist/__tests__/forms/submission-validation.test.d.ts +0 -2
  444. package/dist/__tests__/forms/submission-validation.test.d.ts.map +0 -1
  445. package/dist/__tests__/forms/submission-validation.test.js +0 -108
  446. package/dist/__tests__/forms/submission-validation.test.js.map +0 -1
  447. package/dist/__tests__/forms/webhooks.test.d.ts +0 -2
  448. package/dist/__tests__/forms/webhooks.test.d.ts.map +0 -1
  449. package/dist/__tests__/forms/webhooks.test.js +0 -203
  450. package/dist/__tests__/forms/webhooks.test.js.map +0 -1
  451. package/dist/__tests__/media/seo.test.d.ts +0 -2
  452. package/dist/__tests__/media/seo.test.d.ts.map +0 -1
  453. package/dist/__tests__/media/seo.test.js +0 -186
  454. package/dist/__tests__/media/seo.test.js.map +0 -1
  455. package/dist/__tests__/middleware.test.d.ts +0 -2
  456. package/dist/__tests__/middleware.test.d.ts.map +0 -1
  457. package/dist/__tests__/middleware.test.js +0 -127
  458. package/dist/__tests__/middleware.test.js.map +0 -1
  459. package/dist/__tests__/next.test.d.ts +0 -2
  460. package/dist/__tests__/next.test.d.ts.map +0 -1
  461. package/dist/__tests__/next.test.js +0 -118
  462. package/dist/__tests__/next.test.js.map +0 -1
  463. package/dist/__tests__/plan/features.test.d.ts +0 -2
  464. package/dist/__tests__/plan/features.test.d.ts.map +0 -1
  465. package/dist/__tests__/plan/features.test.js +0 -35
  466. package/dist/__tests__/plan/features.test.js.map +0 -1
  467. package/dist/__tests__/preview-event-bus.test.d.ts +0 -2
  468. package/dist/__tests__/preview-event-bus.test.d.ts.map +0 -1
  469. package/dist/__tests__/preview-event-bus.test.js +0 -89
  470. package/dist/__tests__/preview-event-bus.test.js.map +0 -1
  471. package/dist/__tests__/preview-sse-stream.test.d.ts +0 -2
  472. package/dist/__tests__/preview-sse-stream.test.d.ts.map +0 -1
  473. package/dist/__tests__/preview-sse-stream.test.js +0 -117
  474. package/dist/__tests__/preview-sse-stream.test.js.map +0 -1
  475. package/dist/__tests__/preview.test.d.ts +0 -2
  476. package/dist/__tests__/preview.test.d.ts.map +0 -1
  477. package/dist/__tests__/preview.test.js +0 -71
  478. package/dist/__tests__/preview.test.js.map +0 -1
  479. package/dist/__tests__/realtime/comments.test.d.ts +0 -2
  480. package/dist/__tests__/realtime/comments.test.d.ts.map +0 -1
  481. package/dist/__tests__/realtime/comments.test.js +0 -508
  482. package/dist/__tests__/realtime/comments.test.js.map +0 -1
  483. package/dist/__tests__/realtime/gateway-ws-integration.test.d.ts +0 -2
  484. package/dist/__tests__/realtime/gateway-ws-integration.test.d.ts.map +0 -1
  485. package/dist/__tests__/realtime/gateway-ws-integration.test.js +0 -170
  486. package/dist/__tests__/realtime/gateway-ws-integration.test.js.map +0 -1
  487. package/dist/__tests__/realtime/gateway.test.d.ts +0 -2
  488. package/dist/__tests__/realtime/gateway.test.d.ts.map +0 -1
  489. package/dist/__tests__/realtime/gateway.test.js +0 -402
  490. package/dist/__tests__/realtime/gateway.test.js.map +0 -1
  491. package/dist/__tests__/realtime/notification-bus.test.d.ts +0 -2
  492. package/dist/__tests__/realtime/notification-bus.test.d.ts.map +0 -1
  493. package/dist/__tests__/realtime/notification-bus.test.js +0 -79
  494. package/dist/__tests__/realtime/notification-bus.test.js.map +0 -1
  495. package/dist/__tests__/realtime/notification-stream.test.d.ts +0 -2
  496. package/dist/__tests__/realtime/notification-stream.test.d.ts.map +0 -1
  497. package/dist/__tests__/realtime/notification-stream.test.js +0 -157
  498. package/dist/__tests__/realtime/notification-stream.test.js.map +0 -1
  499. package/dist/__tests__/realtime/notifications.test.d.ts +0 -2
  500. package/dist/__tests__/realtime/notifications.test.d.ts.map +0 -1
  501. package/dist/__tests__/realtime/notifications.test.js +0 -330
  502. package/dist/__tests__/realtime/notifications.test.js.map +0 -1
  503. package/dist/__tests__/realtime/persistence.test.d.ts +0 -2
  504. package/dist/__tests__/realtime/persistence.test.d.ts.map +0 -1
  505. package/dist/__tests__/realtime/persistence.test.js +0 -124
  506. package/dist/__tests__/realtime/persistence.test.js.map +0 -1
  507. package/dist/__tests__/redirects/auto-301.test.d.ts +0 -2
  508. package/dist/__tests__/redirects/auto-301.test.d.ts.map +0 -1
  509. package/dist/__tests__/redirects/auto-301.test.js +0 -172
  510. package/dist/__tests__/redirects/auto-301.test.js.map +0 -1
  511. package/dist/__tests__/redirects/graph.test.d.ts +0 -2
  512. package/dist/__tests__/redirects/graph.test.d.ts.map +0 -1
  513. package/dist/__tests__/redirects/graph.test.js +0 -104
  514. package/dist/__tests__/redirects/graph.test.js.map +0 -1
  515. package/dist/__tests__/redirects/suggest.test.d.ts +0 -2
  516. package/dist/__tests__/redirects/suggest.test.d.ts.map +0 -1
  517. package/dist/__tests__/redirects/suggest.test.js +0 -28
  518. package/dist/__tests__/redirects/suggest.test.js.map +0 -1
  519. package/dist/__tests__/scheduling/scheduling.test.d.ts +0 -2
  520. package/dist/__tests__/scheduling/scheduling.test.d.ts.map +0 -1
  521. package/dist/__tests__/scheduling/scheduling.test.js +0 -110
  522. package/dist/__tests__/scheduling/scheduling.test.js.map +0 -1
  523. package/dist/__tests__/schema-preview-features.test.d.ts +0 -2
  524. package/dist/__tests__/schema-preview-features.test.d.ts.map +0 -1
  525. package/dist/__tests__/schema-preview-features.test.js +0 -42
  526. package/dist/__tests__/schema-preview-features.test.js.map +0 -1
  527. package/dist/__tests__/sections/sections-migrate.test.d.ts +0 -2
  528. package/dist/__tests__/sections/sections-migrate.test.d.ts.map +0 -1
  529. package/dist/__tests__/sections/sections-migrate.test.js +0 -145
  530. package/dist/__tests__/sections/sections-migrate.test.js.map +0 -1
  531. package/dist/__tests__/security/access.test.d.ts +0 -2
  532. package/dist/__tests__/security/access.test.d.ts.map +0 -1
  533. package/dist/__tests__/security/access.test.js +0 -181
  534. package/dist/__tests__/security/access.test.js.map +0 -1
  535. package/dist/__tests__/security/api-key-enhanced.test.d.ts +0 -2
  536. package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +0 -1
  537. package/dist/__tests__/security/api-key-enhanced.test.js +0 -110
  538. package/dist/__tests__/security/api-key-enhanced.test.js.map +0 -1
  539. package/dist/__tests__/security/audit.test.d.ts +0 -2
  540. package/dist/__tests__/security/audit.test.d.ts.map +0 -1
  541. package/dist/__tests__/security/audit.test.js +0 -50
  542. package/dist/__tests__/security/audit.test.js.map +0 -1
  543. package/dist/__tests__/security/center.test.d.ts +0 -2
  544. package/dist/__tests__/security/center.test.d.ts.map +0 -1
  545. package/dist/__tests__/security/center.test.js +0 -226
  546. package/dist/__tests__/security/center.test.js.map +0 -1
  547. package/dist/__tests__/security/client-ip.test.d.ts +0 -2
  548. package/dist/__tests__/security/client-ip.test.d.ts.map +0 -1
  549. package/dist/__tests__/security/client-ip.test.js +0 -37
  550. package/dist/__tests__/security/client-ip.test.js.map +0 -1
  551. package/dist/__tests__/security/csrf.test.d.ts +0 -2
  552. package/dist/__tests__/security/csrf.test.d.ts.map +0 -1
  553. package/dist/__tests__/security/csrf.test.js +0 -40
  554. package/dist/__tests__/security/csrf.test.js.map +0 -1
  555. package/dist/__tests__/security/encrypted-fields.test.d.ts +0 -2
  556. package/dist/__tests__/security/encrypted-fields.test.d.ts.map +0 -1
  557. package/dist/__tests__/security/encrypted-fields.test.js +0 -60
  558. package/dist/__tests__/security/encrypted-fields.test.js.map +0 -1
  559. package/dist/__tests__/security/ip-allowlist.test.d.ts +0 -2
  560. package/dist/__tests__/security/ip-allowlist.test.d.ts.map +0 -1
  561. package/dist/__tests__/security/ip-allowlist.test.js +0 -40
  562. package/dist/__tests__/security/ip-allowlist.test.js.map +0 -1
  563. package/dist/__tests__/security/rate-limit.test.d.ts +0 -2
  564. package/dist/__tests__/security/rate-limit.test.d.ts.map +0 -1
  565. package/dist/__tests__/security/rate-limit.test.js +0 -199
  566. package/dist/__tests__/security/rate-limit.test.js.map +0 -1
  567. package/dist/__tests__/security/reauth.test.d.ts +0 -2
  568. package/dist/__tests__/security/reauth.test.d.ts.map +0 -1
  569. package/dist/__tests__/security/reauth.test.js +0 -30
  570. package/dist/__tests__/security/reauth.test.js.map +0 -1
  571. package/dist/__tests__/security/redact.test.d.ts +0 -2
  572. package/dist/__tests__/security/redact.test.d.ts.map +0 -1
  573. package/dist/__tests__/security/redact.test.js +0 -31
  574. package/dist/__tests__/security/redact.test.js.map +0 -1
  575. package/dist/__tests__/security/safe-fetch.test.d.ts +0 -2
  576. package/dist/__tests__/security/safe-fetch.test.d.ts.map +0 -1
  577. package/dist/__tests__/security/safe-fetch.test.js +0 -97
  578. package/dist/__tests__/security/safe-fetch.test.js.map +0 -1
  579. package/dist/__tests__/security/sanitize-document.test.d.ts +0 -2
  580. package/dist/__tests__/security/sanitize-document.test.d.ts.map +0 -1
  581. package/dist/__tests__/security/sanitize-document.test.js +0 -146
  582. package/dist/__tests__/security/sanitize-document.test.js.map +0 -1
  583. package/dist/__tests__/security/sanitize.test.d.ts +0 -2
  584. package/dist/__tests__/security/sanitize.test.d.ts.map +0 -1
  585. package/dist/__tests__/security/sanitize.test.js +0 -75
  586. package/dist/__tests__/security/sanitize.test.js.map +0 -1
  587. package/dist/__tests__/security/secret-storage.test.d.ts +0 -2
  588. package/dist/__tests__/security/secret-storage.test.d.ts.map +0 -1
  589. package/dist/__tests__/security/secret-storage.test.js +0 -42
  590. package/dist/__tests__/security/secret-storage.test.js.map +0 -1
  591. package/dist/__tests__/security/ssrf.test.d.ts +0 -2
  592. package/dist/__tests__/security/ssrf.test.d.ts.map +0 -1
  593. package/dist/__tests__/security/ssrf.test.js +0 -209
  594. package/dist/__tests__/security/ssrf.test.js.map +0 -1
  595. package/dist/__tests__/security/upload-magic.test.d.ts +0 -2
  596. package/dist/__tests__/security/upload-magic.test.d.ts.map +0 -1
  597. package/dist/__tests__/security/upload-magic.test.js +0 -55
  598. package/dist/__tests__/security/upload-magic.test.js.map +0 -1
  599. package/dist/__tests__/seo/ai-bots.test.d.ts +0 -2
  600. package/dist/__tests__/seo/ai-bots.test.d.ts.map +0 -1
  601. package/dist/__tests__/seo/ai-bots.test.js +0 -92
  602. package/dist/__tests__/seo/ai-bots.test.js.map +0 -1
  603. package/dist/__tests__/seo/alt-text.test.d.ts +0 -2
  604. package/dist/__tests__/seo/alt-text.test.d.ts.map +0 -1
  605. package/dist/__tests__/seo/alt-text.test.js +0 -47
  606. package/dist/__tests__/seo/alt-text.test.js.map +0 -1
  607. package/dist/__tests__/seo/analysis-markdown.test.d.ts +0 -2
  608. package/dist/__tests__/seo/analysis-markdown.test.d.ts.map +0 -1
  609. package/dist/__tests__/seo/analysis-markdown.test.js +0 -57
  610. package/dist/__tests__/seo/analysis-markdown.test.js.map +0 -1
  611. package/dist/__tests__/seo/audit-engine.test.d.ts +0 -2
  612. package/dist/__tests__/seo/audit-engine.test.d.ts.map +0 -1
  613. package/dist/__tests__/seo/audit-engine.test.js +0 -181
  614. package/dist/__tests__/seo/audit-engine.test.js.map +0 -1
  615. package/dist/__tests__/seo/audit-runner.test.d.ts +0 -2
  616. package/dist/__tests__/seo/audit-runner.test.d.ts.map +0 -1
  617. package/dist/__tests__/seo/audit-runner.test.js +0 -204
  618. package/dist/__tests__/seo/audit-runner.test.js.map +0 -1
  619. package/dist/__tests__/seo/audit-signals.test.d.ts +0 -2
  620. package/dist/__tests__/seo/audit-signals.test.d.ts.map +0 -1
  621. package/dist/__tests__/seo/audit-signals.test.js +0 -30
  622. package/dist/__tests__/seo/audit-signals.test.js.map +0 -1
  623. package/dist/__tests__/seo/config-store.test.d.ts +0 -2
  624. package/dist/__tests__/seo/config-store.test.d.ts.map +0 -1
  625. package/dist/__tests__/seo/config-store.test.js +0 -31
  626. package/dist/__tests__/seo/config-store.test.js.map +0 -1
  627. package/dist/__tests__/seo/content-markdown.test.d.ts +0 -2
  628. package/dist/__tests__/seo/content-markdown.test.d.ts.map +0 -1
  629. package/dist/__tests__/seo/content-markdown.test.js +0 -124
  630. package/dist/__tests__/seo/content-markdown.test.js.map +0 -1
  631. package/dist/__tests__/seo/effective-meta.test.d.ts +0 -2
  632. package/dist/__tests__/seo/effective-meta.test.d.ts.map +0 -1
  633. package/dist/__tests__/seo/effective-meta.test.js +0 -58
  634. package/dist/__tests__/seo/effective-meta.test.js.map +0 -1
  635. package/dist/__tests__/seo/feeds.test.d.ts +0 -2
  636. package/dist/__tests__/seo/feeds.test.d.ts.map +0 -1
  637. package/dist/__tests__/seo/feeds.test.js +0 -61
  638. package/dist/__tests__/seo/feeds.test.js.map +0 -1
  639. package/dist/__tests__/seo/fix-brief-export.test.d.ts +0 -2
  640. package/dist/__tests__/seo/fix-brief-export.test.d.ts.map +0 -1
  641. package/dist/__tests__/seo/fix-brief-export.test.js +0 -153
  642. package/dist/__tests__/seo/fix-brief-export.test.js.map +0 -1
  643. package/dist/__tests__/seo/freshness.test.d.ts +0 -2
  644. package/dist/__tests__/seo/freshness.test.d.ts.map +0 -1
  645. package/dist/__tests__/seo/freshness.test.js +0 -89
  646. package/dist/__tests__/seo/freshness.test.js.map +0 -1
  647. package/dist/__tests__/seo/index-status.test.d.ts +0 -2
  648. package/dist/__tests__/seo/index-status.test.d.ts.map +0 -1
  649. package/dist/__tests__/seo/index-status.test.js +0 -140
  650. package/dist/__tests__/seo/index-status.test.js.map +0 -1
  651. package/dist/__tests__/seo/internal-collections.test.d.ts +0 -2
  652. package/dist/__tests__/seo/internal-collections.test.d.ts.map +0 -1
  653. package/dist/__tests__/seo/internal-collections.test.js +0 -27
  654. package/dist/__tests__/seo/internal-collections.test.js.map +0 -1
  655. package/dist/__tests__/seo/issue-batch-briefs.test.d.ts +0 -2
  656. package/dist/__tests__/seo/issue-batch-briefs.test.d.ts.map +0 -1
  657. package/dist/__tests__/seo/issue-batch-briefs.test.js +0 -64
  658. package/dist/__tests__/seo/issue-batch-briefs.test.js.map +0 -1
  659. package/dist/__tests__/seo/issue-content-brief.test.d.ts +0 -2
  660. package/dist/__tests__/seo/issue-content-brief.test.d.ts.map +0 -1
  661. package/dist/__tests__/seo/issue-content-brief.test.js +0 -107
  662. package/dist/__tests__/seo/issue-content-brief.test.js.map +0 -1
  663. package/dist/__tests__/seo/issue-content-research.test.d.ts +0 -2
  664. package/dist/__tests__/seo/issue-content-research.test.d.ts.map +0 -1
  665. package/dist/__tests__/seo/issue-content-research.test.js +0 -114
  666. package/dist/__tests__/seo/issue-content-research.test.js.map +0 -1
  667. package/dist/__tests__/seo/issue-fix-ai.test.d.ts +0 -2
  668. package/dist/__tests__/seo/issue-fix-ai.test.d.ts.map +0 -1
  669. package/dist/__tests__/seo/issue-fix-ai.test.js +0 -96
  670. package/dist/__tests__/seo/issue-fix-ai.test.js.map +0 -1
  671. package/dist/__tests__/seo/issue-fix-orchestrator.test.d.ts +0 -2
  672. package/dist/__tests__/seo/issue-fix-orchestrator.test.d.ts.map +0 -1
  673. package/dist/__tests__/seo/issue-fix-orchestrator.test.js +0 -48
  674. package/dist/__tests__/seo/issue-fix-orchestrator.test.js.map +0 -1
  675. package/dist/__tests__/seo/issue-fix.test.d.ts +0 -2
  676. package/dist/__tests__/seo/issue-fix.test.d.ts.map +0 -1
  677. package/dist/__tests__/seo/issue-fix.test.js +0 -98
  678. package/dist/__tests__/seo/issue-fix.test.js.map +0 -1
  679. package/dist/__tests__/seo/llms-sanitize.test.d.ts +0 -2
  680. package/dist/__tests__/seo/llms-sanitize.test.d.ts.map +0 -1
  681. package/dist/__tests__/seo/llms-sanitize.test.js +0 -74
  682. package/dist/__tests__/seo/llms-sanitize.test.js.map +0 -1
  683. package/dist/__tests__/seo/meta-tags-alternates.test.d.ts +0 -2
  684. package/dist/__tests__/seo/meta-tags-alternates.test.d.ts.map +0 -1
  685. package/dist/__tests__/seo/meta-tags-alternates.test.js +0 -52
  686. package/dist/__tests__/seo/meta-tags-alternates.test.js.map +0 -1
  687. package/dist/__tests__/seo/migrate-meta.test.d.ts +0 -2
  688. package/dist/__tests__/seo/migrate-meta.test.d.ts.map +0 -1
  689. package/dist/__tests__/seo/migrate-meta.test.js +0 -75
  690. package/dist/__tests__/seo/migrate-meta.test.js.map +0 -1
  691. package/dist/__tests__/seo/migrate-schema.test.d.ts +0 -2
  692. package/dist/__tests__/seo/migrate-schema.test.d.ts.map +0 -1
  693. package/dist/__tests__/seo/migrate-schema.test.js +0 -97
  694. package/dist/__tests__/seo/migrate-schema.test.js.map +0 -1
  695. package/dist/__tests__/seo/page-meta.test.d.ts +0 -2
  696. package/dist/__tests__/seo/page-meta.test.d.ts.map +0 -1
  697. package/dist/__tests__/seo/page-meta.test.js +0 -452
  698. package/dist/__tests__/seo/page-meta.test.js.map +0 -1
  699. package/dist/__tests__/seo/resolve-path.test.d.ts +0 -2
  700. package/dist/__tests__/seo/resolve-path.test.d.ts.map +0 -1
  701. package/dist/__tests__/seo/resolve-path.test.js +0 -46
  702. package/dist/__tests__/seo/resolve-path.test.js.map +0 -1
  703. package/dist/__tests__/seo/robots.test.d.ts +0 -2
  704. package/dist/__tests__/seo/robots.test.d.ts.map +0 -1
  705. package/dist/__tests__/seo/robots.test.js +0 -72
  706. package/dist/__tests__/seo/robots.test.js.map +0 -1
  707. package/dist/__tests__/seo/schema-sync.test.d.ts +0 -2
  708. package/dist/__tests__/seo/schema-sync.test.d.ts.map +0 -1
  709. package/dist/__tests__/seo/schema-sync.test.js +0 -59
  710. package/dist/__tests__/seo/schema-sync.test.js.map +0 -1
  711. package/dist/__tests__/seo/score.test.d.ts +0 -2
  712. package/dist/__tests__/seo/score.test.d.ts.map +0 -1
  713. package/dist/__tests__/seo/score.test.js +0 -152
  714. package/dist/__tests__/seo/score.test.js.map +0 -1
  715. package/dist/__tests__/seo/settings-defaults.test.d.ts +0 -2
  716. package/dist/__tests__/seo/settings-defaults.test.d.ts.map +0 -1
  717. package/dist/__tests__/seo/settings-defaults.test.js +0 -189
  718. package/dist/__tests__/seo/settings-defaults.test.js.map +0 -1
  719. package/dist/__tests__/seo/sitemap-notify.test.d.ts +0 -2
  720. package/dist/__tests__/seo/sitemap-notify.test.d.ts.map +0 -1
  721. package/dist/__tests__/seo/sitemap-notify.test.js +0 -267
  722. package/dist/__tests__/seo/sitemap-notify.test.js.map +0 -1
  723. package/dist/__tests__/seo/sitemap-public.test.d.ts +0 -2
  724. package/dist/__tests__/seo/sitemap-public.test.d.ts.map +0 -1
  725. package/dist/__tests__/seo/sitemap-public.test.js +0 -52
  726. package/dist/__tests__/seo/sitemap-public.test.js.map +0 -1
  727. package/dist/__tests__/server-site.test.d.ts +0 -2
  728. package/dist/__tests__/server-site.test.d.ts.map +0 -1
  729. package/dist/__tests__/server-site.test.js +0 -173
  730. package/dist/__tests__/server-site.test.js.map +0 -1
  731. package/dist/__tests__/setup/index.test.d.ts +0 -2
  732. package/dist/__tests__/setup/index.test.d.ts.map +0 -1
  733. package/dist/__tests__/setup/index.test.js +0 -128
  734. package/dist/__tests__/setup/index.test.js.map +0 -1
  735. package/dist/__tests__/site.test.d.ts +0 -2
  736. package/dist/__tests__/site.test.d.ts.map +0 -1
  737. package/dist/__tests__/site.test.js +0 -81
  738. package/dist/__tests__/site.test.js.map +0 -1
  739. package/dist/__tests__/storage/auto-wire.test.d.ts +0 -2
  740. package/dist/__tests__/storage/auto-wire.test.d.ts.map +0 -1
  741. package/dist/__tests__/storage/auto-wire.test.js +0 -73
  742. package/dist/__tests__/storage/auto-wire.test.js.map +0 -1
  743. package/dist/__tests__/upgrade/version-check.test.d.ts +0 -2
  744. package/dist/__tests__/upgrade/version-check.test.d.ts.map +0 -1
  745. package/dist/__tests__/upgrade/version-check.test.js +0 -98
  746. package/dist/__tests__/upgrade/version-check.test.js.map +0 -1
  747. package/dist/__tests__/validation/publish.test.d.ts +0 -2
  748. package/dist/__tests__/validation/publish.test.d.ts.map +0 -1
  749. package/dist/__tests__/validation/publish.test.js +0 -164
  750. package/dist/__tests__/validation/publish.test.js.map +0 -1
  751. package/dist/__tests__/webhooks/webhooks.test.d.ts +0 -2
  752. package/dist/__tests__/webhooks/webhooks.test.d.ts.map +0 -1
  753. package/dist/__tests__/webhooks/webhooks.test.js +0 -96
  754. package/dist/__tests__/webhooks/webhooks.test.js.map +0 -1
  755. package/dist/cache/__tests__/http.test.d.ts +0 -2
  756. package/dist/cache/__tests__/http.test.d.ts.map +0 -1
  757. package/dist/cache/__tests__/http.test.js +0 -285
  758. package/dist/cache/__tests__/http.test.js.map +0 -1
  759. package/dist/db/__tests__/find-in-batches.test.d.ts +0 -2
  760. package/dist/db/__tests__/find-in-batches.test.d.ts.map +0 -1
  761. package/dist/db/__tests__/find-in-batches.test.js +0 -26
  762. package/dist/db/__tests__/find-in-batches.test.js.map +0 -1
  763. package/dist/fields/__tests__/presets.test.d.ts +0 -2
  764. package/dist/fields/__tests__/presets.test.d.ts.map +0 -1
  765. package/dist/fields/__tests__/presets.test.js +0 -29
  766. package/dist/fields/__tests__/presets.test.js.map +0 -1
  767. package/dist/page-builder/__tests__/a11y-fix.test.d.ts +0 -2
  768. package/dist/page-builder/__tests__/a11y-fix.test.d.ts.map +0 -1
  769. package/dist/page-builder/__tests__/a11y-fix.test.js +0 -242
  770. package/dist/page-builder/__tests__/a11y-fix.test.js.map +0 -1
  771. package/dist/page-builder/__tests__/blocks.test.d.ts +0 -2
  772. package/dist/page-builder/__tests__/blocks.test.d.ts.map +0 -1
  773. package/dist/page-builder/__tests__/blocks.test.js +0 -194
  774. package/dist/page-builder/__tests__/blocks.test.js.map +0 -1
  775. package/dist/page-builder/__tests__/design-scorer.test.d.ts +0 -2
  776. package/dist/page-builder/__tests__/design-scorer.test.d.ts.map +0 -1
  777. package/dist/page-builder/__tests__/design-scorer.test.js +0 -301
  778. package/dist/page-builder/__tests__/design-scorer.test.js.map +0 -1
  779. package/dist/page-builder/__tests__/schema.test.d.ts +0 -2
  780. package/dist/page-builder/__tests__/schema.test.d.ts.map +0 -1
  781. package/dist/page-builder/__tests__/schema.test.js +0 -191
  782. package/dist/page-builder/__tests__/schema.test.js.map +0 -1
  783. package/dist/page-builder/__tests__/seo-analyzer.test.d.ts +0 -2
  784. package/dist/page-builder/__tests__/seo-analyzer.test.d.ts.map +0 -1
  785. package/dist/page-builder/__tests__/seo-analyzer.test.js +0 -346
  786. package/dist/page-builder/__tests__/seo-analyzer.test.js.map +0 -1
  787. package/dist/page-builder/__tests__/tree.test.d.ts +0 -2
  788. package/dist/page-builder/__tests__/tree.test.d.ts.map +0 -1
  789. package/dist/page-builder/__tests__/tree.test.js +0 -257
  790. package/dist/page-builder/__tests__/tree.test.js.map +0 -1
  791. package/dist/posts/__tests__/query.test.d.ts +0 -2
  792. package/dist/posts/__tests__/query.test.d.ts.map +0 -1
  793. package/dist/posts/__tests__/query.test.js +0 -70
  794. package/dist/posts/__tests__/query.test.js.map +0 -1
  795. package/dist/sections/__tests__/bridge.test.d.ts +0 -2
  796. package/dist/sections/__tests__/bridge.test.d.ts.map +0 -1
  797. package/dist/sections/__tests__/bridge.test.js +0 -171
  798. package/dist/sections/__tests__/bridge.test.js.map +0 -1
  799. package/dist/sections/__tests__/define.test.d.ts +0 -2
  800. package/dist/sections/__tests__/define.test.d.ts.map +0 -1
  801. package/dist/sections/__tests__/define.test.js +0 -132
  802. package/dist/sections/__tests__/define.test.js.map +0 -1
  803. package/dist/sections/__tests__/embed.test.d.ts +0 -2
  804. package/dist/sections/__tests__/embed.test.d.ts.map +0 -1
  805. package/dist/sections/__tests__/embed.test.js +0 -54
  806. package/dist/sections/__tests__/embed.test.js.map +0 -1
  807. package/dist/sections/__tests__/media-enrich.test.d.ts +0 -2
  808. package/dist/sections/__tests__/media-enrich.test.d.ts.map +0 -1
  809. package/dist/sections/__tests__/media-enrich.test.js +0 -97
  810. package/dist/sections/__tests__/media-enrich.test.js.map +0 -1
  811. package/dist/sections/__tests__/sections.test.d.ts +0 -2
  812. package/dist/sections/__tests__/sections.test.d.ts.map +0 -1
  813. package/dist/sections/__tests__/sections.test.js +0 -453
  814. package/dist/sections/__tests__/sections.test.js.map +0 -1
@@ -1,834 +0,0 @@
1
- import { beforeEach, describe, expect, it } from 'vitest';
2
- import { handleActuateAPI } from '../../api/index.js';
3
- import { initDB } from '../../db.js';
4
- function createMockDB(docs) {
5
- const findFirst = async (args) => {
6
- const where = args?.where ?? {};
7
- const matches = docs.filter((d) => {
8
- if (where.collection && d.collection !== where.collection)
9
- return false;
10
- if (where.status && d.status !== where.status)
11
- return false;
12
- if (where.deletedAt === null) {
13
- // mock docs never carry deletedAt
14
- }
15
- if (where.OR && Array.isArray(where.OR)) {
16
- return where.OR.some((clause) => {
17
- if (clause.slug !== undefined)
18
- return d.slug === clause.slug;
19
- if (clause.data?.path && clause.data?.equals) {
20
- const path = clause.data.path[0];
21
- return d.data?.[path] === clause.data.equals;
22
- }
23
- return false;
24
- });
25
- }
26
- return true;
27
- });
28
- const doc = matches[0];
29
- if (!doc)
30
- return null;
31
- return {
32
- ...doc,
33
- publishedAt: doc.publishedAt ?? null,
34
- updatedAt: doc.updatedAt ?? new Date('2026-03-15T12:00:00Z'),
35
- createdAt: doc.createdAt ?? new Date('2026-01-01T00:00:00Z'),
36
- structuredData: doc.structuredData ?? null,
37
- };
38
- };
39
- const findMany = async (args) => {
40
- const where = args?.where ?? {};
41
- return docs.filter((d) => {
42
- if (where.collection && d.collection !== where.collection)
43
- return false;
44
- if (where.status && d.status !== where.status)
45
- return false;
46
- return true;
47
- });
48
- };
49
- return {
50
- document: { findFirst, findMany },
51
- user: {},
52
- session: {},
53
- media: {},
54
- };
55
- }
56
- describe('public SEO routes', () => {
57
- beforeEach(() => {
58
- delete globalThis.__actuateConfig;
59
- // Reset the global guarded DB to a clean, indexable state so SEO module
60
- // settings (read via getSeoOverrides(db())) don't leak between tests.
61
- // Tests that need specific overrides call initDB() with their own docs.
62
- initDB(createMockDB([]));
63
- });
64
- it('exposes /sitemap.xml as a sitemap index over configured collections', async () => {
65
- const handler = handleActuateAPI({
66
- prismaClient: createMockDB([]),
67
- config: {
68
- seo: { siteUrl: 'https://example.com', siteName: 'Example' },
69
- collections: {
70
- pages: {
71
- slug: 'pages',
72
- labels: { singular: 'Page', plural: 'Pages' },
73
- urlPrefix: '',
74
- type: 'page',
75
- fields: {},
76
- },
77
- posts: {
78
- slug: 'posts',
79
- labels: { singular: 'Post', plural: 'Posts' },
80
- urlPrefix: 'blog',
81
- type: 'post',
82
- fields: {},
83
- },
84
- },
85
- },
86
- });
87
- const response = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
88
- expect(response.status).toBe(200);
89
- expect(response.headers.get('Content-Type')).toContain('application/xml');
90
- const text = await response.text();
91
- expect(text).toContain('<sitemapindex');
92
- expect(text).toContain('https://example.com/page-sitemap.xml');
93
- expect(text).toContain('https://example.com/post-sitemap.xml');
94
- expect(text).toContain('xml-stylesheet');
95
- });
96
- it('serves an RSS feed of newest posts and excludes noindex docs', async () => {
97
- const docs = [
98
- {
99
- id: 'p1',
100
- slug: 'hello',
101
- collection: 'posts',
102
- status: 'PUBLISHED',
103
- data: { title: 'Hello', keyTakeaway: 'A short summary.' },
104
- publishedAt: new Date('2026-03-01T00:00:00Z'),
105
- },
106
- {
107
- id: 'p2',
108
- slug: 'secret',
109
- collection: 'posts',
110
- status: 'PUBLISHED',
111
- data: { title: 'Secret', noindex: true },
112
- publishedAt: new Date('2026-02-01T00:00:00Z'),
113
- },
114
- ];
115
- const config = {
116
- seo: { siteUrl: 'https://example.com', siteName: 'Acme' },
117
- collections: {
118
- posts: {
119
- slug: 'posts',
120
- labels: { singular: 'Post', plural: 'Posts' },
121
- urlPrefix: 'blog',
122
- type: 'post',
123
- fields: {},
124
- },
125
- },
126
- };
127
- initDB(createMockDB(docs));
128
- const handler = handleActuateAPI({ prismaClient: createMockDB(docs), config: config });
129
- const res = await handler(new Request('https://example.com/api/cms/feed.xml'));
130
- expect(res.status).toBe(200);
131
- expect(res.headers.get('Content-Type')).toContain('application/rss+xml');
132
- const text = await res.text();
133
- expect(text).toContain('<title>Acme</title>');
134
- expect(text).toContain('https://example.com/blog/hello');
135
- expect(text).toContain('A short summary.');
136
- // noindex post must be excluded from the feed.
137
- expect(text).not.toContain('https://example.com/blog/secret');
138
- });
139
- it('serves a JSON Feed 1.1 document', async () => {
140
- const docs = [
141
- {
142
- id: 'p1',
143
- slug: 'hello',
144
- collection: 'posts',
145
- status: 'PUBLISHED',
146
- data: { title: 'Hello' },
147
- publishedAt: new Date('2026-03-01T00:00:00Z'),
148
- },
149
- ];
150
- const config = {
151
- seo: { siteUrl: 'https://example.com', siteName: 'Acme' },
152
- collections: {
153
- posts: {
154
- slug: 'posts',
155
- labels: { singular: 'Post', plural: 'Posts' },
156
- urlPrefix: 'blog',
157
- type: 'post',
158
- fields: {},
159
- },
160
- },
161
- };
162
- initDB(createMockDB(docs));
163
- const handler = handleActuateAPI({ prismaClient: createMockDB(docs), config: config });
164
- const res = await handler(new Request('https://example.com/api/cms/feed.json'));
165
- expect(res.status).toBe(200);
166
- expect(res.headers.get('Content-Type')).toContain('application/feed+json');
167
- const parsed = JSON.parse(await res.text());
168
- expect(parsed.version).toBe('https://jsonfeed.org/version/1.1');
169
- expect(parsed.feed_url).toBe('https://example.com/feed.json');
170
- expect(parsed.items[0].url).toBe('https://example.com/blog/hello');
171
- });
172
- it('respects seo.sitemap.excludeCollections', async () => {
173
- const handler = handleActuateAPI({
174
- prismaClient: createMockDB([]),
175
- config: {
176
- seo: {
177
- siteUrl: 'https://example.com',
178
- sitemap: { excludeCollections: ['drafts'] },
179
- },
180
- collections: {
181
- pages: {
182
- slug: 'pages',
183
- type: 'page',
184
- labels: { singular: 'P', plural: 'Pp' },
185
- urlPrefix: '',
186
- fields: {},
187
- },
188
- drafts: {
189
- slug: 'drafts',
190
- type: 'page',
191
- labels: { singular: 'D', plural: 'Dd' },
192
- urlPrefix: 'd',
193
- fields: {},
194
- },
195
- },
196
- },
197
- });
198
- const response = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
199
- const text = await response.text();
200
- expect(text).toContain('https://example.com/page-sitemap.xml');
201
- expect(text).not.toContain('drafts-sitemap');
202
- });
203
- it('returns 404 when seo.sitemap.disabled is true', async () => {
204
- const handler = handleActuateAPI({
205
- prismaClient: createMockDB([]),
206
- config: {
207
- seo: { siteUrl: 'https://example.com', sitemap: { disabled: true } },
208
- collections: {
209
- pages: { slug: 'pages', labels: { singular: 'P', plural: 'P' }, fields: {} },
210
- },
211
- },
212
- });
213
- const response = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
214
- expect(response.status).toBe(404);
215
- });
216
- it('renders per-collection sitemap with absolute URLs and lastmod', async () => {
217
- const docs = [
218
- {
219
- id: '1',
220
- slug: 'about',
221
- collection: 'pages',
222
- status: 'PUBLISHED',
223
- data: { title: 'About', slug: 'about' },
224
- updatedAt: new Date('2026-03-10T09:00:00Z'),
225
- },
226
- {
227
- id: '2',
228
- slug: 'contact',
229
- collection: 'pages',
230
- status: 'PUBLISHED',
231
- data: { title: 'Contact', slug: 'contact' },
232
- updatedAt: new Date('2026-03-11T09:00:00Z'),
233
- },
234
- ];
235
- initDB(createMockDB(docs));
236
- const handler = handleActuateAPI({
237
- prismaClient: createMockDB(docs),
238
- config: {
239
- seo: { siteUrl: 'https://example.com' },
240
- collections: {
241
- pages: {
242
- slug: 'pages',
243
- labels: { singular: 'P', plural: 'Pp' },
244
- urlPrefix: '',
245
- type: 'page',
246
- fields: {},
247
- },
248
- },
249
- },
250
- });
251
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
252
- expect(response.status).toBe(200);
253
- const text = await response.text();
254
- expect(text).toContain('<urlset');
255
- expect(text).toContain('<loc>https://example.com/about</loc>');
256
- expect(text).toContain('<loc>https://example.com/contact</loc>');
257
- expect(text).toContain('<priority>0.8</priority>');
258
- expect(text).toContain('2026-03-10T09:00:00.000Z');
259
- });
260
- it('uses data.path for the sitemap loc so the homepage is "/" not "/home"', async () => {
261
- const docs = [
262
- {
263
- id: '1',
264
- slug: 'home',
265
- collection: 'pages',
266
- status: 'PUBLISHED',
267
- // Editor set an explicit canonical path for the homepage.
268
- data: { title: 'Home', slug: 'home', path: '/' },
269
- updatedAt: new Date('2026-03-10T09:00:00Z'),
270
- },
271
- {
272
- id: '2',
273
- slug: 'about',
274
- collection: 'pages',
275
- status: 'PUBLISHED',
276
- // Explicit path that differs from the bare slug.
277
- data: { title: 'About', slug: 'about', path: '/about-us' },
278
- updatedAt: new Date('2026-03-11T09:00:00Z'),
279
- },
280
- ];
281
- initDB(createMockDB(docs));
282
- const handler = handleActuateAPI({
283
- prismaClient: createMockDB(docs),
284
- config: {
285
- seo: { siteUrl: 'https://example.com' },
286
- collections: {
287
- pages: {
288
- slug: 'pages',
289
- labels: { singular: 'P', plural: 'Pp' },
290
- urlPrefix: '',
291
- type: 'page',
292
- fields: {},
293
- },
294
- },
295
- },
296
- });
297
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
298
- const text = await response.text();
299
- // Homepage matches the canonical exactly (no trailing slash), as produced
300
- // by composePageMeta — sitemap and canonical must never disagree.
301
- expect(text).toContain('<loc>https://example.com</loc>');
302
- expect(text).toContain('<loc>https://example.com/about-us</loc>');
303
- // The non-canonical slug-derived URLs must not appear.
304
- expect(text).not.toContain('<loc>https://example.com/home</loc>');
305
- expect(text).not.toContain('<loc>https://example.com/about</loc>');
306
- });
307
- it('emits <image:image> entries when "Include images in sitemap" is on (default)', async () => {
308
- const docs = [
309
- {
310
- id: '1',
311
- slug: 'home',
312
- collection: 'pages',
313
- status: 'PUBLISHED',
314
- data: {
315
- title: 'Home',
316
- slug: 'home',
317
- path: '/',
318
- featuredImage: { url: 'https://cdn.example.com/hero.jpg' },
319
- sections: [
320
- {
321
- sectionType: 'hero',
322
- content: { imageUrl: '/uploads/banner.png', imageAlt: 'Banner' },
323
- },
324
- ],
325
- },
326
- updatedAt: new Date('2026-03-10T09:00:00Z'),
327
- },
328
- ];
329
- initDB(createMockDB(docs));
330
- const handler = handleActuateAPI({
331
- prismaClient: createMockDB(docs),
332
- config: {
333
- seo: { siteUrl: 'https://example.com' },
334
- collections: {
335
- pages: {
336
- slug: 'pages',
337
- labels: { singular: 'P', plural: 'Pp' },
338
- urlPrefix: '',
339
- type: 'page',
340
- fields: {},
341
- },
342
- },
343
- },
344
- });
345
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
346
- const text = await response.text();
347
- // The image namespace is declared only when at least one image is emitted.
348
- expect(text).toContain('xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"');
349
- // Absolute featured-image URL is passed through untouched.
350
- expect(text).toContain('<image:image><image:loc>https://cdn.example.com/hero.jpg</image:loc></image:image>');
351
- // Relative section image URLs are absolutized against the site origin.
352
- expect(text).toContain('<image:loc>https://example.com/uploads/banner.png</image:loc>');
353
- });
354
- it('omits image entries when "Include images in sitemap" is turned off', async () => {
355
- const docs = [
356
- {
357
- id: 'cfg',
358
- slug: null,
359
- collection: '__seo_config__',
360
- status: 'PUBLISHED',
361
- data: { module: { includeImagesInSitemap: false } },
362
- },
363
- {
364
- id: '1',
365
- slug: 'home',
366
- collection: 'pages',
367
- status: 'PUBLISHED',
368
- data: {
369
- title: 'Home',
370
- slug: 'home',
371
- path: '/',
372
- featuredImage: { url: 'https://cdn.example.com/hero.jpg' },
373
- },
374
- updatedAt: new Date('2026-03-10T09:00:00Z'),
375
- },
376
- ];
377
- initDB(createMockDB(docs));
378
- const handler = handleActuateAPI({
379
- prismaClient: createMockDB(docs),
380
- config: {
381
- seo: { siteUrl: 'https://example.com' },
382
- collections: {
383
- pages: {
384
- slug: 'pages',
385
- labels: { singular: 'P', plural: 'Pp' },
386
- urlPrefix: '',
387
- type: 'page',
388
- fields: {},
389
- },
390
- },
391
- },
392
- });
393
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
394
- const text = await response.text();
395
- expect(text).toContain('<loc>https://example.com</loc>');
396
- expect(text).not.toContain('<image:image');
397
- expect(text).not.toContain('xmlns:image');
398
- });
399
- it('falls back to the site root for a home/index slug without an explicit path', async () => {
400
- const docs = [
401
- {
402
- id: '1',
403
- slug: 'home',
404
- collection: 'pages',
405
- status: 'PUBLISHED',
406
- data: { title: 'Home', slug: 'home' },
407
- updatedAt: new Date('2026-03-10T09:00:00Z'),
408
- },
409
- ];
410
- initDB(createMockDB(docs));
411
- const handler = handleActuateAPI({
412
- prismaClient: createMockDB(docs),
413
- config: {
414
- seo: { siteUrl: 'https://example.com' },
415
- collections: {
416
- pages: {
417
- slug: 'pages',
418
- labels: { singular: 'P', plural: 'Pp' },
419
- urlPrefix: '',
420
- type: 'page',
421
- fields: {},
422
- },
423
- },
424
- },
425
- });
426
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
427
- const text = await response.text();
428
- expect(text).toContain('<loc>https://example.com</loc>');
429
- expect(text).not.toContain('<loc>https://example.com/home</loc>');
430
- });
431
- it('excludes noindexed documents from the sitemap', async () => {
432
- const docs = [
433
- {
434
- id: '1',
435
- slug: 'visible',
436
- collection: 'pages',
437
- status: 'PUBLISHED',
438
- data: { title: 'Visible', slug: 'visible' },
439
- },
440
- {
441
- id: '2',
442
- slug: 'hidden-bool',
443
- collection: 'pages',
444
- status: 'PUBLISHED',
445
- data: { title: 'Hidden', slug: 'hidden-bool', noIndex: true },
446
- },
447
- {
448
- id: '3',
449
- slug: 'hidden-policy',
450
- collection: 'pages',
451
- status: 'PUBLISHED',
452
- data: { title: 'Hidden', slug: 'hidden-policy', robotsPolicy: 'noindex-nofollow' },
453
- },
454
- {
455
- id: '4',
456
- slug: 'hidden-legacy',
457
- collection: 'pages',
458
- status: 'PUBLISHED',
459
- data: { title: 'Hidden', slug: 'hidden-legacy', noindex: true },
460
- },
461
- ];
462
- initDB(createMockDB(docs));
463
- const handler = handleActuateAPI({
464
- prismaClient: createMockDB(docs),
465
- config: {
466
- seo: { siteUrl: 'https://example.com' },
467
- collections: {
468
- pages: {
469
- slug: 'pages',
470
- labels: { singular: 'P', plural: 'Pp' },
471
- urlPrefix: '',
472
- type: 'page',
473
- fields: {},
474
- },
475
- },
476
- },
477
- });
478
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
479
- const text = await response.text();
480
- expect(text).toContain('<loc>https://example.com/visible</loc>');
481
- expect(text).not.toContain('hidden-bool');
482
- expect(text).not.toContain('hidden-policy');
483
- expect(text).not.toContain('hidden-legacy');
484
- });
485
- it('drops post-type collections when includePostsInSitemap is off', async () => {
486
- // The crawl toggle lives in the SEO overrides document (module settings).
487
- const overridesDoc = {
488
- id: 'seo-cfg',
489
- slug: 'seo-config',
490
- collection: '__seo_config__',
491
- data: { module: { includePostsInSitemap: false } },
492
- };
493
- initDB(createMockDB([overridesDoc]));
494
- const handler = handleActuateAPI({
495
- prismaClient: createMockDB([overridesDoc]),
496
- config: {
497
- seo: { siteUrl: 'https://example.com' },
498
- collections: {
499
- pages: {
500
- slug: 'pages',
501
- labels: { singular: 'P', plural: 'Pp' },
502
- urlPrefix: '',
503
- type: 'page',
504
- fields: {},
505
- },
506
- posts: {
507
- slug: 'posts',
508
- labels: { singular: 'Post', plural: 'Posts' },
509
- urlPrefix: 'blog',
510
- type: 'post',
511
- fields: {},
512
- },
513
- },
514
- },
515
- });
516
- const index = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
517
- const indexText = await index.text();
518
- expect(indexText).toContain('https://example.com/page-sitemap.xml');
519
- expect(indexText).not.toContain('post-sitemap.xml');
520
- // The post sitemap itself must also 404 so it can't be reached directly.
521
- const direct = await handler(new Request('https://example.com/api/cms/sitemaps/post-sitemap.xml'));
522
- expect(direct.status).toBe(404);
523
- });
524
- it('emits hreflang alternates for translated documents when i18n is configured', async () => {
525
- const docs = [
526
- {
527
- id: 'en',
528
- slug: 'about',
529
- collection: 'pages',
530
- status: 'PUBLISHED',
531
- locale: 'en',
532
- localeGroupId: 'grp-1',
533
- data: { title: 'About', slug: 'about', path: '/about' },
534
- },
535
- {
536
- id: 'es',
537
- slug: 'sobre-nosotros',
538
- collection: 'pages',
539
- status: 'PUBLISHED',
540
- locale: 'es',
541
- localeGroupId: 'grp-1',
542
- data: { title: 'Sobre', slug: 'sobre-nosotros', path: '/es/sobre-nosotros' },
543
- },
544
- ];
545
- initDB(createMockDB(docs));
546
- const handler = handleActuateAPI({
547
- prismaClient: createMockDB(docs),
548
- config: {
549
- seo: { siteUrl: 'https://example.com' },
550
- i18n: {
551
- defaultLocale: 'en',
552
- locales: [
553
- { code: 'en', label: 'English' },
554
- { code: 'es', label: 'Español' },
555
- ],
556
- },
557
- collections: {
558
- pages: {
559
- slug: 'pages',
560
- labels: { singular: 'P', plural: 'Pp' },
561
- urlPrefix: '',
562
- type: 'page',
563
- fields: {},
564
- },
565
- },
566
- },
567
- });
568
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
569
- const text = await response.text();
570
- expect(text).toContain('xmlns:xhtml="http://www.w3.org/1999/xhtml"');
571
- expect(text).toContain('hreflang="en"');
572
- expect(text).toContain('hreflang="es"');
573
- expect(text).toContain('hreflang="x-default"');
574
- expect(text).toContain('href="https://example.com/about"');
575
- expect(text).toContain('href="https://example.com/es/sobre-nosotros"');
576
- });
577
- it('returns 404 for sitemap of an unknown collection', async () => {
578
- const handler = handleActuateAPI({
579
- prismaClient: createMockDB([]),
580
- config: {
581
- seo: { siteUrl: 'https://example.com' },
582
- collections: {
583
- pages: { slug: 'pages', labels: { singular: 'P', plural: 'P' }, fields: {} },
584
- },
585
- },
586
- });
587
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/unknown.xml'));
588
- expect(response.status).toBe(404);
589
- });
590
- it('includes archivePath in a post-type sitemap', async () => {
591
- const docs = [
592
- {
593
- id: '1',
594
- slug: 'first',
595
- collection: 'posts',
596
- status: 'PUBLISHED',
597
- data: { title: 'First', slug: 'first' },
598
- },
599
- ];
600
- initDB(createMockDB(docs));
601
- const handler = handleActuateAPI({
602
- prismaClient: createMockDB(docs),
603
- config: {
604
- seo: { siteUrl: 'https://example.com' },
605
- collections: {
606
- posts: {
607
- slug: 'posts',
608
- labels: { singular: 'Post', plural: 'Posts' },
609
- urlPrefix: 'blog',
610
- type: 'post',
611
- seo: { archivePath: '/blog' },
612
- fields: {},
613
- },
614
- },
615
- },
616
- });
617
- const response = await handler(new Request('https://example.com/api/cms/sitemaps/posts.xml'));
618
- const text = await response.text();
619
- expect(text).toContain('<loc>https://example.com/blog</loc>');
620
- expect(text).toContain('<loc>https://example.com/blog/first</loc>');
621
- });
622
- it('serves /robots.txt with a Sitemap reference', async () => {
623
- const handler = handleActuateAPI({
624
- prismaClient: createMockDB([]),
625
- config: {
626
- seo: { siteUrl: 'https://example.com' },
627
- collections: {},
628
- },
629
- });
630
- const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
631
- expect(response.status).toBe(200);
632
- expect(response.headers.get('Content-Type')).toContain('text/plain');
633
- const text = await response.text();
634
- expect(text).toMatch(/^User-agent: \*/m);
635
- expect(text).toContain('Disallow: /admin');
636
- // robots advertises the canonical public sitemap URL, not the internal mount.
637
- expect(text).toContain('Sitemap: https://example.com/sitemap.xml');
638
- expect(text).not.toContain('/api/cms/sitemap.xml');
639
- });
640
- it('blocks the whole public site in robots.txt when indexEntireSite is off', async () => {
641
- const overridesDoc = {
642
- id: 'seo-cfg',
643
- slug: 'seo-config',
644
- collection: '__seo_config__',
645
- data: { module: { indexEntireSite: false } },
646
- };
647
- initDB(createMockDB([overridesDoc]));
648
- const handler = handleActuateAPI({
649
- prismaClient: createMockDB([overridesDoc]),
650
- config: { seo: { siteUrl: 'https://example.com' }, collections: {} },
651
- });
652
- const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
653
- const text = await response.text();
654
- expect(text).toMatch(/^User-agent: \*/m);
655
- // Blanket block (which already covers /admin + /api); no per-path Allow.
656
- expect(text).toMatch(/^Disallow: \/$/m);
657
- expect(text).not.toMatch(/^Allow: \/$/m);
658
- // A deindexed site must not advertise a sitemap.
659
- expect(text).not.toContain('Sitemap:');
660
- });
661
- it('serves empty sitemaps when indexEntireSite is off', async () => {
662
- const overridesDoc = {
663
- id: 'seo-cfg',
664
- slug: 'seo-config',
665
- collection: '__seo_config__',
666
- data: { module: { indexEntireSite: false } },
667
- };
668
- const pageDoc = {
669
- id: 'p1',
670
- slug: 'about',
671
- collection: 'pages',
672
- status: 'PUBLISHED',
673
- data: { title: 'About', slug: 'about' },
674
- };
675
- initDB(createMockDB([overridesDoc, pageDoc]));
676
- const handler = handleActuateAPI({
677
- prismaClient: createMockDB([overridesDoc, pageDoc]),
678
- config: {
679
- seo: { siteUrl: 'https://example.com' },
680
- collections: {
681
- pages: {
682
- slug: 'pages',
683
- labels: { singular: 'P', plural: 'Pp' },
684
- urlPrefix: '',
685
- type: 'page',
686
- fields: {},
687
- },
688
- },
689
- },
690
- });
691
- const index = await handler(new Request('https://example.com/api/cms/sitemap.xml'));
692
- expect(index.status).toBe(200);
693
- const indexText = await index.text();
694
- expect(indexText).toContain('<sitemapindex');
695
- expect(indexText).not.toContain('<sitemap>');
696
- const col = await handler(new Request('https://example.com/api/cms/sitemaps/pages.xml'));
697
- expect(col.status).toBe(200);
698
- const colText = await col.text();
699
- expect(colText).toContain('<urlset');
700
- expect(colText).not.toContain('<url>');
701
- });
702
- it('appends AI bot blocks when seo.robots.blockAIBots is true', async () => {
703
- const handler = handleActuateAPI({
704
- prismaClient: createMockDB([]),
705
- config: {
706
- seo: { siteUrl: 'https://example.com', robots: { blockAIBots: true } },
707
- collections: {},
708
- },
709
- });
710
- const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
711
- const text = await response.text();
712
- expect(text).toContain('User-agent: GPTBot');
713
- expect(text).toContain('User-agent: ClaudeBot');
714
- expect(text).toContain('Disallow: /');
715
- });
716
- it('honors a nuanced aiPolicy (block training, allow retrieval)', async () => {
717
- const handler = handleActuateAPI({
718
- prismaClient: createMockDB([]),
719
- config: {
720
- seo: {
721
- siteUrl: 'https://example.com',
722
- robots: { aiPolicy: { training: 'block', retrieval: 'allow' } },
723
- },
724
- collections: {},
725
- },
726
- });
727
- const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
728
- const text = await response.text();
729
- // Training crawler blocked…
730
- expect(text).toContain('User-agent: GPTBot');
731
- // …retrieval/answer-engine crawler left allowed (not in the file).
732
- expect(text).not.toContain('User-agent: PerplexityBot');
733
- });
734
- it('returns 404 for /robots.txt when seo.robots.disabled is true', async () => {
735
- const handler = handleActuateAPI({
736
- prismaClient: createMockDB([]),
737
- config: {
738
- seo: { siteUrl: 'https://example.com', robots: { disabled: true } },
739
- collections: {},
740
- },
741
- });
742
- const response = await handler(new Request('https://example.com/api/cms/robots.txt'));
743
- expect(response.status).toBe(404);
744
- });
745
- it('renders /og.png as an SVG OG card', async () => {
746
- const handler = handleActuateAPI({
747
- prismaClient: createMockDB([]),
748
- config: {
749
- seo: { siteUrl: 'https://example.com', siteName: 'Example' },
750
- collections: {},
751
- },
752
- });
753
- const response = await handler(new Request('https://example.com/api/cms/og.png?title=Hello%20World&description=Welcome'));
754
- expect(response.status).toBe(200);
755
- expect(response.headers.get('Content-Type')).toContain('image/svg+xml');
756
- const text = await response.text();
757
- expect(text).toContain('<svg');
758
- expect(text).toContain('Hello');
759
- expect(text).toContain('Example');
760
- });
761
- it('returns 404 for /og.png when seo.ogImage.disabled is true', async () => {
762
- const handler = handleActuateAPI({
763
- prismaClient: createMockDB([]),
764
- config: {
765
- seo: { siteUrl: 'https://example.com', ogImage: { disabled: true } },
766
- collections: {},
767
- },
768
- });
769
- const response = await handler(new Request('https://example.com/api/cms/og.png?title=X'));
770
- expect(response.status).toBe(404);
771
- });
772
- it('enriches /resolve with composed jsonLd and meta', async () => {
773
- const docs = [
774
- {
775
- id: 'post-1',
776
- slug: 'hello',
777
- collection: 'posts',
778
- status: 'PUBLISHED',
779
- data: {
780
- title: 'Hello World',
781
- slug: 'hello',
782
- metaDescription: 'A first post',
783
- authorName: 'Jane',
784
- },
785
- publishedAt: new Date('2026-02-01T00:00:00Z'),
786
- updatedAt: new Date('2026-02-10T00:00:00Z'),
787
- },
788
- ];
789
- initDB(createMockDB(docs));
790
- const handler = handleActuateAPI({
791
- prismaClient: createMockDB(docs),
792
- config: {
793
- seo: {
794
- siteUrl: 'https://example.com',
795
- siteName: 'Example',
796
- organization: { name: 'Example Inc' },
797
- },
798
- collections: {
799
- posts: {
800
- slug: 'posts',
801
- labels: { singular: 'Post', plural: 'Posts' },
802
- urlPrefix: 'blog',
803
- type: 'post',
804
- fields: {},
805
- },
806
- },
807
- },
808
- });
809
- const response = await handler(new Request('https://example.com/api/cms/resolve?path=/blog/hello'));
810
- expect(response.status).toBe(200);
811
- const body = (await response.json());
812
- expect(body.meta).toBeDefined();
813
- expect(body.meta.title).toBe('Hello World');
814
- expect(body.meta.canonical).toBe('https://example.com/blog/hello');
815
- expect(body.meta.tags['og:title']).toBe('Hello World');
816
- // /resolve now returns a connected @graph rather than a flat object.
817
- expect(body.jsonLd['@context']).toBe('https://schema.org');
818
- const graph = body.jsonLd['@graph'];
819
- expect(Array.isArray(graph)).toBe(true);
820
- const article = graph.find((n) => {
821
- const t = n['@type'];
822
- return t === 'BlogPosting' || (Array.isArray(t) && t.includes('BlogPosting'));
823
- });
824
- expect(article).toBeDefined();
825
- expect(graph.some((n) => n['@type'] === 'WebSite')).toBe(true);
826
- const org = graph.find((n) => n['@type'] === 'Organization');
827
- expect(org).toMatchObject({ name: 'Example Inc' });
828
- const person = graph.find((n) => n['@type'] === 'Person');
829
- expect(person).toMatchObject({ name: 'Jane' });
830
- expect(typeof body.jsonLdHtml).toBe('string');
831
- expect(body.jsonLdHtml).toContain('<script type="application/ld+json">');
832
- });
833
- });
834
- //# sourceMappingURL=public-seo.test.js.map