payload 4.0.0-internal.5b1e7cd → 4.0.0-internal.5f0cd13

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 (641) hide show
  1. package/dist/admin/RichText.d.ts +3 -16
  2. package/dist/admin/RichText.d.ts.map +1 -1
  3. package/dist/admin/RichText.js.map +1 -1
  4. package/dist/admin/adapters/cookies.d.ts +21 -0
  5. package/dist/admin/adapters/cookies.d.ts.map +1 -0
  6. package/dist/admin/adapters/cookies.js +3 -0
  7. package/dist/admin/adapters/cookies.js.map +1 -0
  8. package/dist/admin/adapters/index.d.ts +4 -0
  9. package/dist/admin/adapters/index.d.ts.map +1 -0
  10. package/dist/admin/adapters/index.js +3 -0
  11. package/dist/admin/adapters/index.js.map +1 -0
  12. package/dist/admin/adapters/router.d.ts +56 -0
  13. package/dist/admin/adapters/router.d.ts.map +1 -0
  14. package/dist/admin/adapters/router.js +3 -0
  15. package/dist/admin/adapters/router.js.map +1 -0
  16. package/dist/admin/adapters/server.d.ts +23 -0
  17. package/dist/admin/adapters/server.d.ts.map +1 -0
  18. package/dist/admin/adapters/server.js +6 -0
  19. package/dist/admin/adapters/server.js.map +1 -0
  20. package/dist/admin/elements/Nav.d.ts +13 -0
  21. package/dist/admin/elements/Nav.d.ts.map +1 -1
  22. package/dist/admin/elements/Nav.js.map +1 -1
  23. package/dist/admin/elements/Table.d.ts +1 -0
  24. package/dist/admin/elements/Table.d.ts.map +1 -1
  25. package/dist/admin/elements/Table.js.map +1 -1
  26. package/dist/admin/functions/index.d.ts +1 -38
  27. package/dist/admin/functions/index.d.ts.map +1 -1
  28. package/dist/admin/functions/index.js.map +1 -1
  29. package/dist/admin/types.d.ts +5 -4
  30. package/dist/admin/types.d.ts.map +1 -1
  31. package/dist/admin/types.js.map +1 -1
  32. package/dist/admin/views/hierarchyList.d.ts +10 -0
  33. package/dist/admin/views/hierarchyList.d.ts.map +1 -0
  34. package/dist/admin/views/hierarchyList.js +3 -0
  35. package/dist/admin/views/hierarchyList.js.map +1 -0
  36. package/dist/admin/views/index.d.ts +1 -3
  37. package/dist/admin/views/index.d.ts.map +1 -1
  38. package/dist/admin/views/index.js.map +1 -1
  39. package/dist/admin/views/list.d.ts +47 -2
  40. package/dist/admin/views/list.d.ts.map +1 -1
  41. package/dist/admin/views/list.js.map +1 -1
  42. package/dist/auth/cookies.d.ts.map +1 -1
  43. package/dist/auth/defaultAccess.d.ts.map +1 -1
  44. package/dist/auth/ensureUsernameOrEmail.d.ts.map +1 -1
  45. package/dist/auth/executeAccess.d.ts.map +1 -1
  46. package/dist/auth/executeAuthStrategies.d.ts.map +1 -1
  47. package/dist/auth/extractAccessFromPermission.d.ts.map +1 -1
  48. package/dist/auth/extractJWT.d.ts.map +1 -1
  49. package/dist/auth/getAuthFields.d.ts.map +1 -1
  50. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  51. package/dist/auth/getLoginOptions.d.ts.map +1 -1
  52. package/dist/auth/isUserLocked.d.ts.map +1 -1
  53. package/dist/auth/jwt.d.ts.map +1 -1
  54. package/dist/auth/operations/access.d.ts.map +1 -1
  55. package/dist/auth/operations/auth.d.ts.map +1 -1
  56. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  57. package/dist/auth/operations/init.d.ts.map +1 -1
  58. package/dist/auth/operations/local/auth.d.ts.map +1 -1
  59. package/dist/auth/operations/login.d.ts.map +1 -1
  60. package/dist/auth/operations/logout.d.ts.map +1 -1
  61. package/dist/auth/operations/me.d.ts.map +1 -1
  62. package/dist/auth/operations/refresh.d.ts.map +1 -1
  63. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  64. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  65. package/dist/auth/operations/unlock.d.ts.map +1 -1
  66. package/dist/auth/operations/verifyEmail.d.ts.map +1 -1
  67. package/dist/auth/sessions.d.ts.map +1 -1
  68. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  69. package/dist/auth/strategies/apiKey.js +6 -17
  70. package/dist/auth/strategies/apiKey.js.map +1 -1
  71. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  72. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  73. package/dist/auth/strategies/local/incrementLoginAttempts.d.ts.map +1 -1
  74. package/dist/auth/strategies/local/register.d.ts.map +1 -1
  75. package/dist/auth/strategies/local/resetLoginAttempts.d.ts.map +1 -1
  76. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -1
  77. package/dist/bin/generateImportMap/iterateCollections.js +1 -0
  78. package/dist/bin/generateImportMap/iterateCollections.js.map +1 -1
  79. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -1
  80. package/dist/bin/generateImportMap/iterateConfig.js +7 -0
  81. package/dist/bin/generateImportMap/iterateConfig.js.map +1 -1
  82. package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -1
  83. package/dist/bin/generateImportMap/iterateFields.js +4 -1
  84. package/dist/bin/generateImportMap/iterateFields.js.map +1 -1
  85. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +1 -1
  86. package/dist/bin/generateImportMap/iterateGlobals.js +20 -8
  87. package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -1
  88. package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -1
  89. package/dist/bin/generateTypes.d.ts.map +1 -1
  90. package/dist/bin/generateTypes.js +7 -1
  91. package/dist/bin/generateTypes.js.map +1 -1
  92. package/dist/bin/index.d.ts.map +1 -1
  93. package/dist/bin/index.js +1 -3
  94. package/dist/bin/index.js.map +1 -1
  95. package/dist/bin/migrate.d.ts.map +1 -1
  96. package/dist/collections/config/client.d.ts +4 -2
  97. package/dist/collections/config/client.d.ts.map +1 -1
  98. package/dist/collections/config/client.js +13 -1
  99. package/dist/collections/config/client.js.map +1 -1
  100. package/dist/collections/config/defaults.d.ts.map +1 -1
  101. package/dist/collections/config/defaults.js +1 -1
  102. package/dist/collections/config/defaults.js.map +1 -1
  103. package/dist/collections/config/sanitize.d.ts +10 -1
  104. package/dist/collections/config/sanitize.d.ts.map +1 -1
  105. package/dist/collections/config/sanitize.js +51 -10
  106. package/dist/collections/config/sanitize.js.map +1 -1
  107. package/dist/collections/config/sanitizeCompoundIndexes.d.ts.map +1 -1
  108. package/dist/collections/config/types.d.ts +76 -91
  109. package/dist/collections/config/types.d.ts.map +1 -1
  110. package/dist/collections/config/types.js.map +1 -1
  111. package/dist/collections/config/useAsTitle.d.ts.map +1 -1
  112. package/dist/collections/dataloader.d.ts.map +1 -1
  113. package/dist/collections/operations/count.d.ts.map +1 -1
  114. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  115. package/dist/collections/operations/create.d.ts.map +1 -1
  116. package/dist/collections/operations/create.js +24 -19
  117. package/dist/collections/operations/create.js.map +1 -1
  118. package/dist/collections/operations/delete.d.ts.map +1 -1
  119. package/dist/collections/operations/delete.js +7 -2
  120. package/dist/collections/operations/delete.js.map +1 -1
  121. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  122. package/dist/collections/operations/deleteByID.js +7 -2
  123. package/dist/collections/operations/deleteByID.js.map +1 -1
  124. package/dist/collections/operations/duplicate.d.ts.map +1 -1
  125. package/dist/collections/operations/find.d.ts.map +1 -1
  126. package/dist/collections/operations/find.js +7 -2
  127. package/dist/collections/operations/find.js.map +1 -1
  128. package/dist/collections/operations/findByID.d.ts.map +1 -1
  129. package/dist/collections/operations/findByID.js +10 -5
  130. package/dist/collections/operations/findByID.js.map +1 -1
  131. package/dist/collections/operations/findDistinct.d.ts.map +1 -1
  132. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  133. package/dist/collections/operations/findVersionByID.js +6 -4
  134. package/dist/collections/operations/findVersionByID.js.map +1 -1
  135. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  136. package/dist/collections/operations/findVersions.js +6 -4
  137. package/dist/collections/operations/findVersions.js.map +1 -1
  138. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  139. package/dist/collections/operations/restoreVersion.js +7 -2
  140. package/dist/collections/operations/restoreVersion.js.map +1 -1
  141. package/dist/collections/operations/update.d.ts.map +1 -1
  142. package/dist/collections/operations/update.js +7 -2
  143. package/dist/collections/operations/update.js.map +1 -1
  144. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  145. package/dist/collections/operations/updateByID.js +7 -2
  146. package/dist/collections/operations/updateByID.js.map +1 -1
  147. package/dist/collections/operations/utilities/buildAfterOperation.d.ts.map +1 -1
  148. package/dist/collections/operations/utilities/sanitizeSortQuery.d.ts.map +1 -1
  149. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  150. package/dist/collections/operations/utilities/update.js +5 -4
  151. package/dist/collections/operations/utilities/update.js.map +1 -1
  152. package/dist/config/build.d.ts.map +1 -1
  153. package/dist/config/build.js +8 -0
  154. package/dist/config/build.js.map +1 -1
  155. package/dist/config/client.d.ts +1 -1
  156. package/dist/config/client.d.ts.map +1 -1
  157. package/dist/config/client.js +2 -11
  158. package/dist/config/client.js.map +1 -1
  159. package/dist/config/defaults.d.ts.map +1 -1
  160. package/dist/config/defaults.js +0 -15
  161. package/dist/config/defaults.js.map +1 -1
  162. package/dist/config/orderable/index.d.ts.map +1 -1
  163. package/dist/config/orderable/index.js +0 -4
  164. package/dist/config/orderable/index.js.map +1 -1
  165. package/dist/config/sanitize.d.ts.map +1 -1
  166. package/dist/config/sanitize.js +6 -53
  167. package/dist/config/sanitize.js.map +1 -1
  168. package/dist/config/types.d.ts +188 -32
  169. package/dist/config/types.d.ts.map +1 -1
  170. package/dist/config/types.js.map +1 -1
  171. package/dist/database/combineQueries.d.ts.map +1 -1
  172. package/dist/database/migrations/findMigrationDir.d.ts.map +1 -1
  173. package/dist/database/migrations/getPredefinedMigration.d.ts.map +1 -1
  174. package/dist/database/migrations/readMigrationFiles.d.ts.map +1 -1
  175. package/dist/database/migrations/templates/localizeStatus.d.ts.map +1 -1
  176. package/dist/database/migrations/writeMigrationIndex.d.ts.map +1 -1
  177. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  178. package/dist/database/sanitizeWhereQuery.d.ts.map +1 -1
  179. package/dist/duplicateDocument/index.d.ts.map +1 -1
  180. package/dist/email/getStringifiedToAddress.d.ts.map +1 -1
  181. package/dist/exports/shared.d.ts +6 -3
  182. package/dist/exports/shared.d.ts.map +1 -1
  183. package/dist/exports/shared.js +4 -2
  184. package/dist/exports/shared.js.map +1 -1
  185. package/dist/fields/baseFields/slug/countVersions.d.ts.map +1 -1
  186. package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
  187. package/dist/fields/baseFields/slug/index.d.ts.map +1 -1
  188. package/dist/fields/baseFields/slug/index.js +7 -5
  189. package/dist/fields/baseFields/slug/index.js.map +1 -1
  190. package/dist/fields/config/client.d.ts +1 -1
  191. package/dist/fields/config/client.d.ts.map +1 -1
  192. package/dist/fields/config/client.js +4 -3
  193. package/dist/fields/config/client.js.map +1 -1
  194. package/dist/fields/config/sanitize.d.ts.map +1 -1
  195. package/dist/fields/config/sanitize.js +13 -20
  196. package/dist/fields/config/sanitize.js.map +1 -1
  197. package/dist/fields/config/sanitizeJoinField.d.ts.map +1 -1
  198. package/dist/fields/config/sanitizeJoinField.js +3 -0
  199. package/dist/fields/config/sanitizeJoinField.js.map +1 -1
  200. package/dist/fields/config/types.d.ts +44 -118
  201. package/dist/fields/config/types.d.ts.map +1 -1
  202. package/dist/fields/config/types.js +12 -2
  203. package/dist/fields/config/types.js.map +1 -1
  204. package/dist/fields/getDefaultValue.d.ts.map +1 -1
  205. package/dist/fields/hooks/afterChange/index.d.ts.map +1 -1
  206. package/dist/fields/hooks/afterChange/promise.d.ts.map +1 -1
  207. package/dist/fields/hooks/afterChange/traverseFields.d.ts.map +1 -1
  208. package/dist/fields/hooks/afterRead/promise.d.ts.map +1 -1
  209. package/dist/fields/hooks/afterRead/relationshipPopulationPromise.d.ts.map +1 -1
  210. package/dist/fields/hooks/afterRead/traverseFields.d.ts.map +1 -1
  211. package/dist/fields/hooks/afterRead/virtualFieldPopulationPromise.d.ts.map +1 -1
  212. package/dist/fields/hooks/beforeChange/cloneDataFromOriginalDoc.d.ts.map +1 -1
  213. package/dist/fields/hooks/beforeChange/getExistingRowDoc.d.ts.map +1 -1
  214. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  215. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  216. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  217. package/dist/fields/hooks/beforeDuplicate/index.d.ts.map +1 -1
  218. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  219. package/dist/fields/hooks/beforeDuplicate/traverseFields.d.ts.map +1 -1
  220. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  221. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  222. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  223. package/dist/fields/isFieldDisabled.d.ts +12 -0
  224. package/dist/fields/isFieldDisabled.d.ts.map +1 -0
  225. package/dist/fields/isFieldDisabled.js +15 -0
  226. package/dist/fields/isFieldDisabled.js.map +1 -0
  227. package/dist/fields/isFieldDisabled.spec.js +134 -0
  228. package/dist/fields/isFieldDisabled.spec.js.map +1 -0
  229. package/dist/fields/mergeBaseFields.d.ts.map +1 -1
  230. package/dist/fields/setDefaultBeforeDuplicate.d.ts.map +1 -1
  231. package/dist/fields/validations.js +1 -1
  232. package/dist/fields/validations.js.map +1 -1
  233. package/dist/globals/config/client.d.ts +1 -1
  234. package/dist/globals/config/client.d.ts.map +1 -1
  235. package/dist/globals/config/client.js +2 -1
  236. package/dist/globals/config/client.js.map +1 -1
  237. package/dist/globals/config/sanitize.d.ts +6 -1
  238. package/dist/globals/config/sanitize.d.ts.map +1 -1
  239. package/dist/globals/config/sanitize.js +6 -2
  240. package/dist/globals/config/sanitize.js.map +1 -1
  241. package/dist/globals/config/types.d.ts +4 -57
  242. package/dist/globals/config/types.d.ts.map +1 -1
  243. package/dist/globals/config/types.js.map +1 -1
  244. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  245. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  246. package/dist/globals/operations/findOne.d.ts.map +1 -1
  247. package/dist/globals/operations/findOne.js +7 -2
  248. package/dist/globals/operations/findOne.js.map +1 -1
  249. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  250. package/dist/globals/operations/findVersionByID.js +6 -4
  251. package/dist/globals/operations/findVersionByID.js.map +1 -1
  252. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  253. package/dist/globals/operations/findVersions.js +6 -4
  254. package/dist/globals/operations/findVersions.js.map +1 -1
  255. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  256. package/dist/globals/operations/update.d.ts.map +1 -1
  257. package/dist/globals/operations/update.js +7 -2
  258. package/dist/globals/operations/update.js.map +1 -1
  259. package/dist/hierarchy/addHierarchyToCollection.d.ts +9 -0
  260. package/dist/hierarchy/addHierarchyToCollection.d.ts.map +1 -0
  261. package/dist/hierarchy/addHierarchyToCollection.js +76 -0
  262. package/dist/hierarchy/addHierarchyToCollection.js.map +1 -0
  263. package/dist/hierarchy/buildParentField.d.ts +11 -0
  264. package/dist/hierarchy/buildParentField.d.ts.map +1 -0
  265. package/dist/hierarchy/buildParentField.js +42 -0
  266. package/dist/hierarchy/buildParentField.js.map +1 -0
  267. package/dist/hierarchy/constants.d.ts +15 -0
  268. package/dist/hierarchy/constants.d.ts.map +1 -0
  269. package/dist/hierarchy/constants.js +11 -0
  270. package/dist/hierarchy/constants.js.map +1 -0
  271. package/dist/hierarchy/createFolderField.d.ts +39 -0
  272. package/dist/hierarchy/createFolderField.d.ts.map +1 -0
  273. package/dist/hierarchy/createFolderField.js +54 -0
  274. package/dist/hierarchy/createFolderField.js.map +1 -0
  275. package/dist/hierarchy/createTagField.d.ts +44 -0
  276. package/dist/hierarchy/createTagField.d.ts.map +1 -0
  277. package/dist/hierarchy/createTagField.js +48 -0
  278. package/dist/hierarchy/createTagField.js.map +1 -0
  279. package/dist/hierarchy/getInitialTreeData.d.ts +27 -0
  280. package/dist/hierarchy/getInitialTreeData.d.ts.map +1 -0
  281. package/dist/hierarchy/getInitialTreeData.js +125 -0
  282. package/dist/hierarchy/getInitialTreeData.js.map +1 -0
  283. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts +14 -0
  284. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -0
  285. package/dist/hierarchy/hooks/collectionAfterDelete.js +21 -0
  286. package/dist/hierarchy/hooks/collectionAfterDelete.js.map +1 -0
  287. package/dist/hierarchy/hooks/collectionAfterRead.d.ts +27 -0
  288. package/dist/hierarchy/hooks/collectionAfterRead.d.ts.map +1 -0
  289. package/dist/hierarchy/hooks/collectionAfterRead.js +72 -0
  290. package/dist/hierarchy/hooks/collectionAfterRead.js.map +1 -0
  291. package/dist/hierarchy/hooks/collectionBeforeChange.d.ts +19 -0
  292. package/dist/hierarchy/hooks/collectionBeforeChange.d.ts.map +1 -0
  293. package/dist/hierarchy/hooks/collectionBeforeChange.js +90 -0
  294. package/dist/hierarchy/hooks/collectionBeforeChange.js.map +1 -0
  295. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts +15 -0
  296. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -0
  297. package/dist/hierarchy/hooks/collectionBeforeDelete.js +20 -0
  298. package/dist/hierarchy/hooks/collectionBeforeDelete.js.map +1 -0
  299. package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts +33 -0
  300. package/dist/hierarchy/hooks/collectionBeforeOperation.d.ts.map +1 -0
  301. package/dist/hierarchy/hooks/collectionBeforeOperation.js +66 -0
  302. package/dist/hierarchy/hooks/collectionBeforeOperation.js.map +1 -0
  303. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts +8 -0
  304. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -0
  305. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js +108 -0
  306. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js.map +1 -0
  307. package/dist/hierarchy/injectHierarchyButton.d.ts +14 -0
  308. package/dist/hierarchy/injectHierarchyButton.d.ts.map +1 -0
  309. package/dist/hierarchy/injectHierarchyButton.js +37 -0
  310. package/dist/hierarchy/injectHierarchyButton.js.map +1 -0
  311. package/dist/hierarchy/presets.d.ts +13 -0
  312. package/dist/hierarchy/presets.d.ts.map +1 -0
  313. package/dist/hierarchy/presets.js +52 -0
  314. package/dist/hierarchy/presets.js.map +1 -0
  315. package/dist/hierarchy/resolveHierarchyCollections.d.ts +23 -0
  316. package/dist/hierarchy/resolveHierarchyCollections.d.ts.map +1 -0
  317. package/dist/hierarchy/resolveHierarchyCollections.js +321 -0
  318. package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -0
  319. package/dist/hierarchy/sanitizeHierarchyCollection.d.ts +14 -0
  320. package/dist/hierarchy/sanitizeHierarchyCollection.d.ts.map +1 -0
  321. package/dist/hierarchy/sanitizeHierarchyCollection.js +119 -0
  322. package/dist/hierarchy/sanitizeHierarchyCollection.js.map +1 -0
  323. package/dist/hierarchy/types.d.ts +162 -0
  324. package/dist/hierarchy/types.d.ts.map +1 -0
  325. package/dist/hierarchy/types.js +6 -0
  326. package/dist/hierarchy/types.js.map +1 -0
  327. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.d.ts +77 -0
  328. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.d.ts.map +1 -0
  329. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.js +77 -0
  330. package/dist/hierarchy/utils/buildLocalizedHierarchyPaths.js.map +1 -0
  331. package/dist/hierarchy/utils/computePaths.d.ts +31 -0
  332. package/dist/hierarchy/utils/computePaths.d.ts.map +1 -0
  333. package/dist/hierarchy/utils/computePaths.js +445 -0
  334. package/dist/hierarchy/utils/computePaths.js.map +1 -0
  335. package/dist/hierarchy/utils/findUseAsTitle.d.ts +14 -0
  336. package/dist/hierarchy/utils/findUseAsTitle.d.ts.map +1 -0
  337. package/dist/hierarchy/utils/findUseAsTitle.js +89 -0
  338. package/dist/hierarchy/utils/findUseAsTitle.js.map +1 -0
  339. package/dist/hierarchy/utils/getAncestors.d.ts +34 -0
  340. package/dist/hierarchy/utils/getAncestors.d.ts.map +1 -0
  341. package/dist/hierarchy/utils/getAncestors.js +94 -0
  342. package/dist/hierarchy/utils/getAncestors.js.map +1 -0
  343. package/dist/hierarchy/utils/getLocalizedValue.d.ts +30 -0
  344. package/dist/hierarchy/utils/getLocalizedValue.d.ts.map +1 -0
  345. package/dist/hierarchy/utils/getLocalizedValue.js +46 -0
  346. package/dist/hierarchy/utils/getLocalizedValue.js.map +1 -0
  347. package/dist/hierarchy/utils/getLocalizedValue.spec.js +250 -0
  348. package/dist/hierarchy/utils/getLocalizedValue.spec.js.map +1 -0
  349. package/dist/index.bundled.d.ts +1017 -672
  350. package/dist/index.d.ts +32 -10
  351. package/dist/index.d.ts.map +1 -1
  352. package/dist/index.js +13 -8
  353. package/dist/index.js.map +1 -1
  354. package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
  355. package/dist/locked-documents/config.d.ts.map +1 -1
  356. package/dist/preferences/config.d.ts.map +1 -1
  357. package/dist/preferences/deleteUserPreferences.d.ts.map +1 -1
  358. package/dist/preferences/keys.d.ts +8 -4
  359. package/dist/preferences/keys.d.ts.map +1 -1
  360. package/dist/preferences/keys.js +7 -4
  361. package/dist/preferences/keys.js.map +1 -1
  362. package/dist/preferences/types.d.ts +1 -1
  363. package/dist/preferences/types.d.ts.map +1 -1
  364. package/dist/preferences/types.js.map +1 -1
  365. package/dist/query-presets/access.d.ts.map +1 -1
  366. package/dist/query-presets/config.d.ts.map +1 -1
  367. package/dist/query-presets/config.js +11 -7
  368. package/dist/query-presets/config.js.map +1 -1
  369. package/dist/query-presets/constraints.d.ts.map +1 -1
  370. package/dist/query-presets/constraints.js +1 -1
  371. package/dist/query-presets/constraints.js.map +1 -1
  372. package/dist/queues/config/generateJobsJSONSchemas.d.ts +1 -1
  373. package/dist/queues/config/generateJobsJSONSchemas.d.ts.map +1 -1
  374. package/dist/queues/config/generateJobsJSONSchemas.js +31 -10
  375. package/dist/queues/config/generateJobsJSONSchemas.js.map +1 -1
  376. package/dist/queues/config/types/index.d.ts +0 -21
  377. package/dist/queues/config/types/index.d.ts.map +1 -1
  378. package/dist/queues/config/types/index.js.map +1 -1
  379. package/dist/queues/config/types/taskTypes.d.ts +0 -20
  380. package/dist/queues/config/types/taskTypes.d.ts.map +1 -1
  381. package/dist/queues/config/types/taskTypes.js.map +1 -1
  382. package/dist/queues/endpoints/run.d.ts.map +1 -1
  383. package/dist/queues/errors/handleWorkflowError.d.ts.map +1 -1
  384. package/dist/queues/errors/handleWorkflowError.js +9 -1
  385. package/dist/queues/errors/handleWorkflowError.js.map +1 -1
  386. package/dist/queues/localAPI.d.ts.map +1 -1
  387. package/dist/queues/localAPI.js +26 -67
  388. package/dist/queues/localAPI.js.map +1 -1
  389. package/dist/queues/operations/handleSchedules/getQueuesWithSchedules.d.ts.map +1 -1
  390. package/dist/queues/operations/handleSchedules/index.d.ts.map +1 -1
  391. package/dist/queues/operations/handleSchedules/index.js +1 -4
  392. package/dist/queues/operations/handleSchedules/index.js.map +1 -1
  393. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  394. package/dist/queues/operations/runJobs/index.js +40 -37
  395. package/dist/queues/operations/runJobs/index.js.map +1 -1
  396. package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
  397. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.d.ts.map +1 -1
  398. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +3 -22
  399. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  400. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -1
  401. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +0 -2
  402. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -1
  403. package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -1
  404. package/dist/queues/utilities/getJobTaskStatus.d.ts.map +1 -1
  405. package/dist/queues/utilities/updateJob.d.ts +1 -3
  406. package/dist/queues/utilities/updateJob.d.ts.map +1 -1
  407. package/dist/queues/utilities/updateJob.js +2 -18
  408. package/dist/queues/utilities/updateJob.js.map +1 -1
  409. package/dist/translations/getLocalI18n.d.ts.map +1 -1
  410. package/dist/types/index.d.ts +54 -5
  411. package/dist/types/index.d.ts.map +1 -1
  412. package/dist/types/index.js.map +1 -1
  413. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  414. package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
  415. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  416. package/dist/uploads/endpoints/getFileFromURL.d.ts.map +1 -1
  417. package/dist/uploads/endpoints/getFileFromURL.js +9 -5
  418. package/dist/uploads/endpoints/getFileFromURL.js.map +1 -1
  419. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.d.ts.map +1 -1
  420. package/dist/uploads/fetchAPI-multipart/processNested.d.ts.map +1 -1
  421. package/dist/uploads/fetchAPI-multipart/utilities.d.ts.map +1 -1
  422. package/dist/uploads/fileExists.d.ts.map +1 -1
  423. package/dist/uploads/generateFileData.d.ts.map +1 -1
  424. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  425. package/dist/uploads/getBaseFields.js +24 -70
  426. package/dist/uploads/getBaseFields.js.map +1 -1
  427. package/dist/uploads/getExternalFile.d.ts.map +1 -1
  428. package/dist/uploads/getFileByPath.d.ts.map +1 -1
  429. package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
  430. package/dist/uploads/getSafeFilename.d.ts +9 -4
  431. package/dist/uploads/getSafeFilename.d.ts.map +1 -1
  432. package/dist/uploads/getSafeFilename.js +5 -5
  433. package/dist/uploads/getSafeFilename.js.map +1 -1
  434. package/dist/uploads/image-resizing/createImageSize.d.ts.map +1 -1
  435. package/dist/uploads/image-resizing/generateImageSizeFilename.d.ts.map +1 -1
  436. package/dist/uploads/image-resizing/getImageResizeAction.d.ts.map +1 -1
  437. package/dist/uploads/image-resizing/parseFilename.d.ts.map +1 -1
  438. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts.map +1 -1
  439. package/dist/uploads/mimeTypeValidator.d.ts.map +1 -1
  440. package/dist/uploads/safeFetch.d.ts +1 -1
  441. package/dist/uploads/safeFetch.d.ts.map +1 -1
  442. package/dist/uploads/saveBufferToFile.d.ts.map +1 -1
  443. package/dist/uploads/tempFile.d.ts.map +1 -1
  444. package/dist/uploads/types.d.ts +12 -29
  445. package/dist/uploads/types.d.ts.map +1 -1
  446. package/dist/uploads/types.js.map +1 -1
  447. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  448. package/dist/utilities/addLocalesToRequest.d.ts.map +1 -1
  449. package/dist/utilities/addSelectGenericsToGeneretedTypes.d.ts.map +1 -1
  450. package/dist/utilities/appendDateTimezoneSelectFields.d.ts +13 -0
  451. package/dist/utilities/appendDateTimezoneSelectFields.d.ts.map +1 -0
  452. package/dist/utilities/appendDateTimezoneSelectFields.js +47 -0
  453. package/dist/utilities/appendDateTimezoneSelectFields.js.map +1 -0
  454. package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
  455. package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
  456. package/dist/utilities/appendUploadSelectFields.js +3 -0
  457. package/dist/utilities/appendUploadSelectFields.js.map +1 -1
  458. package/dist/utilities/canAccessAdmin.d.ts.map +1 -1
  459. package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
  460. package/dist/utilities/configToJSONSchema.d.ts +34 -16
  461. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  462. package/dist/utilities/configToJSONSchema.js +127 -52
  463. package/dist/utilities/configToJSONSchema.js.map +1 -1
  464. package/dist/utilities/configToJSONSchema.spec.js +94 -65
  465. package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
  466. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  467. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  468. package/dist/utilities/dependencies/resolveFrom.d.ts.map +1 -1
  469. package/dist/utilities/escapeRegExp.d.ts.map +1 -1
  470. package/dist/utilities/extractID.d.ts.map +1 -1
  471. package/dist/utilities/extractID.js +1 -1
  472. package/dist/utilities/extractID.js.map +1 -1
  473. package/dist/utilities/flattenAllFields.d.ts.map +1 -1
  474. package/dist/utilities/formatAdminURL.d.ts +13 -2
  475. package/dist/utilities/formatAdminURL.d.ts.map +1 -1
  476. package/dist/utilities/formatAdminURL.js +3 -15
  477. package/dist/utilities/formatAdminURL.js.map +1 -1
  478. package/dist/utilities/formatAdminURL.spec.js +1 -90
  479. package/dist/utilities/formatAdminURL.spec.js.map +1 -1
  480. package/dist/utilities/formatErrors.d.ts.map +1 -1
  481. package/dist/utilities/formatLabels.d.ts.map +1 -1
  482. package/dist/utilities/getBestFitFromSizes.d.ts.map +1 -1
  483. package/dist/utilities/getBlockSelect.d.ts.map +1 -1
  484. package/dist/utilities/getDataByPath.d.ts.map +1 -1
  485. package/dist/utilities/getEntityPermissions/populateFieldPermissions.d.ts.map +1 -1
  486. package/dist/utilities/getFieldByPath.d.ts.map +1 -1
  487. package/dist/utilities/getFieldPermissions.d.ts.map +1 -1
  488. package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
  489. package/dist/utilities/getRequestEntity.d.ts.map +1 -1
  490. package/dist/utilities/getRequestLanguage.d.ts.map +1 -1
  491. package/dist/utilities/getRequestOrigin.d.ts.map +1 -1
  492. package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
  493. package/dist/utilities/getSelectMode.d.ts.map +1 -1
  494. package/dist/utilities/getSiblingData.d.ts.map +1 -1
  495. package/dist/utilities/getTranslatedLabel.d.ts.map +1 -1
  496. package/dist/utilities/getVersionsConfig.d.ts.map +1 -1
  497. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  498. package/dist/utilities/handleEndpoints.js +2 -6
  499. package/dist/utilities/handleEndpoints.js.map +1 -1
  500. package/dist/utilities/headersWithCors.d.ts.map +1 -1
  501. package/dist/utilities/isEntityHidden.d.ts.map +1 -1
  502. package/dist/utilities/isURLAllowed.d.ts.map +1 -1
  503. package/dist/utilities/isValidID.d.ts.map +1 -1
  504. package/dist/utilities/logError.d.ts.map +1 -1
  505. package/dist/utilities/logger.d.ts.map +1 -1
  506. package/dist/utilities/mergeHeaders.d.ts.map +1 -1
  507. package/dist/utilities/mergeListSearchAndWhere.d.ts.map +1 -1
  508. package/dist/utilities/optionsAreEqual.d.ts.map +1 -1
  509. package/dist/utilities/parseBooleanString.d.ts.map +1 -1
  510. package/dist/utilities/parseCookies.d.ts.map +1 -1
  511. package/dist/utilities/parseParams/index.d.ts.map +1 -1
  512. package/dist/utilities/profiling.d.ts.map +1 -1
  513. package/dist/utilities/reduceFieldsToValues.d.ts.map +1 -1
  514. package/dist/utilities/resolveSelect.d.ts +16 -0
  515. package/dist/utilities/resolveSelect.d.ts.map +1 -0
  516. package/dist/utilities/resolveSelect.js +19 -0
  517. package/dist/utilities/resolveSelect.js.map +1 -0
  518. package/dist/utilities/routeError.d.ts.map +1 -1
  519. package/dist/utilities/sanitizeFallbackLocale.d.ts.map +1 -1
  520. package/dist/utilities/sanitizeInternalFields.d.ts.map +1 -1
  521. package/dist/utilities/sanitizeJoinParams.d.ts.map +1 -1
  522. package/dist/utilities/sanitizePopulateParam.d.ts.map +1 -1
  523. package/dist/utilities/sanitizeSelect.d.ts +1 -2
  524. package/dist/utilities/sanitizeSelect.d.ts.map +1 -1
  525. package/dist/utilities/sanitizeSelect.js +19 -25
  526. package/dist/utilities/sanitizeSelect.js.map +1 -1
  527. package/dist/utilities/sanitizeSelectParam.d.ts.map +1 -1
  528. package/dist/utilities/sanitizeSortParams.d.ts.map +1 -1
  529. package/dist/utilities/setsAreEqual.d.ts.map +1 -1
  530. package/dist/utilities/slugify.d.ts.map +1 -1
  531. package/dist/utilities/stripUnselectedFields.d.ts.map +1 -1
  532. package/dist/utilities/telemetry/events/adminInit.d.ts.map +1 -1
  533. package/dist/utilities/telemetry/events/serverInit.d.ts.map +1 -1
  534. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  535. package/dist/utilities/telemetry/oneWayHash.d.ts.map +1 -1
  536. package/dist/utilities/timestamp.d.ts.map +1 -1
  537. package/dist/utilities/toKebabCase.d.ts.map +1 -1
  538. package/dist/utilities/transformColumnPreferences.d.ts.map +1 -1
  539. package/dist/utilities/transformWhereQuery.d.ts.map +1 -1
  540. package/dist/utilities/traverseFields.d.ts.map +1 -1
  541. package/dist/utilities/traverseForLocalizedFields.d.ts.map +1 -1
  542. package/dist/utilities/unflatten.d.ts.map +1 -1
  543. package/dist/utilities/validateMimeType.d.ts.map +1 -1
  544. package/dist/utilities/validateTimezones.d.ts.map +1 -1
  545. package/dist/utilities/validateWhereQuery.d.ts.map +1 -1
  546. package/dist/utilities/wordBoundariesRegex.d.ts.map +1 -1
  547. package/dist/utilities/wrapInternalEndpoints.d.ts.map +1 -1
  548. package/dist/versions/baseFields.d.ts.map +1 -1
  549. package/dist/versions/baseFields.js +3 -2
  550. package/dist/versions/baseFields.js.map +1 -1
  551. package/dist/versions/buildCollectionFields.d.ts.map +1 -1
  552. package/dist/versions/buildCollectionFields.js +0 -1
  553. package/dist/versions/buildCollectionFields.js.map +1 -1
  554. package/dist/versions/buildGlobalFields.d.ts.map +1 -1
  555. package/dist/versions/buildGlobalFields.js +0 -1
  556. package/dist/versions/buildGlobalFields.js.map +1 -1
  557. package/dist/versions/buildVersionCompoundIndexes.d.ts.map +1 -1
  558. package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
  559. package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
  560. package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
  561. package/dist/versions/drafts/getQueryDraftsSelect.d.ts.map +1 -1
  562. package/dist/versions/drafts/getQueryDraftsSort.d.ts.map +1 -1
  563. package/dist/versions/drafts/replaceWithDraftIfAvailable.d.ts.map +1 -1
  564. package/dist/versions/enforceMaxVersions.d.ts.map +1 -1
  565. package/dist/versions/getLatestCollectionVersion.d.ts.map +1 -1
  566. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  567. package/dist/versions/migrations/localizeStatus/shared.d.ts.map +1 -1
  568. package/dist/versions/payloadPackageList.d.ts.map +1 -1
  569. package/dist/versions/payloadPackageList.js +0 -1
  570. package/dist/versions/payloadPackageList.js.map +1 -1
  571. package/dist/versions/saveSnapshot.d.ts.map +1 -1
  572. package/dist/versions/schedule/job.d.ts.map +1 -1
  573. package/package.json +20 -20
  574. package/dist/admin/views/folderList.d.ts +0 -56
  575. package/dist/admin/views/folderList.d.ts.map +0 -1
  576. package/dist/admin/views/folderList.js +0 -3
  577. package/dist/admin/views/folderList.js.map +0 -1
  578. package/dist/folders/addFolderCollection.d.ts +0 -10
  579. package/dist/folders/addFolderCollection.d.ts.map +0 -1
  580. package/dist/folders/addFolderCollection.js +0 -26
  581. package/dist/folders/addFolderCollection.js.map +0 -1
  582. package/dist/folders/addFolderFieldToCollection.d.ts +0 -8
  583. package/dist/folders/addFolderFieldToCollection.d.ts.map +0 -1
  584. package/dist/folders/addFolderFieldToCollection.js +0 -20
  585. package/dist/folders/addFolderFieldToCollection.js.map +0 -1
  586. package/dist/folders/buildFolderField.d.ts +0 -8
  587. package/dist/folders/buildFolderField.d.ts.map +0 -1
  588. package/dist/folders/buildFolderField.js +0 -87
  589. package/dist/folders/buildFolderField.js.map +0 -1
  590. package/dist/folders/constants.d.ts +0 -3
  591. package/dist/folders/constants.d.ts.map +0 -1
  592. package/dist/folders/constants.js +0 -4
  593. package/dist/folders/constants.js.map +0 -1
  594. package/dist/folders/createFolderCollection.d.ts +0 -11
  595. package/dist/folders/createFolderCollection.d.ts.map +0 -1
  596. package/dist/folders/createFolderCollection.js +0 -115
  597. package/dist/folders/createFolderCollection.js.map +0 -1
  598. package/dist/folders/hooks/deleteSubfoldersAfterDelete.d.ts +0 -8
  599. package/dist/folders/hooks/deleteSubfoldersAfterDelete.d.ts.map +0 -1
  600. package/dist/folders/hooks/deleteSubfoldersAfterDelete.js +0 -15
  601. package/dist/folders/hooks/deleteSubfoldersAfterDelete.js.map +0 -1
  602. package/dist/folders/hooks/dissasociateAfterDelete.d.ts +0 -8
  603. package/dist/folders/hooks/dissasociateAfterDelete.d.ts.map +0 -1
  604. package/dist/folders/hooks/dissasociateAfterDelete.js +0 -20
  605. package/dist/folders/hooks/dissasociateAfterDelete.js.map +0 -1
  606. package/dist/folders/hooks/ensureSafeCollectionsChange.d.ts +0 -5
  607. package/dist/folders/hooks/ensureSafeCollectionsChange.d.ts.map +0 -1
  608. package/dist/folders/hooks/ensureSafeCollectionsChange.js +0 -107
  609. package/dist/folders/hooks/ensureSafeCollectionsChange.js.map +0 -1
  610. package/dist/folders/hooks/reparentChildFolder.d.ts +0 -24
  611. package/dist/folders/hooks/reparentChildFolder.d.ts.map +0 -1
  612. package/dist/folders/hooks/reparentChildFolder.js +0 -72
  613. package/dist/folders/hooks/reparentChildFolder.js.map +0 -1
  614. package/dist/folders/types.d.ts +0 -118
  615. package/dist/folders/types.d.ts.map +0 -1
  616. package/dist/folders/types.js +0 -3
  617. package/dist/folders/types.js.map +0 -1
  618. package/dist/folders/utils/buildFolderWhereConstraints.d.ts +0 -13
  619. package/dist/folders/utils/buildFolderWhereConstraints.d.ts.map +0 -1
  620. package/dist/folders/utils/buildFolderWhereConstraints.js +0 -45
  621. package/dist/folders/utils/buildFolderWhereConstraints.js.map +0 -1
  622. package/dist/folders/utils/formatFolderOrDocumentItem.d.ts +0 -12
  623. package/dist/folders/utils/formatFolderOrDocumentItem.d.ts.map +0 -1
  624. package/dist/folders/utils/formatFolderOrDocumentItem.js +0 -30
  625. package/dist/folders/utils/formatFolderOrDocumentItem.js.map +0 -1
  626. package/dist/folders/utils/getFolderBreadcrumbs.d.ts +0 -14
  627. package/dist/folders/utils/getFolderBreadcrumbs.d.ts.map +0 -1
  628. package/dist/folders/utils/getFolderBreadcrumbs.js +0 -45
  629. package/dist/folders/utils/getFolderBreadcrumbs.js.map +0 -1
  630. package/dist/folders/utils/getFolderData.d.ts +0 -33
  631. package/dist/folders/utils/getFolderData.d.ts.map +0 -1
  632. package/dist/folders/utils/getFolderData.js +0 -88
  633. package/dist/folders/utils/getFolderData.js.map +0 -1
  634. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts +0 -24
  635. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.d.ts.map +0 -1
  636. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js +0 -66
  637. package/dist/folders/utils/getFoldersAndDocumentsFromJoin.js.map +0 -1
  638. package/dist/folders/utils/getOrphanedDocs.d.ts +0 -15
  639. package/dist/folders/utils/getOrphanedDocs.d.ts.map +0 -1
  640. package/dist/folders/utils/getOrphanedDocs.js +0 -40
  641. package/dist/folders/utils/getOrphanedDocs.js.map +0 -1
