payload 4.0.0-internal.cd69eef → 4.0.0-internal.ce66a41

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 (1802) hide show
  1. package/bin.js +17 -24
  2. package/dist/admin/RichText.d.ts +23 -1
  3. package/dist/admin/RichText.d.ts.map +1 -1
  4. package/dist/admin/RichText.js.map +1 -1
  5. package/dist/admin/adapters/devReload.d.ts +13 -0
  6. package/dist/admin/adapters/devReload.d.ts.map +1 -1
  7. package/dist/admin/adapters/devReload.js +14 -1
  8. package/dist/admin/adapters/devReload.js.map +1 -1
  9. package/dist/admin/fields/Array.d.ts +11 -13
  10. package/dist/admin/fields/Array.d.ts.map +1 -1
  11. package/dist/admin/fields/Array.js.map +1 -1
  12. package/dist/admin/fields/Blocks.d.ts +13 -16
  13. package/dist/admin/fields/Blocks.d.ts.map +1 -1
  14. package/dist/admin/fields/Blocks.js.map +1 -1
  15. package/dist/admin/fields/Checkbox.d.ts +11 -13
  16. package/dist/admin/fields/Checkbox.d.ts.map +1 -1
  17. package/dist/admin/fields/Checkbox.js.map +1 -1
  18. package/dist/admin/fields/Code.d.ts +11 -13
  19. package/dist/admin/fields/Code.d.ts.map +1 -1
  20. package/dist/admin/fields/Code.js.map +1 -1
  21. package/dist/admin/fields/Collapsible.d.ts +11 -13
  22. package/dist/admin/fields/Collapsible.d.ts.map +1 -1
  23. package/dist/admin/fields/Collapsible.js.map +1 -1
  24. package/dist/admin/fields/Date.d.ts +11 -13
  25. package/dist/admin/fields/Date.d.ts.map +1 -1
  26. package/dist/admin/fields/Date.js.map +1 -1
  27. package/dist/admin/fields/Email.d.ts +11 -13
  28. package/dist/admin/fields/Email.d.ts.map +1 -1
  29. package/dist/admin/fields/Email.js.map +1 -1
  30. package/dist/admin/fields/Group.d.ts +11 -13
  31. package/dist/admin/fields/Group.d.ts.map +1 -1
  32. package/dist/admin/fields/Group.js.map +1 -1
  33. package/dist/admin/fields/JSON.d.ts +11 -13
  34. package/dist/admin/fields/JSON.d.ts.map +1 -1
  35. package/dist/admin/fields/JSON.js.map +1 -1
  36. package/dist/admin/fields/Join.d.ts +12 -14
  37. package/dist/admin/fields/Join.d.ts.map +1 -1
  38. package/dist/admin/fields/Join.js.map +1 -1
  39. package/dist/admin/fields/Number.d.ts +11 -13
  40. package/dist/admin/fields/Number.d.ts.map +1 -1
  41. package/dist/admin/fields/Number.js.map +1 -1
  42. package/dist/admin/fields/Point.d.ts +11 -13
  43. package/dist/admin/fields/Point.d.ts.map +1 -1
  44. package/dist/admin/fields/Point.js.map +1 -1
  45. package/dist/admin/fields/Radio.d.ts +11 -13
  46. package/dist/admin/fields/Radio.d.ts.map +1 -1
  47. package/dist/admin/fields/Radio.js.map +1 -1
  48. package/dist/admin/fields/Relationship.d.ts +11 -13
  49. package/dist/admin/fields/Relationship.d.ts.map +1 -1
  50. package/dist/admin/fields/Relationship.js.map +1 -1
  51. package/dist/admin/fields/RichText.d.ts +13 -15
  52. package/dist/admin/fields/RichText.d.ts.map +1 -1
  53. package/dist/admin/fields/RichText.js.map +1 -1
  54. package/dist/admin/fields/Row.d.ts +10 -12
  55. package/dist/admin/fields/Row.d.ts.map +1 -1
  56. package/dist/admin/fields/Row.js.map +1 -1
  57. package/dist/admin/fields/Select.d.ts +11 -13
  58. package/dist/admin/fields/Select.d.ts.map +1 -1
  59. package/dist/admin/fields/Select.js.map +1 -1
  60. package/dist/admin/fields/Tabs.d.ts +11 -13
  61. package/dist/admin/fields/Tabs.d.ts.map +1 -1
  62. package/dist/admin/fields/Tabs.js.map +1 -1
  63. package/dist/admin/fields/Text.d.ts +11 -13
  64. package/dist/admin/fields/Text.d.ts.map +1 -1
  65. package/dist/admin/fields/Text.js.map +1 -1
  66. package/dist/admin/fields/Textarea.d.ts +11 -13
  67. package/dist/admin/fields/Textarea.d.ts.map +1 -1
  68. package/dist/admin/fields/Textarea.js.map +1 -1
  69. package/dist/admin/fields/UI.d.ts +3 -5
  70. package/dist/admin/fields/UI.d.ts.map +1 -1
  71. package/dist/admin/fields/UI.js.map +1 -1
  72. package/dist/admin/fields/Upload.d.ts +11 -13
  73. package/dist/admin/fields/Upload.d.ts.map +1 -1
  74. package/dist/admin/fields/Upload.js.map +1 -1
  75. package/dist/admin/forms/Description.d.ts +0 -2
  76. package/dist/admin/forms/Description.d.ts.map +1 -1
  77. package/dist/admin/forms/Description.js.map +1 -1
  78. package/dist/admin/forms/Diff.d.ts +0 -2
  79. package/dist/admin/forms/Diff.d.ts.map +1 -1
  80. package/dist/admin/forms/Diff.js.map +1 -1
  81. package/dist/admin/forms/Error.d.ts +0 -2
  82. package/dist/admin/forms/Error.d.ts.map +1 -1
  83. package/dist/admin/forms/Error.js.map +1 -1
  84. package/dist/admin/forms/Field.d.ts +4 -2
  85. package/dist/admin/forms/Field.d.ts.map +1 -1
  86. package/dist/admin/forms/Field.js.map +1 -1
  87. package/dist/admin/forms/Form.d.ts +2 -0
  88. package/dist/admin/forms/Form.d.ts.map +1 -1
  89. package/dist/admin/forms/Form.js.map +1 -1
  90. package/dist/admin/forms/Label.d.ts +2 -2
  91. package/dist/admin/forms/Label.d.ts.map +1 -1
  92. package/dist/admin/forms/Label.js.map +1 -1
  93. package/dist/admin/functions/index.d.ts +15 -11
  94. package/dist/admin/functions/index.d.ts.map +1 -1
  95. package/dist/admin/functions/index.js.map +1 -1
  96. package/dist/admin/getRequestLocale.d.ts +6 -0
  97. package/dist/admin/getRequestLocale.d.ts.map +1 -0
  98. package/dist/admin/getRequestLocale.js +38 -0
  99. package/dist/admin/getRequestLocale.js.map +1 -0
  100. package/dist/admin/initAdminContext.d.ts +39 -0
  101. package/dist/admin/initAdminContext.d.ts.map +1 -0
  102. package/dist/admin/initAdminContext.js +154 -0
  103. package/dist/admin/initAdminContext.js.map +1 -0
  104. package/dist/admin/types.d.ts +32 -32
  105. package/dist/admin/types.d.ts.map +1 -1
  106. package/dist/admin/types.js.map +1 -1
  107. package/dist/admin/views/dashboard.d.ts +2 -2
  108. package/dist/admin/views/dashboard.d.ts.map +1 -1
  109. package/dist/admin/views/dashboard.js.map +1 -1
  110. package/dist/admin/views/index.d.ts +2 -2
  111. package/dist/admin/views/index.d.ts.map +1 -1
  112. package/dist/admin/views/index.js.map +1 -1
  113. package/dist/admin/views/list.d.ts +9 -0
  114. package/dist/admin/views/list.d.ts.map +1 -1
  115. package/dist/admin/views/list.js.map +1 -1
  116. package/dist/auth/applyUserReadAccess.d.ts +13 -0
  117. package/dist/auth/applyUserReadAccess.d.ts.map +1 -0
  118. package/dist/auth/applyUserReadAccess.js +41 -0
  119. package/dist/auth/applyUserReadAccess.js.map +1 -0
  120. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts +4 -0
  121. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.d.ts.map +1 -0
  122. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js +20 -0
  123. package/dist/auth/baseFields/apiKey/canCreateOrUpdateAPIKey.js.map +1 -0
  124. package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts +4 -0
  125. package/dist/auth/baseFields/apiKey/encryptAPIKey.d.ts.map +1 -0
  126. package/dist/auth/baseFields/apiKey/encryptAPIKey.js +11 -0
  127. package/dist/auth/baseFields/apiKey/encryptAPIKey.js.map +1 -0
  128. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts +3 -0
  129. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.d.ts.map +1 -0
  130. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js +5 -0
  131. package/dist/auth/baseFields/apiKey/getAPIKeyLast4.js.map +1 -0
  132. package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts +5 -0
  133. package/dist/auth/baseFields/apiKey/omitAPIKey.d.ts.map +1 -0
  134. package/dist/auth/baseFields/apiKey/omitAPIKey.js +11 -0
  135. package/dist/auth/baseFields/apiKey/omitAPIKey.js.map +1 -0
  136. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts +4 -0
  137. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.d.ts.map +1 -0
  138. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js +5 -0
  139. package/dist/auth/baseFields/apiKey/omitAPIKeyIndex.js.map +1 -0
  140. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts +4 -0
  141. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.d.ts.map +1 -0
  142. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js +5 -0
  143. package/dist/auth/baseFields/apiKey/omitEncryptedAPIKey.js.map +1 -0
  144. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts +4 -0
  145. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.d.ts.map +1 -0
  146. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js +12 -0
  147. package/dist/auth/baseFields/apiKey/setAPIKeyIndex.js.map +1 -0
  148. package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts +4 -0
  149. package/dist/auth/baseFields/apiKey/setKeyLast4.d.ts.map +1 -0
  150. package/dist/auth/baseFields/apiKey/setKeyLast4.js +12 -0
  151. package/dist/auth/baseFields/apiKey/setKeyLast4.js.map +1 -0
  152. package/dist/auth/baseFields/apiKey.d.ts +6 -6
  153. package/dist/auth/baseFields/apiKey.d.ts.map +1 -1
  154. package/dist/auth/baseFields/apiKey.js +88 -57
  155. package/dist/auth/baseFields/apiKey.js.map +1 -1
  156. package/dist/auth/baseFields/auth.d.ts +1 -0
  157. package/dist/auth/baseFields/auth.d.ts.map +1 -1
  158. package/dist/auth/baseFields/auth.js +9 -0
  159. package/dist/auth/baseFields/auth.js.map +1 -1
  160. package/dist/auth/crypto.d.ts +73 -2
  161. package/dist/auth/crypto.d.ts.map +1 -1
  162. package/dist/auth/crypto.js +90 -13
  163. package/dist/auth/crypto.js.map +1 -1
  164. package/dist/auth/defaultUnlockAccess.d.ts +3 -0
  165. package/dist/auth/defaultUnlockAccess.d.ts.map +1 -0
  166. package/dist/auth/defaultUnlockAccess.js +8 -0
  167. package/dist/auth/defaultUnlockAccess.js.map +1 -0
  168. package/dist/auth/endpoints/index.d.ts +1 -0
  169. package/dist/auth/endpoints/index.d.ts.map +1 -1
  170. package/dist/auth/endpoints/index.js +8 -0
  171. package/dist/auth/endpoints/index.js.map +1 -1
  172. package/dist/auth/endpoints/login.d.ts.map +1 -1
  173. package/dist/auth/endpoints/login.js +2 -11
  174. package/dist/auth/endpoints/login.js.map +1 -1
  175. package/dist/auth/endpoints/refresh.d.ts.map +1 -1
  176. package/dist/auth/endpoints/refresh.js +4 -6
  177. package/dist/auth/endpoints/refresh.js.map +1 -1
  178. package/dist/auth/endpoints/revealAPIKey.d.ts +7 -0
  179. package/dist/auth/endpoints/revealAPIKey.d.ts.map +1 -0
  180. package/dist/auth/endpoints/revealAPIKey.js +122 -0
  181. package/dist/auth/endpoints/revealAPIKey.js.map +1 -0
  182. package/dist/auth/executeAccess.d.ts +2 -1
  183. package/dist/auth/executeAccess.d.ts.map +1 -1
  184. package/dist/auth/executeAccess.js +2 -1
  185. package/dist/auth/executeAccess.js.map +1 -1
  186. package/dist/auth/getAccessResults.js +1 -0
  187. package/dist/auth/getAccessResults.js.map +1 -1
  188. package/dist/auth/getAuthFields.d.ts +1 -1
  189. package/dist/auth/getAuthFields.d.ts.map +1 -1
  190. package/dist/auth/getAuthFields.js +7 -4
  191. package/dist/auth/getAuthFields.js.map +1 -1
  192. package/dist/auth/getFieldsToSign.d.ts.map +1 -1
  193. package/dist/auth/getFieldsToSign.js +20 -10
  194. package/dist/auth/getFieldsToSign.js.map +1 -1
  195. package/dist/auth/getLoginOptions.js.map +1 -1
  196. package/dist/auth/jwt.d.ts.map +1 -1
  197. package/dist/auth/jwt.js +2 -0
  198. package/dist/auth/jwt.js.map +1 -1
  199. package/dist/auth/jwtAuth.d.ts +9 -0
  200. package/dist/auth/jwtAuth.d.ts.map +1 -0
  201. package/dist/auth/jwtAuth.js +8 -0
  202. package/dist/auth/jwtAuth.js.map +1 -0
  203. package/dist/auth/loginWithCookie.d.ts +33 -0
  204. package/dist/auth/loginWithCookie.d.ts.map +1 -0
  205. package/dist/auth/loginWithCookie.js +34 -0
  206. package/dist/auth/loginWithCookie.js.map +1 -0
  207. package/dist/auth/operations/access.d.ts.map +1 -1
  208. package/dist/auth/operations/access.js +3 -9
  209. package/dist/auth/operations/access.js.map +1 -1
  210. package/dist/auth/operations/auth.d.ts.map +1 -1
  211. package/dist/auth/operations/auth.js +16 -21
  212. package/dist/auth/operations/auth.js.map +1 -1
  213. package/dist/auth/operations/forgotPassword.d.ts.map +1 -1
  214. package/dist/auth/operations/forgotPassword.js +97 -14
  215. package/dist/auth/operations/forgotPassword.js.map +1 -1
  216. package/dist/auth/operations/local/auth.js +7 -4
  217. package/dist/auth/operations/local/auth.js.map +1 -1
  218. package/dist/auth/operations/local/forgotPassword.d.ts +2 -2
  219. package/dist/auth/operations/local/forgotPassword.d.ts.map +1 -1
  220. package/dist/auth/operations/local/forgotPassword.js +6 -3
  221. package/dist/auth/operations/local/forgotPassword.js.map +1 -1
  222. package/dist/auth/operations/local/login.d.ts +2 -2
  223. package/dist/auth/operations/local/login.d.ts.map +1 -1
  224. package/dist/auth/operations/local/login.js +6 -3
  225. package/dist/auth/operations/local/login.js.map +1 -1
  226. package/dist/auth/operations/local/resetPassword.js +5 -2
  227. package/dist/auth/operations/local/resetPassword.js.map +1 -1
  228. package/dist/auth/operations/local/unlock.d.ts +2 -2
  229. package/dist/auth/operations/local/unlock.d.ts.map +1 -1
  230. package/dist/auth/operations/local/unlock.js +6 -3
  231. package/dist/auth/operations/local/unlock.js.map +1 -1
  232. package/dist/auth/operations/local/verifyEmail.js +5 -2
  233. package/dist/auth/operations/local/verifyEmail.js.map +1 -1
  234. package/dist/auth/operations/login.d.ts.map +1 -1
  235. package/dist/auth/operations/login.js +48 -26
  236. package/dist/auth/operations/login.js.map +1 -1
  237. package/dist/auth/operations/me.d.ts +0 -7
  238. package/dist/auth/operations/me.d.ts.map +1 -1
  239. package/dist/auth/operations/me.js +0 -6
  240. package/dist/auth/operations/me.js.map +1 -1
  241. package/dist/auth/operations/refresh.d.ts +0 -7
  242. package/dist/auth/operations/refresh.d.ts.map +1 -1
  243. package/dist/auth/operations/refresh.js +32 -15
  244. package/dist/auth/operations/refresh.js.map +1 -1
  245. package/dist/auth/operations/registerFirstUser.d.ts.map +1 -1
  246. package/dist/auth/operations/registerFirstUser.js +4 -4
  247. package/dist/auth/operations/registerFirstUser.js.map +1 -1
  248. package/dist/auth/operations/resetPassword.d.ts.map +1 -1
  249. package/dist/auth/operations/resetPassword.js +31 -22
  250. package/dist/auth/operations/resetPassword.js.map +1 -1
  251. package/dist/auth/operations/unlock.d.ts.map +1 -1
  252. package/dist/auth/operations/unlock.js +1 -0
  253. package/dist/auth/operations/unlock.js.map +1 -1
  254. package/dist/auth/rotateSecret.d.ts +51 -0
  255. package/dist/auth/rotateSecret.d.ts.map +1 -0
  256. package/dist/auth/rotateSecret.js +131 -0
  257. package/dist/auth/rotateSecret.js.map +1 -0
  258. package/dist/auth/serverFunctions/cookies.d.ts +47 -0
  259. package/dist/auth/serverFunctions/cookies.d.ts.map +1 -0
  260. package/dist/auth/serverFunctions/cookies.js +52 -0
  261. package/dist/auth/serverFunctions/cookies.js.map +1 -0
  262. package/dist/auth/serverFunctions/login.d.ts +29 -0
  263. package/dist/auth/serverFunctions/login.d.ts.map +1 -0
  264. package/dist/auth/serverFunctions/login.js +65 -0
  265. package/dist/auth/serverFunctions/login.js.map +1 -0
  266. package/dist/auth/serverFunctions/logout.d.ts +17 -0
  267. package/dist/auth/serverFunctions/logout.d.ts.map +1 -0
  268. package/dist/auth/serverFunctions/logout.js +59 -0
  269. package/dist/auth/serverFunctions/logout.js.map +1 -0
  270. package/dist/auth/serverFunctions/refresh.d.ts +17 -0
  271. package/dist/auth/serverFunctions/refresh.d.ts.map +1 -0
  272. package/dist/auth/serverFunctions/refresh.js +62 -0
  273. package/dist/auth/serverFunctions/refresh.js.map +1 -0
  274. package/dist/auth/strategies/apiKey.d.ts.map +1 -1
  275. package/dist/auth/strategies/apiKey.js +42 -4
  276. package/dist/auth/strategies/apiKey.js.map +1 -1
  277. package/dist/auth/strategies/jwt.d.ts.map +1 -1
  278. package/dist/auth/strategies/jwt.js +83 -11
  279. package/dist/auth/strategies/jwt.js.map +1 -1
  280. package/dist/auth/strategies/local/authenticate.d.ts +5 -1
  281. package/dist/auth/strategies/local/authenticate.d.ts.map +1 -1
  282. package/dist/auth/strategies/local/authenticate.js +8 -3
  283. package/dist/auth/strategies/local/authenticate.js.map +1 -1
  284. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts +9 -1
  285. package/dist/auth/strategies/local/generatePasswordSaltHash.d.ts.map +1 -1
  286. package/dist/auth/strategies/local/generatePasswordSaltHash.js +61 -34
  287. package/dist/auth/strategies/local/generatePasswordSaltHash.js.map +1 -1
  288. package/dist/auth/strategies/local/register.d.ts.map +1 -1
  289. package/dist/auth/strategies/local/register.js +1 -0
  290. package/dist/auth/strategies/local/register.js.map +1 -1
  291. package/dist/auth/types.d.ts +36 -20
  292. package/dist/auth/types.d.ts.map +1 -1
  293. package/dist/auth/types.js.map +1 -1
  294. package/dist/auth/withBaseAccess.d.ts +22 -0
  295. package/dist/auth/withBaseAccess.d.ts.map +1 -0
  296. package/dist/auth/withBaseAccess.js +61 -0
  297. package/dist/auth/withBaseAccess.js.map +1 -0
  298. package/dist/{bin → cli/commands/build}/build.d.ts +8 -13
  299. package/dist/cli/commands/build/build.d.ts.map +1 -0
  300. package/dist/{bin → cli/commands/build}/build.js +26 -27
  301. package/dist/cli/commands/build/build.js.map +1 -0
  302. package/dist/cli/commands/build/index.d.ts +2 -0
  303. package/dist/cli/commands/build/index.d.ts.map +1 -0
  304. package/dist/cli/commands/build/index.js +26 -0
  305. package/dist/cli/commands/build/index.js.map +1 -0
  306. package/dist/cli/commands/collections/countDocuments.d.ts +2 -0
  307. package/dist/cli/commands/collections/countDocuments.d.ts.map +1 -0
  308. package/dist/cli/commands/collections/countDocuments.js +37 -0
  309. package/dist/cli/commands/collections/countDocuments.js.map +1 -0
  310. package/dist/cli/commands/collections/countVersions.d.ts +2 -0
  311. package/dist/cli/commands/collections/countVersions.d.ts.map +1 -0
  312. package/dist/cli/commands/collections/countVersions.js +36 -0
  313. package/dist/cli/commands/collections/countVersions.js.map +1 -0
  314. package/dist/cli/commands/collections/createDocuments.d.ts +2 -0
  315. package/dist/cli/commands/collections/createDocuments.d.ts.map +1 -0
  316. package/dist/cli/commands/collections/createDocuments.js +132 -0
  317. package/dist/cli/commands/collections/createDocuments.js.map +1 -0
  318. package/dist/cli/commands/collections/deleteDocuments.d.ts +2 -0
  319. package/dist/cli/commands/collections/deleteDocuments.d.ts.map +1 -0
  320. package/dist/cli/commands/collections/deleteDocuments.js +64 -0
  321. package/dist/cli/commands/collections/deleteDocuments.js.map +1 -0
  322. package/dist/cli/commands/collections/duplicateDocument.d.ts +2 -0
  323. package/dist/cli/commands/collections/duplicateDocument.d.ts.map +1 -0
  324. package/dist/cli/commands/collections/duplicateDocument.js +109 -0
  325. package/dist/cli/commands/collections/duplicateDocument.js.map +1 -0
  326. package/dist/cli/commands/collections/findDistinct.d.ts +2 -0
  327. package/dist/cli/commands/collections/findDistinct.d.ts.map +1 -0
  328. package/dist/cli/commands/collections/findDistinct.js +52 -0
  329. package/dist/cli/commands/collections/findDistinct.js.map +1 -0
  330. package/dist/cli/commands/collections/findDocuments.d.ts +2 -0
  331. package/dist/cli/commands/collections/findDocuments.d.ts.map +1 -0
  332. package/dist/cli/commands/collections/findDocuments.js +79 -0
  333. package/dist/cli/commands/collections/findDocuments.js.map +1 -0
  334. package/dist/cli/commands/collections/findVersionByID.d.ts +2 -0
  335. package/dist/cli/commands/collections/findVersionByID.d.ts.map +1 -0
  336. package/dist/cli/commands/collections/findVersionByID.js +48 -0
  337. package/dist/cli/commands/collections/findVersionByID.js.map +1 -0
  338. package/dist/cli/commands/collections/findVersions.d.ts +2 -0
  339. package/dist/cli/commands/collections/findVersions.d.ts.map +1 -0
  340. package/dist/cli/commands/collections/findVersions.js +57 -0
  341. package/dist/cli/commands/collections/findVersions.js.map +1 -0
  342. package/dist/cli/commands/collections/getCollectionSchema.d.ts +2 -0
  343. package/dist/cli/commands/collections/getCollectionSchema.d.ts.map +1 -0
  344. package/dist/cli/commands/collections/getCollectionSchema.js +61 -0
  345. package/dist/cli/commands/collections/getCollectionSchema.js.map +1 -0
  346. package/dist/cli/commands/collections/restoreVersion.d.ts +2 -0
  347. package/dist/cli/commands/collections/restoreVersion.d.ts.map +1 -0
  348. package/dist/cli/commands/collections/restoreVersion.js +47 -0
  349. package/dist/cli/commands/collections/restoreVersion.js.map +1 -0
  350. package/dist/cli/commands/collections/updateDocument.d.ts +2 -0
  351. package/dist/cli/commands/collections/updateDocument.d.ts.map +1 -0
  352. package/dist/cli/commands/collections/updateDocument.js +192 -0
  353. package/dist/cli/commands/collections/updateDocument.js.map +1 -0
  354. package/dist/cli/commands/data/input.d.ts +28 -0
  355. package/dist/cli/commands/data/input.d.ts.map +1 -0
  356. package/dist/cli/commands/data/input.js +76 -0
  357. package/dist/cli/commands/data/input.js.map +1 -0
  358. package/dist/cli/commands/data/utilities.d.ts +65 -0
  359. package/dist/cli/commands/data/utilities.d.ts.map +1 -0
  360. package/dist/cli/commands/data/utilities.js +67 -0
  361. package/dist/cli/commands/data/utilities.js.map +1 -0
  362. package/dist/cli/commands/generateDBSchema.d.ts +2 -0
  363. package/dist/cli/commands/generateDBSchema.d.ts.map +1 -0
  364. package/dist/cli/commands/generateDBSchema.js +29 -0
  365. package/dist/cli/commands/generateDBSchema.js.map +1 -0
  366. package/dist/cli/commands/generateImportMap/frameworkConventions.d.ts.map +1 -0
  367. package/dist/cli/commands/generateImportMap/frameworkConventions.js.map +1 -0
  368. package/dist/{bin/generateImportMap/index.d.ts → cli/commands/generateImportMap/generateImportMap.d.ts} +8 -4
  369. package/dist/cli/commands/generateImportMap/generateImportMap.d.ts.map +1 -0
  370. package/dist/{bin/generateImportMap/index.js → cli/commands/generateImportMap/generateImportMap.js} +9 -4
  371. package/dist/cli/commands/generateImportMap/generateImportMap.js.map +1 -0
  372. package/dist/cli/commands/generateImportMap/index.d.ts +2 -0
  373. package/dist/cli/commands/generateImportMap/index.d.ts.map +1 -0
  374. package/dist/cli/commands/generateImportMap/index.js +18 -0
  375. package/dist/cli/commands/generateImportMap/index.js.map +1 -0
  376. package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.d.ts +3 -3
  377. package/dist/cli/commands/generateImportMap/iterateCollections.d.ts.map +1 -0
  378. package/dist/cli/commands/generateImportMap/iterateCollections.js.map +1 -0
  379. package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.d.ts +2 -2
  380. package/dist/cli/commands/generateImportMap/iterateConfig.d.ts.map +1 -0
  381. package/dist/{bin → cli/commands}/generateImportMap/iterateConfig.js +1 -1
  382. package/dist/cli/commands/generateImportMap/iterateConfig.js.map +1 -0
  383. package/dist/{bin → cli/commands}/generateImportMap/iterateFields.d.ts +3 -3
  384. package/dist/cli/commands/generateImportMap/iterateFields.d.ts.map +1 -0
  385. package/dist/cli/commands/generateImportMap/iterateFields.js.map +1 -0
  386. package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.d.ts +3 -3
  387. package/dist/cli/commands/generateImportMap/iterateGlobals.d.ts.map +1 -0
  388. package/dist/cli/commands/generateImportMap/iterateGlobals.js.map +1 -0
  389. package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts +2 -2
  390. package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +1 -0
  391. package/dist/cli/commands/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +1 -0
  392. package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.d.ts +2 -2
  393. package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.d.ts.map +1 -0
  394. package/dist/cli/commands/generateImportMap/utilities/getFromImportMap.js.map +1 -0
  395. package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +1 -0
  396. package/dist/cli/commands/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +1 -0
  397. package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.d.ts +1 -1
  398. package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.d.ts.map +1 -0
  399. package/dist/cli/commands/generateImportMap/utilities/parsePayloadComponent.js.map +1 -0
  400. package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +1 -0
  401. package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.js +1 -1
  402. package/dist/cli/commands/generateImportMap/utilities/resolveImportMapFilePath.js.map +1 -0
  403. package/dist/cli/commands/generateTypes.d.ts +12 -0
  404. package/dist/cli/commands/generateTypes.d.ts.map +1 -0
  405. package/dist/{bin → cli/commands}/generateTypes.js +33 -7
  406. package/dist/cli/commands/generateTypes.js.map +1 -0
  407. package/dist/cli/commands/getConfigInfo.d.ts +2 -0
  408. package/dist/cli/commands/getConfigInfo.d.ts.map +1 -0
  409. package/dist/cli/commands/getConfigInfo.js +23 -0
  410. package/dist/cli/commands/getConfigInfo.js.map +1 -0
  411. package/dist/cli/commands/globals/countGlobalVersions.d.ts +2 -0
  412. package/dist/cli/commands/globals/countGlobalVersions.d.ts.map +1 -0
  413. package/dist/cli/commands/globals/countGlobalVersions.js +36 -0
  414. package/dist/cli/commands/globals/countGlobalVersions.js.map +1 -0
  415. package/dist/cli/commands/globals/findGlobal.d.ts +2 -0
  416. package/dist/cli/commands/globals/findGlobal.d.ts.map +1 -0
  417. package/dist/cli/commands/globals/findGlobal.js +42 -0
  418. package/dist/cli/commands/globals/findGlobal.js.map +1 -0
  419. package/dist/cli/commands/globals/findGlobalVersionByID.d.ts +2 -0
  420. package/dist/cli/commands/globals/findGlobalVersionByID.d.ts.map +1 -0
  421. package/dist/cli/commands/globals/findGlobalVersionByID.js +46 -0
  422. package/dist/cli/commands/globals/findGlobalVersionByID.js.map +1 -0
  423. package/dist/cli/commands/globals/findGlobalVersions.d.ts +2 -0
  424. package/dist/cli/commands/globals/findGlobalVersions.d.ts.map +1 -0
  425. package/dist/cli/commands/globals/findGlobalVersions.js +55 -0
  426. package/dist/cli/commands/globals/findGlobalVersions.js.map +1 -0
  427. package/dist/cli/commands/globals/getGlobalSchema.d.ts +2 -0
  428. package/dist/cli/commands/globals/getGlobalSchema.d.ts.map +1 -0
  429. package/dist/cli/commands/globals/getGlobalSchema.js +46 -0
  430. package/dist/cli/commands/globals/getGlobalSchema.js.map +1 -0
  431. package/dist/cli/commands/globals/restoreGlobalVersion.d.ts +2 -0
  432. package/dist/cli/commands/globals/restoreGlobalVersion.d.ts.map +1 -0
  433. package/dist/cli/commands/globals/restoreGlobalVersion.js +46 -0
  434. package/dist/cli/commands/globals/restoreGlobalVersion.js.map +1 -0
  435. package/dist/cli/commands/globals/updateGlobal.d.ts +2 -0
  436. package/dist/cli/commands/globals/updateGlobal.d.ts.map +1 -0
  437. package/dist/cli/commands/globals/updateGlobal.js +95 -0
  438. package/dist/cli/commands/globals/updateGlobal.js.map +1 -0
  439. package/dist/cli/commands/help.d.ts +2 -0
  440. package/dist/cli/commands/help.d.ts.map +1 -0
  441. package/dist/cli/commands/help.js +42 -0
  442. package/dist/cli/commands/help.js.map +1 -0
  443. package/dist/cli/commands/info.d.ts +2 -0
  444. package/dist/cli/commands/info.d.ts.map +1 -0
  445. package/dist/cli/commands/info.js +78 -0
  446. package/dist/cli/commands/info.js.map +1 -0
  447. package/dist/cli/commands/jobs/handleSchedules.d.ts +2 -0
  448. package/dist/cli/commands/jobs/handleSchedules.d.ts.map +1 -0
  449. package/dist/cli/commands/jobs/handleSchedules.js +17 -0
  450. package/dist/cli/commands/jobs/handleSchedules.js.map +1 -0
  451. package/dist/cli/commands/jobs/run.d.ts +2 -0
  452. package/dist/cli/commands/jobs/run.d.ts.map +1 -0
  453. package/dist/cli/commands/jobs/run.js +30 -0
  454. package/dist/cli/commands/jobs/run.js.map +1 -0
  455. package/dist/cli/commands/migrate/create.d.ts +2 -0
  456. package/dist/cli/commands/migrate/create.d.ts.map +1 -0
  457. package/dist/cli/commands/migrate/create.js +44 -0
  458. package/dist/cli/commands/migrate/create.js.map +1 -0
  459. package/dist/cli/commands/migrate/down.d.ts +2 -0
  460. package/dist/cli/commands/migrate/down.d.ts.map +1 -0
  461. package/dist/cli/commands/migrate/down.js +22 -0
  462. package/dist/cli/commands/migrate/down.js.map +1 -0
  463. package/dist/cli/commands/migrate/fresh.d.ts +2 -0
  464. package/dist/cli/commands/migrate/fresh.d.ts.map +1 -0
  465. package/dist/cli/commands/migrate/fresh.js +28 -0
  466. package/dist/cli/commands/migrate/fresh.js.map +1 -0
  467. package/dist/cli/commands/migrate/initialize.d.ts +11 -0
  468. package/dist/cli/commands/migrate/initialize.d.ts.map +1 -0
  469. package/dist/cli/commands/migrate/initialize.js +17 -0
  470. package/dist/cli/commands/migrate/initialize.js.map +1 -0
  471. package/dist/cli/commands/migrate/refresh.d.ts +2 -0
  472. package/dist/cli/commands/migrate/refresh.d.ts.map +1 -0
  473. package/dist/cli/commands/migrate/refresh.js +22 -0
  474. package/dist/cli/commands/migrate/refresh.js.map +1 -0
  475. package/dist/cli/commands/migrate/reset.d.ts +2 -0
  476. package/dist/cli/commands/migrate/reset.d.ts.map +1 -0
  477. package/dist/cli/commands/migrate/reset.js +22 -0
  478. package/dist/cli/commands/migrate/reset.js.map +1 -0
  479. package/dist/cli/commands/migrate/run.d.ts +2 -0
  480. package/dist/cli/commands/migrate/run.d.ts.map +1 -0
  481. package/dist/cli/commands/migrate/run.js +28 -0
  482. package/dist/cli/commands/migrate/run.js.map +1 -0
  483. package/dist/cli/commands/migrate/status.d.ts +2 -0
  484. package/dist/cli/commands/migrate/status.d.ts.map +1 -0
  485. package/dist/cli/commands/migrate/status.js +22 -0
  486. package/dist/cli/commands/migrate/status.js.map +1 -0
  487. package/dist/cli/commands/run.d.ts +2 -0
  488. package/dist/cli/commands/run.d.ts.map +1 -0
  489. package/dist/cli/commands/run.js +45 -0
  490. package/dist/cli/commands/run.js.map +1 -0
  491. package/dist/cli/defineCLICommand.d.ts +32 -0
  492. package/dist/cli/defineCLICommand.d.ts.map +1 -0
  493. package/dist/cli/defineCLICommand.js +26 -0
  494. package/dist/cli/defineCLICommand.js.map +1 -0
  495. package/dist/cli/index.d.ts +7 -0
  496. package/dist/cli/index.d.ts.map +1 -0
  497. package/dist/cli/index.js +95 -0
  498. package/dist/cli/index.js.map +1 -0
  499. package/dist/cli/program/createHelp.d.ts +8 -0
  500. package/dist/cli/program/createHelp.d.ts.map +1 -0
  501. package/dist/cli/program/createHelp.js +26 -0
  502. package/dist/cli/program/createHelp.js.map +1 -0
  503. package/dist/cli/program/loadCommands.d.ts +12 -0
  504. package/dist/cli/program/loadCommands.d.ts.map +1 -0
  505. package/dist/cli/program/loadCommands.js +62 -0
  506. package/dist/cli/program/loadCommands.js.map +1 -0
  507. package/dist/cli/program/normalizeHelpArguments.d.ts +12 -0
  508. package/dist/cli/program/normalizeHelpArguments.d.ts.map +1 -0
  509. package/dist/cli/program/normalizeHelpArguments.js +34 -0
  510. package/dist/cli/program/normalizeHelpArguments.js.map +1 -0
  511. package/dist/cli/program/registerCommand.d.ts +10 -0
  512. package/dist/cli/program/registerCommand.d.ts.map +1 -0
  513. package/dist/cli/program/registerCommand.js +185 -0
  514. package/dist/cli/program/registerCommand.js.map +1 -0
  515. package/dist/cli/runtime/createRuntime.d.ts +9 -0
  516. package/dist/cli/runtime/createRuntime.d.ts.map +1 -0
  517. package/dist/cli/runtime/createRuntime.js +81 -0
  518. package/dist/cli/runtime/createRuntime.js.map +1 -0
  519. package/dist/cli/runtime/getCommandInput.d.ts +17 -0
  520. package/dist/cli/runtime/getCommandInput.d.ts.map +1 -0
  521. package/dist/cli/runtime/getCommandInput.js +86 -0
  522. package/dist/cli/runtime/getCommandInput.js.map +1 -0
  523. package/dist/cli/runtime/invokeCommand.d.ts +23 -0
  524. package/dist/cli/runtime/invokeCommand.d.ts.map +1 -0
  525. package/dist/cli/runtime/invokeCommand.js +107 -0
  526. package/dist/cli/runtime/invokeCommand.js.map +1 -0
  527. package/dist/cli/runtime/loadEnv.d.ts.map +1 -0
  528. package/dist/{bin → cli/runtime}/loadEnv.js +1 -1
  529. package/dist/cli/runtime/loadEnv.js.map +1 -0
  530. package/dist/cli/runtime/output.d.ts +50 -0
  531. package/dist/cli/runtime/output.d.ts.map +1 -0
  532. package/dist/cli/runtime/output.js +125 -0
  533. package/dist/cli/runtime/output.js.map +1 -0
  534. package/dist/cli/runtime/redirectOutputToStderr.d.ts +8 -0
  535. package/dist/cli/runtime/redirectOutputToStderr.d.ts.map +1 -0
  536. package/dist/cli/runtime/redirectOutputToStderr.js +31 -0
  537. package/dist/cli/runtime/redirectOutputToStderr.js.map +1 -0
  538. package/dist/collections/config/client.d.ts +6 -6
  539. package/dist/collections/config/client.d.ts.map +1 -1
  540. package/dist/collections/config/client.js +12 -11
  541. package/dist/collections/config/client.js.map +1 -1
  542. package/dist/collections/config/defaults.d.ts +6 -4
  543. package/dist/collections/config/defaults.d.ts.map +1 -1
  544. package/dist/collections/config/defaults.js +49 -33
  545. package/dist/collections/config/defaults.js.map +1 -1
  546. package/dist/collections/config/sanitize.d.ts +4 -8
  547. package/dist/collections/config/sanitize.d.ts.map +1 -1
  548. package/dist/collections/config/sanitize.js +100 -28
  549. package/dist/collections/config/sanitize.js.map +1 -1
  550. package/dist/collections/config/types.d.ts +76 -51
  551. package/dist/collections/config/types.d.ts.map +1 -1
  552. package/dist/collections/config/types.js.map +1 -1
  553. package/dist/collections/config/useAsThumbnail.d.ts +6 -0
  554. package/dist/collections/config/useAsThumbnail.d.ts.map +1 -0
  555. package/dist/collections/config/useAsThumbnail.js +21 -0
  556. package/dist/collections/config/useAsThumbnail.js.map +1 -0
  557. package/dist/collections/endpoints/index.d.ts +1 -0
  558. package/dist/collections/endpoints/index.d.ts.map +1 -1
  559. package/dist/collections/endpoints/index.js +6 -5
  560. package/dist/collections/endpoints/index.js.map +1 -1
  561. package/dist/collections/operations/count.d.ts.map +1 -1
  562. package/dist/collections/operations/count.js +65 -70
  563. package/dist/collections/operations/count.js.map +1 -1
  564. package/dist/collections/operations/countVersions.d.ts.map +1 -1
  565. package/dist/collections/operations/countVersions.js +61 -66
  566. package/dist/collections/operations/countVersions.js.map +1 -1
  567. package/dist/collections/operations/create.d.ts.map +1 -1
  568. package/dist/collections/operations/create.js +144 -13
  569. package/dist/collections/operations/create.js.map +1 -1
  570. package/dist/collections/operations/delete.d.ts.map +1 -1
  571. package/dist/collections/operations/delete.js +215 -129
  572. package/dist/collections/operations/delete.js.map +1 -1
  573. package/dist/collections/operations/deleteByID.d.ts.map +1 -1
  574. package/dist/collections/operations/deleteByID.js +14 -13
  575. package/dist/collections/operations/deleteByID.js.map +1 -1
  576. package/dist/collections/operations/docAccess.d.ts.map +1 -1
  577. package/dist/collections/operations/docAccess.js +19 -25
  578. package/dist/collections/operations/docAccess.js.map +1 -1
  579. package/dist/collections/operations/find.d.ts.map +1 -1
  580. package/dist/collections/operations/find.js +248 -246
  581. package/dist/collections/operations/find.js.map +1 -1
  582. package/dist/collections/operations/findByID.d.ts.map +1 -1
  583. package/dist/collections/operations/findByID.js +258 -215
  584. package/dist/collections/operations/findByID.js.map +1 -1
  585. package/dist/collections/operations/findDistinct.d.ts.map +1 -1
  586. package/dist/collections/operations/findDistinct.js +235 -154
  587. package/dist/collections/operations/findDistinct.js.map +1 -1
  588. package/dist/collections/operations/findVersionByID.d.ts.map +1 -1
  589. package/dist/collections/operations/findVersionByID.js +145 -128
  590. package/dist/collections/operations/findVersionByID.js.map +1 -1
  591. package/dist/collections/operations/findVersions.d.ts.map +1 -1
  592. package/dist/collections/operations/findVersions.js +152 -149
  593. package/dist/collections/operations/findVersions.js.map +1 -1
  594. package/dist/collections/operations/inputSchemas.d.ts +877 -0
  595. package/dist/collections/operations/inputSchemas.d.ts.map +1 -0
  596. package/dist/collections/operations/inputSchemas.js +217 -0
  597. package/dist/collections/operations/inputSchemas.js.map +1 -0
  598. package/dist/collections/operations/local/count.d.ts +2 -7
  599. package/dist/collections/operations/local/count.d.ts.map +1 -1
  600. package/dist/collections/operations/local/count.js +6 -3
  601. package/dist/collections/operations/local/count.js.map +1 -1
  602. package/dist/collections/operations/local/countVersions.d.ts +2 -7
  603. package/dist/collections/operations/local/countVersions.d.ts.map +1 -1
  604. package/dist/collections/operations/local/countVersions.js +6 -3
  605. package/dist/collections/operations/local/countVersions.js.map +1 -1
  606. package/dist/collections/operations/local/create.d.ts +2 -7
  607. package/dist/collections/operations/local/create.d.ts.map +1 -1
  608. package/dist/collections/operations/local/create.js +6 -3
  609. package/dist/collections/operations/local/create.js.map +1 -1
  610. package/dist/collections/operations/local/delete.d.ts +2 -7
  611. package/dist/collections/operations/local/delete.d.ts.map +1 -1
  612. package/dist/collections/operations/local/delete.js +6 -3
  613. package/dist/collections/operations/local/delete.js.map +1 -1
  614. package/dist/collections/operations/local/duplicate.d.ts +2 -7
  615. package/dist/collections/operations/local/duplicate.d.ts.map +1 -1
  616. package/dist/collections/operations/local/duplicate.js +6 -3
  617. package/dist/collections/operations/local/duplicate.js.map +1 -1
  618. package/dist/collections/operations/local/find.d.ts +2 -7
  619. package/dist/collections/operations/local/find.d.ts.map +1 -1
  620. package/dist/collections/operations/local/find.js +6 -3
  621. package/dist/collections/operations/local/find.js.map +1 -1
  622. package/dist/collections/operations/local/findByID.d.ts +2 -7
  623. package/dist/collections/operations/local/findByID.d.ts.map +1 -1
  624. package/dist/collections/operations/local/findByID.js +6 -3
  625. package/dist/collections/operations/local/findByID.js.map +1 -1
  626. package/dist/collections/operations/local/findDistinct.d.ts +2 -7
  627. package/dist/collections/operations/local/findDistinct.d.ts.map +1 -1
  628. package/dist/collections/operations/local/findDistinct.js +6 -3
  629. package/dist/collections/operations/local/findDistinct.js.map +1 -1
  630. package/dist/collections/operations/local/findVersionByID.d.ts +2 -7
  631. package/dist/collections/operations/local/findVersionByID.d.ts.map +1 -1
  632. package/dist/collections/operations/local/findVersionByID.js +6 -3
  633. package/dist/collections/operations/local/findVersionByID.js.map +1 -1
  634. package/dist/collections/operations/local/findVersions.d.ts +2 -7
  635. package/dist/collections/operations/local/findVersions.d.ts.map +1 -1
  636. package/dist/collections/operations/local/findVersions.js +6 -3
  637. package/dist/collections/operations/local/findVersions.js.map +1 -1
  638. package/dist/collections/operations/local/restoreVersion.d.ts +2 -7
  639. package/dist/collections/operations/local/restoreVersion.d.ts.map +1 -1
  640. package/dist/collections/operations/local/restoreVersion.js +6 -3
  641. package/dist/collections/operations/local/restoreVersion.js.map +1 -1
  642. package/dist/collections/operations/local/update.d.ts +2 -7
  643. package/dist/collections/operations/local/update.d.ts.map +1 -1
  644. package/dist/collections/operations/local/update.js +6 -3
  645. package/dist/collections/operations/local/update.js.map +1 -1
  646. package/dist/collections/operations/restoreVersion.d.ts.map +1 -1
  647. package/dist/collections/operations/restoreVersion.js +48 -13
  648. package/dist/collections/operations/restoreVersion.js.map +1 -1
  649. package/dist/collections/operations/update.d.ts.map +1 -1
  650. package/dist/collections/operations/update.js +148 -24
  651. package/dist/collections/operations/update.js.map +1 -1
  652. package/dist/collections/operations/updateByID.d.ts.map +1 -1
  653. package/dist/collections/operations/updateByID.js +80 -2
  654. package/dist/collections/operations/updateByID.js.map +1 -1
  655. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts +15 -0
  656. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.d.ts.map +1 -0
  657. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js +54 -0
  658. package/dist/collections/operations/utilities/prefetchVersionForInheritedReadAccess.js.map +1 -0
  659. package/dist/collections/operations/utilities/update.d.ts +2 -2
  660. package/dist/collections/operations/utilities/update.d.ts.map +1 -1
  661. package/dist/collections/operations/utilities/update.js +83 -19
  662. package/dist/collections/operations/utilities/update.js.map +1 -1
  663. package/dist/config/assertNoLegacySharpConfig.d.ts +21 -0
  664. package/dist/config/assertNoLegacySharpConfig.d.ts.map +1 -0
  665. package/dist/config/assertNoLegacySharpConfig.js +50 -0
  666. package/dist/config/assertNoLegacySharpConfig.js.map +1 -0
  667. package/dist/config/build.d.ts.map +1 -1
  668. package/dist/config/build.js +22 -1
  669. package/dist/config/build.js.map +1 -1
  670. package/dist/config/client.d.ts +2 -2
  671. package/dist/config/client.d.ts.map +1 -1
  672. package/dist/config/client.js +5 -6
  673. package/dist/config/client.js.map +1 -1
  674. package/dist/config/defaults.d.ts.map +1 -1
  675. package/dist/config/defaults.js +98 -43
  676. package/dist/config/defaults.js.map +1 -1
  677. package/dist/config/orderable/index.d.ts +1 -1
  678. package/dist/config/orderable/index.d.ts.map +1 -1
  679. package/dist/config/orderable/index.js +73 -16
  680. package/dist/config/orderable/index.js.map +1 -1
  681. package/dist/config/orderable/utils/getJoinScopeContext.d.ts.map +1 -1
  682. package/dist/config/orderable/utils/getJoinScopeContext.js +1 -0
  683. package/dist/config/orderable/utils/getJoinScopeContext.js.map +1 -1
  684. package/dist/config/orderable/utils/resolvePendingTargetKey.d.ts.map +1 -1
  685. package/dist/config/orderable/utils/resolvePendingTargetKey.js +1 -0
  686. package/dist/config/orderable/utils/resolvePendingTargetKey.js.map +1 -1
  687. package/dist/config/sanitize.d.ts +1 -1
  688. package/dist/config/sanitize.d.ts.map +1 -1
  689. package/dist/config/sanitize.js +98 -38
  690. package/dist/config/sanitize.js.map +1 -1
  691. package/dist/config/types.d.ts +527 -441
  692. package/dist/config/types.d.ts.map +1 -1
  693. package/dist/config/types.js.map +1 -1
  694. package/dist/database/createDatabaseAdapter.d.ts +1 -1
  695. package/dist/database/createDatabaseAdapter.d.ts.map +1 -1
  696. package/dist/database/createDatabaseAdapter.js +4 -2
  697. package/dist/database/createDatabaseAdapter.js.map +1 -1
  698. package/dist/database/createSchemaBuildContext.d.ts +12 -0
  699. package/dist/database/createSchemaBuildContext.d.ts.map +1 -0
  700. package/dist/database/createSchemaBuildContext.js +24 -0
  701. package/dist/database/createSchemaBuildContext.js.map +1 -0
  702. package/dist/database/defaultBatchProcessing.d.ts +3 -0
  703. package/dist/database/defaultBatchProcessing.d.ts.map +1 -0
  704. package/dist/database/defaultBatchProcessing.js +93 -0
  705. package/dist/database/defaultBatchProcessing.js.map +1 -0
  706. package/dist/database/defaultCopy.d.ts +3 -0
  707. package/dist/database/defaultCopy.d.ts.map +1 -0
  708. package/dist/database/defaultCopy.js +73 -0
  709. package/dist/database/defaultCopy.js.map +1 -0
  710. package/dist/database/getLocalizedPaths.d.ts +2 -1
  711. package/dist/database/getLocalizedPaths.d.ts.map +1 -1
  712. package/dist/database/getLocalizedPaths.js +12 -3
  713. package/dist/database/getLocalizedPaths.js.map +1 -1
  714. package/dist/database/isNestedRelationshipQuery.d.ts +14 -0
  715. package/dist/database/isNestedRelationshipQuery.d.ts.map +1 -0
  716. package/dist/database/isNestedRelationshipQuery.js +19 -0
  717. package/dist/database/isNestedRelationshipQuery.js.map +1 -0
  718. package/dist/database/migrations/createMigration.d.ts.map +1 -1
  719. package/dist/database/migrations/createMigration.js +4 -0
  720. package/dist/database/migrations/createMigration.js.map +1 -1
  721. package/dist/database/migrations/getMigrations.d.ts.map +1 -1
  722. package/dist/database/migrations/getMigrations.js +1 -0
  723. package/dist/database/migrations/getMigrations.js.map +1 -1
  724. package/dist/database/migrations/getPredefinedMigration.js +2 -2
  725. package/dist/database/migrations/getPredefinedMigration.js.map +1 -1
  726. package/dist/database/migrations/migrate.d.ts.map +1 -1
  727. package/dist/database/migrations/migrate.js +14 -2
  728. package/dist/database/migrations/migrate.js.map +1 -1
  729. package/dist/database/migrations/migrateDown.d.ts +2 -2
  730. package/dist/database/migrations/migrateDown.d.ts.map +1 -1
  731. package/dist/database/migrations/migrateDown.js +17 -4
  732. package/dist/database/migrations/migrateDown.js.map +1 -1
  733. package/dist/database/migrations/migrateRefresh.d.ts +2 -2
  734. package/dist/database/migrations/migrateRefresh.d.ts.map +1 -1
  735. package/dist/database/migrations/migrateRefresh.js +16 -4
  736. package/dist/database/migrations/migrateRefresh.js.map +1 -1
  737. package/dist/database/migrations/migrateReset.d.ts +2 -2
  738. package/dist/database/migrations/migrateReset.d.ts.map +1 -1
  739. package/dist/database/migrations/migrateReset.js +17 -3
  740. package/dist/database/migrations/migrateReset.js.map +1 -1
  741. package/dist/database/migrations/migrateStatus.d.ts +2 -2
  742. package/dist/database/migrations/migrateStatus.d.ts.map +1 -1
  743. package/dist/database/migrations/migrateStatus.js +11 -6
  744. package/dist/database/migrations/migrateStatus.js.map +1 -1
  745. package/dist/database/migrations/migrationsCollection.d.ts.map +1 -1
  746. package/dist/database/migrations/migrationsCollection.js +1 -0
  747. package/dist/database/migrations/migrationsCollection.js.map +1 -1
  748. package/dist/database/prefixWherePaths.d.ts +6 -0
  749. package/dist/database/prefixWherePaths.d.ts.map +1 -0
  750. package/dist/database/prefixWherePaths.js +19 -0
  751. package/dist/database/prefixWherePaths.js.map +1 -0
  752. package/dist/database/queryValidation/validateQueryPaths.d.ts +2 -1
  753. package/dist/database/queryValidation/validateQueryPaths.d.ts.map +1 -1
  754. package/dist/database/queryValidation/validateQueryPaths.js +12 -2
  755. package/dist/database/queryValidation/validateQueryPaths.js.map +1 -1
  756. package/dist/database/queryValidation/validateSearchParams.d.ts +2 -1
  757. package/dist/database/queryValidation/validateSearchParams.d.ts.map +1 -1
  758. package/dist/database/queryValidation/validateSearchParams.js +88 -7
  759. package/dist/database/queryValidation/validateSearchParams.js.map +1 -1
  760. package/dist/database/queryValidation/validateSortQuery.d.ts +23 -0
  761. package/dist/database/queryValidation/validateSortQuery.d.ts.map +1 -0
  762. package/dist/database/queryValidation/validateSortQuery.js +54 -0
  763. package/dist/database/queryValidation/validateSortQuery.js.map +1 -0
  764. package/dist/database/sanitizeJoinQuery.d.ts.map +1 -1
  765. package/dist/database/sanitizeJoinQuery.js +9 -1
  766. package/dist/database/sanitizeJoinQuery.js.map +1 -1
  767. package/dist/database/sanitizeWhereQuery.d.ts +1 -1
  768. package/dist/database/sanitizeWhereQuery.d.ts.map +1 -1
  769. package/dist/database/sanitizeWhereQuery.js +44 -1
  770. package/dist/database/sanitizeWhereQuery.js.map +1 -1
  771. package/dist/database/types.d.ts +94 -8
  772. package/dist/database/types.d.ts.map +1 -1
  773. package/dist/database/types.js.map +1 -1
  774. package/dist/duplicateDocument/index.js +1 -0
  775. package/dist/duplicateDocument/index.js.map +1 -1
  776. package/dist/errors/APIError.d.ts +4 -0
  777. package/dist/errors/APIError.d.ts.map +1 -1
  778. package/dist/errors/APIError.js +5 -1
  779. package/dist/errors/APIError.js.map +1 -1
  780. package/dist/errors/AuthenticationError.d.ts.map +1 -1
  781. package/dist/errors/AuthenticationError.js +1 -0
  782. package/dist/errors/AuthenticationError.js.map +1 -1
  783. package/dist/errors/DuplicateCollection.d.ts.map +1 -1
  784. package/dist/errors/DuplicateCollection.js +1 -0
  785. package/dist/errors/DuplicateCollection.js.map +1 -1
  786. package/dist/errors/DuplicateFieldName.d.ts.map +1 -1
  787. package/dist/errors/DuplicateFieldName.js +1 -0
  788. package/dist/errors/DuplicateFieldName.js.map +1 -1
  789. package/dist/errors/DuplicateGlobal.d.ts.map +1 -1
  790. package/dist/errors/DuplicateGlobal.js +1 -0
  791. package/dist/errors/DuplicateGlobal.js.map +1 -1
  792. package/dist/errors/ErrorDeletingFile.d.ts.map +1 -1
  793. package/dist/errors/ErrorDeletingFile.js +1 -0
  794. package/dist/errors/ErrorDeletingFile.js.map +1 -1
  795. package/dist/errors/FileRetrievalError.d.ts.map +1 -1
  796. package/dist/errors/FileRetrievalError.js +1 -0
  797. package/dist/errors/FileRetrievalError.js.map +1 -1
  798. package/dist/errors/FileUploadError.d.ts.map +1 -1
  799. package/dist/errors/FileUploadError.js +1 -0
  800. package/dist/errors/FileUploadError.js.map +1 -1
  801. package/dist/errors/Forbidden.d.ts.map +1 -1
  802. package/dist/errors/Forbidden.js +1 -0
  803. package/dist/errors/Forbidden.js.map +1 -1
  804. package/dist/errors/InvalidConfiguration.d.ts.map +1 -1
  805. package/dist/errors/InvalidConfiguration.js +1 -0
  806. package/dist/errors/InvalidConfiguration.js.map +1 -1
  807. package/dist/errors/InvalidFieldJoin.d.ts.map +1 -1
  808. package/dist/errors/InvalidFieldJoin.js +1 -0
  809. package/dist/errors/InvalidFieldJoin.js.map +1 -1
  810. package/dist/errors/InvalidFieldName.d.ts.map +1 -1
  811. package/dist/errors/InvalidFieldName.js +1 -0
  812. package/dist/errors/InvalidFieldName.js.map +1 -1
  813. package/dist/errors/InvalidFieldRelationship.d.ts.map +1 -1
  814. package/dist/errors/InvalidFieldRelationship.js +1 -0
  815. package/dist/errors/InvalidFieldRelationship.js.map +1 -1
  816. package/dist/errors/InvalidSchema.d.ts.map +1 -1
  817. package/dist/errors/InvalidSchema.js +1 -0
  818. package/dist/errors/InvalidSchema.js.map +1 -1
  819. package/dist/errors/Locked.d.ts.map +1 -1
  820. package/dist/errors/Locked.js +1 -0
  821. package/dist/errors/Locked.js.map +1 -1
  822. package/dist/errors/LockedAuth.d.ts.map +1 -1
  823. package/dist/errors/LockedAuth.js +1 -0
  824. package/dist/errors/LockedAuth.js.map +1 -1
  825. package/dist/errors/MissingCollectionLabel.d.ts.map +1 -1
  826. package/dist/errors/MissingCollectionLabel.js +1 -0
  827. package/dist/errors/MissingCollectionLabel.js.map +1 -1
  828. package/dist/errors/MissingEditorProp.d.ts.map +1 -1
  829. package/dist/errors/MissingEditorProp.js +1 -0
  830. package/dist/errors/MissingEditorProp.js.map +1 -1
  831. package/dist/errors/MissingFieldInputOptions.d.ts.map +1 -1
  832. package/dist/errors/MissingFieldInputOptions.js +1 -0
  833. package/dist/errors/MissingFieldInputOptions.js.map +1 -1
  834. package/dist/errors/MissingFieldType.d.ts.map +1 -1
  835. package/dist/errors/MissingFieldType.js +1 -0
  836. package/dist/errors/MissingFieldType.js.map +1 -1
  837. package/dist/errors/MissingFile.d.ts.map +1 -1
  838. package/dist/errors/MissingFile.js +1 -0
  839. package/dist/errors/MissingFile.js.map +1 -1
  840. package/dist/errors/NotFound.d.ts.map +1 -1
  841. package/dist/errors/NotFound.js +1 -0
  842. package/dist/errors/NotFound.js.map +1 -1
  843. package/dist/errors/QueryError.d.ts.map +1 -1
  844. package/dist/errors/QueryError.js +1 -0
  845. package/dist/errors/QueryError.js.map +1 -1
  846. package/dist/errors/ReservedFieldName.d.ts.map +1 -1
  847. package/dist/errors/ReservedFieldName.js +1 -0
  848. package/dist/errors/ReservedFieldName.js.map +1 -1
  849. package/dist/errors/TimestampsRequired.d.ts.map +1 -1
  850. package/dist/errors/TimestampsRequired.js +1 -0
  851. package/dist/errors/TimestampsRequired.js.map +1 -1
  852. package/dist/errors/TransformerContractError.d.ts +11 -0
  853. package/dist/errors/TransformerContractError.d.ts.map +1 -0
  854. package/dist/errors/TransformerContractError.js +15 -0
  855. package/dist/errors/TransformerContractError.js.map +1 -0
  856. package/dist/errors/UnauthorizedError.d.ts.map +1 -1
  857. package/dist/errors/UnauthorizedError.js +1 -0
  858. package/dist/errors/UnauthorizedError.js.map +1 -1
  859. package/dist/errors/UnverifiedEmail.d.ts.map +1 -1
  860. package/dist/errors/UnverifiedEmail.js +1 -0
  861. package/dist/errors/UnverifiedEmail.js.map +1 -1
  862. package/dist/errors/ValidationError.d.ts.map +1 -1
  863. package/dist/errors/ValidationError.js +1 -0
  864. package/dist/errors/ValidationError.js.map +1 -1
  865. package/dist/errors/index.d.ts +1 -0
  866. package/dist/errors/index.d.ts.map +1 -1
  867. package/dist/errors/index.js +1 -0
  868. package/dist/errors/index.js.map +1 -1
  869. package/dist/exports/auth.d.ts +5 -0
  870. package/dist/exports/auth.d.ts.map +1 -0
  871. package/dist/exports/auth.js +6 -0
  872. package/dist/exports/auth.js.map +1 -0
  873. package/dist/exports/cli.d.ts +4 -0
  874. package/dist/exports/cli.d.ts.map +1 -0
  875. package/dist/exports/cli.js +4 -0
  876. package/dist/exports/cli.js.map +1 -0
  877. package/dist/exports/cliBuiltin.d.ts +37 -0
  878. package/dist/exports/cliBuiltin.d.ts.map +1 -0
  879. package/dist/exports/cliBuiltin.js +38 -0
  880. package/dist/exports/cliBuiltin.js.map +1 -0
  881. package/dist/exports/internal.d.ts +20 -1
  882. package/dist/exports/internal.d.ts.map +1 -1
  883. package/dist/exports/internal.js +17 -1
  884. package/dist/exports/internal.js.map +1 -1
  885. package/dist/exports/node.d.ts +2 -2
  886. package/dist/exports/node.d.ts.map +1 -1
  887. package/dist/exports/node.js +2 -2
  888. package/dist/exports/node.js.map +1 -1
  889. package/dist/exports/shared.d.ts +11 -4
  890. package/dist/exports/shared.d.ts.map +1 -1
  891. package/dist/exports/shared.js +10 -4
  892. package/dist/exports/shared.js.map +1 -1
  893. package/dist/fields/baseFields/authorship/index.d.ts +30 -0
  894. package/dist/fields/baseFields/authorship/index.d.ts.map +1 -0
  895. package/dist/fields/baseFields/authorship/index.js +151 -0
  896. package/dist/fields/baseFields/authorship/index.js.map +1 -0
  897. package/dist/fields/baseFields/authorship/types.d.ts +28 -0
  898. package/dist/fields/baseFields/authorship/types.d.ts.map +1 -0
  899. package/dist/fields/baseFields/authorship/types.js +10 -0
  900. package/dist/fields/baseFields/authorship/types.js.map +1 -0
  901. package/dist/fields/baseFields/slug/duplicateContext.d.ts +11 -0
  902. package/dist/fields/baseFields/slug/duplicateContext.d.ts.map +1 -0
  903. package/dist/fields/baseFields/slug/duplicateContext.js +21 -0
  904. package/dist/fields/baseFields/slug/duplicateContext.js.map +1 -0
  905. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts +23 -0
  906. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.d.ts.map +1 -0
  907. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js +65 -0
  908. package/dist/fields/baseFields/slug/fillEmptyLocalizedSlugs.js.map +1 -0
  909. package/dist/fields/baseFields/slug/generateSlug.d.ts +13 -8
  910. package/dist/fields/baseFields/slug/generateSlug.d.ts.map +1 -1
  911. package/dist/fields/baseFields/slug/generateSlug.js +102 -45
  912. package/dist/fields/baseFields/slug/generateSlug.js.map +1 -1
  913. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.d.ts +18 -0
  914. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.d.ts.map +1 -0
  915. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.js +20 -0
  916. package/dist/fields/baseFields/slug/generateSlugBeforeDuplicate.js.map +1 -0
  917. package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts +23 -0
  918. package/dist/fields/baseFields/slug/getSlugFallbackValue.d.ts.map +1 -0
  919. package/dist/fields/baseFields/slug/getSlugFallbackValue.js +24 -0
  920. package/dist/fields/baseFields/slug/getSlugFallbackValue.js.map +1 -0
  921. package/dist/fields/baseFields/slug/hasValue.d.ts +3 -0
  922. package/dist/fields/baseFields/slug/hasValue.d.ts.map +1 -0
  923. package/dist/fields/baseFields/slug/hasValue.js +3 -0
  924. package/dist/fields/baseFields/slug/hasValue.js.map +1 -0
  925. package/dist/fields/config/client.d.ts +1 -1
  926. package/dist/fields/config/client.d.ts.map +1 -1
  927. package/dist/fields/config/client.js +1 -1
  928. package/dist/fields/config/client.js.map +1 -1
  929. package/dist/fields/config/reservedFieldNames.js.map +1 -1
  930. package/dist/fields/config/sanitize.d.ts +6 -6
  931. package/dist/fields/config/sanitize.d.ts.map +1 -1
  932. package/dist/fields/config/sanitize.js +32 -22
  933. package/dist/fields/config/sanitize.js.map +1 -1
  934. package/dist/fields/config/types.d.ts +53 -50
  935. package/dist/fields/config/types.d.ts.map +1 -1
  936. package/dist/fields/config/types.js +1 -1
  937. package/dist/fields/config/types.js.map +1 -1
  938. package/dist/fields/hooks/beforeChange/index.d.ts +7 -1
  939. package/dist/fields/hooks/beforeChange/index.d.ts.map +1 -1
  940. package/dist/fields/hooks/beforeChange/index.js +4 -2
  941. package/dist/fields/hooks/beforeChange/index.js.map +1 -1
  942. package/dist/fields/hooks/beforeChange/promise.d.ts +2 -1
  943. package/dist/fields/hooks/beforeChange/promise.d.ts.map +1 -1
  944. package/dist/fields/hooks/beforeChange/promise.js +52 -9
  945. package/dist/fields/hooks/beforeChange/promise.js.map +1 -1
  946. package/dist/fields/hooks/beforeChange/traverseFields.d.ts +2 -1
  947. package/dist/fields/hooks/beforeChange/traverseFields.d.ts.map +1 -1
  948. package/dist/fields/hooks/beforeChange/traverseFields.js +3 -2
  949. package/dist/fields/hooks/beforeChange/traverseFields.js.map +1 -1
  950. package/dist/fields/hooks/beforeDuplicate/promise.d.ts.map +1 -1
  951. package/dist/fields/hooks/beforeDuplicate/promise.js +4 -0
  952. package/dist/fields/hooks/beforeDuplicate/promise.js.map +1 -1
  953. package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts +2 -1
  954. package/dist/fields/hooks/beforeValidate/getFallbackValue.d.ts.map +1 -1
  955. package/dist/fields/hooks/beforeValidate/getFallbackValue.js +2 -2
  956. package/dist/fields/hooks/beforeValidate/getFallbackValue.js.map +1 -1
  957. package/dist/fields/hooks/beforeValidate/index.d.ts +6 -1
  958. package/dist/fields/hooks/beforeValidate/index.d.ts.map +1 -1
  959. package/dist/fields/hooks/beforeValidate/index.js +3 -1
  960. package/dist/fields/hooks/beforeValidate/index.js.map +1 -1
  961. package/dist/fields/hooks/beforeValidate/promise.d.ts +6 -1
  962. package/dist/fields/hooks/beforeValidate/promise.d.ts.map +1 -1
  963. package/dist/fields/hooks/beforeValidate/promise.js +29 -12
  964. package/dist/fields/hooks/beforeValidate/promise.js.map +1 -1
  965. package/dist/fields/hooks/beforeValidate/stripNullRows.d.ts +10 -0
  966. package/dist/fields/hooks/beforeValidate/stripNullRows.d.ts.map +1 -0
  967. package/dist/fields/hooks/beforeValidate/stripNullRows.js +18 -0
  968. package/dist/fields/hooks/beforeValidate/stripNullRows.js.map +1 -0
  969. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts +6 -1
  970. package/dist/fields/hooks/beforeValidate/traverseFields.d.ts.map +1 -1
  971. package/dist/fields/hooks/beforeValidate/traverseFields.js +5 -1
  972. package/dist/fields/hooks/beforeValidate/traverseFields.js.map +1 -1
  973. package/dist/fields/validations.d.ts.map +1 -1
  974. package/dist/fields/validations.js +17 -15
  975. package/dist/fields/validations.js.map +1 -1
  976. package/dist/globals/config/client.d.ts +2 -2
  977. package/dist/globals/config/client.d.ts.map +1 -1
  978. package/dist/globals/config/client.js +1 -0
  979. package/dist/globals/config/client.js.map +1 -1
  980. package/dist/globals/config/sanitize.d.ts +3 -7
  981. package/dist/globals/config/sanitize.d.ts.map +1 -1
  982. package/dist/globals/config/sanitize.js +78 -9
  983. package/dist/globals/config/sanitize.js.map +1 -1
  984. package/dist/globals/config/types.d.ts +35 -16
  985. package/dist/globals/config/types.d.ts.map +1 -1
  986. package/dist/globals/config/types.js.map +1 -1
  987. package/dist/globals/operations/countGlobalVersions.d.ts.map +1 -1
  988. package/dist/globals/operations/countGlobalVersions.js +57 -55
  989. package/dist/globals/operations/countGlobalVersions.js.map +1 -1
  990. package/dist/globals/operations/docAccess.d.ts.map +1 -1
  991. package/dist/globals/operations/docAccess.js +19 -25
  992. package/dist/globals/operations/docAccess.js.map +1 -1
  993. package/dist/globals/operations/findOne.d.ts.map +1 -1
  994. package/dist/globals/operations/findOne.js +169 -174
  995. package/dist/globals/operations/findOne.js.map +1 -1
  996. package/dist/globals/operations/findVersionByID.d.ts.map +1 -1
  997. package/dist/globals/operations/findVersionByID.js +112 -108
  998. package/dist/globals/operations/findVersionByID.js.map +1 -1
  999. package/dist/globals/operations/findVersions.d.ts.map +1 -1
  1000. package/dist/globals/operations/findVersions.js +118 -109
  1001. package/dist/globals/operations/findVersions.js.map +1 -1
  1002. package/dist/globals/operations/inputSchemas.d.ts +365 -0
  1003. package/dist/globals/operations/inputSchemas.d.ts.map +1 -0
  1004. package/dist/globals/operations/inputSchemas.js +104 -0
  1005. package/dist/globals/operations/inputSchemas.js.map +1 -0
  1006. package/dist/globals/operations/local/countVersions.d.ts +2 -7
  1007. package/dist/globals/operations/local/countVersions.d.ts.map +1 -1
  1008. package/dist/globals/operations/local/countVersions.js +6 -3
  1009. package/dist/globals/operations/local/countVersions.js.map +1 -1
  1010. package/dist/globals/operations/local/findOne.d.ts +2 -7
  1011. package/dist/globals/operations/local/findOne.d.ts.map +1 -1
  1012. package/dist/globals/operations/local/findOne.js +6 -3
  1013. package/dist/globals/operations/local/findOne.js.map +1 -1
  1014. package/dist/globals/operations/local/findVersionByID.d.ts +2 -7
  1015. package/dist/globals/operations/local/findVersionByID.d.ts.map +1 -1
  1016. package/dist/globals/operations/local/findVersionByID.js +6 -3
  1017. package/dist/globals/operations/local/findVersionByID.js.map +1 -1
  1018. package/dist/globals/operations/local/findVersions.d.ts +2 -7
  1019. package/dist/globals/operations/local/findVersions.d.ts.map +1 -1
  1020. package/dist/globals/operations/local/findVersions.js +6 -3
  1021. package/dist/globals/operations/local/findVersions.js.map +1 -1
  1022. package/dist/globals/operations/local/restoreVersion.d.ts +2 -7
  1023. package/dist/globals/operations/local/restoreVersion.d.ts.map +1 -1
  1024. package/dist/globals/operations/local/restoreVersion.js +6 -3
  1025. package/dist/globals/operations/local/restoreVersion.js.map +1 -1
  1026. package/dist/globals/operations/local/update.d.ts +2 -7
  1027. package/dist/globals/operations/local/update.d.ts.map +1 -1
  1028. package/dist/globals/operations/local/update.js +6 -3
  1029. package/dist/globals/operations/local/update.js.map +1 -1
  1030. package/dist/globals/operations/restoreVersion.d.ts.map +1 -1
  1031. package/dist/globals/operations/restoreVersion.js +60 -14
  1032. package/dist/globals/operations/restoreVersion.js.map +1 -1
  1033. package/dist/globals/operations/update.d.ts.map +1 -1
  1034. package/dist/globals/operations/update.js +106 -19
  1035. package/dist/globals/operations/update.js.map +1 -1
  1036. package/dist/hierarchy/addHierarchyToCollection.js +2 -0
  1037. package/dist/hierarchy/addHierarchyToCollection.js.map +1 -1
  1038. package/dist/hierarchy/hooks/collectionAfterDelete.d.ts.map +1 -1
  1039. package/dist/hierarchy/hooks/collectionAfterDelete.js +1 -0
  1040. package/dist/hierarchy/hooks/collectionAfterDelete.js.map +1 -1
  1041. package/dist/hierarchy/hooks/collectionBeforeChange.js +1 -0
  1042. package/dist/hierarchy/hooks/collectionBeforeChange.js.map +1 -1
  1043. package/dist/hierarchy/hooks/collectionBeforeDelete.d.ts.map +1 -1
  1044. package/dist/hierarchy/hooks/collectionBeforeDelete.js +1 -0
  1045. package/dist/hierarchy/hooks/collectionBeforeDelete.js.map +1 -1
  1046. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.d.ts.map +1 -1
  1047. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js +71 -33
  1048. package/dist/hierarchy/hooks/ensureSafeCollectionsChange.js.map +1 -1
  1049. package/dist/hierarchy/resolveHierarchyCollections.js +29 -20
  1050. package/dist/hierarchy/resolveHierarchyCollections.js.map +1 -1
  1051. package/dist/index.bundled.d.ts +3223 -1384
  1052. package/dist/index.d.ts +117 -56
  1053. package/dist/index.d.ts.map +1 -1
  1054. package/dist/index.js +90 -70
  1055. package/dist/index.js.map +1 -1
  1056. package/dist/kv/adapters/DatabaseKVAdapter.d.ts.map +1 -1
  1057. package/dist/kv/adapters/DatabaseKVAdapter.js +2 -1
  1058. package/dist/kv/adapters/DatabaseKVAdapter.js.map +1 -1
  1059. package/dist/llm-instructions/addLLMInstructions.d.ts +5 -0
  1060. package/dist/llm-instructions/addLLMInstructions.d.ts.map +1 -0
  1061. package/dist/llm-instructions/addLLMInstructions.js +31 -0
  1062. package/dist/llm-instructions/addLLMInstructions.js.map +1 -0
  1063. package/dist/llm-instructions/getInstructionTargetAccess.d.ts +8 -0
  1064. package/dist/llm-instructions/getInstructionTargetAccess.d.ts.map +1 -0
  1065. package/dist/llm-instructions/getInstructionTargetAccess.js +40 -0
  1066. package/dist/llm-instructions/getInstructionTargetAccess.js.map +1 -0
  1067. package/dist/llm-instructions/getInstructions.d.ts +8 -0
  1068. package/dist/llm-instructions/getInstructions.d.ts.map +1 -0
  1069. package/dist/llm-instructions/getInstructions.js +46 -0
  1070. package/dist/llm-instructions/getInstructions.js.map +1 -0
  1071. package/dist/llm-instructions/getInstructionsCollection.d.ts +6 -0
  1072. package/dist/llm-instructions/getInstructionsCollection.d.ts.map +1 -0
  1073. package/dist/llm-instructions/getInstructionsCollection.js +367 -0
  1074. package/dist/llm-instructions/getInstructionsCollection.js.map +1 -0
  1075. package/dist/llm-instructions/shared.d.ts +11 -0
  1076. package/dist/llm-instructions/shared.d.ts.map +1 -0
  1077. package/dist/llm-instructions/shared.js +3 -0
  1078. package/dist/llm-instructions/shared.js.map +1 -0
  1079. package/dist/locked-documents/config.d.ts.map +1 -1
  1080. package/dist/locked-documents/config.js +1 -0
  1081. package/dist/locked-documents/config.js.map +1 -1
  1082. package/dist/preferences/config.d.ts.map +1 -1
  1083. package/dist/preferences/config.js +3 -1
  1084. package/dist/preferences/config.js.map +1 -1
  1085. package/dist/preferences/types.d.ts +2 -0
  1086. package/dist/preferences/types.d.ts.map +1 -1
  1087. package/dist/preferences/types.js.map +1 -1
  1088. package/dist/query-presets/access.d.ts.map +1 -1
  1089. package/dist/query-presets/access.js +2 -1
  1090. package/dist/query-presets/access.js.map +1 -1
  1091. package/dist/query-presets/config.d.ts.map +1 -1
  1092. package/dist/query-presets/config.js +1 -0
  1093. package/dist/query-presets/config.js.map +1 -1
  1094. package/dist/query-presets/constraints.js +1 -1
  1095. package/dist/query-presets/constraints.js.map +1 -1
  1096. package/dist/query-presets/preventLockout.js +6 -3
  1097. package/dist/query-presets/preventLockout.js.map +1 -1
  1098. package/dist/queues/config/collection.d.ts.map +1 -1
  1099. package/dist/queues/config/collection.js +44 -43
  1100. package/dist/queues/config/collection.js.map +1 -1
  1101. package/dist/queues/config/global.d.ts +5 -6
  1102. package/dist/queues/config/global.d.ts.map +1 -1
  1103. package/dist/queues/config/global.js +2 -1
  1104. package/dist/queues/config/global.js.map +1 -1
  1105. package/dist/queues/config/types/index.d.ts +33 -25
  1106. package/dist/queues/config/types/index.d.ts.map +1 -1
  1107. package/dist/queues/config/types/index.js.map +1 -1
  1108. package/dist/queues/config/types/taskTypes.d.ts +4 -7
  1109. package/dist/queues/config/types/taskTypes.d.ts.map +1 -1
  1110. package/dist/queues/config/types/taskTypes.js.map +1 -1
  1111. package/dist/queues/config/types/workflowJSONTypes.d.ts +10 -9
  1112. package/dist/queues/config/types/workflowJSONTypes.d.ts.map +1 -1
  1113. package/dist/queues/config/types/workflowJSONTypes.js.map +1 -1
  1114. package/dist/queues/config/types/workflowTypes.d.ts +11 -58
  1115. package/dist/queues/config/types/workflowTypes.d.ts.map +1 -1
  1116. package/dist/queues/config/types/workflowTypes.js.map +1 -1
  1117. package/dist/queues/endpoints/handleSchedules.d.ts.map +1 -1
  1118. package/dist/queues/endpoints/handleSchedules.js +3 -2
  1119. package/dist/queues/endpoints/handleSchedules.js.map +1 -1
  1120. package/dist/queues/endpoints/run.d.ts.map +1 -1
  1121. package/dist/queues/endpoints/run.js +2 -1
  1122. package/dist/queues/endpoints/run.js.map +1 -1
  1123. package/dist/queues/errors/handleTaskError.js +4 -4
  1124. package/dist/queues/errors/handleTaskError.js.map +1 -1
  1125. package/dist/queues/errors/handleWorkflowError.js +1 -1
  1126. package/dist/queues/errors/handleWorkflowError.js.map +1 -1
  1127. package/dist/queues/errors/index.d.ts +6 -0
  1128. package/dist/queues/errors/index.d.ts.map +1 -1
  1129. package/dist/queues/errors/index.js +5 -0
  1130. package/dist/queues/errors/index.js.map +1 -1
  1131. package/dist/queues/localAPI.d.ts +10 -63
  1132. package/dist/queues/localAPI.d.ts.map +1 -1
  1133. package/dist/queues/localAPI.js +87 -78
  1134. package/dist/queues/localAPI.js.map +1 -1
  1135. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.d.ts +4 -4
  1136. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.d.ts.map +1 -1
  1137. package/dist/queues/operations/handleSchedules/countRunnableOrActiveJobsForQueue.js.map +1 -1
  1138. package/dist/queues/operations/handleSchedules/index.d.ts +1 -1
  1139. package/dist/queues/operations/handleSchedules/index.d.ts.map +1 -1
  1140. package/dist/queues/operations/handleSchedules/index.js +2 -1
  1141. package/dist/queues/operations/handleSchedules/index.js.map +1 -1
  1142. package/dist/queues/operations/runJobs/heartbeat.d.ts +13 -0
  1143. package/dist/queues/operations/runJobs/heartbeat.d.ts.map +1 -0
  1144. package/dist/queues/operations/runJobs/heartbeat.js +66 -0
  1145. package/dist/queues/operations/runJobs/heartbeat.js.map +1 -0
  1146. package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
  1147. package/dist/queues/operations/runJobs/index.js +133 -84
  1148. package/dist/queues/operations/runJobs/index.js.map +1 -1
  1149. package/dist/queues/operations/runJobs/runJSONJob/index.d.ts.map +1 -1
  1150. package/dist/queues/operations/runJobs/runJSONJob/index.js +6 -3
  1151. package/dist/queues/operations/runJobs/runJSONJob/index.js.map +1 -1
  1152. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js +5 -5
  1153. package/dist/queues/operations/runJobs/runJob/getRunTaskFunction.js.map +1 -1
  1154. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts +2 -1
  1155. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.d.ts.map +1 -1
  1156. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js +39 -8
  1157. package/dist/queues/operations/runJobs/runJob/getUpdateJobFunction.js.map +1 -1
  1158. package/dist/queues/operations/runJobs/runJob/importHandlerPath.js.map +1 -1
  1159. package/dist/queues/operations/runJobs/runJob/index.d.ts.map +1 -1
  1160. package/dist/queues/operations/runJobs/runJob/index.js +4 -4
  1161. package/dist/queues/operations/runJobs/runJob/index.js.map +1 -1
  1162. package/dist/queues/utilities/updateJob.d.ts.map +1 -1
  1163. package/dist/queues/utilities/updateJob.js +3 -0
  1164. package/dist/queues/utilities/updateJob.js.map +1 -1
  1165. package/dist/types/constants.d.ts +21 -0
  1166. package/dist/types/constants.d.ts.map +1 -1
  1167. package/dist/types/constants.js +23 -0
  1168. package/dist/types/constants.js.map +1 -1
  1169. package/dist/types/index.d.ts +11 -4
  1170. package/dist/types/index.d.ts.map +1 -1
  1171. package/dist/types/index.js.map +1 -1
  1172. package/dist/types/operations.d.ts +9 -0
  1173. package/dist/types/operations.d.ts.map +1 -0
  1174. package/dist/types/operations.js +3 -0
  1175. package/dist/types/operations.js.map +1 -0
  1176. package/dist/uploads/assertClientUploadAccess.d.ts +7 -0
  1177. package/dist/uploads/assertClientUploadAccess.d.ts.map +1 -0
  1178. package/dist/uploads/assertClientUploadAccess.js +29 -0
  1179. package/dist/uploads/assertClientUploadAccess.js.map +1 -0
  1180. package/dist/uploads/assertClientUploadAllowed.d.ts +10 -0
  1181. package/dist/uploads/assertClientUploadAllowed.d.ts.map +1 -0
  1182. package/dist/uploads/assertClientUploadAllowed.js +41 -0
  1183. package/dist/uploads/assertClientUploadAllowed.js.map +1 -0
  1184. package/dist/uploads/checkFileAccess.d.ts.map +1 -1
  1185. package/dist/uploads/checkFileAccess.js +6 -18
  1186. package/dist/uploads/checkFileAccess.js.map +1 -1
  1187. package/dist/uploads/checkFileRestrictions.d.ts +11 -1
  1188. package/dist/uploads/checkFileRestrictions.d.ts.map +1 -1
  1189. package/dist/uploads/checkFileRestrictions.js +91 -26
  1190. package/dist/uploads/checkFileRestrictions.js.map +1 -1
  1191. package/dist/uploads/clientUploadReceipt.d.ts +29 -0
  1192. package/dist/uploads/clientUploadReceipt.d.ts.map +1 -0
  1193. package/dist/uploads/clientUploadReceipt.js +76 -0
  1194. package/dist/uploads/clientUploadReceipt.js.map +1 -0
  1195. package/dist/uploads/deleteAssociatedFiles.d.ts.map +1 -1
  1196. package/dist/uploads/deleteAssociatedFiles.js +59 -11
  1197. package/dist/uploads/deleteAssociatedFiles.js.map +1 -1
  1198. package/dist/uploads/detectSvgFromXml.d.ts +1 -4
  1199. package/dist/uploads/detectSvgFromXml.d.ts.map +1 -1
  1200. package/dist/uploads/detectSvgFromXml.js +2 -41
  1201. package/dist/uploads/detectSvgFromXml.js.map +1 -1
  1202. package/dist/uploads/docWithFilenameExists.d.ts +2 -1
  1203. package/dist/uploads/docWithFilenameExists.d.ts.map +1 -1
  1204. package/dist/uploads/docWithFilenameExists.js +27 -10
  1205. package/dist/uploads/docWithFilenameExists.js.map +1 -1
  1206. package/dist/uploads/downloadFileToBuffer.d.ts +11 -0
  1207. package/dist/uploads/downloadFileToBuffer.d.ts.map +1 -0
  1208. package/dist/uploads/downloadFileToBuffer.js +72 -0
  1209. package/dist/uploads/downloadFileToBuffer.js.map +1 -0
  1210. package/dist/uploads/endpoints/getFile.d.ts +17 -0
  1211. package/dist/uploads/endpoints/getFile.d.ts.map +1 -1
  1212. package/dist/uploads/endpoints/getFile.js +46 -12
  1213. package/dist/uploads/endpoints/getFile.js.map +1 -1
  1214. package/dist/uploads/endpoints/index.js +2 -2
  1215. package/dist/uploads/endpoints/index.js.map +1 -1
  1216. package/dist/uploads/endpoints/pasteURL.d.ts +3 -0
  1217. package/dist/uploads/endpoints/pasteURL.d.ts.map +1 -0
  1218. package/dist/uploads/endpoints/{getFileFromURL.js → pasteURL.js} +19 -55
  1219. package/dist/uploads/endpoints/pasteURL.js.map +1 -0
  1220. package/dist/uploads/endpoints/uploadInstructions.d.ts +12 -0
  1221. package/dist/uploads/endpoints/uploadInstructions.d.ts.map +1 -1
  1222. package/dist/uploads/endpoints/uploadInstructions.js +70 -21
  1223. package/dist/uploads/endpoints/uploadInstructions.js.map +1 -1
  1224. package/dist/uploads/fetchAPI-multipart/handlers.d.ts +2 -2
  1225. package/dist/uploads/fetchAPI-multipart/handlers.d.ts.map +1 -1
  1226. package/dist/uploads/fetchAPI-multipart/handlers.js +18 -5
  1227. package/dist/uploads/fetchAPI-multipart/handlers.js.map +1 -1
  1228. package/dist/uploads/fetchAPI-multipart/index.d.ts.map +1 -1
  1229. package/dist/uploads/fetchAPI-multipart/index.js +24 -2
  1230. package/dist/uploads/fetchAPI-multipart/index.js.map +1 -1
  1231. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js +1 -2
  1232. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.js.map +1 -1
  1233. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts +0 -6
  1234. package/dist/uploads/fetchAPI-multipart/processMultipart.d.ts.map +1 -1
  1235. package/dist/uploads/fetchAPI-multipart/processMultipart.js +146 -130
  1236. package/dist/uploads/fetchAPI-multipart/processMultipart.js.map +1 -1
  1237. package/dist/uploads/fetchAPI-stream-file/index.d.ts +4 -1
  1238. package/dist/uploads/fetchAPI-stream-file/index.d.ts.map +1 -1
  1239. package/dist/uploads/fetchAPI-stream-file/index.js +9 -2
  1240. package/dist/uploads/fetchAPI-stream-file/index.js.map +1 -1
  1241. package/dist/uploads/fetchWithRedirects.d.ts +19 -0
  1242. package/dist/uploads/fetchWithRedirects.d.ts.map +1 -0
  1243. package/dist/uploads/fetchWithRedirects.js +53 -0
  1244. package/dist/uploads/fetchWithRedirects.js.map +1 -0
  1245. package/dist/uploads/generateFileData.d.ts +31 -1
  1246. package/dist/uploads/generateFileData.d.ts.map +1 -1
  1247. package/dist/uploads/generateFileData.js +259 -199
  1248. package/dist/uploads/generateFileData.js.map +1 -1
  1249. package/dist/uploads/generateImageSizeFilename.d.ts.map +1 -0
  1250. package/dist/uploads/generateImageSizeFilename.js.map +1 -0
  1251. package/dist/uploads/generatePayloadFileURL.d.ts +25 -0
  1252. package/dist/uploads/generatePayloadFileURL.d.ts.map +1 -0
  1253. package/dist/uploads/generatePayloadFileURL.js +64 -0
  1254. package/dist/uploads/generatePayloadFileURL.js.map +1 -0
  1255. package/dist/uploads/getBaseFields.d.ts.map +1 -1
  1256. package/dist/uploads/getBaseFields.js +12 -9
  1257. package/dist/uploads/getBaseFields.js.map +1 -1
  1258. package/dist/uploads/getFileContentRequirement.d.ts +39 -0
  1259. package/dist/uploads/getFileContentRequirement.d.ts.map +1 -0
  1260. package/dist/uploads/getFileContentRequirement.js +45 -0
  1261. package/dist/uploads/getFileContentRequirement.js.map +1 -0
  1262. package/dist/uploads/getFileFromUploadInstructions.d.ts +8 -0
  1263. package/dist/uploads/getFileFromUploadInstructions.d.ts.map +1 -0
  1264. package/dist/uploads/getFileFromUploadInstructions.js +307 -0
  1265. package/dist/uploads/getFileFromUploadInstructions.js.map +1 -0
  1266. package/dist/uploads/getFileTypeFallback.d.ts.map +1 -1
  1267. package/dist/uploads/getFileTypeFallback.js +3 -1
  1268. package/dist/uploads/getFileTypeFallback.js.map +1 -1
  1269. package/dist/uploads/getFileTypeIdentity.d.ts +19 -0
  1270. package/dist/uploads/getFileTypeIdentity.d.ts.map +1 -0
  1271. package/dist/uploads/getFileTypeIdentity.js +34 -0
  1272. package/dist/uploads/getFileTypeIdentity.js.map +1 -0
  1273. package/dist/uploads/getImageSize.d.ts +8 -1
  1274. package/dist/uploads/getImageSize.d.ts.map +1 -1
  1275. package/dist/uploads/getImageSize.js +11 -19
  1276. package/dist/uploads/getImageSize.js.map +1 -1
  1277. package/dist/uploads/hasCropOrResizeEdit.d.ts +7 -0
  1278. package/dist/uploads/hasCropOrResizeEdit.d.ts.map +1 -0
  1279. package/dist/uploads/hasCropOrResizeEdit.js +6 -0
  1280. package/dist/uploads/hasCropOrResizeEdit.js.map +1 -0
  1281. package/dist/uploads/hasFullFileContents.d.ts +13 -0
  1282. package/dist/uploads/hasFullFileContents.d.ts.map +1 -0
  1283. package/dist/uploads/hasFullFileContents.js +12 -0
  1284. package/dist/uploads/hasFullFileContents.js.map +1 -0
  1285. package/dist/uploads/isAnimatedImage.d.ts +8 -0
  1286. package/dist/uploads/isAnimatedImage.d.ts.map +1 -0
  1287. package/dist/uploads/isAnimatedImage.js +22 -0
  1288. package/dist/uploads/isAnimatedImage.js.map +1 -0
  1289. package/dist/uploads/isProcessableImage.d.ts +2 -0
  1290. package/dist/uploads/isProcessableImage.d.ts.map +1 -0
  1291. package/dist/uploads/isProcessableImage.js +7 -0
  1292. package/dist/uploads/isProcessableImage.js.map +1 -0
  1293. package/dist/uploads/parseFilename.d.ts.map +1 -0
  1294. package/dist/uploads/parseFilename.js.map +1 -0
  1295. package/dist/uploads/probeImageSize.d.ts +39 -0
  1296. package/dist/uploads/probeImageSize.d.ts.map +1 -0
  1297. package/dist/uploads/probeImageSize.js +374 -0
  1298. package/dist/uploads/probeImageSize.js.map +1 -0
  1299. package/dist/uploads/resolveURLUploadInput.d.ts +25 -0
  1300. package/dist/uploads/resolveURLUploadInput.d.ts.map +1 -0
  1301. package/dist/uploads/resolveURLUploadInput.js +53 -0
  1302. package/dist/uploads/resolveURLUploadInput.js.map +1 -0
  1303. package/dist/uploads/safeFetch.d.ts.map +1 -1
  1304. package/dist/uploads/safeFetch.js +3 -2
  1305. package/dist/uploads/safeFetch.js.map +1 -1
  1306. package/dist/uploads/sanitizeUploadData.d.ts +26 -0
  1307. package/dist/uploads/sanitizeUploadData.d.ts.map +1 -0
  1308. package/dist/uploads/sanitizeUploadData.js +161 -0
  1309. package/dist/uploads/sanitizeUploadData.js.map +1 -0
  1310. package/dist/uploads/stagedUpload.d.ts +27 -0
  1311. package/dist/uploads/stagedUpload.d.ts.map +1 -0
  1312. package/dist/uploads/stagedUpload.js +197 -0
  1313. package/dist/uploads/stagedUpload.js.map +1 -0
  1314. package/dist/uploads/transformers/createLazySourceGetter.d.ts +15 -0
  1315. package/dist/uploads/transformers/createLazySourceGetter.d.ts.map +1 -0
  1316. package/dist/uploads/transformers/createLazySourceGetter.js +22 -0
  1317. package/dist/uploads/transformers/createLazySourceGetter.js.map +1 -0
  1318. package/dist/uploads/transformers/finalizeFileResponse.d.ts +14 -0
  1319. package/dist/uploads/transformers/finalizeFileResponse.d.ts.map +1 -0
  1320. package/dist/uploads/transformers/finalizeFileResponse.js +49 -0
  1321. package/dist/uploads/transformers/finalizeFileResponse.js.map +1 -0
  1322. package/dist/uploads/transformers/getSourceFileResponse.d.ts +16 -0
  1323. package/dist/uploads/transformers/getSourceFileResponse.d.ts.map +1 -0
  1324. package/dist/uploads/transformers/getSourceFileResponse.js +17 -0
  1325. package/dist/uploads/transformers/getSourceFileResponse.js.map +1 -0
  1326. package/dist/uploads/transformers/handleDynamicFileRequest.d.ts +18 -0
  1327. package/dist/uploads/transformers/handleDynamicFileRequest.d.ts.map +1 -0
  1328. package/dist/uploads/transformers/handleDynamicFileRequest.js +277 -0
  1329. package/dist/uploads/transformers/handleDynamicFileRequest.js.map +1 -0
  1330. package/dist/uploads/transformers/matchesMimeType.d.ts +11 -0
  1331. package/dist/uploads/transformers/matchesMimeType.d.ts.map +1 -0
  1332. package/dist/uploads/transformers/matchesMimeType.js +39 -0
  1333. package/dist/uploads/transformers/matchesMimeType.js.map +1 -0
  1334. package/dist/uploads/transformers/planTransformerPipeline.d.ts +26 -0
  1335. package/dist/uploads/transformers/planTransformerPipeline.d.ts.map +1 -0
  1336. package/dist/uploads/transformers/planTransformerPipeline.js +36 -0
  1337. package/dist/uploads/transformers/planTransformerPipeline.js.map +1 -0
  1338. package/dist/uploads/transformers/resolveUploadDocument.d.ts +46 -0
  1339. package/dist/uploads/transformers/resolveUploadDocument.d.ts.map +1 -0
  1340. package/dist/uploads/transformers/resolveUploadDocument.js +77 -0
  1341. package/dist/uploads/transformers/resolveUploadDocument.js.map +1 -0
  1342. package/dist/uploads/transformers/transformUploadFile.d.ts +18 -0
  1343. package/dist/uploads/transformers/transformUploadFile.d.ts.map +1 -0
  1344. package/dist/uploads/transformers/transformUploadFile.js +30 -0
  1345. package/dist/uploads/transformers/transformUploadFile.js.map +1 -0
  1346. package/dist/uploads/transformers/types.d.ts +71 -0
  1347. package/dist/uploads/transformers/types.d.ts.map +1 -0
  1348. package/dist/uploads/transformers/types.js +6 -0
  1349. package/dist/uploads/transformers/types.js.map +1 -0
  1350. package/dist/uploads/transformers/uploadTransformerBridge.d.ts +48 -0
  1351. package/dist/uploads/transformers/uploadTransformerBridge.d.ts.map +1 -0
  1352. package/dist/uploads/transformers/uploadTransformerBridge.js +22 -0
  1353. package/dist/uploads/transformers/uploadTransformerBridge.js.map +1 -0
  1354. package/dist/uploads/transformers/validateTransformers.d.ts +11 -0
  1355. package/dist/uploads/transformers/validateTransformers.d.ts.map +1 -0
  1356. package/dist/uploads/transformers/validateTransformers.js +67 -0
  1357. package/dist/uploads/transformers/validateTransformers.js.map +1 -0
  1358. package/dist/uploads/transformers/withFileTransformAccessContext.d.ts +13 -0
  1359. package/dist/uploads/transformers/withFileTransformAccessContext.d.ts.map +1 -0
  1360. package/dist/uploads/transformers/withFileTransformAccessContext.js +18 -0
  1361. package/dist/uploads/transformers/withFileTransformAccessContext.js.map +1 -0
  1362. package/dist/uploads/types.d.ts +77 -73
  1363. package/dist/uploads/types.d.ts.map +1 -1
  1364. package/dist/uploads/types.js.map +1 -1
  1365. package/dist/uploads/unlinkTempFiles.d.ts.map +1 -1
  1366. package/dist/uploads/unlinkTempFiles.js +6 -2
  1367. package/dist/uploads/unlinkTempFiles.js.map +1 -1
  1368. package/dist/uploads/uploadContentSecurityPolicy.d.ts +2 -0
  1369. package/dist/uploads/uploadContentSecurityPolicy.d.ts.map +1 -0
  1370. package/dist/uploads/uploadContentSecurityPolicy.js +3 -0
  1371. package/dist/uploads/uploadContentSecurityPolicy.js.map +1 -0
  1372. package/dist/uploads/uploadFiles.d.ts.map +1 -1
  1373. package/dist/uploads/uploadFiles.js +7 -2
  1374. package/dist/uploads/uploadFiles.js.map +1 -1
  1375. package/dist/uploads/validateISOBaseMediaFile.d.ts +4 -0
  1376. package/dist/uploads/validateISOBaseMediaFile.d.ts.map +1 -0
  1377. package/dist/uploads/validateISOBaseMediaFile.js +91 -0
  1378. package/dist/uploads/validateISOBaseMediaFile.js.map +1 -0
  1379. package/dist/uploads/validateSvg.d.ts +10 -4
  1380. package/dist/uploads/validateSvg.d.ts.map +1 -1
  1381. package/dist/uploads/validateSvg.js +280 -40
  1382. package/dist/uploads/validateSvg.js.map +1 -1
  1383. package/dist/uploads/validateUploadFilename.d.ts +3 -0
  1384. package/dist/uploads/validateUploadFilename.d.ts.map +1 -0
  1385. package/dist/uploads/validateUploadFilename.js +13 -0
  1386. package/dist/uploads/validateUploadFilename.js.map +1 -0
  1387. package/dist/uploads/validateUploadURL.d.ts +13 -0
  1388. package/dist/uploads/validateUploadURL.d.ts.map +1 -0
  1389. package/dist/uploads/validateUploadURL.js +37 -0
  1390. package/dist/uploads/validateUploadURL.js.map +1 -0
  1391. package/dist/utilities/addDataAndFileToRequest.d.ts.map +1 -1
  1392. package/dist/utilities/addDataAndFileToRequest.js +14 -46
  1393. package/dist/utilities/addDataAndFileToRequest.js.map +1 -1
  1394. package/dist/utilities/appendNonTrashedFilter.d.ts +1 -1
  1395. package/dist/utilities/appendNonTrashedFilter.d.ts.map +1 -1
  1396. package/dist/utilities/appendNonTrashedFilter.js.map +1 -1
  1397. package/dist/utilities/appendUploadSelectFields.d.ts.map +1 -1
  1398. package/dist/utilities/appendUploadSelectFields.js +4 -3
  1399. package/dist/utilities/appendUploadSelectFields.js.map +1 -1
  1400. package/dist/utilities/batchProcessing.d.ts +23 -0
  1401. package/dist/utilities/batchProcessing.d.ts.map +1 -0
  1402. package/dist/utilities/batchProcessing.js +34 -0
  1403. package/dist/utilities/batchProcessing.js.map +1 -0
  1404. package/dist/utilities/canAccessAdmin.d.ts.map +1 -1
  1405. package/dist/utilities/canAccessAdmin.js +2 -0
  1406. package/dist/utilities/canAccessAdmin.js.map +1 -1
  1407. package/dist/utilities/checkDocumentLockStatus.d.ts +19 -0
  1408. package/dist/utilities/checkDocumentLockStatus.d.ts.map +1 -1
  1409. package/dist/utilities/checkDocumentLockStatus.js +74 -0
  1410. package/dist/utilities/checkDocumentLockStatus.js.map +1 -1
  1411. package/dist/utilities/createPayloadRequest.d.ts +12 -10
  1412. package/dist/utilities/createPayloadRequest.d.ts.map +1 -1
  1413. package/dist/utilities/createPayloadRequest.js +98 -81
  1414. package/dist/utilities/createPayloadRequest.js.map +1 -1
  1415. package/dist/utilities/createPayloadRequestFromWebRequest.d.ts +14 -0
  1416. package/dist/utilities/createPayloadRequestFromWebRequest.d.ts.map +1 -0
  1417. package/dist/utilities/createPayloadRequestFromWebRequest.js +95 -0
  1418. package/dist/utilities/createPayloadRequestFromWebRequest.js.map +1 -0
  1419. package/dist/utilities/deepCopyObject.d.ts.map +1 -1
  1420. package/dist/utilities/deepCopyObject.js +110 -19
  1421. package/dist/utilities/deepCopyObject.js.map +1 -1
  1422. package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts +30 -0
  1423. package/dist/utilities/entityInputSchema/filterFieldsByAccess.d.ts.map +1 -0
  1424. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js +71 -0
  1425. package/dist/utilities/entityInputSchema/filterFieldsByAccess.js.map +1 -0
  1426. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts +13 -0
  1427. package/dist/utilities/entityInputSchema/getEntityInputSchema.d.ts.map +1 -0
  1428. package/dist/utilities/entityInputSchema/getEntityInputSchema.js +66 -0
  1429. package/dist/utilities/entityInputSchema/getEntityInputSchema.js.map +1 -0
  1430. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts +10 -0
  1431. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.d.ts.map +1 -0
  1432. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js +384 -0
  1433. package/dist/utilities/entityInputSchema/sanitizeEntitySchema.js.map +1 -0
  1434. package/dist/utilities/entityInputSchema/types.d.ts +16 -0
  1435. package/dist/utilities/entityInputSchema/types.d.ts.map +1 -0
  1436. package/dist/utilities/entityInputSchema/types.js +3 -0
  1437. package/dist/utilities/entityInputSchema/types.js.map +1 -0
  1438. package/dist/utilities/entityInputSchema/validateEntityData.d.ts +13 -0
  1439. package/dist/utilities/entityInputSchema/validateEntityData.d.ts.map +1 -0
  1440. package/dist/utilities/entityInputSchema/validateEntityData.js +138 -0
  1441. package/dist/utilities/entityInputSchema/validateEntityData.js.map +1 -0
  1442. package/dist/utilities/fieldPath.d.ts +13 -0
  1443. package/dist/utilities/fieldPath.d.ts.map +1 -0
  1444. package/dist/utilities/fieldPath.js +51 -0
  1445. package/dist/utilities/fieldPath.js.map +1 -0
  1446. package/dist/utilities/fieldValueExists.d.ts +29 -0
  1447. package/dist/utilities/fieldValueExists.d.ts.map +1 -0
  1448. package/dist/utilities/fieldValueExists.js +37 -0
  1449. package/dist/utilities/fieldValueExists.js.map +1 -0
  1450. package/dist/utilities/flattenAllFields.js +1 -1
  1451. package/dist/utilities/flattenAllFields.js.map +1 -1
  1452. package/dist/utilities/formatAdminURL.d.ts +1 -0
  1453. package/dist/utilities/formatAdminURL.d.ts.map +1 -1
  1454. package/dist/utilities/formatAdminURL.js +22 -4
  1455. package/dist/utilities/formatAdminURL.js.map +1 -1
  1456. package/dist/utilities/getEntityPermissions/entityDocExists.d.ts.map +1 -1
  1457. package/dist/utilities/getEntityPermissions/entityDocExists.js +36 -5
  1458. package/dist/utilities/getEntityPermissions/entityDocExists.js.map +1 -1
  1459. package/dist/utilities/getEntityPermissions/getEntityPermissions.d.ts.map +1 -1
  1460. package/dist/utilities/getEntityPermissions/getEntityPermissions.js +1 -0
  1461. package/dist/utilities/getEntityPermissions/getEntityPermissions.js.map +1 -1
  1462. package/dist/utilities/getNextVersion.d.ts +7 -0
  1463. package/dist/utilities/getNextVersion.d.ts.map +1 -0
  1464. package/dist/utilities/getNextVersion.js +20 -0
  1465. package/dist/utilities/getNextVersion.js.map +1 -0
  1466. package/dist/utilities/getObjectDotNotation.d.ts.map +1 -1
  1467. package/dist/utilities/getObjectDotNotation.js +7 -1
  1468. package/dist/utilities/getObjectDotNotation.js.map +1 -1
  1469. package/dist/utilities/getRequestOrigin.d.ts.map +1 -1
  1470. package/dist/utilities/getRequestOrigin.js.map +1 -1
  1471. package/dist/utilities/getSafeRedirect.d.ts.map +1 -1
  1472. package/dist/utilities/getSafeRedirect.js +16 -9
  1473. package/dist/utilities/getSafeRedirect.js.map +1 -1
  1474. package/dist/utilities/getTopLevelFieldNames.d.ts +2 -0
  1475. package/dist/utilities/getTopLevelFieldNames.d.ts.map +1 -0
  1476. package/dist/utilities/getTopLevelFieldNames.js +3 -0
  1477. package/dist/utilities/getTopLevelFieldNames.js.map +1 -0
  1478. package/dist/utilities/getUniqueFieldValue.d.ts +28 -0
  1479. package/dist/utilities/getUniqueFieldValue.d.ts.map +1 -0
  1480. package/dist/utilities/getUniqueFieldValue.js +27 -0
  1481. package/dist/utilities/getUniqueFieldValue.js.map +1 -0
  1482. package/dist/utilities/getVirtualFieldNames.d.ts +14 -0
  1483. package/dist/utilities/getVirtualFieldNames.d.ts.map +1 -0
  1484. package/dist/utilities/getVirtualFieldNames.js +35 -0
  1485. package/dist/utilities/getVirtualFieldNames.js.map +1 -0
  1486. package/dist/utilities/handleEndpoints.d.ts.map +1 -1
  1487. package/dist/utilities/handleEndpoints.js +8 -7
  1488. package/dist/utilities/handleEndpoints.js.map +1 -1
  1489. package/dist/utilities/headersWithCors.js +1 -1
  1490. package/dist/utilities/headersWithCors.js.map +1 -1
  1491. package/dist/utilities/killTransaction.d.ts +7 -0
  1492. package/dist/utilities/killTransaction.d.ts.map +1 -1
  1493. package/dist/utilities/killTransaction.js +7 -0
  1494. package/dist/utilities/killTransaction.js.map +1 -1
  1495. package/dist/utilities/logError.d.ts.map +1 -1
  1496. package/dist/utilities/logError.js +5 -2
  1497. package/dist/utilities/logError.js.map +1 -1
  1498. package/dist/utilities/nextJsDevReloadStrategy.d.ts +7 -0
  1499. package/dist/utilities/nextJsDevReloadStrategy.d.ts.map +1 -0
  1500. package/dist/utilities/nextJsDevReloadStrategy.js +62 -0
  1501. package/dist/utilities/nextJsDevReloadStrategy.js.map +1 -0
  1502. package/dist/utilities/parseDocumentID.d.ts +4 -1
  1503. package/dist/utilities/parseDocumentID.d.ts.map +1 -1
  1504. package/dist/utilities/parseDocumentID.js +7 -1
  1505. package/dist/utilities/parseDocumentID.js.map +1 -1
  1506. package/dist/utilities/parseParams/index.d.ts.map +1 -1
  1507. package/dist/utilities/parseParams/index.js +3 -1
  1508. package/dist/utilities/parseParams/index.js.map +1 -1
  1509. package/dist/utilities/sanitizeUploadPrefix.d.ts +5 -0
  1510. package/dist/utilities/sanitizeUploadPrefix.d.ts.map +1 -0
  1511. package/dist/utilities/sanitizeUploadPrefix.js +18 -0
  1512. package/dist/utilities/sanitizeUploadPrefix.js.map +1 -0
  1513. package/dist/utilities/sharedInputSchemas.d.ts +52 -0
  1514. package/dist/utilities/sharedInputSchemas.d.ts.map +1 -0
  1515. package/dist/utilities/sharedInputSchemas.js +101 -0
  1516. package/dist/utilities/sharedInputSchemas.js.map +1 -0
  1517. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts +4 -0
  1518. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.d.ts.map +1 -0
  1519. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js +262 -0
  1520. package/dist/utilities/telemetry/featureInfo/getFeatureInfo.js.map +1 -0
  1521. package/dist/utilities/telemetry/featureInfo/types.d.ts +63 -0
  1522. package/dist/utilities/telemetry/featureInfo/types.d.ts.map +1 -0
  1523. package/dist/utilities/telemetry/featureInfo/types.js +3 -0
  1524. package/dist/utilities/telemetry/featureInfo/types.js.map +1 -0
  1525. package/dist/utilities/telemetry/getProjectContext.d.ts +16 -0
  1526. package/dist/utilities/telemetry/getProjectContext.d.ts.map +1 -0
  1527. package/dist/utilities/telemetry/getProjectContext.js +43 -0
  1528. package/dist/utilities/telemetry/getProjectContext.js.map +1 -0
  1529. package/dist/utilities/telemetry/index.d.ts +6 -1
  1530. package/dist/utilities/telemetry/index.d.ts.map +1 -1
  1531. package/dist/utilities/telemetry/index.js +21 -1
  1532. package/dist/utilities/telemetry/index.js.map +1 -1
  1533. package/dist/utilities/transformPointDataToPayload.d.ts +7 -0
  1534. package/dist/utilities/transformPointDataToPayload.d.ts.map +1 -0
  1535. package/dist/utilities/transformPointDataToPayload.js +28 -0
  1536. package/dist/utilities/transformPointDataToPayload.js.map +1 -0
  1537. package/dist/utilities/traverseFields.d.ts.map +1 -1
  1538. package/dist/utilities/traverseFields.js +25 -36
  1539. package/dist/utilities/traverseFields.js.map +1 -1
  1540. package/dist/utilities/unflatten.d.ts.map +1 -1
  1541. package/dist/utilities/unflatten.js +21 -9
  1542. package/dist/utilities/unflatten.js.map +1 -1
  1543. package/dist/utilities/unflattenData.d.ts +3 -0
  1544. package/dist/utilities/unflattenData.d.ts.map +1 -0
  1545. package/dist/utilities/unflattenData.js +14 -0
  1546. package/dist/utilities/unflattenData.js.map +1 -0
  1547. package/dist/utilities/zod.d.ts +5 -0
  1548. package/dist/utilities/zod.d.ts.map +1 -0
  1549. package/dist/utilities/zod.js +21 -0
  1550. package/dist/utilities/zod.js.map +1 -0
  1551. package/dist/versions/allLocalesPublicationStatus.d.ts +38 -0
  1552. package/dist/versions/allLocalesPublicationStatus.d.ts.map +1 -0
  1553. package/dist/versions/allLocalesPublicationStatus.js +57 -0
  1554. package/dist/versions/allLocalesPublicationStatus.js.map +1 -0
  1555. package/dist/versions/deleteCollectionVersions.d.ts +11 -1
  1556. package/dist/versions/deleteCollectionVersions.d.ts.map +1 -1
  1557. package/dist/versions/deleteCollectionVersions.js +10 -3
  1558. package/dist/versions/deleteCollectionVersions.js.map +1 -1
  1559. package/dist/versions/deleteScheduledPublishJobs.d.ts +5 -1
  1560. package/dist/versions/deleteScheduledPublishJobs.d.ts.map +1 -1
  1561. package/dist/versions/deleteScheduledPublishJobs.js +11 -5
  1562. package/dist/versions/deleteScheduledPublishJobs.js.map +1 -1
  1563. package/dist/versions/drafts/appendVersionToQueryKey.d.ts +1 -0
  1564. package/dist/versions/drafts/appendVersionToQueryKey.d.ts.map +1 -1
  1565. package/dist/versions/drafts/appendVersionToQueryKey.js +6 -12
  1566. package/dist/versions/drafts/appendVersionToQueryKey.js.map +1 -1
  1567. package/dist/versions/getLatestGlobalVersion.d.ts.map +1 -1
  1568. package/dist/versions/getLatestGlobalVersion.js +10 -2
  1569. package/dist/versions/getLatestGlobalVersion.js.map +1 -1
  1570. package/dist/versions/getRestoredStatusesToAuthorize.d.ts +9 -0
  1571. package/dist/versions/getRestoredStatusesToAuthorize.d.ts.map +1 -0
  1572. package/dist/versions/getRestoredStatusesToAuthorize.js +22 -0
  1573. package/dist/versions/getRestoredStatusesToAuthorize.js.map +1 -0
  1574. package/dist/versions/isInheritedReadVersionsAccess.d.ts +6 -0
  1575. package/dist/versions/isInheritedReadVersionsAccess.d.ts.map +1 -0
  1576. package/dist/versions/isInheritedReadVersionsAccess.js +30 -0
  1577. package/dist/versions/isInheritedReadVersionsAccess.js.map +1 -0
  1578. package/dist/versions/payloadPackageList.d.ts.map +1 -1
  1579. package/dist/versions/payloadPackageList.js +0 -1
  1580. package/dist/versions/payloadPackageList.js.map +1 -1
  1581. package/dist/versions/schedule/job.d.ts +2 -2
  1582. package/dist/versions/schedule/job.d.ts.map +1 -1
  1583. package/dist/versions/schedule/job.js +12 -8
  1584. package/dist/versions/schedule/job.js.map +1 -1
  1585. package/dist/versions/schedule/types.d.ts +5 -1
  1586. package/dist/versions/schedule/types.d.ts.map +1 -1
  1587. package/dist/versions/schedule/types.js.map +1 -1
  1588. package/package.json +30 -13
  1589. package/skills/payload/SKILL.md +544 -0
  1590. package/skills/payload/reference/ACCESS-CONTROL-ADVANCED.md +718 -0
  1591. package/skills/payload/reference/ACCESS-CONTROL.md +700 -0
  1592. package/skills/payload/reference/ADAPTERS.md +312 -0
  1593. package/skills/payload/reference/ADVANCED.md +393 -0
  1594. package/skills/payload/reference/COLLECTIONS.md +336 -0
  1595. package/skills/payload/reference/ENDPOINTS.md +650 -0
  1596. package/skills/payload/reference/FIELD-TYPE-GUARDS.md +553 -0
  1597. package/skills/payload/reference/FIELDS.md +748 -0
  1598. package/skills/payload/reference/HOOKS.md +186 -0
  1599. package/skills/payload/reference/PLUGIN-DEVELOPMENT.md +1445 -0
  1600. package/skills/payload/reference/QUERIES.md +282 -0
  1601. package/dist/auth/cookies.spec.js +0 -34
  1602. package/dist/auth/cookies.spec.js.map +0 -1
  1603. package/dist/auth/strategies/local/authenticate.spec.js +0 -83
  1604. package/dist/auth/strategies/local/authenticate.spec.js.map +0 -1
  1605. package/dist/bin/build.d.ts.map +0 -1
  1606. package/dist/bin/build.js.map +0 -1
  1607. package/dist/bin/build.spec.js +0 -594
  1608. package/dist/bin/build.spec.js.map +0 -1
  1609. package/dist/bin/frameworkConventions.d.ts.map +0 -1
  1610. package/dist/bin/frameworkConventions.js.map +0 -1
  1611. package/dist/bin/generateImportMap/generateImportMap.spec.js +0 -176
  1612. package/dist/bin/generateImportMap/generateImportMap.spec.js.map +0 -1
  1613. package/dist/bin/generateImportMap/index.d.ts.map +0 -1
  1614. package/dist/bin/generateImportMap/index.js.map +0 -1
  1615. package/dist/bin/generateImportMap/iterateCollections.d.ts.map +0 -1
  1616. package/dist/bin/generateImportMap/iterateCollections.js.map +0 -1
  1617. package/dist/bin/generateImportMap/iterateConfig.d.ts.map +0 -1
  1618. package/dist/bin/generateImportMap/iterateConfig.js.map +0 -1
  1619. package/dist/bin/generateImportMap/iterateFields.d.ts.map +0 -1
  1620. package/dist/bin/generateImportMap/iterateFields.js.map +0 -1
  1621. package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +0 -1
  1622. package/dist/bin/generateImportMap/iterateGlobals.js.map +0 -1
  1623. package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.d.ts.map +0 -1
  1624. package/dist/bin/generateImportMap/utilities/addPayloadComponentToImportMap.js.map +0 -1
  1625. package/dist/bin/generateImportMap/utilities/getFromImportMap.d.ts.map +0 -1
  1626. package/dist/bin/generateImportMap/utilities/getFromImportMap.js.map +0 -1
  1627. package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts.map +0 -1
  1628. package/dist/bin/generateImportMap/utilities/getImportMapToBaseDirPath.js.map +0 -1
  1629. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.d.ts.map +0 -1
  1630. package/dist/bin/generateImportMap/utilities/parsePayloadComponent.js.map +0 -1
  1631. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.d.ts.map +0 -1
  1632. package/dist/bin/generateImportMap/utilities/resolveImportMapFilePath.js.map +0 -1
  1633. package/dist/bin/generateTypes.d.ts +0 -6
  1634. package/dist/bin/generateTypes.d.ts.map +0 -1
  1635. package/dist/bin/generateTypes.js.map +0 -1
  1636. package/dist/bin/index.d.ts +0 -2
  1637. package/dist/bin/index.d.ts.map +0 -1
  1638. package/dist/bin/index.js +0 -200
  1639. package/dist/bin/index.js.map +0 -1
  1640. package/dist/bin/info.d.ts +0 -2
  1641. package/dist/bin/info.d.ts.map +0 -1
  1642. package/dist/bin/info.js +0 -56
  1643. package/dist/bin/info.js.map +0 -1
  1644. package/dist/bin/loadEnv.d.ts.map +0 -1
  1645. package/dist/bin/loadEnv.js.map +0 -1
  1646. package/dist/bin/migrate.d.ts +0 -15
  1647. package/dist/bin/migrate.d.ts.map +0 -1
  1648. package/dist/bin/migrate.js +0 -102
  1649. package/dist/bin/migrate.js.map +0 -1
  1650. package/dist/collections/config/defaults.spec.js +0 -47
  1651. package/dist/collections/config/defaults.spec.js.map +0 -1
  1652. package/dist/collections/config/sanitize.spec.js +0 -120
  1653. package/dist/collections/config/sanitize.spec.js.map +0 -1
  1654. package/dist/collections/config/useAsTitle.spec.js +0 -187
  1655. package/dist/collections/config/useAsTitle.spec.js.map +0 -1
  1656. package/dist/database/defaultUpdateJobs.d.ts +0 -3
  1657. package/dist/database/defaultUpdateJobs.d.ts.map +0 -1
  1658. package/dist/database/defaultUpdateJobs.js +0 -41
  1659. package/dist/database/defaultUpdateJobs.js.map +0 -1
  1660. package/dist/database/migrations/findMigrationDir.spec.js +0 -47
  1661. package/dist/database/migrations/findMigrationDir.spec.js.map +0 -1
  1662. package/dist/fields/baseFields/slug/countVersions.d.ts +0 -13
  1663. package/dist/fields/baseFields/slug/countVersions.d.ts.map +0 -1
  1664. package/dist/fields/baseFields/slug/countVersions.js +0 -27
  1665. package/dist/fields/baseFields/slug/countVersions.js.map +0 -1
  1666. package/dist/fields/config/reservedFieldNames.spec.js +0 -149
  1667. package/dist/fields/config/reservedFieldNames.spec.js.map +0 -1
  1668. package/dist/fields/config/sanitize.spec.js +0 -745
  1669. package/dist/fields/config/sanitize.spec.js.map +0 -1
  1670. package/dist/fields/isFieldDisabled.spec.js +0 -134
  1671. package/dist/fields/isFieldDisabled.spec.js.map +0 -1
  1672. package/dist/fields/validations.spec.js +0 -990
  1673. package/dist/fields/validations.spec.js.map +0 -1
  1674. package/dist/globals/config/sanitize.spec.js +0 -43
  1675. package/dist/globals/config/sanitize.spec.js.map +0 -1
  1676. package/dist/hierarchy/utils/getLocalizedValue.spec.js +0 -250
  1677. package/dist/hierarchy/utils/getLocalizedValue.spec.js.map +0 -1
  1678. package/dist/locked-documents/config.spec.js +0 -298
  1679. package/dist/locked-documents/config.spec.js.map +0 -1
  1680. package/dist/uploads/checkFileAccess.spec.js +0 -109
  1681. package/dist/uploads/checkFileAccess.spec.js.map +0 -1
  1682. package/dist/uploads/cropImage.d.ts +0 -30
  1683. package/dist/uploads/cropImage.d.ts.map +0 -1
  1684. package/dist/uploads/cropImage.js +0 -58
  1685. package/dist/uploads/cropImage.js.map +0 -1
  1686. package/dist/uploads/endpoints/getFileFromURL.d.ts +0 -3
  1687. package/dist/uploads/endpoints/getFileFromURL.d.ts.map +0 -1
  1688. package/dist/uploads/endpoints/getFileFromURL.js.map +0 -1
  1689. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js +0 -29
  1690. package/dist/uploads/fetchAPI-multipart/isEligibleRequest.spec.js.map +0 -1
  1691. package/dist/uploads/getExternalFile.d.ts +0 -10
  1692. package/dist/uploads/getExternalFile.d.ts.map +0 -1
  1693. package/dist/uploads/getExternalFile.js +0 -73
  1694. package/dist/uploads/getExternalFile.js.map +0 -1
  1695. package/dist/uploads/getSafeFilename.spec.js +0 -274
  1696. package/dist/uploads/getSafeFilename.spec.js.map +0 -1
  1697. package/dist/uploads/image-resizing/createImageSize.d.ts +0 -24
  1698. package/dist/uploads/image-resizing/createImageSize.d.ts.map +0 -1
  1699. package/dist/uploads/image-resizing/createImageSize.js +0 -23
  1700. package/dist/uploads/image-resizing/createImageSize.js.map +0 -1
  1701. package/dist/uploads/image-resizing/createImageSizes.d.ts +0 -39
  1702. package/dist/uploads/image-resizing/createImageSizes.d.ts.map +0 -1
  1703. package/dist/uploads/image-resizing/createImageSizes.js +0 -208
  1704. package/dist/uploads/image-resizing/createImageSizes.js.map +0 -1
  1705. package/dist/uploads/image-resizing/extractHeightFromImage.d.ts +0 -9
  1706. package/dist/uploads/image-resizing/extractHeightFromImage.d.ts.map +0 -1
  1707. package/dist/uploads/image-resizing/extractHeightFromImage.js +0 -13
  1708. package/dist/uploads/image-resizing/extractHeightFromImage.js.map +0 -1
  1709. package/dist/uploads/image-resizing/generateImageSizeFilename.d.ts.map +0 -1
  1710. package/dist/uploads/image-resizing/generateImageSizeFilename.js.map +0 -1
  1711. package/dist/uploads/image-resizing/getImageResizeAction.d.ts +0 -24
  1712. package/dist/uploads/image-resizing/getImageResizeAction.d.ts.map +0 -1
  1713. package/dist/uploads/image-resizing/getImageResizeAction.js +0 -56
  1714. package/dist/uploads/image-resizing/getImageResizeAction.js.map +0 -1
  1715. package/dist/uploads/image-resizing/parseFilename.d.ts.map +0 -1
  1716. package/dist/uploads/image-resizing/parseFilename.js.map +0 -1
  1717. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts +0 -11
  1718. package/dist/uploads/image-resizing/sanitizeResizeConfig.d.ts.map +0 -1
  1719. package/dist/uploads/image-resizing/sanitizeResizeConfig.js +0 -20
  1720. package/dist/uploads/image-resizing/sanitizeResizeConfig.js.map +0 -1
  1721. package/dist/uploads/matchMimeType.spec.js +0 -66
  1722. package/dist/uploads/matchMimeType.spec.js.map +0 -1
  1723. package/dist/uploads/mimeTypeValidator.spec.js +0 -84
  1724. package/dist/uploads/mimeTypeValidator.spec.js.map +0 -1
  1725. package/dist/uploads/optionallyAppendMetadata.d.ts +0 -12
  1726. package/dist/uploads/optionallyAppendMetadata.d.ts.map +0 -1
  1727. package/dist/uploads/optionallyAppendMetadata.js +0 -17
  1728. package/dist/uploads/optionallyAppendMetadata.js.map +0 -1
  1729. package/dist/uploads/tempFile.d.ts +0 -7
  1730. package/dist/uploads/tempFile.d.ts.map +0 -1
  1731. package/dist/uploads/tempFile.js +0 -39
  1732. package/dist/uploads/tempFile.js.map +0 -1
  1733. package/dist/utilities/addDataAndFileToRequest.spec.js +0 -41
  1734. package/dist/utilities/addDataAndFileToRequest.spec.js.map +0 -1
  1735. package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js +0 -563
  1736. package/dist/utilities/addSelectGenericsToGeneratedTypes.spec.js.map +0 -1
  1737. package/dist/utilities/combineWhereConstraints.spec.js +0 -131
  1738. package/dist/utilities/combineWhereConstraints.spec.js.map +0 -1
  1739. package/dist/utilities/configToJSONSchema.spec.js +0 -1162
  1740. package/dist/utilities/configToJSONSchema.spec.js.map +0 -1
  1741. package/dist/utilities/createLocalReq.d.ts +0 -15
  1742. package/dist/utilities/createLocalReq.d.ts.map +0 -1
  1743. package/dist/utilities/createLocalReq.js +0 -110
  1744. package/dist/utilities/createLocalReq.js.map +0 -1
  1745. package/dist/utilities/createLocalReq.spec.js +0 -125
  1746. package/dist/utilities/createLocalReq.spec.js.map +0 -1
  1747. package/dist/utilities/filterDataToSelectedLocales.spec.js +0 -529
  1748. package/dist/utilities/filterDataToSelectedLocales.spec.js.map +0 -1
  1749. package/dist/utilities/flattenTopLevelFields.spec.js +0 -659
  1750. package/dist/utilities/flattenTopLevelFields.spec.js.map +0 -1
  1751. package/dist/utilities/formatAdminURL.spec.js +0 -168
  1752. package/dist/utilities/formatAdminURL.spec.js.map +0 -1
  1753. package/dist/utilities/formatErrors.spec.js +0 -101
  1754. package/dist/utilities/formatErrors.spec.js.map +0 -1
  1755. package/dist/utilities/formatLabels.spec.js +0 -38
  1756. package/dist/utilities/formatLabels.spec.js.map +0 -1
  1757. package/dist/utilities/getFieldByPath.spec.js +0 -157
  1758. package/dist/utilities/getFieldByPath.spec.js.map +0 -1
  1759. package/dist/utilities/getFieldPermissions.spec.js +0 -78
  1760. package/dist/utilities/getFieldPermissions.spec.js.map +0 -1
  1761. package/dist/utilities/getRequestOrigin.spec.js +0 -151
  1762. package/dist/utilities/getRequestOrigin.spec.js.map +0 -1
  1763. package/dist/utilities/getSafeRedirect.spec.js +0 -84
  1764. package/dist/utilities/getSafeRedirect.spec.js.map +0 -1
  1765. package/dist/utilities/isURLAllowed.spec.js +0 -78
  1766. package/dist/utilities/isURLAllowed.spec.js.map +0 -1
  1767. package/dist/utilities/isolateObjectProperty.spec.js +0 -120
  1768. package/dist/utilities/isolateObjectProperty.spec.js.map +0 -1
  1769. package/dist/utilities/mergeLocalizedData.spec.js +0 -1108
  1770. package/dist/utilities/mergeLocalizedData.spec.js.map +0 -1
  1771. package/dist/utilities/optionsAreEqual.spec.js +0 -319
  1772. package/dist/utilities/optionsAreEqual.spec.js.map +0 -1
  1773. package/dist/utilities/parseParams/index.spec.js +0 -384
  1774. package/dist/utilities/parseParams/index.spec.js.map +0 -1
  1775. package/dist/utilities/profiling.spec.js +0 -53
  1776. package/dist/utilities/profiling.spec.js.map +0 -1
  1777. package/dist/utilities/sanitizePermissions.spec.js +0 -1639
  1778. package/dist/utilities/sanitizePermissions.spec.js.map +0 -1
  1779. package/dist/utilities/sanitizeUserDataForEmail.spec.js +0 -134
  1780. package/dist/utilities/sanitizeUserDataForEmail.spec.js.map +0 -1
  1781. package/dist/utilities/telemetry/index.spec.js +0 -43
  1782. package/dist/utilities/telemetry/index.spec.js.map +0 -1
  1783. package/dist/utilities/traverseFields.spec.js +0 -53
  1784. package/dist/utilities/traverseFields.spec.js.map +0 -1
  1785. package/dist/utilities/validateTimezones.spec.js +0 -493
  1786. package/dist/utilities/validateTimezones.spec.js.map +0 -1
  1787. /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.d.ts +0 -0
  1788. /package/dist/{bin → cli/commands/generateImportMap}/frameworkConventions.js +0 -0
  1789. /package/dist/{bin → cli/commands}/generateImportMap/iterateCollections.js +0 -0
  1790. /package/dist/{bin → cli/commands}/generateImportMap/iterateFields.js +0 -0
  1791. /package/dist/{bin → cli/commands}/generateImportMap/iterateGlobals.js +0 -0
  1792. /package/dist/{bin → cli/commands}/generateImportMap/utilities/addPayloadComponentToImportMap.js +0 -0
  1793. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getFromImportMap.js +0 -0
  1794. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.d.ts +0 -0
  1795. /package/dist/{bin → cli/commands}/generateImportMap/utilities/getImportMapToBaseDirPath.js +0 -0
  1796. /package/dist/{bin → cli/commands}/generateImportMap/utilities/parsePayloadComponent.js +0 -0
  1797. /package/dist/{bin → cli/commands}/generateImportMap/utilities/resolveImportMapFilePath.d.ts +0 -0
  1798. /package/dist/{bin → cli/runtime}/loadEnv.d.ts +0 -0
  1799. /package/dist/uploads/{image-resizing/generateImageSizeFilename.d.ts → generateImageSizeFilename.d.ts} +0 -0
  1800. /package/dist/uploads/{image-resizing/generateImageSizeFilename.js → generateImageSizeFilename.js} +0 -0
  1801. /package/dist/uploads/{image-resizing/parseFilename.d.ts → parseFilename.d.ts} +0 -0
  1802. /package/dist/uploads/{image-resizing/parseFilename.js → parseFilename.js} +0 -0
