@rnsk/toolkits 0.0.11 → 0.0.12

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 (492) hide show
  1. package/README.md +12 -2
  2. package/dist/index.d.ts +11 -1
  3. package/dist/index.js +21 -1
  4. package/dist/toolkits/accuweather/icon.d.ts +5 -0
  5. package/dist/toolkits/accuweather/icon.js +6 -0
  6. package/dist/toolkits/accuweather/manifest.d.ts +3 -0
  7. package/dist/toolkits/accuweather/manifest.js +35 -0
  8. package/dist/toolkits/accuweather/tools/alerts-alarms.d.ts +13 -0
  9. package/dist/toolkits/accuweather/tools/alerts-alarms.js +25 -0
  10. package/dist/toolkits/accuweather/tools/client.d.ts +17 -0
  11. package/dist/toolkits/accuweather/tools/client.js +50 -0
  12. package/dist/toolkits/accuweather/tools/current-conditions.d.ts +21 -0
  13. package/dist/toolkits/accuweather/tools/current-conditions.js +46 -0
  14. package/dist/toolkits/accuweather/tools/forecasts.d.ts +17 -0
  15. package/dist/toolkits/accuweather/tools/forecasts.js +41 -0
  16. package/dist/toolkits/accuweather/tools/imagery.d.ts +7 -0
  17. package/dist/toolkits/accuweather/tools/imagery.js +21 -0
  18. package/dist/toolkits/accuweather/tools/index.d.ts +21 -0
  19. package/dist/toolkits/accuweather/tools/index.js +60 -0
  20. package/dist/toolkits/accuweather/tools/indices.d.ts +29 -0
  21. package/dist/toolkits/accuweather/tools/indices.js +66 -0
  22. package/dist/toolkits/accuweather/tools/lightning.d.ts +11 -0
  23. package/dist/toolkits/accuweather/tools/lightning.js +35 -0
  24. package/dist/toolkits/accuweather/tools/locations.d.ts +101 -0
  25. package/dist/toolkits/accuweather/tools/locations.js +280 -0
  26. package/dist/toolkits/accuweather/tools/minutecast.d.ts +11 -0
  27. package/dist/toolkits/accuweather/tools/minutecast.js +28 -0
  28. package/dist/toolkits/accuweather/tools/translations.d.ts +20 -0
  29. package/dist/toolkits/accuweather/tools/translations.js +49 -0
  30. package/dist/toolkits/accuweather/tools/tropical.d.ts +49 -0
  31. package/dist/toolkits/accuweather/tools/tropical.js +108 -0
  32. package/dist/toolkits/aws/tools/cloudwatch/filter-log-events.d.ts +2 -2
  33. package/dist/toolkits/aws/tools/cloudwatch/get-metric-data.d.ts +2 -2
  34. package/dist/toolkits/aws/tools/index.d.ts +4 -4
  35. package/dist/toolkits/bitbucket/tools/commits.d.ts +3 -3
  36. package/dist/toolkits/bitbucket/tools/index.d.ts +4 -4
  37. package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +1 -1
  38. package/dist/toolkits/bitbucket/tools/repositories.d.ts +1 -1
  39. package/dist/toolkits/cloudflare/tools/create-dns-record.d.ts +2 -2
  40. package/dist/toolkits/cloudflare/tools/create-zone.d.ts +1 -1
  41. package/dist/toolkits/cloudflare/tools/index.d.ts +9 -9
  42. package/dist/toolkits/cloudflare/tools/list-accounts.d.ts +1 -1
  43. package/dist/toolkits/cloudflare/tools/list-dns-records.d.ts +1 -1
  44. package/dist/toolkits/cloudflare/tools/list-tunnels.d.ts +1 -1
  45. package/dist/toolkits/cloudflare/tools/list-zones.d.ts +1 -1
  46. package/dist/toolkits/cloudflare/tools/update-dns-record.d.ts +1 -1
  47. package/dist/toolkits/cloudflare/tools/update-zone.d.ts +1 -1
  48. package/dist/toolkits/convex/tools/deployments.d.ts +1 -1
  49. package/dist/toolkits/convex/tools/index.d.ts +1 -1
  50. package/dist/toolkits/datadog/tools/events.d.ts +1 -1
  51. package/dist/toolkits/datadog/tools/index.d.ts +5 -5
  52. package/dist/toolkits/datadog/tools/integrations.d.ts +1 -1
  53. package/dist/toolkits/datadog/tools/metrics.d.ts +1 -1
  54. package/dist/toolkits/datadog/tools/monitors.d.ts +1 -1
  55. package/dist/toolkits/datadog/tools/synthetics.d.ts +1 -1
  56. package/dist/toolkits/dev-to/tools/articles.d.ts +1 -1
  57. package/dist/toolkits/dev-to/tools/community.d.ts +1 -1
  58. package/dist/toolkits/dev-to/tools/index.d.ts +2 -2
  59. package/dist/toolkits/discord/tools/applications.d.ts +1 -1
  60. package/dist/toolkits/discord/tools/index.d.ts +1 -1
  61. package/dist/toolkits/figma/tools/create-dev-resources.d.ts +1 -1
  62. package/dist/toolkits/figma/tools/get-activity-logs.d.ts +2 -2
  63. package/dist/toolkits/figma/tools/get-file-json.d.ts +1 -1
  64. package/dist/toolkits/figma/tools/get-team-component-sets.d.ts +1 -1
  65. package/dist/toolkits/figma/tools/get-team-components.d.ts +1 -1
  66. package/dist/toolkits/figma/tools/get-team-styles.d.ts +1 -1
  67. package/dist/toolkits/figma/tools/get-versions-of-a-file.d.ts +1 -1
  68. package/dist/toolkits/figma/tools/index.d.ts +7 -7
  69. package/dist/toolkits/figma/tools/update-dev-resources.d.ts +1 -1
  70. package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +1 -1
  71. package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +1 -1
  72. package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +1 -1
  73. package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +1 -1
  74. package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +2 -2
  75. package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +1 -1
  76. package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +1 -1
  77. package/dist/toolkits/github/tools/Projects/update-project.d.ts +1 -1
  78. package/dist/toolkits/github/tools/Releases/create-release.d.ts +1 -1
  79. package/dist/toolkits/github/tools/Releases/update-release.d.ts +1 -1
  80. package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +2 -2
  81. package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +1 -1
  82. package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +1 -1
  83. package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +1 -1
  84. package/dist/toolkits/github/tools/Teams/update-team.d.ts +1 -1
  85. package/dist/toolkits/github/tools/Users/follow-user.d.ts +1 -1
  86. package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +1 -1
  87. package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +1 -1
  88. package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +1 -1
  89. package/dist/toolkits/github/tools/index.d.ts +21 -21
  90. package/dist/toolkits/gitlab/tools/index.d.ts +2 -2
  91. package/dist/toolkits/gitlab/tools/pipelines.d.ts +1 -1
  92. package/dist/toolkits/gitlab/tools/projects.d.ts +1 -1
  93. package/dist/toolkits/gmail/manifest.js +204 -1
  94. package/dist/toolkits/gmail/tools/create-label.d.ts +2 -2
  95. package/dist/toolkits/gmail/tools/index.d.ts +5 -0
  96. package/dist/toolkits/gmail/tools/index.js +5 -0
  97. package/dist/toolkits/gmail/tools/labels-threads.d.ts +47 -0
  98. package/dist/toolkits/gmail/tools/labels-threads.js +110 -0
  99. package/dist/toolkits/gmail/tools/list-drafts.d.ts +1 -1
  100. package/dist/toolkits/gmail/tools/list-threads.d.ts +1 -1
  101. package/dist/toolkits/gmail/tools/mailbox.d.ts +46 -0
  102. package/dist/toolkits/gmail/tools/mailbox.js +142 -0
  103. package/dist/toolkits/gmail/tools/messages-extra.d.ts +34 -0
  104. package/dist/toolkits/gmail/tools/messages-extra.js +176 -0
  105. package/dist/toolkits/gmail/tools/people-extra.d.ts +18 -0
  106. package/dist/toolkits/gmail/tools/people-extra.js +67 -0
  107. package/dist/toolkits/gmail/tools/settings.d.ts +100 -0
  108. package/dist/toolkits/gmail/tools/settings.js +210 -0
  109. package/dist/toolkits/google-analytics/tools/admin.d.ts +3 -3
  110. package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +2 -2
  111. package/dist/toolkits/google-classroom/tools/announcement-addons.d.ts +4 -4
  112. package/dist/toolkits/google-classroom/tools/coursework-addons.d.ts +2 -2
  113. package/dist/toolkits/google-classroom/tools/coursework.d.ts +1 -1
  114. package/dist/toolkits/google-classroom/tools/index.d.ts +9 -9
  115. package/dist/toolkits/google-classroom/tools/invitations.d.ts +2 -2
  116. package/dist/toolkits/google-classroom/tools/materials-addons.d.ts +2 -2
  117. package/dist/toolkits/google-classroom/tools/posts-addons.d.ts +1 -1
  118. package/dist/toolkits/google-contacts/tools/contacts.d.ts +5 -5
  119. package/dist/toolkits/google-contacts/tools/directory.d.ts +3 -3
  120. package/dist/toolkits/google-contacts/tools/groups.d.ts +1 -1
  121. package/dist/toolkits/google-contacts/tools/index.d.ts +9 -9
  122. package/dist/toolkits/google-drive/tools/index.d.ts +3 -3
  123. package/dist/toolkits/google-drive/tools/search-files.d.ts +1 -1
  124. package/dist/toolkits/google-drive/tools/upload-file.d.ts +2 -2
  125. package/dist/toolkits/google-maps/tools/index.d.ts +4 -4
  126. package/dist/toolkits/google-maps/tools/places.d.ts +4 -4
  127. package/dist/toolkits/google-sheets/tools/index.d.ts +1 -1
  128. package/dist/toolkits/google-sheets/tools/list-spreadsheets.d.ts +1 -1
  129. package/dist/toolkits/google-tasks/tools/batch-execute.d.ts +1 -1
  130. package/dist/toolkits/google-tasks/tools/index.d.ts +2 -2
  131. package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
  132. package/dist/toolkits/groww/tools/index.d.ts +8 -8
  133. package/dist/toolkits/groww/tools/margin.d.ts +1 -1
  134. package/dist/toolkits/groww/tools/orders.d.ts +2 -2
  135. package/dist/toolkits/groww/tools/smart-orders.d.ts +5 -5
  136. package/dist/toolkits/gumroad/icon.d.ts +5 -0
  137. package/dist/toolkits/gumroad/icon.js +6 -0
  138. package/dist/toolkits/gumroad/manifest.d.ts +3 -0
  139. package/dist/toolkits/gumroad/manifest.js +41 -0
  140. package/dist/toolkits/gumroad/tools/client.d.ts +16 -0
  141. package/dist/toolkits/gumroad/tools/client.js +53 -0
  142. package/dist/toolkits/gumroad/tools/index.d.ts +12 -0
  143. package/dist/toolkits/gumroad/tools/index.js +17 -0
  144. package/dist/toolkits/gumroad/tools/sales.d.ts +34 -0
  145. package/dist/toolkits/gumroad/tools/sales.js +68 -0
  146. package/dist/toolkits/hostinger/tools/hosting.d.ts +2 -2
  147. package/dist/toolkits/hostinger/tools/index.d.ts +3 -3
  148. package/dist/toolkits/hostinger/tools/whois.d.ts +1 -1
  149. package/dist/toolkits/hugging-face/tools/datasets.d.ts +1 -1
  150. package/dist/toolkits/hugging-face/tools/index.d.ts +2 -2
  151. package/dist/toolkits/hugging-face/tools/papers.d.ts +1 -1
  152. package/dist/toolkits/jira/tools/boards.d.ts +1 -1
  153. package/dist/toolkits/jira/tools/index.d.ts +4 -4
  154. package/dist/toolkits/jira/tools/meta.d.ts +1 -1
  155. package/dist/toolkits/jira/tools/projects.d.ts +1 -1
  156. package/dist/toolkits/jira/tools/users.d.ts +1 -1
  157. package/dist/toolkits/kaggle/tools/competitions.d.ts +1 -1
  158. package/dist/toolkits/kaggle/tools/datasets.d.ts +1 -1
  159. package/dist/toolkits/kaggle/tools/index.d.ts +7 -7
  160. package/dist/toolkits/kaggle/tools/kernels.d.ts +3 -3
  161. package/dist/toolkits/kaggle/tools/models.d.ts +2 -2
  162. package/dist/toolkits/nasa/tools/cmr.d.ts +3 -3
  163. package/dist/toolkits/nasa/tools/eonet.d.ts +5 -5
  164. package/dist/toolkits/nasa/tools/index.d.ts +9 -9
  165. package/dist/toolkits/nasa/tools/ntrs.d.ts +1 -1
  166. package/dist/toolkits/neon/tools/auth.d.ts +5 -5
  167. package/dist/toolkits/neon/tools/index.d.ts +5 -5
  168. package/dist/toolkits/new-relic/tools/admin.d.ts +1 -1
  169. package/dist/toolkits/new-relic/tools/alert-policies.d.ts +1 -1
  170. package/dist/toolkits/new-relic/tools/apm.d.ts +9 -9
  171. package/dist/toolkits/new-relic/tools/conditions.d.ts +5 -5
  172. package/dist/toolkits/new-relic/tools/config.d.ts +1 -1
  173. package/dist/toolkits/new-relic/tools/dashboards.d.ts +2 -2
  174. package/dist/toolkits/new-relic/tools/entities.d.ts +1 -1
  175. package/dist/toolkits/new-relic/tools/notifications.d.ts +1 -1
  176. package/dist/toolkits/new-relic/tools/nrql-conditions.d.ts +2 -2
  177. package/dist/toolkits/notebook-lm/tools/index.d.ts +2 -2
  178. package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.d.ts +1 -1
  179. package/dist/toolkits/notebook-lm/tools/upload-source-file.d.ts +1 -1
  180. package/dist/toolkits/postman/icon.d.ts +5 -0
  181. package/dist/toolkits/postman/icon.js +14 -0
  182. package/dist/toolkits/postman/manifest.d.ts +3 -0
  183. package/dist/toolkits/postman/manifest.js +35 -0
  184. package/dist/toolkits/postman/tools/client.d.ts +23 -0
  185. package/dist/toolkits/postman/tools/client.js +59 -0
  186. package/dist/toolkits/postman/tools/collections.d.ts +93 -0
  187. package/dist/toolkits/postman/tools/collections.js +358 -0
  188. package/dist/toolkits/postman/tools/comments.d.ts +113 -0
  189. package/dist/toolkits/postman/tools/comments.js +387 -0
  190. package/dist/toolkits/postman/tools/designs_and_apis.d.ts +106 -0
  191. package/dist/toolkits/postman/tools/designs_and_apis.js +385 -0
  192. package/dist/toolkits/postman/tools/environments.d.ts +63 -0
  193. package/dist/toolkits/postman/tools/environments.js +208 -0
  194. package/dist/toolkits/postman/tools/index.d.ts +1204 -0
  195. package/dist/toolkits/postman/tools/index.js +143 -0
  196. package/dist/toolkits/postman/tools/items.d.ts +90 -0
  197. package/dist/toolkits/postman/tools/items.js +286 -0
  198. package/dist/toolkits/postman/tools/mocks_and_tests.d.ts +100 -0
  199. package/dist/toolkits/postman/tools/mocks_and_tests.js +363 -0
  200. package/dist/toolkits/postman/tools/pull_requests.d.ts +26 -0
  201. package/dist/toolkits/postman/tools/pull_requests.js +108 -0
  202. package/dist/toolkits/postman/tools/scim_users_teams.d.ts +31 -0
  203. package/dist/toolkits/postman/tools/scim_users_teams.js +156 -0
  204. package/dist/toolkits/postman/tools/specs.d.ts +100 -0
  205. package/dist/toolkits/postman/tools/specs.js +380 -0
  206. package/dist/toolkits/postman/tools/webhooks.d.ts +8 -0
  207. package/dist/toolkits/postman/tools/webhooks.js +40 -0
  208. package/dist/toolkits/postman/tools/workspaces.d.ts +50 -0
  209. package/dist/toolkits/postman/tools/workspaces.js +198 -0
  210. package/dist/toolkits/prometheus/icon.d.ts +5 -0
  211. package/dist/toolkits/prometheus/icon.js +52 -0
  212. package/dist/toolkits/prometheus/manifest.d.ts +3 -0
  213. package/dist/toolkits/prometheus/manifest.js +32 -0
  214. package/dist/toolkits/prometheus/tools/admin.d.ts +19 -0
  215. package/dist/toolkits/prometheus/tools/admin.js +90 -0
  216. package/dist/toolkits/prometheus/tools/client.d.ts +22 -0
  217. package/dist/toolkits/prometheus/tools/client.js +91 -0
  218. package/dist/toolkits/prometheus/tools/discovery.d.ts +82 -0
  219. package/dist/toolkits/prometheus/tools/discovery.js +182 -0
  220. package/dist/toolkits/prometheus/tools/index.d.ts +16 -0
  221. package/dist/toolkits/prometheus/tools/index.js +51 -0
  222. package/dist/toolkits/prometheus/tools/query.d.ts +33 -0
  223. package/dist/toolkits/prometheus/tools/query.js +101 -0
  224. package/dist/toolkits/prometheus/tools/status.d.ts +66 -0
  225. package/dist/toolkits/prometheus/tools/status.js +248 -0
  226. package/dist/toolkits/prometheus/tools/targets.d.ts +31 -0
  227. package/dist/toolkits/prometheus/tools/targets.js +117 -0
  228. package/dist/toolkits/razorpay/icon.d.ts +5 -0
  229. package/dist/toolkits/razorpay/icon.js +33 -0
  230. package/dist/toolkits/razorpay/manifest.d.ts +3 -0
  231. package/dist/toolkits/razorpay/manifest.js +32 -0
  232. package/dist/toolkits/razorpay/tools/client.d.ts +24 -0
  233. package/dist/toolkits/razorpay/tools/client.js +73 -0
  234. package/dist/toolkits/razorpay/tools/customers.d.ts +29 -0
  235. package/dist/toolkits/razorpay/tools/customers.js +53 -0
  236. package/dist/toolkits/razorpay/tools/index.d.ts +16 -0
  237. package/dist/toolkits/razorpay/tools/index.js +56 -0
  238. package/dist/toolkits/razorpay/tools/invoices.d.ts +169 -0
  239. package/dist/toolkits/razorpay/tools/invoices.js +143 -0
  240. package/dist/toolkits/razorpay/tools/items-links.d.ts +98 -0
  241. package/dist/toolkits/razorpay/tools/items-links.js +131 -0
  242. package/dist/toolkits/razorpay/tools/orders.d.ts +63 -0
  243. package/dist/toolkits/razorpay/tools/orders.js +99 -0
  244. package/dist/toolkits/razorpay/tools/payouts.d.ts +58 -0
  245. package/dist/toolkits/razorpay/tools/payouts.js +91 -0
  246. package/dist/toolkits/servicenow/icon.d.ts +5 -0
  247. package/dist/toolkits/servicenow/icon.js +6 -0
  248. package/dist/toolkits/servicenow/manifest.d.ts +3 -0
  249. package/dist/toolkits/servicenow/manifest.js +33 -0
  250. package/dist/toolkits/servicenow/tools/attachments.d.ts +35 -0
  251. package/dist/toolkits/servicenow/tools/attachments.js +120 -0
  252. package/dist/toolkits/servicenow/tools/catalog.d.ts +122 -0
  253. package/dist/toolkits/servicenow/tools/catalog.js +333 -0
  254. package/dist/toolkits/servicenow/tools/changes.d.ts +374 -0
  255. package/dist/toolkits/servicenow/tools/changes.js +609 -0
  256. package/dist/toolkits/servicenow/tools/cicd.d.ts +109 -0
  257. package/dist/toolkits/servicenow/tools/cicd.js +316 -0
  258. package/dist/toolkits/servicenow/tools/client.d.ts +42 -0
  259. package/dist/toolkits/servicenow/tools/client.js +168 -0
  260. package/dist/toolkits/servicenow/tools/cmdb.d.ts +224 -0
  261. package/dist/toolkits/servicenow/tools/cmdb.js +460 -0
  262. package/dist/toolkits/servicenow/tools/imports.d.ts +13 -0
  263. package/dist/toolkits/servicenow/tools/imports.js +36 -0
  264. package/dist/toolkits/servicenow/tools/incidents.d.ts +94 -0
  265. package/dist/toolkits/servicenow/tools/incidents.js +226 -0
  266. package/dist/toolkits/servicenow/tools/index.d.ts +1566 -0
  267. package/dist/toolkits/servicenow/tools/index.js +169 -0
  268. package/dist/toolkits/servicenow/tools/platform.d.ts +124 -0
  269. package/dist/toolkits/servicenow/tools/platform.js +298 -0
  270. package/dist/toolkits/servicenow/tools/records.d.ts +73 -0
  271. package/dist/toolkits/servicenow/tools/records.js +185 -0
  272. package/dist/toolkits/servicenow/tools/sdon.d.ts +48 -0
  273. package/dist/toolkits/servicenow/tools/sdon.js +81 -0
  274. package/dist/toolkits/slack/tools/admin-conversations.d.ts +2 -2
  275. package/dist/toolkits/slack/tools/emoji.d.ts +1 -1
  276. package/dist/toolkits/slack/tools/messages.d.ts +2 -2
  277. package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +2 -2
  278. package/dist/toolkits/slack/tools/search.d.ts +3 -3
  279. package/dist/toolkits/slack/tools/users.d.ts +1 -1
  280. package/dist/toolkits/vercel/icon.d.ts +5 -0
  281. package/dist/toolkits/vercel/icon.js +6 -0
  282. package/dist/toolkits/vercel/manifest.d.ts +3 -0
  283. package/dist/toolkits/vercel/manifest.js +35 -0
  284. package/dist/toolkits/vercel/tools/aliases.d.ts +47 -0
  285. package/dist/toolkits/vercel/tools/aliases.js +141 -0
  286. package/dist/toolkits/vercel/tools/auth.d.ts +23 -0
  287. package/dist/toolkits/vercel/tools/auth.js +117 -0
  288. package/dist/toolkits/vercel/tools/cache-artifacts.d.ts +57 -0
  289. package/dist/toolkits/vercel/tools/cache-artifacts.js +205 -0
  290. package/dist/toolkits/vercel/tools/certs.d.ts +9 -0
  291. package/dist/toolkits/vercel/tools/certs.js +31 -0
  292. package/dist/toolkits/vercel/tools/client.d.ts +17 -0
  293. package/dist/toolkits/vercel/tools/client.js +53 -0
  294. package/dist/toolkits/vercel/tools/deployments.d.ts +169 -0
  295. package/dist/toolkits/vercel/tools/deployments.js +443 -0
  296. package/dist/toolkits/vercel/tools/domains.d.ts +229 -0
  297. package/dist/toolkits/vercel/tools/domains.js +719 -0
  298. package/dist/toolkits/vercel/tools/edge-config.d.ts +110 -0
  299. package/dist/toolkits/vercel/tools/edge-config.js +402 -0
  300. package/dist/toolkits/vercel/tools/environment-variables.d.ts +137 -0
  301. package/dist/toolkits/vercel/tools/environment-variables.js +411 -0
  302. package/dist/toolkits/vercel/tools/firewall.d.ts +57 -0
  303. package/dist/toolkits/vercel/tools/firewall.js +187 -0
  304. package/dist/toolkits/vercel/tools/index.d.ts +1944 -0
  305. package/dist/toolkits/vercel/tools/index.js +312 -0
  306. package/dist/toolkits/vercel/tools/logs.d.ts +35 -0
  307. package/dist/toolkits/vercel/tools/logs.js +129 -0
  308. package/dist/toolkits/vercel/tools/misc.d.ts +140 -0
  309. package/dist/toolkits/vercel/tools/misc.js +486 -0
  310. package/dist/toolkits/vercel/tools/projects.d.ts +194 -0
  311. package/dist/toolkits/vercel/tools/projects.js +468 -0
  312. package/dist/toolkits/vercel/tools/teams.d.ts +50 -0
  313. package/dist/toolkits/vercel/tools/teams.js +144 -0
  314. package/dist/toolkits/vercel/tools/webhooks.d.ts +27 -0
  315. package/dist/toolkits/vercel/tools/webhooks.js +103 -0
  316. package/dist/toolkits/wise/icon.d.ts +5 -0
  317. package/dist/toolkits/wise/icon.js +15 -0
  318. package/dist/toolkits/wise/manifest.d.ts +3 -0
  319. package/dist/toolkits/wise/manifest.js +30 -0
  320. package/dist/toolkits/wise/tools/create-quote.d.ts +86 -0
  321. package/dist/toolkits/wise/tools/create-quote.js +64 -0
  322. package/dist/toolkits/wise/tools/get-exchange-rate.d.ts +42 -0
  323. package/dist/toolkits/wise/tools/get-exchange-rate.js +44 -0
  324. package/dist/toolkits/wise/tools/get-quote.d.ts +82 -0
  325. package/dist/toolkits/wise/tools/get-quote.js +46 -0
  326. package/dist/toolkits/wise/tools/index.d.ts +475 -0
  327. package/dist/toolkits/wise/tools/index.js +77 -0
  328. package/dist/toolkits/wise/tools/list-activities.d.ts +43 -0
  329. package/dist/toolkits/wise/tools/list-activities.js +49 -0
  330. package/dist/toolkits/wise/tools/list-balances.d.ts +30 -0
  331. package/dist/toolkits/wise/tools/list-balances.js +34 -0
  332. package/dist/toolkits/wise/tools/list-currencies.d.ts +29 -0
  333. package/dist/toolkits/wise/tools/list-currencies.js +31 -0
  334. package/dist/toolkits/wise/tools/list-profiles.d.ts +28 -0
  335. package/dist/toolkits/wise/tools/list-profiles.js +29 -0
  336. package/dist/toolkits/wise/tools/list-recipients.d.ts +43 -0
  337. package/dist/toolkits/wise/tools/list-recipients.js +54 -0
  338. package/dist/toolkits/wise/tools/list-transfers.d.ts +44 -0
  339. package/dist/toolkits/wise/tools/list-transfers.js +52 -0
  340. package/dist/toolkits/wise/tools/utils.d.ts +18 -0
  341. package/dist/toolkits/wise/tools/utils.js +39 -0
  342. package/dist/toolkits/wordpress/icon.d.ts +5 -0
  343. package/dist/toolkits/wordpress/icon.js +6 -0
  344. package/dist/toolkits/wordpress/manifest.d.ts +3 -0
  345. package/dist/toolkits/wordpress/manifest.js +36 -0
  346. package/dist/toolkits/wordpress/tools/create-draft-post.d.ts +47 -0
  347. package/dist/toolkits/wordpress/tools/create-draft-post.js +68 -0
  348. package/dist/toolkits/wordpress/tools/delete-draft-post.d.ts +38 -0
  349. package/dist/toolkits/wordpress/tools/delete-draft-post.js +51 -0
  350. package/dist/toolkits/wordpress/tools/get-post.d.ts +41 -0
  351. package/dist/toolkits/wordpress/tools/get-post.js +48 -0
  352. package/dist/toolkits/wordpress/tools/get-site-overview.d.ts +67 -0
  353. package/dist/toolkits/wordpress/tools/get-site-overview.js +91 -0
  354. package/dist/toolkits/wordpress/tools/index.d.ts +489 -0
  355. package/dist/toolkits/wordpress/tools/index.js +85 -0
  356. package/dist/toolkits/wordpress/tools/list-blogging-prompts.d.ts +48 -0
  357. package/dist/toolkits/wordpress/tools/list-blogging-prompts.js +55 -0
  358. package/dist/toolkits/wordpress/tools/list-cms-resources.d.ts +45 -0
  359. package/dist/toolkits/wordpress/tools/list-cms-resources.js +77 -0
  360. package/dist/toolkits/wordpress/tools/list-content.d.ts +49 -0
  361. package/dist/toolkits/wordpress/tools/list-content.js +71 -0
  362. package/dist/toolkits/wordpress/tools/list-reader-subscriptions.d.ts +24 -0
  363. package/dist/toolkits/wordpress/tools/list-reader-subscriptions.js +39 -0
  364. package/dist/toolkits/wordpress/tools/list-sites.d.ts +26 -0
  365. package/dist/toolkits/wordpress/tools/list-sites.js +69 -0
  366. package/dist/toolkits/wordpress/tools/update-draft-post.d.ts +51 -0
  367. package/dist/toolkits/wordpress/tools/update-draft-post.js +93 -0
  368. package/dist/toolkits/wordpress/tools/utils.d.ts +18 -0
  369. package/dist/toolkits/wordpress/tools/utils.js +33 -0
  370. package/dist/toolkits/zoho/icon.d.ts +5 -0
  371. package/dist/toolkits/zoho/icon.js +125 -0
  372. package/dist/toolkits/zoho/manifest.d.ts +3 -0
  373. package/dist/toolkits/zoho/manifest.js +54 -0
  374. package/dist/toolkits/zoho/tools/convert-zoho-lead.d.ts +11 -0
  375. package/dist/toolkits/zoho/tools/convert-zoho-lead.js +47 -0
  376. package/dist/toolkits/zoho/tools/create-contact.d.ts +36 -0
  377. package/dist/toolkits/zoho/tools/create-contact.js +58 -0
  378. package/dist/toolkits/zoho/tools/create-deal.d.ts +17 -0
  379. package/dist/toolkits/zoho/tools/create-deal.js +39 -0
  380. package/dist/toolkits/zoho/tools/create-email-draft.d.ts +7 -0
  381. package/dist/toolkits/zoho/tools/create-email-draft.js +30 -0
  382. package/dist/toolkits/zoho/tools/create-event.d.ts +18 -0
  383. package/dist/toolkits/zoho/tools/create-event.js +40 -0
  384. package/dist/toolkits/zoho/tools/create-lead.d.ts +31 -0
  385. package/dist/toolkits/zoho/tools/create-lead.js +53 -0
  386. package/dist/toolkits/zoho/tools/create-note.d.ts +8 -0
  387. package/dist/toolkits/zoho/tools/create-note.js +31 -0
  388. package/dist/toolkits/zoho/tools/create-zoho-record.d.ts +8 -0
  389. package/dist/toolkits/zoho/tools/create-zoho-record.js +35 -0
  390. package/dist/toolkits/zoho/tools/create-zoho-tag.d.ts +7 -0
  391. package/dist/toolkits/zoho/tools/create-zoho-tag.js +30 -0
  392. package/dist/toolkits/zoho/tools/delete-account.d.ts +6 -0
  393. package/dist/toolkits/zoho/tools/delete-account.js +29 -0
  394. package/dist/toolkits/zoho/tools/delete-contact.d.ts +6 -0
  395. package/dist/toolkits/zoho/tools/delete-contact.js +29 -0
  396. package/dist/toolkits/zoho/tools/delete-deal.d.ts +6 -0
  397. package/dist/toolkits/zoho/tools/delete-deal.js +29 -0
  398. package/dist/toolkits/zoho/tools/get-account.d.ts +6 -0
  399. package/dist/toolkits/zoho/tools/get-account.js +34 -0
  400. package/dist/toolkits/zoho/tools/get-call.d.ts +6 -0
  401. package/dist/toolkits/zoho/tools/get-call.js +34 -0
  402. package/dist/toolkits/zoho/tools/get-contact.d.ts +5 -0
  403. package/dist/toolkits/zoho/tools/get-contact.js +33 -0
  404. package/dist/toolkits/zoho/tools/get-email-drafts.d.ts +6 -0
  405. package/dist/toolkits/zoho/tools/get-email-drafts.js +34 -0
  406. package/dist/toolkits/zoho/tools/get-event.d.ts +5 -0
  407. package/dist/toolkits/zoho/tools/get-event.js +33 -0
  408. package/dist/toolkits/zoho/tools/get-from-addresses.d.ts +4 -0
  409. package/dist/toolkits/zoho/tools/get-from-addresses.js +32 -0
  410. package/dist/toolkits/zoho/tools/get-module-fields.d.ts +8 -0
  411. package/dist/toolkits/zoho/tools/get-module-fields.js +36 -0
  412. package/dist/toolkits/zoho/tools/get-note.d.ts +6 -0
  413. package/dist/toolkits/zoho/tools/get-note.js +34 -0
  414. package/dist/toolkits/zoho/tools/get-record-emails.d.ts +9 -0
  415. package/dist/toolkits/zoho/tools/get-record-emails.js +37 -0
  416. package/dist/toolkits/zoho/tools/get-related-lists.d.ts +6 -0
  417. package/dist/toolkits/zoho/tools/get-related-lists.js +29 -0
  418. package/dist/toolkits/zoho/tools/get-related-records.d.ts +15 -0
  419. package/dist/toolkits/zoho/tools/get-related-records.js +38 -0
  420. package/dist/toolkits/zoho/tools/get-task.d.ts +6 -0
  421. package/dist/toolkits/zoho/tools/get-task.js +34 -0
  422. package/dist/toolkits/zoho/tools/get-user.d.ts +5 -0
  423. package/dist/toolkits/zoho/tools/get-user.js +33 -0
  424. package/dist/toolkits/zoho/tools/get-zoho-records.d.ts +13 -0
  425. package/dist/toolkits/zoho/tools/get-zoho-records.js +59 -0
  426. package/dist/toolkits/zoho/tools/get-zoho-users.d.ts +9 -0
  427. package/dist/toolkits/zoho/tools/get-zoho-users.js +32 -0
  428. package/dist/toolkits/zoho/tools/index.d.ts +789 -0
  429. package/dist/toolkits/zoho/tools/index.js +175 -0
  430. package/dist/toolkits/zoho/tools/list-accounts.d.ts +14 -0
  431. package/dist/toolkits/zoho/tools/list-accounts.js +60 -0
  432. package/dist/toolkits/zoho/tools/list-calls.d.ts +12 -0
  433. package/dist/toolkits/zoho/tools/list-calls.js +58 -0
  434. package/dist/toolkits/zoho/tools/list-contacts.d.ts +12 -0
  435. package/dist/toolkits/zoho/tools/list-contacts.js +58 -0
  436. package/dist/toolkits/zoho/tools/list-deals.d.ts +15 -0
  437. package/dist/toolkits/zoho/tools/list-deals.js +61 -0
  438. package/dist/toolkits/zoho/tools/list-events.d.ts +12 -0
  439. package/dist/toolkits/zoho/tools/list-events.js +58 -0
  440. package/dist/toolkits/zoho/tools/list-leads.d.ts +13 -0
  441. package/dist/toolkits/zoho/tools/list-leads.js +59 -0
  442. package/dist/toolkits/zoho/tools/list-modules.d.ts +4 -0
  443. package/dist/toolkits/zoho/tools/list-modules.js +50 -0
  444. package/dist/toolkits/zoho/tools/list-notes.d.ts +7 -0
  445. package/dist/toolkits/zoho/tools/list-notes.js +53 -0
  446. package/dist/toolkits/zoho/tools/list-record-attachments.d.ts +9 -0
  447. package/dist/toolkits/zoho/tools/list-record-attachments.js +55 -0
  448. package/dist/toolkits/zoho/tools/list-tasks.d.ts +12 -0
  449. package/dist/toolkits/zoho/tools/list-tasks.js +58 -0
  450. package/dist/toolkits/zoho/tools/search-accounts.d.ts +11 -0
  451. package/dist/toolkits/zoho/tools/search-accounts.js +49 -0
  452. package/dist/toolkits/zoho/tools/search-calls.d.ts +11 -0
  453. package/dist/toolkits/zoho/tools/search-calls.js +49 -0
  454. package/dist/toolkits/zoho/tools/search-contacts.d.ts +11 -0
  455. package/dist/toolkits/zoho/tools/search-contacts.js +49 -0
  456. package/dist/toolkits/zoho/tools/search-deals.d.ts +11 -0
  457. package/dist/toolkits/zoho/tools/search-deals.js +49 -0
  458. package/dist/toolkits/zoho/tools/search-events.d.ts +11 -0
  459. package/dist/toolkits/zoho/tools/search-events.js +49 -0
  460. package/dist/toolkits/zoho/tools/search-leads.d.ts +13 -0
  461. package/dist/toolkits/zoho/tools/search-leads.js +51 -0
  462. package/dist/toolkits/zoho/tools/search-notes.d.ts +11 -0
  463. package/dist/toolkits/zoho/tools/search-notes.js +49 -0
  464. package/dist/toolkits/zoho/tools/search-tasks.d.ts +11 -0
  465. package/dist/toolkits/zoho/tools/search-tasks.js +49 -0
  466. package/dist/toolkits/zoho/tools/search-zoho-records.d.ts +12 -0
  467. package/dist/toolkits/zoho/tools/search-zoho-records.js +50 -0
  468. package/dist/toolkits/zoho/tools/update-account.d.ts +32 -0
  469. package/dist/toolkits/zoho/tools/update-account.js +55 -0
  470. package/dist/toolkits/zoho/tools/update-call.d.ts +8 -0
  471. package/dist/toolkits/zoho/tools/update-call.js +33 -0
  472. package/dist/toolkits/zoho/tools/update-deal.d.ts +9 -0
  473. package/dist/toolkits/zoho/tools/update-deal.js +34 -0
  474. package/dist/toolkits/zoho/tools/update-email-draft.d.ts +17 -0
  475. package/dist/toolkits/zoho/tools/update-email-draft.js +42 -0
  476. package/dist/toolkits/zoho/tools/update-event.d.ts +6 -0
  477. package/dist/toolkits/zoho/tools/update-event.js +31 -0
  478. package/dist/toolkits/zoho/tools/update-lead.d.ts +9 -0
  479. package/dist/toolkits/zoho/tools/update-lead.js +34 -0
  480. package/dist/toolkits/zoho/tools/update-note.d.ts +8 -0
  481. package/dist/toolkits/zoho/tools/update-note.js +33 -0
  482. package/dist/toolkits/zoho/tools/update-related-records.d.ts +8 -0
  483. package/dist/toolkits/zoho/tools/update-related-records.js +33 -0
  484. package/dist/toolkits/zoho/tools/update-zoho-record.d.ts +10 -0
  485. package/dist/toolkits/zoho/tools/update-zoho-record.js +35 -0
  486. package/dist/toolkits/zoho/tools/upload-attachment.d.ts +9 -0
  487. package/dist/toolkits/zoho/tools/upload-attachment.js +34 -0
  488. package/dist/toolkits/zoho/tools/utils.d.ts +24 -0
  489. package/dist/toolkits/zoho/tools/utils.js +49 -0
  490. package/dist/toolkits/zoho/tools/validate-credential.d.ts +4 -0
  491. package/dist/toolkits/zoho/tools/validate-credential.js +27 -0
  492. package/package.json +1 -1
