payload 3.84.0 → 4.0.0-internal.38b7f1d

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 (440) hide show
  1. package/dist/admin/elements/Nav.d.ts +13 -0
  2. package/dist/admin/elements/Nav.d.ts.map +1 -1
  3. package/dist/admin/elements/Nav.js.map +1 -1
  4. package/dist/admin/functions/index.d.ts +1 -38
  5. package/dist/admin/functions/index.d.ts.map +1 -1
  6. package/dist/admin/functions/index.js.map +1 -1
  7. package/dist/admin/types.d.ts +5 -4
  8. package/dist/admin/types.d.ts.map +1 -1
  9. package/dist/admin/types.js.map +1 -1
  10. package/dist/admin/views/hierarchyList.d.ts +9 -0
  11. package/dist/admin/views/hierarchyList.d.ts.map +1 -0
  12. package/dist/admin/views/hierarchyList.js +3 -0
  13. package/dist/admin/views/hierarchyList.js.map +1 -0
  14. package/dist/admin/views/index.d.ts +1 -3
  15. package/dist/admin/views/index.d.ts.map +1 -1
  16. package/dist/admin/views/index.js.map +1 -1
  17. package/dist/admin/views/list.d.ts +43 -2
  18. package/dist/admin/views/list.d.ts.map +1 -1
  19. package/dist/admin/views/list.js.map +1 -1
  20. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -1
  21. package/dist/bin/generateImportMap/iterateCollections.js +1 -0
  22. package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
  23. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
  24. package/dist/bin/generateImportMap/iterateConfig.js +7 -0
  25. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
  26. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +1 -1
  27. package/dist/bin/generateImportMap/iterateGlobals.js +20 -8
  28. package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -1
  29. package/dist/bin/index.d.ts.map +1 -1
  30. package/dist/bin/index.js +1 -3
  31. package/dist/bin/index.js.map +1 -1
  32. package/dist/collections/config/client.d.ts +4 -2
  33. package/dist/collections/config/client.d.ts.map +1 -1
  34. package/dist/collections/config/client.js +13 -1
  35. package/dist/collections/config/client.js.map +1 -1
  36. package/dist/collections/config/defaults.js +1 -1
  37. package/dist/collections/config/defaults.js.map +1 -1
  38. package/dist/collections/config/sanitize.d.ts.map +1 -1
  39. package/dist/collections/config/sanitize.js +51 -10
  40. package/dist/collections/config/sanitize.js.map +1 -1
  41. package/dist/collections/config/types.d.ts +76 -91
  42. package/dist/collections/config/types.d.ts.map +1 -1
  43. package/dist/collections/config/types.js.map +1 -1
  44. package/dist/collections/operations/create.d.ts.map +1 -1
  45. package/dist/collections/operations/create.js +24 -19
  46. package/dist/collections/operations/create.js.map +1 -1
  47. package/dist/collections/operations/delete.d.ts.map +1 -1
  48. package/dist/collections/operations/delete.js +7 -2
  49. package/dist/collections/operations/delete.js.map +1 -1
  50. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  51. package/dist/collections/operations/deleteByID.js +7 -2
  52. package/dist/collections/operations/deleteByID.js.map +1 -1
  53. package/dist/collections/operations/find.d.ts.map +1 -1
  54. package/dist/collections/operations/find.js +7 -2
  55. package/dist/collections/operations/find.js.map +1 -1
  56. package/dist/collections/operations/findByID.d.ts.map +1 -1
  57. package/dist/collections/operations/findByID.js +10 -5
  58. package/dist/collections/operations/findByID.js.map +1 -1
  59. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  60. package/dist/collections/operations/findVersionByID.js +6 -4
  61. package/dist/collections/operations/findVersionByID.js.map +1 -1
  62. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  63. package/dist/collections/operations/findVersions.js +6 -4
  64. package/dist/collections/operations/findVersions.js.map +1 -1
  65. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  66. package/dist/collections/operations/restoreVersion.js +7 -2
  67. package/dist/collections/operations/restoreVersion.js.map +1 -1
  68. package/dist/collections/operations/update.d.ts.map +1 -1
  69. package/dist/collections/operations/update.js +7 -2
  70. package/dist/collections/operations/update.js.map +1 -1
  71. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  72. package/dist/collections/operations/updateByID.js +7 -2
  73. package/dist/collections/operations/updateByID.js.map +1 -1
  74. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  75. package/dist/collections/operations/utilities/update.js +5 -4
  76. package/dist/collections/operations/utilities/update.js.map +1 -1
  77. package/dist/config/client.d.ts.map +1 -1
  78. package/dist/config/client.js +0 -10
  79. package/dist/config/client.js.map +1 -1
  80. package/dist/config/defaults.d.ts.map +1 -1
  81. package/dist/config/defaults.js +0 -15
  82. package/dist/config/defaults.js.map +1 -1
  83. package/dist/config/orderable/index.d.ts.map +1 -1
  84. package/dist/config/orderable/index.js +0 -4
  85. package/dist/config/orderable/index.js.map +1 -1
  86. package/dist/config/sanitize.d.ts.map +1 -1
  87. package/dist/config/sanitize.js +3 -38
  88. package/dist/config/sanitize.js.map +1 -1
  89. package/dist/config/types.d.ts +120 -13
  90. package/dist/config/types.d.ts.map +1 -1
  91. package/dist/config/types.js.map +1 -1
  92. package/dist/database/migrations/config/batchTransform.d.ts +16 -0
  93. package/dist/database/migrations/config/batchTransform.d.ts.map +1 -0
  94. package/dist/database/migrations/config/batchTransform.js +17 -0
  95. package/dist/database/migrations/config/batchTransform.js.map +1 -0
  96. package/dist/database/migrations/config/batchTransform.spec.js +68 -0
  97. package/dist/database/migrations/config/batchTransform.spec.js.map +1 -0
  98. package/dist/database/migrations/config/bootstrapConfigState.d.ts +4 -0
  99. package/dist/database/migrations/config/bootstrapConfigState.d.ts.map +1 -0
  100. package/dist/database/migrations/config/bootstrapConfigState.js +10 -0
  101. package/dist/database/migrations/config/bootstrapConfigState.js.map +1 -0
  102. package/dist/database/migrations/config/configStateStore.d.ts +4 -0
  103. package/dist/database/migrations/config/configStateStore.d.ts.map +1 -0
  104. package/dist/database/migrations/config/configStateStore.js +29 -0
  105. package/dist/database/migrations/config/configStateStore.js.map +1 -0
  106. package/dist/database/migrations/config/diffConfig.d.ts +3 -0
  107. package/dist/database/migrations/config/diffConfig.d.ts.map +1 -0
  108. package/dist/database/migrations/config/diffConfig.js +123 -0
  109. package/dist/database/migrations/config/diffConfig.js.map +1 -0
  110. package/dist/database/migrations/config/diffConfig.spec.js +136 -0
  111. package/dist/database/migrations/config/diffConfig.spec.js.map +1 -0
  112. package/dist/database/migrations/config/generateDataMigrationCode.d.ts +11 -0
  113. package/dist/database/migrations/config/generateDataMigrationCode.d.ts.map +1 -0
  114. package/dist/database/migrations/config/generateDataMigrationCode.js +28 -0
  115. package/dist/database/migrations/config/generateDataMigrationCode.js.map +1 -0
  116. package/dist/database/migrations/config/generateDataMigrationCode.spec.js +52 -0
  117. package/dist/database/migrations/config/generateDataMigrationCode.spec.js.map +1 -0
  118. package/dist/database/migrations/config/index.d.ts +9 -0
  119. package/dist/database/migrations/config/index.d.ts.map +1 -0
  120. package/dist/database/migrations/config/index.js +9 -0
  121. package/dist/database/migrations/config/index.js.map +1 -0
  122. package/dist/database/migrations/config/prompts.d.ts +5 -0
  123. package/dist/database/migrations/config/prompts.d.ts.map +1 -0
  124. package/dist/database/migrations/config/prompts.js +49 -0
  125. package/dist/database/migrations/config/prompts.js.map +1 -0
  126. package/dist/database/migrations/config/serializeConfig.d.ts +4 -0
  127. package/dist/database/migrations/config/serializeConfig.d.ts.map +1 -0
  128. package/dist/database/migrations/config/serializeConfig.js +65 -0
  129. package/dist/database/migrations/config/serializeConfig.js.map +1 -0
  130. package/dist/database/migrations/config/serializeConfig.spec.js +146 -0
  131. package/dist/database/migrations/config/serializeConfig.spec.js.map +1 -0
  132. package/dist/database/migrations/config/types.d.ts +66 -0
  133. package/dist/database/migrations/config/types.d.ts.map +1 -0
  134. package/dist/database/migrations/config/types.js.map +1 -0
  135. package/dist/database/migrations/migrate.d.ts.map +1 -1
  136. package/dist/database/migrations/migrate.js +3 -0
  137. package/dist/database/migrations/migrate.js.map +1 -1
  138. package/dist/database/types.d.ts +29 -0
  139. package/dist/database/types.d.ts.map +1 -1
  140. package/dist/database/types.js.map +1 -1
  141. package/dist/exports/migrations.d.ts +1 -0
  142. package/dist/exports/migrations.d.ts.map +1 -1
  143. package/dist/exports/migrations.js +2 -1
  144. package/dist/exports/migrations.js.map +1 -1
  145. package/dist/exports/shared.d.ts +6 -3
  146. package/dist/exports/shared.d.ts.map +1 -1
  147. package/dist/exports/shared.js +4 -2
  148. package/dist/exports/shared.js.map +1 -1
  149. package/dist/fields/baseFields/slug/index.d.ts.map +1 -1
  150. package/dist/fields/baseFields/slug/index.js +6 -4
  151. package/dist/fields/baseFields/slug/index.js.map +1 -1
  152. package/dist/fields/config/client.d.ts.map +1 -1
  153. package/dist/fields/config/client.js +3 -2
  154. package/dist/fields/config/client.js.map +1 -1
  155. package/dist/fields/config/sanitize.d.ts.map +1 -1
  156. package/dist/fields/config/sanitize.js +12 -10
  157. package/dist/fields/config/sanitize.js.map +1 -1
  158. package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
  159. package/dist/fields/config/sanitizeJoinField.js +3 -0
  160. package/dist/fields/config/sanitizeJoinField.js.map +1 -1
  161. package/dist/fields/config/types.d.ts +17 -73
  162. package/dist/fields/config/types.d.ts.map +1 -1
  163. package/dist/fields/config/types.js +11 -1
  164. package/dist/fields/config/types.js.map +1 -1
  165. package/dist/fields/isFieldDisabled.d.ts +12 -0
  166. package/dist/fields/isFieldDisabled.d.ts.map +1 -0
  167. package/dist/fields/isFieldDisabled.js +15 -0
  168. package/dist/fields/isFieldDisabled.js.map +1 -0
  169. package/dist/fields/isFieldDisabled.spec.js +134 -0
  170. package/dist/fields/isFieldDisabled.spec.js.map +1 -0
  171. package/dist/fields/validations.js +1 -1
  172. package/dist/fields/validations.js.map +1 -1
  173. package/dist/globals/config/client.d.ts +1 -1
  174. package/dist/globals/config/client.d.ts.map +1 -1
  175. package/dist/globals/config/client.js +2 -1
  176. package/dist/globals/config/client.js.map +1 -1
  177. package/dist/globals/config/sanitize.js +6 -2
  178. package/dist/globals/config/sanitize.js.map +1 -1
  179. package/dist/globals/config/types.d.ts +4 -57
  180. package/dist/globals/config/types.d.ts.map +1 -1
  181. package/dist/globals/config/types.js.map +1 -1
  182. package/dist/globals/operations/findOne.d.ts.map +1 -1
  183. package/dist/globals/operations/findOne.js +7 -2
  184. package/dist/globals/operations/findOne.js.map +1 -1
  185. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  186. package/dist/globals/operations/findVersionByID.js +6 -4
  187. package/dist/globals/operations/findVersionByID.js.map +1 -1
  188. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  189. package/dist/globals/operations/findVersions.js +6 -4
  190. package/dist/globals/operations/findVersions.js.map +1 -1
  191. package/dist/globals/operations/update.d.ts.map +1 -1
  192. package/dist/globals/operations/update.js +7 -2
  193. package/dist/globals/operations/update.js.map +1 -1
  194. package/dist/hierarchy/addHierarchyToCollection.d.ts +9 -0
  195. package/dist/hierarchy/addHierarchyToCollection.d.ts.map +1 -0
  196. package/dist/hierarchy/addHierarchyToCollection.js +76 -0
  197. package/dist/hierarchy/addHierarchyToCollection.js.map +1 -0
  198. package/dist/hierarchy/buildParentField.d.ts +11 -0
  199. package/dist/hierarchy/buildParentField.d.ts.map +1 -0
  200. package/dist/hierarchy/buildParentField.js +42 -0
  201. package/dist/hierarchy/buildParentField.js.map +1 -0
  202. package/dist/hierarchy/constants.d.ts +15 -0
  203. package/dist/hierarchy/constants.d.ts.map +1 -0
  204. package/dist/hierarchy/constants.js +11 -0
  205. package/dist/hierarchy/constants.js.map +1 -0
  206. package/dist/hierarchy/createFolderField.d.ts +39 -0
  207. package/dist/hierarchy/createFolderField.d.ts.map +1 -0
  208. package/dist/hierarchy/createFolderField.js +54 -0
  209. package/dist/hierarchy/createFolderField.js.map +1 -0
  210. package/dist/hierarchy/createTagField.d.ts +44 -0
  211. package/dist/hierarchy/createTagField.d.ts.map +1 -0
  212. package/dist/hierarchy/createTagField.js +48 -0
  213. package/dist/hierarchy/createTagField.js.map +1 -0
  214. package/dist/hierarchy/getInitialTreeData.d.ts +27 -0
  215. package/dist/hierarchy/getInitialTreeData.d.ts.map +1 -0
  216. package/dist/hierarchy/getInitialTreeData.js +125 -0
  217. package/dist/hierarchy/getInitialTreeData.js.map +1 -0
  218. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts +14 -0
  219. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -0
  220. package/dist/hierarchy/hooks/collectionAfterDelete.js +21 -0
  221. package/dist/hierarchy/hooks/collectionAfterDelete.js.map +1 -0
  222. package/dist/hierarchy/hooks/collectionAfterRead.d.ts +27 -0
  223. package/dist/hierarchy/hooks/collectionAfterRead.d.ts.map +1 -0
  224. package/dist/hierarchy/hooks/collectionAfterRead.js +72 -0
  225. package/dist/hierarchy/hooks/collectionAfterRead.js.map +1 -0
  226. package/dist/hierarchy/hooks/collectionBeforeChange.d.ts +19 -0
  227. package/dist/hierarchy/hooks/collectionBeforeChange.d.ts.map +1 -0
  228. package/dist/hierarchy/hooks/collectionBeforeChange.js +90 -0
  229. package/dist/hierarchy/hooks/collectionBeforeChange.js.map +1 -0
  230. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts +15 -0
  231. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -0
  232. package/dist/hierarchy/hooks/collectionBeforeDelete.js +20 -0
  233. package/dist/hierarchy/hooks/collectionBeforeDelete.js.map +1 -0
  234. package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts +33 -0
  235. package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts.map +1 -0
  236. package/dist/hierarchy/hooks/collectionBeforeOperation.js +66 -0
  237. package/dist/hierarchy/hooks/collectionBeforeOperation.js.map +1 -0
  238. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts +8 -0
  239. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -0
  240. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js +108 -0
  241. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js.map +1 -0
  242. package/dist/hierarchy/injectHierarchyButton.d.ts +14 -0
  243. package/dist/hierarchy/injectHierarchyButton.d.ts.map +1 -0
  244. package/dist/hierarchy/injectHierarchyButton.js +37 -0
  245. package/dist/hierarchy/injectHierarchyButton.js.map +1 -0
  246. package/dist/hierarchy/presets.d.ts +13 -0
  247. package/dist/hierarchy/presets.d.ts.map +1 -0
  248. package/dist/hierarchy/presets.js +52 -0
  249. package/dist/hierarchy/presets.js.map +1 -0
  250. package/dist/hierarchy/resolveHierarchyCollections.d.ts +23 -0
  251. package/dist/hierarchy/resolveHierarchyCollections.d.ts.map +1 -0
  252. package/dist/hierarchy/resolveHierarchyCollections.js +321 -0
  253. package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -0
  254. package/dist/hierarchy/sanitizeHierarchyCollection.d.ts +14 -0
  255. package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -0
  256. package/dist/hierarchy/sanitizeHierarchyCollection.js +117 -0
  257. package/dist/hierarchy/sanitizeHierarchyCollection.js.map +1 -0
  258. package/dist/hierarchy/types.d.ts +155 -0
  259. package/dist/hierarchy/types.d.ts.map +1 -0
  260. package/dist/hierarchy/types.js +6 -0
  261. package/dist/hierarchy/types.js.map +1 -0
  262. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.d.ts +77 -0
  263. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.d.ts.map +1 -0
  264. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.js +77 -0
  265. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.js.map +1 -0
  266. package/dist/hierarchy/utils/computePaths.d.ts +31 -0
  267. package/dist/hierarchy/utils/computePaths.d.ts.map +1 -0
  268. package/dist/hierarchy/utils/computePaths.js +445 -0
  269. package/dist/hierarchy/utils/computePaths.js.map +1 -0
  270. package/dist/hierarchy/utils/findUseAsTitle.d.ts +14 -0
  271. package/dist/hierarchy/utils/findUseAsTitle.d.ts.map +1 -0
  272. package/dist/hierarchy/utils/findUseAsTitle.js +89 -0
  273. package/dist/hierarchy/utils/findUseAsTitle.js.map +1 -0
  274. package/dist/hierarchy/utils/getAncestors.d.ts +34 -0
  275. package/dist/hierarchy/utils/getAncestors.d.ts.map +1 -0
  276. package/dist/hierarchy/utils/getAncestors.js +94 -0
  277. package/dist/hierarchy/utils/getAncestors.js.map +1 -0
  278. package/dist/hierarchy/utils/getLocalizedValue.d.ts +30 -0
  279. package/dist/hierarchy/utils/getLocalizedValue.d.ts.map +1 -0
  280. package/dist/hierarchy/utils/getLocalizedValue.js +46 -0
  281. package/dist/hierarchy/utils/getLocalizedValue.js.map +1 -0
  282. package/dist/hierarchy/utils/getLocalizedValue.spec.js +250 -0
  283. package/dist/hierarchy/utils/getLocalizedValue.spec.js.map +1 -0
  284. package/dist/index.bundled.d.ts +856 -558
  285. package/dist/index.d.ts +29 -8
  286. package/dist/index.d.ts.map +1 -1
  287. package/dist/index.js +13 -8
  288. package/dist/index.js.map +1 -1
  289. package/dist/preferences/keys.d.ts +8 -4
  290. package/dist/preferences/keys.d.ts.map +1 -1
  291. package/dist/preferences/keys.js +7 -4
  292. package/dist/preferences/keys.js.map +1 -1
  293. package/dist/preferences/types.d.ts +1 -1
  294. package/dist/preferences/types.d.ts.map +1 -1
  295. package/dist/preferences/types.js.map +1 -1
  296. package/dist/query-presets/config.d.ts.map +1 -1
  297. package/dist/query-presets/config.js +5 -1
  298. package/dist/query-presets/config.js.map +1 -1
  299. package/dist/queues/config/types/index.d.ts +0 -21
  300. package/dist/queues/config/types/index.d.ts.map +1 -1
  301. package/dist/queues/config/types/index.js.map +1 -1
  302. package/dist/queues/config/types/taskTypes.d.ts +0 -20
  303. package/dist/queues/config/types/taskTypes.d.ts.map +1 -1
  304. package/dist/queues/config/types/taskTypes.js.map +1 -1
  305. package/dist/queues/errors/handleWorkflowError.d.ts.map +1 -1
  306. package/dist/queues/errors/handleWorkflowError.js +9 -1
  307. package/dist/queues/errors/handleWorkflowError.js.map +1 -1
  308. package/dist/queues/localAPI.d.ts.map +1 -1
  309. package/dist/queues/localAPI.js +26 -67
  310. package/dist/queues/localAPI.js.map +1 -1
  311. package/dist/queues/operations/handleSchedules/index.d.ts.map +1 -1
  312. package/dist/queues/operations/handleSchedules/index.js +1 -4
  313. package/dist/queues/operations/handleSchedules/index.js.map +1 -1
  314. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  315. package/dist/queues/operations/runJobs/index.js +40 -37
  316. package/dist/queues/operations/runJobs/index.js.map +1 -1
  317. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts.map +1 -1
  318. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +3 -22
  319. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  320. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -1
  321. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +0 -2
  322. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -1
  323. package/dist/queues/utilities/updateJob.d.ts +1 -3
  324. package/dist/queues/utilities/updateJob.d.ts.map +1 -1
  325. package/dist/queues/utilities/updateJob.js +2 -18
  326. package/dist/queues/utilities/updateJob.js.map +1 -1
  327. package/dist/types/index.d.ts +44 -0
  328. package/dist/types/index.d.ts.map +1 -1
  329. package/dist/types/index.js.map +1 -1
  330. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  331. package/dist/uploads/getBaseFields.js +35 -69
  332. package/dist/uploads/getBaseFields.js.map +1 -1
  333. package/dist/uploads/getSafeFilename.d.ts +9 -4
  334. package/dist/uploads/getSafeFilename.d.ts.map +1 -1
  335. package/dist/uploads/getSafeFilename.js +5 -5
  336. package/dist/uploads/getSafeFilename.js.map +1 -1
  337. package/dist/utilities/appendDateTimezoneSelectFields.d.ts +13 -0
  338. package/dist/utilities/appendDateTimezoneSelectFields.d.ts.map +1 -0
  339. package/dist/utilities/appendDateTimezoneSelectFields.js +47 -0
  340. package/dist/utilities/appendDateTimezoneSelectFields.js.map +1 -0
  341. package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
  342. package/dist/utilities/appendUploadSelectFields.js +3 -0
  343. package/dist/utilities/appendUploadSelectFields.js.map +1 -1
  344. package/dist/utilities/extractID.js +1 -1
  345. package/dist/utilities/extractID.js.map +1 -1
  346. package/dist/utilities/formatAdminURL.d.ts +13 -2
  347. package/dist/utilities/formatAdminURL.d.ts.map +1 -1
  348. package/dist/utilities/formatAdminURL.js.map +1 -1
  349. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  350. package/dist/utilities/handleEndpoints.js +0 -1
  351. package/dist/utilities/handleEndpoints.js.map +1 -1
  352. package/dist/utilities/resolveSelect.d.ts +16 -0
  353. package/dist/utilities/resolveSelect.d.ts.map +1 -0
  354. package/dist/utilities/resolveSelect.js +19 -0
  355. package/dist/utilities/resolveSelect.js.map +1 -0
  356. package/dist/utilities/sanitizeSelect.d.ts +1 -2
  357. package/dist/utilities/sanitizeSelect.d.ts.map +1 -1
  358. package/dist/utilities/sanitizeSelect.js +19 -25
  359. package/dist/utilities/sanitizeSelect.js.map +1 -1
  360. package/dist/versions/baseFields.d.ts.map +1 -1
  361. package/dist/versions/baseFields.js +3 -2
  362. package/dist/versions/baseFields.js.map +1 -1
  363. package/dist/versions/buildCollectionFields.d.ts.map +1 -1
  364. package/dist/versions/buildCollectionFields.js +0 -1
  365. package/dist/versions/buildCollectionFields.js.map +1 -1
  366. package/dist/versions/buildGlobalFields.d.ts.map +1 -1
  367. package/dist/versions/buildGlobalFields.js +0 -1
  368. package/dist/versions/buildGlobalFields.js.map +1 -1
  369. package/dist/versions/payloadPackageList.d.ts.map +1 -1
  370. package/dist/versions/payloadPackageList.js +0 -1
  371. package/dist/versions/payloadPackageList.js.map +1 -1
  372. package/package.json +4 -4
  373. package/dist/admin/views/folderList.d.ts +0 -56
  374. package/dist/admin/views/folderList.d.ts.map +0 -1
  375. package/dist/admin/views/folderList.js +0 -3
  376. package/dist/admin/views/folderList.js.map +0 -1
  377. package/dist/folders/addFolderCollection.d.ts +0 -10
  378. package/dist/folders/addFolderCollection.d.ts.map +0 -1
  379. package/dist/folders/addFolderCollection.js +0 -26
  380. package/dist/folders/addFolderCollection.js.map +0 -1
  381. package/dist/folders/addFolderFieldToCollection.d.ts +0 -8
  382. package/dist/folders/addFolderFieldToCollection.d.ts.map +0 -1
  383. package/dist/folders/addFolderFieldToCollection.js +0 -20
  384. package/dist/folders/addFolderFieldToCollection.js.map +0 -1
  385. package/dist/folders/buildFolderField.d.ts +0 -8
  386. package/dist/folders/buildFolderField.d.ts.map +0 -1
  387. package/dist/folders/buildFolderField.js +0 -87
  388. package/dist/folders/buildFolderField.js.map +0 -1
  389. package/dist/folders/constants.d.ts +0 -3
  390. package/dist/folders/constants.d.ts.map +0 -1
  391. package/dist/folders/constants.js +0 -4
  392. package/dist/folders/constants.js.map +0 -1
  393. package/dist/folders/createFolderCollection.d.ts +0 -11
  394. package/dist/folders/createFolderCollection.d.ts.map +0 -1
  395. package/dist/folders/createFolderCollection.js +0 -115
  396. package/dist/folders/createFolderCollection.js.map +0 -1
  397. package/dist/folders/hooks/deleteSubfoldersAfterDelete.d.ts +0 -8
  398. package/dist/folders/hooks/deleteSubfoldersAfterDelete.d.ts.map +0 -1
  399. package/dist/folders/hooks/deleteSubfoldersAfterDelete.js +0 -15
  400. package/dist/folders/hooks/deleteSubfoldersAfterDelete.js.map +0 -1
  401. package/dist/folders/hooks/dissasociateAfterDelete.d.ts +0 -8
  402. package/dist/folders/hooks/dissasociateAfterDelete.d.ts.map +0 -1
  403. package/dist/folders/hooks/dissasociateAfterDelete.js +0 -20
  404. package/dist/folders/hooks/dissasociateAfterDelete.js.map +0 -1
  405. package/dist/folders/hooks/ensureSafeCollectionsChange.d.ts +0 -5
  406. package/dist/folders/hooks/ensureSafeCollectionsChange.d.ts.map +0 -1
  407. package/dist/folders/hooks/ensureSafeCollectionsChange.js +0 -107
  408. package/dist/folders/hooks/ensureSafeCollectionsChange.js.map +0 -1
  409. package/dist/folders/hooks/reparentChildFolder.d.ts +0 -24
  410. package/dist/folders/hooks/reparentChildFolder.d.ts.map +0 -1
  411. package/dist/folders/hooks/reparentChildFolder.js +0 -72
  412. package/dist/folders/hooks/reparentChildFolder.js.map +0 -1
  413. package/dist/folders/types.d.ts +0 -118
  414. package/dist/folders/types.d.ts.map +0 -1
  415. package/dist/folders/types.js.map +0 -1
  416. package/dist/folders/utils/buildFolderWhereConstraints.d.ts +0 -13
  417. package/dist/folders/utils/buildFolderWhereConstraints.d.ts.map +0 -1
  418. package/dist/folders/utils/buildFolderWhereConstraints.js +0 -45
  419. package/dist/folders/utils/buildFolderWhereConstraints.js.map +0 -1
  420. package/dist/folders/utils/formatFolderOrDocumentItem.d.ts +0 -12
  421. package/dist/folders/utils/formatFolderOrDocumentItem.d.ts.map +0 -1
  422. package/dist/folders/utils/formatFolderOrDocumentItem.js +0 -30
  423. package/dist/folders/utils/formatFolderOrDocumentItem.js.map +0 -1
  424. package/dist/folders/utils/getFolderBreadcrumbs.d.ts +0 -14
  425. package/dist/folders/utils/getFolderBreadcrumbs.d.ts.map +0 -1
  426. package/dist/folders/utils/getFolderBreadcrumbs.js +0 -45
  427. package/dist/folders/utils/getFolderBreadcrumbs.js.map +0 -1
  428. package/dist/folders/utils/getFolderData.d.ts +0 -33
  429. package/dist/folders/utils/getFolderData.d.ts.map +0 -1
  430. package/dist/folders/utils/getFolderData.js +0 -88
  431. package/dist/folders/utils/getFolderData.js.map +0 -1
  432. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts +0 -24
  433. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts.map +0 -1
  434. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js +0 -66
  435. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js.map +0 -1
  436. package/dist/folders/utils/getOrphanedDocs.d.ts +0 -15
  437. package/dist/folders/utils/getOrphanedDocs.d.ts.map +0 -1
  438. package/dist/folders/utils/getOrphanedDocs.js +0 -40
  439. package/dist/folders/utils/getOrphanedDocs.js.map +0 -1
  440. /package/dist/{folders → database/migrations/config}/types.js +0 -0