@@ -1,4 +1,5 @@
1
1
  import type { ClientTranslationKeys, DefaultTranslationsObject, I18n, I18nClient, I18nOptions, TFunction } from '@payloadcms/translations';
2
+ import type { StandardJSONSchemaV1, StandardSchemaV1 } from '@standard-schema/spec';
2
3
  import type { BusboyConfig } from 'busboy';
3
4
  import type GraphQL from 'graphql';
4
5
  import type { GraphQLFormattedError } from 'graphql';
@@ -6,24 +7,23 @@ import type { JSONSchema4 } from 'json-schema';
6
7
  import type { Metadata } from 'next';
7
8
  import type { DestinationStream, Level, LoggerOptions } from 'pino';
8
9
  import type React from 'react';
9
- import type { default as sharp } from 'sharp';
10
- import type { DeepRequired } from 'ts-essentials';
11
10
  import type { ComponentRenderer } from '../admin/adapters/render.js';
12
11
  import type { ServerAdapter } from '../admin/adapters/server.js';
13
12
  import type { RichTextAdapterProvider } from '../admin/RichText.js';
14
13
  import type { CustomStatus, DocumentSubViewTypes, DocumentTabConfig, DocumentViewServerProps, PublishButtonClientProps, PublishButtonServerProps, RichTextAdapter, UnpublishButtonClientProps, UnpublishButtonServerProps } from '../admin/types.js';
