@payloadcms/plugin-mcp 3.86.0-internal.ac46214 → 4.0.0-internal.1f9ae9a

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 (329) hide show
  1. package/README.md +2 -2
  2. package/bin.js +39 -0
  3. package/dist/collection/getAccessField.d.ts +12 -0
  4. package/dist/collection/getAccessField.d.ts.map +1 -0
  5. package/dist/collection/getAccessField.js +57 -0
  6. package/dist/collection/getAccessField.js.map +1 -0
  7. package/dist/collection/index.d.ts +6 -0
  8. package/dist/collection/index.d.ts.map +1 -0
  9. package/dist/collection/index.js +59 -0
  10. package/dist/collection/index.js.map +1 -0
  11. package/dist/components/AccessField/index.client.d.ts +10 -0
  12. package/dist/components/AccessField/index.client.d.ts.map +1 -0
  13. package/dist/components/AccessField/index.client.js +305 -0
  14. package/dist/components/AccessField/index.client.js.map +1 -0
  15. package/dist/components/AccessField/index.css +93 -0
  16. package/dist/defineTool.d.ts +26 -0
  17. package/dist/defineTool.d.ts.map +1 -0
  18. package/dist/defineTool.js +37 -0
  19. package/dist/defineTool.js.map +1 -0
  20. package/dist/endpoint/access.d.ts +10 -0
  21. package/dist/endpoint/access.d.ts.map +1 -0
  22. package/dist/endpoint/access.js +106 -0
  23. package/dist/endpoint/access.js.map +1 -0
  24. package/dist/endpoint/index.d.ts +3 -0
  25. package/dist/endpoint/index.d.ts.map +1 -0
  26. package/dist/endpoint/index.js +36 -0
  27. package/dist/endpoint/index.js.map +1 -0
  28. package/dist/exports/client.d.ts +2 -0
  29. package/dist/exports/client.d.ts.map +1 -0
  30. package/dist/exports/client.js +4 -0
  31. package/dist/exports/client.js.map +1 -0
  32. package/dist/index.d.ts +4 -7
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +44 -67
  35. package/dist/index.js.map +1 -1
  36. package/dist/mcp/buildMcpServer.d.ts +19 -0
  37. package/dist/mcp/buildMcpServer.d.ts.map +1 -0
  38. package/dist/mcp/buildMcpServer.js +163 -0
  39. package/dist/mcp/buildMcpServer.js.map +1 -0
  40. package/dist/mcp/builtin/collections/authTools.d.ts +7 -0
  41. package/dist/mcp/builtin/collections/authTools.d.ts.map +1 -0
  42. package/dist/mcp/builtin/collections/authTools.js +250 -0
  43. package/dist/mcp/builtin/collections/authTools.js.map +1 -0
  44. package/dist/mcp/builtin/collections/createTool.d.ts +2 -0
  45. package/dist/mcp/builtin/collections/createTool.d.ts.map +1 -0
  46. package/dist/mcp/builtin/collections/createTool.js +87 -0
  47. package/dist/mcp/builtin/collections/createTool.js.map +1 -0
  48. package/dist/mcp/builtin/collections/deleteTool.d.ts +2 -0
  49. package/dist/mcp/builtin/collections/deleteTool.d.ts.map +1 -0
  50. package/dist/mcp/builtin/collections/deleteTool.js +117 -0
  51. package/dist/mcp/builtin/collections/deleteTool.js.map +1 -0
  52. package/dist/mcp/builtin/collections/findTool.d.ts +2 -0
  53. package/dist/mcp/builtin/collections/findTool.d.ts.map +1 -0
  54. package/dist/mcp/builtin/collections/findTool.js +159 -0
  55. package/dist/mcp/builtin/collections/findTool.js.map +1 -0
  56. package/dist/mcp/builtin/collections/updateTool.d.ts +2 -0
  57. package/dist/mcp/builtin/collections/updateTool.d.ts.map +1 -0
  58. package/dist/mcp/builtin/collections/updateTool.js +187 -0
  59. package/dist/mcp/builtin/collections/updateTool.js.map +1 -0
  60. package/dist/mcp/builtin/globals/findTool.d.ts +2 -0
  61. package/dist/mcp/builtin/globals/findTool.d.ts.map +1 -0
  62. package/dist/mcp/builtin/globals/findTool.js +76 -0
  63. package/dist/mcp/builtin/globals/findTool.js.map +1 -0
  64. package/dist/mcp/builtin/globals/updateTool.d.ts +2 -0
  65. package/dist/mcp/builtin/globals/updateTool.d.ts.map +1 -0
  66. package/dist/mcp/builtin/globals/updateTool.js +92 -0
  67. package/dist/mcp/builtin/globals/updateTool.js.map +1 -0
  68. package/dist/mcp/builtinTools.d.ts +37 -0
  69. package/dist/mcp/builtinTools.d.ts.map +1 -0
  70. package/dist/mcp/builtinTools.js +64 -0
  71. package/dist/mcp/builtinTools.js.map +1 -0
  72. package/dist/mcp/sanitizeMCPConfig.d.ts +17 -0
  73. package/dist/mcp/sanitizeMCPConfig.d.ts.map +1 -0
  74. package/dist/mcp/sanitizeMCPConfig.js +167 -0
  75. package/dist/mcp/sanitizeMCPConfig.js.map +1 -0
  76. package/dist/stdio.d.ts +8 -0
  77. package/dist/stdio.d.ts.map +1 -0
  78. package/dist/stdio.js +89 -0
  79. package/dist/stdio.js.map +1 -0
  80. package/dist/types.d.ts +262 -455
  81. package/dist/types.d.ts.map +1 -1
  82. package/dist/types.js +6 -1
  83. package/dist/types.js.map +1 -1
  84. package/dist/utils/camelCase.d.ts.map +1 -1
  85. package/dist/utils/getLogger.d.ts +10 -0
  86. package/dist/utils/getLogger.d.ts.map +1 -0
  87. package/dist/utils/getLogger.js +22 -0
  88. package/dist/utils/getLogger.js.map +1 -0
  89. package/dist/utils/getPluginConfig.d.ts +12 -0
  90. package/dist/utils/getPluginConfig.d.ts.map +1 -0
  91. package/dist/utils/getPluginConfig.js +15 -0
  92. package/dist/utils/getPluginConfig.js.map +1 -0
  93. package/dist/utils/localAPIDefaults.d.ts +20 -0
  94. package/dist/utils/localAPIDefaults.d.ts.map +1 -0
  95. package/dist/utils/localAPIDefaults.js +19 -0
  96. package/dist/utils/localAPIDefaults.js.map +1 -0
  97. package/dist/utils/resolveProjectRoot.d.ts +7 -0
  98. package/dist/utils/resolveProjectRoot.d.ts.map +1 -0
  99. package/dist/utils/resolveProjectRoot.js +15 -0
  100. package/dist/utils/resolveProjectRoot.js.map +1 -0
  101. package/dist/utils/schemaConversion/prepareCollectionSchema.d.ts +7 -0
  102. package/dist/utils/schemaConversion/prepareCollectionSchema.d.ts.map +1 -0
  103. package/dist/utils/schemaConversion/prepareCollectionSchema.js +37 -0
  104. package/dist/utils/schemaConversion/prepareCollectionSchema.js.map +1 -0
  105. package/dist/utils/schemaConversion/removeVirtualFieldsFromSchema.d.ts +2 -2
  106. package/dist/utils/schemaConversion/removeVirtualFieldsFromSchema.d.ts.map +1 -1
  107. package/dist/utils/schemaConversion/removeVirtualFieldsFromSchema.js.map +1 -1
  108. package/dist/utils/schemaConversion/sanitizeJsonSchema.d.ts +2 -2
  109. package/dist/utils/schemaConversion/sanitizeJsonSchema.d.ts.map +1 -1
  110. package/dist/utils/schemaConversion/sanitizeJsonSchema.js.map +1 -1
  111. package/dist/utils/schemaConversion/simplifyRelationshipFields.d.ts +2 -2
  112. package/dist/utils/schemaConversion/simplifyRelationshipFields.d.ts.map +1 -1
  113. package/dist/utils/schemaConversion/simplifyRelationshipFields.js +7 -4
  114. package/dist/utils/schemaConversion/simplifyRelationshipFields.js.map +1 -1
  115. package/dist/utils/schemaConversion/transformPointFields.d.ts +2 -2
  116. package/dist/utils/schemaConversion/transformPointFields.d.ts.map +1 -1
  117. package/dist/utils/schemaConversion/transformPointFields.js +7 -1
  118. package/dist/utils/schemaConversion/transformPointFields.js.map +1 -1
  119. package/dist/utils/toStandardSchema.d.ts +5 -0
  120. package/dist/utils/toStandardSchema.d.ts.map +1 -0
  121. package/dist/utils/toStandardSchema.js +4 -0
  122. package/dist/utils/toStandardSchema.js.map +1 -0
  123. package/package.json +35 -10
  124. package/src/collection/getAccessField.ts +64 -0
  125. package/src/collection/index.ts +63 -0
  126. package/src/components/AccessField/index.client.tsx +344 -0
  127. package/src/components/AccessField/index.css +93 -0
  128. package/src/defineTool.ts +44 -0
  129. package/src/endpoint/access.ts +132 -0
  130. package/src/endpoint/index.ts +35 -0
  131. package/src/exports/client.ts +2 -0
  132. package/src/index.ts +35 -85
  133. package/src/mcp/buildMcpServer.ts +224 -0
  134. package/src/mcp/builtin/collections/authTools.ts +233 -0
  135. package/src/mcp/builtin/collections/createTool.ts +116 -0
  136. package/src/mcp/builtin/collections/deleteTool.ts +123 -0
  137. package/src/mcp/builtin/collections/findTool.ts +187 -0
  138. package/src/mcp/builtin/collections/updateTool.ts +205 -0
  139. package/src/mcp/builtin/globals/findTool.ts +96 -0
  140. package/src/mcp/builtin/globals/updateTool.ts +118 -0
  141. package/src/mcp/builtinTools.ts +84 -0
  142. package/src/mcp/sanitizeMCPConfig.ts +239 -0
  143. package/src/stdio.ts +98 -0
  144. package/src/types.ts +295 -490
  145. package/src/utils/getLogger.ts +22 -0
  146. package/src/utils/getPluginConfig.ts +24 -0
  147. package/src/utils/localAPIDefaults.ts +22 -0
  148. package/src/utils/resolveProjectRoot.ts +17 -0
  149. package/src/utils/schemaConversion/prepareCollectionSchema.ts +39 -0
  150. package/src/utils/schemaConversion/removeVirtualFieldsFromSchema.ts +3 -3
  151. package/src/utils/schemaConversion/sanitizeJsonSchema.ts +4 -4
  152. package/src/utils/schemaConversion/simplifyRelationshipFields.ts +11 -6
  153. package/src/utils/schemaConversion/transformPointFields.ts +6 -5
  154. package/src/utils/toStandardSchema.ts +9 -0
  155. package/dist/collections/createApiKeysCollection.d.ts +0 -7
  156. package/dist/collections/createApiKeysCollection.d.ts.map +0 -1
  157. package/dist/collections/createApiKeysCollection.js +0 -317
  158. package/dist/collections/createApiKeysCollection.js.map +0 -1
  159. package/dist/defaults.d.ts +0 -4
  160. package/dist/defaults.d.ts.map +0 -1
  161. package/dist/defaults.js +0 -5
  162. package/dist/defaults.js.map +0 -1
  163. package/dist/endpoints/mcp.d.ts +0 -4
  164. package/dist/endpoints/mcp.d.ts.map +0 -1
  165. package/dist/endpoints/mcp.js +0 -71
  166. package/dist/endpoints/mcp.js.map +0 -1
  167. package/dist/mcp/createRequest.d.ts +0 -3
  168. package/dist/mcp/createRequest.d.ts.map +0 -1
  169. package/dist/mcp/createRequest.js +0 -14
  170. package/dist/mcp/createRequest.js.map +0 -1
  171. package/dist/mcp/getMcpHandler.d.ts +0 -4
  172. package/dist/mcp/getMcpHandler.d.ts.map +0 -1
  173. package/dist/mcp/getMcpHandler.js +0 -231
  174. package/dist/mcp/getMcpHandler.js.map +0 -1
  175. package/dist/mcp/helpers/config.d.ts +0 -22
  176. package/dist/mcp/helpers/config.d.ts.map +0 -1
  177. package/dist/mcp/helpers/config.js +0 -153
  178. package/dist/mcp/helpers/config.js.map +0 -1
  179. package/dist/mcp/helpers/fields.d.ts +0 -19
  180. package/dist/mcp/helpers/fields.d.ts.map +0 -1
  181. package/dist/mcp/helpers/fields.js +0 -102
  182. package/dist/mcp/helpers/fields.js.map +0 -1
  183. package/dist/mcp/helpers/fileValidation.d.ts +0 -67
  184. package/dist/mcp/helpers/fileValidation.d.ts.map +0 -1
  185. package/dist/mcp/helpers/fileValidation.js +0 -267
  186. package/dist/mcp/helpers/fileValidation.js.map +0 -1
  187. package/dist/mcp/registerTool.d.ts +0 -6
  188. package/dist/mcp/registerTool.d.ts.map +0 -1
  189. package/dist/mcp/registerTool.js +0 -18
  190. package/dist/mcp/registerTool.js.map +0 -1
  191. package/dist/mcp/tools/auth/auth.d.ts +0 -4
  192. package/dist/mcp/tools/auth/auth.d.ts.map +0 -1
  193. package/dist/mcp/tools/auth/auth.js +0 -57
  194. package/dist/mcp/tools/auth/auth.js.map +0 -1
  195. package/dist/mcp/tools/auth/forgotPassword.d.ts +0 -4
  196. package/dist/mcp/tools/auth/forgotPassword.d.ts.map +0 -1
  197. package/dist/mcp/tools/auth/forgotPassword.js +0 -48
  198. package/dist/mcp/tools/auth/forgotPassword.js.map +0 -1
  199. package/dist/mcp/tools/auth/login.d.ts +0 -4
  200. package/dist/mcp/tools/auth/login.d.ts.map +0 -1
  201. package/dist/mcp/tools/auth/login.js +0 -51
  202. package/dist/mcp/tools/auth/login.js.map +0 -1
  203. package/dist/mcp/tools/auth/resetPassword.d.ts +0 -4
  204. package/dist/mcp/tools/auth/resetPassword.d.ts.map +0 -1
  205. package/dist/mcp/tools/auth/resetPassword.js +0 -49
  206. package/dist/mcp/tools/auth/resetPassword.js.map +0 -1
  207. package/dist/mcp/tools/auth/unlock.d.ts +0 -4
  208. package/dist/mcp/tools/auth/unlock.d.ts.map +0 -1
  209. package/dist/mcp/tools/auth/unlock.js +0 -48
  210. package/dist/mcp/tools/auth/unlock.js.map +0 -1
  211. package/dist/mcp/tools/auth/verify.d.ts +0 -4
  212. package/dist/mcp/tools/auth/verify.d.ts.map +0 -1
  213. package/dist/mcp/tools/auth/verify.js +0 -45
  214. package/dist/mcp/tools/auth/verify.js.map +0 -1
  215. package/dist/mcp/tools/collection/create.d.ts +0 -10
  216. package/dist/mcp/tools/collection/create.d.ts.map +0 -1
  217. package/dist/mcp/tools/collection/create.js +0 -139
  218. package/dist/mcp/tools/collection/create.js.map +0 -1
  219. package/dist/mcp/tools/collection/delete.d.ts +0 -10
  220. package/dist/mcp/tools/collection/delete.d.ts.map +0 -1
  221. package/dist/mcp/tools/collection/delete.js +0 -154
  222. package/dist/mcp/tools/collection/delete.js.map +0 -1
  223. package/dist/mcp/tools/collection/find.d.ts +0 -10
  224. package/dist/mcp/tools/collection/find.d.ts.map +0 -1
  225. package/dist/mcp/tools/collection/find.js +0 -165
  226. package/dist/mcp/tools/collection/find.js.map +0 -1
  227. package/dist/mcp/tools/collection/update.d.ts +0 -10
  228. package/dist/mcp/tools/collection/update.d.ts.map +0 -1
  229. package/dist/mcp/tools/collection/update.js +0 -209
  230. package/dist/mcp/tools/collection/update.js.map +0 -1
  231. package/dist/mcp/tools/config/find.d.ts +0 -10
  232. package/dist/mcp/tools/config/find.d.ts.map +0 -1
  233. package/dist/mcp/tools/config/find.js +0 -97
  234. package/dist/mcp/tools/config/find.js.map +0 -1
  235. package/dist/mcp/tools/config/update.d.ts +0 -10
  236. package/dist/mcp/tools/config/update.d.ts.map +0 -1
  237. package/dist/mcp/tools/config/update.js +0 -215
  238. package/dist/mcp/tools/config/update.js.map +0 -1
  239. package/dist/mcp/tools/global/find.d.ts +0 -5
  240. package/dist/mcp/tools/global/find.d.ts.map +0 -1
  241. package/dist/mcp/tools/global/find.js +0 -82
  242. package/dist/mcp/tools/global/find.js.map +0 -1
  243. package/dist/mcp/tools/global/update.d.ts +0 -6
  244. package/dist/mcp/tools/global/update.d.ts.map +0 -1
  245. package/dist/mcp/tools/global/update.js +0 -124
  246. package/dist/mcp/tools/global/update.js.map +0 -1
  247. package/dist/mcp/tools/job/create.d.ts +0 -10
  248. package/dist/mcp/tools/job/create.d.ts.map +0 -1
  249. package/dist/mcp/tools/job/create.js +0 -293
  250. package/dist/mcp/tools/job/create.js.map +0 -1
  251. package/dist/mcp/tools/job/run.d.ts +0 -10
  252. package/dist/mcp/tools/job/run.d.ts.map +0 -1
  253. package/dist/mcp/tools/job/run.js +0 -129
  254. package/dist/mcp/tools/job/run.js.map +0 -1
  255. package/dist/mcp/tools/job/update.d.ts +0 -11
  256. package/dist/mcp/tools/job/update.d.ts.map +0 -1
  257. package/dist/mcp/tools/job/update.js +0 -186
  258. package/dist/mcp/tools/job/update.js.map +0 -1
  259. package/dist/mcp/tools/resource/create.d.ts +0 -6
  260. package/dist/mcp/tools/resource/create.d.ts.map +0 -1
  261. package/dist/mcp/tools/resource/create.js +0 -124
  262. package/dist/mcp/tools/resource/create.js.map +0 -1
  263. package/dist/mcp/tools/resource/delete.d.ts +0 -5
  264. package/dist/mcp/tools/resource/delete.d.ts.map +0 -1
  265. package/dist/mcp/tools/resource/delete.js +0 -151
  266. package/dist/mcp/tools/resource/delete.js.map +0 -1
  267. package/dist/mcp/tools/resource/find.d.ts +0 -5
  268. package/dist/mcp/tools/resource/find.d.ts.map +0 -1
  269. package/dist/mcp/tools/resource/find.js +0 -170
  270. package/dist/mcp/tools/resource/find.js.map +0 -1
  271. package/dist/mcp/tools/resource/update.d.ts +0 -6
  272. package/dist/mcp/tools/resource/update.d.ts.map +0 -1
  273. package/dist/mcp/tools/resource/update.js +0 -256
  274. package/dist/mcp/tools/resource/update.js.map +0 -1
  275. package/dist/mcp/tools/schemas.d.ts +0 -457
  276. package/dist/mcp/tools/schemas.d.ts.map +0 -1
  277. package/dist/mcp/tools/schemas.js +0 -243
  278. package/dist/mcp/tools/schemas.js.map +0 -1
  279. package/dist/utils/adminEntitySettings.d.ts +0 -17
  280. package/dist/utils/adminEntitySettings.d.ts.map +0 -1
  281. package/dist/utils/adminEntitySettings.js +0 -41
  282. package/dist/utils/adminEntitySettings.js.map +0 -1
  283. package/dist/utils/createApiKeyFields.d.ts +0 -15
  284. package/dist/utils/createApiKeyFields.d.ts.map +0 -1
  285. package/dist/utils/createApiKeyFields.js +0 -57
  286. package/dist/utils/createApiKeyFields.js.map +0 -1
  287. package/dist/utils/getEnabledSlugs.d.ts +0 -13
  288. package/dist/utils/getEnabledSlugs.d.ts.map +0 -1
  289. package/dist/utils/getEnabledSlugs.js +0 -32
  290. package/dist/utils/getEnabledSlugs.js.map +0 -1
  291. package/dist/utils/schemaConversion/convertCollectionSchemaToZod.d.ts +0 -3
  292. package/dist/utils/schemaConversion/convertCollectionSchemaToZod.d.ts.map +0 -1
  293. package/dist/utils/schemaConversion/convertCollectionSchemaToZod.js +0 -43
  294. package/dist/utils/schemaConversion/convertCollectionSchemaToZod.js.map +0 -1
  295. package/src/collections/createApiKeysCollection.ts +0 -373
  296. package/src/defaults.ts +0 -3
  297. package/src/endpoints/mcp.ts +0 -91
  298. package/src/mcp/createRequest.ts +0 -13
  299. package/src/mcp/getMcpHandler.ts +0 -545
  300. package/src/mcp/helpers/config.ts +0 -213
  301. package/src/mcp/helpers/fields.ts +0 -154
  302. package/src/mcp/helpers/fileValidation.ts +0 -362
  303. package/src/mcp/registerTool.ts +0 -22
  304. package/src/mcp/tools/auth/auth.ts +0 -71
  305. package/src/mcp/tools/auth/forgotPassword.ts +0 -70
  306. package/src/mcp/tools/auth/login.ts +0 -72
  307. package/src/mcp/tools/auth/resetPassword.ts +0 -61
  308. package/src/mcp/tools/auth/unlock.ts +0 -64
  309. package/src/mcp/tools/auth/verify.ts +0 -57
  310. package/src/mcp/tools/collection/create.ts +0 -210
  311. package/src/mcp/tools/collection/delete.ts +0 -211
  312. package/src/mcp/tools/collection/find.ts +0 -224
  313. package/src/mcp/tools/collection/update.ts +0 -290
  314. package/src/mcp/tools/config/find.ts +0 -128
  315. package/src/mcp/tools/config/update.ts +0 -280
  316. package/src/mcp/tools/global/find.ts +0 -128
  317. package/src/mcp/tools/global/update.ts +0 -207
  318. package/src/mcp/tools/job/create.ts +0 -416
  319. package/src/mcp/tools/job/run.ts +0 -167
  320. package/src/mcp/tools/job/update.ts +0 -274
  321. package/src/mcp/tools/resource/create.ts +0 -211
  322. package/src/mcp/tools/resource/delete.ts +0 -218
  323. package/src/mcp/tools/resource/find.ts +0 -246
  324. package/src/mcp/tools/resource/update.ts +0 -383
  325. package/src/mcp/tools/schemas.ts +0 -520
  326. package/src/utils/adminEntitySettings.ts +0 -40
  327. package/src/utils/createApiKeyFields.ts +0 -72
  328. package/src/utils/getEnabledSlugs.ts +0 -42
  329. package/src/utils/schemaConversion/convertCollectionSchemaToZod.ts +0 -52