@@ -19,7 +19,7 @@ import { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adap
19
19
  import { PinoPretty } from 'pino-pretty';
20
20
  import { DatePickerProps } from 'react-datepicker';
21
21
 
22
- declare const clientTranslationKeys: ("authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:youAreInactive" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingTitle" | "error:documentNotFound" | "error:emailOrPasswordIncorrect" | "error:failedToResetLayout" | "error:failedToSaveLayout" | "error:insufficientClipboardPermissions" | "error:invalidClipboardData" | "error:invalidFileType" | "error:invalidRequestArgs" | "error:loadingDocument" | "error:logoutFailed" | "error:noMatchedField" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:previewing" | "error:problemUploadingFile" | "error:restoringTitle" | "error:revertingDocument" | "error:tokenNotProvided" | "error:unableToCopy" | "error:unableToDeleteCount" | "error:unableToReindexCollection" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unauthorizedAdmin" | "error:unknown" | "error:unPublishingDocument" | "error:unspecific" | "error:unverifiedEmail" | "error:userEmailAlreadyRegistered" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:block" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:collapseAll" | "fields:customURL" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkedTo" | "fields:linkType" | "fields:longitude" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:searchForLanguage" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "folder:browseByFolder" | "folder:byFolder" | "folder:deleteFolder" | "folder:folderName" | "folder:folders" | "folder:folderTypeDescription" | "folder:itemHasBeenMoved" | "folder:itemHasBeenMovedToRoot" | "folder:itemsMovedToFolder" | "folder:itemsMovedToRoot" | "folder:moveFolder" | "folder:moveItemsToFolderConfirmation" | "folder:moveItemsToRootConfirmation" | "folder:moveItemToFolderConfirmation" | "folder:moveItemToRootConfirmation" | "folder:movingFromFolder" | "folder:newFolder" | "folder:noFolder" | "folder:renameFolder" | "folder:searchByNameInFolder" | "folder:selectFolderForItem" | "general:items" | "general:of" | "general:language" | "general:dashboard" | "general:error" | "general:username" | "general:notFound" | "general:unauthorized" | "general:newLabel" | "general:saveChanges" | "general:name" | "general:aboutToDelete" | "general:aboutToPermanentlyDelete" | "general:aboutToPermanentlyDeleteTrash" | "general:aboutToRestore" | "general:aboutToRestoreAsDraft" | "general:aboutToRestoreAsDraftCount" | "general:aboutToRestoreCount" | "general:aboutToTrash" | "general:aboutToTrashCount" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:cancel" | "general:changesNotSaved" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNew" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:delete" | "general:deleted" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:import" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:locale" | "general:locales" | "general:lock" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:none" | "general:noOptions" | "general:noResults" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:yes" | "localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:changedFieldsCount")[];
22
+ declare const clientTranslationKeys: ("authentication:account" | "authentication:accountOfCurrentUser" | "authentication:accountVerified" | "authentication:alreadyActivated" | "authentication:alreadyLoggedIn" | "authentication:apiKey" | "authentication:authenticated" | "authentication:backToLogin" | "authentication:beginCreateFirstUser" | "authentication:changePassword" | "authentication:checkYourEmailForPasswordReset" | "authentication:confirmGeneration" | "authentication:confirmPassword" | "authentication:createFirstUser" | "authentication:emailNotValid" | "authentication:emailOrUsername" | "authentication:emailSent" | "authentication:emailVerified" | "authentication:enableAPIKey" | "authentication:failedToUnlock" | "authentication:forceUnlock" | "authentication:forgotPassword" | "authentication:forgotPasswordEmailInstructions" | "authentication:forgotPasswordUsernameInstructions" | "authentication:usernameNotValid" | "authentication:forgotPasswordQuestion" | "authentication:generate" | "authentication:generateNewAPIKey" | "authentication:generatingNewAPIKeyWillInvalidate" | "authentication:logBackIn" | "authentication:loggedIn" | "authentication:loggedInChangePassword" | "authentication:loggedOutInactivity" | "authentication:loggedOutSuccessfully" | "authentication:loggingOut" | "authentication:login" | "authentication:logOut" | "authentication:logout" | "authentication:logoutSuccessful" | "authentication:logoutUser" | "authentication:newAPIKeyGenerated" | "authentication:newPassword" | "authentication:passed" | "authentication:passwordResetSuccessfully" | "authentication:resetPassword" | "authentication:stayLoggedIn" | "authentication:successfullyRegisteredFirstUser" | "authentication:successfullyUnlocked" | "authentication:tokenRefreshSuccessful" | "authentication:unableToVerify" | "authentication:username" | "authentication:verified" | "authentication:verifiedSuccessfully" | "authentication:verify" | "authentication:verifyUser" | "authentication:youAreInactive" | "dashboard:addButton" | "dashboard:addWidget" | "dashboard:deleteWidget" | "dashboard:discardConfirmLabel" | "dashboard:discardMessage" | "dashboard:discardTitle" | "dashboard:editDashboard" | "dashboard:editingDashboard" | "dashboard:noItems" | "dashboard:resetLayout" | "dashboard:searchWidgets" | "error:autosaving" | "error:correctInvalidFields" | "error:deletingTitle" | "error:documentNotFound" | "error:emailOrPasswordIncorrect" | "error:failedToResetLayout" | "error:failedToSaveLayout" | "error:insufficientClipboardPermissions" | "error:invalidClipboardData" | "error:invalidFileType" | "error:invalidRequestArgs" | "error:loadingDocument" | "error:logoutFailed" | "error:noMatchedField" | "error:notAllowedToAccessPage" | "error:notAllowedToPerformAction" | "error:previewing" | "error:problemUploadingFile" | "error:restoringTitle" | "error:revertingDocument" | "error:tokenNotProvided" | "error:unableToCopy" | "error:unableToDeleteCount" | "error:unableToReindexCollection" | "error:unableToUpdateCount" | "error:unauthorized" | "error:unauthorizedAdmin" | "error:unknown" | "error:unPublishingDocument" | "error:unspecific" | "error:unverifiedEmail" | "error:userEmailAlreadyRegistered" | "error:usernameAlreadyRegistered" | "error:usernameOrPasswordIncorrect" | "fields:blocks" | "fields:addLabel" | "fields:addLink" | "fields:addNew" | "fields:addNewLabel" | "fields:addRelationship" | "fields:addUpload" | "fields:block" | "fields:blockType" | "fields:chooseBetweenCustomTextOrDocument" | "fields:chooseDocumentToLink" | "fields:chooseFromExisting" | "fields:collapseAll" | "fields:customURL" | "fields:editLink" | "fields:editRelationship" | "fields:enterURL" | "fields:hidePassword" | "fields:internalLink" | "fields:itemsAndMore" | "fields:labelRelationship" | "fields:latitude" | "fields:linkedTo" | "fields:linkType" | "fields:longitude" | "fields:openInNewTab" | "fields:passwordsDoNotMatch" | "fields:removeRelationship" | "fields:removeUpload" | "fields:saveChanges" | "fields:searchForBlock" | "fields:searchForLanguage" | "fields:selectFieldsToEdit" | "fields:showAll" | "fields:showPassword" | "fields:swapRelationship" | "fields:swapUpload" | "fields:textToDisplay" | "fields:toggleBlock" | "fields:uploadNewLabel" | "general:items" | "general:of" | "general:language" | "general:dashboard" | "general:error" | "general:username" | "general:notFound" | "general:unauthorized" | "general:newLabel" | "general:saveChanges" | "general:name" | "general:aboutToDelete" | "general:aboutToPermanentlyDelete" | "general:aboutToPermanentlyDeleteTrash" | "general:aboutToRestore" | "general:aboutToRestoreAsDraft" | "general:aboutToRestoreAsDraftCount" | "general:aboutToRestoreCount" | "general:aboutToTrash" | "general:aboutToTrashCount" | "general:accepts" | "general:addBelow" | "general:addFilter" | "general:adminTheme" | "general:all" | "general:allCollections" | "general:allLocales" | "general:and" | "general:anotherUser" | "general:anotherUserTakenOver" | "general:applyChanges" | "general:ascending" | "general:automatic" | "general:backToDashboard" | "general:by" | "general:cancel" | "general:changesNotSaved" | "general:clear" | "general:clearAll" | "general:close" | "general:collapse" | "general:collection" | "general:collections" | "general:columns" | "general:columnToSort" | "general:confirm" | "general:confirmCopy" | "general:confirmDeletion" | "general:confirmDuplication" | "general:confirmMove" | "general:confirmReindex" | "general:confirmReindexAll" | "general:confirmReindexDescription" | "general:confirmReindexDescriptionAll" | "general:confirmRestoration" | "general:copied" | "general:copy" | "general:copyField" | "general:copying" | "general:copyRow" | "general:copyWarning" | "general:create" | "general:created" | "general:createdAt" | "general:createNew" | "general:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAt" | "general:deletedCountSuccessfully" | "general:deletedSuccessfully" | "general:deleteLabel" | "general:deletePermanently" | "general:deleting" | "general:depth" | "general:descending" | "general:deselectAllRows" | "general:document" | "general:documentIsTrashed" | "general:documentLocked" | "general:documentModified" | "general:documentOutOfDate" | "general:documents" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editedSince" | "general:editing" | "general:editingTakenOver" | "general:editLabel" | "general:email" | "general:emailAddress" | "general:emptyTrash" | "general:emptyTrashLabel" | "general:enhancedContrastMode" | "general:enterANumber" | "general:enterAValue" | "general:errors" | "general:exitLivePreview" | "general:expand" | "general:export" | "general:fallbackToDefaultLocale" | "general:false" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:import" | "general:increment" | "general:isEditing" | "general:item" | "general:lastModified" | "general:layout" | "general:leaveAnyway" | "general:leaveWithoutSaving" | "general:light" | "general:livePreview" | "general:loading" | "general:loadMore" | "general:locale" | "general:locales" | "general:lock" | "general:menu" | "general:moreOptions" | "general:move" | "general:moveConfirm" | "general:moveCount" | "general:moveDown" | "general:moveUp" | "general:moving" | "general:movingCount" | "general:next" | "general:no" | "general:noDateSelected" | "general:noFiltersSet" | "general:noLabel" | "general:none" | "general:noOptions" | "general:noResults" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:noUpcomingEventsScheduled" | "general:noValue" | "general:only" | "general:open" | "general:openInNewWindow" | "general:or" | "general:order" | "general:overwriteExistingData" | "general:pageNotFound" | "general:password" | "general:pasteField" | "general:pasteRow" | "general:payloadSettings" | "general:permanentlyDelete" | "general:permanentlyDeletedCountSuccessfully" | "general:perPage" | "general:previous" | "general:reindex" | "general:reindexingAll" | "general:reloadDocument" | "general:remove" | "general:rename" | "general:reset" | "general:resetPreferences" | "general:resetPreferencesDescription" | "general:resettingPreferences" | "general:restore" | "general:restoreAsPublished" | "general:restoredCountSuccessfully" | "general:restoring" | "general:retry" | "general:row" | "general:rows" | "general:save" | "general:saving" | "general:schedulePublishFor" | "general:searchBy" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:sorryNotFound" | "general:sort" | "general:sortByLabelDirection" | "general:stayOnThisPage" | "general:submissionSuccessful" | "general:submit" | "general:submitting" | "general:success" | "general:successfullyCreated" | "general:successfullyDuplicated" | "general:successfullyReindexed" | "general:takeOver" | "general:thisLanguage" | "general:time" | "general:timezone" | "general:titleDeleted" | "general:titleRestored" | "general:titleTrashed" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAt" | "general:updatedCountSuccessfully" | "general:updatedLabelSuccessfully" | "general:updatedSuccessfully" | "general:updateForEveryone" | "general:updating" | "general:uploading" | "general:uploadingBulk" | "general:user" | "general:users" | "general:value" | "general:viewing" | "general:viewReadOnly" | "general:welcome" | "general:yes" | "hierarchy:noResults" | "hierarchy:itemsMovedTo" | "hierarchy:itemsMovedToRoot" | "hierarchy:moveItemsToRootConfirmation" | "hierarchy:moveToRoot" | "hierarchy:noParent" | "hierarchy:searchLabel" | "localization:cannotCopySameLocale" | "localization:copyFrom" | "localization:copyFromTo" | "localization:copyTo" | "localization:copyToLocale" | "localization:localeToPublish" | "localization:selectedLocales" | "localization:selectLocaleToCopy" | "localization:selectLocaleToDuplicate" | "operators:contains" | "operators:equals" | "operators:exists" | "operators:intersects" | "operators:near" | "operators:within" | "operators:isGreaterThan" | "operators:isGreaterThanOrEqualTo" | "operators:isIn" | "operators:isLessThan" | "operators:isLessThanOrEqualTo" | "operators:isLike" | "operators:isNotEqualTo" | "operators:isNotIn" | "operators:isNotLike" | "upload:addFile" | "upload:addFiles" | "upload:bulkUpload" | "upload:crop" | "upload:cropToolDescription" | "upload:download" | "upload:dragAndDrop" | "upload:editImage" | "upload:fileName" | "upload:fileSize" | "upload:filesToUpload" | "upload:fileToUpload" | "upload:focalPoint" | "upload:focalPointDescription" | "upload:height" | "upload:noFile" | "upload:pasteURL" | "upload:previewSizes" | "upload:selectCollectionToBrowse" | "upload:selectFile" | "upload:setCropArea" | "upload:setFocalPoint" | "upload:sizes" | "upload:sizesFor" | "upload:width" | "validation:username" | "validation:emailAddress" | "validation:enterNumber" | "validation:fieldHasNo" | "validation:greaterThanMax" | "validation:invalidBlock" | "validation:invalidBlocks" | "validation:invalidInput" | "validation:invalidSelection" | "validation:invalidSelections" | "validation:latitudeOutOfBounds" | "validation:lessThanMin" | "validation:limitReached" | "validation:longerThanMin" | "validation:longitudeOutOfBounds" | "validation:notValidDate" | "validation:required" | "validation:requiresAtLeast" | "validation:requiresNoMoreThan" | "validation:requiresTwoNumbers" | "validation:shorterThanMax" | "validation:timezoneRequired" | "validation:trueOrFalse" | "validation:validUploadID" | "version:version" | "version:aboutToRestore" | "version:restoring" | "version:type" | "version:aboutToPublishSelection" | "version:aboutToRestoreGlobal" | "version:aboutToRevertToPublished" | "version:aboutToUnpublish" | "version:aboutToUnpublishIn" | "version:aboutToUnpublishSelection" | "version:autosave" | "version:autosavedSuccessfully" | "version:autosavedVersion" | "version:changed" | "version:compareVersions" | "version:comparingAgainst" | "version:confirmPublish" | "version:confirmRevertToSaved" | "version:confirmUnpublish" | "version:confirmVersionRestoration" | "version:currentDraft" | "version:currentlyPublished" | "version:currentlyViewing" | "version:currentPublishedVersion" | "version:draft" | "version:draftHasPublishedVersion" | "version:draftSavedSuccessfully" | "version:lastSavedAgo" | "version:modifiedOnly" | "version:moreVersions" | "version:noFurtherVersionsFound" | "version:noLabelGroup" | "version:noRowsFound" | "version:noRowsSelected" | "version:preview" | "version:previouslyDraft" | "version:previouslyPublished" | "version:previousVersion" | "version:problemRestoringVersion" | "version:publish" | "version:publishAllLocales" | "version:publishChanges" | "version:published" | "version:publishIn" | "version:publishing" | "version:restoreAsDraft" | "version:restoredSuccessfully" | "version:restoreThisVersion" | "version:reverting" | "version:revertToPublished" | "version:revertUnsuccessful" | "version:saveDraft" | "version:scheduledSuccessfully" | "version:schedulePublish" | "version:selectLocales" | "version:selectVersionToCompare" | "version:showLocales" | "version:specificVersion" | "version:status" | "version:unpublish" | "version:unpublished" | "version:unpublishedSuccessfully" | "version:unpublishIn" | "version:unpublishing" | "version:versionAgo" | "version:versionID" | "version:versions" | "version:viewingVersion" | "version:viewingVersionGlobal" | "version:viewingVersions" | "version:viewingVersionsGlobal" | "general:aboutToDeleteCount" | "general:editingLabel" | "version:changedFieldsCount")[];
23
23
 
24
24
  declare const enTranslations: {
25
25
  authentication: {
@@ -179,6 +179,7 @@ declare const enTranslations: {
179
179
  editLink: string;
180
180
  editRelationship: string;
181
181
  enterURL: string;
182
+ hidePassword: string;
182
183
  internalLink: string;
183
184
  itemsAndMore: string;
184
185
  labelRelationship: string;
@@ -199,35 +200,13 @@ declare const enTranslations: {
199
200
  selectExistingLabel: string;
200
201
  selectFieldsToEdit: string;
201
202
  showAll: string;
203
+ showPassword: string;
202
204
  swapRelationship: string;
203
205
  swapUpload: string;
204
206
  textToDisplay: string;
205
207
  toggleBlock: string;
206
208
  uploadNewLabel: string;
207
209
  };
208
- folder: {
209
- browseByFolder: string;
210
- byFolder: string;
211
- deleteFolder: string;
212
- folderName: string;
213
- folders: string;
214
- folderTypeDescription: string;
215
- itemHasBeenMoved: string;
216
- itemHasBeenMovedToRoot: string;
217
- itemsMovedToFolder: string;
218
- itemsMovedToRoot: string;
219
- moveFolder: string;
220
- moveItemsToFolderConfirmation: string;
221
- moveItemsToRootConfirmation: string;
222
- moveItemToFolderConfirmation: string;
223
- moveItemToRootConfirmation: string;
224
- movingFromFolder: string;
225
- newFolder: string;
226
- noFolder: string;
227
- renameFolder: string;
228
- searchByNameInFolder: string;
229
- selectFolderForItem: string;
230
- };
231
210
  general: {
232
211
  name: string;
233
212
  aboutToDelete: string;
@@ -242,6 +221,7 @@ declare const enTranslations: {
242
221
  aboutToRestoreCount: string;
243
222
  aboutToTrash: string;
244
223
  aboutToTrashCount: string;
224
+ accepts: string;
245
225
  addBelow: string;
246
226
  addFilter: string;
247
227
  adminTheme: string;
@@ -255,12 +235,14 @@ declare const enTranslations: {
255
235
  ascending: string;
256
236
  automatic: string;
257
237
  backToDashboard: string;
238
+ by: string;
258
239
  cancel: string;
259
240
  changesNotSaved: string;
260
241
  clear: string;
261
242
  clearAll: string;
262
243
  close: string;
263
244
  collapse: string;
245
+ collection: string;
264
246
  collections: string;
265
247
  columns: string;
266
248
  columnToSort: string;
@@ -291,6 +273,7 @@ declare const enTranslations: {
291
273
  custom: string;
292
274
  dark: string;
293
275
  dashboard: string;
276
+ decrement: string;
294
277
  delete: string;
295
278
  deleted: string;
296
279
  deletedAt: string;
@@ -323,10 +306,13 @@ declare const enTranslations: {
323
306
  emailAddress: string;
324
307
  emptyTrash: string;
325
308
  emptyTrashLabel: string;
309
+ enhancedContrastMode: string;
310
+ enterANumber: string;
326
311
  enterAValue: string;
327
312
  error: string;
328
313
  errors: string;
329
314
  exitLivePreview: string;
315
+ expand: string;
330
316
  export: string;
331
317
  fallbackToDefaultLocale: string;
332
318
  false: string;
@@ -337,6 +323,7 @@ declare const enTranslations: {
337
323
  goBack: string;
338
324
  groupByLabel: string;
339
325
  import: string;
326
+ increment: string;
340
327
  isEditing: string;
341
328
  item: string;
342
329
  items: string;
@@ -348,6 +335,7 @@ declare const enTranslations: {
348
335
  light: string;
349
336
  livePreview: string;
350
337
  loading: string;
338
+ loadMore: string;
351
339
  locale: string;
352
340
  locales: string;
353
341
  lock: string;
@@ -406,6 +394,7 @@ declare const enTranslations: {
406
394
  restoreAsPublished: string;
407
395
  restoredCountSuccessfully: string;
408
396
  restoring: string;
397
+ retry: string;
409
398
  row: string;
410
399
  rows: string;
411
400
  save: string;
@@ -464,6 +453,15 @@ declare const enTranslations: {
464
453
  welcome: string;
465
454
  yes: string;
466
455
  };
456
+ hierarchy: {
457
+ itemsMovedTo: string;
458
+ itemsMovedToRoot: string;
459
+ moveItemsToRootConfirmation: string;
460
+ moveToRoot: string;
461
+ noParent: string;
462
+ noResults: string;
463
+ searchLabel: string;
464
+ };
467
465
  localization: {
468
466
  cannotCopySameLocale: string;
469
467
  copyFrom: string;
@@ -1082,7 +1080,7 @@ type CollectionPreferences = {
1082
1080
  editViewType?: 'default' | 'live-preview';
1083
1081
  groupBy?: string;
1084
1082
  limit?: number;
1085
- listViewType?: 'folders' | 'list';
1083
+ listViewType?: 'hierarchy' | 'list';
1086
1084
  preset?: DefaultDocumentIDType;
1087
1085
  sort?: string;
1088
1086
  };
@@ -1423,12 +1421,30 @@ interface BaseDatabaseAdapter {
1423
1421
  * Run any migration down functions that have been performed
1424
1422
  */
1425
1423
  migrateDown: () => Promise<void>;
1424
+ migrateFieldDelocalized?: (args: {
1425
+ defaultLocale: string;
1426
+ entity: 'collection' | 'global';
1427
+ fieldPath: string;
1428
+ req: PayloadRequest;
1429
+ slug: string;
1430
+ }) => Promise<void>;
1431
+ migrateFieldLocalized?: (args: {
1432
+ defaultLocale: string;
1433
+ entity: 'collection' | 'global';
1434
+ fieldPath: string;
1435
+ req: PayloadRequest;
1436
+ slug: string;
1437
+ }) => Promise<void>;
1426
1438
  /**
1427
1439
  * Drop the current database and run all migrate up functions
1428
1440
  */
1429
1441
  migrateFresh: (args: {
1430
1442
  forceAcceptWarning?: boolean;
1431
1443
  }) => Promise<void>;
1444
+ migrateLocaleRemoved?: (args: {
1445
+ locale: string;
1446
+ req: PayloadRequest;
1447
+ }) => Promise<void>;
1432
1448
  /**
1433
1449
  * Run all migration down functions before running up
1434
1450
  */
@@ -1441,6 +1457,17 @@ interface BaseDatabaseAdapter {
1441
1457
  * Read the current state of migrations and output the result to show which have been run
1442
1458
  */
1443
1459
  migrateStatus: () => Promise<void>;
1460
+ migrateVersionsDisabled?: (args: {
1461
+ entity: 'collection' | 'global';
1462
+ req: PayloadRequest;
1463
+ slug: string;
1464
+ }) => Promise<void>;
1465
+ migrateVersionsEnabled?: (args: {
1466
+ entity: 'collection' | 'global';
1467
+ initialStatus: 'draft' | 'published';
1468
+ req: PayloadRequest;
1469
+ slug: string;
1470
+ }) => Promise<void>;
1444
1471
  /**
1445
1472
  * Path to read and write migration files from
1446
1473
  */
@@ -2086,51 +2113,7 @@ type GlobalAdminOptions = {
2086
2113
  /**
2087
2114
  * Custom admin components
2088
2115
  */
2089
- components?: {
2090
- elements?: {
2091
- /**
2092
- * Inject custom components before the document controls
2093
- */
2094
- beforeDocumentControls?: CustomComponent[];
2095
- Description?: EntityDescriptionComponent;
2096
- /**
2097
- * Replaces the "Preview" button
2098
- */
2099
- PreviewButton?: CustomComponent;
2100
- /**
2101
- * Replaces the "Publish" button
2102
- * + drafts must be enabled
2103
- */
2104
- PublishButton?: PayloadComponent<PublishButtonServerProps, PublishButtonClientProps>;
2105
- /**
2106
- * Replaces the "Save" button
2107
- * + drafts must be disabled
2108
- */
2109
- SaveButton?: CustomComponent;
2110
- /**
2111
- * Replaces the "Save Draft" button
2112
- * + drafts must be enabled
2113
- * + autosave must be disabled
2114
- */
2115
- SaveDraftButton?: CustomComponent;
2116
- /**
2117
- * Replaces the "Status" section
2118
- */
2119
- Status?: CustomStatus;
2120
- /**
2121
- * Replaces the "Unpublish" button
2122
- * + drafts must be enabled
2123
- */
2124
- UnpublishButton?: PayloadComponent<UnpublishButtonServerProps, UnpublishButtonClientProps>;
2125
- };
2126
- views?: {
2127
- /**
2128
- * Set to a React component to replace the entire Edit View, including all nested routes.
2129
- * Set to an object to replace or modify individual nested routes, or to add new ones.
2130
- */
2131
- edit?: EditConfig;
2132
- };
2133
- };
2116
+ components?: SharedAdminComponents;
2134
2117
  /** Extension point to add your custom data. Available in server and client. */
2135
2118
  custom?: GlobalAdminCustom;
2136
2119
  /**
@@ -2150,10 +2133,6 @@ type GlobalAdminOptions = {
2150
2133
  hidden?: ((args: {
2151
2134
  user: PayloadRequest['user'];
2152
2135
  }) => boolean) | boolean;
2153
- /**
2154
- * Hide the API URL within the Edit View
2155
- */
2156
- hideAPIURL?: boolean;
2157
2136
  /**
2158
2137
  * Live preview options
2159
2138
  */
@@ -2184,10 +2163,6 @@ type GlobalConfig<TSlug extends GlobalSlug = any> = {
2184
2163
  dbName?: DBIdentifierName;
2185
2164
  endpoints?: false | Omit<Endpoint, 'root'>[];
2186
2165
  fields: Field[];
2187
- /**
2188
- * Specify which fields should be selected always, regardless of the `select` query which can be useful that the field exists for access control / hooks
2189
- */
2190
- forceSelect?: IsAny$1<SelectFromGlobalSlug<TSlug>> extends true ? SelectIncludeType : SelectFromGlobalSlug<TSlug>;
2191
2166
  graphQL?: {
2192
2167
  disableMutations?: true;
2193
2168
  disableQueries?: true;
@@ -2220,7 +2195,7 @@ type GlobalConfig<TSlug extends GlobalSlug = any> = {
2220
2195
  interface?: string;
2221
2196
  };
2222
2197
  versions?: boolean | IncomingGlobalVersions;
2223
- };
2198
+ } & Pick<WithSelectFn<IsAny$1<SelectFromGlobalSlug<TSlug>> extends true ? SelectIncludeType : SelectFromGlobalSlug<TSlug>>, 'select'>;
2224
2199
  interface SanitizedGlobalConfig extends Omit<DeepRequired<GlobalConfig>, 'endpoints' | 'fields' | 'slug' | 'versions'> {
2225
2200
  endpoints: Endpoint[] | false;
2226
2201
  fields: Field[];
@@ -2243,6 +2218,14 @@ type Globals = {
2243
2218
  } | false;
2244
2219
  };
2245
2220
 
2221
+ type DisabledOptions = {
2222
+ bulkEdit?: boolean;
2223
+ column?: boolean;
2224
+ field?: boolean;
2225
+ filter?: boolean;
2226
+ groupBy?: boolean;
2227
+ };
2228
+
2246
2229
  type TextFieldValidation = Validate<string, unknown, unknown, TextField>;
2247
2230
  type TextFieldManyValidation = Validate<string[], unknown, unknown, TextField>;
2248
2231
  type TextFieldSingleValidation = Validate<string, unknown, unknown, TextField>;
@@ -2510,23 +2493,12 @@ type FieldAdmin = {
2510
2493
  * we use the field description to generate JSDoc comments for the generated TypeScript types.
2511
2494
  */
2512
2495
  description?: Description;
2513
- disableBulkEdit?: boolean;
2514
- disabled?: boolean;
2515
- /**
2516
- * Shows / hides fields from appearing in the list view groupBy options.
2517
- * @type boolean
2518
- */
2519
- disableGroupBy?: boolean;
2520
2496
  /**
2521
- * Shows / hides fields from appearing in the list view column selector.
2522
- * @type boolean
2497
+ * Controls where this field is disabled in the admin UI.
2498
+ * - `true` disables the field everywhere (edit form, list column, list filter, groupBy, bulk edit).
2499
+ * - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
2523
2500
  */
2524
- disableListColumn?: boolean;
2525
- /**
2526
- * Shows / hides fields from appearing in the list view filter options.
2527
- * @type boolean
2528
- */
2529
- disableListFilter?: boolean;
2501
+ disabled?: boolean | DisabledOptions;
2530
2502
  hidden?: boolean;
2531
2503
  position?: FieldPosition;
2532
2504
  readOnly?: boolean;
@@ -2538,23 +2510,12 @@ type AdminClient = {
2538
2510
  /** Extension point to add your custom data. Available in server and client. */
2539
2511
  custom?: Record<string, any>;
2540
2512
  description?: StaticDescription;
2541
- disableBulkEdit?: boolean;
2542
- disabled?: boolean;
2543
2513
  /**
2544
- * Shows / hides fields from appearing in the list view groupBy options.
2545
- * @type boolean
2514
+ * Controls where this field is disabled in the admin UI.
2515
+ * - `true` disables the field everywhere (edit form, list column, list filter, groupBy, bulk edit).
2516
+ * - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
2546
2517
  */
2547
- disableGroupBy?: boolean;
2548
- /**
2549
- * Shows / hides fields from appearing in the list view column selector.
2550
- * @type boolean
2551
- */
2552
- disableListColumn?: boolean;
2553
- /**
2554
- * Shows / hides fields from appearing in the list view filter options.
2555
- * @type boolean
2556
- */
2557
- disableListFilter?: boolean;
2518
+ disabled?: boolean | DisabledOptions;
2558
2519
  hidden?: boolean;
2559
2520
  position?: FieldPosition;
2560
2521
  readOnly?: boolean;
@@ -3017,15 +2978,12 @@ type UIField = {
3017
2978
  /** Extension point to add your custom data. Available in server and client. */
3018
2979
  custom?: Record<string, any>;
3019
2980
  /**
3020
- * Set `false` make the UI field appear in the list view column selector. `true` by default for UI fields.
3021
- * @default true
3022
- */
3023
- disableBulkEdit?: boolean;
3024
- /**
3025
- * Shows / hides fields from appearing in the list view column selector.
3026
- * @type boolean
2981
+ * Controls where this UI field is disabled in the admin UI.
2982
+ * - `true` disables the field everywhere.
2983
+ * - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
2984
+ * UI fields default to `disabled: { bulkEdit: true }` via sanitize.
3027
2985
  */
3028
- disableListColumn?: boolean;
2986
+ disabled?: boolean | DisabledOptions;
3029
2987
  position?: string;
3030
2988
  width?: CSSProperties['width'];
3031
2989
  };
@@ -3036,7 +2994,7 @@ type UIField = {
3036
2994
  type: 'ui';
3037
2995
  };
3038
2996
  type UIFieldClient = {
3039
- admin: DeepUndefinable<FieldBaseClient['admin']> & Pick<UIField['admin'], 'custom' | 'disableBulkEdit' | 'disableListColumn' | 'position' | 'width'>;
2997
+ admin: DeepUndefinable<FieldBaseClient['admin']> & Pick<UIField['admin'], 'custom' | 'disabled' | 'position' | 'width'>;
3040
2998
  } & Omit<DeepUndefinable<FieldBaseClient>, 'admin'> & // still include FieldBaseClient (even if it's undefinable) so that we don't need constant type checks (e.g. if('xy' in field))
3041
2999
  Pick<UIField, 'label' | 'name' | 'type'>;
3042
3000
  type SharedUploadProperties = {
@@ -3054,32 +3012,16 @@ type SharedUploadProperties = {
3054
3012
  type: 'upload';
3055
3013
  } & ({
3056
3014
  hasMany: true;
3057
- /**
3058
- * @deprecated Use 'maxRows' instead
3059
- */
3060
- max?: number;
3061
3015
  maxRows?: number;
3062
- /**
3063
- * @deprecated Use 'minRows' instead
3064
- */
3065
- min?: number;
3066
3016
  minRows?: number;
3067
3017
  validate?: UploadFieldManyValidation;
3068
3018
  } | {
3069
3019
  hasMany?: false | undefined;
3070
- /**
3071
- * @deprecated Use 'maxRows' instead
3072
- */
3073
- max?: undefined;
3074
3020
  maxRows?: undefined;
3075
- /**
3076
- * @deprecated Use 'minRows' instead
3077
- */
3078
- min?: undefined;
3079
3021
  minRows?: undefined;
3080
3022
  validate?: UploadFieldSingleValidation;
3081
3023
  }) & FieldGraphQLType & Omit<FieldBase, 'validate'>;
3082
- type SharedUploadPropertiesClient = FieldBaseClient & Pick<SharedUploadProperties, 'hasMany' | 'max' | 'maxDepth' | 'maxRows' | 'min' | 'minRows' | 'type'>;
3024
+ type SharedUploadPropertiesClient = FieldBaseClient & Pick<SharedUploadProperties, 'hasMany' | 'maxDepth' | 'maxRows' | 'minRows' | 'type'>;
3083
3025
  type UploadAdmin = {
3084
3026
  allowCreate?: boolean;
3085
3027
  components?: {
@@ -3220,32 +3162,16 @@ type SharedRelationshipProperties = {
3220
3162
  type: 'relationship';
3221
3163
  } & ({
3222
3164
  hasMany: true;
3223
- /**
3224
- * @deprecated Use 'maxRows' instead
3225
- */
3226
- max?: number;
3227
3165
  maxRows?: number;
3228
- /**
3229
- * @deprecated Use 'minRows' instead
3230
- */
3231
- min?: number;
3232
3166
  minRows?: number;
3233
3167
  validate?: RelationshipFieldManyValidation;
3234
3168
  } | {
3235
3169
  hasMany?: false | undefined;
3236
- /**
3237
- * @deprecated Use 'maxRows' instead
3238
- */
3239
- max?: undefined;
3240
3170
  maxRows?: undefined;
3241
- /**
3242
- * @deprecated Use 'minRows' instead
3243
- */
3244
- min?: undefined;
3245
3171
  minRows?: undefined;
3246
3172
  validate?: RelationshipFieldSingleValidation;
3247
3173
  }) & FieldGraphQLType & Omit<FieldBase, 'validate'>;
3248
- type SharedRelationshipPropertiesClient = FieldBaseClient & Pick<SharedRelationshipProperties, 'hasMany' | 'max' | 'maxDepth' | 'maxRows' | 'min' | 'minRows' | 'type'>;
3174
+ type SharedRelationshipPropertiesClient = FieldBaseClient & Pick<SharedRelationshipProperties, 'hasMany' | 'maxDepth' | 'maxRows' | 'minRows' | 'type'>;
3249
3175
  type RelationshipAdmin = {
3250
3176
  allowCreate?: boolean;
3251
3177
  allowEdit?: boolean;
@@ -4039,7 +3965,152 @@ declare const createClientFields: ({ defaultIDType, disableAddingID, fields, i18
4039
3965
  importMap: ImportMap;
4040
3966
  }) => ClientField[];
4041
3967
 
4042
- type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes'>;
3968
+ /**
3969
+ * User-configurable options for the hierarchy join field.
3970
+ * Excludes properties that are auto-generated: type, collection, on, hasMany
3971
+ */
3972
+ type HierarchyJoinFieldConfig = {
3973
+ name: string;
3974
+ } & Omit<Partial<JoinField>, 'collection' | 'hasMany' | 'name' | 'on' | 'type'>;
3975
+ /**
3976
+ * Configuration options for hierarchy feature
3977
+ *
3978
+ * Hierarchies are always self-referential - documents can only nest under other documents
3979
+ * from the same collection.
3980
+ */
3981
+ type HierarchyConfig = {
3982
+ /**
3983
+ * UI configuration for hierarchy
3984
+ */
3985
+ admin?: {
3986
+ /**
3987
+ * Custom components for hierarchy UI
3988
+ */
3989
+ components?: {
3990
+ /**
3991
+ * Custom icon component for hierarchy items
3992
+ */
3993
+ Icon?: PayloadComponent;
3994
+ };
3995
+ /**
3996
+ * Whether to inject a sidebar tab for this hierarchy collection
3997
+ * @default true
3998
+ */
3999
+ injectSidebarTab?: boolean;
4000
+ /**
4001
+ * Maximum number of items to load in tree views
4002
+ * @default 100
4003
+ */
4004
+ treeLimit?: number;
4005
+ /**
4006
+ * Whether to use a header button for parent selection instead of inline field.
4007
+ * When true, the parent field is hidden and a button is injected into the document header.
4008
+ * @default true
4009
+ */
4010
+ useHeaderButton?: boolean;
4011
+ };
4012
+ /**
4013
+ * Whether related documents can have multiple values of this hierarchy
4014
+ * Set to false for folder-like behavior (single parent), true for tag-like behavior (multiple)
4015
+ * @default true
4016
+ */
4017
+ allowHasMany?: boolean;
4018
+ /**
4019
+ * Whether this hierarchy is scoped to specific collections
4020
+ * When true or an object, hierarchy items can be restricted to certain collections
4021
+ * @default false
4022
+ */
4023
+ collectionSpecific?: {
4024
+ /**
4025
+ * Name of the select field for specifying allowed collections
4026
+ * @default 'hierarchyType'
4027
+ */
4028
+ fieldName?: string;
4029
+ } | boolean;
4030
+ /**
4031
+ * Configure a join field to query all children (nested hierarchy items and related documents)
4032
+ * If not set, no join field is created.
4033
+ * You can pass additional JoinField options (admin, defaultLimit, defaultSort, etc.)
4034
+ * that will be merged with the auto-generated config.
4035
+ */
4036
+ joinField?: HierarchyJoinFieldConfig;
4037
+ /**
4038
+ * Name of the field that references the parent document
4039
+ * Will automatically create this field if it does not exist
4040
+ * @default '_h_${collectionSlug}' (e.g., '_h_folders' for a collection with slug 'folders')
4041
+ */
4042
+ parentFieldName: string;
4043
+ /**
4044
+ * Name of the field to use for slug path generation.
4045
+ * When set, uses this field's value directly instead of slugifying the title.
4046
+ * Useful when you have a dedicated slug field (e.g., 'slug') separate from the title.
4047
+ * @example 'slug' - uses the 'slug' field value as-is for path segments
4048
+ */
4049
+ slugField?: string;
4050
+ /**
4051
+ * Custom function to slugify text for path generation
4052
+ * Used by computeSlugPath() utility for generating slug-based breadcrumb paths
4053
+ * Only used when slugField is not set.
4054
+ * Defaults to internal slugify implementation
4055
+ */
4056
+ slugify?: (text: string) => string;
4057
+ /**
4058
+ * Name of the virtual field that will contain the slug-based breadcrumb path
4059
+ * @default HIERARCHY_SLUG_PATH_FIELD ('_h_slugPath')
4060
+ */
4061
+ slugPathFieldName?: string;
4062
+ /**
4063
+ * Name of the virtual field that will contain the title-based breadcrumb path
4064
+ * @default HIERARCHY_TITLE_PATH_FIELD ('_h_titlePath')
4065
+ */
4066
+ titlePathFieldName?: string;
4067
+ };
4068
+ /**
4069
+ * Sanitized hierarchy configuration with all defaults applied
4070
+ */
4071
+ type SanitizedHierarchyConfig = {
4072
+ admin: {
4073
+ components: {
4074
+ Icon: PayloadComponent;
4075
+ };
4076
+ injectSidebarTab: boolean;
4077
+ treeLimit: number;
4078
+ useHeaderButton: boolean;
4079
+ };
4080
+ allowHasMany: boolean;
4081
+ collectionSpecific: {
4082
+ fieldName: string;
4083
+ } | false;
4084
+ /**
4085
+ * Join field configuration, or undefined if not enabled
4086
+ */
4087
+ joinField?: HierarchyJoinFieldConfig;
4088
+ parentFieldName: string;
4089
+ /**
4090
+ * Auto-populated during validation - maps collection slug to field info
4091
+ */
4092
+ relatedCollections: Record<string, SanitizedHierarchyRelatedCollection>;
4093
+ /**
4094
+ * Field name for slug values, or undefined to use slugified title
4095
+ */
4096
+ slugField?: string;
4097
+ slugify: (text: string) => string;
4098
+ slugPathFieldName: string;
4099
+ titlePathFieldName: string;
4100
+ };
4101
+ /**
4102
+ * Information about how a collection relates to this hierarchy
4103
+ */
4104
+ type SanitizedHierarchyRelatedCollection = {
4105
+ fieldName: string;
4106
+ hasMany: boolean;
4107
+ };
4108
+ /**
4109
+ * Client-safe hierarchy configuration (excludes functions that can't cross server-client boundary)
4110
+ */
4111
+ type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
4112
+
4113
+ type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
4043
4114
  type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
4044
4115
  type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
4045
4116
  type ClientCollectionConfig = {
@@ -4052,11 +4123,12 @@ type ClientCollectionConfig = {
4052
4123
  verify?: true;
4053
4124
  } & Omit<SanitizedCollectionConfig['auth'], 'forgotPassword' | 'strategies' | 'verify'>;
4054
4125
  fields: ClientField[];
4126
+ hierarchy?: ClientHierarchyConfig | false;
4055
4127
  labels: {
4056
4128
  plural: StaticLabel;
4057
4129
  singular: StaticLabel;
4058
4130
  };
4059
- } & Omit<SanitizedCollectionConfig, 'admin' | 'auth' | 'fields' | 'labels' | ServerOnlyCollectionProperties>;
4131
+ } & Omit<SanitizedCollectionConfig, 'admin' | 'auth' | 'fields' | 'hierarchy' | 'labels' | ServerOnlyCollectionProperties>;
4060
4132
  declare const createClientCollectionConfig: ({ collection, defaultIDType, i18n, importMap, }: {
4061
4133
  collection: SanitizedCollectionConfig;
4062
4134
  defaultIDType: Payload["config"]["db"]["defaultIDType"];
@@ -4070,7 +4142,7 @@ declare const createClientCollectionConfigs: ({ collections, defaultIDType, i18n
4070
4142
  importMap: ImportMap;
4071
4143
  }) => ClientCollectionConfig[];
4072
4144
 
4073
- type ServerOnlyGlobalProperties = keyof Pick<SanitizedGlobalConfig, 'access' | 'admin' | 'custom' | 'endpoints' | 'fields' | 'flattenedFields' | 'hooks'>;
4145
+ type ServerOnlyGlobalProperties = keyof Pick<SanitizedGlobalConfig, 'access' | 'admin' | 'custom' | 'endpoints' | 'fields' | 'flattenedFields' | 'hooks' | 'select'>;
4074
4146
  type ServerOnlyGlobalAdminProperties = keyof Pick<SanitizedGlobalConfig['admin'], 'components' | 'hidden'>;
4075
4147
  type ClientGlobalConfig = {
4076
4148
  admin: {
@@ -4258,7 +4330,6 @@ type AdminViewConfig = {
4258
4330
  strict?: boolean;
4259
4331
  };
4260
4332
  type AdminViewClientProps = {
4261
- browseByFolderSlugs?: SanitizedCollectionConfig['slug'][];
4262
4333
  clientConfig: ClientConfig;
4263
4334
  collectionSlug?: SanitizedCollectionConfig['slug'];
4264
4335
  docID?: number | string;
@@ -4275,7 +4346,6 @@ type AdminViewServerPropsOnly = {
4275
4346
  * @todo remove `docID` here as it is already contained in `initPageResult`
4276
4347
  */
4277
4348
  readonly docID?: number | string;
4278
- readonly folderID?: number | string;
4279
4349
  readonly globalConfig?: SanitizedGlobalConfig;
4280
4350
  readonly importMap: ImportMap;
4281
4351
  readonly initialData?: Data;
@@ -4314,7 +4384,7 @@ type InitPageResult = {
4314
4384
  /**
4315
4385
  * @todo This should be renamed to `ViewType` (singular)
4316
4386
  */
4317
- type ViewTypes = 'account' | 'collection-folders' | 'createFirstUser' | 'dashboard' | 'document' | 'folders' | 'list' | 'reset' | 'trash' | 'verify' | 'version' | ({} & string);
4387
+ type ViewTypes = 'account' | 'createFirstUser' | 'dashboard' | 'document' | 'hierarchy' | 'list' | 'reset' | 'trash' | 'verify' | 'version' | ({} & string);
4318
4388
  type ServerPropsFromView = {
4319
4389
  collectionConfig?: SanitizedConfig['collections'][number];
4320
4390
  globalConfig?: SanitizedConfig['globals'][number];
@@ -4451,94 +4521,6 @@ declare class UnverifiedEmail extends APIError {
4451
4521
  */
4452
4522
  type ErrorName = 'APIError' | 'AuthenticationError' | 'ErrorDeletingFile' | 'FileRetrievalError' | 'FileUploadError' | 'Forbidden' | 'Locked' | 'LockedAuth' | 'MissingFile' | 'NotFound' | 'QueryError' | 'UnverifiedEmail' | 'ValidationError';
4453
4523
 
4454
- type FolderBreadcrumb = {
4455
- folderType?: CollectionSlug[];
4456
- id: null | number | string;
4457
- name: string;
4458
- };
4459
- /**
4460
- * `${relationTo}-${id}` is used as a key for the item
4461
- */
4462
- type FolderDocumentItemKey = `${string}-${number | string}`;
4463
- /**
4464
- * Needed for document card view for upload enabled collections
4465
- */
4466
- type DocumentMediaData = {
4467
- filename?: string;
4468
- mimeType?: string;
4469
- url?: string;
4470
- };
4471
- /**
4472
- * A generic structure for a folder or document item.
4473
- */
4474
- type FolderOrDocument = {
4475
- itemKey: FolderDocumentItemKey;
4476
- relationTo: CollectionSlug;
4477
- value: {
4478
- _folderOrDocumentTitle: string;
4479
- createdAt?: string;
4480
- folderID?: number | string;
4481
- folderType: CollectionSlug[];
4482
- id: number | string;
4483
- updatedAt?: string;
4484
- } & DocumentMediaData;
4485
- };
4486
- type GetFolderDataResult = {
4487
- breadcrumbs: FolderBreadcrumb[] | null;
4488
- documents: FolderOrDocument[];
4489
- folderAssignedCollections: CollectionSlug[] | undefined;
4490
- subfolders: FolderOrDocument[];
4491
- };
4492
- type RootFoldersConfiguration = {
4493
- /**
4494
- * If true, the browse by folder view will be enabled
4495
- *
4496
- * @default true
4497
- */
4498
- browseByFolder?: boolean;
4499
- /**
4500
- * An array of functions to be ran when the folder collection is initialized
4501
- * This allows plugins to modify the collection configuration
4502
- */
4503
- collectionOverrides?: (({ collection, }: {
4504
- collection: Omit<CollectionConfig, 'trash'>;
4505
- }) => Omit<CollectionConfig, 'trash'> | Promise<Omit<CollectionConfig, 'trash'>>)[];
4506
- /**
4507
- * If true, you can scope folders to specific collections.
4508
- *
4509
- * @default true
4510
- */
4511
- collectionSpecific?: boolean;
4512
- /**
4513
- * Ability to view hidden fields and collections related to folders
4514
- *
4515
- * @default false
4516
- */
4517
- debug?: boolean;
4518
- /**
4519
- * The Folder field name
4520
- *
4521
- * @default "folder"
4522
- */
4523
- fieldName?: string;
4524
- /**
4525
- * Slug for the folder collection
4526
- *
4527
- * @default "payload-folders"
4528
- */
4529
- slug?: string;
4530
- };
4531
- type CollectionFoldersConfiguration = {
4532
- /**
4533
- * If true, the collection will be included in the browse by folder view
4534
- *
4535
- * @default true
4536
- */
4537
- browseByFolder?: boolean;
4538
- };
4539
- type BaseFolderSortKeys = 'createdAt' | 'name' | 'updatedAt';
4540
- type FolderSortKeys = `-${BaseFolderSortKeys}` | BaseFolderSortKeys;
4541
-
4542
4524
  declare const operations: readonly ["read", "update", "delete"];
4543
4525
  type ConstraintOperation = (typeof operations)[number];
4544
4526
  type DefaultConstraint = 'everyone' | 'onlyMe' | 'specificUsers';
@@ -4582,17 +4564,7 @@ type TaskInputOutput = {
4582
4564
  output: object;
4583
4565
  };
4584
4566
  type TaskHandlerResult<TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] | TaskInputOutput> = {
4585
- /**
4586
- * @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
4587
- */
4588
- errorMessage?: string;
4589
- /**
4590
- * @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
4591
- */
4592
- state: 'failed';
4593
- } | {
4594
4567
  output: TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] ? TypedJobs['tasks'][TTaskSlugOrInputOutput]['output'] : TTaskSlugOrInputOutput extends TaskInputOutput ? TTaskSlugOrInputOutput['output'] : never;
4595
- state?: 'succeeded';
4596
4568
  };
4597
4569
  type TaskHandlerArgs<TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] | TaskInputOutput, TWorkflowSlug extends keyof TypedJobs['workflows'] = string> = {
4598
4570
  /**
@@ -4655,17 +4627,7 @@ type RunInlineTaskFunction = <TTaskInput extends object, TTaskOutput extends obj
4655
4627
  req: PayloadRequest;
4656
4628
  tasks: RunTaskFunctions;
4657
4629
  }) => MaybePromise<{
4658
- /**
4659
- * @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
4660
- */
4661
- errorMessage?: string;
4662
- /**
4663
- * @deprecated Returning `state: 'failed'` is deprecated. Throw an error instead.
4664
- */
4665
- state: 'failed';
4666
- } | {
4667
4630
  output: TTaskOutput;
4668
- state?: 'succeeded';
4669
4631
  }>;
4670
4632
  }) => Promise<TTaskOutput>;
4671
4633
  type TaskCallbackArgs = {
@@ -5158,17 +5120,6 @@ type JobsConfig = {
5158
5120
  * Determine whether or not to delete a job after it has successfully completed.
5159
5121
  */
5160
5122
  deleteJobOnComplete?: boolean;
5161
- /**
5162
- * Specify depth for retrieving jobs from the queue.
5163
- * This should be as low as possible in order for job retrieval
5164
- * to be as efficient as possible. Setting it to anything higher than
5165
- * 0 will drastically affect performance, as less efficient database
5166
- * queries will be used.
5167
- *
5168
- * @default 0
5169
- * @deprecated - this will be removed in 4.0
5170
- */
5171
- depth?: number;
5172
5123
  /**
5173
5124
  * Enable concurrency controls for workflows and tasks.
5174
5125
  * When enabled, adds a `concurrencyKey` field to the jobs collection schema.
@@ -5201,16 +5152,6 @@ type JobsConfig = {
5201
5152
  [queue: string]: Sort;
5202
5153
  };
5203
5154
  } | Sort;
5204
- /**
5205
- * By default, the job system uses direct database calls for optimal performance.
5206
- * If you added custom hooks to your jobs collection, you can set this to true to
5207
- * use the standard Payload API for all job operations. This is discouraged, as it will
5208
- * drastically affect performance.
5209
- *
5210
- * @default false
5211
- * @deprecated - this will be removed in 4.0
5212
- */
5213
- runHooks?: boolean;
5214
5155
  /**
5215
5156
  * A function that will be executed before Payload picks up jobs which are configured by the `jobs.autorun` function.
5216
5157
  * If this function returns true, jobs will be queried and picked up. If it returns false, jobs will not be run.
@@ -5927,6 +5868,27 @@ type DashboardConfig = {
5927
5868
  type SanitizedDashboardConfig = {
5928
5869
  widgets: Array<Omit<Widget, 'Component'>>;
5929
5870
  };
5871
+ type SidebarTab = {
5872
+ /** Tab components */
5873
+ components: {
5874
+ /** Component to render as tab content */
5875
+ Content: CustomComponent;
5876
+ /** Component to render as tab icon */
5877
+ Icon: PayloadComponent;
5878
+ };
5879
+ /** Disable this tab */
5880
+ disabled?: boolean;
5881
+ /** Make this tab active by default */
5882
+ isDefaultActive?: boolean;
5883
+ /**
5884
+ * Label for accessibility and tab display.
5885
+ * Supports i18n by passing an object with locale keys, or a function with `t` for translations.
5886
+ * If not provided, the slug will be used as fallback.
5887
+ */
5888
+ label?: LabelFunction | StaticLabel;
5889
+ /** Unique identifier for override/disable */
5890
+ slug: string;
5891
+ };
5930
5892
  /**
5931
5893
  * This is the central configuration
5932
5894
  *
@@ -6037,6 +5999,11 @@ type Config = {
6037
5999
  * These components will be rendered in a popup menu above the logout button.
6038
6000
  */
6039
6001
  settingsMenu?: CustomComponent[];
6002
+ /** Sidebar configuration */
6003
+ sidebar?: {
6004
+ /** Extensible tab system */
6005
+ tabs?: SidebarTab[];
6006
+ };
6040
6007
  /**
6041
6008
  * Replace or modify top-level admin routes, or add new ones:
6042
6009
  * + `Account` - `/admin/account`
@@ -6109,11 +6076,6 @@ type Config = {
6109
6076
  * @default '/account'
6110
6077
  */
6111
6078
  account?: `/${string}`;
6112
- /** The route for the browse by folder view.
6113
- *
6114
- * @default '/browse-by-folder'
6115
- */
6116
- browseByFolder?: `/${string}`;
6117
6079
  /** The route for the create first user page.
6118
6080
  *
6119
6081
  * @default '/create-first-user'
@@ -6297,12 +6259,6 @@ type Config = {
6297
6259
  */
6298
6260
  localizeStatus?: boolean;
6299
6261
  };
6300
- /**
6301
- * Options for folder view within the admin panel
6302
- *
6303
- * @experimental This feature may change in minor versions until it is fully stable
6304
- */
6305
- folders?: false | RootFoldersConfiguration;
6306
6262
  /**
6307
6263
  * @see https://payloadcms.com/docs/configuration/globals#global-configs
6308
6264
  */
@@ -6703,36 +6659,129 @@ type EditConfigWithoutRoot = {
6703
6659
  versions?: DefaultDocumentViewConfig;
6704
6660
  };
6705
6661
  type EntityDescriptionComponent = CustomComponent;
6706
- type EntityDescriptionFunction = ({ t }: {
6707
- t: TFunction;
6708
- }) => string;
6709
- type EntityDescription = EntityDescriptionFunction | Record<string, string> | string;
6710
-
6711
- type ImportIdentifier = string;
6712
- type ImportSpecifier = string;
6713
- type ImportPath = string;
6714
- /**
6715
- * Import Map before being written to the file. Only contains all paths
6716
- */
6717
- type InternalImportMap = {
6718
- [path: UserImportPath]: ImportIdentifier;
6719
- };
6720
- /**
6721
- * Imports of the import map.
6722
- */
6723
- type Imports = {
6724
- [identifier: ImportIdentifier]: {
6725
- path: ImportPath;
6726
- specifier: ImportSpecifier;
6727
- };
6728
- };
6729
6662
  /**
6730
- * Import Map after being imported from the actual import map. Contains all the actual imported components
6663
+ * Custom components rendered within the Edit View.
6664
+ * Shared by Collection and Global configs.
6731
6665
  */
6732
- type ImportMap = {
6733
- [path: UserImportPath]: any;
6734
- };
6735
- type AddToImportMap = (payloadComponent?: PayloadComponent | PayloadComponent[]) => void;
6666
+ type SharedEditViewComponents = {
6667
+ /**
6668
+ * Inject custom components before the document controls
6669
+ */
6670
+ beforeDocumentControls?: CustomComponent[];
6671
+ /**
6672
+ * Inject custom components before the document metadata (left of status/timestamps)
6673
+ */
6674
+ BeforeDocumentMeta?: CustomComponent[];
6675
+ /**
6676
+ * Inject custom components within the 3-dot menu dropdown
6677
+ */
6678
+ editMenuItems?: CustomComponent[];
6679
+ /**
6680
+ * Replaces the "Preview" button
6681
+ */
6682
+ PreviewButton?: CustomComponent;
6683
+ /**
6684
+ * Replaces the "Publish" button
6685
+ * + drafts must be enabled
6686
+ */
6687
+ PublishButton?: PayloadComponent<PublishButtonServerProps, PublishButtonClientProps>;
6688
+ /**
6689
+ * Replaces the "Save" button
6690
+ * + drafts must be disabled
6691
+ */
6692
+ SaveButton?: CustomComponent;
6693
+ /**
6694
+ * Replaces the "Save Draft" button
6695
+ * + drafts must be enabled
6696
+ * + autosave must be disabled
6697
+ */
6698
+ SaveDraftButton?: CustomComponent;
6699
+ /**
6700
+ * Replaces the "Status" section
6701
+ */
6702
+ Status?: CustomStatus;
6703
+ /**
6704
+ * Replaces the "Unpublish" button
6705
+ * + drafts must be enabled
6706
+ */
6707
+ UnpublishButton?: PayloadComponent<UnpublishButtonServerProps, UnpublishButtonClientProps>;
6708
+ };
6709
+ /**
6710
+ * Custom views object shared by Collection and Global configs.
6711
+ * Allows custom view keys (matched by path) alongside the document `edit` view.
6712
+ */
6713
+ type SharedEntityViews = {
6714
+ /**
6715
+ * Add custom views.
6716
+ * Any additional keys define custom views that are matched by path and rendered at the entity level.
6717
+ * @link https://payloadcms.com/docs/custom-components/custom-views
6718
+ * @example
6719
+ * ```ts
6720
+ * views: {
6721
+ * audit: {
6722
+ * Component: '/path/to/AuditView',
6723
+ * path: '/audit',
6724
+ * exact: true,
6725
+ * }
6726
+ * }
6727
+ * ```
6728
+ */
6729
+ [key: string]: {
6730
+ actions?: CustomComponent[];
6731
+ Component?: PayloadComponent;
6732
+ } | AdminViewConfig | EditConfig | undefined;
6733
+ /**
6734
+ * Replace, modify, or add new "document" views.
6735
+ * @link https://payloadcms.com/docs/custom-components/document-views
6736
+ */
6737
+ edit?: EditConfig;
6738
+ };
6739
+ /**
6740
+ * Admin component slots shared by Collection and Global configs.
6741
+ * Collection extends this with list-only slots and `edit.Upload`; Global uses it as-is.
6742
+ */
6743
+ type SharedAdminComponents = {
6744
+ /**
6745
+ * Custom Description component for the entity. Rendered in the Edit View
6746
+ * (and List View for Collections).
6747
+ */
6748
+ Description?: EntityDescriptionComponent;
6749
+ /**
6750
+ * Components within the edit view
6751
+ */
6752
+ edit?: SharedEditViewComponents;
6753
+ views?: SharedEntityViews;
6754
+ };
6755
+ type EntityDescriptionFunction = ({ t }: {
6756
+ t: TFunction;
6757
+ }) => string;
6758
+ type EntityDescription = EntityDescriptionFunction | Record<string, string> | string;
6759
+
6760
+ type ImportIdentifier = string;
6761
+ type ImportSpecifier = string;
6762
+ type ImportPath = string;
6763
+ /**
6764
+ * Import Map before being written to the file. Only contains all paths
6765
+ */
6766
+ type InternalImportMap = {
6767
+ [path: UserImportPath]: ImportIdentifier;
6768
+ };
6769
+ /**
6770
+ * Imports of the import map.
6771
+ */
6772
+ type Imports = {
6773
+ [identifier: ImportIdentifier]: {
6774
+ path: ImportPath;
6775
+ specifier: ImportSpecifier;
6776
+ };
6777
+ };
6778
+ /**
6779
+ * Import Map after being imported from the actual import map. Contains all the actual imported components
6780
+ */
6781
+ type ImportMap = {
6782
+ [path: UserImportPath]: any;
6783
+ };
6784
+ type AddToImportMap = (payloadComponent?: PayloadComponent | PayloadComponent[]) => void;
6736
6785
  declare function generateImportMap(config: SanitizedConfig, options?: {
6737
6786
  force?: boolean; /**
6738
6787
  * If true, will not throw an error if the import map file path cannot be resolved
@@ -7001,6 +7050,7 @@ type EditMenuItemsServerPropsOnly = {} & ServerProps;
7001
7050
  type EditMenuItemsServerProps = EditMenuItemsClientProps & EditMenuItemsServerPropsOnly;
7002
7051
 
7003
7052
  type NavPreferences = {
7053
+ activeTab?: string;
7004
7054
  groups: NavGroupPreferences;
7005
7055
  open: boolean;
7006
7056
  };
@@ -7009,6 +7059,14 @@ type NavGroupPreferences = {
7009
7059
  open: boolean;
7010
7060
  };
7011
7061
  };
7062
+ type SidebarTabClientProps = {
7063
+ documentSubViewType?: DocumentSubViewTypes;
7064
+ viewType?: ViewTypes;
7065
+ };
7066
+ type SidebarTabServerPropsOnly = {
7067
+ req?: PayloadRequest;
7068
+ } & ServerProps;
7069
+ type SidebarTabServerProps = SidebarTabClientProps & SidebarTabServerPropsOnly;
7012
7070
 
7013
7071
  type PreviewButtonClientProps = {};
7014
7072
  type PreviewButtonServerPropsOnly = {} & ServerProps;
@@ -7718,43 +7776,6 @@ type BuildTableStateArgs = {
7718
7776
  renderRowTypes?: boolean;
7719
7777
  tableAppearance?: 'condensed' | 'default';
7720
7778
  };
7721
- type BuildCollectionFolderViewResult = {
7722
- View: React.ReactNode;
7723
- };
7724
- type GetFolderResultsComponentAndDataArgs = {
7725
- /**
7726
- * If true and no folderID is provided, only folders will be returned.
7727
- * If false, the results will include documents from the active collections.
7728
- */
7729
- browseByFolder: boolean;
7730
- /**
7731
- * Used to filter document types to include in the results/display.
7732
- *
7733
- * i.e. ['folders', 'posts'] will only include folders and posts in the results.
7734
- *
7735
- * collectionsToQuery?
7736
- */
7737
- collectionsToDisplay: CollectionSlug[];
7738
- /**
7739
- * Used to determine how the results should be displayed.
7740
- */
7741
- displayAs: 'grid' | 'list';
7742
- /**
7743
- * Used to filter folders by the collections they are assigned to.
7744
- *
7745
- * i.e. ['posts'] will only include folders that are assigned to the posts collections.
7746
- */
7747
- folderAssignedCollections: CollectionSlug[];
7748
- /**
7749
- * The ID of the folder to filter results by.
7750
- */
7751
- folderID: number | string | undefined;
7752
- req: PayloadRequest;
7753
- /**
7754
- * The sort order for the results.
7755
- */
7756
- sort: FolderSortKeys;
7757
- };
7758
7779
  type SlugifyServerFunctionArgs = {
7759
7780
  collectionSlug?: CollectionSlug;
7760
7781
  globalSlug?: GlobalSlug;
@@ -7784,59 +7805,44 @@ type WidgetServerProps<TWidget extends {
7784
7805
  } & Exclude<TWidget, never>>;
7785
7806
  } & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
7786
7807
 
7787
- type FolderListViewSlots = {
7788
- AfterFolderList?: React.ReactNode;
7789
- AfterFolderListTable?: React.ReactNode;
7790
- BeforeFolderList?: React.ReactNode;
7791
- BeforeFolderListTable?: React.ReactNode;
7792
- Description?: React.ReactNode;
7793
- listMenuItems?: React.ReactNode[];
7794
- };
7795
- type FolderListViewServerPropsOnly = {
7796
- collectionConfig: SanitizedCollectionConfig;
7797
- documents: FolderOrDocument[];
7798
- subfolders: FolderOrDocument[];
7799
- } & ServerProps;
7800
- type FolderListViewServerProps = FolderListViewClientProps & FolderListViewServerPropsOnly;
7801
- type FolderListViewClientProps = {
7802
- activeCollectionFolderSlugs?: SanitizedCollectionConfig['slug'][];
7803
- allCollectionFolderSlugs: SanitizedCollectionConfig['slug'][];
7804
- allowCreateCollectionSlugs: SanitizedCollectionConfig['slug'][];
7805
- baseFolderPath: `/${string}`;
7806
- beforeActions?: React.ReactNode[];
7807
- breadcrumbs: FolderBreadcrumb[];
7808
- collectionSlug?: SanitizedCollectionConfig['slug'];
7809
- disableBulkDelete?: boolean;
7810
- disableBulkEdit?: boolean;
7811
- documents: FolderOrDocument[];
7812
- enableRowSelections?: boolean;
7813
- folderAssignedCollections?: SanitizedCollectionConfig['slug'][];
7814
- folderFieldName: string;
7815
- folderID: null | number | string;
7816
- FolderResultsComponent: React.ReactNode;
7817
- search?: string;
7818
- sort?: FolderSortKeys;
7819
- subfolders: FolderOrDocument[];
7820
- viewPreference: 'grid' | 'list';
7821
- } & FolderListViewSlots;
7822
- type FolderListViewSlotSharedClientProps = {
7823
- collectionSlug: SanitizedCollectionConfig['slug'];
7824
- hasCreatePermission: boolean;
7825
- newDocumentURL: string;
7808
+ type RelatedDocumentsGrouped = {
7809
+ [collectionSlug: string]: {
7810
+ hasMany: boolean;
7811
+ label: string;
7812
+ result: PaginatedDocs;
7813
+ };
7826
7814
  };
7827
- type BeforeFolderListClientProps = FolderListViewSlotSharedClientProps;
7828
- type BeforeFolderListServerPropsOnly = {} & FolderListViewServerPropsOnly;
7829
- type BeforeFolderListServerProps = BeforeFolderListClientProps & BeforeFolderListServerPropsOnly;
7830
- type BeforeFolderListTableClientProps = FolderListViewSlotSharedClientProps;
7831
- type BeforeFolderListTableServerPropsOnly = {} & FolderListViewServerPropsOnly;
7832
- type BeforeFolderListTableServerProps = BeforeFolderListTableClientProps & BeforeFolderListTableServerPropsOnly;
7833
- type AfterFolderListClientProps = FolderListViewSlotSharedClientProps;
7834
- type AfterFolderListServerPropsOnly = {} & FolderListViewServerPropsOnly;
7835
- type AfterFolderListServerProps = AfterFolderListClientProps & AfterFolderListServerPropsOnly;
7836
- type AfterFolderListTableClientProps = FolderListViewSlotSharedClientProps;
7837
- type AfterFolderListTableServerPropsOnly = {} & FolderListViewServerPropsOnly;
7838
- type AfterFolderListTableServerProps = AfterFolderListTableClientProps & AfterFolderListTableServerPropsOnly;
7839
7815
 
7816
+ type HierarchyViewData = {
7817
+ /**
7818
+ * Collections allowed for creation based on parent's collectionSpecific field.
7819
+ * Undefined means all related collections are allowed.
7820
+ * Always includes the hierarchy collection itself.
7821
+ */
7822
+ allowedCollections?: Array<{
7823
+ label: string;
7824
+ slug: string;
7825
+ }>;
7826
+ /** Base filter applied to hierarchy collection queries (e.g., tenant filter) */
7827
+ baseFilter?: Where;
7828
+ /** Breadcrumb trail to the current parent */
7829
+ breadcrumbs: Array<{
7830
+ id: number | string;
7831
+ title: string;
7832
+ }>;
7833
+ /** Children of the current parent (same collection) */
7834
+ childrenData: PaginatedDocs;
7835
+ /** The current parent document data (for display and collectionSpecific field access) */
7836
+ parent: null | (Record<string, unknown> & TypeWithID);
7837
+ /** The parent field name for building queries */
7838
+ parentFieldName: string;
7839
+ /** The parent ID being viewed */
7840
+ parentId: null | number | string;
7841
+ /** Base filters for related collections (keyed by collection slug) */
7842
+ relatedBaseFilters?: Record<string, Where>;
7843
+ /** Related documents grouped by collection */
7844
+ relatedDocumentsByCollection: RelatedDocumentsGrouped;
7845
+ };
7840
7846
  type ListViewSlots = {
7841
7847
  AfterList?: React.ReactNode;
7842
7848
  AfterListTable?: React.ReactNode;
@@ -7861,6 +7867,7 @@ type ListViewServerPropsOnly = {
7861
7867
  } & ServerProps;
7862
7868
  type ListViewServerProps = ListViewClientProps & ListViewServerPropsOnly;
7863
7869
  type ListViewClientProps = {
7870
+ baseFilter?: Where;
7864
7871
  beforeActions?: React.ReactNode[];
7865
7872
  collectionSlug: SanitizedCollectionConfig['slug'];
7866
7873
  columnState: Column[];
@@ -7871,6 +7878,14 @@ type ListViewClientProps = {
7871
7878
  hasCreatePermission: boolean;
7872
7879
  hasDeletePermission?: boolean;
7873
7880
  hasTrashPermission?: boolean;
7881
+ /**
7882
+ * Hierarchy view data - present when viewing a hierarchy collection with a parent selected
7883
+ */
7884
+ hierarchyData?: HierarchyViewData;
7885
+ /**
7886
+ * Resolved icon component for hierarchy collections
7887
+ */
7888
+ HierarchyIcon?: React.ReactNode;
7874
7889
  /**
7875
7890
  * @deprecated
7876
7891
  */
@@ -7969,6 +7984,7 @@ type FieldRow = {
7969
7984
  };
7970
7985
  type DocumentSlots = {
7971
7986
  BeforeDocumentControls?: React$1.ReactNode;
7987
+ BeforeDocumentMeta?: React$1.ReactNode;
7972
7988
  Description?: React$1.ReactNode;
7973
7989
  EditMenuItems?: React$1.ReactNode;
7974
7990
  LivePreview?: React$1.ReactNode;
@@ -9250,6 +9266,36 @@ type AfterForgotPasswordHook = (args: {
9250
9266
  collection: SanitizedCollectionConfig;
9251
9267
  context: RequestContext;
9252
9268
  }) => any;
9269
+ /**
9270
+ * Configuration options for folder hierarchy preset.
9271
+ * Subset of HierarchyConfig with folder-appropriate defaults applied.
9272
+ */
9273
+ type FoldersConfig = {
9274
+ admin?: {
9275
+ components?: {
9276
+ Icon?: PayloadComponent;
9277
+ };
9278
+ injectSidebarTab?: boolean;
9279
+ treeLimit?: number;
9280
+ useHeaderButton?: boolean;
9281
+ };
9282
+ collectionSpecific?: {
9283
+ fieldName?: string;
9284
+ } | boolean;
9285
+ joinField?: HierarchyJoinFieldConfig;
9286
+ parentFieldName?: string;
9287
+ slugField?: string;
9288
+ slugify?: (text: string) => string;
9289
+ slugPathFieldName?: string;
9290
+ titlePathFieldName?: string;
9291
+ };
9292
+ /**
9293
+ * Configuration options for tags hierarchy preset.
9294
+ * Same as FoldersConfig but allowHasMany can be overridden.
9295
+ */
9296
+ type TagsConfig = {
9297
+ allowHasMany?: boolean;
9298
+ } & FoldersConfig;
9253
9299
  type BaseFilter = (args: {
9254
9300
  limit: number;
9255
9301
  locale?: TypedLocale;
@@ -9290,80 +9336,18 @@ type CollectionAdminOptions = {
9290
9336
  afterListTable?: CustomComponent[];
9291
9337
  beforeList?: CustomComponent[];
9292
9338
  beforeListTable?: CustomComponent[];
9293
- Description?: EntityDescriptionComponent;
9294
9339
  /**
9295
9340
  * Components within the edit view
9296
9341
  */
9297
9342
  edit?: {
9298
- /**
9299
- * Inject custom components before the document controls
9300
- */
9301
- beforeDocumentControls?: CustomComponent[];
9302
- /**
9303
- * Inject custom components within the 3-dot menu dropdown
9304
- */
9305
- editMenuItems?: CustomComponent[];
9306
- /**
9307
- * Replaces the "Preview" button
9308
- */
9309
- PreviewButton?: CustomComponent;
9310
- /**
9311
- * Replaces the "Publish" button
9312
- * + drafts must be enabled
9313
- */
9314
- PublishButton?: PayloadComponent<PublishButtonServerProps, PublishButtonClientProps>;
9315
- /**
9316
- * Replaces the "Save" button
9317
- * + drafts must be disabled
9318
- */
9319
- SaveButton?: CustomComponent;
9320
- /**
9321
- * Replaces the "Save Draft" button
9322
- * + drafts must be enabled
9323
- * + autosave must be disabled
9324
- */
9325
- SaveDraftButton?: CustomComponent;
9326
- /**
9327
- * Replaces the "Status" section
9328
- */
9329
- Status?: CustomStatus;
9330
- /**
9331
- * Replaces the "Unpublish" button
9332
- * + drafts must be enabled
9333
- */
9334
- UnpublishButton?: PayloadComponent<UnpublishButtonServerProps, UnpublishButtonClientProps>;
9335
9343
  /**
9336
9344
  * Replaces the "Upload" section
9337
9345
  * + upload must be enabled
9338
9346
  */
9339
9347
  Upload?: CustomUpload;
9340
- };
9348
+ } & SharedEditViewComponents;
9341
9349
  listMenuItems?: CustomComponent[];
9342
9350
  views?: {
9343
- /**
9344
- * Add custom collection views.
9345
- * Any additional keys define custom collection views that are matched by path and rendered at the collection level.
9346
- * @link https://payloadcms.com/docs/custom-components/custom-views
9347
- * @example
9348
- * ```ts
9349
- * views: {
9350
- * grid: {
9351
- * Component: '/path/to/GridView',
9352
- * path: '/grid',
9353
- * exact: true,
9354
- * }
9355
- * }
9356
- * ```
9357
- */
9358
- [key: string]: {
9359
- actions?: CustomComponent[];
9360
- Component?: PayloadComponent;
9361
- } | AdminViewConfig | EditConfig | undefined;
9362
- /**
9363
- * Replace, modify, or add new "document" views.
9364
- * @link https://payloadcms.com/docs/custom-components/document-views
9365
- */
9366
- edit?: EditConfig;
9367
9351
  /**
9368
9352
  * Replace or modify the "list" view.
9369
9353
  * @link https://payloadcms.com/docs/custom-components/list-view
@@ -9372,8 +9356,8 @@ type CollectionAdminOptions = {
9372
9356
  actions?: CustomComponent[];
9373
9357
  Component?: PayloadComponent;
9374
9358
  };
9375
- };
9376
- };
9359
+ } & SharedEntityViews;
9360
+ } & Omit<SharedAdminComponents, 'edit' | 'views'>;
9377
9361
  /** Extension point to add your custom data. Available in server and client. */
9378
9362
  custom?: CollectionAdminCustom;
9379
9363
  /**
@@ -9389,15 +9373,6 @@ type CollectionAdminOptions = {
9389
9373
  * @default false
9390
9374
  */
9391
9375
  disableCopyToLocale?: boolean;
9392
- /**
9393
- * Performance opt-in. If true, will use the [Select API](https://payloadcms.com/docs/queries/select) when
9394
- * loading the list view to query only the active columns, as opposed to the entire documents.
9395
- * If your cells require specific fields that may be unselected, such as within hooks, etc.,
9396
- * use `forceSelect` in conjunction with this property.
9397
- *
9398
- * @experimental This is an experimental feature and may change in the future. Use at your own risk.
9399
- */
9400
- enableListViewSelectAPI?: boolean;
9401
9376
  enableRichTextLink?: boolean;
9402
9377
  enableRichTextRelationship?: boolean;
9403
9378
  /**
@@ -9441,10 +9416,6 @@ type CollectionAdminOptions = {
9441
9416
  hidden?: ((args: {
9442
9417
  user: ClientUser;
9443
9418
  }) => boolean) | boolean;
9444
- /**
9445
- * Hide the API URL within the Edit view
9446
- */
9447
- hideAPIURL?: boolean;
9448
9419
  /**
9449
9420
  * Additional fields to be searched via the full text search
9450
9421
  */
@@ -9534,13 +9505,13 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9534
9505
  endpoints?: false | Omit<Endpoint, 'root'>[];
9535
9506
  fields: Field[];
9536
9507
  /**
9537
- * Enables folders for this collection
9538
- */
9539
- folders?: boolean | CollectionFoldersConfiguration;
9540
- /**
9541
- * Specify which fields should be selected always, regardless of the `select` query which can be useful that the field exists for access control / hooks
9508
+ * Enable folder hierarchy preset for this collection.
9509
+ * Sets hierarchy with folder defaults: allowHasMany: false, FolderIcon, useHeaderButton: true
9510
+ *
9511
+ * Use `true` for defaults, or object for customization.
9512
+ * Cannot be used together with `tags` or `hierarchy`.
9542
9513
  */
9543
- forceSelect?: IsAny$1<SelectFromCollectionSlug<TSlug>> extends true ? SelectIncludeType : SelectFromCollectionSlug<TSlug>;
9514
+ folders?: boolean | FoldersConfig;
9544
9515
  /**
9545
9516
  * GraphQL configuration
9546
9517
  */
@@ -9550,6 +9521,25 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9550
9521
  pluralName?: string;
9551
9522
  singularName?: string;
9552
9523
  } | false;
9524
+ /**
9525
+ * Enable hierarchical tree structure for this collection
9526
+ *
9527
+ * Use `true` to enable with defaults (auto-detects parent field)
9528
+ * or provide configuration object
9529
+ *
9530
+ * @example
9531
+ * // Enable with defaults
9532
+ * hierarchy: true
9533
+ *
9534
+ * @example
9535
+ * // Customize field names and slugify function
9536
+ * hierarchy: {
9537
+ * parentFieldName: 'parent',
9538
+ * slugify: (text) => customSlugify(text),
9539
+ * slugPathFieldName: '_breadcrumbPath'
9540
+ * }
9541
+ */
9542
+ hierarchy?: boolean | HierarchyConfig;
9553
9543
  /**
9554
9544
  * Hooks to modify Payload functionality
9555
9545
  */
@@ -9620,6 +9610,14 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9620
9610
  */
9621
9611
  orderable?: boolean;
9622
9612
  slug: string;
9613
+ /**
9614
+ * Enable tags hierarchy preset for this collection.
9615
+ * Sets hierarchy with tag defaults: allowHasMany: true, TagIcon
9616
+ *
9617
+ * Use `true` for defaults, or object for customization.
9618
+ * Cannot be used together with `folders` or `hierarchy`.
9619
+ */
9620
+ tags?: boolean | TagsConfig;
9623
9621
  /**
9624
9622
  * Add `createdAt`, `deletedAt` and `updatedAt` fields
9625
9623
  *
@@ -9659,7 +9657,7 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9659
9657
  * @default false // disable versioning
9660
9658
  */
9661
9659
  versions?: boolean | IncomingCollectionVersions;
9662
- };
9660
+ } & Pick<WithSelectFn<IsAny$1<SelectFromCollectionSlug<TSlug>> extends true ? SelectIncludeType : SelectFromCollectionSlug<TSlug>>, 'select'>;
9663
9661
  type SanitizedJoin = {
9664
9662
  /**
9665
9663
  * The field configuration defining the join
@@ -9686,7 +9684,7 @@ type SanitizedJoins = {
9686
9684
  * @todo remove the `DeepRequired` in v4.
9687
9685
  * We don't actually guarantee that all properties are set when sanitizing configs.
9688
9686
  */
9689
- interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>, 'admin' | 'auth' | 'endpoints' | 'fields' | 'folders' | 'slug' | 'upload' | 'versions'> {
9687
+ interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>, 'admin' | 'auth' | 'endpoints' | 'fields' | 'folder' | 'folders' | 'hierarchy' | 'slug' | 'tags' | 'upload' | 'versions'> {
9690
9688
  admin: CollectionAdminOptions;
9691
9689
  auth: Auth;
9692
9690
  endpoints: Endpoint[] | false;
@@ -9696,10 +9694,13 @@ interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>,
9696
9694
  * Rows / collapsible / tabs w/o name `fields` merged to top, UIs are excluded
9697
9695
  */
9698
9696
  flattenedFields: FlattenedField$1[];
9697
+ /**
9698
+ * Hierarchy configuration (when collection is a hierarchy type like folders or tags)
9699
+ */
9700
+ hierarchy: false | SanitizedHierarchyConfig;
9699
9701
  /**
9700
9702
  * Object of collections to join 'Join Fields object keyed by collection
9701
9703
  */
9702
- folders: CollectionFoldersConfiguration | false;
9703
9704
  joins: SanitizedJoins;
9704
9705
  /**
9705
9706
  * List of all polymorphic join fields
@@ -9901,6 +9902,49 @@ type SelectExcludeType = {
9901
9902
  };
9902
9903
  type SelectMode = 'exclude' | 'include';
9903
9904
  type SelectType = SelectExcludeType | SelectIncludeType;
9905
+ /**
9906
+ * Operations that invoke an entity-level `select` function.
9907
+ *
9908
+ * Narrower than `HookOperationType`: `select` runs only for read- and
9909
+ * write-path operations that materialize a document (`create`, `delete`,
9910
+ * `read`, `restoreVersion`, `update`). Operations like `autosave`, `count`,
9911
+ * `countVersions`, `forgotPassword`, `login`, `readDistinct`, `refresh`, and
9912
+ * `resetPassword` do not invoke `select` and are intentionally excluded.
9913
+ */
9914
+ type SelectFnOperation = 'create' | 'delete' | 'read' | 'restoreVersion' | 'update';
9915
+ type SelectFnArgs = {
9916
+ operation: SelectFnOperation;
9917
+ req: PayloadRequest;
9918
+ /** The caller's `select` arg, or `undefined` if not provided. */
9919
+ select?: SelectType;
9920
+ };
9921
+ type SelectFn<TSelect extends SelectType = SelectType> = (args: SelectFnArgs) => TSelect | undefined;
9922
+ /**
9923
+ * Shared shape for the entity-level `select` config used by Collections and Globals.
9924
+ * The JSDoc on the `select` property is the single source of truth — pick from this
9925
+ * type when defining the config:
9926
+ *
9927
+ * & Pick<WithSelectFn<...>, 'select'>
9928
+ */
9929
+ type WithSelectFn<TSelect extends SelectType = SelectType> = {
9930
+ /**
9931
+ * Entity-level Select API configuration.
9932
+ *
9933
+ * A function that receives the current request context (`operation`, `req`,
9934
+ * the caller's `select`) and returns the final `select` to apply, replacing
9935
+ * the caller's. Return `undefined` to leave the caller's `select` unchanged.
9936
+ *
9937
+ * Useful to dynamically modify the caller's selection based on the request context:
9938
+ * - Forcing a field to be populated for reference within hooks / access control.
9939
+ * - Differentiating between API requests and admin panel requests, to optimize
9940
+ * the amount of data being queried in each case.
9941
+ *
9942
+ * Note: per-document data is not available — this runs before the read.
9943
+ *
9944
+ * @see https://payloadcms.com/docs/queries/select
9945
+ */
9946
+ select?: SelectFn<TSelect>;
9947
+ };
9904
9948
  type ApplyDisableErrors<T, DisableErrors = false> = false extends DisableErrors ? T : null | T;
9905
9949
  type TransformDataWithSelect<Data extends Record<string, any>, Select extends SelectType> = Select extends never ? Data : string extends keyof Select ? Data : string extends keyof Omit<Data, 'id'> ? Select extends SelectIncludeType ? {
9906
9950
  [K in Data extends TypeWithID ? 'id' | keyof Select : keyof Select]: K extends 'id' ? number | string : unknown;
@@ -11317,6 +11361,8 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
11317
11361
  } & Pick<FindOptions<string, SelectType>, 'select'>;
11318
11362
  type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
11319
11363
 
11364
+ declare const accountLockFields: Field[];
11365
+
11320
11366
  // Generated by dts-bundle-generator v9.5.1
11321
11367
 
11322
11368
  /**
@@ -12095,8 +12141,6 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
12095
12141
  where?: Where;
12096
12142
  };
12097
12143
 
12098
- declare const accountLockFields: Field[];
12099
-
12100
12144
  declare const apiKeyFields: Field[];
12101
12145
 
12102
12146
  declare const baseAuthFields: Field[];
@@ -12177,32 +12221,32 @@ type Result<TData> = {
12177
12221
  };
12178
12222
  declare const registerFirstUserOperation: <TSlug extends AuthCollectionSlug>(args: Arguments$7<TSlug>) => Promise<Result<DataFromCollectionSlug<TSlug>>>;
12179
12223
 
12180
- type Args$k = {
12224
+ type Args$j = {
12181
12225
  collection: Collection;
12182
12226
  req: PayloadRequest;
12183
12227
  token: string;
12184
12228
  };
12185
- declare const verifyEmailOperation: (args: Args$k) => Promise<boolean>;
12229
+ declare const verifyEmailOperation: (args: Args$j) => Promise<boolean>;
12186
12230
 
12187
12231
  /**
12188
12232
  * Authentication strategy function for JWT tokens
12189
12233
  */
12190
12234
  declare const JWTAuthentication: AuthStrategyFunction;
12191
12235
 
12192
- type Args$j = {
12236
+ type Args$i = {
12193
12237
  collection: SanitizedCollectionConfig;
12194
12238
  payload: Payload;
12195
12239
  user: TypedUser;
12196
12240
  };
12197
- declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$j) => Promise<void>;
12241
+ declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
12198
12242
 
12199
- type Args$i = {
12243
+ type Args$h = {
12200
12244
  collection: SanitizedCollectionConfig;
12201
12245
  doc: Record<string, unknown> & TypeWithID;
12202
12246
  payload: Payload;
12203
12247
  req: PayloadRequest;
12204
12248
  };
12205
- declare const resetLoginAttempts: ({ collection, doc, payload, req, }: Args$i) => Promise<void>;
12249
+ declare const resetLoginAttempts: ({ collection, doc, payload, req, }: Args$h) => Promise<void>;
12206
12250
 
12207
12251
  declare function genImportMapIterateFields({ addToImportMap, baseDir, config, fields, importMap, imports, }: {
12208
12252
  addToImportMap: AddToImportMap;
@@ -12213,7 +12257,7 @@ declare function genImportMapIterateFields({ addToImportMap, baseDir, config, fi
12213
12257
  imports: Imports;
12214
12258
  }): void;
12215
12259
 
12216
- type Args$h = {
12260
+ type Args$g = {
12217
12261
  config: SanitizedConfig;
12218
12262
  /**
12219
12263
  * Override the migration directory. Useful for testing when the CWD differs
@@ -12222,7 +12266,7 @@ type Args$h = {
12222
12266
  migrationDir?: string;
12223
12267
  parsedArgs: ParsedArgs;
12224
12268
  };
12225
- declare const migrate$1: ({ config, migrationDir, parsedArgs }: Args$h) => Promise<void>;
12269
+ declare const migrate$1: ({ config, migrationDir, parsedArgs }: Args$g) => Promise<void>;
12226
12270
 
12227
12271
  declare const getDataLoader: (req: PayloadRequest) => {
12228
12272
  find: Payload["find"];
@@ -12400,6 +12444,94 @@ declare function getLocalizedPaths({ collectionSlug, fields, globalSlug, incomin
12400
12444
  payload: Payload;
12401
12445
  }): PathToQuery[];
12402
12446
 
12447
+ type ConfigFieldState = {
12448
+ localized: boolean;
12449
+ };
12450
+ type ConfigEntityState = {
12451
+ autosave: boolean;
12452
+ drafts: boolean;
12453
+ fields: Record<string, ConfigFieldState>;
12454
+ localizeStatus: boolean;
12455
+ versions: boolean;
12456
+ };
12457
+ type ConfigSnapshot = {
12458
+ collections: Record<string, ConfigEntityState>;
12459
+ globals: Record<string, ConfigEntityState>;
12460
+ localization: {
12461
+ defaultLocale: string;
12462
+ locales: string[];
12463
+ };
12464
+ version: 1;
12465
+ };
12466
+ type ConfigChange = {
12467
+ entity: 'collection' | 'global';
12468
+ slug: string;
12469
+ type: 'autosave_enabled';
12470
+ } | {
12471
+ entity: 'collection' | 'global';
12472
+ slug: string;
12473
+ type: 'drafts_disabled';
12474
+ } | {
12475
+ entity: 'collection' | 'global';
12476
+ slug: string;
12477
+ type: 'versions_disabled';
12478
+ } | {
12479
+ entity: 'collection' | 'global';
12480
+ slug: string;
12481
+ type: 'versions_enabled';
12482
+ } | {
12483
+ entity: 'collection' | 'global';
12484
+ fieldPath: string;
12485
+ slug: string;
12486
+ type: 'field_delocalized';
12487
+ } | {
12488
+ entity: 'collection' | 'global';
12489
+ fieldPath: string;
12490
+ slug: string;
12491
+ type: 'field_localized';
12492
+ } | {
12493
+ entity: 'collection' | 'global';
12494
+ initialStatus: 'draft' | 'published';
12495
+ slug: string;
12496
+ type: 'drafts_enabled';
12497
+ } | {
12498
+ entity: 'collection' | 'global';
12499
+ slug: string;
12500
+ type: 'localize_status_enabled';
12501
+ } | {
12502
+ from: string;
12503
+ to: string;
12504
+ type: 'default_locale_changed';
12505
+ } | {
12506
+ locale: string;
12507
+ type: 'locale_added';
12508
+ } | {
12509
+ locale: string;
12510
+ type: 'locale_removed';
12511
+ };
12512
+
12513
+ declare function bootstrapConfigState(payload: Payload, migrationDir: string): Promise<ConfigSnapshot>;
12514
+
12515
+ declare function readConfigState(migrationDir: string): Promise<ConfigSnapshot | null>;
12516
+ declare function writeConfigState(migrationDir: string, snapshot: ConfigSnapshot): Promise<void>;
12517
+
12518
+ declare function diffConfig(prev: ConfigSnapshot, next: ConfigSnapshot): ConfigChange[];
12519
+
12520
+ type GenerateOptions = {
12521
+ defaultLocale?: string;
12522
+ };
12523
+ type GenerateResult = {
12524
+ downCode: string;
12525
+ upCode: string;
12526
+ };
12527
+ declare function generateDataMigrationCode(changes: ConfigChange[], options?: GenerateOptions): GenerateResult;
12528
+
12529
+ declare function resolvePrompts(changes: ConfigChange[], isTTY?: boolean): Promise<{
12530
+ shouldAbort: boolean;
12531
+ }>;
12532
+
12533
+ declare function serializeConfig(config: Pick<SanitizedConfig, 'collections' | 'globals' | 'localization'>): ConfigSnapshot;
12534
+
12403
12535
  declare const createMigration: CreateMigration;
12404
12536
 
12405
12537
  /**
@@ -12471,7 +12603,7 @@ declare const writeMigrationIndex: (args: {
12471
12603
  migrationsDir: string;
12472
12604
  }) => void;
12473
12605
 
12474
- type Args$g = {
12606
+ type Args$f = {
12475
12607
  errors?: {
12476
12608
  path: string;
12477
12609
  }[];
@@ -12488,9 +12620,9 @@ type Args$g = {
12488
12620
  collectionConfig?: never | undefined;
12489
12621
  globalConfig: SanitizedGlobalConfig;
12490
12622
  });
12491
- declare function validateQueryPaths({ collectionConfig, errors, globalConfig, overrideAccess, policies, polymorphicJoin, req, versionFields, where, }: Args$g): Promise<void>;
12623
+ declare function validateQueryPaths({ collectionConfig, errors, globalConfig, overrideAccess, policies, polymorphicJoin, req, versionFields, where, }: Args$f): Promise<void>;
12492
12624
 
12493
- type Args$f = {
12625
+ type Args$e = {
12494
12626
  collectionConfig?: SanitizedCollectionConfig;
12495
12627
  constraint: WhereField;
12496
12628
  errors: {
@@ -12511,7 +12643,7 @@ type Args$f = {
12511
12643
  /**
12512
12644
  * Validate the Payload key / value / operator
12513
12645
  */
12514
- declare function validateSearchParam({ collectionConfig, constraint, errors, fields, globalConfig, operator, overrideAccess, parentIsLocalized, path: incomingPath, policies, polymorphicJoin, req, val, versionFields, }: Args$f): Promise<void>;
12646
+ declare function validateSearchParam({ collectionConfig, constraint, errors, fields, globalConfig, operator, overrideAccess, parentIsLocalized, path: incomingPath, policies, polymorphicJoin, req, val, versionFields, }: Args$e): Promise<void>;
12515
12647
 
12516
12648
  declare const baseBlockFields: Field[];
12517
12649
 
@@ -12626,16 +12758,16 @@ type SanitizeFieldResult = {
12626
12758
  declare const sanitizeField: ({ collectionConfig, config, existingFieldNames, field, globalConfig, index, isTopLevelField, joinPath, joins, orderableJoins, parentIndexPath, parentIsLocalized, parentSchemaPath, polymorphicJoins, requireFieldLevelRichTextEditor, richTextSanitizationPromises, validRelationships, }: SanitizeFieldArgs) => Promise<SanitizeFieldResult>;
12627
12759
  declare const sanitizeFields: ({ collectionConfig, config, existingFieldNames, fields, globalConfig, isTopLevelField, joinPath, joins, orderableJoins, parentIndexPath, parentIsLocalized, parentSchemaPath, polymorphicJoins, requireFieldLevelRichTextEditor, richTextSanitizationPromises, validRelationships, }: SanitizeFieldsArgs) => Promise<Field[]>;
12628
12760
 
12629
- type Args$e = {
12761
+ type Args$d = {
12630
12762
  defaultValue: DefaultValue;
12631
12763
  locale: string | undefined;
12632
12764
  req: PayloadRequest;
12633
12765
  user: PayloadRequest['user'];
12634
12766
  value?: JsonValue;
12635
12767
  };
12636
- declare const getDefaultValue: ({ defaultValue, locale, req, user, value, }: Args$e) => Promise<JsonValue>;
12768
+ declare const getDefaultValue: ({ defaultValue, locale, req, user, value, }: Args$d) => Promise<JsonValue>;
12637
12769
 
12638
- type Args$d = {
12770
+ type Args$c = {
12639
12771
  /**
12640
12772
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12641
12773
  */
@@ -12661,9 +12793,9 @@ type Args$d = {
12661
12793
  siblingDoc: JsonObject;
12662
12794
  siblingFields?: (Field | TabAsField)[];
12663
12795
  };
12664
- declare const traverseFields$4: ({ blockData, collection, context, data, doc, fields, global, operation, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, previousDoc, previousSiblingDoc, req, siblingData, siblingDoc, siblingFields, }: Args$d) => Promise<void>;
12796
+ declare const traverseFields$4: ({ blockData, collection, context, data, doc, fields, global, operation, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, previousDoc, previousSiblingDoc, req, siblingData, siblingDoc, siblingFields, }: Args$c) => Promise<void>;
12665
12797
 
12666
- type Args$c = {
12798
+ type Args$b = {
12667
12799
  /**
12668
12800
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12669
12801
  */
@@ -12711,9 +12843,9 @@ type Args$c = {
12711
12843
  triggerAccessControl?: boolean;
12712
12844
  triggerHooks?: boolean;
12713
12845
  } & Required<Pick<AfterReadArgs<JsonObject>, 'flattenLocales'>>;
12714
- declare const promise: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, field, fieldDepth, fieldIndex, fieldPromises, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, siblingFields, triggerAccessControl, triggerHooks, }: Args$c) => Promise<void>;
12846
+ declare const promise: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, field, fieldDepth, fieldIndex, fieldPromises, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, siblingFields, triggerAccessControl, triggerHooks, }: Args$b) => Promise<void>;
12715
12847
 
12716
- type Args$b = {
12848
+ type Args$a = {
12717
12849
  /**
12718
12850
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12719
12851
  */
@@ -12760,9 +12892,9 @@ type Args$b = {
12760
12892
  triggerAccessControl?: boolean;
12761
12893
  triggerHooks?: boolean;
12762
12894
  };
12763
- declare const traverseFields$3: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, fieldDepth, fieldPromises, fields, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, triggerAccessControl, triggerHooks, }: Args$b) => void;
12895
+ declare const traverseFields$3: ({ blockData, collection, context, currentDepth, depth, doc, draft, fallbackLocale, fieldDepth, fieldPromises, fields, findMany, flattenLocales, global, locale, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, populate, populationPromises, req, select, selectMode, showHiddenFields, siblingDoc, triggerAccessControl, triggerHooks, }: Args$a) => void;
12764
12896
 
12765
- type Args$a = {
12897
+ type Args$9 = {
12766
12898
  /**
12767
12899
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12768
12900
  */
@@ -12818,9 +12950,9 @@ type Args$a = {
12818
12950
  * - Transform data for storage
12819
12951
  * - Unflatten locales. The input `data` is the normal document for one locale. The output result will become the document with locales.
12820
12952
  */
12821
- declare const traverseFields$2: ({ id, blockData, collection, context, data, doc, docWithLocales, errors, fieldLabelPath, fields, global, mergeLocaleActions, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, siblingDocWithLocales, skipValidation, }: Args$a) => Promise<void>;
12953
+ declare const traverseFields$2: ({ id, blockData, collection, context, data, doc, docWithLocales, errors, fieldLabelPath, fields, global, mergeLocaleActions, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, siblingDocWithLocales, skipValidation, }: Args$9) => Promise<void>;
12822
12954
 
12823
- type Args$9<T> = {
12955
+ type Args$8<T> = {
12824
12956
  /**
12825
12957
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12826
12958
  */
@@ -12851,39 +12983,10 @@ type Args$9<T> = {
12851
12983
  */
12852
12984
  siblingDoc: JsonObject;
12853
12985
  };
12854
- declare const traverseFields$1: <T>({ id, blockData, collection, context, data, doc, fields, global, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, }: Args$9<T>) => Promise<void>;
12986
+ declare const traverseFields$1: <T>({ id, blockData, collection, context, data, doc, fields, global, operation, overrideAccess, parentIndexPath, parentIsLocalized, parentPath, parentSchemaPath, req, siblingData, siblingDoc, }: Args$8<T>) => Promise<void>;
12855
12987
 
12856
12988
  declare const sortableFieldTypes: string[];
12857
12989
 
12858
- type Args$8 = {
12859
- /**
12860
- * Specify to query documents from a specific collection
12861
- * @default undefined
12862
- * @example 'posts'
12863
- */
12864
- collectionSlug?: CollectionSlug;
12865
- /**
12866
- * Optional where clause to filter documents by
12867
- * @default undefined
12868
- */
12869
- documentWhere?: Where;
12870
- /**
12871
- * The ID of the folder to query documents from
12872
- * @default undefined
12873
- */
12874
- folderID?: number | string;
12875
- /** Optional where clause to filter subfolders by
12876
- * @default undefined
12877
- */
12878
- folderWhere?: Where;
12879
- req: PayloadRequest;
12880
- sort: FolderSortKeys;
12881
- };
12882
- /**
12883
- * Query for documents, subfolders and breadcrumbs for a given folder
12884
- */
12885
- declare const getFolderData: ({ collectionSlug, documentWhere, folderID: _folderID, folderWhere, req, sort, }: Args$8) => Promise<GetFolderDataResult>;
12886
-
12887
12990
  type Arguments$3 = {
12888
12991
  /**
12889
12992
  * If the document data is passed, it will be used to check access instead of fetching the document from the database.
@@ -12953,6 +13056,191 @@ type Args$7<TSlug extends GlobalSlug> = {
12953
13056
  } & Pick<FindOptions<string, SelectType>, 'select'>;
12954
13057
  declare const updateOperation: <TSlug extends GlobalSlug, TSelect extends SelectFromGlobalSlug<TSlug>>(args: Args$7<TSlug>) => Promise<TransformGlobalWithSelect<TSlug, TSelect>>;
12955
13058
 
13059
+ /**
13060
+ * Default field names and constants for hierarchy feature
13061
+ */
13062
+ declare const HIERARCHY_SLUG_PATH_FIELD = "_h_slugPath";
13063
+ declare const HIERARCHY_TITLE_PATH_FIELD = "_h_titlePath";
13064
+ declare const HIERARCHY_DEFAULT_LOCALE = "en";
13065
+ /** Default limit for hierarchy tree queries */
13066
+ declare const DEFAULT_HIERARCHY_TREE_LIMIT = 100;
13067
+ /** Default value for allowing hasMany on hierarchy fields */
13068
+ declare const DEFAULT_ALLOW_HAS_MANY = true;
13069
+ /** Generate a hierarchy field name from a hierarchy slug (e.g., 'folders' -> '_h_folders') */
13070
+ declare const getHierarchyFieldName: (hierarchySlug: string) => string;
13071
+
13072
+ /**
13073
+ * Options for creating a folder relationship field.
13074
+ * All SingleRelationshipField properties are available except name, type, relationTo, and hasMany
13075
+ * which are managed by the folder system.
13076
+ */
13077
+ type CreateFolderFieldOptions = {
13078
+ /**
13079
+ * The slug of the hierarchy collection this field references (e.g., 'folders')
13080
+ */
13081
+ relationTo: string;
13082
+ } & Pick<Partial<SingleRelationshipField>, 'admin' | 'label' | 'required'>;
13083
+ /**
13084
+ * Creates a relationship field for folder-style hierarchies (single-select).
13085
+ *
13086
+ * This field:
13087
+ * - Has hasMany:false (single folder selection)
13088
+ * - Uses NullField to render nothing in the form (no DOM output)
13089
+ * - Injects a header button for folder selection via miller columns UI
13090
+ *
13091
+ * Use this in your collection's fields array to add a folder relationship.
13092
+ * The field name is automatically generated based on the hierarchy slug.
13093
+ *
13094
+ * @example
13095
+ * import { createFolderField } from 'payload'
13096
+ *
13097
+ * const Posts: CollectionConfig = {
13098
+ * slug: 'posts',
13099
+ * fields: [
13100
+ * { name: 'title', type: 'text' },
13101
+ * createFolderField({
13102
+ * relationTo: 'folders',
13103
+ * label: 'Folder',
13104
+ * }),
13105
+ * ],
13106
+ * }
13107
+ */
13108
+ declare function createFolderField(options: CreateFolderFieldOptions): RelationshipField;
13109
+
13110
+ /**
13111
+ * Options for creating a tag relationship field.
13112
+ * All RelationshipFieldMany properties are available except name, type, and relationTo
13113
+ * which are managed by the tag system.
13114
+ */
13115
+ type CreateTagFieldOptions = {
13116
+ /**
13117
+ * Whether to allow multiple tags (defaults to true)
13118
+ * @default true
13119
+ */
13120
+ hasMany?: boolean;
13121
+ /**
13122
+ * The slug of the hierarchy collection this field references (e.g., 'tags')
13123
+ */
13124
+ relationTo: string;
13125
+ } & Pick<Partial<RelationshipField>, 'admin' | 'label' | 'required'>;
13126
+ /**
13127
+ * Creates a relationship field for tag-style hierarchies (multi-select by default).
13128
+ *
13129
+ * This field:
13130
+ * - Has hasMany:true by default (multiple tag selection)
13131
+ * - Is positioned in the sidebar by default
13132
+ * - Does NOT inject a header button (tags use standard relationship UI)
13133
+ *
13134
+ * Use this in your collection's fields array to add a tag relationship.
13135
+ * The field name is automatically generated based on the hierarchy slug.
13136
+ *
13137
+ * @example
13138
+ * import { createTagField } from 'payload'
13139
+ *
13140
+ * const Posts: CollectionConfig = {
13141
+ * slug: 'posts',
13142
+ * fields: [
13143
+ * { name: 'title', type: 'text' },
13144
+ * createTagField({
13145
+ * relationTo: 'tags',
13146
+ * label: 'Tags',
13147
+ * }),
13148
+ * ],
13149
+ * }
13150
+ */
13151
+ declare function createTagField(options: CreateTagFieldOptions): RelationshipField;
13152
+
13153
+ type GetInitialTreeDataArgs = {
13154
+ /** Base filter to apply to all queries (e.g., tenant filter) */
13155
+ baseFilter?: null | Where;
13156
+ collectionSlug: string;
13157
+ expandedNodeIds?: (number | string)[];
13158
+ /** Filter tree to only show folders that allow these collection types (or are unrestricted) */
13159
+ filterByCollections?: string[];
13160
+ limit?: number;
13161
+ payload: PayloadRequest['payload'];
13162
+ /** The currently selected node ID. When provided, ensures siblings are loaded to include this node. */
13163
+ selectedNodeId?: null | number | string;
13164
+ /** The parent ID of the selected node. Required when selectedNodeId is provided. */
13165
+ selectedNodeParentId?: null | number | string;
13166
+ user: PayloadRequest['user'];
13167
+ };
13168
+ type InitialTreeData = {
13169
+ docs: TypeWithID[];
13170
+ loadedParents: Record<string, {
13171
+ hasMore: boolean;
13172
+ loadedCount?: number;
13173
+ totalDocs: number;
13174
+ }>;
13175
+ };
13176
+ declare const getInitialTreeData: ({ baseFilter, collectionSlug, expandedNodeIds, filterByCollections, limit, payload, selectedNodeId, selectedNodeParentId, user, }: GetInitialTreeDataArgs) => Promise<InitialTreeData>;
13177
+
13178
+ /**
13179
+ * Injects the HierarchyButton component into a collection's BeforeDocumentMeta slot.
13180
+ *
13181
+ * The HierarchyButton provides a header UI for selecting parent hierarchy items
13182
+ * via miller columns, replacing the standard relationship field input.
13183
+ */
13184
+ declare const injectHierarchyButton: ({ collection, fieldName, hierarchyCollectionSlug, parentFieldName, }: {
13185
+ collection: CollectionConfig;
13186
+ fieldName: string;
13187
+ hierarchyCollectionSlug: string;
13188
+ parentFieldName: string;
13189
+ }) => void;
13190
+
13191
+ /**
13192
+ * Resolves hierarchy relationships across collections.
13193
+ *
13194
+ * This function runs after individual collection sanitization to establish
13195
+ * cross-collection hierarchy relationships. It discovers which collections
13196
+ * reference each hierarchy and configures the necessary fields, components,
13197
+ * and hooks.
13198
+ *
13199
+ * @remarks
13200
+ * Must be called after all collections are sanitized.
13201
+ *
13202
+ * **What it does:**
13203
+ * - Discovers related collections by scanning for hierarchy relationship fields
13204
+ * - Injects `HierarchyButton` component when `custom.hierarchy.injectHeaderButton` is set
13205
+ * - Adds `collectionSpecific` validation to ensure hierarchy items accept the document type
13206
+ * - Injects the `hierarchyType` select field when `collectionSpecific` is enabled
13207
+ * - Injects join field when `joinField` is configured
13208
+ * - Adds `afterDelete` hook to clear hierarchy references when items are deleted
13209
+ * - Populates `relatedCollections` in the sanitized hierarchy config
13210
+ */
13211
+ declare const resolveHierarchyCollections: (config: Config) => void;
13212
+
13213
+ type Ancestor = {
13214
+ id: number | string;
13215
+ title: string;
13216
+ };
13217
+ type GetAncestorsArgs = {
13218
+ /**
13219
+ * The collection slug
13220
+ */
13221
+ collectionSlug: CollectionSlug;
13222
+ /**
13223
+ * The document ID to get ancestors for
13224
+ */
13225
+ id: number | string;
13226
+ /**
13227
+ * Include the document itself in the returned ancestors (as last item)
13228
+ * @default true
13229
+ */
13230
+ includeSelf?: boolean;
13231
+ /**
13232
+ * The request object
13233
+ */
13234
+ req: PayloadRequest;
13235
+ };
13236
+ /**
13237
+ * Get ancestor chain for a hierarchical document.
13238
+ * Returns array of {id, title} from root to the document.
13239
+ *
13240
+ * Uses request context caching for efficiency when called multiple times.
13241
+ */
13242
+ declare function getAncestors({ id, collectionSlug, includeSelf, req, }: GetAncestorsArgs): Promise<Ancestor[]>;
13243
+
12956
13244
  declare class DatabaseKVAdapter implements KVAdapter {
12957
13245
  readonly payload: Payload;
12958
13246
  readonly collectionSlug: string;
@@ -14145,16 +14433,26 @@ interface RequestContext {
14145
14433
  interface DatabaseAdapter extends BaseDatabaseAdapter {
14146
14434
  }
14147
14435
 
14436
+ interface FieldCustom extends Record<string, any> {
14437
+ }
14148
14438
  interface FieldCustom extends Record<string, any> {
14149
14439
  }
14150
14440
  interface CollectionCustom extends Record<string, any> {
14151
14441
  }
14442
+ interface CollectionCustom extends Record<string, any> {
14443
+ }
14444
+ interface CollectionAdminCustom extends Record<string, any> {
14445
+ }
14152
14446
  interface CollectionAdminCustom extends Record<string, any> {
14153
14447
  }
14154
14448
  interface GlobalCustom extends Record<string, any> {
14155
14449
  }
14450
+ interface GlobalCustom extends Record<string, any> {
14451
+ }
14452
+ interface GlobalAdminCustom extends Record<string, any> {
14453
+ }
14156
14454
  interface GlobalAdminCustom extends Record<string, any> {
14157
14455
  }
14158
14456
 
14159
- export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, InMemoryKVAdapter, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, JWTAuthentication, JobCancelledError, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, UnauthorizedError, UnverifiedEmail, ValidationError, ValidationErrorName, _internal_jobSystemGlobals, _internal_resetJobSystemGlobals, _internal_safeFetchGlobal, accessOperation, addDataAndFileToRequest, addLocalesToRequestFromData, traverseFields$4 as afterChangeTraverseFields, promise as afterReadPromise, traverseFields$3 as afterReadTraverseFields, appendVersionToQueryKey, apiKeyFields as baseAPIKeyFields, accountLockFields as baseAccountLockFields, baseAuthFields, baseBlockFields, emailFieldConfig as baseEmailField, baseIDField, sessionsFieldConfig as baseSessionsField, usernameFieldConfig as baseUsernameField, verificationFields as baseVerificationFields, traverseFields$2 as beforeChangeTraverseFields, traverseFields$1 as beforeValidateTraverseFields, buildConfig, buildVersionCollectionFields, buildVersionCompoundIndexes, buildVersionGlobalFields, canAccessAdmin, checkDependencies, checkLoginPermission, combineQueries, commitTransaction, configToJSONSchema, countOperation, countRunnableOrActiveJobsForQueue, createArrayFromCommaDelineated, createClientBlocks, createClientCollectionConfig, createClientCollectionConfigs, createClientConfig, createClientField, createClientFields, createClientGlobalConfig, createClientGlobalConfigs, createDatabaseAdapter, createDataloaderCacheKey, createLocalReq, createMigration, createOperation, createPayloadRequest, createUnauthenticatedClientConfig, databaseKVAdapter, deepCopyObject, deepCopyObjectComplex, deepCopyObjectSimple, deepMergeSimple, deepMergeWithCombinedArrays, deepMergeWithReactComponents, deepMergeWithSourceArrays, initialized as default, defaultBeginTransaction, defaultLoggerOptions, defaults, definePlugin, deleteByIDOperation, deleteCollectionVersions, deleteOperation, docAccessOperation$1 as docAccessOperation, docAccessOperation as docAccessOperationGlobal, docHasTimestamps, duplicateOperation, dynamicImport, enforceMaxVersions, entityToJSONSchema, escapeRegExp, executeAccess, executeAuthStrategies, extractAccessFromPermission, extractJWT, fieldsToJSONSchema, findByIDOperation, findMigrationDir, findOneOperation, findOperation, findUp, findUpSync, findVersionByIDOperation$1 as findVersionByIDOperation, findVersionByIDOperation as findVersionByIDOperationGlobal, findVersionsOperation$1 as findVersionsOperation, findVersionsOperation as findVersionsOperationGlobal, flattenAllFields, flattenTopLevelFields, flattenWhereToOperators, forgotPasswordOperation, formatErrors, formatLabels, formatNames, genImportMapIterateFields, generateCookie, generateExpiredPayloadCookie, generateImportMap, generatePayloadCookie, getAccessResults, getBlockSelect, getCollectionIDFieldTypes, getCookieExpiration, getCurrentDate, getDataLoader, getDefaultValue, getDependencies, getFieldByPath, getFieldsToSign, getFileByPath, getFolderData, getLatestCollectionVersion, getLatestGlobalVersion, getLocalI18n, getLocalizedPaths, getLoginOptions, getMigrations, getObjectDotNotation, getPayload, getPredefinedMigration, getQueryDraftsSort, getRequestLanguage, handleEndpoints, hasWhereAccessResult, headersWithCors, importHandlerPath, inMemoryKVAdapter, incrementLoginAttempts, initOperation, initTransaction, isEntityHidden, isPlainObject, isValidID, isolateObjectProperty, jobAfterRead, jwtSign, killTransaction, localizeStatus, logError, loginOperation, logoutOperation, mapAsync, meOperation, mergeHeaders, migrate, migrate$1 as migrateCLI, migrateDown, migrateRefresh, migrateReset, migrateStatus, migrationTemplate, migrationsCollection, parseCookies, parseDocumentID, pathExistsAndIsAccessible, pathExistsAndIsAccessibleSync, readMigrationFiles, refreshOperation, registerFirstUserOperation, reload, resetLoginAttempts, resetPasswordOperation, restoreVersionOperation$1 as restoreVersionOperation, restoreVersionOperation as restoreVersionOperationGlobal, sanitizeConfig, sanitizeFallbackLocale, sanitizeField, sanitizeFields, sanitizeJoinParams, sanitizeLocales, sanitizePopulateParam, sanitizeSelectParam, saveVersion, serverOnlyAdminConfigProperties, serverOnlyConfigProperties, serverProps, slugField, sortableFieldTypes, stripUnselectedFields, toWords, traverseFields, unlockOperation, updateByIDOperation, updateOperation$1 as updateOperation, updateOperation as updateOperationGlobal, validateBlocksFilterOptions, validateQueryPaths, validateSearchParam, validations, verifyEmailOperation, versionDefaults, withNullableJSONSchemaType, writeMigrationIndex };
14160
- export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterFolderListClientProps, AfterFolderListServerProps, AfterFolderListServerPropsOnly, AfterFolderListTableClientProps, AfterFolderListTableServerProps, AfterFolderListTableServerPropsOnly, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeFolderListClientProps, BeforeFolderListServerProps, BeforeFolderListServerPropsOnly, BeforeFolderListTableClientProps, BeforeFolderListTableServerProps, BeforeFolderListTableServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BuildCollectionFolderViewResult, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientUser, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, File$1 as File, FileAllowList, FileData, FileSize, FileSizeImproved, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FolderListViewClientProps, FolderListViewServerProps, FolderListViewServerPropsOnly, FolderListViewSlotSharedClientProps, FolderListViewSlots, FolderSortKeys, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetFolderResultsComponentAndDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HookName, HookOperationType, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, LocalizeStatusArgs$1 as MongoLocalizeStatusArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawPayloadComponent, RegisteredPlugins, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedProps, SharpDependency, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, LocalizeStatusArgs as SqlLocalizeStatusArgs, StaticDescription, StaticLabel, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedUser, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UntypedUser, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, Upsert, UpsertArgs, UntypedUser as User, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };
14457
+ export { APIError, APIErrorName, Action, AuthenticationError, BasePayload, DEFAULT_ALLOW_HAS_MANY, DEFAULT_HIERARCHY_TREE_LIMIT, DatabaseKVAdapter, DiffMethod, DuplicateCollection, DuplicateFieldName, DuplicateGlobal, EntityType, ErrorDeletingFile, FileRetrievalError, FileUploadError, Forbidden, HIERARCHY_DEFAULT_LOCALE, HIERARCHY_SLUG_PATH_FIELD, HIERARCHY_TITLE_PATH_FIELD, InMemoryKVAdapter, InvalidConfiguration, InvalidFieldName, InvalidFieldRelationship, JWTAuthentication, JobCancelledError, Locked, LockedAuth, MissingCollectionLabel, MissingEditorProp, MissingFieldInputOptions, MissingFieldType, MissingFile, NotFound, QueryError, UnauthorizedError, UnverifiedEmail, ValidationError, ValidationErrorName, _internal_jobSystemGlobals, _internal_resetJobSystemGlobals, _internal_safeFetchGlobal, accessOperation, addDataAndFileToRequest, addLocalesToRequestFromData, traverseFields$4 as afterChangeTraverseFields, promise as afterReadPromise, traverseFields$3 as afterReadTraverseFields, appendVersionToQueryKey, apiKeyFields as baseAPIKeyFields, accountLockFields as baseAccountLockFields, baseAuthFields, baseBlockFields, emailFieldConfig as baseEmailField, baseIDField, sessionsFieldConfig as baseSessionsField, usernameFieldConfig as baseUsernameField, verificationFields as baseVerificationFields, traverseFields$2 as beforeChangeTraverseFields, traverseFields$1 as beforeValidateTraverseFields, bootstrapConfigState, buildConfig, buildVersionCollectionFields, buildVersionCompoundIndexes, buildVersionGlobalFields, canAccessAdmin, checkDependencies, checkLoginPermission, combineQueries, commitTransaction, configToJSONSchema, countOperation, countRunnableOrActiveJobsForQueue, createArrayFromCommaDelineated, createClientBlocks, createClientCollectionConfig, createClientCollectionConfigs, createClientConfig, createClientField, createClientFields, createClientGlobalConfig, createClientGlobalConfigs, createDatabaseAdapter, createDataloaderCacheKey, createFolderField, createLocalReq, createMigration, createOperation, createPayloadRequest, createTagField, createUnauthenticatedClientConfig, databaseKVAdapter, deepCopyObject, deepCopyObjectComplex, deepCopyObjectSimple, deepMergeSimple, deepMergeWithCombinedArrays, deepMergeWithReactComponents, deepMergeWithSourceArrays, initialized as default, defaultBeginTransaction, defaultLoggerOptions, defaults, definePlugin, deleteByIDOperation, deleteCollectionVersions, deleteOperation, diffConfig, docAccessOperation$1 as docAccessOperation, docAccessOperation as docAccessOperationGlobal, docHasTimestamps, duplicateOperation, dynamicImport, enforceMaxVersions, entityToJSONSchema, escapeRegExp, executeAccess, executeAuthStrategies, extractAccessFromPermission, extractJWT, fieldsToJSONSchema, findByIDOperation, findMigrationDir, findOneOperation, findOperation, findUp, findUpSync, findVersionByIDOperation$1 as findVersionByIDOperation, findVersionByIDOperation as findVersionByIDOperationGlobal, findVersionsOperation$1 as findVersionsOperation, findVersionsOperation as findVersionsOperationGlobal, flattenAllFields, flattenTopLevelFields, flattenWhereToOperators, forgotPasswordOperation, formatErrors, formatLabels, formatNames, genImportMapIterateFields, generateCookie, generateDataMigrationCode, generateExpiredPayloadCookie, generateImportMap, generatePayloadCookie, getAccessResults, getAncestors, getBlockSelect, getCollectionIDFieldTypes, getCookieExpiration, getCurrentDate, getDataLoader, getDefaultValue, getDependencies, getFieldByPath, getFieldsToSign, getFileByPath, getHierarchyFieldName, getInitialTreeData, getLatestCollectionVersion, getLatestGlobalVersion, getLocalI18n, getLocalizedPaths, getLoginOptions, getMigrations, getObjectDotNotation, getPayload, getPredefinedMigration, getQueryDraftsSort, getRequestLanguage, handleEndpoints, hasWhereAccessResult, headersWithCors, importHandlerPath, inMemoryKVAdapter, incrementLoginAttempts, initOperation, initTransaction, injectHierarchyButton, isEntityHidden, isPlainObject, isValidID, isolateObjectProperty, jobAfterRead, jwtSign, killTransaction, localizeStatus, logError, loginOperation, logoutOperation, mapAsync, meOperation, mergeHeaders, migrate, migrate$1 as migrateCLI, migrateDown, migrateRefresh, migrateReset, migrateStatus, migrationTemplate, migrationsCollection, parseCookies, parseDocumentID, pathExistsAndIsAccessible, pathExistsAndIsAccessibleSync, readConfigState, readMigrationFiles, refreshOperation, registerFirstUserOperation, reload, resetLoginAttempts, resetPasswordOperation, resolveHierarchyCollections, resolvePrompts, restoreVersionOperation$1 as restoreVersionOperation, restoreVersionOperation as restoreVersionOperationGlobal, sanitizeConfig, sanitizeFallbackLocale, sanitizeField, sanitizeFields, sanitizeJoinParams, sanitizeLocales, sanitizePopulateParam, sanitizeSelectParam, saveVersion, serializeConfig, serverOnlyAdminConfigProperties, serverOnlyConfigProperties, serverProps, slugField, sortableFieldTypes, stripUnselectedFields, toWords, traverseFields, unlockOperation, updateByIDOperation, updateOperation$1 as updateOperation, updateOperation as updateOperationGlobal, validateBlocksFilterOptions, validateQueryPaths, validateSearchParam, validations, verifyEmailOperation, versionDefaults, withNullableJSONSchemaType, writeConfigState, writeMigrationIndex };
14458
+ export type { Access, AccessArgs, AccessResult, AdminClient, AdminComponent, AdminDependencies, AdminFunction, AdminViewClientProps, AdminViewComponent, AdminViewConfig, AdminViewServerProps as AdminViewProps, AdminViewServerProps, AdminViewServerPropsOnly, AfterErrorHook$1 as AfterErrorHook, AfterErrorHookArgs, AfterErrorResult, AfterListClientProps, AfterListServerProps, AfterListServerPropsOnly, AfterListTableClientProps, AfterListTableServerProps, AfterListTableServerPropsOnly, AllOperations, AllowList, Ancestor, ApplyDisableErrors, ArrayField, ArrayFieldClient, ArrayFieldClientComponent, ArrayFieldClientProps, ArrayFieldDescriptionClientComponent, ArrayFieldDescriptionServerComponent, ArrayFieldDiffClientComponent, ArrayFieldDiffServerComponent, ArrayFieldErrorClientComponent, ArrayFieldErrorServerComponent, ArrayFieldLabelClientComponent, ArrayFieldLabelServerComponent, ArrayFieldServerComponent, ArrayFieldServerProps, ArrayFieldValidation, Auth, AuthCollection, AuthCollectionSlug, AuthOperations, AuthOperationsFromCollectionSlug, AuthStrategy, AuthStrategyFunction, AuthStrategyFunctionArgs, AuthStrategyResult, BaseDatabaseAdapter, BaseFilter, BaseJob, BaseListFilter, BaseLocalizationConfig, BaseValidateOptions, BaseVersionField, BeforeDocumentControlsClientProps, BeforeDocumentControlsServerProps, BeforeDocumentControlsServerPropsOnly, BeforeListClientProps, BeforeListServerProps, BeforeListServerPropsOnly, BeforeListTableClientProps, BeforeListTableServerProps, BeforeListTableServerPropsOnly, BeginTransaction, BinScript, BinScriptConfig, Block, BlockJSX, BlockPermissions, BlockRowLabelClientComponent, BlockRowLabelServerComponent, BlockSlug, BlocksField, BlocksFieldClient, BlocksFieldClientComponent, BlocksFieldClientProps, BlocksFieldDescriptionClientComponent, BlocksFieldDescriptionServerComponent, BlocksFieldDiffClientComponent, BlocksFieldDiffServerComponent, BlocksFieldErrorClientComponent, BlocksFieldErrorServerComponent, BlocksFieldLabelClientComponent, BlocksFieldLabelServerComponent, BlocksFieldServerComponent, BlocksFieldServerProps, BlocksFieldValidation, BlocksPermissions, BuildFormStateArgs, BuildTableStateArgs, BulkOperationResult, CORSConfig, CheckboxField, CheckboxFieldClient, CheckboxFieldClientComponent, CheckboxFieldClientProps, CheckboxFieldDescriptionClientComponent, CheckboxFieldDescriptionServerComponent, CheckboxFieldDiffClientComponent, CheckboxFieldDiffServerComponent, CheckboxFieldErrorClientComponent, CheckboxFieldErrorServerComponent, CheckboxFieldLabelClientComponent, CheckboxFieldLabelServerComponent, CheckboxFieldServerComponent, CheckboxFieldServerProps, CheckboxFieldValidation, ClientBlock, ClientCollectionConfig, ClientComponentProps, ClientConfig, ClientField, ClientFieldBase, ClientFieldProps, ClientFieldSchemaMap, ClientFieldWithOptionalType, ClientGlobalConfig, DocumentViewClientProps as ClientSideEditViewProps, ClientTab, ClientUser, ClientWidget, CodeField, CodeFieldClient, CodeFieldClientComponent, CodeFieldClientProps, CodeFieldDescriptionClientComponent, CodeFieldDescriptionServerComponent, CodeFieldDiffClientComponent, CodeFieldDiffServerComponent, CodeFieldErrorClientComponent, CodeFieldErrorServerComponent, CodeFieldLabelClientComponent, CodeFieldLabelServerComponent, CodeFieldServerComponent, CodeFieldServerProps, CodeFieldValidation, CollapsedPreferences, CollapsibleField, CollapsibleFieldClient, CollapsibleFieldClientComponent, CollapsibleFieldClientProps, CollapsibleFieldDescriptionClientComponent, CollapsibleFieldDescriptionServerComponent, CollapsibleFieldDiffClientComponent, CollapsibleFieldDiffServerComponent, CollapsibleFieldErrorClientComponent, CollapsibleFieldErrorServerComponent, CollapsibleFieldLabelClientComponent, CollapsibleFieldLabelServerComponent, CollapsibleFieldServerComponent, CollapsibleFieldServerProps, Collection, CollectionAdminCustom, CollectionAdminOptions, AfterChangeHook as CollectionAfterChangeHook, AfterDeleteHook as CollectionAfterDeleteHook, AfterErrorHook as CollectionAfterErrorHook, AfterForgotPasswordHook as CollectionAfterForgotPasswordHook, AfterLoginHook as CollectionAfterLoginHook, AfterLogoutHook as CollectionAfterLogoutHook, AfterMeHook as CollectionAfterMeHook, AfterOperationHook as CollectionAfterOperationHook, AfterReadHook as CollectionAfterReadHook, AfterRefreshHook as CollectionAfterRefreshHook, BeforeChangeHook as CollectionBeforeChangeHook, BeforeDeleteHook as CollectionBeforeDeleteHook, BeforeLoginHook as CollectionBeforeLoginHook, BeforeOperationHook as CollectionBeforeOperationHook, BeforeReadHook as CollectionBeforeReadHook, BeforeValidateHook as CollectionBeforeValidateHook, CollectionConfig, CollectionCustom, MeHook as CollectionMeHook, CollectionPermission, CollectionPreferences, RefreshHook as CollectionRefreshHook, CollectionSlug, Column, ColumnPreference, CommitTransaction, CompoundIndex, ConcurrencyConfig, Condition, ConditionalDateProps, Config, ConfirmPasswordFieldValidation, Connect, Count, CountArgs, CountGlobalVersionArgs, CountGlobalVersions, CountVersions, Create, CreateArgs, CreateClientConfigArgs, CreateFolderFieldOptions, CreateGlobal, CreateGlobalArgs, CreateGlobalVersion, CreateGlobalVersionArgs, CreateMigration, CreateTagFieldOptions, CreateVersion, CreateVersionArgs, CustomComponent, CustomDocumentViewConfig, CustomPayloadRequestProperties, CustomComponent as CustomPreviewButton, CustomComponent as CustomPublishButton, CustomComponent as CustomSaveButton, CustomComponent as CustomSaveDraftButton, CustomStatus, CustomUpload, CustomVersionParser, DBIdentifierName, DashboardConfig, Data, DataFromCollectionSlug, DataFromGlobalSlug, DataFromWidgetSlug, DatabaseAdapter, DatabaseAdapterResult as DatabaseAdapterObj, DatabaseKVAdapterOptions, DateField, DateFieldClient, DateFieldClientComponent, DateFieldClientProps, DateFieldDescriptionClientComponent, DateFieldDescriptionServerComponent, DateFieldDiffClientComponent, DateFieldDiffServerComponent, DateFieldErrorClientComponent, DateFieldErrorServerComponent, DateFieldLabelClientComponent, DateFieldLabelServerComponent, DateFieldServerComponent, DateFieldServerProps, DateFieldValidation, DayPickerProps, DefaultCellComponentProps, DefaultDocumentIDType, DefaultDocumentViewConfig, DefaultServerCellComponentProps, DefaultServerFunctionArgs, DefaultValue, DeleteMany, DeleteManyArgs, DeleteOne, DeleteOneArgs, DeleteVersions, DeleteVersionsArgs, Description, DescriptionFunction, Destroy, Document, DocumentEvent, DocumentPermissions, DocumentPreferences, DocumentSlots, DocumentSubViewTypes, DocumentTabClientProps, DocumentTabComponent, DocumentTabCondition, DocumentTabConfig, DocumentTabServerProps as DocumentTabProps, DocumentTabServerProps, DocumentTabServerPropsOnly, DocumentViewClientProps, DocumentViewComponent, DocumentViewConfig, DocumentViewServerProps, DocumentViewServerPropsOnly, DraftTransformCollectionWithSelect, DynamicMigrationTemplate, EditConfig, EditConfigWithRoot, EditConfigWithoutRoot, EditMenuItemsClientProps, EditMenuItemsServerProps, EditMenuItemsServerPropsOnly, EditViewComponent, EditViewConfig, EditViewProps, EmailAdapter, EmailField, EmailFieldClient, EmailFieldClientComponent, EmailFieldClientProps, EmailFieldDescriptionClientComponent, EmailFieldDescriptionServerComponent, EmailFieldDiffClientComponent, EmailFieldDiffServerComponent, EmailFieldErrorClientComponent, EmailFieldErrorServerComponent, EmailFieldLabelClientComponent, EmailFieldLabelServerComponent, EmailFieldServerComponent, EmailFieldServerProps, EmailFieldValidation, Endpoint, EntityDescription, EntityDescriptionComponent, EntityDescriptionFunction, EntityPolicies, ErrorResult, FetchAPIFileUploadOptions, Field, FieldAccess, FieldAccessArgs, FieldAffectingData, FieldAffectingDataClient, FieldBase, FieldBaseClient, FieldClientComponent, FieldCustom, FieldDescriptionClientComponent, FieldDescriptionClientProps, FieldDescriptionServerComponent, FieldDescriptionServerProps, FieldDiffClientComponent, FieldDiffClientProps, FieldDiffServerComponent, FieldDiffServerProps, FieldErrorClientComponent, FieldErrorClientProps, FieldErrorServerComponent, FieldErrorServerProps, FieldHook, FieldHookArgs, FieldLabelClientComponent, FieldLabelClientProps, FieldLabelServerComponent, FieldLabelServerProps, FieldPaths, FieldPermissions, FieldPosition, FieldPresentationalOnly, FieldPresentationalOnlyClient, FieldRow, FieldSchemaMap, FieldServerComponent, FieldState, FieldTypes, FieldWithMany, FieldWithManyClient, FieldWithMaxDepth, FieldWithMaxDepthClient, FieldWithPath, FieldWithPathClient, FieldWithSubFields, FieldWithSubFieldsClient, FieldsPermissions, FieldsPreferences, File$1 as File, FileAllowList, FileData, FileSize, FileSizeImproved, FileSizes, FileToSave, FilterOptions, FilterOptionsProps, FilterOptionsResult, Find, FindArgs, FindDistinct, FindGlobal, FindGlobalArgs, FindGlobalVersions, FindGlobalVersionsArgs, FindOne, FindOneArgs, FindOptions, FindVersions, FindVersionsArgs, FlattenedArrayField, FlattenedBlock, FlattenedBlocksField, FlattenedField$1 as FlattenedField, FlattenedGroupField, FlattenedJoinField, FlattenedTabAsField, FocalPoint, FoldersConfig, FieldState as FormField, FieldStateWithoutComponents as FormFieldWithoutComponents, FormState, FormStateWithoutComponents, GenerateImageName, GeneratePreviewURL, GenerateSchema, GeneratedTypes, GenericDescriptionProps, GenericErrorProps, GenericLabelProps, GetAdminThumbnail, GetInitialTreeDataArgs, GlobalAdminCustom, GlobalAdminOptions, AfterChangeHook$1 as GlobalAfterChangeHook, AfterReadHook$1 as GlobalAfterReadHook, BeforeChangeHook$1 as GlobalBeforeChangeHook, BeforeOperationHook$1 as GlobalBeforeOperationHook, BeforeReadHook$1 as GlobalBeforeReadHook, BeforeValidateHook$1 as GlobalBeforeValidateHook, GlobalConfig, GlobalCustom, GlobalPermission, GlobalSlug, GraphQLExtension, GraphQLInfo, GroupField, GroupFieldClient, GroupFieldClientComponent, GroupFieldClientProps, GroupFieldDescriptionClientComponent, GroupFieldDescriptionServerComponent, GroupFieldDiffClientComponent, GroupFieldDiffServerComponent, GroupFieldErrorClientComponent, GroupFieldErrorServerComponent, GroupFieldLabelClientComponent, GroupFieldLabelServerComponent, GroupFieldServerComponent, GroupFieldServerProps, HiddenFieldProps, HierarchyConfig, HierarchyViewData, HookName, HookOperationType, IfAny, ImageSize, ImageUploadFormatOptions, ImageUploadTrimOptions, ImportMap, ImportMapGenerators, IncomingAuthType, Init, InitOptions, InitPageResult, InitReqResult, InitialTreeData, InsideFieldsPreferences, IsAny, JSONField, JSONFieldClient, JSONFieldClientComponent, JSONFieldClientProps, JSONFieldDescriptionClientComponent, JSONFieldDescriptionServerComponent, JSONFieldDiffClientComponent, JSONFieldDiffServerComponent, JSONFieldErrorClientComponent, JSONFieldErrorServerComponent, JSONFieldLabelClientComponent, JSONFieldLabelServerComponent, JSONFieldServerComponent, JSONFieldServerProps, JSONFieldValidation, Job, JobLog, JobTaskStatus, JobsConfig, JoinField, JoinFieldClient, JoinFieldClientComponent, JoinFieldClientProps, JoinFieldDescriptionClientComponent, JoinFieldDescriptionServerComponent, JoinFieldDiffClientComponent, JoinFieldDiffServerComponent, JoinFieldErrorClientComponent, JoinFieldErrorServerComponent, JoinFieldLabelClientComponent, JoinFieldLabelServerComponent, JoinFieldServerComponent, JoinFieldServerProps, JoinQuery, JsonArray, JsonObject, JsonValue, KVAdapter, KVAdapterResult, KVStoreValue, LabelFunction, Labels, LabelsClient, LanguageOptions, CollectionPreferences as ListPreferences, ListQuery, ListViewClientProps, ListViewServerProps, ListViewServerPropsOnly, ListViewSlotSharedClientProps, ListViewSlots, LivePreviewConfig, LivePreviewURLType, Locale, LocalizationConfig, LocalizationConfigWithLabels, LocalizationConfigWithNoLabels, LoginResult, LoginWithUsernameOptions, MappedClientComponent, MappedEmptyComponent, MappedServerComponent, MaybePromise, MeOperationResult, MetaConfig, Migration, MigrationData, MigrationTemplateArgs, LocalizeStatusArgs$1 as MongoLocalizeStatusArgs, NamedGroupField, NamedGroupFieldClient, NamedTab, NavGroupPreferences, NavPreferences, NonPresentationalField, NonPresentationalFieldClient, NumberField, NumberFieldClient, NumberFieldClientComponent, NumberFieldClientProps, NumberFieldDescriptionClientComponent, NumberFieldDescriptionServerComponent, NumberFieldDiffClientComponent, NumberFieldDiffServerComponent, NumberFieldErrorClientComponent, NumberFieldErrorServerComponent, NumberFieldLabelClientComponent, NumberFieldLabelServerComponent, NumberFieldManyValidation, NumberFieldServerComponent, NumberFieldServerProps, NumberFieldSingleValidation, NumberFieldValidation, OGImageConfig, Operation, Operator, Option, OptionLabel, OptionObject, OrderableEndpointBody, PaginatedDistinctDocs, PaginatedDocs, Params, PasswordFieldValidation, PathToQuery, Payload, PayloadClientComponentProps, PayloadClientReactComponent, PayloadComponent, PayloadComponentProps, EmailAdapter as PayloadEmailAdapter, PayloadHandler, PayloadLogger, PayloadReactComponent, PayloadRequest, PayloadServerAction, PayloadServerComponentProps, PayloadServerReactComponent, PayloadTypes, PayloadTypesShape, Permission, Permissions, PickPreserveOptional, Plugin, PluginsMap, PointField, PointFieldClient, PointFieldClientComponent, PointFieldClientProps, PointFieldDescriptionClientComponent, PointFieldDescriptionServerComponent, PointFieldDiffClientComponent, PointFieldDiffServerComponent, PointFieldErrorClientComponent, PointFieldErrorServerComponent, PointFieldLabelClientComponent, PointFieldLabelServerComponent, PointFieldServerComponent, PointFieldServerProps, PointFieldValidation, PolymorphicRelationshipField, PolymorphicRelationshipFieldClient, PopulateType, PreferenceRequest, PreferenceUpdateRequest, PreviewButtonClientProps, PreviewButtonServerProps, PreviewButtonServerPropsOnly, ProbedImageSize, PublishButtonClientProps, PublishButtonServerProps, PublishButtonServerPropsOnly, QueryDrafts, QueryDraftsArgs, QueryPreset, RadioField, RadioFieldClient, RadioFieldClientComponent, RadioFieldClientProps, RadioFieldDescriptionClientComponent, RadioFieldDescriptionServerComponent, RadioFieldDiffClientComponent, RadioFieldDiffServerComponent, RadioFieldErrorClientComponent, RadioFieldErrorServerComponent, RadioFieldLabelClientComponent, RadioFieldLabelServerComponent, RadioFieldServerComponent, RadioFieldServerProps, RadioFieldValidation, RawPayloadComponent, RegisteredPlugins, RelatedDocumentsGrouped, RelationshipField, RelationshipFieldClient, RelationshipFieldClientComponent, RelationshipFieldClientProps, RelationshipFieldDescriptionClientComponent, RelationshipFieldDescriptionServerComponent, RelationshipFieldDiffClientComponent, RelationshipFieldDiffServerComponent, RelationshipFieldErrorClientComponent, RelationshipFieldErrorServerComponent, RelationshipFieldLabelClientComponent, RelationshipFieldLabelServerComponent, RelationshipFieldManyValidation, RelationshipFieldServerComponent, RelationshipFieldServerProps, RelationshipFieldSingleValidation, RelationshipFieldValidation, RelationshipValue, RenderConfigArgs, RenderDocumentVersionsProperties, RenderEntityConfigArgs, RenderFieldConfigArgs, RenderRootConfigArgs, RenderedField, ReplaceAny, RequestContext, RequiredDataFromCollection, RequiredDataFromCollectionSlug, ResolvedComponent, ResolvedFilterOptions, RichTextAdapter, RichTextAdapterProvider, RichTextField, RichTextFieldClient, RichTextFieldClientComponent, RichTextFieldClientProps, RichTextFieldDescriptionClientComponent, RichTextFieldDescriptionServerComponent, RichTextFieldDiffClientComponent, RichTextFieldDiffServerComponent, RichTextFieldErrorClientComponent, RichTextFieldErrorServerComponent, RichTextFieldLabelClientComponent, RichTextFieldLabelServerComponent, RichTextFieldServerComponent, RichTextFieldServerProps, RichTextFieldValidation, RichTextHooks, RollbackTransaction, RootLivePreviewConfig, Row, RowField, RowFieldClient, RowFieldClientComponent, RowFieldClientProps, RowFieldDescriptionClientComponent, RowFieldDescriptionServerComponent, RowFieldDiffClientComponent, RowFieldDiffServerComponent, RowFieldErrorClientComponent, RowFieldErrorServerComponent, RowFieldLabelClientComponent, RowFieldLabelServerComponent, RowFieldServerComponent, RowFieldServerProps, RowLabel, RowLabelComponent, RunInlineTaskFunction, RunJobAccess, RunJobAccessArgs, RunTaskFunction, RunTaskFunctions, RunningJob, SanitizeFieldArgs, SanitizedBlockPermissions, SanitizedBlocksPermissions, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedCompoundIndex, SanitizedConfig, SanitizedDashboardConfig, SanitizedDocumentPermissions, SanitizedFieldPermissions, SanitizedFieldsPermissions, SanitizedGlobalConfig, SanitizedGlobalPermission, SanitizedHierarchyConfig, SanitizedHierarchyRelatedCollection, SanitizedJoins, SanitizedLabelProps, SanitizedLocalizationConfig, SanitizedPermissions, SanitizedUploadConfig, SaveButtonClientProps, SaveButtonServerProps, SaveButtonServerPropsOnly, SaveDraftButtonClientProps, SaveDraftButtonServerProps, SaveDraftButtonServerPropsOnly, SchedulePublish, SchedulePublishTaskInput, SelectExcludeType, SelectField, SelectFieldClient, SelectFieldClientComponent, SelectFieldClientProps, SelectFieldDescriptionClientComponent, SelectFieldDescriptionServerComponent, SelectFieldDiffClientComponent, SelectFieldDiffServerComponent, SelectFieldErrorClientComponent, SelectFieldErrorServerComponent, SelectFieldLabelClientComponent, SelectFieldLabelServerComponent, SelectFieldManyValidation, SelectFieldServerComponent, SelectFieldServerProps, SelectFieldSingleValidation, SelectFieldValidation, SelectFn, SelectFnArgs, SelectFnOperation, SelectIncludeType, SelectMode, SelectType, SendEmailOptions, ServerComponentProps, ServerFieldBase, ServerFunction, ServerFunctionArgs, ServerFunctionClient, ServerFunctionClientArgs, ServerFunctionConfig, ServerFunctionHandler, ServerOnlyCollectionAdminProperties, ServerOnlyCollectionProperties, ServerOnlyFieldAdminProperties, ServerOnlyFieldProperties, ServerOnlyGlobalAdminProperties, ServerOnlyGlobalProperties, ServerOnlyLivePreviewProperties, ServerOnlyUploadProperties, ServerProps, ServerPropsFromView, DocumentViewServerProps as ServerSideEditViewProps, SharedAdminComponents, SharedEditViewComponents, SharedEntityViews, SharedProps, SharpDependency, SidebarTab, SidebarTabClientProps, SidebarTabServerProps, SidebarTabServerPropsOnly, SingleRelationshipField, SingleRelationshipFieldClient, SingleTaskStatus, SlugField, SlugFieldClientProps, SlugifyServerFunctionArgs, Sort, LocalizeStatusArgs as SqlLocalizeStatusArgs, StaticDescription, StaticLabel, StringKeyOf, Tab, TabAsField, TabAsFieldClient, TabsField, TabsFieldClient, TabsFieldClientComponent, TabsFieldClientProps, TabsFieldDescriptionClientComponent, TabsFieldDescriptionServerComponent, TabsFieldDiffClientComponent, TabsFieldDiffServerComponent, TabsFieldErrorClientComponent, TabsFieldErrorServerComponent, TabsFieldLabelClientComponent, TabsFieldLabelServerComponent, TabsFieldServerComponent, TabsFieldServerProps, TabsPreferences, TagsConfig, TaskConfig, TaskHandler, TaskHandlerArgs, TaskHandlerResult, TaskHandlerResults, TaskInput, TaskOutput, TaskType, TextField, TextFieldClient, TextFieldClientComponent, TextFieldClientProps, TextFieldDescriptionClientComponent, TextFieldDescriptionServerComponent, TextFieldDiffClientComponent, TextFieldDiffServerComponent, TextFieldErrorClientComponent, TextFieldErrorServerComponent, TextFieldLabelClientComponent, TextFieldLabelServerComponent, TextFieldManyValidation, TextFieldServerComponent, TextFieldServerProps, TextFieldSingleValidation, TextFieldValidation, TextareaField, TextareaFieldClient, TextareaFieldClientComponent, TextareaFieldClientProps, TextareaFieldDescriptionClientComponent, TextareaFieldDescriptionServerComponent, TextareaFieldDiffClientComponent, TextareaFieldDiffServerComponent, TextareaFieldErrorClientComponent, TextareaFieldErrorServerComponent, TextareaFieldLabelClientComponent, TextareaFieldLabelServerComponent, TextareaFieldServerComponent, TextareaFieldServerProps, TextareaFieldValidation, TimePickerProps, Timezone, TimezonesConfig, Transaction, TransformCollectionWithSelect, TransformDataWithSelect, TransformGlobalWithSelect, TraverseFieldsCallback, TypeWithID, TypeWithTimestamps, TypeWithVersion, TypedAuthOperations, TypedBlock, TypedCollection, TypedCollectionJoins, TypedCollectionSelect, TypedFallbackLocale, TypedGlobal, TypedGlobalSelect, TypedJobs, TypedLocale, TypedUploadCollection, TypedUser, TypedWidget, UIField, UIFieldClient, UIFieldClientComponent, UIFieldClientProps, UIFieldDiffClientComponent, UIFieldDiffServerComponent, UIFieldServerComponent, UIFieldServerProps, UnauthenticatedClientConfig, UnnamedGroupField, UnnamedGroupFieldClient, UnnamedTab, UnpublishButtonClientProps, UnpublishButtonServerProps, UnpublishButtonServerPropsOnly, UntypedPayloadTypes, UntypedUser, UpdateGlobal, UpdateGlobalArgs, UpdateGlobalVersion, UpdateGlobalVersionArgs, UpdateJobs, UpdateJobsArgs, UpdateMany, UpdateManyArgs, UpdateOne, UpdateOneArgs, UpdateVersion, UpdateVersionArgs, UploadCollectionSlug, UploadConfig, UploadEdits, UploadField, UploadFieldClient, UploadFieldClientComponent, UploadFieldClientProps, UploadFieldDescriptionClientComponent, UploadFieldDescriptionServerComponent, UploadFieldDiffClientComponent, UploadFieldDiffServerComponent, UploadFieldErrorClientComponent, UploadFieldErrorServerComponent, UploadFieldLabelClientComponent, UploadFieldLabelServerComponent, UploadFieldManyValidation, UploadFieldServerComponent, UploadFieldServerProps, UploadFieldSingleValidation, UploadFieldValidation, Upsert, UpsertArgs, UntypedUser as User, UserSession, UsernameFieldValidation, Validate, ValidateOptions, ValidationFieldError, ValueWithRelation, VerifyConfig, VersionField, VersionOperations, VersionTab, ViewDescriptionClientProps, ViewDescriptionServerProps, ViewDescriptionServerPropsOnly, ViewTypes, VisibleEntities, Where, WhereField, Widget, WidgetInstance, WidgetServerProps, WidgetSlug, WidgetWidth, WithSelectFn, WithServerSidePropsComponent, WithServerSidePropsComponentProps, WorkflowConfig, WorkflowHandler, WorkflowTypes, checkFileRestrictionsParams };