@@ -0,0 +1,125 @@
1
+ const SVG = `<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0.00 0.00 48.00 48.00">
2
+ <g stroke-width="2.00" fill="none" stroke-linecap="butt">
3
+ <path stroke="#f29293" vector-effect="non-scaling-stroke" d="
4
+ M 22.72 3.60
5
+ Q 19.65 4.02 16.22 4.53
6
+ Q 11.84 5.18 9.89 6.08
7
+ Q 3.79 8.90 2.53 16.25
8
+ Q 2.13 18.61 3.58 25.11"
9
+ />
10
+ <path stroke="#fcd98e" vector-effect="non-scaling-stroke" d="
11
+ M 3.58 25.11
12
+ Q 3.99 28.48 4.57 32.23
13
+ Q 5.28 36.78 6.50 38.94
14
+ C 9.53 44.32 14.77 46.04 20.68 45.17
15
+ Q 23.09 44.82 25.53 44.39"
16
+ />
17
+ <path stroke="#91b6da" vector-effect="non-scaling-stroke" d="
18
+ M 25.53 44.39
19
+ C 29.75 43.78 35.24 43.43 38.66 41.65
20
+ Q 44.52 38.58 45.48 31.26
21
+ Q 45.72 29.47 44.61 23.94"
22
+ />
23
+ <path stroke="#84cca4" vector-effect="non-scaling-stroke" d="
24
+ M 44.61 23.94
25
+ Q 44.08 20.18 43.45 16.12
26
+ Q 42.64 10.96 41.23 8.62
27
+ Q 37.94 3.17 30.75 2.49
28
+ Q 29.00 2.32 22.72 3.60"
29
+ />
30
+ <path stroke="#15837f" vector-effect="non-scaling-stroke" d="
31
+ M 44.61 23.94
32
+ Q 39.61 27.27 36.08 24.01"
33
+ />
34
+ <path stroke="#84cca4" vector-effect="non-scaling-stroke" d="
35
+ M 36.08 24.01
36
+ L 34.51 14.35
37
+ A 4.02 4.01 -9.0 0 0 29.94 11.03
38
+ L 23.08 12.08"
39
+ />
40
+ <path stroke="#765f38" vector-effect="non-scaling-stroke" d="
41
+ M 23.08 12.08
42
+ Q 28.56 8.10 22.72 3.60"
43
+ />
44
+ <path stroke="#f29293" vector-effect="non-scaling-stroke" d="
45
+ M 23.08 12.08
46
+ Q 19.11 12.69 15.21 13.35
47
+ C 9.32 14.34 11.17 19.35 11.82 23.49"
48
+ />
49
+ <path stroke="#ef6c22" vector-effect="non-scaling-stroke" d="
50
+ M 11.82 23.49
51
+ Q 6.56 20.66 3.58 25.11"
52
+ />
53
+ <path stroke="#91b6da" vector-effect="non-scaling-stroke" d="
54
+ M 36.08 24.01
55
+ L 36.97 30.06
56
+ A 3.91 3.90 -8.8 0 1 33.72 34.49
57
+ L 24.66 35.94"
58
+ />
59
+ <path stroke="#fcd98e" vector-effect="non-scaling-stroke" d="
60
+ M 24.66 35.94
61
+ L 18.02 36.95
62
+ A 3.97 3.96 -9.0 0 1 13.51 33.68
63
+ L 11.82 23.49"
64
+ />
65
+ <path stroke="#8e9069" vector-effect="non-scaling-stroke" d="
66
+ M 24.66 35.94
67
+ Q 19.39 40.68 25.53 44.39"
68
+ />
69
+ </g>
70
+ <path fill="#089949" d="
71
+ M 44.61 23.94
72
+ Q 39.61 27.27 36.08 24.01
73
+ L 34.51 14.35
74
+ A 4.02 4.01 -9.0 0 0 29.94 11.03
75
+ L 23.08 12.08
76
+ Q 28.56 8.10 22.72 3.60
77
+ Q 29.00 2.32 30.75 2.49
78
+ Q 37.94 3.17 41.23 8.62
79
+ Q 42.64 10.96 43.45 16.12
80
+ Q 44.08 20.18 44.61 23.94
81
+ Z"
82
+ />
83
+ <path fill="#e42527" d="
84
+ M 22.72 3.60
85
+ Q 28.56 8.10 23.08 12.08
86
+ Q 19.11 12.69 15.21 13.35
87
+ C 9.32 14.34 11.17 19.35 11.82 23.49
88
+ Q 6.56 20.66 3.58 25.11
89
+ Q 2.13 18.61 2.53 16.25
90
+ Q 3.79 8.90 9.89 6.08
91
+ Q 11.84 5.18 16.22 4.53
92
+ Q 19.65 4.02 22.72 3.60
93
+ Z"
94
+ />
95
+ <path fill="#f9b21d" d="
96
+ M 11.82 23.49
97
+ L 13.51 33.68
98
+ A 3.97 3.96 -9.0 0 0 18.02 36.95
99
+ L 24.66 35.94
100
+ Q 19.39 40.68 25.53 44.39
101
+ Q 23.09 44.82 20.68 45.17
102
+ C 14.77 46.04 9.53 44.32 6.50 38.94
103
+ Q 5.28 36.78 4.57 32.23
104
+ Q 3.99 28.48 3.58 25.11
105
+ Q 6.56 20.66 11.82 23.49
106
+ Z"
107
+ />
108
+ <path fill="#226db4" d="
109
+ M 36.08 24.01
110
+ Q 39.61 27.27 44.61 23.94
111
+ Q 45.72 29.47 45.48 31.26
112
+ Q 44.52 38.58 38.66 41.65
113
+ C 35.24 43.43 29.75 43.78 25.53 44.39
114
+ Q 19.39 40.68 24.66 35.94
115
+ L 33.72 34.49
116
+ A 3.91 3.90 -8.8 0 0 36.97 30.06
117
+ L 36.08 24.01
118
+ Z"
119
+ />
120
+ </svg>`;
121
+ export const ZOHO_ICON = {
122
+ kind: 'svg',
123
+ dataUri: `data:image/svg+xml;base64,${Buffer.from(SVG).toString('base64')}`,
124
+ };
125
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1,3 @@
1
+ declare const _default: import("../../index.js").ToolkitManifest;
2
+ export default _default;
3
+ //# sourceMappingURL=manifest.d.ts.map
@@ -0,0 +1,54 @@
1
+ import { defineToolkit, defineTool } from '../../core/define.js';
2
+ import { ZOHO_ICON } from './icon.js';
3
+ import { zohoTools } from './tools/index.js';
4
+ export default defineToolkit({
5
+ id: 'zoho',
6
+ displayName: 'Zoho CRM',
7
+ shortDescription: 'Leads, contacts, deals, accounts, events and more.',
8
+ category: 'CRM',
9
+ icon: ZOHO_ICON,
10
+ auth: {
11
+ type: 'oauth2',
12
+ tokenField: 'zohoToken',
13
+ provider: {
14
+ slug: 'zoho',
15
+ env: { clientId: 'ZOHO_CLIENT_ID', clientSecret: 'ZOHO_CLIENT_SECRET' },
16
+ authorizeUrl: 'https://accounts.zoho.com/oauth/v2/auth',
17
+ tokenUrl: 'https://accounts.zoho.com/oauth/v2/token',
18
+ scopes: [
19
+ 'ZohoCRM.modules.ALL',
20
+ 'ZohoCRM.users.READ',
21
+ 'ZohoCRM.settings.fields.READ',
22
+ 'ZohoCRM.settings.related_lists.READ',
23
+ 'ZohoCRM.settings.modules.READ',
24
+ 'ZohoCRM.settings.tags.CREATE',
25
+ 'ZohoCRM.settings.emails.READ',
26
+ 'ZohoSearch.securesearch.READ',
27
+ ],
28
+ scopeSeparator: ',',
29
+ exchangeStyle: 'form',
30
+ extraAuthParams: { access_type: 'offline', prompt: 'consent' },
31
+ connectDescription: 'Connect Zoho CRM to manage leads, contacts, deals, accounts and activities. Requires Zoho CRM account with API access.',
32
+ callbackPath: '/api/auth/zoho/callback',
33
+ stateCookie: 'zoho_oauth_state',
34
+ },
35
+ },
36
+ allowedHosts: [
37
+ 'www.zohoapis.com',
38
+ 'www.zohoapis.eu',
39
+ 'www.zohoapis.in',
40
+ 'www.zohoapis.com.au',
41
+ 'www.zohoapis.jp',
42
+ 'zohoapis.com',
43
+ 'accounts.zoho.com',
44
+ ],
45
+ tools: zohoTools.map((entry) => defineTool({
46
+ name: entry.name,
47
+ description: entry.description,
48
+ tool: entry.tool,
49
+ requiredAuth: entry.requiredAuth,
50
+ scope: entry.scope,
51
+ })),
52
+ meta: { since: '0.0.1' },
53
+ });
54
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1,11 @@
1
+ export declare const ZohoConvertZohoLead: import("ai").Tool<{
2
+ zohoToken: string;
3
+ lead_id: string;
4
+ account_id?: string | undefined;
5
+ contact_id?: string | undefined;
6
+ overwrite?: boolean | undefined;
7
+ assign_to?: string | undefined;
8
+ notify_lead_owner?: boolean | undefined;
9
+ notify_new_entity_owner?: boolean | undefined;
10
+ }, any>;
11
+ //# sourceMappingURL=convert-zoho-lead.d.ts.map
@@ -0,0 +1,47 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { zohoFetch } from './utils.js';
5
+ export const ZohoConvertZohoLead = tool({
6
+ description: 'Converts a lead into a contact, account, and optionally a deal in Zoho CRM.',
7
+ inputSchema: z.object({
8
+ zohoToken: z.string().describe('Zoho OAuth access token (Zoho-oauthtoken).'),
9
+ lead_id: z.string().describe('The unique ID of the lead to convert.'),
10
+ assign_to: z.string().optional().describe('User ID to assign as the owner of the new contact/account.'),
11
+ overwrite: z.boolean().optional().describe('Whether to overwrite the account name in the contact if it already exists and the company names mismatch.'),
12
+ account_id: z.string().optional().describe('ID of an existing account to associate with the converted lead.'),
13
+ contact_id: z.string().optional().describe('ID of an existing contact to associate with the converted lead.'),
14
+ notify_lead_owner: z.boolean().optional().describe('Notify the lead owner about the conversion via email.'),
15
+ notify_new_entity_owner: z.boolean().optional().describe('Notify the new owner of the contact/account via email.'),
16
+ }),
17
+ execute: async (params) => {
18
+ const { zohoToken, ...rest } = params;
19
+ if (!zohoToken)
20
+ return { error: 'Zoho token is required. Connect Zoho CRM first.' };
21
+ try {
22
+ const p = rest;
23
+ const path = `/Leads/${p.lead_id}/actions/convert`;
24
+ const body = {};
25
+ if (p.assignTo)
26
+ body.assign_to = p.assignTo;
27
+ if (p.overwrite !== undefined)
28
+ body.overwrite = p.overwrite;
29
+ if (p.account_id)
30
+ body.account_id = p.account_id;
31
+ if (p.contact_id)
32
+ body.contact_id = p.contact_id;
33
+ if (p.notifyLeadOwner !== undefined)
34
+ body.notify_lead_owner = p.notifyLeadOwner;
35
+ if (p.notifyNewEntityOwner !== undefined)
36
+ body.notify_new_entity_owner = p.notifyNewEntityOwner;
37
+ const res = await zohoFetch(path, { zohoToken, method: 'POST', body: { data: [body] } });
38
+ if (!res.ok)
39
+ return { error: 'Failed to convert lead', details: res.data };
40
+ return res.data;
41
+ }
42
+ catch (e) {
43
+ return { error: 'Error in ZohoConvertZohoLead', message: e instanceof Error ? e.message : 'Unknown error' };
44
+ }
45
+ },
46
+ });
47
+ //# sourceMappingURL=convert-zoho-lead.js.map
@@ -0,0 +1,36 @@
1
+ export declare const ZohoCreateContact: import("ai").Tool<{
2
+ zohoToken: string;
3
+ last_name: string;
4
+ description?: string | undefined;
5
+ title?: string | undefined;
6
+ email?: string | undefined;
7
+ owner?: Record<string, any> | undefined;
8
+ mobile?: string | undefined;
9
+ fax?: string | undefined;
10
+ phone?: string | undefined;
11
+ twitter?: string | undefined;
12
+ skype_id?: string | undefined;
13
+ assistant?: string | undefined;
14
+ other_zip?: string | undefined;
15
+ asst_phone?: string | undefined;
16
+ department?: string | undefined;
17
+ first_name?: string | undefined;
18
+ home_phone?: string | undefined;
19
+ other_city?: string | undefined;
20
+ lead_source?: string | undefined;
21
+ mailing_zip?: string | undefined;
22
+ other_phone?: string | undefined;
23
+ other_state?: string | undefined;
24
+ vendor_name?: string | undefined;
25
+ account_name?: string | undefined;
26
+ mailing_city?: string | undefined;
27
+ other_street?: string | undefined;
28
+ reporting_to?: Record<string, any> | undefined;
29
+ date_of_birth?: string | undefined;
30
+ mailing_state?: string | undefined;
31
+ other_country?: string | undefined;
32
+ mailing_street?: string | undefined;
33
+ mailing_country?: string | undefined;
34
+ secondary_email?: string | undefined;
35
+ }, any>;
36
+ //# sourceMappingURL=create-contact.d.ts.map
@@ -0,0 +1,58 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { zohoFetch } from './utils.js';
5
+ export const ZohoCreateContact = tool({
6
+ description: 'Creates a new contact record in Zoho CRM. Use this action when you need to add a new contact to the CRM system. The Last_Name field is mandatory and must be provided with a non-empty value.',
7
+ inputSchema: z.object({
8
+ zohoToken: z.string().describe('Zoho OAuth access token (Zoho-oauthtoken).'),
9
+ fax: z.string().optional().describe('Fax number of the contact'),
10
+ email: z.string().optional().describe('Email address of the contact'),
11
+ owner: z.record(z.any()).optional().describe('Reference to another contact or user in Zoho CRM.'),
12
+ phone: z.string().optional().describe('Phone number of the contact'),
13
+ title: z.string().optional().describe('Job title of the contact'),
14
+ mobile: z.string().optional().describe('Mobile phone number of the contact'),
15
+ twitter: z.string().optional().describe('Twitter handle of the contact'),
16
+ skype_id: z.string().optional().describe('Skype ID of the contact'),
17
+ assistant: z.string().optional().describe('Name of the contact\'s assistant'),
18
+ last_name: z.string().describe('Last name of the contact (required field, must be non-empty)'),
19
+ other_zip: z.string().optional().describe('ZIP code for other address'),
20
+ asst_phone: z.string().optional().describe('Phone number of the contact\'s assistant'),
21
+ department: z.string().optional().describe('Department where the contact works'),
22
+ first_name: z.string().optional().describe('First name of the contact'),
23
+ home_phone: z.string().optional().describe('Home phone number of the contact'),
24
+ other_city: z.string().optional().describe('City for other address'),
25
+ description: z.string().optional().describe('Description or notes about the contact'),
26
+ lead_source: z.string().optional().describe('Source from which the contact was acquired'),
27
+ mailing_zip: z.string().optional().describe('ZIP code for mailing address'),
28
+ other_phone: z.string().optional().describe('Alternative phone number of the contact'),
29
+ other_state: z.string().optional().describe('State for other address'),
30
+ vendor_name: z.string().optional().describe('Name of the vendor associated with this contact'),
31
+ account_name: z.string().optional().describe('Name of the account associated with this contact'),
32
+ mailing_city: z.string().optional().describe('City for mailing address'),
33
+ other_street: z.string().optional().describe('Street address for other address'),
34
+ reporting_to: z.record(z.any()).optional().describe('Reference to another contact or user in Zoho CRM.'),
35
+ date_of_birth: z.string().optional().describe('Date of birth of the contact in YYYY-MM-DD format'),
36
+ mailing_state: z.string().optional().describe('State for mailing address'),
37
+ other_country: z.string().optional().describe('Country for other address'),
38
+ mailing_street: z.string().optional().describe('Street address for mailing'),
39
+ mailing_country: z.string().optional().describe('Country for mailing address'),
40
+ secondary_email: z.string().optional().describe('Secondary email address of the contact'),
41
+ }),
42
+ execute: async (params) => {
43
+ const { zohoToken, ...rest } = params;
44
+ if (!zohoToken)
45
+ return { error: 'Zoho token is required. Connect Zoho CRM first.' };
46
+ try {
47
+ const body = { data: [rest] };
48
+ const res = await zohoFetch('/Contacts', { zohoToken, method: 'POST', body });
49
+ if (!res.ok)
50
+ return { error: 'Failed to create contacts', details: res.data };
51
+ return res.data;
52
+ }
53
+ catch (e) {
54
+ return { error: 'Error in ZohoCreateContact', message: e instanceof Error ? e.message : 'Unknown error' };
55
+ }
56
+ },
57
+ });
58
+ //# sourceMappingURL=create-contact.js.map
@@ -0,0 +1,17 @@
1
+ export declare const ZohoCreateDeal: import("ai").Tool<{
2
+ zohoToken: string;
3
+ Stage: string;
4
+ Deal_Name: string;
5
+ Owner?: Record<string, any> | undefined;
6
+ Amount?: number | undefined;
7
+ Pipeline?: string | undefined;
8
+ Next_Step?: string | undefined;
9
+ Description?: string | undefined;
10
+ Lead_Source?: string | undefined;
11
+ Probability?: number | undefined;
12
+ Account_Name?: Record<string, any> | undefined;
13
+ Closing_Date?: string | undefined;
14
+ Contact_Name?: Record<string, any> | undefined;
15
+ Campaign_Source?: Record<string, any> | undefined;
16
+ }, any>;
17
+ //# sourceMappingURL=create-deal.d.ts.map
@@ -0,0 +1,39 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { zohoFetch } from './utils.js';
5
+ export const ZohoCreateDeal = tool({
6
+ description: 'Creates a new deal in Zoho CRM representing a sales opportunity with deal name, stage, amount, and closing date. Use this action when you need to create a sales deal or opportunity in Zoho CRM. Required fields are Deal_Name and Stage; all other fields are optional. The deal will be assigned to the a',
7
+ inputSchema: z.object({
8
+ zohoToken: z.string().describe('Zoho OAuth access token (Zoho-oauthtoken).'),
9
+ Owner: z.record(z.any()).optional().describe('Owner of the deal.'),
10
+ Stage: z.string().describe('The current stage of the deal in the sales pipeline. This is a required field. Common stages include: \'Qualification\', \'Needs Analysis\', \'Value Proposition\', \'Proposal/Price Quote\', \'Negotiat'),
11
+ Amount: z.number().optional().describe('The monetary value of the deal in the account\'s currency. Use decimal format for fractional amounts.'),
12
+ Pipeline: z.string().optional().describe('The sales pipeline this deal belongs to. Required when multiple pipelines are enabled in your Zoho CRM org. Use the exact pipeline name as configured in Zoho CRM.'),
13
+ Deal_Name: z.string().describe('The name of the deal. This is a required field and must be a non-empty string.'),
14
+ Next_Step: z.string().optional().describe('The next action or step planned for moving this deal forward in the sales process.'),
15
+ Description: z.string().optional().describe('A detailed description or notes about the deal, including context, requirements, or special considerations.'),
16
+ Lead_Source: z.string().optional().describe('The source or channel from which this deal originated.'),
17
+ Probability: z.number().int().min(0).max(100).optional().describe('The probability of closing this deal, expressed as a percentage between 0 and 100.'),
18
+ Account_Name: z.record(z.any()).optional().describe('Account associated with the deal.'),
19
+ Closing_Date: z.string().optional().describe('The expected or actual closing date of the deal in YYYY-MM-DD format (ISO 8601 date format).'),
20
+ Contact_Name: z.record(z.any()).optional().describe('Contact associated with the deal.'),
21
+ Campaign_Source: z.record(z.any()).optional().describe('Campaign associated with the deal.'),
22
+ }),
23
+ execute: async (params) => {
24
+ const { zohoToken, ...rest } = params;
25
+ if (!zohoToken)
26
+ return { error: 'Zoho token is required. Connect Zoho CRM first.' };
27
+ try {
28
+ const body = { data: [rest] };
29
+ const res = await zohoFetch('/Deals', { zohoToken, method: 'POST', body });
30
+ if (!res.ok)
31
+ return { error: 'Failed to create deals', details: res.data };
32
+ return res.data;
33
+ }
34
+ catch (e) {
35
+ return { error: 'Error in ZohoCreateDeal', message: e instanceof Error ? e.message : 'Unknown error' };
36
+ }
37
+ },
38
+ });
39
+ //# sourceMappingURL=create-deal.js.map
@@ -0,0 +1,7 @@
1
+ export declare const ZohoCreateEmailDraft: import("ai").Tool<{
2
+ zohoToken: string;
3
+ record_id: string;
4
+ __email_drafts: Record<string, any>[];
5
+ module_api_name: string;
6
+ }, any>;
7
+ //# sourceMappingURL=create-email-draft.d.ts.map
@@ -0,0 +1,30 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { zohoFetch } from './utils.js';
5
+ export const ZohoCreateEmailDraft = tool({
6
+ description: 'Creates email drafts for a specific record in Zoho CRM. Email drafts are saved but not sent, allowing for review and editing before sending. Use this action when you need to prepare email communications associated with CRM records (Leads, Contacts, Deals, etc.) that will be reviewed and sent later. ',
7
+ inputSchema: z.object({
8
+ zohoToken: z.string().describe('Zoho OAuth access token (Zoho-oauthtoken).'),
9
+ record_id: z.string().describe('Unique identifier of the record for which to create the email draft'),
10
+ __email_drafts: z.array(z.record(z.any())).describe('List of email drafts to create (maximum 100 drafts per API call). Each draft must include \'from\' and \'rich_text\' fields. Use this action when you need to create draft emails associated with a CRM '),
11
+ module_api_name: z.string().describe('The API name of the module containing the record for which to create the email draft. Standard modules include \'Leads\', \'Contacts\', \'Accounts\', \'Deals\', \'Quotes\', \'Sales_Orders\', \'Purchas'),
12
+ }),
13
+ execute: async (params) => {
14
+ const { zohoToken, ...rest } = params;
15
+ if (!zohoToken)
16
+ return { error: 'Zoho token is required. Connect Zoho CRM first.' };
17
+ try {
18
+ const p = rest;
19
+ const path = `/${p.module_api_name}/${p.record_id}/__email_drafts`;
20
+ const res = await zohoFetch(path, { zohoToken, method: 'POST', body: p });
21
+ if (!res.ok)
22
+ return { error: 'Failed', details: res.data };
23
+ return res.data;
24
+ }
25
+ catch (e) {
26
+ return { error: 'Error in ZohoCreateEmailDraft', message: e instanceof Error ? e.message : 'Unknown error' };
27
+ }
28
+ },
29
+ });
30
+ //# sourceMappingURL=create-email-draft.js.map
@@ -0,0 +1,18 @@
1
+ export declare const ZohoCreateEvent: import("ai").Tool<{
2
+ zohoToken: string;
3
+ Event_Title: string;
4
+ End_DateTime: string;
5
+ Start_DateTime: string;
6
+ Owner?: Record<string, any> | undefined;
7
+ Description?: string | undefined;
8
+ Venue?: string | undefined;
9
+ Who_Id?: Record<string, any> | undefined;
10
+ All_day?: boolean | undefined;
11
+ What_Id?: Record<string, any> | undefined;
12
+ trigger?: string[] | undefined;
13
+ Remind_At?: Record<string, any>[] | undefined;
14
+ Participants?: Record<string, any>[] | undefined;
15
+ Check_In_Status?: string | undefined;
16
+ Recurring_Activity?: Record<string, any> | undefined;
17
+ }, any>;
18
+ //# sourceMappingURL=create-event.d.ts.map
@@ -0,0 +1,40 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { zohoFetch } from './utils.js';
5
+ export const ZohoCreateEvent = tool({
6
+ description: 'Creates a new Event record in Zoho CRM. Events represent scheduled activities like meetings, calls, or appointments. Use this action when you need to schedule a new event or meeting in the CRM system. All events require an event title, start time, and end time at minimum.',
7
+ inputSchema: z.object({
8
+ zohoToken: z.string().describe('Zoho OAuth access token (Zoho-oauthtoken).'),
9
+ Owner: z.record(z.any()).optional().describe('Reference to another record in the CRM.'),
10
+ Venue: z.string().optional().describe('Location or venue of the event'),
11
+ Who_Id: z.record(z.any()).optional().describe('Reference to another record in the CRM.'),
12
+ All_day: z.boolean().optional().describe('Indicates whether the event spans an entire day or multiple days'),
13
+ What_Id: z.record(z.any()).optional().describe('Reference to another record in the CRM.'),
14
+ trigger: z.array(z.string()).optional().describe('List of triggers to invoke (e.g., [\'workflow\', \'blueprint\']). Use cautiously as triggers can cause side effects like sending emails'),
15
+ Remind_At: z.array(z.record(z.any())).optional().describe('List of reminder configurations for the event. Each reminder specifies when to alert before the event starts'),
16
+ Description: z.string().optional().describe('Detailed description of the event'),
17
+ Event_Title: z.string().describe('Name of the event. Required field that accepts alphanumeric and special characters'),
18
+ End_DateTime: z.string().describe('Event end date and time in ISO8601 format (e.g., \'2024-07-03T14:30:00+05:30\')'),
19
+ Participants: z.array(z.record(z.any())).optional().describe('List of event participants (leads, contacts, users, or email addresses)'),
20
+ Start_DateTime: z.string().describe('Event start date and time in ISO8601 format (e.g., \'2024-07-03T12:30:00+05:30\')'),
21
+ Check_In_Status: z.string().optional().describe('Check-in status for the event'),
22
+ Recurring_Activity: z.record(z.any()).optional().describe('Recurrence rule for the event in RRULE format.'),
23
+ }),
24
+ execute: async (params) => {
25
+ const { zohoToken, ...rest } = params;
26
+ if (!zohoToken)
27
+ return { error: 'Zoho token is required. Connect Zoho CRM first.' };
28
+ try {
29
+ const body = { data: [rest] };
30
+ const res = await zohoFetch('/Events', { zohoToken, method: 'POST', body });
31
+ if (!res.ok)
32
+ return { error: 'Failed to create events', details: res.data };
33
+ return res.data;
34
+ }
35
+ catch (e) {
36
+ return { error: 'Error in ZohoCreateEvent', message: e instanceof Error ? e.message : 'Unknown error' };
37
+ }
38
+ },
39
+ });
40
+ //# sourceMappingURL=create-event.js.map
@@ -0,0 +1,31 @@
1
+ export declare const ZohoCreateLead: import("ai").Tool<{
2
+ zohoToken: string;
3
+ Last_Name: string;
4
+ State?: string | undefined;
5
+ Description?: string | undefined;
6
+ Lead_Source?: string | undefined;
7
+ trigger?: string[] | undefined;
8
+ Fax?: string | undefined;
9
+ City?: string | undefined;
10
+ Email?: string | undefined;
11
+ Phone?: string | undefined;
12
+ Mobile?: string | undefined;
13
+ Rating?: string | undefined;
14
+ Street?: string | undefined;
15
+ lar_id?: string | undefined;
16
+ Company?: string | undefined;
17
+ Country?: string | undefined;
18
+ Twitter?: string | undefined;
19
+ Website?: string | undefined;
20
+ Industry?: string | undefined;
21
+ Skype_ID?: string | undefined;
22
+ Zip_Code?: string | undefined;
23
+ First_Name?: string | undefined;
24
+ Salutation?: string | undefined;
25
+ Designation?: string | undefined;
26
+ Lead_Status?: string | undefined;
27
+ Annual_Revenue?: number | undefined;
28
+ No_of_Employees?: number | undefined;
29
+ Secondary_Email?: string | undefined;
30
+ }, any>;
31
+ //# sourceMappingURL=create-lead.d.ts.map
@@ -0,0 +1,53 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { zohoFetch } from './utils.js';
5
+ export const ZohoCreateLead = tool({
6
+ description: 'Creates a new lead record in Zoho CRM with the specified details. The only mandatory field is Last_Name - all other fields are optional. Use this action when you need to add a new lead to Zoho CRM, typically after capturing lead information from a web form, email, or other lead generation source. Th',
7
+ inputSchema: z.object({
8
+ zohoToken: z.string().describe('Zoho OAuth access token (Zoho-oauthtoken).'),
9
+ Fax: z.string().optional().describe('Fax number of the lead'),
10
+ City: z.string().optional().describe('City of the lead\'s address'),
11
+ Email: z.string().optional().describe('Email address of the lead'),
12
+ Phone: z.string().optional().describe('Phone number of the lead (up to 30 characters)'),
13
+ State: z.string().optional().describe('State or province of the lead\'s address'),
14
+ Mobile: z.string().optional().describe('Mobile phone number of the lead'),
15
+ Rating: z.string().optional().describe('Rating of the lead (e.g., Acquired, Active, Market Failed, Project Cancelled, Shutdown)'),
16
+ Street: z.string().optional().describe('Street address of the lead'),
17
+ lar_id: z.string().optional().describe('Lead assignment rule ID to apply when creating the lead. This determines which user the lead will be assigned to based on predefined rules'),
18
+ Company: z.string().optional().describe('Company name associated with the lead'),
19
+ Country: z.string().optional().describe('Country of the lead\'s address'),
20
+ Twitter: z.string().optional().describe('Twitter handle of the lead'),
21
+ Website: z.string().optional().describe('Website URL of the lead\'s company'),
22
+ trigger: z.array(z.string()).optional().describe('List of workflow triggers to execute during lead creation (e.g., [\'workflow\', \'approval\', \'blueprint\']). Use this only when you explicitly need to trigger workflows, approvals, or blueprints, as'),
23
+ Industry: z.string().optional().describe('Industry sector of the lead\'s company'),
24
+ Skype_ID: z.string().optional().describe('Skype ID of the lead'),
25
+ Zip_Code: z.string().optional().describe('Postal or ZIP code of the lead\'s address'),
26
+ Last_Name: z.string().describe('Last name of the lead - this is a mandatory field in Zoho CRM'),
27
+ First_Name: z.string().optional().describe('First name of the lead'),
28
+ Salutation: z.string().optional().describe('Salutation or title for the lead (e.g., Mr., Ms., Dr., Prof.)'),
29
+ Description: z.string().optional().describe('Additional notes or description about the lead'),
30
+ Designation: z.string().optional().describe('Job title or designation of the lead'),
31
+ Lead_Source: z.string().optional().describe('Source from which the lead was acquired (e.g., Advertisement, Cold Call, Employee Referral, External Referral, Online Store, Partner, Public Relations, Sales Email Alias, Seminar Partner, Internal Sem'),
32
+ Lead_Status: z.string().optional().describe('Current status of the lead (e.g., Attempted to Contact, Contact in Future, Contacted, Junk Lead, Lost Lead, Not Contacted, Pre-Qualified, Not Qualified)'),
33
+ Annual_Revenue: z.number().optional().describe('Annual revenue of the lead\'s company'),
34
+ No_of_Employees: z.number().int().optional().describe('Number of employees in the lead\'s company'),
35
+ Secondary_Email: z.string().optional().describe('Secondary email address of the lead'),
36
+ }),
37
+ execute: async (params) => {
38
+ const { zohoToken, ...rest } = params;
39
+ if (!zohoToken)
40
+ return { error: 'Zoho token is required. Connect Zoho CRM first.' };
41
+ try {
42
+ const body = { data: [rest] };
43
+ const res = await zohoFetch('/Leads', { zohoToken, method: 'POST', body });
44
+ if (!res.ok)
45
+ return { error: 'Failed to create leads', details: res.data };
46
+ return res.data;
47
+ }
48
+ catch (e) {
49
+ return { error: 'Error in ZohoCreateLead', message: e instanceof Error ? e.message : 'Unknown error' };
50
+ }
51
+ },
52
+ });
53
+ //# sourceMappingURL=create-lead.js.map
@@ -0,0 +1,8 @@
1
+ export declare const ZohoCreateNote: import("ai").Tool<{
2
+ zohoToken: string;
3
+ record_id: string;
4
+ module_api_name: string;
5
+ Note_Content: string;
6
+ Note_Title?: string | undefined;
7
+ }, any>;
8
+ //# sourceMappingURL=create-note.d.ts.map
@@ -0,0 +1,31 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { zohoFetch } from './utils.js';
5
+ export const ZohoCreateNote = tool({
6
+ description: 'Creates a new note attached to a specific record in Zoho CRM. Notes are text annotations that can be added to any standard or custom module record. Use this action when you need to add notes, comments, or text-based documentation to a record in Zoho CRM. The note will be visible in the record\'s Not',
7
+ inputSchema: z.object({
8
+ zohoToken: z.string().describe('Zoho OAuth access token (Zoho-oauthtoken).'),
9
+ record_id: z.string().describe('The unique identifier of the parent record to attach the note to. This is the ID of the record in the specified module.'),
10
+ Note_Title: z.string().optional().describe('Optional title for the note'),
11
+ Note_Content: z.string().describe('The content/text of the note (required)'),
12
+ module_api_name: z.string().describe('The API name of the parent module containing the record. Examples: \'Leads\', \'Contacts\', \'Accounts\', \'Deals\', \'Tasks\', etc. This must be a valid module API name in Zoho CRM.'),
13
+ }),
14
+ execute: async (params) => {
15
+ const { zohoToken, ...rest } = params;
16
+ if (!zohoToken)
17
+ return { error: 'Zoho token is required. Connect Zoho CRM first.' };
18
+ try {
19
+ const p = rest;
20
+ const path = `/${p.module_api_name}/${p.record_id}/Notes`;
21
+ const res = await zohoFetch(path, { zohoToken, method: 'POST', body: p });
22
+ if (!res.ok)
23
+ return { error: 'Failed', details: res.data };
24
+ return res.data;
25
+ }
26
+ catch (e) {
27
+ return { error: 'Error in ZohoCreateNote', message: e instanceof Error ? e.message : 'Unknown error' };
28
+ }
29
+ },
30
+ });
31
+ //# sourceMappingURL=create-note.js.map
@@ -0,0 +1,8 @@
1
+ export declare const ZohoCreateZohoRecord: import("ai").Tool<{
2
+ data: Record<string, any>[];
3
+ zohoToken: string;
4
+ module_api_name: string;
5
+ trigger?: string[] | undefined;
6
+ lar_id?: string | undefined;
7
+ }, any>;
8
+ //# sourceMappingURL=create-zoho-record.d.ts.map