@@ -1,457 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const toolSchemas: {
3
- findGlobal: {
4
- description: string;
5
- parameters: z.ZodObject<{
6
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
- fallbackLocale: z.ZodOptional<z.ZodString>;
8
- locale: z.ZodOptional<z.ZodString>;
9
- select: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- depth: number;
12
- locale?: string | undefined;
13
- select?: string | undefined;
14
- fallbackLocale?: string | undefined;
15
- }, {
16
- depth?: number | undefined;
17
- locale?: string | undefined;
18
- select?: string | undefined;
19
- fallbackLocale?: string | undefined;
20
- }>;
21
- };
22
- findResources: {
23
- description: string;
24
- parameters: z.ZodObject<{
25
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
26
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
27
- draft: z.ZodOptional<z.ZodBoolean>;
28
- fallbackLocale: z.ZodOptional<z.ZodString>;
29
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
30
- locale: z.ZodOptional<z.ZodString>;
31
- page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
32
- select: z.ZodOptional<z.ZodString>;
33
- sort: z.ZodOptional<z.ZodString>;
34
- where: z.ZodOptional<z.ZodString>;
35
- }, "strip", z.ZodTypeAny, {
36
- depth: number;
37
- page: number;
38
- limit: number;
39
- locale?: string | undefined;
40
- select?: string | undefined;
41
- sort?: string | undefined;
42
- draft?: boolean | undefined;
43
- where?: string | undefined;
44
- id?: string | number | undefined;
45
- fallbackLocale?: string | undefined;
46
- }, {
47
- depth?: number | undefined;
48
- locale?: string | undefined;
49
- select?: string | undefined;
50
- sort?: string | undefined;
51
- draft?: boolean | undefined;
52
- where?: string | undefined;
53
- id?: string | number | undefined;
54
- page?: number | undefined;
55
- fallbackLocale?: string | undefined;
56
- limit?: number | undefined;
57
- }>;
58
- };
59
- createResource: {
60
- description: string;
61
- parameters: z.ZodObject<{
62
- data: z.ZodString;
63
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
64
- draft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
65
- fallbackLocale: z.ZodOptional<z.ZodString>;
66
- locale: z.ZodOptional<z.ZodString>;
67
- select: z.ZodOptional<z.ZodString>;
68
- }, "strip", z.ZodTypeAny, {
69
- depth: number;
70
- draft: boolean;
71
- data: string;
72
- locale?: string | undefined;
73
- select?: string | undefined;
74
- fallbackLocale?: string | undefined;
75
- }, {
76
- data: string;
77
- depth?: number | undefined;
78
- locale?: string | undefined;
79
- select?: string | undefined;
80
- draft?: boolean | undefined;
81
- fallbackLocale?: string | undefined;
82
- }>;
83
- };
84
- updateResource: {
85
- description: string;
86
- parameters: z.ZodObject<{
87
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
88
- data: z.ZodString;
89
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
90
- draft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
91
- fallbackLocale: z.ZodOptional<z.ZodString>;
92
- filePath: z.ZodOptional<z.ZodString>;
93
- locale: z.ZodOptional<z.ZodString>;
94
- overrideLock: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
95
- overwriteExistingFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
96
- select: z.ZodOptional<z.ZodString>;
97
- where: z.ZodOptional<z.ZodString>;
98
- }, "strip", z.ZodTypeAny, {
99
- depth: number;
100
- draft: boolean;
101
- data: string;
102
- overrideLock: boolean;
103
- overwriteExistingFiles: boolean;
104
- locale?: string | undefined;
105
- select?: string | undefined;
106
- where?: string | undefined;
107
- id?: string | number | undefined;
108
- fallbackLocale?: string | undefined;
109
- filePath?: string | undefined;
110
- }, {
111
- data: string;
112
- depth?: number | undefined;
113
- locale?: string | undefined;
114
- select?: string | undefined;
115
- draft?: boolean | undefined;
116
- where?: string | undefined;
117
- id?: string | number | undefined;
118
- fallbackLocale?: string | undefined;
119
- filePath?: string | undefined;
120
- overrideLock?: boolean | undefined;
121
- overwriteExistingFiles?: boolean | undefined;
122
- }>;
123
- };
124
- deleteResource: {
125
- description: string;
126
- parameters: z.ZodObject<{
127
- id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
128
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
129
- fallbackLocale: z.ZodOptional<z.ZodString>;
130
- locale: z.ZodOptional<z.ZodString>;
131
- where: z.ZodOptional<z.ZodString>;
132
- }, "strip", z.ZodTypeAny, {
133
- depth: number;
134
- locale?: string | undefined;
135
- where?: string | undefined;
136
- id?: string | number | undefined;
137
- fallbackLocale?: string | undefined;
138
- }, {
139
- depth?: number | undefined;
140
- locale?: string | undefined;
141
- where?: string | undefined;
142
- id?: string | number | undefined;
143
- fallbackLocale?: string | undefined;
144
- }>;
145
- };
146
- updateGlobal: {
147
- description: string;
148
- parameters: z.ZodObject<{
149
- data: z.ZodString;
150
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
151
- draft: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
152
- fallbackLocale: z.ZodOptional<z.ZodString>;
153
- locale: z.ZodOptional<z.ZodString>;
154
- select: z.ZodOptional<z.ZodString>;
155
- }, "strip", z.ZodTypeAny, {
156
- depth: number;
157
- draft: boolean;
158
- data: string;
159
- locale?: string | undefined;
160
- select?: string | undefined;
161
- fallbackLocale?: string | undefined;
162
- }, {
163
- data: string;
164
- depth?: number | undefined;
165
- locale?: string | undefined;
166
- select?: string | undefined;
167
- draft?: boolean | undefined;
168
- fallbackLocale?: string | undefined;
169
- }>;
170
- };
171
- createCollection: {
172
- description: string;
173
- parameters: z.ZodObject<{
174
- collectionDescription: z.ZodOptional<z.ZodString>;
175
- collectionName: z.ZodString;
176
- fields: z.ZodArray<z.ZodAny, "many">;
177
- hasUpload: z.ZodOptional<z.ZodBoolean>;
178
- }, "strip", z.ZodTypeAny, {
179
- fields: any[];
180
- collectionName: string;
181
- collectionDescription?: string | undefined;
182
- hasUpload?: boolean | undefined;
183
- }, {
184
- fields: any[];
185
- collectionName: string;
186
- collectionDescription?: string | undefined;
187
- hasUpload?: boolean | undefined;
188
- }>;
189
- };
190
- findCollections: {
191
- description: string;
192
- parameters: z.ZodObject<{
193
- collectionName: z.ZodOptional<z.ZodString>;
194
- includeContent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
195
- includeCount: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
196
- }, "strip", z.ZodTypeAny, {
197
- includeContent: boolean;
198
- includeCount: boolean;
199
- collectionName?: string | undefined;
200
- }, {
201
- collectionName?: string | undefined;
202
- includeContent?: boolean | undefined;
203
- includeCount?: boolean | undefined;
204
- }>;
205
- };
206
- updateCollection: {
207
- description: string;
208
- parameters: z.ZodObject<{
209
- collectionName: z.ZodString;
210
- configUpdates: z.ZodOptional<z.ZodAny>;
211
- fieldModifications: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
212
- fieldNamesToRemove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
213
- newContent: z.ZodOptional<z.ZodString>;
214
- newFields: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
215
- updateType: z.ZodEnum<["add_field", "remove_field", "modify_field", "update_config", "replace_content"]>;
216
- }, "strip", z.ZodTypeAny, {
217
- collectionName: string;
218
- updateType: "add_field" | "remove_field" | "modify_field" | "update_config" | "replace_content";
219
- configUpdates?: any;
220
- fieldModifications?: any[] | undefined;
221
- fieldNamesToRemove?: string[] | undefined;
222
- newContent?: string | undefined;
223
- newFields?: any[] | undefined;
224
- }, {
225
- collectionName: string;
226
- updateType: "add_field" | "remove_field" | "modify_field" | "update_config" | "replace_content";
227
- configUpdates?: any;
228
- fieldModifications?: any[] | undefined;
229
- fieldNamesToRemove?: string[] | undefined;
230
- newContent?: string | undefined;
231
- newFields?: any[] | undefined;
232
- }>;
233
- };
234
- deleteCollection: {
235
- description: string;
236
- parameters: z.ZodObject<{
237
- collectionName: z.ZodString;
238
- confirmDeletion: z.ZodBoolean;
239
- updateConfig: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
240
- }, "strip", z.ZodTypeAny, {
241
- confirmDeletion: boolean;
242
- collectionName: string;
243
- updateConfig: boolean;
244
- }, {
245
- confirmDeletion: boolean;
246
- collectionName: string;
247
- updateConfig?: boolean | undefined;
248
- }>;
249
- };
250
- findConfig: {
251
- description: string;
252
- parameters: z.ZodObject<{
253
- includeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
254
- }, "strip", z.ZodTypeAny, {
255
- includeMetadata: boolean;
256
- }, {
257
- includeMetadata?: boolean | undefined;
258
- }>;
259
- };
260
- updateConfig: {
261
- description: string;
262
- parameters: z.ZodObject<{
263
- adminConfig: z.ZodOptional<z.ZodAny>;
264
- collectionName: z.ZodOptional<z.ZodString>;
265
- databaseConfig: z.ZodOptional<z.ZodAny>;
266
- newContent: z.ZodOptional<z.ZodString>;
267
- pluginUpdates: z.ZodOptional<z.ZodAny>;
268
- updateType: z.ZodEnum<["add_collection", "remove_collection", "update_admin", "update_database", "update_plugins", "replace_content"]>;
269
- }, "strip", z.ZodTypeAny, {
270
- updateType: "replace_content" | "add_collection" | "remove_collection" | "update_admin" | "update_database" | "update_plugins";
271
- collectionName?: string | undefined;
272
- newContent?: string | undefined;
273
- adminConfig?: any;
274
- databaseConfig?: any;
275
- pluginUpdates?: any;
276
- }, {
277
- updateType: "replace_content" | "add_collection" | "remove_collection" | "update_admin" | "update_database" | "update_plugins";
278
- collectionName?: string | undefined;
279
- newContent?: string | undefined;
280
- adminConfig?: any;
281
- databaseConfig?: any;
282
- pluginUpdates?: any;
283
- }>;
284
- };
285
- auth: {
286
- description: string;
287
- parameters: z.ZodObject<{
288
- headers: z.ZodOptional<z.ZodString>;
289
- }, "strip", z.ZodTypeAny, {
290
- headers?: string | undefined;
291
- }, {
292
- headers?: string | undefined;
293
- }>;
294
- };
295
- login: {
296
- description: string;
297
- parameters: z.ZodObject<{
298
- collection: z.ZodString;
299
- depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
300
- email: z.ZodString;
301
- overrideAccess: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
302
- password: z.ZodString;
303
- showHiddenFields: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
304
- }, "strip", z.ZodTypeAny, {
305
- collection: string;
306
- depth: number;
307
- email: string;
308
- password: string;
309
- overrideAccess: boolean;
310
- showHiddenFields: boolean;
311
- }, {
312
- collection: string;
313
- email: string;
314
- password: string;
315
- depth?: number | undefined;
316
- overrideAccess?: boolean | undefined;
317
- showHiddenFields?: boolean | undefined;
318
- }>;
319
- };
320
- verify: {
321
- description: string;
322
- parameters: z.ZodObject<{
323
- collection: z.ZodString;
324
- token: z.ZodString;
325
- }, "strip", z.ZodTypeAny, {
326
- collection: string;
327
- token: string;
328
- }, {
329
- collection: string;
330
- token: string;
331
- }>;
332
- };
333
- resetPassword: {
334
- description: string;
335
- parameters: z.ZodObject<{
336
- collection: z.ZodString;
337
- password: z.ZodString;
338
- token: z.ZodString;
339
- }, "strip", z.ZodTypeAny, {
340
- collection: string;
341
- password: string;
342
- token: string;
343
- }, {
344
- collection: string;
345
- password: string;
346
- token: string;
347
- }>;
348
- };
349
- forgotPassword: {
350
- description: string;
351
- parameters: z.ZodObject<{
352
- collection: z.ZodString;
353
- disableEmail: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
354
- email: z.ZodString;
355
- }, "strip", z.ZodTypeAny, {
356
- collection: string;
357
- email: string;
358
- disableEmail: boolean;
359
- }, {
360
- collection: string;
361
- email: string;
362
- disableEmail?: boolean | undefined;
363
- }>;
364
- };
365
- unlock: {
366
- description: string;
367
- parameters: z.ZodObject<{
368
- collection: z.ZodString;
369
- email: z.ZodString;
370
- }, "strip", z.ZodTypeAny, {
371
- collection: string;
372
- email: string;
373
- }, {
374
- collection: string;
375
- email: string;
376
- }>;
377
- };
378
- createJob: {
379
- description: string;
380
- parameters: z.ZodObject<{
381
- description: z.ZodString;
382
- inputSchema: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
383
- jobData: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
384
- jobName: z.ZodString;
385
- jobSlug: z.ZodString;
386
- jobType: z.ZodEnum<["task", "workflow"]>;
387
- outputSchema: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
388
- }, "strip", z.ZodTypeAny, {
389
- description: string;
390
- inputSchema: Record<string, any>;
391
- jobData: Record<string, any>;
392
- jobName: string;
393
- jobSlug: string;
394
- jobType: "task" | "workflow";
395
- outputSchema: Record<string, any>;
396
- }, {
397
- description: string;
398
- jobName: string;
399
- jobSlug: string;
400
- jobType: "task" | "workflow";
401
- inputSchema?: Record<string, any> | undefined;
402
- jobData?: Record<string, any> | undefined;
403
- outputSchema?: Record<string, any> | undefined;
404
- }>;
405
- };
406
- updateJob: {
407
- description: string;
408
- parameters: z.ZodObject<{
409
- configUpdate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
410
- handlerCode: z.ZodOptional<z.ZodString>;
411
- inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
412
- jobSlug: z.ZodString;
413
- outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
414
- taskSequence: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
415
- updateType: z.ZodEnum<["modify_schema", "update_tasks", "change_config", "replace_handler"]>;
416
- }, "strip", z.ZodTypeAny, {
417
- updateType: "modify_schema" | "update_tasks" | "change_config" | "replace_handler";
418
- jobSlug: string;
419
- inputSchema?: Record<string, any> | undefined;
420
- outputSchema?: Record<string, any> | undefined;
421
- configUpdate?: Record<string, any> | undefined;
422
- handlerCode?: string | undefined;
423
- taskSequence?: any[] | undefined;
424
- }, {
425
- updateType: "modify_schema" | "update_tasks" | "change_config" | "replace_handler";
426
- jobSlug: string;
427
- inputSchema?: Record<string, any> | undefined;
428
- outputSchema?: Record<string, any> | undefined;
429
- configUpdate?: Record<string, any> | undefined;
430
- handlerCode?: string | undefined;
431
- taskSequence?: any[] | undefined;
432
- }>;
433
- };
434
- runJob: {
435
- description: string;
436
- parameters: z.ZodObject<{
437
- delay: z.ZodOptional<z.ZodNumber>;
438
- input: z.ZodRecord<z.ZodString, z.ZodAny>;
439
- jobSlug: z.ZodString;
440
- priority: z.ZodOptional<z.ZodNumber>;
441
- queue: z.ZodOptional<z.ZodString>;
442
- }, "strip", z.ZodTypeAny, {
443
- jobSlug: string;
444
- input: Record<string, any>;
445
- delay?: number | undefined;
446
- priority?: number | undefined;
447
- queue?: string | undefined;
448
- }, {
449
- jobSlug: string;
450
- input: Record<string, any>;
451
- delay?: number | undefined;
452
- priority?: number | undefined;
453
- queue?: string | undefined;
454
- }>;
455
- };
456
- };
457
- //# sourceMappingURL=schemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqgBvB,CAAA"}