@@ -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:createUser" | "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" | "commandPalette:createNew" | "commandPalette:hintClose" | "commandPalette:hintCreate" | "commandPalette:hintNavigate" | "commandPalette:hintSelect" | "commandPalette:noResults" | "commandPalette:placeholder" | "commandPalette:title" | "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:createNew" | "general:noResults" | "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:checked" | "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:createNewLabel" | "general:creating" | "general:creatingNewLabel" | "general:currentlyEditing" | "general:custom" | "general:dark" | "general:decrement" | "general:delete" | "general:deleted" | "general:deletedAgo" | "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:dragToReorder" | "general:duplicate" | "general:duplicateWithoutSaving" | "general:edit" | "general:editAll" | "general:editColumns" | "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:field" | "general:filter" | "general:filters" | "general:filterWhere" | "general:globals" | "general:goBack" | "general:groupByLabel" | "general:hideSidebar" | "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:manageLabel" | "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:noMatchesFound" | "general:none" | "general:noOptions" | "general:noResultsDescription" | "general:noResultsFound" | "general:nothingFound" | "general:noTrashResults" | "general:notShownInTable" | "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:perPageLabel" | "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:searchColumns" | "general:select" | "general:selectAll" | "general:selectAllRows" | "general:selectedCount" | "general:selectLabel" | "general:selectValue" | "general:showAllLabel" | "general:shownInTable" | "general:showSidebar" | "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:toggle" | "general:trash" | "general:trashedCountSuccessfully" | "general:true" | "general:unchecked" | "general:unlock" | "general:unsavedChanges" | "general:unsavedChangesDuplicate" | "general:untitled" | "general:upcomingEvents" | "general:updatedAgo" | "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: {
@@ -37,6 +37,7 @@ declare const enTranslations: {
37
37
  confirmGeneration: string;
38
38
  confirmPassword: string;
39
39
  createFirstUser: string;
40
+ createUser: string;
40
41
  emailNotValid: string;
41
42
  emailOrUsername: string;
42
43
  emailSent: string;
@@ -91,6 +92,22 @@ declare const enTranslations: {
91
92
  youAreReceivingResetPassword: string;
92
93
  youDidNotRequestPassword: string;
93
94
  };
95
+ commandPalette: {
96
+ actions: string;
97
+ createNew: string;
98
+ favorites: string;
99
+ hintActions: string;
100
+ hintClose: string;
101
+ hintCreate: string;
102
+ hintNavigate: string;
103
+ hintSelect: string;
104
+ noResults: string;
105
+ pinToFavorites: string;
106
+ placeholder: string;
107
+ recentlyVisited: string;
108
+ removeFromFavorites: string;
109
+ title: string;
110
+ };
94
111
  dashboard: {
95
112
  addButton: string;
96
113
  addWidget: string;
@@ -179,6 +196,7 @@ declare const enTranslations: {
179
196
  editLink: string;
180
197
  editRelationship: string;
181
198
  enterURL: string;
199
+ hidePassword: string;
182
200
  internalLink: string;
183
201
  itemsAndMore: string;
184
202
  labelRelationship: string;
@@ -199,35 +217,13 @@ declare const enTranslations: {
199
217
  selectExistingLabel: string;
200
218
  selectFieldsToEdit: string;
201
219
  showAll: string;
220
+ showPassword: string;
202
221
  swapRelationship: string;
203
222
  swapUpload: string;
204
223
  textToDisplay: string;
205
224
  toggleBlock: string;
206
225
  uploadNewLabel: string;
207
226
  };
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
227
  general: {
232
228
  name: string;
233
229
  aboutToDelete: string;
@@ -242,6 +238,7 @@ declare const enTranslations: {
242
238
  aboutToRestoreCount: string;
243
239
  aboutToTrash: string;
244
240
  aboutToTrashCount: string;
241
+ accepts: string;
245
242
  addBelow: string;
246
243
  addFilter: string;
247
244
  adminTheme: string;
@@ -255,12 +252,15 @@ declare const enTranslations: {
255
252
  ascending: string;
256
253
  automatic: string;
257
254
  backToDashboard: string;
255
+ by: string;
258
256
  cancel: string;
259
257
  changesNotSaved: string;
258
+ checked: string;
260
259
  clear: string;
261
260
  clearAll: string;
262
261
  close: string;
263
262
  collapse: string;
263
+ collection: string;
264
264
  collections: string;
265
265
  columns: string;
266
266
  columnToSort: string;
@@ -291,8 +291,10 @@ declare const enTranslations: {
291
291
  custom: string;
292
292
  dark: string;
293
293
  dashboard: string;
294
+ decrement: string;
294
295
  delete: string;
295
296
  deleted: string;
297
+ deletedAgo: string;
296
298
  deletedAt: string;
297
299
  deletedCountSuccessfully: string;
298
300
  deletedSuccessfully: string;
@@ -308,10 +310,12 @@ declare const enTranslations: {
308
310
  documentModified: string;
309
311
  documentOutOfDate: string;
310
312
  documents: string;
313
+ dragToReorder: string;
311
314
  duplicate: string;
312
315
  duplicateWithoutSaving: string;
313
316
  edit: string;
314
317
  editAll: string;
318
+ editColumns: string;
315
319
  editedSince: string;
316
320
  editing: string;
317
321
  editingLabel_many: string;
@@ -323,20 +327,26 @@ declare const enTranslations: {
323
327
  emailAddress: string;
324
328
  emptyTrash: string;
325
329
  emptyTrashLabel: string;
330
+ enhancedContrastMode: string;
331
+ enterANumber: string;
326
332
  enterAValue: string;
327
333
  error: string;
328
334
  errors: string;
329
335
  exitLivePreview: string;
336
+ expand: string;
330
337
  export: string;
331
338
  fallbackToDefaultLocale: string;
332
339
  false: string;
340
+ field: string;
333
341
  filter: string;
334
342
  filters: string;
335
343
  filterWhere: string;
336
344
  globals: string;
337
345
  goBack: string;
338
346
  groupByLabel: string;
347
+ hideSidebar: string;
339
348
  import: string;
349
+ increment: string;
340
350
  isEditing: string;
341
351
  item: string;
342
352
  items: string;
@@ -348,9 +358,11 @@ declare const enTranslations: {
348
358
  light: string;
349
359
  livePreview: string;
350
360
  loading: string;
361
+ loadMore: string;
351
362
  locale: string;
352
363
  locales: string;
353
364
  lock: string;
365
+ manageLabel: string;
354
366
  menu: string;
355
367
  moreOptions: string;
356
368
  move: string;
@@ -367,6 +379,7 @@ declare const enTranslations: {
367
379
  noDateSelected: string;
368
380
  noFiltersSet: string;
369
381
  noLabel: string;
382
+ noMatchesFound: string;
370
383
  none: string;
371
384
  noOptions: string;
372
385
  noResults: string;
@@ -375,6 +388,7 @@ declare const enTranslations: {
375
388
  notFound: string;
376
389
  nothingFound: string;
377
390
  noTrashResults: string;
391
+ notShownInTable: string;
378
392
  noUpcomingEventsScheduled: string;
379
393
  noValue: string;
380
394
  of: string;
@@ -392,6 +406,7 @@ declare const enTranslations: {
392
406
  permanentlyDelete: string;
393
407
  permanentlyDeletedCountSuccessfully: string;
394
408
  perPage: string;
409
+ perPageLabel: string;
395
410
  previous: string;
396
411
  reindex: string;
397
412
  reindexingAll: string;
@@ -406,6 +421,7 @@ declare const enTranslations: {
406
421
  restoreAsPublished: string;
407
422
  restoredCountSuccessfully: string;
408
423
  restoring: string;
424
+ retry: string;
409
425
  row: string;
410
426
  rows: string;
411
427
  save: string;
@@ -413,6 +429,7 @@ declare const enTranslations: {
413
429
  saving: string;
414
430
  schedulePublishFor: string;
415
431
  searchBy: string;
432
+ searchColumns: string;
416
433
  select: string;
417
434
  selectAll: string;
418
435
  selectAllRows: string;
@@ -420,6 +437,8 @@ declare const enTranslations: {
420
437
  selectLabel: string;
421
438
  selectValue: string;
422
439
  showAllLabel: string;
440
+ shownInTable: string;
441
+ showSidebar: string;
423
442
  sorryNotFound: string;
424
443
  sort: string;
425
444
  sortByLabelDirection: string;
@@ -438,15 +457,18 @@ declare const enTranslations: {
438
457
  titleDeleted: string;
439
458
  titleRestored: string;
440
459
  titleTrashed: string;
460
+ toggle: string;
441
461
  trash: string;
442
462
  trashedCountSuccessfully: string;
443
463
  true: string;
444
464
  unauthorized: string;
465
+ unchecked: string;
445
466
  unlock: string;
446
467
  unsavedChanges: string;
447
468
  unsavedChangesDuplicate: string;
448
469
  untitled: string;
449
470
  upcomingEvents: string;
471
+ updatedAgo: string;
450
472
  updatedAt: string;
451
473
  updatedCountSuccessfully: string;
452
474
  updatedLabelSuccessfully: string;
@@ -464,6 +486,15 @@ declare const enTranslations: {
464
486
  welcome: string;
465
487
  yes: string;
466
488
  };
489
+ hierarchy: {
490
+ itemsMovedTo: string;
491
+ itemsMovedToRoot: string;
492
+ moveItemsToRootConfirmation: string;
493
+ moveToRoot: string;
494
+ noParent: string;
495
+ noResults: string;
496
+ searchLabel: string;
497
+ };
467
498
  localization: {
468
499
  cannotCopySameLocale: string;
469
500
  copyFrom: string;
@@ -642,9 +673,6 @@ type Language<TDefaultTranslations = DefaultTranslationsObject> = {
642
673
  type GenericTranslationsObject = {
643
674
  [key: string]: GenericTranslationsObject | string;
644
675
  };
645
- type GenericLanguages = {
646
- [key in AcceptedLanguages]?: GenericTranslationsObject;
647
- };
648
676
  type AcceptedLanguages = (typeof acceptedLanguages)[number];
649
677
  type SupportedLanguages<TDefaultTranslations = DefaultTranslationsObject> = {
650
678
  [key in AcceptedLanguages]?: Language<TDefaultTranslations>;
@@ -729,6 +757,49 @@ type OptionalKeys<Type> = Type extends object ? keyof {
729
757
 
730
758
  type RequiredKeys<Type> = Type extends unknown ? Exclude<keyof Type, OptionalKeys<Type>> : never;
731
759
 
760
+ type CookieStore = {
761
+ get: (name: string) => {
762
+ name: string;
763
+ value: string;
764
+ } | null | undefined;
765
+ getAll?: () => Array<{
766
+ name: string;
767
+ value: string;
768
+ }>;
769
+ set?: (name: string, value: string, options?: CookieOptions$1) => void;
770
+ };
771
+ type CookieOptions$1 = {
772
+ domain?: string;
773
+ expires?: Date;
774
+ httpOnly?: boolean;
775
+ maxAge?: number;
776
+ path?: string;
777
+ sameSite?: 'lax' | 'none' | 'strict';
778
+ secure?: boolean;
779
+ };
780
+
781
+ /**
782
+ * Server-side adapter passed into server functions (not React context).
783
+ * Abstracts framework-specific server APIs like cookies, headers, redirect.
784
+ */
785
+ type ServerAdapter = {
786
+ /**
787
+ * Throws a Next-style "forbidden" boundary (HTTP 403 semantics). Plugins
788
+ * should treat this as a control-flow `never` — execution does not return.
789
+ */
790
+ forbidden: () => never;
791
+ getCookies: () => CookieStore | Promise<CookieStore>;
792
+ getHeaders: () => Headers | Promise<Headers>;
793
+ notFound: () => never;
794
+ permanentRedirect: (path: string) => never;
795
+ redirect: (path: string) => never;
796
+ setCookie: (name: string, value: string, options?: CookieOptions$1) => Promise<void> | void;
797
+ /**
798
+ * Throws a Next-style "unauthorized" boundary (HTTP 401 semantics).
799
+ */
800
+ unauthorized: () => never;
801
+ };
802
+
732
803
  /** @deprecated Use `instanceof APIError` instead of name comparison. */
733
804
  declare const APIErrorName = "APIError";
734
805
  declare class ExtendableError<TData extends object = {
@@ -1082,7 +1153,7 @@ type CollectionPreferences = {
1082
1153
  editViewType?: 'default' | 'live-preview';
1083
1154
  groupBy?: string;
1084
1155
  limit?: number;
1085
- listViewType?: 'folders' | 'list';
1156
+ listViewType?: 'hierarchy' | 'list';
1086
1157
  preset?: DefaultDocumentIDType;
1087
1158
  sort?: string;
1088
1159
  };
@@ -2086,51 +2157,7 @@ type GlobalAdminOptions = {
2086
2157
  /**
2087
2158
  * Custom admin components
2088
2159
  */
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
- };
2160
+ components?: SharedAdminComponents;
2134
2161
  /** Extension point to add your custom data. Available in server and client. */
2135
2162
  custom?: GlobalAdminCustom;
2136
2163
  /**
@@ -2150,10 +2177,6 @@ type GlobalAdminOptions = {
2150
2177
  hidden?: ((args: {
2151
2178
  user: PayloadRequest['user'];
2152
2179
  }) => boolean) | boolean;
2153
- /**
2154
- * Hide the API URL within the Edit View
2155
- */
2156
- hideAPIURL?: boolean;
2157
2180
  /**
2158
2181
  * Live preview options
2159
2182
  */
@@ -2184,10 +2207,6 @@ type GlobalConfig<TSlug extends GlobalSlug = any> = {
2184
2207
  dbName?: DBIdentifierName;
2185
2208
  endpoints?: false | Omit<Endpoint, 'root'>[];
2186
2209
  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
2210
  graphQL?: {
2192
2211
  disableMutations?: true;
2193
2212
  disableQueries?: true;
@@ -2220,7 +2239,7 @@ type GlobalConfig<TSlug extends GlobalSlug = any> = {
2220
2239
  interface?: string;
2221
2240
  };
2222
2241
  versions?: boolean | IncomingGlobalVersions;
2223
- };
2242
+ } & Pick<WithSelectFn<IsAny$1<SelectFromGlobalSlug<TSlug>> extends true ? SelectIncludeType : SelectFromGlobalSlug<TSlug>>, 'select'>;
2224
2243
  interface SanitizedGlobalConfig extends Omit<DeepRequired<GlobalConfig>, 'endpoints' | 'fields' | 'slug' | 'versions'> {
2225
2244
  endpoints: Endpoint[] | false;
2226
2245
  fields: Field[];
@@ -2243,6 +2262,14 @@ type Globals = {
2243
2262
  } | false;
2244
2263
  };
2245
2264
 
2265
+ type DisabledOptions = {
2266
+ bulkEdit?: boolean;
2267
+ column?: boolean;
2268
+ field?: boolean;
2269
+ filter?: boolean;
2270
+ groupBy?: boolean;
2271
+ };
2272
+
2246
2273
  type TextFieldValidation = Validate<string, unknown, unknown, TextField>;
2247
2274
  type TextFieldManyValidation = Validate<string[], unknown, unknown, TextField>;
2248
2275
  type TextFieldSingleValidation = Validate<string, unknown, unknown, TextField>;
@@ -2510,23 +2537,12 @@ type FieldAdmin = {
2510
2537
  * we use the field description to generate JSDoc comments for the generated TypeScript types.
2511
2538
  */
2512
2539
  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
- /**
2521
- * Shows / hides fields from appearing in the list view column selector.
2522
- * @type boolean
2523
- */
2524
- disableListColumn?: boolean;
2525
2540
  /**
2526
- * Shows / hides fields from appearing in the list view filter options.
2527
- * @type boolean
2541
+ * Controls where this field is disabled in the admin UI.
2542
+ * - `true` disables the field everywhere (edit form, list column, list filter, groupBy, bulk edit).
2543
+ * - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
2528
2544
  */
2529
- disableListFilter?: boolean;
2545
+ disabled?: boolean | DisabledOptions;
2530
2546
  hidden?: boolean;
2531
2547
  position?: FieldPosition;
2532
2548
  readOnly?: boolean;
@@ -2538,23 +2554,12 @@ type AdminClient = {
2538
2554
  /** Extension point to add your custom data. Available in server and client. */
2539
2555
  custom?: Record<string, any>;
2540
2556
  description?: StaticDescription;
2541
- disableBulkEdit?: boolean;
2542
- disabled?: boolean;
2543
- /**
2544
- * Shows / hides fields from appearing in the list view groupBy options.
2545
- * @type boolean
2546
- */
2547
- disableGroupBy?: boolean;
2548
2557
  /**
2549
- * Shows / hides fields from appearing in the list view column selector.
2550
- * @type boolean
2558
+ * Controls where this field is disabled in the admin UI.
2559
+ * - `true` disables the field everywhere (edit form, list column, list filter, groupBy, bulk edit).
2560
+ * - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
2551
2561
  */
2552
- disableListColumn?: boolean;
2553
- /**
2554
- * Shows / hides fields from appearing in the list view filter options.
2555
- * @type boolean
2556
- */
2557
- disableListFilter?: boolean;
2562
+ disabled?: boolean | DisabledOptions;
2558
2563
  hidden?: boolean;
2559
2564
  position?: FieldPosition;
2560
2565
  readOnly?: boolean;
@@ -2640,6 +2645,14 @@ interface FieldBase {
2640
2645
  beforeValidate?: FieldHook[];
2641
2646
  };
2642
2647
  index?: boolean;
2648
+ /**
2649
+ * Allows you to modify the base JSON schema that is generated for this field.
2650
+ * This JSON schema will be used to generate the TypeScript interface of this field, and to
2651
+ * validate the field's value in the MCP plugin.
2652
+ */
2653
+ jsonSchema?: Array<(args: {
2654
+ jsonSchema: JSONSchema4;
2655
+ }) => JSONSchema4>;
2643
2656
  label?: false | LabelFunction | StaticLabel;
2644
2657
  localized?: boolean;
2645
2658
  /**
@@ -2651,13 +2664,6 @@ interface FieldBase {
2651
2664
  name: string;
2652
2665
  required?: boolean;
2653
2666
  saveToJWT?: boolean | string;
2654
- /**
2655
- * Allows you to modify the base JSON schema that is generated during generate:types for this field.
2656
- * This JSON schema will be used to generate the TypeScript interface of this field.
2657
- */
2658
- typescriptSchema?: Array<(args: {
2659
- jsonSchema: JSONSchema4;
2660
- }) => JSONSchema4>;
2661
2667
  unique?: boolean;
2662
2668
  validate?: Validate;
2663
2669
  /**
@@ -2667,29 +2673,9 @@ interface FieldBase {
2667
2673
  */
2668
2674
  virtual?: boolean | string;
2669
2675
  }
2670
- interface FieldBaseClient {
2676
+ interface FieldBaseClient extends Pick<FieldBase, 'hidden' | 'index' | 'jsonSchema' | 'localized' | 'name' | 'required' | 'saveToJWT' | 'unique'> {
2671
2677
  admin?: AdminClient;
2672
- hidden?: boolean;
2673
- index?: boolean;
2674
2678
  label?: StaticLabel;
2675
- localized?: boolean;
2676
- /**
2677
- * The name of the field. Must be alphanumeric and cannot contain ' . '
2678
- *
2679
- * Must not be one of reserved field names: ['__v', 'salt', 'hash', 'file']
2680
- * @link https://payloadcms.com/docs/fields/overview#field-names
2681
- */
2682
- name: string;
2683
- required?: boolean;
2684
- saveToJWT?: boolean | string;
2685
- /**
2686
- * Allows you to modify the base JSON schema that is generated during generate:types for this field.
2687
- * This JSON schema will be used to generate the TypeScript interface of this field.
2688
- */
2689
- typescriptSchema?: Array<(args: {
2690
- jsonSchema: JSONSchema4;
2691
- }) => JSONSchema4>;
2692
- unique?: boolean;
2693
2679
  }
2694
2680
  type NumberField = {
2695
2681
  admin?: {
@@ -3017,15 +3003,12 @@ type UIField = {
3017
3003
  /** Extension point to add your custom data. Available in server and client. */
3018
3004
  custom?: Record<string, any>;
3019
3005
  /**
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
3006
+ * Controls where this UI field is disabled in the admin UI.
3007
+ * - `true` disables the field everywhere.
3008
+ * - An object enables granular control per area: `{ field?, column?, filter?, groupBy?, bulkEdit? }`.
3009
+ * UI fields default to `disabled: { bulkEdit: true }` via sanitize.
3027
3010
  */
3028
- disableListColumn?: boolean;
3011
+ disabled?: boolean | DisabledOptions;
3029
3012
  position?: string;
3030
3013
  width?: CSSProperties['width'];
3031
3014
  };
@@ -3036,7 +3019,7 @@ type UIField = {
3036
3019
  type: 'ui';
3037
3020
  };
3038
3021
  type UIFieldClient = {
3039
- admin: DeepUndefinable<FieldBaseClient['admin']> & Pick<UIField['admin'], 'custom' | 'disableBulkEdit' | 'disableListColumn' | 'position' | 'width'>;
3022
+ admin: DeepUndefinable<FieldBaseClient['admin']> & Pick<UIField['admin'], 'custom' | 'disabled' | 'position' | 'width'>;
3040
3023
  } & 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
3024
  Pick<UIField, 'label' | 'name' | 'type'>;
3042
3025
  type SharedUploadProperties = {
@@ -3054,32 +3037,16 @@ type SharedUploadProperties = {
3054
3037
  type: 'upload';
3055
3038
  } & ({
3056
3039
  hasMany: true;
3057
- /**
3058
- * @deprecated Use 'maxRows' instead
3059
- */
3060
- max?: number;
3061
3040
  maxRows?: number;
3062
- /**
3063
- * @deprecated Use 'minRows' instead
3064
- */
3065
- min?: number;
3066
3041
  minRows?: number;
3067
3042
  validate?: UploadFieldManyValidation;
3068
3043
  } | {
3069
3044
  hasMany?: false | undefined;
3070
- /**
3071
- * @deprecated Use 'maxRows' instead
3072
- */
3073
- max?: undefined;
3074
3045
  maxRows?: undefined;
3075
- /**
3076
- * @deprecated Use 'minRows' instead
3077
- */
3078
- min?: undefined;
3079
3046
  minRows?: undefined;
3080
3047
  validate?: UploadFieldSingleValidation;
3081
3048
  }) & FieldGraphQLType & Omit<FieldBase, 'validate'>;
3082
- type SharedUploadPropertiesClient = FieldBaseClient & Pick<SharedUploadProperties, 'hasMany' | 'max' | 'maxDepth' | 'maxRows' | 'min' | 'minRows' | 'type'>;
3049
+ type SharedUploadPropertiesClient = FieldBaseClient & Pick<SharedUploadProperties, 'hasMany' | 'maxDepth' | 'maxRows' | 'minRows' | 'type'>;
3083
3050
  type UploadAdmin = {
3084
3051
  allowCreate?: boolean;
3085
3052
  components?: {
@@ -3220,32 +3187,16 @@ type SharedRelationshipProperties = {
3220
3187
  type: 'relationship';
3221
3188
  } & ({
3222
3189
  hasMany: true;
3223
- /**
3224
- * @deprecated Use 'maxRows' instead
3225
- */
3226
- max?: number;
3227
3190
  maxRows?: number;
3228
- /**
3229
- * @deprecated Use 'minRows' instead
3230
- */
3231
- min?: number;
3232
3191
  minRows?: number;
3233
3192
  validate?: RelationshipFieldManyValidation;
3234
3193
  } | {
3235
3194
  hasMany?: false | undefined;
3236
- /**
3237
- * @deprecated Use 'maxRows' instead
3238
- */
3239
- max?: undefined;
3240
3195
  maxRows?: undefined;
3241
- /**
3242
- * @deprecated Use 'minRows' instead
3243
- */
3244
- min?: undefined;
3245
3196
  minRows?: undefined;
3246
3197
  validate?: RelationshipFieldSingleValidation;
3247
3198
  }) & FieldGraphQLType & Omit<FieldBase, 'validate'>;
3248
- type SharedRelationshipPropertiesClient = FieldBaseClient & Pick<SharedRelationshipProperties, 'hasMany' | 'max' | 'maxDepth' | 'maxRows' | 'min' | 'minRows' | 'type'>;
3199
+ type SharedRelationshipPropertiesClient = FieldBaseClient & Pick<SharedRelationshipProperties, 'hasMany' | 'maxDepth' | 'maxRows' | 'minRows' | 'type'>;
3249
3200
  type RelationshipAdmin = {
3250
3201
  allowCreate?: boolean;
3251
3202
  allowEdit?: boolean;
@@ -3384,8 +3335,8 @@ type RadioFieldClient = {
3384
3335
  } & FieldBaseClient & Pick<RadioField, 'interfaceName' | 'options' | 'type'>;
3385
3336
  type BlockFields = {
3386
3337
  [key: string]: any;
3387
- blockName?: string;
3388
- blockType?: string;
3338
+ blockName?: null | string;
3339
+ blockType: string;
3389
3340
  };
3390
3341
  type BlockJSX = {
3391
3342
  /**
@@ -3443,7 +3394,7 @@ type BlockJSX = {
3443
3394
  }) => Record<string, any>;
3444
3395
  openMatch?: RegExpMatchArray;
3445
3396
  props: Record<string, any>;
3446
- }) => BlockFields | false;
3397
+ }) => false | MarkOptional<BlockFields, 'blockType'>;
3447
3398
  };
3448
3399
  type Block = {
3449
3400
  /**
@@ -3526,11 +3477,12 @@ type Block = {
3526
3477
  * @deprecated Use `admin.images` instead. Preferred aspect ratio of the image is 3:2.
3527
3478
  */
3528
3479
  imageURL?: string;
3529
- /** Customize generated GraphQL and Typescript schema names.
3530
- * The slug is used by default.
3531
- *
3532
- * This is useful if you would like to generate a top level type to share amongst collections/fields.
3533
- * **Note**: Top level types can collide, ensure they are unique amongst collections, arrays, groups, blocks, tabs.
3480
+ /**
3481
+ * Override the name of the top-level TypeScript interface and GraphQL
3482
+ * type generated for this block. Blocks **always** generate a top-level
3483
+ * interface - by default it's a PascalCase form of the slug
3484
+ * (`'content-block'` `ContentBlock`). Set this to take control of the
3485
+ * generated name
3534
3486
  */
3535
3487
  interfaceName?: string;
3536
3488
  jsx?: BlockJSX;
@@ -3753,6 +3705,57 @@ type FieldWithMaxDepth = RelationshipField | UploadField;
3753
3705
  type FieldWithMaxDepthClient = JoinFieldClient | RelationshipFieldClient | UploadFieldClient;
3754
3706
  type HookName = 'afterChange' | 'afterRead' | 'beforeChange' | 'beforeRead' | 'beforeValidate';
3755
3707
 
3708
+ /**
3709
+ * Returns a JSON Schema Type with 'null' added if the field is not required.
3710
+ */
3711
+ declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
3712
+ type ConfigToJSONSchemaOptions = {
3713
+ forceInlineBlocks?: boolean;
3714
+ };
3715
+ type FieldsToJSONSchemaArgs = {
3716
+ /**
3717
+ * Used for relationship fields, to determine whether to use a string or
3718
+ * number type for the ID. While there is a default ID field type set by
3719
+ * the db adapter, they can differ on a collection-level if they have
3720
+ * custom ID fields.
3721
+ */
3722
+ collectionIDFieldTypes: {
3723
+ [key: string]: 'number' | 'string';
3724
+ };
3725
+ config?: SanitizedConfig;
3726
+ fields: FlattenedField$1[];
3727
+ /**
3728
+ * If true, blocks are inlined into each `block` field instead of being
3729
+ * lifted to a top-level definition. Used by the MCP plugin.
3730
+ */
3731
+ forceInlineBlocks?: boolean;
3732
+ i18n?: I18n;
3733
+ /** Allows you to define new top-level interfaces that can be re-used in the output schema. */
3734
+ interfaceNameDefinitions: Map<string, JSONSchema4>;
3735
+ /**
3736
+ * Allows you to append raw TS source to `payload-types.ts`. Identical
3737
+ * strings de-dupe naturally, so the same helper written from many fields
3738
+ * ends up emitted once.
3739
+ */
3740
+ typeStringDefinitions: Set<string>;
3741
+ };
3742
+ declare function fieldsToJSONSchema({ collectionIDFieldTypes, config, fields, forceInlineBlocks, i18n, interfaceNameDefinitions, typeStringDefinitions, }: FieldsToJSONSchemaArgs): {
3743
+ properties: {
3744
+ [k: string]: JSONSchema4;
3745
+ };
3746
+ required: string[];
3747
+ };
3748
+ declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', typeStringDefinitions: Set<string>, collectionIDFieldTypes?: {
3749
+ [key: string]: 'number' | 'string';
3750
+ }, i18n?: I18n, forceInlineBlocks?: boolean): JSONSchema4;
3751
+ /**
3752
+ * This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
3753
+ */
3754
+ declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, { forceInlineBlocks }?: ConfigToJSONSchemaOptions): {
3755
+ jsonSchema: JSONSchema4;
3756
+ typeStringDefinitions: Set<string>;
3757
+ };
3758
+
3756
3759
  type RichTextFieldClientWithoutType<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>;
3757
3760
  type RichTextFieldBaseClientProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
3758
3761
  readonly path: string;
@@ -3920,27 +3923,13 @@ type RichTextAdapterBase<Value extends object = object, AdapterProps = any, Extr
3920
3923
  siblingDoc: JsonObject;
3921
3924
  }) => void;
3922
3925
  hooks?: RichTextHooks;
3923
- /**
3924
- * @deprecated - manually merge i18n translations into the config.i18n.translations object within the adapter provider instead.
3925
- * This property will be removed in v4.
3926
- */
3927
- i18n?: Partial<GenericLanguages>;
3928
3926
  /**
3929
3927
  * Return the JSON schema for the field value. The JSON schema is read by
3930
3928
  * `json-schema-to-typescript` which is used to generate types for this richtext field
3931
3929
  * payload-types.ts)
3932
3930
  */
3933
- outputSchema?: (args: {
3934
- collectionIDFieldTypes: {
3935
- [key: string]: 'number' | 'string';
3936
- };
3937
- config?: SanitizedConfig;
3931
+ jsonSchema?: (args: Pick<FieldsToJSONSchemaArgs, 'collectionIDFieldTypes' | 'config' | 'i18n' | 'interfaceNameDefinitions' | 'typeStringDefinitions'> & {
3938
3932
  field: RichTextField<Value, AdapterProps, ExtraFieldProperties>;
3939
- i18n?: I18n;
3940
- /**
3941
- * Allows you to define new top-level interfaces that can be re-used in the output schema.
3942
- */
3943
- interfaceNameDefinitions: Map<string, JSONSchema4>;
3944
3933
  isRequired: boolean;
3945
3934
  }) => JSONSchema4;
3946
3935
  /**
@@ -4017,7 +4006,7 @@ declare function parseCookies(headers: Request['headers']): Map<string, string>;
4017
4006
 
4018
4007
  declare const extractJWT: (args: Omit<AuthStrategyFunctionArgs, "strategyName">) => null | string;
4019
4008
 
4020
- type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'label' | 'typescriptSchema' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
4009
+ type ServerOnlyFieldProperties = 'dbName' | 'editor' | 'enumName' | 'filterOptions' | 'graphQL' | 'jsonSchema' | 'label' | 'validate' | keyof Pick<FieldBase, 'access' | 'custom' | 'defaultValue' | 'hooks'>;
4021
4010
  type ServerOnlyFieldAdminProperties = keyof Pick<FieldBase['admin'], 'components' | 'condition'>;
4022
4011
  declare const createClientBlocks: ({ blocks, defaultIDType, i18n, importMap, }: {
4023
4012
  blocks: (Block | string)[];
@@ -4039,7 +4028,159 @@ declare const createClientFields: ({ defaultIDType, disableAddingID, fields, i18
4039
4028
  importMap: ImportMap;
4040
4029
  }) => ClientField[];
4041
4030
 
4042
- type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes'>;
4031
+ /**
4032
+ * User-configurable options for the hierarchy join field.
4033
+ * Excludes properties that are auto-generated: type, collection, on, hasMany
4034
+ */
4035
+ type HierarchyJoinFieldConfig = {
4036
+ name: string;
4037
+ } & Omit<Partial<JoinField>, 'collection' | 'hasMany' | 'name' | 'on' | 'type'>;
4038
+ /**
4039
+ * Configuration options for hierarchy feature
4040
+ *
4041
+ * Hierarchies are always self-referential - documents can only nest under other documents
4042
+ * from the same collection.
4043
+ */
4044
+ type HierarchyConfig = {
4045
+ /**
4046
+ * UI configuration for hierarchy
4047
+ */
4048
+ admin?: {
4049
+ /**
4050
+ * Custom components for hierarchy UI
4051
+ */
4052
+ components?: {
4053
+ /**
4054
+ * Custom icon component for hierarchy items.
4055
+ * - 24x24 size icon.
4056
+ */
4057
+ Icon?: PayloadComponent;
4058
+ /**
4059
+ * Small icon component for compact hierarchy contexts:
4060
+ * - 16x16 size icon.
4061
+ */
4062
+ SmallIcon?: PayloadComponent;
4063
+ };
4064
+ /**
4065
+ * Whether to inject a sidebar tab for this hierarchy collection
4066
+ * @default true
4067
+ */
4068
+ injectSidebarTab?: boolean;
4069
+ /**
4070
+ * Maximum number of items to load in tree views
4071
+ * @default 100
4072
+ */
4073
+ treeLimit?: number;
4074
+ /**
4075
+ * Whether to use a header button for parent selection instead of inline field.
4076
+ * When true, the parent field is hidden and a button is injected into the document header.
4077
+ * @default true
4078
+ */
4079
+ useHeaderButton?: boolean;
4080
+ };
4081
+ /**
4082
+ * Whether related documents can have multiple values of this hierarchy
4083
+ * Set to false for folder-like behavior (single parent), true for tag-like behavior (multiple)
4084
+ * @default true
4085
+ */
4086
+ allowHasMany?: boolean;
4087
+ /**
4088
+ * Whether this hierarchy is scoped to specific collections
4089
+ * When true or an object, hierarchy items can be restricted to certain collections
4090
+ * @default false
4091
+ */
4092
+ collectionSpecific?: {
4093
+ /**
4094
+ * Name of the select field for specifying allowed collections
4095
+ * @default 'hierarchyType'
4096
+ */
4097
+ fieldName?: string;
4098
+ } | boolean;
4099
+ /**
4100
+ * Configure a join field to query all children (nested hierarchy items and related documents)
4101
+ * If not set, no join field is created.
4102
+ * You can pass additional JoinField options (admin, defaultLimit, defaultSort, etc.)
4103
+ * that will be merged with the auto-generated config.
4104
+ */
4105
+ joinField?: HierarchyJoinFieldConfig;
4106
+ /**
4107
+ * Name of the field that references the parent document
4108
+ * Will automatically create this field if it does not exist
4109
+ * @default '_h_${collectionSlug}' (e.g., '_h_folders' for a collection with slug 'folders')
4110
+ */
4111
+ parentFieldName: string;
4112
+ /**
4113
+ * Name of the field to use for slug path generation.
4114
+ * When set, uses this field's value directly instead of slugifying the title.
4115
+ * Useful when you have a dedicated slug field (e.g., 'slug') separate from the title.
4116
+ * @example 'slug' - uses the 'slug' field value as-is for path segments
4117
+ */
4118
+ slugField?: string;
4119
+ /**
4120
+ * Custom function to slugify text for path generation
4121
+ * Used by computeSlugPath() utility for generating slug-based breadcrumb paths
4122
+ * Only used when slugField is not set.
4123
+ * Defaults to internal slugify implementation
4124
+ */
4125
+ slugify?: (text: string) => string;
4126
+ /**
4127
+ * Name of the virtual field that will contain the slug-based breadcrumb path
4128
+ * @default HIERARCHY_SLUG_PATH_FIELD ('_h_slugPath')
4129
+ */
4130
+ slugPathFieldName?: string;
4131
+ /**
4132
+ * Name of the virtual field that will contain the title-based breadcrumb path
4133
+ * @default HIERARCHY_TITLE_PATH_FIELD ('_h_titlePath')
4134
+ */
4135
+ titlePathFieldName?: string;
4136
+ };
4137
+ /**
4138
+ * Sanitized hierarchy configuration with all defaults applied
4139
+ */
4140
+ type SanitizedHierarchyConfig = {
4141
+ admin: {
4142
+ components: {
4143
+ Icon: PayloadComponent;
4144
+ SmallIcon: PayloadComponent;
4145
+ };
4146
+ injectSidebarTab: boolean;
4147
+ treeLimit: number;
4148
+ useHeaderButton: boolean;
4149
+ };
4150
+ allowHasMany: boolean;
4151
+ collectionSpecific: {
4152
+ fieldName: string;
4153
+ } | false;
4154
+ /**
4155
+ * Join field configuration, or undefined if not enabled
4156
+ */
4157
+ joinField?: HierarchyJoinFieldConfig;
4158
+ parentFieldName: string;
4159
+ /**
4160
+ * Auto-populated during validation - maps collection slug to field info
4161
+ */
4162
+ relatedCollections: Record<string, SanitizedHierarchyRelatedCollection>;
4163
+ /**
4164
+ * Field name for slug values, or undefined to use slugified title
4165
+ */
4166
+ slugField?: string;
4167
+ slugify: (text: string) => string;
4168
+ slugPathFieldName: string;
4169
+ titlePathFieldName: string;
4170
+ };
4171
+ /**
4172
+ * Information about how a collection relates to this hierarchy
4173
+ */
4174
+ type SanitizedHierarchyRelatedCollection = {
4175
+ fieldName: string;
4176
+ hasMany: boolean;
4177
+ };
4178
+ /**
4179
+ * Client-safe hierarchy configuration (excludes functions that can't cross server-client boundary)
4180
+ */
4181
+ type ClientHierarchyConfig = Omit<SanitizedHierarchyConfig, 'slugify'>;
4182
+
4183
+ type ServerOnlyCollectionProperties = keyof Pick<SanitizedCollectionConfig, 'access' | 'custom' | 'endpoints' | 'flattenedFields' | 'hooks' | 'indexes' | 'joins' | 'polymorphicJoins' | 'sanitizedIndexes' | 'select'>;
4043
4184
  type ServerOnlyCollectionAdminProperties = keyof Pick<SanitizedCollectionConfig['admin'], 'baseFilter' | 'baseListFilter' | 'components' | 'formatDocURL' | 'hidden'>;
4044
4185
  type ServerOnlyUploadProperties = keyof Pick<SanitizedCollectionConfig['upload'], 'adminThumbnail' | 'externalFileHeaderFilter' | 'handlers' | 'modifyResponseHeaders' | 'withMetadata'>;
4045
4186
  type ClientCollectionConfig = {
@@ -4052,11 +4193,12 @@ type ClientCollectionConfig = {
4052
4193
  verify?: true;
4053
4194
  } & Omit<SanitizedCollectionConfig['auth'], 'forgotPassword' | 'strategies' | 'verify'>;
4054
4195
  fields: ClientField[];
4196
+ hierarchy?: ClientHierarchyConfig | false;
4055
4197
  labels: {
4056
4198
  plural: StaticLabel;
4057
4199
  singular: StaticLabel;
4058
4200
  };
4059
- } & Omit<SanitizedCollectionConfig, 'admin' | 'auth' | 'fields' | 'labels' | ServerOnlyCollectionProperties>;
4201
+ } & Omit<SanitizedCollectionConfig, 'admin' | 'auth' | 'fields' | 'hierarchy' | 'labels' | ServerOnlyCollectionProperties>;
4060
4202
  declare const createClientCollectionConfig: ({ collection, defaultIDType, i18n, importMap, }: {
4061
4203
  collection: SanitizedCollectionConfig;
4062
4204
  defaultIDType: Payload["config"]["db"]["defaultIDType"];
@@ -4070,7 +4212,7 @@ declare const createClientCollectionConfigs: ({ collections, defaultIDType, i18n
4070
4212
  importMap: ImportMap;
4071
4213
  }) => ClientCollectionConfig[];
4072
4214
 
4073
- type ServerOnlyGlobalProperties = keyof Pick<SanitizedGlobalConfig, 'access' | 'admin' | 'custom' | 'endpoints' | 'fields' | 'flattenedFields' | 'hooks'>;
4215
+ type ServerOnlyGlobalProperties = keyof Pick<SanitizedGlobalConfig, 'access' | 'admin' | 'custom' | 'endpoints' | 'fields' | 'flattenedFields' | 'hooks' | 'select'>;
4074
4216
  type ServerOnlyGlobalAdminProperties = keyof Pick<SanitizedGlobalConfig['admin'], 'components' | 'hidden'>;
4075
4217
  type ClientGlobalConfig = {
4076
4218
  admin: {
@@ -4093,7 +4235,7 @@ declare const createClientGlobalConfigs: ({ defaultIDType, globals, i18n, import
4093
4235
  importMap: ImportMap;
4094
4236
  }) => ClientGlobalConfig[];
4095
4237
 
4096
- type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'logger' | 'onInit' | 'plugins' | 'queryPresets' | 'secret' | 'sharp' | 'typescript'>;
4238
+ type ServerOnlyRootProperties = keyof Pick<SanitizedConfig, 'bin' | 'cors' | 'csrf' | 'custom' | 'db' | 'editor' | 'email' | 'endpoints' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'logger' | 'onInit' | 'plugins' | 'queryPresets' | 'secret' | 'sharp' | 'storage' | 'typescript'>;
4097
4239
  type ServerOnlyRootAdminProperties = keyof Pick<SanitizedConfig['admin'], 'components'>;
4098
4240
  type ClientConfig = {
4099
4241
  admin: {
@@ -4258,7 +4400,6 @@ type AdminViewConfig = {
4258
4400
  strict?: boolean;
4259
4401
  };
4260
4402
  type AdminViewClientProps = {
4261
- browseByFolderSlugs?: SanitizedCollectionConfig['slug'][];
4262
4403
  clientConfig: ClientConfig;
4263
4404
  collectionSlug?: SanitizedCollectionConfig['slug'];
4264
4405
  docID?: number | string;
@@ -4275,7 +4416,6 @@ type AdminViewServerPropsOnly = {
4275
4416
  * @todo remove `docID` here as it is already contained in `initPageResult`
4276
4417
  */
4277
4418
  readonly docID?: number | string;
4278
- readonly folderID?: number | string;
4279
4419
  readonly globalConfig?: SanitizedGlobalConfig;
4280
4420
  readonly importMap: ImportMap;
4281
4421
  readonly initialData?: Data;
@@ -4314,7 +4454,7 @@ type InitPageResult = {
4314
4454
  /**
4315
4455
  * @todo This should be renamed to `ViewType` (singular)
4316
4456
  */
4317
- type ViewTypes = 'account' | 'collection-folders' | 'createFirstUser' | 'dashboard' | 'document' | 'folders' | 'list' | 'reset' | 'trash' | 'verify' | 'version' | ({} & string);
4457
+ type ViewTypes = 'account' | 'createFirstUser' | 'dashboard' | 'document' | 'hierarchy' | 'list' | 'reset' | 'trash' | 'verify' | 'version' | ({} & string);
4318
4458
  type ServerPropsFromView = {
4319
4459
  collectionConfig?: SanitizedConfig['collections'][number];
4320
4460
  globalConfig?: SanitizedConfig['globals'][number];
@@ -4451,94 +4591,6 @@ declare class UnverifiedEmail extends APIError {
4451
4591
  */
4452
4592
  type ErrorName = 'APIError' | 'AuthenticationError' | 'ErrorDeletingFile' | 'FileRetrievalError' | 'FileUploadError' | 'Forbidden' | 'Locked' | 'LockedAuth' | 'MissingFile' | 'NotFound' | 'QueryError' | 'UnverifiedEmail' | 'ValidationError';
4453
4593
 
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
4594
  declare const operations: readonly ["read", "update", "delete"];
4543
4595
  type ConstraintOperation = (typeof operations)[number];
4544
4596
  type DefaultConstraint = 'everyone' | 'onlyMe' | 'specificUsers';
@@ -4582,17 +4634,7 @@ type TaskInputOutput = {
4582
4634
  output: object;
4583
4635
  };
4584
4636
  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
4637
  output: TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] ? TypedJobs['tasks'][TTaskSlugOrInputOutput]['output'] : TTaskSlugOrInputOutput extends TaskInputOutput ? TTaskSlugOrInputOutput['output'] : never;
4595
- state?: 'succeeded';
4596
4638
  };
4597
4639
  type TaskHandlerArgs<TTaskSlugOrInputOutput extends keyof TypedJobs['tasks'] | TaskInputOutput, TWorkflowSlug extends keyof TypedJobs['workflows'] = string> = {
4598
4640
  /**
@@ -4655,17 +4697,7 @@ type RunInlineTaskFunction = <TTaskInput extends object, TTaskOutput extends obj
4655
4697
  req: PayloadRequest;
4656
4698
  tasks: RunTaskFunctions;
4657
4699
  }) => 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
4700
  output: TTaskOutput;
4668
- state?: 'succeeded';
4669
4701
  }>;
4670
4702
  }) => Promise<TTaskOutput>;
4671
4703
  type TaskCallbackArgs = {
@@ -5158,17 +5190,6 @@ type JobsConfig = {
5158
5190
  * Determine whether or not to delete a job after it has successfully completed.
5159
5191
  */
5160
5192
  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
5193
  /**
5173
5194
  * Enable concurrency controls for workflows and tasks.
5174
5195
  * When enabled, adds a `concurrencyKey` field to the jobs collection schema.
@@ -5201,16 +5222,6 @@ type JobsConfig = {
5201
5222
  [queue: string]: Sort;
5202
5223
  };
5203
5224
  } | 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
5225
  /**
5215
5226
  * A function that will be executed before Payload picks up jobs which are configured by the `jobs.autorun` function.
5216
5227
  * If this function returns true, jobs will be queried and picked up. If it returns false, jobs will not be run.
@@ -5366,6 +5377,40 @@ type Plugin = ((config: Config) => Config | Promise<Config>) & {
5366
5377
  /** @experimental Unique identifier for cross-plugin discovery via `config.plugins`. */
5367
5378
  slug?: string;
5368
5379
  };
5380
+ /**
5381
+ * Configures where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
5382
+ *
5383
+ * Storage adapters run **before plugins**, so upload hooks, static file handlers,
5384
+ * and presigned-URL endpoints are guaranteed to be in place before any plugin
5385
+ * modifies the config.
5386
+ *
5387
+ * Pass the return value of a storage adapter factory to `storage` in your
5388
+ * Payload config:
5389
+ *
5390
+ * ```ts
5391
+ * import { s3Storage } from '@payloadcms/storage-s3'
5392
+ *
5393
+ * export default buildConfig({
5394
+ * storage: [
5395
+ * s3Storage({
5396
+ * bucket: process.env.S3_BUCKET,
5397
+ * collections: { media: true },
5398
+ * config: { region: process.env.S3_REGION },
5399
+ * }),
5400
+ * ],
5401
+ * })
5402
+ * ```
5403
+ *
5404
+ * @see https://payloadcms.com/docs/uploads/storage-adapters
5405
+ */
5406
+ interface StorageAdapter {
5407
+ /** Collection slugs this adapter is configured to handle. */
5408
+ collections: string[];
5409
+ /** Initializes the adapter and returns the modified config with upload hooks and handlers injected. */
5410
+ init: (config: Config) => Config | Promise<Config>;
5411
+ /** Unique identifier for this adapter (e.g. `'s3'`, `'gcs'`, `'azure'`). Surfaced in telemetry and on `payload.config.upload.adapters`. */
5412
+ name: string;
5413
+ }
5369
5414
  /**
5370
5415
  * A map of plugin slugs to Plugin instances, built from `config.plugins`.
5371
5416
  * Registered slugs (via `RegisteredPlugins` module augmentation) return typed options.
@@ -5614,6 +5659,12 @@ type ServerProps = {
5614
5659
  readonly payload: Payload;
5615
5660
  readonly permissions?: SanitizedPermissions;
5616
5661
  readonly searchParams?: Params;
5662
+ /**
5663
+ * Framework-agnostic methods for server-side navigation, headers, cookies, and other server-only APIs.
5664
+ * Plugins should call these methods instead of importing directly from `next/navigation`, `next/headers`, etc.
5665
+ * These methods are populated by the given framework adapter, e.g. `@payloadcms/next`.
5666
+ */
5667
+ readonly server: ServerAdapter;
5617
5668
  readonly user?: TypedUser;
5618
5669
  readonly viewType?: ViewTypes;
5619
5670
  readonly visibleEntities?: VisibleEntities;
@@ -5722,7 +5773,7 @@ type SanitizedLocalizationConfig = Prettify<{
5722
5773
  * @see https://payloadcms.com/docs/configuration/localization#localization
5723
5774
  */
5724
5775
  type LocalizationConfig = Prettify<LocalizationConfigWithLabels | LocalizationConfigWithNoLabels>;
5725
- type LabelFunction<TTranslationKeys = DefaultTranslationKeys> = (args: {
5776
+ type LabelFunction<TTranslationKeys = ClientTranslationKeys> = (args: {
5726
5777
  i18n: I18nClient;
5727
5778
  t: TFunction<TTranslationKeys>;
5728
5779
  }) => string;
@@ -5927,6 +5978,27 @@ type DashboardConfig = {
5927
5978
  type SanitizedDashboardConfig = {
5928
5979
  widgets: Array<Omit<Widget, 'Component'>>;
5929
5980
  };
5981
+ type SidebarTab = {
5982
+ /** Tab components */
5983
+ components: {
5984
+ /** Component to render as tab content */
5985
+ Content: CustomComponent;
5986
+ /** Component to render as tab icon */
5987
+ Icon: PayloadComponent;
5988
+ };
5989
+ /** Disable this tab */
5990
+ disabled?: boolean;
5991
+ /** Make this tab active by default */
5992
+ isDefaultActive?: boolean;
5993
+ /**
5994
+ * Label for accessibility and tab display.
5995
+ * Supports i18n by passing an object with locale keys, or a function with `t` for translations.
5996
+ * If not provided, the slug will be used as fallback.
5997
+ */
5998
+ label?: LabelFunction | StaticLabel;
5999
+ /** Unique identifier for override/disable */
6000
+ slug: string;
6001
+ };
5930
6002
  /**
5931
6003
  * This is the central configuration
5932
6004
  *
@@ -6037,6 +6109,11 @@ type Config = {
6037
6109
  * These components will be rendered in a popup menu above the logout button.
6038
6110
  */
6039
6111
  settingsMenu?: CustomComponent[];
6112
+ /** Sidebar configuration */
6113
+ sidebar?: {
6114
+ /** Extensible tab system */
6115
+ tabs?: SidebarTab[];
6116
+ };
6040
6117
  /**
6041
6118
  * Replace or modify top-level admin routes, or add new ones:
6042
6119
  * + `Account` - `/admin/account`
@@ -6109,11 +6186,6 @@ type Config = {
6109
6186
  * @default '/account'
6110
6187
  */
6111
6188
  account?: `/${string}`;
6112
- /** The route for the browse by folder view.
6113
- *
6114
- * @default '/browse-by-folder'
6115
- */
6116
- browseByFolder?: `/${string}`;
6117
6189
  /** The route for the create first user page.
6118
6190
  *
6119
6191
  * @default '/create-first-user'
@@ -6226,21 +6298,6 @@ type Config = {
6226
6298
  * @see https://payloadcms.com/docs/configuration/collections#collection-configs
6227
6299
  */
6228
6300
  collections?: CollectionConfig[];
6229
- /**
6230
- * Compatibility flags for prior Payload versions
6231
- */
6232
- compatibility?: {
6233
- /**
6234
- * By default, Payload will remove the `localized: true` property
6235
- * from fields if a parent field is localized. Set this property
6236
- * to `true` only if you have an existing Payload database from pre-3.0
6237
- * that you would like to maintain without migrating. This is only
6238
- * relevant for MongoDB databases.
6239
- *
6240
- * @todo Remove in v4
6241
- */
6242
- allowLocalizedWithinLocalized: true;
6243
- };
6244
6301
  /**
6245
6302
  * Prefix a string to all cookies that Payload sets.
6246
6303
  *
@@ -6297,12 +6354,6 @@ type Config = {
6297
6354
  */
6298
6355
  localizeStatus?: boolean;
6299
6356
  };
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
6357
  /**
6307
6358
  * @see https://payloadcms.com/docs/configuration/globals#global-configs
6308
6359
  */
@@ -6564,6 +6615,20 @@ type Config = {
6564
6615
  *
6565
6616
  */
6566
6617
  sharp?: SharpDependency;
6618
+ /**
6619
+ * Storage adapters that handle where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
6620
+ *
6621
+ * Adapters are initialized **before** `plugins`, so file handling is fully wired before any plugin
6622
+ * runs. Use this instead of placing storage adapter packages in `plugins`.
6623
+ *
6624
+ * Migrate existing `plugins` usage automatically with:
6625
+ * ```sh
6626
+ * npx @payloadcms/codemod --transform migrate-storage-adapters-to-config
6627
+ * ```
6628
+ *
6629
+ * @see https://payloadcms.com/docs/uploads/storage-adapters
6630
+ */
6631
+ storage?: StorageAdapter[];
6567
6632
  /** Send anonymous telemetry data about general usage. */
6568
6633
  telemetry?: boolean;
6569
6634
  /** Control how typescript interfaces are generated from your collections. */
@@ -6639,8 +6704,16 @@ type Config = {
6639
6704
  */
6640
6705
  type SanitizedConfig = {
6641
6706
  admin: {
6707
+ /**
6708
+ * `Required` (shallow) marks the top-level dashboard props as required, mainly `defaultLayout`,
6709
+ * which sanitizing always fills in. Do not switch this to the `DeepRequired` used below: it
6710
+ * recurses into the widgets and re-expands the whole `Field` type (a large self-referencing
6711
+ * union), which is very expensive to check. Never run a `Field`-bearing type through
6712
+ * `DeepRequired`.
6713
+ */
6714
+ dashboard: Required<NonNullable<NonNullable<Config['admin']>['dashboard']>>;
6642
6715
  timezones: SanitizedTimezoneConfig;
6643
- } & DeepRequired<Config['admin']>;
6716
+ } & DeepRequired<Omit<NonNullable<Config['admin']>, 'dashboard'>>;
6644
6717
  blocks?: FlattenedBlock[];
6645
6718
  collections: SanitizedCollectionConfig[];
6646
6719
  /** Default richtext editor to use for richText fields */
@@ -6655,13 +6728,14 @@ type SanitizedConfig = {
6655
6728
  configDir: string;
6656
6729
  rawConfig: string;
6657
6730
  };
6731
+ storage: StorageAdapter[];
6658
6732
  upload: {
6659
6733
  /**
6660
6734
  * Deduped list of adapters used in the project
6661
6735
  */
6662
6736
  adapters: string[];
6663
6737
  } & FetchAPIFileUploadOptions;
6664
- } & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'upload'>;
6738
+ } & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'storage' | 'upload'>;
6665
6739
  type EditConfig = EditConfigWithoutRoot | EditConfigWithRoot;
6666
6740
  /**
6667
6741
  * Replace or modify _all_ nested document views and routes, including the document header, controls, and tabs. This cannot be used in conjunction with other nested views.
@@ -6703,6 +6777,99 @@ type EditConfigWithoutRoot = {
6703
6777
  versions?: DefaultDocumentViewConfig;
6704
6778
  };
6705
6779
  type EntityDescriptionComponent = CustomComponent;
6780
+ /**
6781
+ * Custom components rendered within the Edit View.
6782
+ * Shared by Collection and Global configs.
6783
+ */
6784
+ type SharedEditViewComponents = {
6785
+ /**
6786
+ * Inject custom components before the document controls
6787
+ */
6788
+ beforeDocumentControls?: CustomComponent[];
6789
+ /**
6790
+ * Inject custom components before the document metadata (left of status/timestamps)
6791
+ */
6792
+ BeforeDocumentMeta?: CustomComponent[];
6793
+ /**
6794
+ * Inject custom components within the 3-dot menu dropdown
6795
+ */
6796
+ editMenuItems?: CustomComponent[];
6797
+ /**
6798
+ * Replaces the "Preview" button
6799
+ */
6800
+ PreviewButton?: CustomComponent;
6801
+ /**
6802
+ * Replaces the "Publish" button
6803
+ * + drafts must be enabled
6804
+ */
6805
+ PublishButton?: PayloadComponent<PublishButtonServerProps, PublishButtonClientProps>;
6806
+ /**
6807
+ * Replaces the "Save" button
6808
+ * + drafts must be disabled
6809
+ */
6810
+ SaveButton?: CustomComponent;
6811
+ /**
6812
+ * Replaces the "Save Draft" button
6813
+ * + drafts must be enabled
6814
+ * + autosave must be disabled
6815
+ */
6816
+ SaveDraftButton?: CustomComponent;
6817
+ /**
6818
+ * Replaces the "Status" section
6819
+ */
6820
+ Status?: CustomStatus;
6821
+ /**
6822
+ * Replaces the "Unpublish" button
6823
+ * + drafts must be enabled
6824
+ */
6825
+ UnpublishButton?: PayloadComponent<UnpublishButtonServerProps, UnpublishButtonClientProps>;
6826
+ };
6827
+ /**
6828
+ * Custom views object shared by Collection and Global configs.
6829
+ * Allows custom view keys (matched by path) alongside the document `edit` view.
6830
+ */
6831
+ type SharedEntityViews = {
6832
+ /**
6833
+ * Add custom views.
6834
+ * Any additional keys define custom views that are matched by path and rendered at the entity level.
6835
+ * @link https://payloadcms.com/docs/custom-components/custom-views
6836
+ * @example
6837
+ * ```ts
6838
+ * views: {
6839
+ * audit: {
6840
+ * Component: '/path/to/AuditView',
6841
+ * path: '/audit',
6842
+ * exact: true,
6843
+ * }
6844
+ * }
6845
+ * ```
6846
+ */
6847
+ [key: string]: {
6848
+ actions?: CustomComponent[];
6849
+ Component?: PayloadComponent;
6850
+ } | AdminViewConfig | EditConfig | undefined;
6851
+ /**
6852
+ * Replace, modify, or add new "document" views.
6853
+ * @link https://payloadcms.com/docs/custom-components/document-views
6854
+ */
6855
+ edit?: EditConfig;
6856
+ };
6857
+ /**
6858
+ * Admin component slots shared by Collection and Global configs.
6859
+ * Collection extends this with list-only slots and `edit.Upload`; Global uses it as-is.
6860
+ */
6861
+ type SharedAdminComponents = {
6862
+ /**
6863
+ * Custom Description component for the entity. Rendered in the Edit View
6864
+ * (and List View for Collections).
6865
+ */
6866
+ Description?: EntityDescriptionComponent;
6867
+ /**
6868
+ * Components within the edit view
6869
+ */
6870
+ edit?: SharedEditViewComponents;
6871
+ views?: SharedEntityViews;
6872
+ };
6706
6873
  type EntityDescriptionFunction = ({ t }: {
6707
6874
  t: TFunction;
6708
6875
  }) => string;
@@ -7001,6 +7168,7 @@ type EditMenuItemsServerPropsOnly = {} & ServerProps;
7001
7168
  type EditMenuItemsServerProps = EditMenuItemsClientProps & EditMenuItemsServerPropsOnly;
7002
7169
 
7003
7170
  type NavPreferences = {
7171
+ activeTab?: string;
7004
7172
  groups: NavGroupPreferences;
7005
7173
  open: boolean;
7006
7174
  };
@@ -7009,6 +7177,14 @@ type NavGroupPreferences = {
7009
7177
  open: boolean;
7010
7178
  };
7011
7179
  };
7180
+ type SidebarTabClientProps = {
7181
+ documentSubViewType?: DocumentSubViewTypes;
7182
+ viewType?: ViewTypes;
7183
+ };
7184
+ type SidebarTabServerPropsOnly = {
7185
+ req?: PayloadRequest;
7186
+ } & ServerProps;
7187
+ type SidebarTabServerProps = SidebarTabClientProps & SidebarTabServerPropsOnly;
7012
7188
 
7013
7189
  type PreviewButtonClientProps = {};
7014
7190
  type PreviewButtonServerPropsOnly = {} & ServerProps;
@@ -7036,6 +7212,7 @@ type Column = {
7036
7212
  readonly CustomLabel?: React.ReactNode;
7037
7213
  readonly field: ClientField;
7038
7214
  readonly Heading: React.ReactNode;
7215
+ readonly isLinkedColumn?: boolean;
7039
7216
  readonly renderedCells: React.ReactNode[];
7040
7217
  };
7041
7218
 
@@ -7718,43 +7895,6 @@ type BuildTableStateArgs = {
7718
7895
  renderRowTypes?: boolean;
7719
7896
  tableAppearance?: 'condensed' | 'default';
7720
7897
  };
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
7898
  type SlugifyServerFunctionArgs = {
7759
7899
  collectionSlug?: CollectionSlug;
7760
7900
  globalSlug?: GlobalSlug;
@@ -7784,59 +7924,45 @@ type WidgetServerProps<TWidget extends {
7784
7924
  } & Exclude<TWidget, never>>;
7785
7925
  } & Pick<InitReqResult, 'cookies' | 'locale' | 'permissions' | 'req'>;
7786
7926
 
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;
7927
+ type RelatedDocumentsGrouped = {
7928
+ [collectionSlug: string]: {
7929
+ fieldName: string;
7930
+ hasMany: boolean;
7931
+ label: string;
7932
+ result: PaginatedDocs;
7933
+ };
7826
7934
  };
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
7935
 
7936
+ type HierarchyViewData = {
7937
+ /**
7938
+ * Collections allowed for creation based on parent's collectionSpecific field.
7939
+ * Undefined means all related collections are allowed.
7940
+ * Always includes the hierarchy collection itself.
7941
+ */
7942
+ allowedCollections?: Array<{
7943
+ label: string;
7944
+ slug: string;
7945
+ }>;
7946
+ /** Base filter applied to hierarchy collection queries (e.g., tenant filter) */
7947
+ baseFilter?: Where;
7948
+ /** Breadcrumb trail to the current parent */
7949
+ breadcrumbs: Array<{
7950
+ id: number | string;
7951
+ title: string;
7952
+ }>;
7953
+ /** Children of the current parent (same collection) */
7954
+ childrenData: PaginatedDocs;
7955
+ /** The current parent document data (for display and collectionSpecific field access) */
7956
+ parent: null | (Record<string, unknown> & TypeWithID);
7957
+ /** The parent field name for building queries */
7958
+ parentFieldName: string;
7959
+ /** The parent ID being viewed */
7960
+ parentId: null | number | string;
7961
+ /** Base filters for related collections (keyed by collection slug) */
7962
+ relatedBaseFilters?: Record<string, Where>;
7963
+ /** Related documents grouped by collection */
7964
+ relatedDocumentsByCollection: RelatedDocumentsGrouped;
7965
+ };
7840
7966
  type ListViewSlots = {
7841
7967
  AfterList?: React.ReactNode;
7842
7968
  AfterListTable?: React.ReactNode;
@@ -7861,6 +7987,7 @@ type ListViewServerPropsOnly = {
7861
7987
  } & ServerProps;
7862
7988
  type ListViewServerProps = ListViewClientProps & ListViewServerPropsOnly;
7863
7989
  type ListViewClientProps = {
7990
+ baseFilter?: Where;
7864
7991
  beforeActions?: React.ReactNode[];
7865
7992
  collectionSlug: SanitizedCollectionConfig['slug'];
7866
7993
  columnState: Column[];
@@ -7871,6 +7998,18 @@ type ListViewClientProps = {
7871
7998
  hasCreatePermission: boolean;
7872
7999
  hasDeletePermission?: boolean;
7873
8000
  hasTrashPermission?: boolean;
8001
+ /**
8002
+ * Hierarchy view data - present when viewing a hierarchy collection with a parent selected
8003
+ */
8004
+ hierarchyData?: HierarchyViewData;
8005
+ /**
8006
+ * Resolved full-size icon component for hierarchy collections (used in drawer subheader)
8007
+ */
8008
+ HierarchyIcon?: React.ReactNode;
8009
+ /**
8010
+ * Resolved small icon component for hierarchy collections (used in table rows)
8011
+ */
8012
+ HierarchySmallIcon?: React.ReactNode;
7874
8013
  /**
7875
8014
  * @deprecated
7876
8015
  */
@@ -7969,6 +8108,7 @@ type FieldRow = {
7969
8108
  };
7970
8109
  type DocumentSlots = {
7971
8110
  BeforeDocumentControls?: React$1.ReactNode;
8111
+ BeforeDocumentMeta?: React$1.ReactNode;
7972
8112
  Description?: React$1.ReactNode;
7973
8113
  EditMenuItems?: React$1.ReactNode;
7974
8114
  LivePreview?: React$1.ReactNode;
@@ -8052,17 +8192,9 @@ type FileSize = {
8052
8192
  filesize: null | number;
8053
8193
  height: null | number;
8054
8194
  mimeType: null | string;
8055
- url?: null | string;
8056
- width: null | number;
8057
- };
8058
- /**
8059
- * FileSizeImproved is a more precise type, and will replace FileSize in Payload v4.
8060
- * This type is for internal use only as it will be deprecated in the future.
8061
- * @internal
8062
- */
8063
- type FileSizeImproved = {
8064
8195
  url: null | string;
8065
- } & FileSize;
8196
+ width: null | number;
8197
+ };
8066
8198
  type FileSizes = {
8067
8199
  [size: string]: FileSize;
8068
8200
  };
@@ -8105,30 +8237,21 @@ type GenerateImageName = (args: {
8105
8237
  type ImageSize = {
8106
8238
  /**
8107
8239
  * Admin UI options that control how this image size appears in list views.
8108
- *
8109
- * NOTE: In Payload v4, these options (`disableGroupBy`, `disableListColumn` and `disableListFilter`)
8110
- * should default to `true` so image size subfields are hidden from list columns
8111
- * and filters by default, reducing noise in the admin UI.
8112
8240
  */
8113
8241
  admin?: {
8114
8242
  /**
8115
- * If set to true, this image size will not be available
8116
- * as a selectable groupBy option in the collection list view.
8117
- * @default false
8118
- */
8119
- disableGroupBy?: boolean;
8120
- /**
8121
- * If set to true, this image size will not be available
8122
- * as a selectable column in the collection list view.
8123
- * @default false
8124
- */
8125
- disableListColumn?: boolean;
8126
- /**
8127
- * If set to true, this image size will not be available
8128
- * as a filter option in the collection list view.
8129
- * @default false
8243
+ * Controls visibility of this image size in the collection list view.
8244
+ * Defaults to hiding the image size from columns, filters, and group-by to reduce noise.
8245
+ *
8246
+ * - `column` — whether to hide this size from selectable list columns. @default false
8247
+ * - `filter` — whether to hide this size from filter options. @default false
8248
+ * - `groupBy` — whether to hide this size from group-by options. @default false
8130
8249
  */
8131
- disableListFilter?: boolean;
8250
+ disabled?: {
8251
+ column?: boolean;
8252
+ filter?: boolean;
8253
+ groupBy?: boolean;
8254
+ };
8132
8255
  };
8133
8256
  /**
8134
8257
  * @deprecated prefer position
@@ -9250,6 +9373,36 @@ type AfterForgotPasswordHook = (args: {
9250
9373
  collection: SanitizedCollectionConfig;
9251
9374
  context: RequestContext;
9252
9375
  }) => any;
9376
+ /**
9377
+ * Configuration options for folder hierarchy preset.
9378
+ * Subset of HierarchyConfig with folder-appropriate defaults applied.
9379
+ */
9380
+ type FoldersConfig = {
9381
+ admin?: {
9382
+ components?: {
9383
+ Icon?: PayloadComponent;
9384
+ };
9385
+ injectSidebarTab?: boolean;
9386
+ treeLimit?: number;
9387
+ useHeaderButton?: boolean;
9388
+ };
9389
+ collectionSpecific?: {
9390
+ fieldName?: string;
9391
+ } | boolean;
9392
+ joinField?: HierarchyJoinFieldConfig;
9393
+ parentFieldName?: string;
9394
+ slugField?: string;
9395
+ slugify?: (text: string) => string;
9396
+ slugPathFieldName?: string;
9397
+ titlePathFieldName?: string;
9398
+ };
9399
+ /**
9400
+ * Configuration options for tags hierarchy preset.
9401
+ * Same as FoldersConfig but allowHasMany can be overridden.
9402
+ */
9403
+ type TagsConfig = {
9404
+ allowHasMany?: boolean;
9405
+ } & FoldersConfig;
9253
9406
  type BaseFilter = (args: {
9254
9407
  limit: number;
9255
9408
  locale?: TypedLocale;
@@ -9290,80 +9443,18 @@ type CollectionAdminOptions = {
9290
9443
  afterListTable?: CustomComponent[];
9291
9444
  beforeList?: CustomComponent[];
9292
9445
  beforeListTable?: CustomComponent[];
9293
- Description?: EntityDescriptionComponent;
9294
9446
  /**
9295
9447
  * Components within the edit view
9296
9448
  */
9297
9449
  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
9450
  /**
9336
9451
  * Replaces the "Upload" section
9337
9452
  * + upload must be enabled
9338
9453
  */
9339
9454
  Upload?: CustomUpload;
9340
- };
9455
+ } & SharedEditViewComponents;
9341
9456
  listMenuItems?: CustomComponent[];
9342
9457
  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
9458
  /**
9368
9459
  * Replace or modify the "list" view.
9369
9460
  * @link https://payloadcms.com/docs/custom-components/list-view
@@ -9372,8 +9463,8 @@ type CollectionAdminOptions = {
9372
9463
  actions?: CustomComponent[];
9373
9464
  Component?: PayloadComponent;
9374
9465
  };
9375
- };
9376
- };
9466
+ } & SharedEntityViews;
9467
+ } & Omit<SharedAdminComponents, 'edit' | 'views'>;
9377
9468
  /** Extension point to add your custom data. Available in server and client. */
9378
9469
  custom?: CollectionAdminCustom;
9379
9470
  /**
@@ -9389,15 +9480,6 @@ type CollectionAdminOptions = {
9389
9480
  * @default false
9390
9481
  */
9391
9482
  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
9483
  enableRichTextLink?: boolean;
9402
9484
  enableRichTextRelationship?: boolean;
9403
9485
  /**
@@ -9441,10 +9523,6 @@ type CollectionAdminOptions = {
9441
9523
  hidden?: ((args: {
9442
9524
  user: ClientUser;
9443
9525
  }) => boolean) | boolean;
9444
- /**
9445
- * Hide the API URL within the Edit view
9446
- */
9447
- hideAPIURL?: boolean;
9448
9526
  /**
9449
9527
  * Additional fields to be searched via the full text search
9450
9528
  */
@@ -9534,13 +9612,13 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9534
9612
  endpoints?: false | Omit<Endpoint, 'root'>[];
9535
9613
  fields: Field[];
9536
9614
  /**
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
9615
+ * Enable folder hierarchy preset for this collection.
9616
+ * Sets hierarchy with folder defaults: allowHasMany: false, FolderIcon, useHeaderButton: true
9617
+ *
9618
+ * Use `true` for defaults, or object for customization.
9619
+ * Cannot be used together with `tags` or `hierarchy`.
9542
9620
  */
9543
- forceSelect?: IsAny$1<SelectFromCollectionSlug<TSlug>> extends true ? SelectIncludeType : SelectFromCollectionSlug<TSlug>;
9621
+ folders?: boolean | FoldersConfig;
9544
9622
  /**
9545
9623
  * GraphQL configuration
9546
9624
  */
@@ -9550,6 +9628,25 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9550
9628
  pluralName?: string;
9551
9629
  singularName?: string;
9552
9630
  } | false;
9631
+ /**
9632
+ * Enable hierarchical tree structure for this collection
9633
+ *
9634
+ * Use `true` to enable with defaults (auto-detects parent field)
9635
+ * or provide configuration object
9636
+ *
9637
+ * @example
9638
+ * // Enable with defaults
9639
+ * hierarchy: true
9640
+ *
9641
+ * @example
9642
+ * // Customize field names and slugify function
9643
+ * hierarchy: {
9644
+ * parentFieldName: 'parent',
9645
+ * slugify: (text) => customSlugify(text),
9646
+ * slugPathFieldName: '_breadcrumbPath'
9647
+ * }
9648
+ */
9649
+ hierarchy?: boolean | HierarchyConfig;
9553
9650
  /**
9554
9651
  * Hooks to modify Payload functionality
9555
9652
  */
@@ -9620,6 +9717,14 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9620
9717
  */
9621
9718
  orderable?: boolean;
9622
9719
  slug: string;
9720
+ /**
9721
+ * Enable tags hierarchy preset for this collection.
9722
+ * Sets hierarchy with tag defaults: allowHasMany: true, TagIcon
9723
+ *
9724
+ * Use `true` for defaults, or object for customization.
9725
+ * Cannot be used together with `folders` or `hierarchy`.
9726
+ */
9727
+ tags?: boolean | TagsConfig;
9623
9728
  /**
9624
9729
  * Add `createdAt`, `deletedAt` and `updatedAt` fields
9625
9730
  *
@@ -9659,7 +9764,7 @@ type CollectionConfig<TSlug extends CollectionSlug = any> = {
9659
9764
  * @default false // disable versioning
9660
9765
  */
9661
9766
  versions?: boolean | IncomingCollectionVersions;
9662
- };
9767
+ } & Pick<WithSelectFn<IsAny$1<SelectFromCollectionSlug<TSlug>> extends true ? SelectIncludeType : SelectFromCollectionSlug<TSlug>>, 'select'>;
9663
9768
  type SanitizedJoin = {
9664
9769
  /**
9665
9770
  * The field configuration defining the join
@@ -9686,7 +9791,7 @@ type SanitizedJoins = {
9686
9791
  * @todo remove the `DeepRequired` in v4.
9687
9792
  * We don't actually guarantee that all properties are set when sanitizing configs.
9688
9793
  */
9689
- interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>, 'admin' | 'auth' | 'endpoints' | 'fields' | 'folders' | 'slug' | 'upload' | 'versions'> {
9794
+ interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>, 'admin' | 'auth' | 'endpoints' | 'fields' | 'folder' | 'folders' | 'hierarchy' | 'slug' | 'tags' | 'upload' | 'versions'> {
9690
9795
  admin: CollectionAdminOptions;
9691
9796
  auth: Auth;
9692
9797
  endpoints: Endpoint[] | false;
@@ -9696,10 +9801,13 @@ interface SanitizedCollectionConfig extends Omit<DeepRequired<CollectionConfig>,
9696
9801
  * Rows / collapsible / tabs w/o name `fields` merged to top, UIs are excluded
9697
9802
  */
9698
9803
  flattenedFields: FlattenedField$1[];
9804
+ /**
9805
+ * Hierarchy configuration (when collection is a hierarchy type like folders or tags)
9806
+ */
9807
+ hierarchy: false | SanitizedHierarchyConfig;
9699
9808
  /**
9700
9809
  * Object of collections to join 'Join Fields object keyed by collection
9701
9810
  */
9702
- folders: CollectionFoldersConfiguration | false;
9703
9811
  joins: SanitizedJoins;
9704
9812
  /**
9705
9813
  * List of all polymorphic join fields
@@ -9808,6 +9916,15 @@ type CustomPayloadRequestProperties = {
9808
9916
  * { collection: 'posts', id: '123' }
9809
9917
  */
9810
9918
  routeParams?: Record<string, unknown>;
9919
+ /**
9920
+ * Framework abstraction for server-only navigation, cookies, and headers APIs.
9921
+ * Populated by the framework adapter (e.g. `@payloadcms/next`). Plugins that
9922
+ * have access to `req` should call methods here (`req.server.unauthorized()`,
9923
+ * `req.server.redirect(...)`) instead of importing from `next/navigation` or
9924
+ * `next/headers` directly. Optional because non-framework contexts (jobs,
9925
+ * scripts, tests) construct requests without a server adapter.
9926
+ */
9927
+ server?: ServerAdapter;
9811
9928
  /** Translate function - duplicate of i18n.t */
9812
9929
  t: TFunction;
9813
9930
  /**
@@ -9815,11 +9932,6 @@ type CustomPayloadRequestProperties = {
9815
9932
  * Can also be used to ensure consistency when multiple operations try to create a transaction concurrently on the same request.
9816
9933
  */
9817
9934
  transactionID?: number | Promise<number | string> | string;
9818
- /**
9819
- * Used to ensure consistency when multiple operations try to create a transaction concurrently on the same request
9820
- * @deprecated This is not used anywhere, instead `transactionID` is used for the above. Will be removed in next major version.
9821
- */
9822
- transactionIDPromise?: Promise<void>;
9823
9935
  /** The signed-in user */
9824
9936
  user: null | TypedUser;
9825
9937
  } & Pick<URL, 'hash' | 'host' | 'href' | 'origin' | 'pathname' | 'port' | 'protocol' | 'search' | 'searchParams'>;
@@ -9901,6 +10013,49 @@ type SelectExcludeType = {
9901
10013
  };
9902
10014
  type SelectMode = 'exclude' | 'include';
9903
10015
  type SelectType = SelectExcludeType | SelectIncludeType;
10016
+ /**
10017
+ * Operations that invoke an entity-level `select` function.
10018
+ *
10019
+ * Narrower than `HookOperationType`: `select` runs only for read- and
10020
+ * write-path operations that materialize a document (`create`, `delete`,
10021
+ * `read`, `restoreVersion`, `update`). Operations like `autosave`, `count`,
10022
+ * `countVersions`, `forgotPassword`, `login`, `readDistinct`, `refresh`, and
10023
+ * `resetPassword` do not invoke `select` and are intentionally excluded.
10024
+ */
10025
+ type SelectFnOperation = 'create' | 'delete' | 'read' | 'restoreVersion' | 'update';
10026
+ type SelectFnArgs = {
10027
+ operation: SelectFnOperation;
10028
+ req: PayloadRequest;
10029
+ /** The caller's `select` arg, or `undefined` if not provided. */
10030
+ select?: SelectType;
10031
+ };
10032
+ type SelectFn<TSelect extends SelectType = SelectType> = (args: SelectFnArgs) => TSelect | undefined;
10033
+ /**
10034
+ * Shared shape for the entity-level `select` config used by Collections and Globals.
10035
+ * The JSDoc on the `select` property is the single source of truth — pick from this
10036
+ * type when defining the config:
10037
+ *
10038
+ * & Pick<WithSelectFn<...>, 'select'>
10039
+ */
10040
+ type WithSelectFn<TSelect extends SelectType = SelectType> = {
10041
+ /**
10042
+ * Entity-level Select API configuration.
10043
+ *
10044
+ * A function that receives the current request context (`operation`, `req`,
10045
+ * the caller's `select`) and returns the final `select` to apply, replacing
10046
+ * the caller's. Return `undefined` to leave the caller's `select` unchanged.
10047
+ *
10048
+ * Useful to dynamically modify the caller's selection based on the request context:
10049
+ * - Forcing a field to be populated for reference within hooks / access control.
10050
+ * - Differentiating between API requests and admin panel requests, to optimize
10051
+ * the amount of data being queried in each case.
10052
+ *
10053
+ * Note: per-document data is not available — this runs before the read.
10054
+ *
10055
+ * @see https://payloadcms.com/docs/queries/select
10056
+ */
10057
+ select?: SelectFn<TSelect>;
10058
+ };
9904
10059
  type ApplyDisableErrors<T, DisableErrors = false> = false extends DisableErrors ? T : null | T;
9905
10060
  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
10061
  [K in Data extends TypeWithID ? 'id' | keyof Select : keyof Select]: K extends 'id' ? number | string : unknown;
@@ -10052,6 +10207,61 @@ type Options$c<TSlug extends AuthCollectionSlug> = {
10052
10207
  token: string;
10053
10208
  };
10054
10209
 
10210
+ /**
10211
+ * Client-side router adapter to abstract away framework-specific routing implementations.
10212
+ * This way plugins and server components can use server-only APIs without directly importing any framework-specific modules.
10213
+ *
10214
+ * @example
10215
+ * ```tsx
10216
+ * // Next.js router adapter (simplified):
10217
+ * import { useRouter as useNextRouter, usePathname as useNextPathname } from 'next/navigation'
10218
+ *
10219
+ * const NextRouterAdapter: RouterAdapterComponent = ({ children }) => {
10220
+ * const router = useNextRouter()
10221
+ * const pathname = useNextPathname()
10222
+ *
10223
+ * return (
10224
+ * <RouterAdapterContext value={{ router, pathname, ... }}>
10225
+ * {children}
10226
+ * </RouterAdapterContext>
10227
+ * )
10228
+ * }
10229
+ * ```
10230
+ */
10231
+ type RouterAdapterComponent = React$1.ComponentType<{
10232
+ children: React$1.ReactNode;
10233
+ }>;
10234
+ type RouterAdapterRouter = {
10235
+ /**
10236
+ * Navigate back to the previous page in the history stack.
10237
+ */
10238
+ back: () => void;
10239
+ /**
10240
+ * Navigate to a new path.
10241
+ */
10242
+ push: (path: string, options?: {
10243
+ scroll?: boolean;
10244
+ }) => void;
10245
+ /**
10246
+ * Refresh the current route.
10247
+ */
10248
+ refresh: () => void;
10249
+ /**
10250
+ * Replace the current path with a new one.
10251
+ */
10252
+ replace: (path: string, options?: {
10253
+ scroll?: boolean;
10254
+ }) => void;
10255
+ };
10256
+ type LinkAdapterProps = {
10257
+ children?: React$1.ReactNode;
10258
+ href: string;
10259
+ prefetch?: boolean;
10260
+ ref?: React$1.Ref<HTMLAnchorElement>;
10261
+ replace?: boolean;
10262
+ scroll?: boolean;
10263
+ } & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>;
10264
+
10055
10265
  type CountOptions<TSlug extends CollectionSlug> = {
10056
10266
  /**
10057
10267
  * the Collection slug to operate against.
@@ -11317,6 +11527,8 @@ type BaseOptions<TSlug extends GlobalSlug, TSelect extends SelectType> = {
11317
11527
  } & Pick<FindOptions<string, SelectType>, 'select'>;
11318
11528
  type Options<TSlug extends GlobalSlug, TSelect extends SelectType> = BaseOptions<TSlug, TSelect> & DraftFlagFromGlobalSlug<TSlug>;
11319
11529
 
11530
+ declare const accountLockFields: Field[];
11531
+
11320
11532
  // Generated by dts-bundle-generator v9.5.1
11321
11533
 
11322
11534
  /**
@@ -12095,8 +12307,6 @@ type CountVersionsOptions<TSlug extends CollectionSlug> = {
12095
12307
  where?: Where;
12096
12308
  };
12097
12309
 
12098
- declare const accountLockFields: Field[];
12099
-
12100
12310
  declare const apiKeyFields: Field[];
12101
12311
 
12102
12312
  declare const baseAuthFields: Field[];
@@ -12109,6 +12319,8 @@ declare const usernameFieldConfig: TextField;
12109
12319
 
12110
12320
  declare const verificationFields: Field[];
12111
12321
 
12322
+ declare const defaultUserCollection: CollectionConfig;
12323
+
12112
12324
  type OperationArgs = {
12113
12325
  data?: any;
12114
12326
  disableErrors?: boolean;
@@ -12177,32 +12389,32 @@ type Result<TData> = {
12177
12389
  };
12178
12390
  declare const registerFirstUserOperation: <TSlug extends AuthCollectionSlug>(args: Arguments$7<TSlug>) => Promise<Result<DataFromCollectionSlug<TSlug>>>;
12179
12391
 
12180
- type Args$k = {
12392
+ type Args$j = {
12181
12393
  collection: Collection;
12182
12394
  req: PayloadRequest;
12183
12395
  token: string;
12184
12396
  };
12185
- declare const verifyEmailOperation: (args: Args$k) => Promise<boolean>;
12397
+ declare const verifyEmailOperation: (args: Args$j) => Promise<boolean>;
12186
12398
 
12187
12399
  /**
12188
12400
  * Authentication strategy function for JWT tokens
12189
12401
  */
12190
12402
  declare const JWTAuthentication: AuthStrategyFunction;
12191
12403
 
12192
- type Args$j = {
12404
+ type Args$i = {
12193
12405
  collection: SanitizedCollectionConfig;
12194
12406
  payload: Payload;
12195
12407
  user: TypedUser;
12196
12408
  };
12197
- declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$j) => Promise<void>;
12409
+ declare const incrementLoginAttempts: ({ collection, payload, user, }: Args$i) => Promise<void>;
12198
12410
 
12199
- type Args$i = {
12411
+ type Args$h = {
12200
12412
  collection: SanitizedCollectionConfig;
12201
12413
  doc: Record<string, unknown> & TypeWithID;
12202
12414
  payload: Payload;
12203
12415
  req: PayloadRequest;
12204
12416
  };
12205
- declare const resetLoginAttempts: ({ collection, doc, payload, req, }: Args$i) => Promise<void>;
12417
+ declare const resetLoginAttempts: ({ collection, doc, payload, req, }: Args$h) => Promise<void>;
12206
12418
 
12207
12419
  declare function genImportMapIterateFields({ addToImportMap, baseDir, config, fields, importMap, imports, }: {
12208
12420
  addToImportMap: AddToImportMap;
@@ -12213,7 +12425,7 @@ declare function genImportMapIterateFields({ addToImportMap, baseDir, config, fi
12213
12425
  imports: Imports;
12214
12426
  }): void;
12215
12427
 
12216
- type Args$h = {
12428
+ type Args$g = {
12217
12429
  config: SanitizedConfig;
12218
12430
  /**
12219
12431
  * Override the migration directory. Useful for testing when the CWD differs
@@ -12222,7 +12434,7 @@ type Args$h = {
12222
12434
  migrationDir?: string;
12223
12435
  parsedArgs: ParsedArgs;
12224
12436
  };
12225
- declare const migrate$1: ({ config, migrationDir, parsedArgs }: Args$h) => Promise<void>;
12437
+ declare const migrate$1: ({ config, migrationDir, parsedArgs }: Args$g) => Promise<void>;
12226
12438
 
12227
12439
  declare const getDataLoader: (req: PayloadRequest) => {
12228
12440
  find: Payload["find"];
@@ -12471,7 +12683,7 @@ declare const writeMigrationIndex: (args: {
12471
12683
  migrationsDir: string;
12472
12684
  }) => void;
12473
12685
 
12474
- type Args$g = {
12686
+ type Args$f = {
12475
12687
  errors?: {
12476
12688
  path: string;
12477
12689
  }[];
@@ -12488,9 +12700,9 @@ type Args$g = {
12488
12700
  collectionConfig?: never | undefined;
12489
12701
  globalConfig: SanitizedGlobalConfig;
12490
12702
  });
12491
- declare function validateQueryPaths({ collectionConfig, errors, globalConfig, overrideAccess, policies, polymorphicJoin, req, versionFields, where, }: Args$g): Promise<void>;
12703
+ declare function validateQueryPaths({ collectionConfig, errors, globalConfig, overrideAccess, policies, polymorphicJoin, req, versionFields, where, }: Args$f): Promise<void>;
12492
12704
 
12493
- type Args$f = {
12705
+ type Args$e = {
12494
12706
  collectionConfig?: SanitizedCollectionConfig;
12495
12707
  constraint: WhereField;
12496
12708
  errors: {
@@ -12511,7 +12723,7 @@ type Args$f = {
12511
12723
  /**
12512
12724
  * Validate the Payload key / value / operator
12513
12725
  */
12514
- declare function validateSearchParam({ collectionConfig, constraint, errors, fields, globalConfig, operator, overrideAccess, parentIsLocalized, path: incomingPath, policies, polymorphicJoin, req, val, versionFields, }: Args$f): Promise<void>;
12726
+ declare function validateSearchParam({ collectionConfig, constraint, errors, fields, globalConfig, operator, overrideAccess, parentIsLocalized, path: incomingPath, policies, polymorphicJoin, req, val, versionFields, }: Args$e): Promise<void>;
12515
12727
 
12516
12728
  declare const baseBlockFields: Field[];
12517
12729
 
@@ -12626,16 +12838,16 @@ type SanitizeFieldResult = {
12626
12838
  declare const sanitizeField: ({ collectionConfig, config, existingFieldNames, field, globalConfig, index, isTopLevelField, joinPath, joins, orderableJoins, parentIndexPath, parentIsLocalized, parentSchemaPath, polymorphicJoins, requireFieldLevelRichTextEditor, richTextSanitizationPromises, validRelationships, }: SanitizeFieldArgs) => Promise<SanitizeFieldResult>;
12627
12839
  declare const sanitizeFields: ({ collectionConfig, config, existingFieldNames, fields, globalConfig, isTopLevelField, joinPath, joins, orderableJoins, parentIndexPath, parentIsLocalized, parentSchemaPath, polymorphicJoins, requireFieldLevelRichTextEditor, richTextSanitizationPromises, validRelationships, }: SanitizeFieldsArgs) => Promise<Field[]>;
12628
12840
 
12629
- type Args$e = {
12841
+ type Args$d = {
12630
12842
  defaultValue: DefaultValue;
12631
12843
  locale: string | undefined;
12632
12844
  req: PayloadRequest;
12633
12845
  user: PayloadRequest['user'];
12634
12846
  value?: JsonValue;
12635
12847
  };
12636
- declare const getDefaultValue: ({ defaultValue, locale, req, user, value, }: Args$e) => Promise<JsonValue>;
12848
+ declare const getDefaultValue: ({ defaultValue, locale, req, user, value, }: Args$d) => Promise<JsonValue>;
12637
12849
 
12638
- type Args$d = {
12850
+ type Args$c = {
12639
12851
  /**
12640
12852
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12641
12853
  */
@@ -12661,9 +12873,9 @@ type Args$d = {
12661
12873
  siblingDoc: JsonObject;
12662
12874
  siblingFields?: (Field | TabAsField)[];
12663
12875
  };
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>;
12876
+ 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
12877
 
12666
- type Args$c = {
12878
+ type Args$b = {
12667
12879
  /**
12668
12880
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12669
12881
  */
@@ -12711,9 +12923,9 @@ type Args$c = {
12711
12923
  triggerAccessControl?: boolean;
12712
12924
  triggerHooks?: boolean;
12713
12925
  } & 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>;
12926
+ 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
12927
 
12716
- type Args$b = {
12928
+ type Args$a = {
12717
12929
  /**
12718
12930
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12719
12931
  */
@@ -12760,9 +12972,9 @@ type Args$b = {
12760
12972
  triggerAccessControl?: boolean;
12761
12973
  triggerHooks?: boolean;
12762
12974
  };
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;
12975
+ 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
12976
 
12765
- type Args$a = {
12977
+ type Args$9 = {
12766
12978
  /**
12767
12979
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12768
12980
  */
@@ -12818,9 +13030,9 @@ type Args$a = {
12818
13030
  * - Transform data for storage
12819
13031
  * - Unflatten locales. The input `data` is the normal document for one locale. The output result will become the document with locales.
12820
13032
  */
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>;
13033
+ 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
13034
 
12823
- type Args$9<T> = {
13035
+ type Args$8<T> = {
12824
13036
  /**
12825
13037
  * Data of the nearest parent block. If no parent block exists, this will be the `undefined`
12826
13038
  */
@@ -12851,39 +13063,10 @@ type Args$9<T> = {
12851
13063
  */
12852
13064
  siblingDoc: JsonObject;
12853
13065
  };
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>;
13066
+ 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
13067
 
12856
13068
  declare const sortableFieldTypes: string[];
12857
13069
 
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
13070
  type Arguments$3 = {
12888
13071
  /**
12889
13072
  * If the document data is passed, it will be used to check access instead of fetching the document from the database.
@@ -12953,6 +13136,191 @@ type Args$7<TSlug extends GlobalSlug> = {
12953
13136
  } & Pick<FindOptions<string, SelectType>, 'select'>;
12954
13137
  declare const updateOperation: <TSlug extends GlobalSlug, TSelect extends SelectFromGlobalSlug<TSlug>>(args: Args$7<TSlug>) => Promise<TransformGlobalWithSelect<TSlug, TSelect>>;
12955
13138
 
13139
+ /**
13140
+ * Default field names and constants for hierarchy feature
13141
+ */
13142
+ declare const HIERARCHY_SLUG_PATH_FIELD = "_h_slugPath";
13143
+ declare const HIERARCHY_TITLE_PATH_FIELD = "_h_titlePath";
13144
+ declare const HIERARCHY_DEFAULT_LOCALE = "en";
13145
+ /** Default limit for hierarchy tree queries */
13146
+ declare const DEFAULT_HIERARCHY_TREE_LIMIT = 100;
13147
+ /** Default value for allowing hasMany on hierarchy fields */
13148
+ declare const DEFAULT_ALLOW_HAS_MANY = true;
13149
+ /** Generate a hierarchy field name from a hierarchy slug (e.g., 'folders' -> '_h_folders') */
13150
+ declare const getHierarchyFieldName: (hierarchySlug: string) => string;
13151
+
13152
+ /**
13153
+ * Options for creating a folder relationship field.
13154
+ * All SingleRelationshipField properties are available except name, type, relationTo, and hasMany
13155
+ * which are managed by the folder system.
13156
+ */
13157
+ type CreateFolderFieldOptions = {
13158
+ /**
13159
+ * The slug of the hierarchy collection this field references (e.g., 'folders')
13160
+ */
13161
+ relationTo: string;
13162
+ } & Pick<Partial<SingleRelationshipField>, 'admin' | 'label' | 'required'>;
13163
+ /**
13164
+ * Creates a relationship field for folder-style hierarchies (single-select).
13165
+ *
13166
+ * This field:
13167
+ * - Has hasMany:false (single folder selection)
13168
+ * - Uses NullField to render nothing in the form (no DOM output)
13169
+ * - Injects a header button for folder selection via miller columns UI
13170
+ *
13171
+ * Use this in your collection's fields array to add a folder relationship.
13172
+ * The field name is automatically generated based on the hierarchy slug.
13173
+ *
13174
+ * @example
13175
+ * import { createFolderField } from 'payload'
13176
+ *
13177
+ * const Posts: CollectionConfig = {
13178
+ * slug: 'posts',
13179
+ * fields: [
13180
+ * { name: 'title', type: 'text' },
13181
+ * createFolderField({
13182
+ * relationTo: 'folders',
13183
+ * label: 'Folder',
13184
+ * }),
13185
+ * ],
13186
+ * }
13187
+ */
13188
+ declare function createFolderField(options: CreateFolderFieldOptions): RelationshipField;
13189
+
13190
+ /**
13191
+ * Options for creating a tag relationship field.
13192
+ * All RelationshipFieldMany properties are available except name, type, and relationTo
13193
+ * which are managed by the tag system.
13194
+ */
13195
+ type CreateTagFieldOptions = {
13196
+ /**
13197
+ * Whether to allow multiple tags (defaults to true)
13198
+ * @default true
13199
+ */
13200
+ hasMany?: boolean;
13201
+ /**
13202
+ * The slug of the hierarchy collection this field references (e.g., 'tags')
13203
+ */
13204
+ relationTo: string;
13205
+ } & Pick<Partial<RelationshipField>, 'admin' | 'label' | 'required'>;
13206
+ /**
13207
+ * Creates a relationship field for tag-style hierarchies (multi-select by default).
13208
+ *
13209
+ * This field:
13210
+ * - Has hasMany:true by default (multiple tag selection)
13211
+ * - Is positioned in the sidebar by default
13212
+ * - Does NOT inject a header button (tags use standard relationship UI)
13213
+ *
13214
+ * Use this in your collection's fields array to add a tag relationship.
13215
+ * The field name is automatically generated based on the hierarchy slug.
13216
+ *
13217
+ * @example
13218
+ * import { createTagField } from 'payload'
13219
+ *
13220
+ * const Posts: CollectionConfig = {
13221
+ * slug: 'posts',
13222
+ * fields: [
13223
+ * { name: 'title', type: 'text' },
13224
+ * createTagField({
13225
+ * relationTo: 'tags',
13226
+ * label: 'Tags',
13227
+ * }),
13228
+ * ],
13229
+ * }
13230
+ */
13231
+ declare function createTagField(options: CreateTagFieldOptions): RelationshipField;
13232
+
13233
+ type GetInitialTreeDataArgs = {
13234
+ /** Base filter to apply to all queries (e.g., tenant filter) */
13235
+ baseFilter?: null | Where;
13236
+ collectionSlug: string;
13237
+ expandedNodeIds?: (number | string)[];
13238
+ /** Filter tree to only show folders that allow these collection types (or are unrestricted) */
13239
+ filterByCollections?: string[];
13240
+ limit?: number;
13241
+ payload: PayloadRequest['payload'];
13242
+ /** The currently selected node ID. When provided, ensures siblings are loaded to include this node. */
13243
+ selectedNodeId?: null | number | string;
13244
+ /** The parent ID of the selected node. Required when selectedNodeId is provided. */
13245
+ selectedNodeParentId?: null | number | string;
13246
+ user: PayloadRequest['user'];
13247
+ };
13248
+ type InitialTreeData = {
13249
+ docs: TypeWithID[];
13250
+ loadedParents: Record<string, {
13251
+ hasMore: boolean;
13252
+ loadedCount?: number;
13253
+ totalDocs: number;
13254
+ }>;
13255
+ };
13256
+ declare const getInitialTreeData: ({ baseFilter, collectionSlug, expandedNodeIds, filterByCollections, limit, payload, selectedNodeId, selectedNodeParentId, user, }: GetInitialTreeDataArgs) => Promise<InitialTreeData>;
13257
+
13258
+ /**
13259
+ * Injects the HierarchyButton component into a collection's BeforeDocumentMeta slot.
13260
+ *
13261
+ * The HierarchyButton provides a header UI for selecting parent hierarchy items
13262
+ * via miller columns, replacing the standard relationship field input.
13263
+ */
13264
+ declare const injectHierarchyButton: ({ collection, fieldName, hierarchyCollectionSlug, parentFieldName, }: {
13265
+ collection: CollectionConfig;
13266
+ fieldName: string;
13267
+ hierarchyCollectionSlug: string;
13268
+ parentFieldName: string;
13269
+ }) => void;
13270
+
13271
+ /**
13272
+ * Resolves hierarchy relationships across collections.
13273
+ *
13274
+ * This function runs after individual collection sanitization to establish
13275
+ * cross-collection hierarchy relationships. It discovers which collections
13276
+ * reference each hierarchy and configures the necessary fields, components,
13277
+ * and hooks.
13278
+ *
13279
+ * @remarks
13280
+ * Must be called after all collections are sanitized.
13281
+ *
13282
+ * **What it does:**
13283
+ * - Discovers related collections by scanning for hierarchy relationship fields
13284
+ * - Injects `HierarchyButton` component when `custom.hierarchy.injectHeaderButton` is set
13285
+ * - Adds `collectionSpecific` validation to ensure hierarchy items accept the document type
13286
+ * - Injects the `hierarchyType` select field when `collectionSpecific` is enabled
13287
+ * - Injects join field when `joinField` is configured
13288
+ * - Adds `afterDelete` hook to clear hierarchy references when items are deleted
13289
+ * - Populates `relatedCollections` in the sanitized hierarchy config
13290
+ */
13291
+ declare const resolveHierarchyCollections: (config: Config) => void;
13292
+
13293
+ type Ancestor = {
13294
+ id: number | string;
13295
+ title: string;
13296
+ };
13297
+ type GetAncestorsArgs = {
13298
+ /**
13299
+ * The collection slug
13300
+ */
13301
+ collectionSlug: CollectionSlug;
13302
+ /**
13303
+ * The document ID to get ancestors for
13304
+ */
13305
+ id: number | string;
13306
+ /**
13307
+ * Include the document itself in the returned ancestors (as last item)
13308
+ * @default true
13309
+ */
13310
+ includeSelf?: boolean;
13311
+ /**
13312
+ * The request object
13313
+ */
13314
+ req: PayloadRequest;
13315
+ };
13316
+ /**
13317
+ * Get ancestor chain for a hierarchical document.
13318
+ * Returns array of {id, title} from root to the document.
13319
+ *
13320
+ * Uses request context caching for efficiency when called multiple times.
13321
+ */
13322
+ declare function getAncestors({ id, collectionSlug, includeSelf, req, }: GetAncestorsArgs): Promise<Ancestor[]>;
13323
+
12956
13324
  declare class DatabaseKVAdapter implements KVAdapter {
12957
13325
  readonly payload: Payload;
12958
13326
  readonly collectionSlug: string;
@@ -13082,39 +13450,6 @@ declare const canAccessAdmin: ({ req }: {
13082
13450
  */
13083
13451
  declare function commitTransaction(req: MarkRequired<Partial<PayloadRequest>, 'payload'>): Promise<void>;
13084
13452
 
13085
- /**
13086
- * Returns a JSON Schema Type with 'null' added if the field is not required.
13087
- */
13088
- declare function withNullableJSONSchemaType(fieldType: JSONSchema4TypeName, isRequired: boolean): JSONSchema4TypeName | JSONSchema4TypeName[];
13089
- type ConfigToJSONSchemaOptions = {
13090
- forceInlineBlocks?: boolean;
13091
- };
13092
- declare function fieldsToJSONSchema(
13093
- /**
13094
- * Used for relationship fields, to determine whether to use a string or number type for the ID.
13095
- * While there is a default ID field type set by the db adapter, they can differ on a collection-level
13096
- * if they have custom ID fields.
13097
- */
13098
- collectionIDFieldTypes: {
13099
- [key: string]: 'number' | 'string';
13100
- }, fields: FlattenedField$1[],
13101
- /**
13102
- * Allows you to define new top-level interfaces that can be re-used in the output schema.
13103
- */
13104
- interfaceNameDefinitions: Map<string, JSONSchema4>, config?: SanitizedConfig, i18n?: I18n, opts?: ConfigToJSONSchemaOptions): {
13105
- properties: {
13106
- [k: string]: JSONSchema4;
13107
- };
13108
- required: string[];
13109
- };
13110
- declare function entityToJSONSchema(config: SanitizedConfig, entity: SanitizedCollectionConfig | SanitizedGlobalConfig, interfaceNameDefinitions: Map<string, JSONSchema4>, defaultIDType: 'number' | 'text', collectionIDFieldTypes?: {
13111
- [key: string]: 'number' | 'string';
13112
- }, i18n?: I18n, opts?: ConfigToJSONSchemaOptions): JSONSchema4;
13113
- /**
13114
- * This is used for generating the TypeScript types (payload-types.ts) with the payload generate:types command.
13115
- */
13116
- declare function configToJSONSchema(config: SanitizedConfig, defaultIDType?: 'number' | 'text', i18n?: I18n, opts?: ConfigToJSONSchemaOptions): JSONSchema4;
13117
-
13118
13453
  declare function createArrayFromCommaDelineated(input: string): string[];
13119
13454
 
13120
13455
  type CreateLocalReqOptions = {
@@ -14145,16 +14480,26 @@ interface RequestContext {
14145
14480
  interface DatabaseAdapter extends BaseDatabaseAdapter {
14146
14481
  }
14147
14482
 
14483
+ interface FieldCustom extends Record<string, any> {
14484
+ }
14148
14485
  interface FieldCustom extends Record<string, any> {
14149
14486
  }
14150
14487
  interface CollectionCustom extends Record<string, any> {
14151
14488
  }
14489
+ interface CollectionCustom extends Record<string, any> {
14490
+ }
14491
+ interface CollectionAdminCustom extends Record<string, any> {
14492
+ }
14152
14493
  interface CollectionAdminCustom extends Record<string, any> {
14153
14494
  }
14154
14495
  interface GlobalCustom extends Record<string, any> {
14155
14496
  }
14497
+ interface GlobalCustom extends Record<string, any> {
14498
+ }
14499
+ interface GlobalAdminCustom extends Record<string, any> {
14500
+ }
14156
14501
  interface GlobalAdminCustom extends Record<string, any> {
14157
14502
  }
14158
14503
 
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 };
14504
+ 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, 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, defaultUserCollection, 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, 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, readMigrationFiles, refreshOperation, registerFirstUserOperation, reload, resetLoginAttempts, resetPasswordOperation, resolveHierarchyCollections, 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 };
14505
+ 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, CookieOptions$1 as CookieOptions, CookieStore, 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, FieldsToJSONSchemaArgs, File$1 as File, FileAllowList, FileData, FileSize, 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, LinkAdapterProps, 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, RouterAdapterComponent, RouterAdapterRouter, 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, ServerAdapter, 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, StorageAdapter, 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 };