15
14
  import type { AdminViewConfig, ViewTypes, VisibleEntities } from '../admin/views/index.js';
16
15
  import type { SanitizedPermissions } from '../auth/index.js';
17
- import type { AddToImportMap, ImportMap, Imports, InternalImportMap } from '../bin/generateImportMap/index.js';
18
- import type { Collection, CollectionConfig, SanitizedCollectionConfig } from '../collections/config/types.js';
16
+ import type { AddToImportMap, ImportMap, Imports, InternalImportMap } from '../cli/commands/generateImportMap/generateImportMap.js';
17
+ import type { Collection, CollectionAccess, CollectionConfig, SanitizedCollectionConfig } from '../collections/config/types.js';
19
18
  import type { DatabaseAdapterResult } from '../database/types.js';
20
19
  import type { EmailAdapter, SendEmailOptions } from '../email/types.js';
21
20
  import type { ErrorName } from '../errors/types.js';
22
- import type { GlobalConfig, Globals, SanitizedGlobalConfig } from '../globals/config/types.js';
21
+ import type { GlobalAccess, GlobalConfig, Globals, SanitizedGlobalConfig } from '../globals/config/types.js';
23
22
  import type { Block, ClientField, DataFromWidgetSlug, DefaultDocumentIDType, Field, FlattenedBlock, JobsConfig, KVAdapterResult, Payload, RegisteredPlugins, RequestContext, SelectField, TypedWidget, User, WidgetSlug } from '../index.js';
24
23
  import type { QueryPreset, QueryPresetConstraints } from '../query-presets/types.js';
25
24
  import type { SanitizedJobsConfig } from '../queues/config/types/index.js';
26
- import type { PayloadRequest, Where } from '../types/index.js';
25
+ import type { MaybePromise, PayloadRequest, Where } from '../types/index.js';
26
+ import type { UploadTransformer } from '../uploads/transformers/types.js';
27
27
  import type { PayloadLogger } from '../utilities/logger.js';
28
28
  /**
29
29
  * The string path pointing to the React component. If one of the generics is `never`, you effectively mark it as a server-only or client-only component.
@@ -48,18 +48,81 @@ export type ResolvedComponent<TComponentServerProps extends never | object, TCom
48
48
  Component: React.FC<TComponentClientProps | TComponentServerProps>;
49
49
  serverProps?: TComponentServerProps;
50
50
  };
51
- export type BinScriptConfig = {
52
- key: string;
53
- scriptPath: string;
51
+ /** Shared resources used while the Payload CLI is running. */
52
+ export type CLIRuntime = {
53
+ /** Directory containing the Payload config, used to resolve relative command paths. */
54
+ configDir: string;
55
+ destroy: () => Promise<void>;
56
+ getConfig: () => Promise<SanitizedConfig>;
57
+ getPayload: (options?: Omit<InitOptions, 'config'>) => Promise<Payload>;
58
+ readonly isScheduled: boolean;
59
+ markScheduled: () => void;
54
60
  };
55
- export type BinScript = (config: SanitizedConfig) => Promise<void> | void;
61
+ export type CLICommandDescription = {
62
+ aliases?: string[];
63
+ description: string;
64
+ examples?: string[];
65
+ inputSchema: Record<string, unknown>;
66
+ name: string;
67
+ };
68
+ export type CLIGlobalOptionDescription = {
69
+ description: string;
70
+ flags: string;
71
+ };
72
+ export type CLIHelp = {
73
+ commands: CLICommandDescription[];
74
+ globalOptions: CLIGlobalOptionDescription[];
75
+ output: (args?: {
76
+ command?: string;
77
+ }) => void;
78
+ };
79
+ export type CLIInputSchema<Input extends Record<string, unknown> = Record<string, unknown>, Output extends Record<string, unknown> = Input> = StandardJSONSchemaV1<Input, Output> & StandardSchemaV1<Input, Output>;
80
+ export type CLIFieldOverride = 'argument' | {
81
+ flags?: string;
82
+ parse?: (value: string, previous: unknown) => unknown;
83
+ type?: 'option';
84
+ } | {
85
+ parse?: (value: string, previous: unknown) => unknown;
86
+ position?: number;
87
+ syntax?: string;
88
+ type: 'argument';
89
+ } | false;
90
+ /** A schema-backed command definition created with `defineCLICommand`. */
91
+ export type CLICommand = {
92
+ aliases?: string[];
93
+ allowUnknownOption: boolean;
94
+ cli: false | Partial<Record<string, CLIFieldOverride>>;
95
+ description: string;
96
+ examples?: string[];
97
+ handler: (context: {
98
+ args: Record<string, unknown>;
99
+ getConfig: CLIRuntime['getConfig'];
100
+ getPayload: CLIRuntime['getPayload'];
101
+ help: CLIHelp;
102
+ isJSON: boolean;
103
+ }) => MaybePromise<CLICommandResult | number | void>;
104
+ helpGroup?: string;
105
+ input: CLIInputSchema;
106
+ readonly schema: Record<string, unknown>;
107
+ };
108
+ /** Structured data and an optional exit code returned by a Payload CLI command. */
109
+ export type CLICommandResult = {
110
+ /** Process exit code. Omit this, or use `0`, when the command succeeds. */
111
+ exitCode?: number;
112
+ /** Data included under `result` when the command uses JSON output. */
113
+ result?: unknown;
114
+ };
115
+ /** A CLI command definition, import reference, or `false` to disable the command. */
116
+ export type CLICommandEntry = CLICommand | PayloadComponent;
117
+ /** CLI commands keyed by their command-line name. */
118
+ export type CLICommands = Record<string, CLICommandEntry>;
56
119
  type Prettify<T> = {
57
120
  [K in keyof T]: T[K];
58
121
  } & NonNullable<unknown>;
59
122
  /**
60
123
  * @experimental The plugin API (`order`, `slug`, `options`) may change before being declared stable.
61
124
  */
62
- export type Plugin = ((config: Config) => Config | Promise<Config>) & {
125
+ export type Plugin = ((config: Config) => MaybePromise<Config>) & {
63
126
  /** @experimental Plugin options exposed for cross-plugin mutation. */
64
127
  options?: Record<string, unknown>;
65
128
  /** @experimental Execution order - lower values run first. Defaults to 0. */
@@ -168,14 +231,6 @@ export type OGImageConfig = {
168
231
  url: string;
169
232
  width?: number | string;
170
233
  };
171
- /**
172
- * @todo find a way to remove the deep clone here.
173
- * It can probably be removed after the `DeepRequired` from `Config` to `SanitizedConfig` is removed.
174
- * Same with `CollectionConfig` to `SanitizedCollectionConfig`.
175
- */
176
- type DeepClone<T> = T extends object ? {
177
- [K in keyof T]: DeepClone<T[K]>;
178
- } : T;
179
234
  export type MetaConfig = {
180
235
  /**
181
236
  * When `static`, a pre-made image will be used for all pages.
@@ -189,7 +244,7 @@ export type MetaConfig = {
189
244
  * @example `" - Custom CMS"`
190
245
  */
191
246
  titleSuffix?: string;
192
- } & DeepClone<Metadata>;
247
+ } & Metadata;
193
248
  export type ServerOnlyLivePreviewProperties = keyof Pick<RootLivePreviewConfig, 'url'>;
194
249
  type GeneratePreviewURLOptions = {
195
250
  locale: string;
@@ -277,6 +332,8 @@ export type AccessArgs<TData = any> = {
277
332
  isReadingStaticFile?: boolean;
278
333
  /** The original request that requires an access check */
279
334
  req: PayloadRequest;
335
+ /** The slug of the Collection or Global document being accessed */
336
+ slug: string;
280
337
  };
281
338
  /**
282
339
  * Access function runs on the server
@@ -285,6 +342,10 @@ export type AccessArgs<TData = any> = {
285
342
  * @see https://payloadcms.com/docs/access-control/overview
286
343
  */
287
344
  export type Access<TData = any> = (args: AccessArgs<TData>) => AccessResult | Promise<AccessResult>;
345
+ export type BaseAccess = {
346
+ collections?: CollectionAccess;
347
+ globals?: GlobalAccess;
348
+ };
288
349
  /** Web Request/Response model, but the req has more payload specific properties added to it. */
289
350
  export type PayloadHandler = (req: PayloadRequest) => Promise<Response> | Response;
290
351
  /**
@@ -370,6 +431,10 @@ export type ServerProps = {
370
431
  * Optional because non-framework contexts (jobs, scripts, tests) may not have an adapter attached.
371
432
  */
372
433
  readonly server: ServerAdapter;
434
+ /**
435
+ * Authenticated user with field read access applied. Use for values sent to the client.
436
+ * For access-control checks use the full principal at `req.user`.
437
+ */
373
438
  readonly user?: User;
374
439
  readonly viewType?: ViewTypes;
375
440
  readonly visibleEntities?: VisibleEntities;
@@ -432,14 +497,6 @@ export type BaseLocalizationConfig = {
432
497
  * @example `"en"`
433
498
  */
434
499
  defaultLocale: string;
435
- /**
436
- * Change the locale used by the default Publish button.
437
- * If set to `all`, all locales will be published.
438
- * If set to `active`, only the locale currently being edited will be published.
439
- * The non-default option will be available via the secondary button.
440
- * @default 'all'
441
- */
442
- defaultLocalePublishOption?: 'active' | 'all';
443
500
  /** Set to `true` to let missing values in localised fields fall back to the values in `defaultLocale`
444
501
  *
445
502
  * If false, then no requests will fallback unless a fallbackLocale is specified in the request.
@@ -479,7 +536,7 @@ export type SanitizedLocalizationConfig = Prettify<{
479
536
  * @example `["en", "es", "fr", "nl", "de", "jp"]`
480
537
  */
481
538
  localeCodes: string[];
482
- } & LocalizationConfigWithLabels>;
539
+ } & Omit<LocalizationConfigWithLabels, 'fallback'> & Required<Pick<LocalizationConfigWithLabels, 'fallback'>>>;
483
540
  /**
484
541
  * @see https://payloadcms.com/docs/configuration/localization#localization
485
542
  */
@@ -489,7 +546,6 @@ export type LabelFunction<TTranslationKeys = ClientTranslationKeys> = (args: {
489
546
  t: TFunction<TTranslationKeys>;
490
547
  }) => string;
491
548
  export type StaticLabel = Record<string, string> | string;
492
- export type SharpDependency = (input?: ArrayBuffer | Buffer | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | string | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array, options?: sharp.SharpOptions) => sharp.Sharp;
493
549
  export type CORSConfig = {
494
550
  headers?: string[];
495
551
  origins: '*' | string[];
@@ -512,7 +568,7 @@ export type FetchAPIFileUploadOptions = {
512
568
  /**
513
569
  * Returns a HTTP 413 when the file is bigger than the size limit if `true`.
514
570
  * Otherwise, it will add a `truncated = true` to the resulting file structure.
515
- * @default false
571
+ * @default true
516
572
  */
517
573
  abortOnLimit?: boolean | undefined;
518
574
  /**
@@ -561,6 +617,12 @@ export type FetchAPIFileUploadOptions = {
561
617
  * // myFileName.ext --> myFileNamee.xt
562
618
  */
563
619
  preserveExtension?: boolean | number | undefined;
620
+ /**
621
+ * Maximum size in bytes for the complete raw multipart request, including files, fields, headers, and boundaries.
622
+ * Must be a non-negative safe integer. Set to `Infinity` to disable the request-wide limit.
623
+ * @default 50 * 1024 * 1024
624
+ */
625
+ requestSizeLimit?: number | undefined;
564
626
  /**
565
627
  * Response which will be send to client if file size limit exceeded when `abortOnLimit` set to `true`.
566
628
  * @default 'File size limit has been reached'
@@ -608,6 +670,15 @@ export type FetchAPIFileUploadOptions = {
608
670
  */
609
671
  useTempFiles?: boolean | undefined;
610
672
  } & Partial<BusboyConfig>;
673
+ export type GlobalUploadConfig = {
674
+ /**
675
+ * Ordered list of file transformers. Every eligible transformer joins the pipeline
676
+ * for a given upload or dynamic request in declaration order. Slugs must be unique.
677
+ *
678
+ * @see https://payloadcms.com/docs/upload/transformers
679
+ */
680
+ transformers?: UploadTransformer[];
681
+ } & FetchAPIFileUploadOptions;
611
682
  export type ErrorResult = {
612
683
  data?: any;
613
684
  errors: {
@@ -710,283 +781,409 @@ export type SidebarTab = {
710
781
  /** Unique identifier for override/disable */
711
782
  slug: string;
712
783
  };
713
- /**
714
- * This is the central configuration
715
- *
716
- * @see https://payloadcms.com/docs/configuration/overview
717
- */
718
- export type Config = {
719
- /** Configure admin dashboard */
720
- admin?: {
721
- /** Automatically log in as a user */
722
- autoLogin?: {
723
- /**
724
- * The email address of the user to login as
725
- */
726
- email?: string;
727
- /** The password of the user to login as. This is only needed if `prefillOnly` is set to true */
728
- password?: string;
729
- /**
730
- * If set to true, the login credentials will be prefilled but the user will still need to click the login button.
731
- *
732
- * @default false
733
- */
734
- prefillOnly?: boolean;
735
- /** The username of the user to login as */
736
- username?: string;
737
- } | false;
784
+ type RootAdminConfig = {
785
+ /** Automatically log in as a user */
786
+ autoLogin?: {
738
787
  /**
739
- * Automatically refresh user tokens for users logged into the dashboard
788
+ * The email address of the user to login as
789
+ */
790
+ email?: string;
791
+ /** The password of the user to login as. This is only needed if `prefillOnly` is set to true */
792
+ password?: string;
793
+ /**
794
+ * If set to true, the login credentials will be prefilled but the user will still need to click the login button.
740
795
  *
741
796
  * @default false
742
797
  */
743
- autoRefresh?: boolean;
744
- /** Set account profile picture. Options: gravatar, default or a custom React component. */
745
- avatar?: 'default' | 'gravatar' | {
746
- Component: PayloadComponent;
798
+ prefillOnly?: boolean;
799
+ /** The username of the user to login as */
800
+ username?: string;
801
+ } | false;
802
+ /**
803
+ * Automatically refresh user tokens for users logged into the dashboard
804
+ *
805
+ * @default false
806
+ */
807
+ autoRefresh?: boolean;
808
+ /** Set account profile picture. Options: gravatar, default or a custom React component. */
809
+ avatar?: 'default' | 'gravatar' | {
810
+ Component: PayloadComponent;
811
+ };
812
+ /**
813
+ * Add extra and/or replace built-in components with custom components
814
+ *
815
+ * @see https://payloadcms.com/docs/custom-components/overview
816
+ */
817
+ components?: {
818
+ /**
819
+ * Add custom components to the top right of the Admin Panel
820
+ */
821
+ actions?: CustomComponent[];
822
+ /**
823
+ * Add custom components after the collection overview
824
+ */
825
+ afterDashboard?: CustomComponent[];
826
+ /**
827
+ * Add custom components after the email/password field
828
+ */
829
+ afterLogin?: CustomComponent[];
830
+ /**
831
+ * Add custom components after the navigation section
832
+ */
833
+ afterNav?: CustomComponent[];
834
+ /**
835
+ * Add custom components after the navigation links
836
+ */
837
+ afterNavLinks?: CustomComponent[];
838
+ /**
839
+ * Add custom components before the collection overview
840
+ */
841
+ beforeDashboard?: CustomComponent[];
842
+ /**
843
+ * Add custom components before the email/password field
844
+ */
845
+ beforeLogin?: CustomComponent[];
846
+ /**
847
+ * Add custom components before the navigation section
848
+ */
849
+ beforeNav?: CustomComponent[];
850
+ /**
851
+ * Add custom components before the navigation links
852
+ */
853
+ beforeNavLinks?: CustomComponent[];
854
+ /** Replace graphical components */
855
+ graphics?: {
856
+ /** Replace the icon in the navigation */
857
+ Icon?: CustomComponent;
858
+ /** Replace the logo on the login page */
859
+ Logo?: CustomComponent;
747
860
  };
748
861
  /**
749
- * Add extra and/or replace built-in components with custom components
750
- *
751
- * @see https://payloadcms.com/docs/custom-components/overview
862
+ * Add custom header to top of page globally
752
863
  */
753
- components?: {
754
- /**
755
- * Add custom components to the top right of the Admin Panel
756
- */
757
- actions?: CustomComponent[];
758
- /**
759
- * Add custom components after the collection overview
760
- */
761
- afterDashboard?: CustomComponent[];
762
- /**
763
- * Add custom components after the email/password field
764
- */
765
- afterLogin?: CustomComponent[];
766
- /**
767
- * Add custom components after the navigation section
768
- */
769
- afterNav?: CustomComponent[];
770
- /**
771
- * Add custom components after the navigation links
772
- */
773
- afterNavLinks?: CustomComponent[];
774
- /**
775
- * Add custom components before the collection overview
776
- */
777
- beforeDashboard?: CustomComponent[];
778
- /**
779
- * Add custom components before the email/password field
780
- */
781
- beforeLogin?: CustomComponent[];
782
- /**
783
- * Add custom components before the navigation section
784
- */
785
- beforeNav?: CustomComponent[];
786
- /**
787
- * Add custom components before the navigation links
788
- */
789
- beforeNavLinks?: CustomComponent[];
790
- /** Replace graphical components */
791
- graphics?: {
792
- /** Replace the icon in the navigation */
793
- Icon?: CustomComponent;
794
- /** Replace the logo on the login page */
795
- Logo?: CustomComponent;
796
- };
797
- /**
798
- * Add custom header to top of page globally
799
- */
800
- header?: CustomComponent[];
801
- /** Replace logout related components */
802
- logout?: {
803
- /** Replace the logout button */
804
- Button?: CustomComponent;
805
- };
806
- /**
807
- * Replace the navigation with a custom component
808
- */
809
- Nav?: CustomComponent;
810
- /**
811
- * Wrap the admin dashboard in custom context providers
812
- */
813
- providers?: PayloadComponent<{
814
- children?: React.ReactNode;
815
- }, {
816
- children?: React.ReactNode;
817
- }>[];
818
- /**
819
- * Add custom menu items to the navigation menu accessible via the gear icon.
820
- * These components will be rendered in a popup menu above the logout button.
821
- */
822
- settingsMenu?: CustomComponent[];
823
- /** Sidebar configuration */
824
- sidebar?: {
825
- /** Extensible tab system */
826
- tabs?: SidebarTab[];
827
- };
828
- /**
829
- * Add custom items to the user menu popup in the admin panel header.
830
- * These components will be rendered in the Settings sub-popup of the user menu.
831
- * When empty or absent, the Settings sub-trigger is not shown.
832
- */
833
- userMenuSettingsItems?: UserMenuSettingsItem[];
834
- /**
835
- * Replace or modify top-level admin routes, or add new ones:
836
- * + `Account` - `/admin/account`
837
- * + `Dashboard` - `/admin`
838
- * + `:path` - `/admin/:path`
839
- */
840
- views?: {
841
- /** Add custom admin views */
842
- [key: string]: AdminViewConfig;
843
- /** Replace the account screen */
844
- account?: AdminViewConfig;
845
- /** Replace the admin homepage */
846
- dashboard?: AdminViewConfig;
847
- };
864
+ header?: CustomComponent[];
865
+ /** Replace logout related components */
866
+ logout?: {
867
+ /** Replace the logout button */
868
+ Button?: CustomComponent;
848
869
  };
849
- /** Extension point to add your custom data. Available in server and client. */
850
- custom?: Record<string, any>;
851
870
  /**
852
- * Customize the dashboard widgets
853
- * @experimental This prop is subject to change in future releases.
871
+ * Replace the navigation with a custom component
854
872
  */
855
- dashboard?: DashboardConfig;
856
- /** Global date format that will be used for all dates in the Admin panel. Any valid date-fns format pattern can be used. */
857
- dateFormat?: string;
873
+ Nav?: CustomComponent;
858
874
  /**
859
- * Each entry in this map generates an entry in the importMap.
875
+ * Wrap the admin dashboard in custom context providers
860
876
  */
861
- dependencies?: AdminDependencies;
877
+ providers?: PayloadComponent<{
878
+ children?: React.ReactNode;
879
+ }, {
880
+ children?: React.ReactNode;
881
+ }>[];
862
882
  /**
863
- * @deprecated
864
- * This option is deprecated and will be removed in v4.
865
- * To disable the admin panel itself, delete your `/app/(payload)/admin` directory.
866
- * To disable all REST API and GraphQL endpoints, delete your `/app/(payload)/api` directory.
867
- * Note: If you've modified the default paths via `admin.routes`, delete those directories instead.
883
+ * Add custom menu items to the navigation menu accessible via the gear icon.
884
+ * These components will be rendered in a popup menu above the logout button.
868
885
  */
869
- disable?: boolean;
870
- importMap?: {
871
- /**
872
- * Automatically generate component map during development
873
- * @default true
874
- */
875
- autoGenerate?: boolean;
876
- /**
877
- * The base directory for component paths starting with /.
878
- * @default process.cwd()
879
- **/
880
- baseDir?: string;
881
- /**
882
- * You can use generators to add custom components to the component import map.
883
- * This allows you to import custom components in the admin panel.
884
- */
885
- generators?: ImportMapGenerators;
886
- /**
887
- * If Payload cannot find the import map file location automatically,
888
- * you can manually provide it here.
889
- */
890
- importMapFile?: string;
886
+ settingsMenu?: CustomComponent[];
887
+ /** Sidebar configuration */
888
+ sidebar?: {
889
+ /** Extensible tab system */
890
+ tabs?: SidebarTab[];
891
891
  };
892
892
  /**
893
- * Live Preview options.
894
- *
895
- * @see https://payloadcms.com/docs/live-preview/overview
893
+ * Add custom items to the user menu popup in the admin panel header.
894
+ * These components will be rendered in the Settings sub-popup of the user menu.
895
+ * When empty or absent, the Settings sub-trigger is not shown.
896
896
  */
897
- livePreview?: RootLivePreviewConfig;
898
- /** Base meta data to use for the Admin Panel. Included properties are titleSuffix, ogImage, and favicon. */
899
- meta?: MetaConfig;
900
- routes?: {
901
- /** The route for the account page.
902
- *
903
- * @default '/account'
904
- */
905
- account?: `/${string}`;
906
- /** The route for the create first user page.
907
- *
908
- * @default '/create-first-user'
909
- */
910
- createFirstUser?: `/${string}`;
911
- /** The route for the forgot password page.
912
- *
913
- * @default '/forgot'
914
- */
915
- forgot?: `/${string}`;
916
- /** The route the user will be redirected to after being inactive for too long.
917
- *
918
- * @default '/logout-inactivity'
919
- */
920
- inactivity?: `/${string}`;
921
- /** The route for the login page.
922
- *
923
- * @default '/login'
924
- */
925
- login?: `/${string}`;
926
- /** The route for the logout page.
927
- *
928
- * @default '/logout'
929
- */
930
- logout?: `/${string}`;
931
- /** The route for the reset password page.
932
- *
933
- * @default '/reset'
934
- */
935
- reset?: `/${string}`;
936
- /** The route for the unauthorized page.
937
- *
938
- * @default '/unauthorized'
939
- */
940
- unauthorized?: `/${string}`;
897
+ userMenuSettingsItems?: UserMenuSettingsItem[];
898
+ /**
899
+ * Replace or modify top-level admin routes, or add new ones:
900
+ * + `Account` - `/admin/account`
901
+ * + `Dashboard` - `/admin`
902
+ * + `:path` - `/admin/:path`
903
+ */
904
+ views?: {
905
+ /** Add custom admin views */
906
+ [key: string]: AdminViewConfig;
907
+ /** Replace the account screen */
908
+ account?: AdminViewConfig;
909
+ /** Replace the admin homepage */
910
+ dashboard?: AdminViewConfig;
941
911
  };
912
+ };
913
+ /** Extension point to add your custom data. Available in server and client. */
914
+ custom?: Record<string, any>;
915
+ /**
916
+ * Customize the dashboard widgets
917
+ * @experimental This prop is subject to change in future releases.
918
+ */
919
+ dashboard?: DashboardConfig;
920
+ /** Global date format that will be used for all dates in the Admin panel. Any valid date-fns format pattern can be used. */
921
+ dateFormat?: string;
922
+ /**
923
+ * Each entry in this map generates an entry in the importMap.
924
+ */
925
+ dependencies?: AdminDependencies;
926
+ /**
927
+ * @deprecated
928
+ * This option is deprecated and will be removed in v4.
929
+ * To disable the admin panel itself, delete your `/app/(payload)/admin` directory.
930
+ * To disable all REST API and GraphQL endpoints, delete your `/app/(payload)/api` directory.
931
+ * Note: If you've modified the default paths via `admin.routes`, delete those directories instead.
932
+ */
933
+ disable?: boolean;
934
+ importMap?: {
942
935
  /**
943
- * Suppresses React hydration mismatch warnings during the hydration of the root <html> tag.
944
- * Useful in scenarios where the server-rendered HTML might intentionally differ from the client-rendered DOM.
945
- * @default false
936
+ * Automatically generate component map during development
937
+ * @default true
946
938
  */
947
- suppressHydrationWarning?: boolean;
939
+ autoGenerate?: boolean;
948
940
  /**
949
- * Restrict the Admin Panel theme to use only one of your choice
941
+ * The base directory for component paths starting with /.
942
+ * @default process.cwd()
943
+ **/
944
+ baseDir?: string;
945
+ /**
946
+ * You can use generators to add custom components to the component import map.
947
+ * This allows you to import custom components in the admin panel.
948
+ */
949
+ generators?: ImportMapGenerators;
950
+ /**
951
+ * If Payload cannot find the import map file location automatically,
952
+ * you can manually provide it here.
953
+ */
954
+ importMapFile?: string;
955
+ };
956
+ /**
957
+ * Live Preview options.
958
+ *
959
+ * @see https://payloadcms.com/docs/live-preview/overview
960
+ */
961
+ livePreview?: RootLivePreviewConfig;
962
+ /** Base meta data to use for the Admin Panel. Included properties are titleSuffix, ogImage, and favicon. */
963
+ meta?: MetaConfig;
964
+ routes?: {
965
+ /** The route for the account page.
966
+ *
967
+ * @default '/account'
968
+ */
969
+ account?: `/${string}`;
970
+ /** The route for the create first user page.
950
971
  *
951
- * @default 'all' // The theme can be configured by users
972
+ * @default '/create-first-user'
973
+ */
974
+ createFirstUser?: `/${string}`;
975
+ /** The route for the forgot password page.
976
+ *
977
+ * @default '/forgot'
978
+ */
979
+ forgot?: `/${string}`;
980
+ /** The route the user will be redirected to after being inactive for too long.
981
+ *
982
+ * @default '/logout-inactivity'
983
+ */
984
+ inactivity?: `/${string}`;
985
+ /** The route for the login page.
986
+ *
987
+ * @default '/login'
988
+ */
989
+ login?: `/${string}`;
990
+ /** The route for the logout page.
991
+ *
992
+ * @default '/logout'
993
+ */
994
+ logout?: `/${string}`;
995
+ /** The route for the reset password page.
996
+ *
997
+ * @default '/reset'
998
+ */
999
+ reset?: `/${string}`;
1000
+ /** The route for the unauthorized page.
1001
+ *
1002
+ * @default '/unauthorized'
1003
+ */
1004
+ unauthorized?: `/${string}`;
1005
+ };
1006
+ /**
1007
+ * Suppresses React hydration mismatch warnings during the hydration of the root <html> tag.
1008
+ * Useful in scenarios where the server-rendered HTML might intentionally differ from the client-rendered DOM.
1009
+ * @default false
1010
+ */
1011
+ suppressHydrationWarning?: boolean;
1012
+ /**
1013
+ * Restrict the Admin Panel theme to use only one of your choice
1014
+ *
1015
+ * @default 'all' // The theme can be configured by users
1016
+ */
1017
+ theme?: 'all' | 'dark' | 'light';
1018
+ /**
1019
+ * Configure timezone related settings for the admin panel.
1020
+ */
1021
+ timezones?: TimezonesConfig;
1022
+ /**
1023
+ * Configure toast message behavior and appearance in the admin panel.
1024
+ * Currently using [Sonner](https://sonner.emilkowal.ski) for toast notifications.
1025
+ *
1026
+ * @experimental This property is experimental and may change in future releases. Use at your own risk.
1027
+ */
1028
+ toast?: {
1029
+ /**
1030
+ * Time in milliseconds until the toast automatically closes.
1031
+ * @default 6000
1032
+ */
1033
+ duration?: number;
1034
+ /**
1035
+ * If `true`, will expand the message stack so that all messages are shown simultaneously without user interaction.
1036
+ * Otherwise only the latest notification can be read until the user hovers the stack.
1037
+ * @default false
1038
+ */
1039
+ expand?: boolean;
1040
+ /**
1041
+ * The maximum number of toasts that can be visible on the screen at once.
1042
+ * @default 5
952
1043
  */
953
- theme?: 'all' | 'dark' | 'light';
1044
+ limit?: number;
954
1045
  /**
955
- * Configure timezone related settings for the admin panel.
1046
+ * The position of the toast on the screen.
1047
+ * @default 'bottom-right'
956
1048
  */
957
- timezones?: TimezonesConfig;
1049
+ position?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';
1050
+ };
1051
+ /** The slug of a Collection that you want to be used to log in to the Admin dashboard. */
1052
+ user?: string;
1053
+ };
1054
+ type RootGraphQLConfig = {
1055
+ disable?: boolean;
1056
+ /**
1057
+ * Disable introspection queries in production.
1058
+ *
1059
+ * @default true
1060
+ */
1061
+ disableIntrospectionInProduction?: boolean;
1062
+ /**
1063
+ * Disable the GraphQL Playground in production.
1064
+ *
1065
+ * @default true
1066
+ */
1067
+ disablePlaygroundInProduction?: boolean;
1068
+ maxComplexity?: number;
1069
+ /**
1070
+ * Function that returns an object containing keys to custom GraphQL mutations
1071
+ *
1072
+ * @see https://payloadcms.com/docs/graphql/extending
1073
+ */
1074
+ mutations?: GraphQLExtension;
1075
+ /**
1076
+ * Function that returns an object containing keys to custom GraphQL queries
1077
+ *
1078
+ * @see https://payloadcms.com/docs/graphql/extending
1079
+ */
1080
+ queries?: GraphQLExtension;
1081
+ /**
1082
+ * Filepath to write the generated schema to
1083
+ */
1084
+ schemaOutputFile?: string;
1085
+ /**
1086
+ * Function that returns an array of validation rules to apply to the GraphQL schema
1087
+ *
1088
+ * @see https://payloadcms.com/docs/graphql/overview#custom-validation-rules
1089
+ */
1090
+ validationRules?: (args: GraphQL.ExecutionArgs) => GraphQL.ValidationRule[];
1091
+ };
1092
+ type RootTypeScriptConfig = {
1093
+ /**
1094
+ * Automatically generate types during development
1095
+ * @default true
1096
+ */
1097
+ autoGenerate?: boolean;
1098
+ /** Disable declare block in generated types file */
1099
+ declare?: {
958
1100
  /**
959
- * Configure toast message behavior and appearance in the admin panel.
960
- * Currently using [Sonner](https://sonner.emilkowal.ski) for toast notifications.
1101
+ * @internal internal use only to allow for multiple declarations within a monorepo and suppress the "Duplicate identifier GeneratedTypes" error
961
1102
  *
962
- * @experimental This property is experimental and may change in future releases. Use at your own risk.
1103
+ * Adds a @ts-ignore flag above the GeneratedTypes interface declaration
1104
+ *
1105
+ * @default false
963
1106
  */
964
- toast?: {
965
- /**
966
- * Time in milliseconds until the toast automatically closes.
967
- * @default 4000
968
- */
969
- duration?: number;
970
- /**
971
- * If `true`, will expand the message stack so that all messages are shown simultaneously without user interaction.
972
- * Otherwise only the latest notification can be read until the user hovers the stack.
973
- * @default false
974
- */
975
- expand?: boolean;
976
- /**
977
- * The maximum number of toasts that can be visible on the screen at once.
978
- * @default 5
979
- */
980
- limit?: number;
981
- /**
982
- * The position of the toast on the screen.
983
- * @default 'bottom-right'
984
- */
985
- position?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';
1107
+ ignoreTSError?: boolean;
1108
+ } | false;
1109
+ /**
1110
+ * Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
1111
+ * what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
1112
+ * fields optional, and `createdAt`/`updatedAt`/virtual/join fields removed. These are
1113
+ * exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
1114
+ * Draft-enabled entities retain `_status` because it is a writable create/update field.
1115
+ *
1116
+ * @default false
1117
+ *
1118
+ * @remarks
1119
+ * Off by default. The Local API's `create`/`update` still type their `data` against the read
1120
+ * type, so these input types aren't used internally - they're here for you to opt into, e.g. to
1121
+ * type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
1122
+ * input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
1123
+ * whether or not this flag is on.
1124
+ *
1125
+ * @todo We'd like to turn this on by default (or have the Local API use the input type
1126
+ * directly), but there's a catch. When you read a document with `depth > 0`, its relationships
1127
+ * come back as full documents rather than IDs. A strict ID-only input type would reject that and
1128
+ * break the common "read a doc, change a field, save it back" pattern. To enable it by default,
1129
+ * the input type would first need to accept a relationship as either an ID or the full document
1130
+ * (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
1131
+ * auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
1132
+ * stricter than the runtime on the main write path.
1133
+ */
1134
+ generateInputTypes?: boolean;
1135
+ /** Filename to write the generated types to */
1136
+ outputFile?: string;
1137
+ /**
1138
+ * Post-process the generated TypeScript types string before writing to file.
1139
+ * Useful for plugins that need to inject generic types that JSON Schema cannot express.
1140
+ *
1141
+ * Functions are applied in order after the built-in Select generics are added.
1142
+ *
1143
+ * @example
1144
+ * ```ts
1145
+ * postProcess: [
1146
+ * ({ compiledTypes, config }) => {
1147
+ * const genericType = `export type MyGeneric<T> = { value: T };`
1148
+ * return compiledTypes.replace(/(\/\*[\s\S]*?\*\/\n)/, `$1\n${genericType}\n`)
1149
+ * },
1150
+ * ]
1151
+ * ```
1152
+ */
1153
+ postProcess?: Array<(args: {
1154
+ compiledTypes: string;
1155
+ config: SanitizedConfig;
1156
+ }) => string>;
1157
+ /**
1158
+ * Allows you to modify the base JSON schema that is generated during generate:types. This JSON schema will be used
1159
+ * to generate the TypeScript interfaces.
1160
+ */
1161
+ schema?: Array<(args: {
1162
+ collectionIDFieldTypes: {
1163
+ [key: string]: 'number' | 'string';
986
1164
  };
987
- /** The slug of a Collection that you want to be used to log in to the Admin dashboard. */
988
- user?: string;
989
- };
1165
+ config: SanitizedConfig;
1166
+ i18n: I18n;
1167
+ jsonSchema: JSONSchema4;
1168
+ }) => JSONSchema4>;
1169
+ /**
1170
+ * Enable strict type safety for draft operations. When enabled, the `draft` parameter is forbidden
1171
+ * on collections without drafts, and query results with `draft: true` type required fields as optional.
1172
+ * This prevents invalid draft usage at compile time and ensures type correctness across all Local API operations.
1173
+ *
1174
+ * @default false
1175
+ * @todo Remove in v4. Strict draft types will become the default behavior.
1176
+ */
1177
+ strictDraftTypes?: boolean;
1178
+ };
1179
+ /**
1180
+ * This is the central configuration
1181
+ *
1182
+ * @see https://payloadcms.com/docs/configuration/overview
1183
+ */
1184
+ export type Config = {
1185
+ /** Configure admin dashboard */
1186
+ admin?: RootAdminConfig;
990
1187
  /**
991
1188
  * Configure authentication-related Payload-wide settings.
992
1189
  */
@@ -995,10 +1192,12 @@ export type Config = {
995
1192
  * Define which JWT identification methods you'd like to support for Payload's local auth strategy, as well as the order that they're retrieved in.
996
1193
  * Defaults to ['JWT', 'Bearer', 'cookie]
997
1194
  */
998
- jwtOrder: ('Bearer' | 'cookie' | 'JWT')[];
1195
+ jwtOrder?: ('Bearer' | 'cookie' | 'JWT')[];
999
1196
  };
1000
- /** Custom Payload bin scripts can be injected via the config. */
1001
- bin?: BinScriptConfig[];
1197
+ /**
1198
+ * Define Collection and Global access constraints that are combined with document Access Control using AND semantics.
1199
+ */
1200
+ baseAccess?: BaseAccess;
1002
1201
  blocks?: Block[];
1003
1202
  /**
1004
1203
  * Pass additional options to the parser used to process `multipart/form-data` requests.
@@ -1009,6 +1208,11 @@ export type Config = {
1009
1208
  * @experimental This property is experimental and may change in future releases. Use at your own risk.
1010
1209
  */
1011
1210
  bodyParser?: Partial<BusboyConfig>;
1211
+ /** Customize the Payload CLI, or set to `false` to disable it. */
1212
+ cli?: {
1213
+ /** Add, replace, or disable commands by name. Built-in commands are added during sanitization. */
1214
+ commands?: CLICommands;
1215
+ } | false;
1012
1216
  /**
1013
1217
  * Manage the datamodel of your application
1014
1218
  *
@@ -1036,7 +1240,7 @@ export type Config = {
1036
1240
  *
1037
1241
  * @see https://payloadcms.com/docs/getting-started/concepts#depth
1038
1242
  *
1039
- * @default 2
1243
+ * @default 1
1040
1244
  */
1041
1245
  defaultDepth?: number;
1042
1246
  /**
@@ -1066,44 +1270,7 @@ export type Config = {
1066
1270
  *
1067
1271
  * @see https://payloadcms.com/docs/graphql/overview
1068
1272
  */
1069
- graphQL?: {
1070
- disable?: boolean;
1071
- /**
1072
- * Disable introspection queries in production.
1073
- *
1074
- * @default true
1075
- */
1076
- disableIntrospectionInProduction?: boolean;
1077
- /**
1078
- * Disable the GraphQL Playground in production.
1079
- *
1080
- * @default true
1081
- */
1082
- disablePlaygroundInProduction?: boolean;
1083
- maxComplexity?: number;
1084
- /**
1085
- * Function that returns an object containing keys to custom GraphQL mutations
1086
- *
1087
- * @see https://payloadcms.com/docs/graphql/extending
1088
- */
1089
- mutations?: GraphQLExtension;
1090
- /**
1091
- * Function that returns an object containing keys to custom GraphQL queries
1092
- *
1093
- * @see https://payloadcms.com/docs/graphql/extending
1094
- */
1095
- queries?: GraphQLExtension;
1096
- /**
1097
- * Filepath to write the generated schema to
1098
- */
1099
- schemaOutputFile?: string;
1100
- /**
1101
- * Function that returns an array of validation rules to apply to the GraphQL schema
1102
- *
1103
- * @see https://payloadcms.com/docs/graphql/overview#custom-validation-rules
1104
- */
1105
- validationRules?: (args: GraphQL.ExecutionArgs) => GraphQL.ValidationRule[];
1106
- };
1273
+ graphQL?: RootGraphQLConfig;
1107
1274
  /**
1108
1275
  * Tap into Payload-wide hooks.
1109
1276
  *
@@ -1129,6 +1296,13 @@ export type Config = {
1129
1296
  * ```
1130
1297
  */
1131
1298
  kv?: KVAdapterResult;
1299
+ /** Manage instructions shared by MCP and CLI consumers. Set to false to disable the management UI and collection. */
1300
+ llmInstructions?: {
1301
+ /** Who may edit saved instructions, in addition to the target's read and update access. Defaults to users of the admin auth collection. */
1302
+ access?: Access;
1303
+ /** Editor for instructions. Defaults to the root editor's llmInstructions preset, or plain text if unavailable. */
1304
+ editor?: Config['editor'];
1305
+ } | false;
1132
1306
  /**
1133
1307
  * Translate your content to different languages/locales.
1134
1308
  *
@@ -1200,6 +1374,13 @@ export type Config = {
1200
1374
  * @see https://payloadcms.com/docs/plugins/overview
1201
1375
  */
1202
1376
  plugins?: Plugin[];
1377
+ /**
1378
+ * Previous `secret` values that should still be accepted for reads (verifying
1379
+ * JWTs, matching API keys, decrypting stored values) during a bounded key
1380
+ * rotation. New data is always written with the current `secret`. Retire these
1381
+ * once `rotateSecret` has re-keyed existing data.
1382
+ */
1383
+ previousSecrets?: string[];
1203
1384
  /**
1204
1385
  * Allow you to save and share filters, columns, and sort orders for your collections.
1205
1386
  * @see https://payloadcms.com/docs/query-presets/overview
@@ -1311,11 +1492,6 @@ export type Config = {
1311
1492
  * @see https://payloadcms.com/docs/configuration/overview#options
1312
1493
  */
1313
1494
  serverURL?: string;
1314
- /**
1315
- * Pass in a local copy of Sharp if you'd like to use it.
1316
- *
1317
- */
1318
- sharp?: SharpDependency;
1319
1495
  /**
1320
1496
  * Storage adapters that handle where uploaded files are stored (S3, GCS, Azure, Vercel Blob, etc.).
1321
1497
  *
@@ -1333,136 +1509,46 @@ export type Config = {
1333
1509
  /** Send anonymous telemetry data about general usage. */
1334
1510
  telemetry?: boolean;
1335
1511
  /** Control how typescript interfaces are generated from your collections. */
1336
- typescript?: {
1337
- /**
1338
- * Automatically generate types during development
1339
- * @default true
1340
- */
1341
- autoGenerate?: boolean;
1342
- /** Disable declare block in generated types file */
1343
- declare?: {
1344
- /**
1345
- * @internal internal use only to allow for multiple declarations within a monorepo and suppress the "Duplicate identifier GeneratedTypes" error
1346
- *
1347
- * Adds a @ts-ignore flag above the GeneratedTypes interface declaration
1348
- *
1349
- * @default false
1350
- */
1351
- ignoreTSError?: boolean;
1352
- } | false;
1353
- /**
1354
- * Also generate a write-shaped input type (e.g. `PostInput`) next to each read type, describing
1355
- * what `create`/`update` accept: relationships and uploads as IDs only, `id` and `defaultValue`
1356
- * fields optional, and `createdAt`/`updatedAt`/virtual/join fields removed. These are
1357
- * exposed on `Config['collectionsInput']` and `Config['globalsInput']`. Set `true` to turn them on.
1358
- * Draft-enabled entities retain `_status` because it is a writable create/update field.
1359
- *
1360
- * @default false
1361
- *
1362
- * @remarks
1363
- * Off by default. The Local API's `create`/`update` still type their `data` against the read
1364
- * type, so these input types aren't used internally - they're here for you to opt into, e.g. to
1365
- * type a form payload, a seed script, or an API client. `@payloadcms/plugin-mcp` also uses the
1366
- * input schema, but it builds that itself at runtime, so MCP gets the accurate write schema
1367
- * whether or not this flag is on.
1368
- *
1369
- * @todo We'd like to turn this on by default (or have the Local API use the input type
1370
- * directly), but there's a catch. When you read a document with `depth > 0`, its relationships
1371
- * come back as full documents rather than IDs. A strict ID-only input type would reject that and
1372
- * break the common "read a doc, change a field, save it back" pattern. To enable it by default,
1373
- * the input type would first need to accept a relationship as either an ID or the full document
1374
- * (which is what Payload already does at runtime), while keeping `id`, `defaultValue`, and
1375
- * auto-managed fields optional. Until then it stays opt-in, so we don't put a type that's
1376
- * stricter than the runtime on the main write path.
1377
- */
1378
- generateInputTypes?: boolean;
1379
- /** Filename to write the generated types to */
1380
- outputFile?: string;
1381
- /**
1382
- * Post-process the generated TypeScript types string before writing to file.
1383
- * Useful for plugins that need to inject generic types that JSON Schema cannot express.
1384
- *
1385
- * Functions are applied in order after the built-in Select generics are added.
1386
- *
1387
- * @example
1388
- * ```ts
1389
- * postProcess: [
1390
- * ({ compiledTypes, config }) => {
1391
- * const genericType = `export type MyGeneric<T> = { value: T };`
1392
- * return compiledTypes.replace(/(\/\*[\s\S]*?\*\/\n)/, `$1\n${genericType}\n`)
1393
- * },
1394
- * ]
1395
- * ```
1396
- */
1397
- postProcess?: Array<(args: {
1398
- compiledTypes: string;
1399
- config: SanitizedConfig;
1400
- }) => string>;
1401
- /**
1402
- * Allows you to modify the base JSON schema that is generated during generate:types. This JSON schema will be used
1403
- * to generate the TypeScript interfaces.
1404
- */
1405
- schema?: Array<(args: {
1406
- collectionIDFieldTypes: {
1407
- [key: string]: 'number' | 'string';
1408
- };
1409
- config: SanitizedConfig;
1410
- i18n: I18n;
1411
- jsonSchema: JSONSchema4;
1412
- }) => JSONSchema4>;
1413
- /**
1414
- * Enable strict type safety for draft operations. When enabled, the `draft` parameter is forbidden
1415
- * on collections without drafts, and query results with `draft: true` type required fields as optional.
1416
- * This prevents invalid draft usage at compile time and ensures type correctness across all Local API operations.
1417
- *
1418
- * @default false
1419
- * @todo Remove in v4. Strict draft types will become the default behavior.
1420
- */
1421
- strictDraftTypes?: boolean;
1422
- };
1512
+ typescript?: RootTypeScriptConfig;
1423
1513
  /**
1424
- * Customize the handling of incoming file uploads for collections that have uploads enabled.
1514
+ * Customize the handling of incoming file uploads for collections that have uploads enabled,
1515
+ * including the `transformers` pipeline.
1425
1516
  */
1426
- upload?: FetchAPIFileUploadOptions;
1517
+ upload?: GlobalUploadConfig;
1427
1518
  };
1428
- /**
1429
- * @todo remove the `DeepRequired` in v4.
1430
- * We don't actually guarantee that all properties are set when sanitizing configs.
1431
- */
1432
- export type SanitizedConfig = {
1433
- admin: {
1434
- /**
1435
- * `Required` (shallow) marks the top-level dashboard props as required, mainly `defaultLayout`,
1436
- * which sanitizing always fills in. Do not switch this to the `DeepRequired` used below: it
1437
- * recurses into the widgets and re-expands the whole `Field` type (a large self-referencing
1438
- * union), which is very expensive to check. Never run a `Field`-bearing type through
1439
- * `DeepRequired`.
1440
- */
1441
- dashboard: Required<NonNullable<NonNullable<Config['admin']>['dashboard']>>;
1442
- timezones: SanitizedTimezoneConfig;
1443
- } & DeepRequired<Omit<NonNullable<Config['admin']>, 'dashboard'>>;
1444
- blocks?: FlattenedBlock[];
1519
+ interface SanitizedAdminConfig extends Omit<RootAdminConfig, 'avatar' | 'components' | 'custom' | 'dashboard' | 'dateFormat' | 'dependencies' | 'importMap' | 'meta' | 'routes' | 'theme' | 'timezones' | 'user'>, Required<Pick<RootAdminConfig, 'avatar' | 'components' | 'custom' | 'dateFormat' | 'dependencies' | 'theme' | 'user'>> {
1520
+ dashboard: Required<DashboardConfig>;
1521
+ importMap: Omit<NonNullable<RootAdminConfig['importMap']>, 'baseDir'> & Required<Pick<NonNullable<RootAdminConfig['importMap']>, 'baseDir'>>;
1522
+ meta: Omit<MetaConfig, 'defaultOGImageType' | 'robots' | 'titleSuffix'> & Required<Pick<MetaConfig, 'defaultOGImageType' | 'robots' | 'titleSuffix'>>;
1523
+ routes: Required<NonNullable<RootAdminConfig['routes']>>;
1524
+ timezones: SanitizedTimezoneConfig;
1525
+ }
1526
+ type SanitizedGraphQLConfig = Omit<RootGraphQLConfig, 'disableIntrospectionInProduction' | 'disablePlaygroundInProduction' | 'maxComplexity' | 'schemaOutputFile'> & Required<Pick<RootGraphQLConfig, 'disableIntrospectionInProduction' | 'disablePlaygroundInProduction' | 'maxComplexity' | 'schemaOutputFile'>>;
1527
+ type SanitizedTypeScriptConfig = Omit<RootTypeScriptConfig, 'autoGenerate' | 'outputFile'> & Required<Pick<RootTypeScriptConfig, 'autoGenerate' | 'outputFile'>>;
1528
+ export interface SanitizedConfig extends Omit<Config, 'admin' | 'auth' | 'blocks' | 'cli' | 'collections' | 'cookiePrefix' | 'cors' | 'csrf' | 'custom' | 'defaultDepth' | 'defaultMaxTextLength' | 'editor' | 'endpoints' | 'globals' | 'graphQL' | 'hooks' | 'i18n' | 'jobs' | 'kv' | 'localization' | 'loggingLevels' | 'maxDepth' | 'routes' | 'serverURL' | 'storage' | 'telemetry' | 'typescript' | 'upload'>, Required<Pick<Config, 'cookiePrefix' | 'cors' | 'csrf' | 'custom' | 'defaultDepth' | 'defaultMaxTextLength' | 'endpoints' | 'hooks' | 'kv' | 'loggingLevels' | 'maxDepth' | 'serverURL' | 'storage' | 'telemetry'>> {
1529
+ admin: SanitizedAdminConfig;
1530
+ auth: Required<NonNullable<Config['auth']>>;
1531
+ blocks: FlattenedBlock[];
1532
+ cli: {
1533
+ commands: CLICommands;
1534
+ } | false;
1445
1535
  collections: SanitizedCollectionConfig[];
1446
1536
  /** Default richtext editor to use for richText fields */
1447
1537
  editor?: RichTextAdapter<any, any, any>;
1448
- endpoints: Endpoint[];
1449
1538
  globals: SanitizedGlobalConfig[];
1539
+ graphQL: SanitizedGraphQLConfig;
1450
1540
  i18n: Required<I18nOptions>;
1451
1541
  jobs: SanitizedJobsConfig;
1452
1542
  localization: false | SanitizedLocalizationConfig;
1453
- paths: {
1454
- config: string;
1455
- configDir: string;
1456
- rawConfig: string;
1457
- };
1458
- storage: StorageAdapter[];
1543
+ routes: Required<NonNullable<Config['routes']>>;
1544
+ typescript: SanitizedTypeScriptConfig;
1459
1545
  upload: {
1460
1546
  /**
1461
1547
  * Deduped list of adapters used in the project
1462
1548
  */
1463
1549
  adapters: string[];
1464
- } & FetchAPIFileUploadOptions;
1465
- } & Omit<DeepRequired<Config>, 'admin' | 'blocks' | 'collections' | 'editor' | 'endpoint' | 'globals' | 'i18n' | 'jobs' | 'localization' | 'storage' | 'upload'>;
1550
+ } & GlobalUploadConfig & Required<Pick<GlobalUploadConfig, 'transformers'>>;
1551
+ }
1466
1552
  export type EditConfig = EditConfigWithoutRoot | EditConfigWithRoot;
1467
1553
  /**
1468
1554
  * 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.